]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - configure
* stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
[thirdparty/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"
18f6b6ee 275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES OBJCOPY OBJDUMP CFLAGS_FOR_BUILD CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
c6b750e1 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
a0da8069
NN
277
278# Initialize some variables set by options.
c6b750e1
DJ
279ac_init_help=
280ac_init_version=false
a0da8069
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
c6b750e1 283cache_file=/dev/null
a0da8069 284exec_prefix=NONE
a0da8069 285no_create=
a0da8069
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
a0da8069
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
c6b750e1
DJ
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
a0da8069
NN
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
252b5132 315
a0da8069
NN
316ac_prev=
317for ac_option
318do
a0da8069
NN
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
324 fi
252b5132 325
c6b750e1 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
a0da8069
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
c6b750e1 330 case $ac_option in
a0da8069
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 335 bindir=$ac_optarg ;;
a0da8069
NN
336
337 -build | --build | --buil | --bui | --bu)
c6b750e1 338 ac_prev=build_alias ;;
a0da8069 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 340 build_alias=$ac_optarg ;;
a0da8069
NN
341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
a0da8069
NN
351
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
c6b750e1 356 datadir=$ac_optarg ;;
a0da8069
NN
357
358 -disable-* | --disable-*)
c6b750e1 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 360 # Reject names that are not valid shell variable names.
c6b750e1
DJ
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
a0da8069
NN
366
367 -enable-* | --enable-*)
c6b750e1 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 369 # Reject names that are not valid shell variable names.
c6b750e1
DJ
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
376 *) ac_optarg=yes ;;
377 esac
c6b750e1 378 eval "enable_$ac_feature='$ac_optarg'" ;;
a0da8069
NN
379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
c6b750e1 387 exec_prefix=$ac_optarg ;;
a0da8069
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
c6b750e1
DJ
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
a0da8069
NN
399
400 -host | --host | --hos | --ho)
c6b750e1 401 ac_prev=host_alias ;;
a0da8069 402 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 403 host_alias=$ac_optarg ;;
a0da8069
NN
404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 410 includedir=$ac_optarg ;;
a0da8069
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 415 infodir=$ac_optarg ;;
a0da8069
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 420 libdir=$ac_optarg ;;
a0da8069
NN
421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
c6b750e1 427 libexecdir=$ac_optarg ;;
a0da8069
NN
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
c6b750e1 436 localstatedir=$ac_optarg ;;
a0da8069
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 441 mandir=$ac_optarg ;;
a0da8069
NN
442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 448 | --no-cr | --no-c | -n)
a0da8069
NN
449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 462 oldincludedir=$ac_optarg ;;
a0da8069
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 467 prefix=$ac_optarg ;;
a0da8069
NN
468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 474 program_prefix=$ac_optarg ;;
a0da8069
NN
475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 481 program_suffix=$ac_optarg ;;
a0da8069
NN
482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 498 program_transform_name=$ac_optarg ;;
a0da8069
NN
499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
c6b750e1 508 sbindir=$ac_optarg ;;
a0da8069
NN
509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
c6b750e1 519 sharedstatedir=$ac_optarg ;;
a0da8069
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
c6b750e1 524 site=$ac_optarg ;;
a0da8069
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 529 srcdir=$ac_optarg ;;
a0da8069
NN
530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 536 sysconfdir=$ac_optarg ;;
a0da8069
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 539 ac_prev=target_alias ;;
a0da8069 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 541 target_alias=$ac_optarg ;;
a0da8069
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
c6b750e1
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
a0da8069
NN
548
549 -with-* | --with-*)
c6b750e1 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 551 # Reject names that are not valid shell variable names.
c6b750e1
DJ
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
a0da8069 555 ac_package=`echo $ac_package| sed 's/-/_/g'`
c6b750e1
DJ
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
558 *) ac_optarg=yes ;;
559 esac
c6b750e1 560 eval "with_$ac_package='$ac_optarg'" ;;
a0da8069
NN
561
562 -without-* | --without-*)
c6b750e1 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 564 # Reject names that are not valid shell variable names.
c6b750e1
DJ
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
a0da8069
NN
570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 580 x_includes=$ac_optarg ;;
a0da8069
NN
581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 587 x_libraries=$ac_optarg ;;
a0da8069 588
c6b750e1
DJ
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
a0da8069
NN
592 ;;
593
c6b750e1
DJ
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
603
a0da8069 604 *)
c6b750e1
DJ
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
c6b750e1
DJ
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
a0da8069 619fi
a0da8069 620
c6b750e1
DJ
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
623do
624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630done
a0da8069 631
c6b750e1
DJ
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
a0da8069 635do
c6b750e1
DJ
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
a0da8069
NN
641 esac
642done
643
c6b750e1
DJ
644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
376a0e54 650
c6b750e1
DJ
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
a0da8069 666
a0da8069
NN
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
c6b750e1
DJ
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
a0da8069
NN
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
c6b750e1
DJ
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
a0da8069 695 else
c6b750e1
DJ
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
698 fi
699fi
700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716ac_env_CC_set=${CC+set}
717ac_env_CC_value=$CC
718ac_cv_env_CC_set=${CC+set}
719ac_cv_env_CC_value=$CC
720ac_env_CFLAGS_set=${CFLAGS+set}
721ac_env_CFLAGS_value=$CFLAGS
722ac_cv_env_CFLAGS_set=${CFLAGS+set}
723ac_cv_env_CFLAGS_value=$CFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
18f6b6ee
PB
732ac_env_CXX_set=${CXX+set}
733ac_env_CXX_value=$CXX
734ac_cv_env_CXX_set=${CXX+set}
735ac_cv_env_CXX_value=$CXX
736ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737ac_env_CXXFLAGS_value=$CXXFLAGS
738ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_cv_env_CXXFLAGS_value=$CXXFLAGS
9a819804
AO
740ac_env_AR_set=${AR+set}
741ac_env_AR_value=$AR
742ac_cv_env_AR_set=${AR+set}
743ac_cv_env_AR_value=$AR
744ac_env_AS_set=${AS+set}
745ac_env_AS_value=$AS
746ac_cv_env_AS_set=${AS+set}
747ac_cv_env_AS_value=$AS
748ac_env_DLLTOOL_set=${DLLTOOL+set}
749ac_env_DLLTOOL_value=$DLLTOOL
750ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
751ac_cv_env_DLLTOOL_value=$DLLTOOL
752ac_env_LD_set=${LD+set}
753ac_env_LD_value=$LD
754ac_cv_env_LD_set=${LD+set}
755ac_cv_env_LD_value=$LD
756ac_env_LIPO_set=${LIPO+set}
757ac_env_LIPO_value=$LIPO
758ac_cv_env_LIPO_set=${LIPO+set}
759ac_cv_env_LIPO_value=$LIPO
760ac_env_NM_set=${NM+set}
761ac_env_NM_value=$NM
762ac_cv_env_NM_set=${NM+set}
763ac_cv_env_NM_value=$NM
764ac_env_RANLIB_set=${RANLIB+set}
765ac_env_RANLIB_value=$RANLIB
766ac_cv_env_RANLIB_set=${RANLIB+set}
767ac_cv_env_RANLIB_value=$RANLIB
768ac_env_STRIP_set=${STRIP+set}
769ac_env_STRIP_value=$STRIP
770ac_cv_env_STRIP_set=${STRIP+set}
771ac_cv_env_STRIP_value=$STRIP
772ac_env_WINDRES_set=${WINDRES+set}
773ac_env_WINDRES_value=$WINDRES
774ac_cv_env_WINDRES_set=${WINDRES+set}
775ac_cv_env_WINDRES_value=$WINDRES
776ac_env_OBJCOPY_set=${OBJCOPY+set}
777ac_env_OBJCOPY_value=$OBJCOPY
778ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
779ac_cv_env_OBJCOPY_value=$OBJCOPY
780ac_env_OBJDUMP_set=${OBJDUMP+set}
781ac_env_OBJDUMP_value=$OBJDUMP
782ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
783ac_cv_env_OBJDUMP_value=$OBJDUMP
784ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
785ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
786ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
787ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
788ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
789ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
790ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
791ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
792ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
793ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
794ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
795ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
796ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
797ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
798ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
799ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
800ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
801ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
802ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
803ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
804ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
805ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
806ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
807ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
808ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
809ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
810ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
811ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
812ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
813ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
814ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
815ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
816ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
817ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
818ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
819ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
820ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
821ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
822ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
823ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
824ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
825ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
826ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
827ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
828ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
829ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
830ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
831ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
832ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
833ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
834ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
835ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
836ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
837ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
838ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
839ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
840ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
841ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
842ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
843ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
c6b750e1
DJ
844
845#
846# Report the --help message.
847#
848if test "$ac_init_help" = "long"; then
849 # Omit some internal or obsolete options to make the list less imposing.
850 # This message is too long to be a string in the A/UX 3.1 sh.
851 cat <<_ACEOF
852\`configure' configures this package to adapt to many kinds of systems.
853
854Usage: $0 [OPTION]... [VAR=VALUE]...
855
856To assign environment variables (e.g., CC, CFLAGS...), specify them as
857VAR=VALUE. See below for descriptions of some of the useful variables.
858
859Defaults for the options are specified in brackets.
860
861Configuration:
862 -h, --help display this help and exit
863 --help=short display options specific to this package
864 --help=recursive display the short help of all the included packages
865 -V, --version display version information and exit
866 -q, --quiet, --silent do not print \`checking...' messages
867 --cache-file=FILE cache test results in FILE [disabled]
868 -C, --config-cache alias for \`--cache-file=config.cache'
869 -n, --no-create do not create output files
870 --srcdir=DIR find the sources in DIR [configure dir or \`..']
871
872_ACEOF
873
874 cat <<_ACEOF
875Installation directories:
876 --prefix=PREFIX install architecture-independent files in PREFIX
877 [$ac_default_prefix]
878 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
879 [PREFIX]
880
881By default, \`make install' will install all the files in
882\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
883an installation prefix other than \`$ac_default_prefix' using \`--prefix',
884for instance \`--prefix=\$HOME'.
885
886For better control, use the options below.
887
888Fine tuning of the installation directories:
889 --bindir=DIR user executables [EPREFIX/bin]
890 --sbindir=DIR system admin executables [EPREFIX/sbin]
891 --libexecdir=DIR program executables [EPREFIX/libexec]
892 --datadir=DIR read-only architecture-independent data [PREFIX/share]
893 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
894 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
895 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
896 --libdir=DIR object code libraries [EPREFIX/lib]
897 --includedir=DIR C header files [PREFIX/include]
898 --oldincludedir=DIR C header files for non-gcc [/usr/include]
899 --infodir=DIR info documentation [PREFIX/info]
900 --mandir=DIR man documentation [PREFIX/man]
901_ACEOF
902
903 cat <<\_ACEOF
904
905Program names:
906 --program-prefix=PREFIX prepend PREFIX to installed program names
907 --program-suffix=SUFFIX append SUFFIX to installed program names
908 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
909
910System types:
911 --build=BUILD configure for building on BUILD [guessed]
912 --host=HOST cross-compile to build programs to run on HOST [BUILD]
913 --target=TARGET configure for building compilers for TARGET [HOST]
914_ACEOF
a0da8069 915fi
a0da8069 916
c6b750e1
DJ
917if test -n "$ac_init_help"; then
918
919 cat <<\_ACEOF
920
921Optional Features:
922 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
923 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
924 --enable-libada Builds libada directory
925 --enable-libssp Builds libssp directory
926 --enable-stage1-languages=all choose additional languages to build during
927 stage1. Mostly useful for compiler development.
928 --enable-objc-gc enable the use of Boehm's garbage collector with
929 the GNU Objective-C runtime.
930 --enable-bootstrap Enable bootstrapping yes if native build
931 --enable-serial-{host,target,build}-configure
932 Force sequential configuration of
933 sub-packages for the host, target or build
934 machine, or all sub-packages
935 --enable-maintainer-mode enable make rules and dependencies not useful
936 (and sometimes confusing) to the casual installer
937 --enable-stage1-checking=all choose additional checking for stage1
938 of the compiler.
939 --enable-werror enable -Werror in bootstrap stage2 and later
940
941Optional Packages:
942 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
943 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
944 --with-build-libsubdir=DIR Directory where to find libraries for build system
945 --with-mpfr-dir=PATH This option has been REMOVED
946 --with-mpfr=PATH Specify prefix directory for installed MPFR package
947 Equivalent to --with-mpfr-include=PATH/include
948 plus --with-mpfr-lib=PATH/lib
949 --with-mpfr-include=PATH
950 Specify directory for installed MPFR include files
951 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library
952 --with-gmp-dir=PATH This option has been REMOVED
953 --with-gmp=PATH Specify prefix directory for the installed GMP package
954 Equivalent to --with-gmp-include=PATH/include
955 plus --with-gmp-lib=PATH/lib
956 --with-gmp-include=PATH Specify directory for installed GMP include files
957 --with-gmp-lib=PATH Specify the directory for the installed GMP library
958 --with-build-sysroot=sysroot
959 use sysroot as the system root during the build
960 --with-build-time-tools=path
961 use given path to find target tools during the build
962 --with-datarootdir Use datarootdir as the data root directory.
963 --with-docdir Install documentation in this directory.
964 --with-htmldir Install html in this directory.
965
966Some influential environment variables:
967 CC C compiler command
968 CFLAGS C compiler flags
969 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
970 nonstandard directory <lib dir>
971 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
972 headers in a nonstandard directory <include dir>
18f6b6ee
PB
973 CXX C++ compiler command
974 CXXFLAGS C++ compiler flags
9a819804
AO
975 AR AR for the host
976 AS AS for the host
977 DLLTOOL DLLTOOL for the host
978 LD LD for the host
979 LIPO LIPO for the host
980 NM NM for the host
981 RANLIB RANLIB for the host
982 STRIP STRIP for the host
983 WINDRES WINDRES for the host
984 OBJCOPY OBJCOPY for the host
985 OBJDUMP OBJDUMP for the host
986 CC_FOR_TARGET
987 CC for the target
988 CXX_FOR_TARGET
989 CXX for the target
990 GCC_FOR_TARGET
991 GCC for the target
992 GCJ_FOR_TARGET
993 GCJ for the target
994 GFORTRAN_FOR_TARGET
995 GFORTRAN for the target
996 AR_FOR_TARGET
997 AR for the target
998 AS_FOR_TARGET
999 AS for the target
1000 DLLTOOL_FOR_TARGET
1001 DLLTOOL for the target
1002 LD_FOR_TARGET
1003 LD for the target
1004 LIPO_FOR_TARGET
1005 LIPO for the target
1006 NM_FOR_TARGET
1007 NM for the target
1008 OBJDUMP_FOR_TARGET
1009 OBJDUMP for the target
1010 RANLIB_FOR_TARGET
1011 RANLIB for the target
1012 STRIP_FOR_TARGET
1013 STRIP for the target
1014 WINDRES_FOR_TARGET
1015 WINDRES for the target
c6b750e1
DJ
1016
1017Use these variables to override the choices made by `configure' or to help
1018it to find libraries and programs with nonstandard names/locations.
1019
1020_ACEOF
1021fi
1022
1023if test "$ac_init_help" = "recursive"; then
1024 # If there are subdirs, report their specific --help.
1025 ac_popdir=`pwd`
1026 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1027 test -d $ac_dir || continue
1028 ac_builddir=.
1029
1030if test "$ac_dir" != .; then
1031 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1032 # A "../" for each directory in $ac_dir_suffix.
1033 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1034else
1035 ac_dir_suffix= ac_top_builddir=
1036fi
1037
1038case $srcdir in
1039 .) # No --srcdir option. We are building in place.
1040 ac_srcdir=.
1041 if test -z "$ac_top_builddir"; then
1042 ac_top_srcdir=.
1043 else
1044 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1045 fi ;;
1046 [\\/]* | ?:[\\/]* ) # Absolute path.
1047 ac_srcdir=$srcdir$ac_dir_suffix;
1048 ac_top_srcdir=$srcdir ;;
1049 *) # Relative path.
1050 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1051 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1052esac
1053
1054# Do not use `cd foo && pwd` to compute absolute paths, because
1055# the directories may not exist.
1056case `pwd` in
1057.) ac_abs_builddir="$ac_dir";;
1058*)
1059 case "$ac_dir" in
1060 .) ac_abs_builddir=`pwd`;;
1061 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1062 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1063 esac;;
1064esac
1065case $ac_abs_builddir in
1066.) ac_abs_top_builddir=${ac_top_builddir}.;;
1067*)
1068 case ${ac_top_builddir}. in
1069 .) ac_abs_top_builddir=$ac_abs_builddir;;
1070 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1071 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1072 esac;;
1073esac
1074case $ac_abs_builddir in
1075.) ac_abs_srcdir=$ac_srcdir;;
1076*)
1077 case $ac_srcdir in
1078 .) ac_abs_srcdir=$ac_abs_builddir;;
1079 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1080 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1081 esac;;
1082esac
1083case $ac_abs_builddir in
1084.) ac_abs_top_srcdir=$ac_top_srcdir;;
1085*)
1086 case $ac_top_srcdir in
1087 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1088 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1089 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1090 esac;;
1091esac
1092
1093 cd $ac_dir
1094 # Check for guested configure; otherwise get Cygnus style configure.
1095 if test -f $ac_srcdir/configure.gnu; then
1096 echo
1097 $SHELL $ac_srcdir/configure.gnu --help=recursive
1098 elif test -f $ac_srcdir/configure; then
1099 echo
1100 $SHELL $ac_srcdir/configure --help=recursive
1101 elif test -f $ac_srcdir/configure.ac ||
1102 test -f $ac_srcdir/configure.in; then
1103 echo
1104 $ac_configure --help
1105 else
1106 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1107 fi
1108 cd $ac_popdir
1109 done
1110fi
1111
1112test -n "$ac_init_help" && exit 0
1113if $ac_init_version; then
1114 cat <<\_ACEOF
1115
1116Copyright (C) 2003 Free Software Foundation, Inc.
1117This configure script is free software; the Free Software Foundation
1118gives unlimited permission to copy, distribute and modify it.
1119_ACEOF
1120 exit 0
1121fi
1122exec 5>config.log
1123cat >&5 <<_ACEOF
1124This file contains any messages produced by compilers while
1125running configure, to aid debugging if configure makes a mistake.
1126
1127It was created by $as_me, which was
1128generated by GNU Autoconf 2.59. Invocation command line was
1129
1130 $ $0 $@
1131
1132_ACEOF
1133{
1134cat <<_ASUNAME
1135## --------- ##
1136## Platform. ##
1137## --------- ##
1138
1139hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1140uname -m = `(uname -m) 2>/dev/null || echo unknown`
1141uname -r = `(uname -r) 2>/dev/null || echo unknown`
1142uname -s = `(uname -s) 2>/dev/null || echo unknown`
1143uname -v = `(uname -v) 2>/dev/null || echo unknown`
1144
1145/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1146/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1147
1148/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1149/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1150/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1151hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1152/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1153/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1154/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1155
1156_ASUNAME
1157
1158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1159for as_dir in $PATH
1160do
1161 IFS=$as_save_IFS
1162 test -z "$as_dir" && as_dir=.
1163 echo "PATH: $as_dir"
1164done
1165
1166} >&5
1167
1168cat >&5 <<_ACEOF
1169
1170
1171## ----------- ##
1172## Core tests. ##
1173## ----------- ##
1174
1175_ACEOF
1176
1177
1178# Keep a trace of the command line.
1179# Strip out --no-create and --no-recursion so they do not pile up.
1180# Strip out --silent because we don't want to record it for future runs.
1181# Also quote any args containing shell meta-characters.
1182# Make two passes to allow for proper duplicate-argument suppression.
1183ac_configure_args=
1184ac_configure_args0=
1185ac_configure_args1=
1186ac_sep=
1187ac_must_keep_next=false
1188for ac_pass in 1 2
1189do
1190 for ac_arg
1191 do
1192 case $ac_arg in
1193 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1195 | -silent | --silent | --silen | --sile | --sil)
1196 continue ;;
1197 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1198 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1199 esac
1200 case $ac_pass in
1201 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1202 2)
1203 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1204 if test $ac_must_keep_next = true; then
1205 ac_must_keep_next=false # Got value, back to normal.
1206 else
1207 case $ac_arg in
1208 *=* | --config-cache | -C | -disable-* | --disable-* \
1209 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1210 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1211 | -with-* | --with-* | -without-* | --without-* | --x)
1212 case "$ac_configure_args0 " in
1213 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1214 esac
1215 ;;
1216 -* ) ac_must_keep_next=true ;;
1217 esac
1218 fi
1219 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1220 # Get rid of the leading space.
1221 ac_sep=" "
1222 ;;
1223 esac
1224 done
1225done
1226$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1227$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1228
1229# When interrupted or exit'd, cleanup temporary files, and complete
1230# config.log. We remove comments because anyway the quotes in there
1231# would cause problems or look ugly.
1232# WARNING: Be sure not to use single quotes in there, as some shells,
1233# such as our DU 5.0 friend, will then `close' the trap.
1234trap 'exit_status=$?
1235 # Save into config.log some information that might help in debugging.
1236 {
1237 echo
1238
1239 cat <<\_ASBOX
1240## ---------------- ##
1241## Cache variables. ##
1242## ---------------- ##
1243_ASBOX
1244 echo
1245 # The following way of writing the cache mishandles newlines in values,
1246{
1247 (set) 2>&1 |
1248 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1249 *ac_space=\ *)
1250 sed -n \
1251 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1252 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1253 ;;
1254 *)
1255 sed -n \
1256 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1257 ;;
1258 esac;
1259}
1260 echo
1261
1262 cat <<\_ASBOX
1263## ----------------- ##
1264## Output variables. ##
1265## ----------------- ##
1266_ASBOX
1267 echo
1268 for ac_var in $ac_subst_vars
1269 do
1270 eval ac_val=$`echo $ac_var`
1271 echo "$ac_var='"'"'$ac_val'"'"'"
1272 done | sort
1273 echo
1274
1275 if test -n "$ac_subst_files"; then
1276 cat <<\_ASBOX
1277## ------------- ##
1278## Output files. ##
1279## ------------- ##
1280_ASBOX
1281 echo
1282 for ac_var in $ac_subst_files
1283 do
1284 eval ac_val=$`echo $ac_var`
1285 echo "$ac_var='"'"'$ac_val'"'"'"
1286 done | sort
1287 echo
1288 fi
1289
1290 if test -s confdefs.h; then
1291 cat <<\_ASBOX
1292## ----------- ##
1293## confdefs.h. ##
1294## ----------- ##
1295_ASBOX
1296 echo
1297 sed "/^$/d" confdefs.h | sort
1298 echo
1299 fi
1300 test "$ac_signal" != 0 &&
1301 echo "$as_me: caught signal $ac_signal"
1302 echo "$as_me: exit $exit_status"
1303 } >&5
1304 rm -f core *.core &&
1305 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1306 exit $exit_status
1307 ' 0
1308for ac_signal in 1 2 13 15; do
1309 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1310done
1311ac_signal=0
1312
1313# confdefs.h avoids OS command line length limits that DEFS can exceed.
1314rm -rf conftest* confdefs.h
1315# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1316echo >confdefs.h
1317
1318# Predefined preprocessor variables.
1319
1320cat >>confdefs.h <<_ACEOF
1321#define PACKAGE_NAME "$PACKAGE_NAME"
1322_ACEOF
1323
1324
1325cat >>confdefs.h <<_ACEOF
1326#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1327_ACEOF
1328
1329
1330cat >>confdefs.h <<_ACEOF
1331#define PACKAGE_VERSION "$PACKAGE_VERSION"
1332_ACEOF
1333
1334
1335cat >>confdefs.h <<_ACEOF
1336#define PACKAGE_STRING "$PACKAGE_STRING"
1337_ACEOF
1338
1339
1340cat >>confdefs.h <<_ACEOF
1341#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1342_ACEOF
1343
1344
1345# Let the site file select an alternate cache file if it wants to.
a0da8069 1346# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1347if test -z "$CONFIG_SITE"; then
1348 if test "x$prefix" != xNONE; then
1349 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1350 else
1351 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1352 fi
1353fi
1354for ac_site_file in $CONFIG_SITE; do
1355 if test -r "$ac_site_file"; then
c6b750e1
DJ
1356 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1357echo "$as_me: loading site script $ac_site_file" >&6;}
1358 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1359 . "$ac_site_file"
1360 fi
1361done
1362
1363if test -r "$cache_file"; then
c6b750e1
DJ
1364 # Some versions of bash will fail to source /dev/null (special
1365 # files actually), so we avoid doing that.
1366 if test -f "$cache_file"; then
1367 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1368echo "$as_me: loading cache $cache_file" >&6;}
1369 case $cache_file in
1370 [\\/]* | ?:[\\/]* ) . $cache_file;;
1371 *) . ./$cache_file;;
1372 esac
1373 fi
a0da8069 1374else
c6b750e1
DJ
1375 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1376echo "$as_me: creating cache $cache_file" >&6;}
1377 >$cache_file
1378fi
1379
1380# Check that the precious variables saved in the cache have kept the same
1381# value.
1382ac_cache_corrupted=false
1383for ac_var in `(set) 2>&1 |
1384 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1385 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1386 eval ac_new_set=\$ac_env_${ac_var}_set
1387 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1388 eval ac_new_val="\$ac_env_${ac_var}_value"
1389 case $ac_old_set,$ac_new_set in
1390 set,)
1391 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1392echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1393 ac_cache_corrupted=: ;;
1394 ,set)
1395 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1396echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1397 ac_cache_corrupted=: ;;
1398 ,);;
1399 *)
1400 if test "x$ac_old_val" != "x$ac_new_val"; then
1401 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1402echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1403 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1404echo "$as_me: former value: $ac_old_val" >&2;}
1405 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1406echo "$as_me: current value: $ac_new_val" >&2;}
1407 ac_cache_corrupted=:
1408 fi;;
1409 esac
1410 # Pass precious variables to config.status.
1411 if test "$ac_new_set" = set; then
1412 case $ac_new_val in
1413 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1414 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1415 *) ac_arg=$ac_var=$ac_new_val ;;
1416 esac
1417 case " $ac_configure_args " in
1418 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1419 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1420 esac
1421 fi
1422done
1423if $ac_cache_corrupted; then
1424 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1425echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1426 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1427echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1428 { (exit 1); exit 1; }; }
a0da8069
NN
1429fi
1430
1431ac_ext=c
a0da8069 1432ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1435ac_compiler_gnu=$ac_cv_c_compiler_gnu
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
a0da8069
NN
1449
1450
75778ec4 1451
c6b750e1
DJ
1452
1453
1454
1455
1456
1457# Find the build, host, and target systems.
a0da8069 1458ac_aux_dir=
315b3b02 1459for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1460 if test -f $ac_dir/install-sh; then
1461 ac_aux_dir=$ac_dir
1462 ac_install_sh="$ac_aux_dir/install-sh -c"
1463 break
1464 elif test -f $ac_dir/install.sh; then
1465 ac_aux_dir=$ac_dir
1466 ac_install_sh="$ac_aux_dir/install.sh -c"
1467 break
c6b750e1
DJ
1468 elif test -f $ac_dir/shtool; then
1469 ac_aux_dir=$ac_dir
1470 ac_install_sh="$ac_aux_dir/shtool install -c"
1471 break
a0da8069
NN
1472 fi
1473done
1474if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1475 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1476echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1477 { (exit 1); exit 1; }; }
a0da8069 1478fi
c6b750e1
DJ
1479ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1480ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1481ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1482
c6b750e1
DJ
1483# Make sure we can run config.sub.
1484$ac_config_sub sun4 >/dev/null 2>&1 ||
1485 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1486echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1487 { (exit 1); exit 1; }; }
1488
1489echo "$as_me:$LINENO: checking build system type" >&5
1490echo $ECHO_N "checking build system type... $ECHO_C" >&6
1491if test "${ac_cv_build+set}" = set; then
1492 echo $ECHO_N "(cached) $ECHO_C" >&6
1493else
1494 ac_cv_build_alias=$build_alias
1495test -z "$ac_cv_build_alias" &&
1496 ac_cv_build_alias=`$ac_config_guess`
1497test -z "$ac_cv_build_alias" &&
1498 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1499echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1500 { (exit 1); exit 1; }; }
1501ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1502 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1503echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1504 { (exit 1); exit 1; }; }
1505
1506fi
1507echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1508echo "${ECHO_T}$ac_cv_build" >&6
1509build=$ac_cv_build
1510build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1511build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1512build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1513
a0da8069 1514
c6b750e1
DJ
1515 case ${build_alias} in
1516 "") build_noncanonical=${build} ;;
1517 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1518esac
1519
1520
cac3d6c4 1521
c6b750e1
DJ
1522 case ${host_alias} in
1523 "") host_noncanonical=${build_noncanonical} ;;
1524 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1525esac
1526
cac3d6c4 1527
c6b750e1
DJ
1528
1529 case ${target_alias} in
1530 "") target_noncanonical=${host_noncanonical} ;;
1531 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1532esac
1533
cac3d6c4 1534
c6b750e1
DJ
1535
1536
1537test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1538 test "$program_prefix$program_suffix$program_transform_name" = \
1539 NONENONEs,x,x, &&
c6b750e1 1540 program_transform_name=s,y,y,
cac3d6c4 1541
c6b750e1
DJ
1542echo "$as_me:$LINENO: checking host system type" >&5
1543echo $ECHO_N "checking host system type... $ECHO_C" >&6
1544if test "${ac_cv_host+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1546else
c6b750e1
DJ
1547 ac_cv_host_alias=$host_alias
1548test -z "$ac_cv_host_alias" &&
1549 ac_cv_host_alias=$ac_cv_build_alias
1550ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1551 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1552echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1553 { (exit 1); exit 1; }; }
1554
1555fi
1556echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1557echo "${ECHO_T}$ac_cv_host" >&6
1558host=$ac_cv_host
1559host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1560host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1561host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1562
1563
1564echo "$as_me:$LINENO: checking target system type" >&5
1565echo $ECHO_N "checking target system type... $ECHO_C" >&6
1566if test "${ac_cv_target+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1568else
1569 ac_cv_target_alias=$target_alias
1570test "x$ac_cv_target_alias" = "x" &&
1571 ac_cv_target_alias=$ac_cv_host_alias
1572ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1573 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1574echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1575 { (exit 1); exit 1; }; }
1576
cac3d6c4 1577fi
c6b750e1
DJ
1578echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1579echo "${ECHO_T}$ac_cv_target" >&6
1580target=$ac_cv_target
1581target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1582target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1583target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1584
1585
1586# The aliases save the names the user supplied, while $host etc.
1587# will get canonicalized.
1588test -n "$target_alias" &&
1589 test "$program_prefix$program_suffix$program_transform_name" = \
1590 NONENONEs,x,x, &&
1591 program_prefix=${target_alias}-
a0da8069 1592test "$program_prefix" != NONE &&
c6b750e1 1593 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1594# Use a double $ so make ignores it.
1595test "$program_suffix" != NONE &&
c6b750e1
DJ
1596 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1597# Double any \ or $. echo might interpret backslashes.
1598# By default was `s,x,x', remove it if useless.
1599cat <<\_ACEOF >conftest.sed
1600s/[\\$]/&&/g;s/;s,x,x,$//
1601_ACEOF
1602program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1603rm conftest.sed
cac3d6c4 1604
a0da8069
NN
1605
1606
e5c3f801
NN
1607# Get 'install' or 'install-sh' and its variants.
1608# Find a good install program. We prefer a C program (faster),
1609# so one script is as good as another. But avoid the broken or
1610# incompatible versions:
1611# SysV /etc/install, /usr/sbin/install
1612# SunOS /usr/etc/install
1613# IRIX /sbin/install
1614# AIX /bin/install
c6b750e1 1615# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1616# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1617# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1618# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1619# OS/2's system install, which has a completely different semantic
e5c3f801 1620# ./install, which can be erroneously created by make from ./install.sh.
c6b750e1
DJ
1621echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1622echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1623if test -z "$INSTALL"; then
c6b750e1
DJ
1624if test "${ac_cv_path_install+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626else
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628for as_dir in $PATH
1629do
1630 IFS=$as_save_IFS
1631 test -z "$as_dir" && as_dir=.
1632 # Account for people who put trailing slashes in PATH elements.
1633case $as_dir/ in
1634 ./ | .// | /cC/* | \
1635 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1636 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1637 /usr/ucb/* ) ;;
1638 *)
1639 # OSF1 and SCO ODT 3.0 have their own names for install.
1640 # Don't use installbsd from OSF since it installs stuff as root
1641 # by default.
1642 for ac_prog in ginstall scoinst install; do
1643 for ac_exec_ext in '' $ac_executable_extensions; do
1644 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1645 if test $ac_prog = install &&
c6b750e1 1646 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1647 # AIX install. It has an incompatible calling convention.
1648 :
c6b750e1
DJ
1649 elif test $ac_prog = install &&
1650 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1651 # program-specific install script used by HP pwplus--don't use.
1652 :
e5c3f801 1653 else
c6b750e1
DJ
1654 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1655 break 3
e5c3f801
NN
1656 fi
1657 fi
1658 done
c6b750e1
DJ
1659 done
1660 ;;
1661esac
1662done
1663
e5c3f801
NN
1664
1665fi
1666 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1667 INSTALL=$ac_cv_path_install
e5c3f801
NN
1668 else
1669 # As a last resort, use the slow shell script. We don't cache a
1670 # path for INSTALL within a source directory, because that will
1671 # break other packages using the cache if that directory is
1672 # removed, or if the path is relative.
c6b750e1 1673 INSTALL=$ac_install_sh
e5c3f801
NN
1674 fi
1675fi
c6b750e1
DJ
1676echo "$as_me:$LINENO: result: $INSTALL" >&5
1677echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1678
1679# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1680# It thinks the first close brace ends the variable substitution.
1681test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1682
c6b750e1 1683test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1684
1685test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1686
c6b750e1
DJ
1687echo "$as_me:$LINENO: checking whether ln works" >&5
1688echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1689if test "${acx_cv_prog_LN+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1691else
1692 rm -f conftestdata_t
1693echo >conftestdata_f
1694if ln conftestdata_f conftestdata_t 2>/dev/null
1695then
1696 acx_cv_prog_LN=ln
1697else
1698 acx_cv_prog_LN=no
1699fi
1700rm -f conftestdata_f conftestdata_t
1701
1702fi
1703if test $acx_cv_prog_LN = no; then
1704 LN="cp"
c6b750e1
DJ
1705 echo "$as_me:$LINENO: result: no, using $LN" >&5
1706echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1707else
1708 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1709 echo "$as_me:$LINENO: result: yes" >&5
1710echo "${ECHO_T}yes" >&6
656fdd47
PB
1711fi
1712
c6b750e1
DJ
1713echo "$as_me:$LINENO: checking whether ln -s works" >&5
1714echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1715LN_S=$as_ln_s
1716if test "$LN_S" = "ln -s"; then
1717 echo "$as_me:$LINENO: result: yes" >&5
1718echo "${ECHO_T}yes" >&6
cac3d6c4 1719else
c6b750e1
DJ
1720 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1721echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1722fi
1723
e5c3f801 1724
252b5132 1725### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1726### If we are on Windows, search for the shell. This will permit people
1727### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1728### without also having to set CONFIG_SHELL. This code will work when
1729### using bash, which sets OSTYPE.
1730case "${OSTYPE}" in
1731*win32*)
a0da8069
NN
1732 if test x${CONFIG_SHELL} = x ; then
1733 if test ! -f /bin/sh ; then
1734 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1735 CONFIG_SHELL=${SHELL}
1736 export CONFIG_SHELL
1737 else
1738 for prog in sh sh.exe bash bash.exe; do
1739 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1740 for dir in $PATH; do
1741 test -z "$dir" && dir=.
1742 if test -f $dir/$prog; then
1743 CONFIG_SHELL=$dir/$prog
1744 export CONFIG_SHELL
1745 break
1746 fi
1747 done
1748 IFS="$save_ifs"
1749 test -n "${CONFIG_SHELL}" && break
1750 done
1751 fi
1752 fi
1753 fi
1754 ;;
1755esac
1756
1757config_shell=${CONFIG_SHELL-/bin/sh}
1758
252b5132
RH
1759progname=$0
1760# if PWD already has a value, it is probably wrong.
a0da8069 1761if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
252b5132 1762
92f01d61
JM
1763# Export original configure arguments for use by sub-configures.
1764# Quote arguments with shell meta charatcers.
1765TOPLEVEL_CONFIGURE_ARGUMENTS=
1766set -- "$progname" "$@"
a4708fba
JM
1767for ac_arg
1768do
92f01d61
JM
1769 case "$ac_arg" in
1770 *" "*|*" "*|*\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?*)
1771 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1772 # if the argument is of the form -foo=baz, quote the baz part only
1773 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1774 *) ;;
1775 esac
1776 # Add the quoted argument to the list.
1777 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1778done
1779# Remove the initial space we just introduced and, as these will be
1780# expanded by make, quote '$'.
1781TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
586c0873 1782
75205f78 1783
a0da8069 1784moveifchange=${srcdir}/move-if-change
252b5132 1785
0fdbe983
DJ
1786srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1787
1788# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1789# a relative path.
1790if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1791 INSTALL="${srcpwd}/install-sh -c"
1792fi
1793
a0da8069
NN
1794# Set srcdir to "." if that's what it is.
1795# This is important for multilib support.
1796pwd=`${PWDCMD-pwd}`
a0da8069
NN
1797if test "${pwd}" = "${srcpwd}" ; then
1798 srcdir=.
252b5132
RH
1799fi
1800
a0da8069 1801topsrcdir=$srcpwd
252b5132 1802
a0da8069 1803extra_host_args=
afefada0 1804
a0da8069
NN
1805### To add a new directory to the tree, first choose whether it is a target
1806### or a host dependent tool. Then put it into the appropriate list
1807### (library or tools, host or target), doing a dependency sort.
252b5132 1808
c6b750e1 1809# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1810# configdirs, or target_configdirs; see the serialization section below.
252b5132 1811
c6b750e1
DJ
1812# Dependency sorting is only needed when *configuration* must be done in
1813# a particular order. In all cases a dependency should be specified in
a0da8069 1814# the Makefile, whether or not it's implicitly specified here.
252b5132 1815
a0da8069
NN
1816# Double entries in build_configdirs, configdirs, or target_configdirs may
1817# cause circular dependencies and break everything horribly.
252b5132 1818
6a9cf61e
PB
1819# these library is used by various programs built for the build
1820# environment
1821#
1822build_libs="build-libiberty"
1823
1824# these tools are built for the build environment
ee025550 1825build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1826
a0da8069
NN
1827# these libraries are used by various programs built for the host environment
1828#
4b900473 1829host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
a0da8069 1830
a0da8069
NN
1831# these tools are built for the host environment
1832# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1833# know that we are building the simulator.
1834# binutils, gas and ld appear in that order because it makes sense to run
1835# "make check" in that particular order.
b00612cc 1836host_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
1837
1838# libgcj represents the runtime libraries only used by gcj.
1839libgcj="target-libffi \
a0da8069
NN
1840 target-zlib \
1841 target-qthreads \
1842 target-libjava"
1843
1844# these libraries are built for the target environment, and are built after
1845# the host libraries and the host tools (which may be a cross compiler)
1846#
b1299c4e
DJ
1847target_libraries="target-libgcc \
1848 target-libiberty \
a0da8069
NN
1849 target-libgloss \
1850 target-newlib \
b9459e83 1851 target-libstdc++-v3 \
4b1cb4fe 1852 target-libmudflap \
bb780410 1853 target-libssp \
4b1cb4fe 1854 target-libgfortran \
4f0ef2d8 1855 target-boehm-gc \
83326456 1856 ${libgcj} \
a2592b1b 1857 target-libobjc \
b3ded179
PB
1858 target-libada \
1859 target-libgomp"
a0da8069 1860
9c14acb8
NN
1861# these tools are built using the target libraries, and are intended to
1862# run only in the target environment
a0da8069 1863#
9c14acb8 1864# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1865# list belongs in this list. those programs are also very likely
1866# candidates for the "native_only" list which follows
1867#
a3dd767d 1868target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1869
a0da8069 1870################################################################################
252b5132 1871
a0da8069
NN
1872## All tools belong in one of the four categories, and are assigned above
1873## We assign ${configdirs} this way to remove all embedded newlines. This
1874## is important because configure will choke if they ever get through.
1875## ${configdirs} is directories we build using the host tools.
1876## ${target_configdirs} is directories we build using the target tools.
a0da8069 1877configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1878target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1879build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1880
a0da8069 1881################################################################################
252b5132 1882
a0da8069 1883srcname="gnu development package"
252b5132 1884
a0da8069
NN
1885# This gets set non-empty for some net releases of packages.
1886appdirs=""
252b5132 1887
a0da8069
NN
1888# Define is_cross_compiler to save on calls to 'test'.
1889is_cross_compiler=
1890if test x"${host}" = x"${target}" ; then
1891 is_cross_compiler=no
252b5132 1892else
a0da8069 1893 is_cross_compiler=yes
c6b750e1 1894fi
252b5132 1895
9175bfc0 1896# Find the build and target subdir names.
dd12c3a8 1897
66a79c16
DJ
1898# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1899# have matching libraries, they should use host libraries: Makefile.tpl
1900# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1901# However, they still use the build modules, because the corresponding
1902# host modules (e.g. bison) are only built for the host when bootstrap
1903# finishes. So:
1904# - build_subdir is where we find build modules, and never changes.
1905# - build_libsubdir is where we find build libraries, and can be overridden.
1906
1907# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1908build_subdir="build-${build_noncanonical}"
c6b750e1 1909
66a79c16
DJ
1910# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1911if test "${with_build_libsubdir+set}" = set; then
1912 withval="$with_build_libsubdir"
1913 build_libsubdir="$withval"
1914else
1915 build_libsubdir="$build_subdir"
c6b750e1 1916fi;
b00612cc
PB
1917# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1918if ( test $srcdir = . && test -d gcc ) \
1919 || test -d $srcdir/../host-${host_noncanonical}; then
1920 host_subdir="host-${host_noncanonical}"
1921else
1922 host_subdir=.
1923fi
dd12c3a8
NN
1924# No prefix.
1925target_subdir=${target_noncanonical}
c6b750e1 1926
252b5132 1927
a0da8069
NN
1928# Skipdirs are removed silently.
1929skipdirs=
1930# Noconfigdirs are removed loudly.
1931noconfigdirs=""
252b5132 1932
a0da8069
NN
1933use_gnu_ld=
1934# Make sure we don't let GNU ld be added if we didn't want it.
1935if test x$with_gnu_ld = xno ; then
1936 use_gnu_ld=no
1937 noconfigdirs="$noconfigdirs ld"
252b5132
RH
1938fi
1939
a0da8069
NN
1940use_gnu_as=
1941# Make sure we don't let GNU as be added if we didn't want it.
1942if test x$with_gnu_as = xno ; then
1943 use_gnu_as=no
1944 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1945fi
1946
c6b750e1 1947# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1948# it's not even worth trying to configure, much less build, that tool.
252b5132 1949
a0da8069
NN
1950case ${with_x} in
1951 yes | "") ;; # the default value for this tree is that X11 is available
1952 no)
675c6968 1953 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 1954 # We won't be able to build gdbtk without X.
c6b750e1 1955 enable_gdbtk=no
a0da8069
NN
1956 ;;
1957 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1958esac
252b5132 1959
a0da8069 1960# Some tools are only suitable for building in a "native" situation.
c6b750e1 1961# Remove these if host!=target.
701628f5 1962native_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 1963
a0da8069
NN
1964# Similarly, some are only suitable for cross toolchains.
1965# Remove these if host=target.
1966cross_only="target-libgloss target-newlib target-opcodes"
1967
1968case $is_cross_compiler in
1969 no) skipdirs="${skipdirs} ${cross_only}" ;;
1970 yes) skipdirs="${skipdirs} ${native_only}" ;;
1971esac
252b5132 1972
a0da8069
NN
1973# If both --with-headers and --with-libs are specified, default to
1974# --without-newlib.
32be62b5
RS
1975if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1976 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
1977 if test x"${with_newlib}" = x ; then
1978 with_newlib=no
1979 fi
252b5132
RH
1980fi
1981
a0da8069
NN
1982# Recognize --with-newlib/--without-newlib.
1983case ${with_newlib} in
1984 no) skipdirs="${skipdirs} target-newlib" ;;
1985 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1986esac
252b5132 1987
a0da8069 1988# Configure extra directories which are host specific
252b5132 1989
a0da8069
NN
1990case "${host}" in
1991 *-cygwin*)
1992 configdirs="$configdirs libtermcap" ;;
1993esac
252b5132 1994
59f7ec45
HPN
1995# A target can indicate whether a language isn't supported for some reason.
1996# Only spaces may be used in this macro; not newlines or tabs.
1997unsupported_languages=
1998
c6b750e1 1999# Remove more programs from consideration, based on the host or
a0da8069
NN
2000# target this usually means that a port of the program doesn't
2001# exist yet.
252b5132 2002
a0da8069
NN
2003case "${host}" in
2004 hppa*64*-*-*)
2005 noconfigdirs="$noconfigdirs byacc"
2006 ;;
ec11bdc6 2007 i[3456789]86-*-vsta)
675c6968 2008 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2009 ;;
ec11bdc6 2010 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2011 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2012 ;;
2d1e8239
NC
2013 x86_64-*-mingw*)
2014 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2015 ;;
ec11bdc6 2016 i[3456789]86-*-mingw32*)
675c6968 2017 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2018 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2019 ;;
ec11bdc6 2020 i[3456789]86-*-beos*)
675c6968 2021 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2022 ;;
a0da8069 2023 *-*-cygwin*)
a92834c8 2024 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2025 ;;
2026 *-*-netbsd*)
a92834c8 2027 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2028 ;;
2029 ppc*-*-pe)
675c6968 2030 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2031 ;;
2032 powerpc-*-beos*)
675c6968 2033 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2034 ;;
a0da8069 2035esac
252b5132 2036
4b1cb4fe 2037
a2592b1b
DD
2038# Check whether --enable-libada or --disable-libada was given.
2039if test "${enable_libada+set}" = set; then
2040 enableval="$enable_libada"
2041 ENABLE_LIBADA=$enableval
2042else
2043 ENABLE_LIBADA=yes
c6b750e1 2044fi;
a2592b1b 2045if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2046 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2047fi
2048
5f128533
KH
2049# Check whether --enable-libssp or --disable-libssp was given.
2050if test "${enable_libssp+set}" = set; then
2051 enableval="$enable_libssp"
2052 ENABLE_LIBSSP=$enableval
2053else
2054 ENABLE_LIBSSP=yes
c6b750e1 2055fi;
5f128533 2056
a0da8069
NN
2057# Save it here so that, even in case of --enable-libgcj, if the Java
2058# front-end isn't enabled, we still get libgcj disabled.
2059libgcj_saved=$libgcj
2060case $enable_libgcj in
2061yes)
2062 # If we reset it here, it won't get added to noconfigdirs in the
2063 # target-specific build rules, so it will be forcibly enabled
2064 # (unless the Java language itself isn't enabled).
2065 libgcj=
2066 ;;
2067no)
2068 # Make sure we get it printed in the list of not supported target libs.
2069 noconfigdirs="$noconfigdirs ${libgcj}"
2070 ;;
2071esac
252b5132 2072
4b1cb4fe 2073
a6df5a19
PB
2074# Disable libmudflap on some systems.
2075if test x$enable_libmudflap = x ; then
3e707e94 2076 case "${target}" in
b3ded179 2077 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
3d6dfe0f 2078 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2079 ;;
2080 *-*-freebsd*)
2081 # Enable libmudflap by default in FreeBSD.
2082 ;;
2083 *)
2084 # Disable it by default everywhere else.
2085 noconfigdirs="$noconfigdirs target-libmudflap"
2086 ;;
2087 esac
a6df5a19 2088fi
4b1cb4fe 2089
a6df5a19
PB
2090# Disable libgomp on non POSIX hosted systems.
2091if test x$enable_libgomp = x ; then
b3ded179
PB
2092 # Enable libgomp by default on hosted POSIX systems.
2093 case "${target}" in
2094 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2095 ;;
2096 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2097 ;;
64ce424c 2098 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2099 ;;
2100 *-*-darwin* | *-*-aix*)
2101 ;;
2102 *)
2103 noconfigdirs="$noconfigdirs target-libgomp"
2104 ;;
2105 esac
a6df5a19 2106fi
b3ded179 2107
4b1cb4fe 2108
a0da8069
NN
2109case "${target}" in
2110 *-*-chorusos)
54d1c879 2111 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2112 ;;
790c0838 2113 powerpc-*-darwin* | i[3456789]86-*-darwin*)
b3f16a9b 2114 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 2115 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2116 ;;
04d1ab34 2117 *-*-darwin*)
d320aacb 2118 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2119 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2120 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2121 ;;
a0da8069 2122 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2123 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2124 ;;
de0b4a87 2125 *-*-freebsd*)
4b1cb4fe
DD
2126 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2127 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2128 && test -f /usr/local/include/gmp.h; then
2129 with_gmp=/usr/local
2130 fi
2131
2132 # Skip some stuff that's unsupported on some FreeBSD configurations.
2133 case "${target}" in
2134 i*86-*-*) ;;
2135 alpha*-*-*) ;;
2136 *)
54d1c879 2137 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2138 ;;
2139 esac
2140 ;;
f8a495c8
NC
2141 *-*-kaos*)
2142 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2143 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2144 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2145 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2146 noconfigdirs="$noconfigdirs target-libgloss"
2147 ;;
a0da8069
NN
2148 *-*-netbsd*)
2149 # Skip some stuff on all NetBSD configurations.
2150 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2151
2152 # Skip some stuff that's unsupported on some NetBSD configurations.
2153 case "${target}" in
2154 i*86-*-netbsdelf*) ;;
5b474aa8 2155 arm*-*-netbsdelf*) ;;
a0da8069 2156 *)
54d1c879 2157 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2158 ;;
2159 esac
2160 ;;
2a3124ca 2161 *-*-netware*)
54d1c879 2162 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2163 ;;
2164 *-*-rtems*)
54d1c879 2165 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2166 ;;
1587117a
EC
2167 # The tpf target doesn't support gdb yet.
2168 *-*-tpf*)
54d1c879 2169 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2170 ;;
c1968181 2171 *-*-uclinux*)
54d1c879 2172 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2173 ;;
a0da8069 2174 *-*-vxworks*)
54d1c879 2175 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2176 ;;
2177 alpha*-dec-osf*)
2178 # ld works, but does not support shared libraries.
2179 # newlib is not 64 bit ready. I'm not sure about fileutils.
2180 # gas doesn't generate exception information.
2181 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2182 ;;
2183 alpha*-*-*vms*)
54d1c879 2184 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2185 ;;
2186 alpha*-*-linux*)
2187 # newlib is not 64 bit ready
2188 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2189 ;;
a0da8069
NN
2190 alpha*-*-*)
2191 # newlib is not 64 bit ready
54d1c879 2192 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2193 ;;
4a18bd6b 2194 am33_2.0-*-linux*)
54d1c879 2195 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2196 ;;
a0da8069 2197 sh-*-linux*)
54d1c879 2198 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2199 ;;
a0da8069 2200 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2201 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2202 noconfigdirs="$noconfigdirs target-examples"
2203 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2204 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2205 noconfigdirs="$noconfigdirs expect dejagnu"
2206 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2207 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2208 noconfigdirs="$noconfigdirs target-newlib"
2209 case "${host}" in
2210 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2211 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2212 ;;
2213 esac
2214 ;;
2215 arc-*-*)
54d1c879 2216 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2217 ;;
caeba88f 2218 arm-semi-aof )
caeba88f 2219 ;;
a0da8069 2220 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2221 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2222 ;;
11b04d1f 2223 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069
NN
2224 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2225 ;;
bd70a46f
KH
2226 arm*-*-linux-gnueabi)
2227 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2228 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2229 ;;
df4a6958 2230 arm*-*-symbianelf*)
54d1c879 2231 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
df4a6958 2232 ;;
a0da8069 2233 arm-*-pe*)
54d1c879 2234 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2235 ;;
a0da8069 2236 thumb-*-coff)
54d1c879 2237 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2238 ;;
2239 thumb-*-elf)
54d1c879 2240 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2241 ;;
a0da8069 2242 thumb-*-pe)
54d1c879 2243 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2244 ;;
2245 arm-*-riscix*)
54d1c879 2246 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2247 ;;
2248 avr-*-*)
54d1c879 2249 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2250 ;;
376a0e54 2251 bfin-*-*)
00d89675 2252 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2253 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2254 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2255 fi
2256 ;;
a0da8069 2257 c4x-*-* | tic4x-*-*)
54d1c879 2258 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2259 ;;
2260 c54x*-*-* | tic54x-*-*)
54d1c879 2261 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2262 ;;
c7e66c6d 2263 cris-*-* | crisv32-*-*)
59f7ec45 2264 unsupported_languages="$unsupported_languages java"
c7e66c6d 2265 case "${target}" in
2faa2958 2266 *-*-aout)
096f7d00 2267 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2268 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2269 *-*-elf)
096f7d00 2270 unsupported_languages="$unsupported_languages fortran"
5e818318 2271 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2272 *-*-linux*)
5e818318 2273 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2274 *)
096f7d00 2275 unsupported_languages="$unsupported_languages fortran"
54d1c879 2276 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2277 esac
a0da8069 2278 ;;
3e707e94 2279 crx-*-*)
54d1c879 2280 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2281 ;;
a0da8069 2282 d10v-*-*)
54d1c879 2283 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2284 ;;
2285 d30v-*-*)
54d1c879 2286 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2287 ;;
2288 fr30-*-elf*)
54d1c879 2289 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2290 ;;
2291 frv-*-*)
54d1c879 2292 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2293 ;;
2294 h8300*-*-*)
54d1c879 2295 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2296 ;;
2297 h8500-*-*)
54d1c879 2298 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2299 ;;
caeba88f 2300 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2301 ;;
a0da8069
NN
2302 hppa*64*-*-linux* | parisc*64*-*-linux*)
2303 # In this case, it's because the hppa64-linux target is for
2304 # the kernel only at this point and has no libc, and thus no
2305 # headers, crt*.o, etc., all of which are needed by these.
2306 noconfigdirs="$noconfigdirs target-zlib"
2307 ;;
5dcac624
DA
2308 parisc*-*-linux* | hppa*-*-linux*)
2309 ;;
a0da8069 2310 hppa*-*-*elf* | \
a0da8069
NN
2311 hppa*-*-lites* | \
2312 hppa*-*-openbsd* | \
2313 hppa*64*-*-*)
54d1c879 2314 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2315 ;;
2316 hppa*-hp-hpux11*)
2317 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069
NN
2318 ;;
2319 hppa*-*-*)
2320 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2321 # build on HP-UX 10.20.
54d1c879 2322 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2323 ;;
b07c2aad 2324 i960-*-*)
54d1c879 2325 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2326 ;;
a0da8069
NN
2327 ia64*-*-elf*)
2328 # No gdb support yet.
675c6968 2329 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2330 ;;
2331 ia64*-**-hpux*)
2332 # No gdb or ld support yet.
54d1c879 2333 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2334 ;;
caeba88f 2335 i370-*-opened*)
caeba88f 2336 ;;
ec11bdc6 2337 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2338 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2339 ;;
ec11bdc6 2340 i[3456789]86-*-linux*)
a0da8069
NN
2341 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2342 # not build java stuff by default.
2343 case "${target}" in
2344 *-*-*libc1*)
54d1c879 2345 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2346 esac
2347
2348 # This section makes it possible to build newlib natively on linux.
2349 # If we are using a cross compiler then don't configure newlib.
2350 if test x${is_cross_compiler} != xno ; then
bba45b8b 2351 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2352 fi
2353 noconfigdirs="$noconfigdirs target-libgloss"
2354 # If we are not using a cross compiler, do configure newlib.
2355 # Note however, that newlib will only be configured in this situation
2356 # if the --with-newlib option has been given, because otherwise
2357 # 'target-newlib' will appear in skipdirs.
2358 ;;
ec11bdc6 2359 i[3456789]86-*-mingw32*)
45055374
CV
2360 target_configdirs="$target_configdirs target-winsup"
2361 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2362 ;;
2d1e8239
NC
2363 x86_64-*-mingw*)
2364 target_configdirs="$target_configdirs target-winsup"
2365 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2366 ;;
a0da8069
NN
2367 *-*-cygwin*)
2368 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2369 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2370 # always build newlib if winsup directory is present.
45055374 2371 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2372 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2373 elif test -d "$srcdir/newlib"; then
45055374 2374 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2375 fi
c6b750e1 2376 ;;
caeba88f
AL
2377 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2378 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2379 ;;
ec11bdc6 2380 i[3456789]86-*-pe)
54d1c879 2381 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2382 ;;
ec11bdc6 2383 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2384 # The linker does not yet know about weak symbols in COFF,
2385 # and is not configured to handle mixed ELF and COFF.
54d1c879 2386 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2387 ;;
ec11bdc6 2388 i[3456789]86-*-sco*)
54d1c879 2389 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2390 ;;
ec11bdc6 2391 i[3456789]86-*-solaris2*)
a0da8069
NN
2392 noconfigdirs="$noconfigdirs target-libgloss"
2393 ;;
ec11bdc6 2394 i[3456789]86-*-sysv4*)
54d1c879 2395 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2396 ;;
ec11bdc6 2397 i[3456789]86-*-beos*)
54d1c879 2398 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2399 ;;
b59bea8a 2400 i[3456789]86-*-rdos*)
2429c060
PB
2401 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2402 ;;
b07c2aad 2403 m32r-*-*)
54d1c879 2404 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2405 ;;
a0da8069 2406 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2407 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2408 ;;
2409 m68k-*-elf*)
54d1c879 2410 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2411 ;;
2412 m68k-*-coff*)
54d1c879 2413 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2414 ;;
2415 mcore-*-pe*)
2416 # The EPOC C++ environment does not support exceptions or rtti,
2417 # and so building libstdc++-v3 tends not to always work.
2418 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2419 ;;
2420 mmix-*-*)
59f7ec45 2421 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2422 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2423 ;;
2424 mn10200-*-*)
54d1c879 2425 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2426 ;;
2427 mn10300-*-*)
54d1c879 2428 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2429 ;;
4970f871 2430 mt-*-*)
cdb9b172
AH
2431 noconfigdirs="$noconfigdirs sim"
2432 ;;
a0da8069
NN
2433 powerpc-*-aix*)
2434 # copied from rs6000-*-* entry
54d1c879 2435 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2436 ;;
2437 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2438 target_configdirs="$target_configdirs target-winsup"
54d1c879 2439 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2440 # always build newlib.
2441 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2442 ;;
2443 # This is temporary until we can link against shared libraries
2444 powerpcle-*-solaris*)
54d1c879 2445 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
a0da8069
NN
2446 ;;
2447 powerpc-*-beos*)
54d1c879 2448 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2449 ;;
a0da8069 2450 powerpc-*-eabi)
54d1c879 2451 noconfigdirs="$noconfigdirs ${libgcj}"
caeba88f
AL
2452 ;;
2453 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
a0da8069 2454 ;;
a0da8069 2455 rs6000-*-lynxos*)
54d1c879 2456 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2457 ;;
2458 rs6000-*-aix*)
54d1c879 2459 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2460 ;;
2461 rs6000-*-*)
54d1c879 2462 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2463 ;;
2464 m68k-apollo-*)
54d1c879 2465 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069
NN
2466 ;;
2467 mips*-*-irix5*)
54d1c879 2468 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2469 ;;
2470 mips*-*-irix6*)
a0da8069
NN
2471 # Linking libjava exceeds command-line length limits on at least
2472 # IRIX 6.2, but not on IRIX 6.5.
2473 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2474 # <oldham@codesourcery.com>
54d1c879 2475 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2476 ;;
a0da8069 2477 mips*-*-bsd*)
54d1c879 2478 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2479 ;;
1712ab83 2480 mips64*-*-linux*)
f3529cf1 2481 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1712ab83 2482 ;;
a0da8069
NN
2483 mips*-*-linux*)
2484 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2485 ;;
2486 mips*-*-*)
54d1c879 2487 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2488 ;;
2489 romp-*-*)
54d1c879 2490 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2491 ;;
dbf85af7 2492 sh-*-* | sh64-*-*)
a0da8069 2493 case "${host}" in
ec11bdc6
DD
2494 i[3456789]86-*-vsta) ;; # don't add gprof back in
2495 i[3456789]86-*-go32*) ;; # don't add gprof back in
2496 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2497 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2498 esac
54d1c879 2499 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2500 ;;
a0da8069 2501 sparc-*-elf*)
54d1c879 2502 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2503 ;;
2504 sparc64-*-elf*)
54d1c879 2505 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2506 ;;
2507 sparclite-*-*)
54d1c879 2508 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2509 ;;
2510 sparc-*-sunos4*)
54d1c879 2511 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2512 if test x${is_cross_compiler} != xno ; then
2513 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2514 else
2515 use_gnu_ld=no
2516 fi
2517 ;;
e3c770b1 2518 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2519 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2520 ;;
a0da8069
NN
2521 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2522 ;;
2839fe5d
BE
2523 spu-*-*)
2524 skipdirs="target-libssp"
2525 ;;
a0da8069 2526 v810-*-*)
54d1c879 2527 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2528 ;;
2529 v850-*-*)
54d1c879 2530 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2531 ;;
2532 v850e-*-*)
54d1c879 2533 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2534 ;;
2535 v850ea-*-*)
54d1c879 2536 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2537 ;;
2538 vax-*-vms)
54d1c879 2539 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2540 ;;
2541 vax-*-*)
54d1c879 2542 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2543 ;;
fbd1054d 2544 xtensa-*-*)
54d1c879 2545 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2546 ;;
a0da8069 2547 ip2k-*-*)
54d1c879 2548 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2549 ;;
de0b4a87 2550 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2551 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2552 ;;
2553 *-*-lynxos*)
54d1c879 2554 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2555 ;;
a0da8069 2556 *-*-*)
54d1c879 2557 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2558 ;;
2559esac
252b5132 2560
a0da8069
NN
2561# If we aren't building newlib, then don't build libgloss, since libgloss
2562# depends upon some newlib header files.
2563case "${noconfigdirs}" in
2564 *target-libgloss*) ;;
2565 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2566esac
2567
a0da8069
NN
2568# Work in distributions that contain no compiler tools, like Autoconf.
2569tentative_cc=""
2570host_makefile_frag=/dev/null
2571if test -d ${srcdir}/config ; then
2572case "${host}" in
2573 m68k-hp-hpux*)
2574 # Avoid "too much defining" errors from HPUX compiler.
2575 tentative_cc="cc -Wp,-H256000"
2576 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2577 # If it's HP/UX ar, this should be harmless.
2578 RANLIB="ar ts"
2579 ;;
2580 m68k-apollo-sysv*)
2581 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2582 ;;
2583 m68k-apollo-bsd*)
2584 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2585 # chokes on bfd, the compiler won't let you assign integers to enums, and
2586 # other problems. Defining CC to gcc is a questionable way to say "don't use
2587 # the apollo compiler" (the preferred version of GCC could be called cc,
2588 # or whatever), but I'm not sure leaving CC as cc is any better...
2589 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2590 # Used to have BISON=yacc.
2591 tentative_cc=gcc
2592 ;;
2593 m88k-dg-dgux*)
2594 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2595 ;;
2596 m88k-harris-cxux*)
2597 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2598 tentative_cc="cc -Xa"
2599 host_makefile_frag="config/mh-cxux"
2600 ;;
2601 m88k-motorola-sysv*)
2602 ;;
2603 mips*-dec-ultrix*)
2604 tentative_cc="cc -Wf,-XNg1000"
2605 host_makefile_frag="config/mh-decstation"
2606 ;;
2607 mips*-nec-sysv4*)
2608 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2609 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2610 host_makefile_frag="config/mh-necv4"
2611 ;;
2612 mips*-sgi-irix4*)
2613 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2614 # environment. Also bump switch table size so that cp-parse will
2615 # compile. Bump string length limit so linker builds.
2616 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2617 ;;
2618 mips*-*-sysv4*)
2619 host_makefile_frag="config/mh-sysv4"
2620 ;;
2621 mips*-*-sysv*)
2622 # This is for a MIPS running RISC/os 4.52C.
2623
2624 # This is needed for GDB, but needs to be in the top-level make because
2625 # if a library is compiled with the bsd headers and gets linked with the
2626 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2627 # a different size).
2628 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2629 # known except to select the sysv environment. Could we use /proc instead?
2630 # These "sysv environments" and "bsd environments" often end up being a pain.
2631 #
2632 # This is not part of CFLAGS because perhaps not all C compilers have this
2633 # option.
2634 tentative_cc="cc -systype sysv"
2635 ;;
2636 i370-ibm-opened*)
2637 tentative_cc="c89"
2638 ;;
ec11bdc6 2639 i[3456789]86-*-sysv5*)
a0da8069
NN
2640 host_makefile_frag="config/mh-sysv5"
2641 ;;
ec11bdc6 2642 i[3456789]86-*-dgux*)
a0da8069
NN
2643 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2644 host_makefile_frag="config/mh-dgux386"
2645 ;;
ec11bdc6 2646 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2647 # The MetaWare compiler will generate a copyright message unless you
2648 # turn it off by adding the -Hnocopyr flag.
2649 tentative_cc="cc -Hnocopyr"
2650 ;;
ec11bdc6 2651 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2652 # for an NCR 3000 (i486/SVR4) system.
2653 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2654 # This compiler not only emits obnoxious copyright messages every time
2655 # you run it, but it chokes and dies on a whole bunch of GNU source
2656 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2657 tentative_cc="/usr/ccs/ATT/cc"
2658 host_makefile_frag="config/mh-ncr3000"
2659 ;;
ec11bdc6 2660 i[3456789]86-*-sco3.2v5*)
a0da8069 2661 ;;
ec11bdc6 2662 i[3456789]86-*-sco*)
a0da8069
NN
2663 # The native C compiler botches some simple uses of const. Unfortunately,
2664 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2665 tentative_cc="cc -Dconst="
2666 host_makefile_frag="config/mh-sco"
2667 ;;
ec11bdc6 2668 i[3456789]86-*-udk*)
a0da8069
NN
2669 host_makefile_frag="config/mh-sysv5"
2670 ;;
ec11bdc6 2671 i[3456789]86-*-solaris2*)
a0da8069
NN
2672 host_makefile_frag="config/mh-sysv4"
2673 ;;
ec11bdc6 2674 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2675 host_makefile_frag="config/mh-djgpp"
2676 ;;
2677 *-cygwin*)
2678 host_makefile_frag="config/mh-cygwin"
2679 ;;
2680 *-mingw32*)
a0da8069 2681 ;;
2d1e8239
NC
2682 *-mingw64*)
2683 ;;
a0da8069
NN
2684 *-interix*)
2685 host_makefile_frag="config/mh-interix"
2686 ;;
2687 vax-*-ultrix2*)
2688 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2689 tentative_cc=gcc
2690 ;;
2691 *-*-solaris2*)
2692 host_makefile_frag="config/mh-solaris"
2693 ;;
2694 m68k-sun-sunos*)
2695 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2696 # without overflowing the jump tables (-J says to use a 32 bit table)
2697 tentative_cc="cc -J"
2698 ;;
2699 *-hp-hpux*)
2700 tentative_cc="cc -Wp,-H256000"
2701 ;;
2702 *-*-hiux*)
2703 tentative_cc="cc -Wp,-H256000"
2704 ;;
2705 rs6000-*-lynxos*)
2706 # /bin/cc is less than useful for our purposes. Always use GCC
2707 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2708 host_makefile_frag="config/mh-lynxrs6k"
2709 ;;
0df3d27f
PB
2710 powerpc-*-darwin*)
2711 host_makefile_frag="config/mh-ppc-darwin"
2712 ;;
f6d183c0
PB
2713 powerpc-*-aix*)
2714 host_makefile_frag="config/mh-ppc-aix"
2715 ;;
2716 rs6000-*-aix*)
2717 host_makefile_frag="config/mh-ppc-aix"
2718 ;;
a0da8069
NN
2719 *-*-lynxos*)
2720 # /bin/cc is less than useful for our purposes. Always use GCC
2721 tentative_cc="/bin/gcc"
2722 ;;
2723 *-*-sysv4*)
2724 host_makefile_frag="config/mh-sysv4"
2725 ;;
fe69863c
DD
2726 # This is placed last to prevent interfering with the cases above.
2727 i[3456789]86-*-*)
2728 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2729 host_makefile_frag="config/mh-x86omitfp"
2730 ;;
a0da8069
NN
2731esac
2732fi
2733
9e07f89d
NN
2734# If we aren't going to be using gcc, see if we can extract a definition
2735# of CC from the fragment.
2736# Actually, use the 'pre-extracted' version above.
2737if test -z "${CC}" && test "${build}" = "${host}" ; then
2738 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2739 found=
2740 for dir in $PATH; do
2741 test -z "$dir" && dir=.
2742 if test -f $dir/gcc; then
2743 found=yes
2744 break
2745 fi
2746 done
2747 IFS="$save_ifs"
2748 if test -z "${found}" && test -n "${tentative_cc}" ; then
2749 CC=$tentative_cc
2750 fi
2751fi
2752
2753if test "${build}" != "${host}" ; then
9e07f89d 2754 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
9e07f89d 2755else
512b7dfb 2756 CC_FOR_BUILD="\$(CC)"
18f6b6ee
PB
2757fi
2758
2759ac_ext=c
c6b750e1
DJ
2760ac_cpp='$CPP $CPPFLAGS'
2761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763ac_compiler_gnu=$ac_cv_c_compiler_gnu
2764if test -n "$ac_tool_prefix"; then
2765 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2766set dummy ${ac_tool_prefix}gcc; ac_word=$2
2767echo "$as_me:$LINENO: checking for $ac_word" >&5
2768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2769if test "${ac_cv_prog_CC+set}" = set; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2771else
2772 if test -n "$CC"; then
2773 ac_cv_prog_CC="$CC" # Let the user override the test.
2774else
2775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776for as_dir in $PATH
2777do
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2782 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 break 2
2785 fi
2786done
2787done
2788
2789fi
2790fi
2791CC=$ac_cv_prog_CC
2792if test -n "$CC"; then
2793 echo "$as_me:$LINENO: result: $CC" >&5
2794echo "${ECHO_T}$CC" >&6
2795else
2796 echo "$as_me:$LINENO: result: no" >&5
2797echo "${ECHO_T}no" >&6
2798fi
2799
2800fi
2801if test -z "$ac_cv_prog_CC"; then
2802 ac_ct_CC=$CC
6a9cf61e 2803 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2804set dummy gcc; ac_word=$2
c6b750e1
DJ
2805echo "$as_me:$LINENO: checking for $ac_word" >&5
2806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2807if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2809else
2810 if test -n "$ac_ct_CC"; then
2811 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2812else
2813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814for as_dir in $PATH
2815do
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2820 ac_cv_prog_ac_ct_CC="gcc"
2821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 break 2
2823 fi
2824done
2825done
2826
2827fi
2828fi
2829ac_ct_CC=$ac_cv_prog_ac_ct_CC
2830if test -n "$ac_ct_CC"; then
2831 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2832echo "${ECHO_T}$ac_ct_CC" >&6
2833else
2834 echo "$as_me:$LINENO: result: no" >&5
2835echo "${ECHO_T}no" >&6
2836fi
2837
2838 CC=$ac_ct_CC
2839else
2840 CC="$ac_cv_prog_CC"
2841fi
2842
2843if test -z "$CC"; then
2844 if test -n "$ac_tool_prefix"; then
2845 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2846set dummy ${ac_tool_prefix}cc; ac_word=$2
2847echo "$as_me:$LINENO: checking for $ac_word" >&5
2848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2849if test "${ac_cv_prog_CC+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2851else
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC="$CC" # Let the user override the test.
2854else
c6b750e1
DJ
2855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856for as_dir in $PATH
2857do
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862 ac_cv_prog_CC="${ac_tool_prefix}cc"
2863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 break 2
2865 fi
2866done
2867done
2868
9e07f89d
NN
2869fi
2870fi
c6b750e1 2871CC=$ac_cv_prog_CC
9e07f89d 2872if test -n "$CC"; then
c6b750e1
DJ
2873 echo "$as_me:$LINENO: result: $CC" >&5
2874echo "${ECHO_T}$CC" >&6
9e07f89d 2875else
c6b750e1
DJ
2876 echo "$as_me:$LINENO: result: no" >&5
2877echo "${ECHO_T}no" >&6
9e07f89d
NN
2878fi
2879
c6b750e1
DJ
2880fi
2881if test -z "$ac_cv_prog_CC"; then
2882 ac_ct_CC=$CC
2883 # Extract the first word of "cc", so it can be a program name with args.
2884set dummy cc; ac_word=$2
2885echo "$as_me:$LINENO: checking for $ac_word" >&5
2886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2887if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889else
2890 if test -n "$ac_ct_CC"; then
2891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2892else
2893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894for as_dir in $PATH
2895do
2896 IFS=$as_save_IFS
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2900 ac_cv_prog_ac_ct_CC="cc"
2901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 break 2
2903 fi
2904done
2905done
2906
2907fi
2908fi
2909ac_ct_CC=$ac_cv_prog_ac_ct_CC
2910if test -n "$ac_ct_CC"; then
2911 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2912echo "${ECHO_T}$ac_ct_CC" >&6
2913else
2914 echo "$as_me:$LINENO: result: no" >&5
2915echo "${ECHO_T}no" >&6
2916fi
2917
2918 CC=$ac_ct_CC
2919else
2920 CC="$ac_cv_prog_CC"
2921fi
2922
2923fi
9e07f89d
NN
2924if test -z "$CC"; then
2925 # Extract the first word of "cc", so it can be a program name with args.
2926set dummy cc; ac_word=$2
c6b750e1
DJ
2927echo "$as_me:$LINENO: checking for $ac_word" >&5
2928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2929if test "${ac_cv_prog_CC+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2931else
2932 if test -n "$CC"; then
2933 ac_cv_prog_CC="$CC" # Let the user override the test.
2934else
9e07f89d 2935 ac_prog_rejected=no
c6b750e1
DJ
2936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937for as_dir in $PATH
2938do
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2943 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2944 ac_prog_rejected=yes
2945 continue
2946 fi
2947 ac_cv_prog_CC="cc"
2948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2950 fi
2951done
2952done
2953
9e07f89d
NN
2954if test $ac_prog_rejected = yes; then
2955 # We found a bogon in the path, so make sure we never use it.
2956 set dummy $ac_cv_prog_CC
2957 shift
c6b750e1 2958 if test $# != 0; then
9e07f89d
NN
2959 # We chose a different compiler from the bogus one.
2960 # However, it has the same basename, so the bogon will be chosen
2961 # first if we set CC to just the basename; use the full file name.
2962 shift
c6b750e1 2963 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
2964 fi
2965fi
2966fi
2967fi
c6b750e1 2968CC=$ac_cv_prog_CC
9e07f89d 2969if test -n "$CC"; then
c6b750e1
DJ
2970 echo "$as_me:$LINENO: result: $CC" >&5
2971echo "${ECHO_T}$CC" >&6
9e07f89d 2972else
c6b750e1
DJ
2973 echo "$as_me:$LINENO: result: no" >&5
2974echo "${ECHO_T}no" >&6
9e07f89d
NN
2975fi
2976
c6b750e1
DJ
2977fi
2978if test -z "$CC"; then
2979 if test -n "$ac_tool_prefix"; then
2980 for ac_prog in cl
2981 do
2982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2983set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2984echo "$as_me:$LINENO: checking for $ac_word" >&5
2985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2986if test "${ac_cv_prog_CC+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2988else
2989 if test -n "$CC"; then
2990 ac_cv_prog_CC="$CC" # Let the user override the test.
2991else
c6b750e1
DJ
2992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH
2994do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
376a0e54 3002 fi
c6b750e1
DJ
3003done
3004done
cac3d6c4 3005
c6b750e1
DJ
3006fi
3007fi
3008CC=$ac_cv_prog_CC
3009if test -n "$CC"; then
3010 echo "$as_me:$LINENO: result: $CC" >&5
3011echo "${ECHO_T}$CC" >&6
cac3d6c4 3012else
c6b750e1
DJ
3013 echo "$as_me:$LINENO: result: no" >&5
3014echo "${ECHO_T}no" >&6
9e07f89d 3015fi
cac3d6c4 3016
c6b750e1
DJ
3017 test -n "$CC" && break
3018 done
cac3d6c4 3019fi
c6b750e1
DJ
3020if test -z "$CC"; then
3021 ac_ct_CC=$CC
3022 for ac_prog in cl
3023do
3024 # Extract the first word of "$ac_prog", so it can be a program name with args.
3025set dummy $ac_prog; ac_word=$2
3026echo "$as_me:$LINENO: checking for $ac_word" >&5
3027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3028if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3030else
c6b750e1
DJ
3031 if test -n "$ac_ct_CC"; then
3032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3033else
c6b750e1
DJ
3034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035for as_dir in $PATH
3036do
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041 ac_cv_prog_ac_ct_CC="$ac_prog"
3042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 break 2
3044 fi
3045done
3046done
3047
cac3d6c4
CM
3048fi
3049fi
c6b750e1
DJ
3050ac_ct_CC=$ac_cv_prog_ac_ct_CC
3051if test -n "$ac_ct_CC"; then
3052 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3053echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3054else
c6b750e1
DJ
3055 echo "$as_me:$LINENO: result: no" >&5
3056echo "${ECHO_T}no" >&6
cac3d6c4 3057fi
376a0e54 3058
c6b750e1
DJ
3059 test -n "$ac_ct_CC" && break
3060done
3061
3062 CC=$ac_ct_CC
3063fi
3064
3065fi
3066
3067
3068test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3069See \`config.log' for more details." >&5
3070echo "$as_me: error: no acceptable C compiler found in \$PATH
3071See \`config.log' for more details." >&2;}
3072 { (exit 1); exit 1; }; }
3073
3074# Provide some information about the compiler.
3075echo "$as_me:$LINENO:" \
3076 "checking for C compiler version" >&5
3077ac_compiler=`set X $ac_compile; echo $2`
3078{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3079 (eval $ac_compiler --version </dev/null >&5) 2>&5
3080 ac_status=$?
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }
3083{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3084 (eval $ac_compiler -v </dev/null >&5) 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }
3088{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3089 (eval $ac_compiler -V </dev/null >&5) 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }
3093
3094cat >conftest.$ac_ext <<_ACEOF
3095/* confdefs.h. */
3096_ACEOF
3097cat confdefs.h >>conftest.$ac_ext
3098cat >>conftest.$ac_ext <<_ACEOF
3099/* end confdefs.h. */
3100
3101int
3102main ()
3103{
3104
3105 ;
3106 return 0;
3107}
3108_ACEOF
3109ac_clean_files_save=$ac_clean_files
3110ac_clean_files="$ac_clean_files a.out a.exe b.out"
3111# Try to create an executable without -o first, disregard a.out.
3112# It will help us diagnose broken compilers, and finding out an intuition
3113# of exeext.
3114echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3115echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3116ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3117if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3118 (eval $ac_link_default) 2>&5
3119 ac_status=$?
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; then
3122 # Find the output, starting from the most likely. This scheme is
3123# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3124# resort.
3125
3126# Be careful to initialize this variable, since it used to be cached.
3127# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3128ac_cv_exeext=
3129# b.out is created by i960 compilers.
3130for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3131do
3132 test -f "$ac_file" || continue
3133 case $ac_file in
3134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3135 ;;
3136 conftest.$ac_ext )
3137 # This is the source file.
3138 ;;
3139 [ab].out )
3140 # We found the default executable, but exeext='' is most
3141 # certainly right.
3142 break;;
3143 *.* )
3144 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3145 # FIXME: I believe we export ac_cv_exeext for Libtool,
3146 # but it would be cool to find out if it's true. Does anybody
3147 # maintain Libtool? --akim.
3148 export ac_cv_exeext
3149 break;;
3150 * )
3151 break;;
3152 esac
3153done
3154else
3155 echo "$as_me: failed program was:" >&5
3156sed 's/^/| /' conftest.$ac_ext >&5
3157
3158{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3159See \`config.log' for more details." >&5
3160echo "$as_me: error: C compiler cannot create executables
3161See \`config.log' for more details." >&2;}
3162 { (exit 77); exit 77; }; }
3163fi
3164
3165ac_exeext=$ac_cv_exeext
3166echo "$as_me:$LINENO: result: $ac_file" >&5
3167echo "${ECHO_T}$ac_file" >&6
3168
3169# Check the compiler produces executables we can run. If not, either
3170# the compiler is broken, or we cross compile.
3171echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3172echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3173# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3174# If not cross compiling, check that we can run a simple program.
3175if test "$cross_compiling" != yes; then
3176 if { ac_try='./$ac_file'
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); }; }; then
3182 cross_compiling=no
3183 else
3184 if test "$cross_compiling" = maybe; then
3185 cross_compiling=yes
3186 else
3187 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3188If you meant to cross compile, use \`--host'.
3189See \`config.log' for more details." >&5
3190echo "$as_me: error: cannot run C compiled programs.
3191If you meant to cross compile, use \`--host'.
3192See \`config.log' for more details." >&2;}
3193 { (exit 1); exit 1; }; }
3194 fi
3195 fi
3196fi
3197echo "$as_me:$LINENO: result: yes" >&5
3198echo "${ECHO_T}yes" >&6
3199
3200rm -f a.out a.exe conftest$ac_cv_exeext b.out
3201ac_clean_files=$ac_clean_files_save
3202# Check the compiler produces executables we can run. If not, either
3203# the compiler is broken, or we cross compile.
3204echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3205echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3206echo "$as_me:$LINENO: result: $cross_compiling" >&5
3207echo "${ECHO_T}$cross_compiling" >&6
3208
3209echo "$as_me:$LINENO: checking for suffix of executables" >&5
3210echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3212 (eval $ac_link) 2>&5
3213 ac_status=$?
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }; then
3216 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3217# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3218# work properly (i.e., refer to `conftest.exe'), while it won't with
3219# `rm'.
3220for ac_file in conftest.exe conftest conftest.*; do
3221 test -f "$ac_file" || continue
3222 case $ac_file in
3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3224 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3225 export ac_cv_exeext
3226 break;;
3227 * ) break;;
3228 esac
3229done
3230else
3231 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3232See \`config.log' for more details." >&5
3233echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3234See \`config.log' for more details." >&2;}
3235 { (exit 1); exit 1; }; }
3236fi
3237
3238rm -f conftest$ac_cv_exeext
3239echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3240echo "${ECHO_T}$ac_cv_exeext" >&6
3241
3242rm -f conftest.$ac_ext
3243EXEEXT=$ac_cv_exeext
3244ac_exeext=$EXEEXT
3245echo "$as_me:$LINENO: checking for suffix of object files" >&5
3246echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3247if test "${ac_cv_objext+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3249else
3250 cat >conftest.$ac_ext <<_ACEOF
3251/* confdefs.h. */
3252_ACEOF
3253cat confdefs.h >>conftest.$ac_ext
3254cat >>conftest.$ac_ext <<_ACEOF
3255/* end confdefs.h. */
3256
3257int
3258main ()
3259{
3260
3261 ;
3262 return 0;
3263}
3264_ACEOF
3265rm -f conftest.o conftest.obj
3266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3267 (eval $ac_compile) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; then
3271 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3272 case $ac_file in
3273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3274 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3275 break;;
3276 esac
3277done
cac3d6c4 3278else
c6b750e1
DJ
3279 echo "$as_me: failed program was:" >&5
3280sed 's/^/| /' conftest.$ac_ext >&5
3281
3282{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3283See \`config.log' for more details." >&5
3284echo "$as_me: error: cannot compute suffix of object files: cannot compile
3285See \`config.log' for more details." >&2;}
3286 { (exit 1); exit 1; }; }
3287fi
3288
3289rm -f conftest.$ac_cv_objext conftest.$ac_ext
3290fi
3291echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3292echo "${ECHO_T}$ac_cv_objext" >&6
3293OBJEXT=$ac_cv_objext
3294ac_objext=$OBJEXT
3295echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3296echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3297if test "${ac_cv_c_compiler_gnu+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3299else
3300 cat >conftest.$ac_ext <<_ACEOF
3301/* confdefs.h. */
3302_ACEOF
3303cat confdefs.h >>conftest.$ac_ext
3304cat >>conftest.$ac_ext <<_ACEOF
3305/* end confdefs.h. */
3306
3307int
3308main ()
3309{
3310#ifndef __GNUC__
3311 choke me
3312#endif
3313
3314 ;
3315 return 0;
3316}
3317_ACEOF
3318rm -f conftest.$ac_objext
3319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3320 (eval $ac_compile) 2>conftest.er1
3321 ac_status=$?
3322 grep -v '^ *+' conftest.er1 >conftest.err
3323 rm -f conftest.er1
3324 cat conftest.err >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } &&
3327 { ac_try='test -z "$ac_c_werror_flag"
3328 || test ! -s conftest.err'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 (eval $ac_try) 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; } &&
3334 { ac_try='test -s conftest.$ac_objext'
3335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336 (eval $ac_try) 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; }; then
3340 ac_compiler_gnu=yes
3341else
3342 echo "$as_me: failed program was:" >&5
3343sed 's/^/| /' conftest.$ac_ext >&5
3344
3345ac_compiler_gnu=no
3346fi
3347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3348ac_cv_c_compiler_gnu=$ac_compiler_gnu
3349
3350fi
3351echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3352echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3353GCC=`test $ac_compiler_gnu = yes && echo yes`
3354ac_test_CFLAGS=${CFLAGS+set}
3355ac_save_CFLAGS=$CFLAGS
3356CFLAGS="-g"
3357echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3358echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3359if test "${ac_cv_prog_cc_g+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3361else
3362 cat >conftest.$ac_ext <<_ACEOF
3363/* confdefs.h. */
3364_ACEOF
3365cat confdefs.h >>conftest.$ac_ext
3366cat >>conftest.$ac_ext <<_ACEOF
3367/* end confdefs.h. */
3368
3369int
3370main ()
3371{
3372
3373 ;
3374 return 0;
3375}
3376_ACEOF
3377rm -f conftest.$ac_objext
3378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3379 (eval $ac_compile) 2>conftest.er1
3380 ac_status=$?
3381 grep -v '^ *+' conftest.er1 >conftest.err
3382 rm -f conftest.er1
3383 cat conftest.err >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } &&
3386 { ac_try='test -z "$ac_c_werror_flag"
3387 || test ! -s conftest.err'
3388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389 (eval $ac_try) 2>&5
3390 ac_status=$?
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; } &&
3393 { ac_try='test -s conftest.$ac_objext'
3394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395 (eval $ac_try) 2>&5
3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; }; then
9e07f89d
NN
3399 ac_cv_prog_cc_g=yes
3400else
c6b750e1
DJ
3401 echo "$as_me: failed program was:" >&5
3402sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3403
c6b750e1 3404ac_cv_prog_cc_g=no
376a0e54 3405fi
c6b750e1
DJ
3406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3407fi
3408echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3409echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3410if test "$ac_test_CFLAGS" = set; then
c6b750e1 3411 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3412elif test $ac_cv_prog_cc_g = yes; then
3413 if test "$GCC" = yes; then
3414 CFLAGS="-g -O2"
3415 else
3416 CFLAGS="-g"
3417 fi
3418else
3419 if test "$GCC" = yes; then
3420 CFLAGS="-O2"
3421 else
3422 CFLAGS=
3423 fi
3424fi
c6b750e1
DJ
3425echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3426echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3427if test "${ac_cv_prog_cc_stdc+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3429else
3430 ac_cv_prog_cc_stdc=no
3431ac_save_CC=$CC
3432cat >conftest.$ac_ext <<_ACEOF
3433/* confdefs.h. */
3434_ACEOF
3435cat confdefs.h >>conftest.$ac_ext
3436cat >>conftest.$ac_ext <<_ACEOF
3437/* end confdefs.h. */
3438#include <stdarg.h>
3439#include <stdio.h>
3440#include <sys/types.h>
3441#include <sys/stat.h>
3442/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3443struct buf { int x; };
3444FILE * (*rcsopen) (struct buf *, struct stat *, int);
3445static char *e (p, i)
3446 char **p;
3447 int i;
3448{
3449 return p[i];
3450}
3451static char *f (char * (*g) (char **, int), char **p, ...)
3452{
3453 char *s;
3454 va_list v;
3455 va_start (v,p);
3456 s = g (p, va_arg (v,int));
3457 va_end (v);
3458 return s;
3459}
3460
3461/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3462 function prototypes and stuff, but not '\xHH' hex character constants.
3463 These don't provoke an error unfortunately, instead are silently treated
3464 as 'x'. The following induces an error, until -std1 is added to get
3465 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3466 array size at least. It's necessary to write '\x00'==0 to get something
3467 that's true only with -std1. */
3468int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3469
3470int test (int i, double x);
3471struct s1 {int (*f) (int a);};
3472struct s2 {int (*f) (double a);};
3473int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3474int argc;
3475char **argv;
3476int
3477main ()
3478{
3479return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3480 ;
3481 return 0;
3482}
3483_ACEOF
3484# Don't try gcc -ansi; that turns off useful extensions and
3485# breaks some systems' header files.
3486# AIX -qlanglvl=ansi
3487# Ultrix and OSF/1 -std1
3488# HP-UX 10.20 and later -Ae
3489# HP-UX older versions -Aa -D_HPUX_SOURCE
3490# SVR4 -Xc -D__EXTENSIONS__
3491for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3492do
3493 CC="$ac_save_CC $ac_arg"
3494 rm -f conftest.$ac_objext
3495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3496 (eval $ac_compile) 2>conftest.er1
3497 ac_status=$?
3498 grep -v '^ *+' conftest.er1 >conftest.err
3499 rm -f conftest.er1
3500 cat conftest.err >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } &&
3503 { ac_try='test -z "$ac_c_werror_flag"
3504 || test ! -s conftest.err'
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); }; } &&
3510 { ac_try='test -s conftest.$ac_objext'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 (eval $ac_try) 2>&5
3513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; }; then
3516 ac_cv_prog_cc_stdc=$ac_arg
3517break
3518else
3519 echo "$as_me: failed program was:" >&5
3520sed 's/^/| /' conftest.$ac_ext >&5
3521
3522fi
3523rm -f conftest.err conftest.$ac_objext
3524done
3525rm -f conftest.$ac_ext conftest.$ac_objext
3526CC=$ac_save_CC
3527
3528fi
3529
3530case "x$ac_cv_prog_cc_stdc" in
3531 x|xno)
3532 echo "$as_me:$LINENO: result: none needed" >&5
3533echo "${ECHO_T}none needed" >&6 ;;
3534 *)
3535 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3536echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3537 CC="$CC $ac_cv_prog_cc_stdc" ;;
3538esac
3539
3540# Some people use a C++ compiler to compile C. Since we use `exit',
3541# in C++ we need to declare it. In case someone uses the same compiler
3542# for both compiling C and C++ we need to have the C++ compiler decide
3543# the declaration of exit, since it's the most demanding environment.
3544cat >conftest.$ac_ext <<_ACEOF
3545#ifndef __cplusplus
3546 choke me
3547#endif
3548_ACEOF
3549rm -f conftest.$ac_objext
3550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3551 (eval $ac_compile) 2>conftest.er1
3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } &&
3558 { ac_try='test -z "$ac_c_werror_flag"
3559 || test ! -s conftest.err'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 (eval $ac_try) 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; } &&
3565 { ac_try='test -s conftest.$ac_objext'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 (eval $ac_try) 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3571 for ac_declaration in \
3572 '' \
3573 'extern "C" void std::exit (int) throw (); using std::exit;' \
3574 'extern "C" void std::exit (int); using std::exit;' \
3575 'extern "C" void exit (int) throw ();' \
3576 'extern "C" void exit (int);' \
3577 'void exit (int);'
3578do
3579 cat >conftest.$ac_ext <<_ACEOF
3580/* confdefs.h. */
3581_ACEOF
3582cat confdefs.h >>conftest.$ac_ext
3583cat >>conftest.$ac_ext <<_ACEOF
3584/* end confdefs.h. */
3585$ac_declaration
3586#include <stdlib.h>
3587int
3588main ()
3589{
3590exit (42);
3591 ;
3592 return 0;
3593}
3594_ACEOF
3595rm -f conftest.$ac_objext
3596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3597 (eval $ac_compile) 2>conftest.er1
3598 ac_status=$?
3599 grep -v '^ *+' conftest.er1 >conftest.err
3600 rm -f conftest.er1
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } &&
3604 { ac_try='test -z "$ac_c_werror_flag"
3605 || test ! -s conftest.err'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607 (eval $ac_try) 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; } &&
3611 { ac_try='test -s conftest.$ac_objext'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 (eval $ac_try) 2>&5
3614 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
3617 :
3618else
3619 echo "$as_me: failed program was:" >&5
3620sed 's/^/| /' conftest.$ac_ext >&5
3621
3622continue
3623fi
3624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3625 cat >conftest.$ac_ext <<_ACEOF
3626/* confdefs.h. */
3627_ACEOF
3628cat confdefs.h >>conftest.$ac_ext
3629cat >>conftest.$ac_ext <<_ACEOF
3630/* end confdefs.h. */
3631$ac_declaration
3632int
3633main ()
3634{
3635exit (42);
3636 ;
3637 return 0;
3638}
3639_ACEOF
3640rm -f conftest.$ac_objext
3641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3642 (eval $ac_compile) 2>conftest.er1
3643 ac_status=$?
3644 grep -v '^ *+' conftest.er1 >conftest.err
3645 rm -f conftest.er1
3646 cat conftest.err >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } &&
3649 { ac_try='test -z "$ac_c_werror_flag"
3650 || test ! -s conftest.err'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 (eval $ac_try) 2>&5
3653 ac_status=$?
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; } &&
3656 { ac_try='test -s conftest.$ac_objext'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 (eval $ac_try) 2>&5
3659 ac_status=$?
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; }; then
3662 break
3663else
3664 echo "$as_me: failed program was:" >&5
3665sed 's/^/| /' conftest.$ac_ext >&5
3666
3667fi
3668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3669done
3670rm -f conftest*
3671if test -n "$ac_declaration"; then
3672 echo '#ifdef __cplusplus' >>confdefs.h
3673 echo $ac_declaration >>confdefs.h
3674 echo '#endif' >>confdefs.h
3675fi
3676
3677else
3678 echo "$as_me: failed program was:" >&5
3679sed 's/^/| /' conftest.$ac_ext >&5
3680
3681fi
3682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3683ac_ext=c
3684ac_cpp='$CPP $CPPFLAGS'
3685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3688
18f6b6ee
PB
3689ac_ext=cc
3690ac_cpp='$CXXCPP $CPPFLAGS'
3691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3694if test -n "$ac_tool_prefix"; then
3695 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3696 do
3697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3698set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3699echo "$as_me:$LINENO: checking for $ac_word" >&5
3700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3701if test "${ac_cv_prog_CXX+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703else
3704 if test -n "$CXX"; then
3705 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3706else
3707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708for as_dir in $PATH
3709do
3710 IFS=$as_save_IFS
3711 test -z "$as_dir" && as_dir=.
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3714 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 break 2
3717 fi
3718done
3719done
512b7dfb 3720
18f6b6ee
PB
3721fi
3722fi
3723CXX=$ac_cv_prog_CXX
3724if test -n "$CXX"; then
3725 echo "$as_me:$LINENO: result: $CXX" >&5
3726echo "${ECHO_T}$CXX" >&6
3727else
3728 echo "$as_me:$LINENO: result: no" >&5
3729echo "${ECHO_T}no" >&6
3730fi
3731
3732 test -n "$CXX" && break
3733 done
3734fi
3735if test -z "$CXX"; then
3736 ac_ct_CXX=$CXX
3737 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3738do
3739 # Extract the first word of "$ac_prog", so it can be a program name with args.
3740set dummy $ac_prog; ac_word=$2
3741echo "$as_me:$LINENO: checking for $ac_word" >&5
3742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3743if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3745else
3746 if test -n "$ac_ct_CXX"; then
3747 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3748else
3749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750for as_dir in $PATH
3751do
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3756 ac_cv_prog_ac_ct_CXX="$ac_prog"
3757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 break 2
512b7dfb 3759 fi
18f6b6ee
PB
3760done
3761done
512b7dfb 3762
18f6b6ee
PB
3763fi
3764fi
3765ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3766if test -n "$ac_ct_CXX"; then
3767 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3768echo "${ECHO_T}$ac_ct_CXX" >&6
3769else
3770 echo "$as_me:$LINENO: result: no" >&5
3771echo "${ECHO_T}no" >&6
3772fi
3773
3774 test -n "$ac_ct_CXX" && break
3775done
3776test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3777
3778 CXX=$ac_ct_CXX
3779fi
3780
3781
3782# Provide some information about the compiler.
3783echo "$as_me:$LINENO:" \
3784 "checking for C++ compiler version" >&5
3785ac_compiler=`set X $ac_compile; echo $2`
3786{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3787 (eval $ac_compiler --version </dev/null >&5) 2>&5
3788 ac_status=$?
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }
3791{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3792 (eval $ac_compiler -v </dev/null >&5) 2>&5
3793 ac_status=$?
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }
3796{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3797 (eval $ac_compiler -V </dev/null >&5) 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }
3801
3802echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3803echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3804if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
3807 cat >conftest.$ac_ext <<_ACEOF
3808/* confdefs.h. */
3809_ACEOF
3810cat confdefs.h >>conftest.$ac_ext
3811cat >>conftest.$ac_ext <<_ACEOF
3812/* end confdefs.h. */
3813
3814int
3815main ()
3816{
3817#ifndef __GNUC__
3818 choke me
3819#endif
3820
3821 ;
3822 return 0;
3823}
3824_ACEOF
3825rm -f conftest.$ac_objext
3826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3827 (eval $ac_compile) 2>conftest.er1
3828 ac_status=$?
3829 grep -v '^ *+' conftest.er1 >conftest.err
3830 rm -f conftest.er1
3831 cat conftest.err >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } &&
3834 { ac_try='test -z "$ac_cxx_werror_flag"
3835 || test ! -s conftest.err'
3836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837 (eval $ac_try) 2>&5
3838 ac_status=$?
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; } &&
3841 { ac_try='test -s conftest.$ac_objext'
3842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 (eval $ac_try) 2>&5
3844 ac_status=$?
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; }; then
3847 ac_compiler_gnu=yes
3848else
3849 echo "$as_me: failed program was:" >&5
3850sed 's/^/| /' conftest.$ac_ext >&5
3851
3852ac_compiler_gnu=no
3853fi
3854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3855ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3856
3857fi
3858echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3859echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3860GXX=`test $ac_compiler_gnu = yes && echo yes`
3861ac_test_CXXFLAGS=${CXXFLAGS+set}
3862ac_save_CXXFLAGS=$CXXFLAGS
3863CXXFLAGS="-g"
3864echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3865echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3866if test "${ac_cv_prog_cxx_g+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868else
3869 cat >conftest.$ac_ext <<_ACEOF
3870/* confdefs.h. */
3871_ACEOF
3872cat confdefs.h >>conftest.$ac_ext
3873cat >>conftest.$ac_ext <<_ACEOF
3874/* end confdefs.h. */
3875
3876int
3877main ()
3878{
3879
3880 ;
3881 return 0;
3882}
3883_ACEOF
3884rm -f conftest.$ac_objext
3885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3886 (eval $ac_compile) 2>conftest.er1
3887 ac_status=$?
3888 grep -v '^ *+' conftest.er1 >conftest.err
3889 rm -f conftest.er1
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } &&
3893 { ac_try='test -z "$ac_cxx_werror_flag"
3894 || test ! -s conftest.err'
3895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 (eval $ac_try) 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; } &&
3900 { ac_try='test -s conftest.$ac_objext'
3901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902 (eval $ac_try) 2>&5
3903 ac_status=$?
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; }; then
3906 ac_cv_prog_cxx_g=yes
3907else
3908 echo "$as_me: failed program was:" >&5
3909sed 's/^/| /' conftest.$ac_ext >&5
3910
3911ac_cv_prog_cxx_g=no
3912fi
3913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3914fi
3915echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3916echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3917if test "$ac_test_CXXFLAGS" = set; then
3918 CXXFLAGS=$ac_save_CXXFLAGS
3919elif test $ac_cv_prog_cxx_g = yes; then
3920 if test "$GXX" = yes; then
3921 CXXFLAGS="-g -O2"
3922 else
3923 CXXFLAGS="-g"
3924 fi
3925else
3926 if test "$GXX" = yes; then
3927 CXXFLAGS="-O2"
3928 else
3929 CXXFLAGS=
3930 fi
3931fi
3932for ac_declaration in \
3933 '' \
3934 'extern "C" void std::exit (int) throw (); using std::exit;' \
3935 'extern "C" void std::exit (int); using std::exit;' \
3936 'extern "C" void exit (int) throw ();' \
3937 'extern "C" void exit (int);' \
3938 'void exit (int);'
3939do
3940 cat >conftest.$ac_ext <<_ACEOF
3941/* confdefs.h. */
3942_ACEOF
3943cat confdefs.h >>conftest.$ac_ext
3944cat >>conftest.$ac_ext <<_ACEOF
3945/* end confdefs.h. */
3946$ac_declaration
3947#include <stdlib.h>
3948int
3949main ()
3950{
3951exit (42);
3952 ;
3953 return 0;
3954}
3955_ACEOF
3956rm -f conftest.$ac_objext
3957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3958 (eval $ac_compile) 2>conftest.er1
3959 ac_status=$?
3960 grep -v '^ *+' conftest.er1 >conftest.err
3961 rm -f conftest.er1
3962 cat conftest.err >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } &&
3965 { ac_try='test -z "$ac_cxx_werror_flag"
3966 || test ! -s conftest.err'
3967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968 (eval $ac_try) 2>&5
3969 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); }; } &&
3972 { ac_try='test -s conftest.$ac_objext'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 (eval $ac_try) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; }; then
3978 :
3979else
3980 echo "$as_me: failed program was:" >&5
3981sed 's/^/| /' conftest.$ac_ext >&5
3982
3983continue
3984fi
3985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3986 cat >conftest.$ac_ext <<_ACEOF
3987/* confdefs.h. */
3988_ACEOF
3989cat confdefs.h >>conftest.$ac_ext
3990cat >>conftest.$ac_ext <<_ACEOF
3991/* end confdefs.h. */
3992$ac_declaration
3993int
3994main ()
3995{
3996exit (42);
3997 ;
3998 return 0;
3999}
4000_ACEOF
4001rm -f conftest.$ac_objext
4002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4003 (eval $ac_compile) 2>conftest.er1
4004 ac_status=$?
4005 grep -v '^ *+' conftest.er1 >conftest.err
4006 rm -f conftest.er1
4007 cat conftest.err >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } &&
4010 { ac_try='test -z "$ac_cxx_werror_flag"
4011 || test ! -s conftest.err'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 (eval $ac_try) 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; } &&
4017 { ac_try='test -s conftest.$ac_objext'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 (eval $ac_try) 2>&5
4020 ac_status=$?
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4023 break
4024else
4025 echo "$as_me: failed program was:" >&5
4026sed 's/^/| /' conftest.$ac_ext >&5
4027
4028fi
4029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4030done
4031rm -f conftest*
4032if test -n "$ac_declaration"; then
4033 echo '#ifdef __cplusplus' >>confdefs.h
4034 echo $ac_declaration >>confdefs.h
4035 echo '#endif' >>confdefs.h
4036fi
4037
4038ac_ext=c
4039ac_cpp='$CPP $CPPFLAGS'
4040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043
4044
4045# We must set the default linker to the linker used by gcc for the correct
4046# operation of libtool. If LD is not defined and we are using gcc, try to
4047# set the LD default to the ld used by gcc.
4048if test -z "$LD"; then
4049 if test "$GCC" = yes; then
4050 case $build in
4051 *-*-mingw*)
4052 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4053 *)
4054 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4055 esac
4056 case $gcc_prog_ld in
4057 # Accept absolute paths.
4058 [\\/]* | [A-Za-z]:[\\/]*)
4059 LD="$gcc_prog_ld" ;;
4060 esac
4061 fi
512b7dfb
PB
4062fi
4063
4064
4065
4066
c6b750e1 4067if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4068 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4069set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4070echo "$as_me:$LINENO: checking for $ac_word" >&5
4071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4072if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4073 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4074else
512b7dfb
PB
4075 if test -n "$GNATBIND"; then
4076 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4077else
c6b750e1
DJ
4078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079for as_dir in $PATH
4080do
4081 IFS=$as_save_IFS
4082 test -z "$as_dir" && as_dir=.
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4085 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4087 break 2
4088 fi
4089done
4090done
4091
9e07f89d
NN
4092fi
4093fi
512b7dfb
PB
4094GNATBIND=$ac_cv_prog_GNATBIND
4095if test -n "$GNATBIND"; then
4096 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4097echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4098else
c6b750e1
DJ
4099 echo "$as_me:$LINENO: result: no" >&5
4100echo "${ECHO_T}no" >&6
9e07f89d
NN
4101fi
4102
c6b750e1 4103fi
512b7dfb
PB
4104if test -z "$ac_cv_prog_GNATBIND"; then
4105 ac_ct_GNATBIND=$GNATBIND
4106 # Extract the first word of "gnatbind", so it can be a program name with args.
4107set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4108echo "$as_me:$LINENO: checking for $ac_word" >&5
4109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4110if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4111 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4112else
512b7dfb
PB
4113 if test -n "$ac_ct_GNATBIND"; then
4114 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4115else
c6b750e1
DJ
4116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117for as_dir in $PATH
4118do
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4123 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 break 2
4126 fi
4127done
4128done
4129
512b7dfb 4130 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4131fi
4132fi
512b7dfb
PB
4133ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4134if test -n "$ac_ct_GNATBIND"; then
4135 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4136echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4137else
c6b750e1
DJ
4138 echo "$as_me:$LINENO: result: no" >&5
4139echo "${ECHO_T}no" >&6
9e07f89d
NN
4140fi
4141
512b7dfb 4142 GNATBIND=$ac_ct_GNATBIND
24ff9987 4143else
512b7dfb 4144 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4145fi
4146
7df2cd5d 4147if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4148 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4149set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4150echo "$as_me:$LINENO: checking for $ac_word" >&5
4151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4152if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4154else
512b7dfb
PB
4155 if test -n "$GNATMAKE"; then
4156 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4157else
4158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159for as_dir in $PATH
4160do
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4165 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 break 2
4168 fi
4169done
4170done
4171
4172fi
4173fi
512b7dfb
PB
4174GNATMAKE=$ac_cv_prog_GNATMAKE
4175if test -n "$GNATMAKE"; then
4176 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4177echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4178else
4179 echo "$as_me:$LINENO: result: no" >&5
4180echo "${ECHO_T}no" >&6
4181fi
4182
4183fi
512b7dfb
PB
4184if test -z "$ac_cv_prog_GNATMAKE"; then
4185 ac_ct_GNATMAKE=$GNATMAKE
4186 # Extract the first word of "gnatmake", so it can be a program name with args.
4187set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4188echo "$as_me:$LINENO: checking for $ac_word" >&5
4189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4190if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4192else
512b7dfb
PB
4193 if test -n "$ac_ct_GNATMAKE"; then
4194 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4195else
4196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197for as_dir in $PATH
4198do
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4203 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 break 2
4206 fi
4207done
4208done
4209
512b7dfb 4210 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4211fi
4212fi
512b7dfb
PB
4213ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4214if test -n "$ac_ct_GNATMAKE"; then
4215 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4216echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4217else
4218 echo "$as_me:$LINENO: result: no" >&5
4219echo "${ECHO_T}no" >&6
4220fi
4221
512b7dfb 4222 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4223else
512b7dfb 4224 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4225fi
4226
c6b750e1
DJ
4227echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4228echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4229if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4231else
4232 cat >conftest.adb <<EOF
4233procedure conftest is begin null; end conftest;
4234EOF
4235acx_cv_cc_gcc_supports_ada=no
4236# There is a bug in old released versions of GCC which causes the
4237# driver to exit successfully when the appropriate language module
4238# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4239# Therefore we must check for the error message as well as an
4240# unsuccessful exit.
b8908782
DD
4241# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4242# given a .adb file, but produce no object file. So we must check
4243# if an object file was really produced to guard against this.
9e07f89d 4244errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4245if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4246 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4247fi
4248rm -f conftest.*
4249fi
c6b750e1
DJ
4250echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4251echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4252
512b7dfb 4253if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4254 have_gnat=yes
4255else
4256 have_gnat=no
4257fi
4258
c6b750e1
DJ
4259echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4260echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4261if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4263else
4264 echo abfoo >t1
4265 echo cdfoo >t2
4266 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4267 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4268 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4269 :
4270 else
4271 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4272 fi
4273 fi
b8908782
DD
4274 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4275 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4276 :
b8908782
DD
4277 else
4278 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4279 fi
4280 fi
4281 rm t1 t2
4282
4283fi
c6b750e1
DJ
4284echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4285echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4286do_compare="$gcc_cv_prog_cmp_skip"
4287
4288
9e07f89d 4289
11b04d1f 4290# Check for GMP and MPFR
4b900473 4291gmplibs="-lmpfr -lgmp"
4b1cb4fe 4292gmpinc=
4b900473
PB
4293have_gmp=no
4294
11b04d1f
DD
4295# Specify a location for mpfr
4296# check for this first so it ends up on the link line before gmp.
c6b750e1 4297
11b04d1f
DD
4298# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4299if test "${with_mpfr_dir+set}" = set; then
4300 withval="$with_mpfr_dir"
c6b750e1
DJ
4301 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4302Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4303echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4304Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4305 { (exit 1); exit 1; }; }
4306fi;
11b04d1f
DD
4307
4308
11b04d1f
DD
4309# Check whether --with-mpfr or --without-mpfr was given.
4310if test "${with_mpfr+set}" = set; then
4311 withval="$with_mpfr"
c6b750e1
DJ
4312
4313fi;
11b04d1f 4314
8a0d8a5c
PB
4315# Check whether --with-mpfr_include or --without-mpfr_include was given.
4316if test "${with_mpfr_include+set}" = set; then
4317 withval="$with_mpfr_include"
c6b750e1
DJ
4318
4319fi;
8a0d8a5c
PB
4320
4321# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4322if test "${with_mpfr_lib+set}" = set; then
4323 withval="$with_mpfr_lib"
8a0d8a5c 4324
c6b750e1 4325fi;
11b04d1f
DD
4326
4327if test "x$with_mpfr" != x; then
4328 gmplibs="-L$with_mpfr/lib $gmplibs"
4329 gmpinc="-I$with_mpfr/include"
4330fi
8a0d8a5c
PB
4331if test "x$with_mpfr_include" != x; then
4332 gmpinc="-I$with_mpfr_include"
4333fi
4334if test "x$with_mpfr_lib" != x; then
4335 gmplibs="-L$with_mpfr_lib $gmplibs"
4336fi
4b900473
PB
4337if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4338 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4339 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4340 # Do not test the mpfr version. Assume that it is sufficient, since
4341 # it is in the source tree, and the library has not been built yet
4342 # but it would be included on the link line in the version check below
4343 # hence making the test fail.
4344 have_gmp=yes
4345fi
11b04d1f 4346
4b1cb4fe 4347# Specify a location for gmp
c6b750e1 4348
4b1cb4fe
DD
4349# Check whether --with-gmp-dir or --without-gmp-dir was given.
4350if test "${with_gmp_dir+set}" = set; then
4351 withval="$with_gmp_dir"
c6b750e1
DJ
4352 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4353Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4354echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4355Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4356 { (exit 1); exit 1; }; }
4357fi;
4b1cb4fe
DD
4358
4359
4b1cb4fe
DD
4360# Check whether --with-gmp or --without-gmp was given.
4361if test "${with_gmp+set}" = set; then
4362 withval="$with_gmp"
c6b750e1
DJ
4363
4364fi;
4b1cb4fe 4365
8a0d8a5c
PB
4366# Check whether --with-gmp_include or --without-gmp_include was given.
4367if test "${with_gmp_include+set}" = set; then
4368 withval="$with_gmp_include"
c6b750e1
DJ
4369
4370fi;
8a0d8a5c
PB
4371
4372# Check whether --with-gmp_lib or --without-gmp_lib was given.
4373if test "${with_gmp_lib+set}" = set; then
4374 withval="$with_gmp_lib"
8a0d8a5c 4375
c6b750e1 4376fi;
8a0d8a5c 4377
4b1cb4fe 4378
11b04d1f
DD
4379if test "x$with_gmp" != x; then
4380 gmplibs="-L$with_gmp/lib $gmplibs"
4381 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4382fi
8a0d8a5c
PB
4383if test "x$with_gmp_include" != x; then
4384 gmpinc="-I$with_gmp_include $gmpinc"
4385fi
4386if test "x$with_gmp_lib" != x; then
4387 gmplibs="-L$with_gmp_lib $gmplibs"
4388fi
4b900473
PB
4389if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4390 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4391 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4392 # Do not test the gmp version. Assume that it is sufficient, since
4393 # it is in the source tree, and the library has not been built yet
4394 # but it would be included on the link line in the version check below
4395 # hence making the test fail.
4396 have_gmp=yes
4397fi
4b1cb4fe 4398
ceb92e78 4399if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4400 have_gmp=yes
4401 saved_CFLAGS="$CFLAGS"
4402 CFLAGS="$CFLAGS $gmpinc"
4403 # Check GMP actually works
c6b750e1
DJ
4404 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4405echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4406
4407cat >conftest.$ac_ext <<_ACEOF
4408/* confdefs.h. */
4409_ACEOF
4410cat confdefs.h >>conftest.$ac_ext
4411cat >>conftest.$ac_ext <<_ACEOF
4412/* end confdefs.h. */
4b1cb4fe 4413#include "gmp.h"
c6b750e1
DJ
4414int
4415main ()
4416{
4b1cb4fe 4417
4b900473
PB
4418 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4419 choke me
4420 #endif
c6b750e1
DJ
4421
4422 ;
4423 return 0;
4424}
4425_ACEOF
4426rm -f conftest.$ac_objext
4427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4428 (eval $ac_compile) 2>conftest.er1
4429 ac_status=$?
4430 grep -v '^ *+' conftest.er1 >conftest.err
4431 rm -f conftest.er1
4432 cat conftest.err >&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); } &&
4435 { ac_try='test -z "$ac_c_werror_flag"
4436 || test ! -s conftest.err'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 (eval $ac_try) 2>&5
4439 ac_status=$?
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; } &&
4442 { ac_try='test -s conftest.$ac_objext'
4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 (eval $ac_try) 2>&5
4445 ac_status=$?
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; }; then
4448 echo "$as_me:$LINENO: result: yes" >&5
4449echo "${ECHO_T}yes" >&6
4450else
4451 echo "$as_me: failed program was:" >&5
4452sed 's/^/| /' conftest.$ac_ext >&5
4453
4454echo "$as_me:$LINENO: result: no" >&5
4455echo "${ECHO_T}no" >&6; have_gmp=no
4456fi
4457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4458
4b900473
PB
4459 if test x"$have_gmp" = xyes; then
4460 saved_LIBS="$LIBS"
4461 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4462 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4463echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4464 cat >conftest.$ac_ext <<_ACEOF
4465/* confdefs.h. */
4466_ACEOF
4467cat confdefs.h >>conftest.$ac_ext
4468cat >>conftest.$ac_ext <<_ACEOF
4469/* end confdefs.h. */
9b134994 4470#include <gmp.h>
4b900473 4471 #include <mpfr.h>
c6b750e1
DJ
4472int
4473main ()
4474{
9b134994 4475
4b900473
PB
4476 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4477 choke me
4478 #endif
4479 mpfr_t n; mpfr_init(n);
4480 mpfr_t x; mpfr_init(x);
4481 int t;
4482 mpfr_atan2 (n, n, x, GMP_RNDN);
4483 mpfr_erfc (n, x, GMP_RNDN);
4484 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4485
4486 ;
4487 return 0;
4488}
4489_ACEOF
4490rm -f conftest.$ac_objext conftest$ac_exeext
4491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4492 (eval $ac_link) 2>conftest.er1
4493 ac_status=$?
4494 grep -v '^ *+' conftest.er1 >conftest.err
4495 rm -f conftest.er1
4496 cat conftest.err >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } &&
4499 { ac_try='test -z "$ac_c_werror_flag"
4500 || test ! -s conftest.err'
4501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502 (eval $ac_try) 2>&5
4503 ac_status=$?
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; } &&
4506 { ac_try='test -s conftest$ac_exeext'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 (eval $ac_try) 2>&5
4509 ac_status=$?
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; }; then
4512 cat >conftest.$ac_ext <<_ACEOF
4513/* confdefs.h. */
4514_ACEOF
4515cat confdefs.h >>conftest.$ac_ext
4516cat >>conftest.$ac_ext <<_ACEOF
4517/* end confdefs.h. */
4b1cb4fe 4518#include <gmp.h>
4b900473 4519 #include <mpfr.h>
c6b750e1
DJ
4520int
4521main ()
4522{
9dbaa842 4523
4b900473
PB
4524 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4525 choke me
4526 #endif
4527 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4528
4529 ;
4530 return 0;
4531}
4532_ACEOF
4533rm -f conftest.$ac_objext conftest$ac_exeext
4534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4535 (eval $ac_link) 2>conftest.er1
4536 ac_status=$?
4537 grep -v '^ *+' conftest.er1 >conftest.err
4538 rm -f conftest.er1
4539 cat conftest.err >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); } &&
4542 { ac_try='test -z "$ac_c_werror_flag"
4543 || test ! -s conftest.err'
4544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 (eval $ac_try) 2>&5
4546 ac_status=$?
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; } &&
4549 { ac_try='test -s conftest$ac_exeext'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 (eval $ac_try) 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; }; then
4555 echo "$as_me:$LINENO: result: yes" >&5
4556echo "${ECHO_T}yes" >&6
4557else
4558 echo "$as_me: failed program was:" >&5
4559sed 's/^/| /' conftest.$ac_ext >&5
4560
4561echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4562echo "${ECHO_T}buggy but acceptable" >&6
4563fi
4564rm -f conftest.err conftest.$ac_objext \
4565 conftest$ac_exeext conftest.$ac_ext
4566else
4567 echo "$as_me: failed program was:" >&5
4568sed 's/^/| /' conftest.$ac_ext >&5
4569
4570echo "$as_me:$LINENO: result: no" >&5
4571echo "${ECHO_T}no" >&6; have_gmp=no
4572fi
4573rm -f conftest.err conftest.$ac_objext \
4574 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4575 LIBS="$saved_LIBS"
4576 fi
4577 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4578
4b900473 4579 if test x$have_gmp != xyes; then
c6b750e1
DJ
4580 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4581Try the --with-gmp and/or --with-mpfr options to specify their locations.
4582Copies of these libraries' source code can be found at their respective
4583hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4584See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4585If you obtained GMP and/or MPFR from a vendor distribution package, make
4586sure that you have installed both the libraries and the header files.
4587They may be located in separate packages." >&5
4588echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
9dbaa842
DD
4589Try the --with-gmp and/or --with-mpfr options to specify their locations.
4590Copies of these libraries' source code can be found at their respective
4591hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4592See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4593If you obtained GMP and/or MPFR from a vendor distribution package, make
4594sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4595They may be located in separate packages." >&2;}
4596 { (exit 1); exit 1; }; }
4b900473 4597 fi
9dbaa842
DD
4598fi
4599
11b04d1f 4600# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4601
4602
4603
947f426e 4604# By default, C is the only stage 1 language.
9b134994 4605stage1_languages=,c,
1d39f329 4606
9e07f89d
NN
4607# Figure out what language subdirectories are present.
4608# Look if the user specified --enable-languages="..."; if not, use
4609# the environment variable $LANGUAGES if defined. $LANGUAGES might
4610# go away some day.
4611# NB: embedded tabs in this IF block -- do not untabify
4612if test -d ${srcdir}/gcc; then
4613 if test x"${enable_languages+set}" != xset; then
4614 if test x"${LANGUAGES+set}" = xset; then
4615 enable_languages="${LANGUAGES}"
4616 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4617 else
4618 enable_languages=all
4619 fi
4620 else
4621 if test x"${enable_languages}" = x ||
4622 test x"${enable_languages}" = xyes;
4623 then
4624 echo configure.in: --enable-languages needs at least one language argument 1>&2
4625 exit 1
4626 fi
4627 fi
4628 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4629
096f7d00
DE
4630 # 'f95' is the old name for the 'fortran' language. We issue a warning
4631 # and make the substitution.
4632 case ,${enable_languages}, in
4633 *,f95,*)
4634 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4635 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4636 ;;
4637 esac
4638
9e07f89d
NN
4639 # First scan to see if an enabled language requires some other language.
4640 # We assume that a given config-lang.in will list all the language
4641 # front ends it requires, even if some are required indirectly.
4642 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4643 case ${lang_frag} in
4644 ..) ;;
4645 # The odd quoting in the next line works around
4646 # an apparent bug in bash 1.12 on linux.
4647 ${srcdir}/gcc/[*]/config-lang.in) ;;
4648 *)
4649 # From the config-lang.in, get $language, $lang_requires
4650 language=
4651 lang_requires=
4652 . ${lang_frag}
4653 for other in ${lang_requires} ; do
4654 case ,${enable_languages}, in
4655 *,$other,*) ;;
4656 *,all,*) ;;
4657 *,$language,*)
4658 echo " \`$other' language required by \`$language'; enabling" 1>&2
4659 enable_languages="${enable_languages},${other}"
4660 ;;
4661 esac
4662 done
4663 ;;
4664 esac
4665 done
4666
9b134994 4667 new_enable_languages=,c,
9e07f89d 4668 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4669 potential_languages=,c,
9e07f89d
NN
4670
4671 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4672 case ${lang_frag} in
4673 ..) ;;
4674 # The odd quoting in the next line works around
4675 # an apparent bug in bash 1.12 on linux.
4676 ${srcdir}/gcc/[*]/config-lang.in) ;;
4677 *)
c6b750e1 4678 # From the config-lang.in, get $language, $target_libs,
1d39f329 4679 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4680 language=
4681 target_libs=
4682 lang_dirs=
64ce424c 4683 subdir_requires=
9b134994
PB
4684 boot_language=no
4685 build_by_default=yes
9e07f89d 4686 . ${lang_frag}
9b134994
PB
4687 if test x${language} = x; then
4688 echo "${lang_frag} doesn't set \$language." 1>&2
4689 exit 1
4690 fi
4691
4692 case ,${enable_languages}, in
4693 *,${language},*)
9e07f89d
NN
4694 # Language was explicitly selected; include it.
4695 add_this_lang=yes
4696 ;;
9b134994
PB
4697 *,all,*)
4698 # 'all' was selected, select it if it is a default language
4699 add_this_lang=${build_by_default}
9e07f89d
NN
4700 ;;
4701 *)
4702 add_this_lang=no
4703 ;;
4704 esac
4b1cb4fe 4705
64ce424c 4706 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4707 for i in $subdir_requires; do
3d3adb43 4708 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4709 case ,${enable_languages}, in
4710 *,${language},*)
4711 # Specifically requested language; tell them.
c6b750e1
DJ
4712 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4713echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4714 { (exit 1); exit 1; }; }
64ce424c
PB
4715 ;;
4716 *)
4717 # Silently disable.
9b134994 4718 add_this_lang=unsupported
64ce424c
PB
4719 ;;
4720 esac
4721 done
4722
9b134994
PB
4723 # Disable Ada if no preexisting GNAT is available.
4724 case ,${enable_languages},:${language}:${have_gnat} in
4725 *,${language},*:ada:no)
4726 # Specifically requested language; tell them.
c6b750e1
DJ
4727 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4728echo "$as_me: error: GNAT is required to build $language" >&2;}
4729 { (exit 1); exit 1; }; }
9b134994
PB
4730 ;;
4731 *:ada:no)
4732 # Silently disable.
4733 add_this_lang=unsupported
4734 ;;
4735 esac
4736
59f7ec45
HPN
4737 # Disable a language that is unsupported by the target.
4738 case " $unsupported_languages " in
4739 *" $language "*)
9b134994 4740 add_this_lang=unsupported
59f7ec45
HPN
4741 ;;
4742 esac
4743
4b1cb4fe 4744 case $add_this_lang in
9b134994 4745 unsupported)
9e07f89d 4746 # Remove language-dependent dirs.
1d39f329
NN
4747 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4748 ;;
9b134994
PB
4749 no)
4750 # Remove language-dependent dirs; still show language as supported.
4751 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4752 potential_languages="${potential_languages}${language},"
4753 ;;
4754 yes)
4755 new_enable_languages="${new_enable_languages}${language},"
4756 potential_languages="${potential_languages}${language},"
1d39f329
NN
4757 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4758 case ${boot_language} in
4759 yes)
4fa63067 4760 # Add to (comma-separated) list of stage 1 languages.
9b134994 4761 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4762 ;;
4763 esac
4764 ;;
9e07f89d
NN
4765 esac
4766 ;;
4767 esac
4768 done
4769
9b134994
PB
4770 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4771if test "${enable_stage1_languages+set}" = set; then
4772 enableval="$enable_stage1_languages"
4773 case ,${enable_stage1_languages}, in
4774 ,no,|,,)
4775 # Set it to something that will have no effect in the loop below
4776 enable_stage1_languages=c ;;
4777 ,yes,)
4778 enable_stage1_languages=`echo $new_enable_languages | \
4779 sed -e "s/^,//" -e "s/,$//" ` ;;
4780 *,all,*)
4781 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4782 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4783 esac
4784
4785 # Add "good" languages from enable_stage1_languages to stage1_languages,
4786 # while "bad" languages go in missing_languages. Leave no duplicates.
4787 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4788 case $potential_languages in
4789 *,$i,*)
4790 case $stage1_languages in
4791 *,$i,*) ;;
4792 *) stage1_languages="$stage1_languages$i," ;;
4793 esac ;;
4794 *)
4795 case $missing_languages in
4796 *,$i,*) ;;
4797 *) missing_languages="$missing_languages$i," ;;
4798 esac ;;
4799 esac
4800 done
c6b750e1 4801fi;
9b134994
PB
4802
4803 # Remove leading/trailing commas that were added for simplicity
4804 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4805 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4806 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4807 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4808
9e07f89d 4809 if test "x$missing_languages" != x; then
c6b750e1 4810 { { echo "$as_me:$LINENO: error:
27258dd4 4811The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4812Supported languages are: ${potential_languages}" >&5
4813echo "$as_me: error:
4814The following requested languages could not be built: ${missing_languages}
4815Supported languages are: ${potential_languages}" >&2;}
4816 { (exit 1); exit 1; }; }
9e07f89d 4817 fi
9e07f89d
NN
4818 if test "x$new_enable_languages" != "x$enable_languages"; then
4819 echo The following languages will be built: ${new_enable_languages}
9b134994 4820 enable_languages="$new_enable_languages"
9e07f89d 4821 fi
9b134994 4822
c6b750e1 4823
81ec575a 4824 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
4825fi
4826
a6df5a19
PB
4827# Handle --disable-<component> generically.
4828for dir in $configdirs $build_configdirs $target_configdirs ; do
4829 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4830 if eval test x\${enable_${dirname}} "=" xno ; then
4831 noconfigdirs="$noconfigdirs $dir"
4832 fi
4833done
4834
4f0ef2d8
CD
4835# Check for Boehm's garbage collector
4836# Check whether --enable-objc-gc or --disable-objc-gc was given.
4837if test "${enable_objc_gc+set}" = set; then
4838 enableval="$enable_objc_gc"
4839 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4840 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
4841 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4842echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4843 { (exit 1); exit 1; }; }
4f0ef2d8
CD
4844 ;;
4845esac
c6b750e1 4846fi;
4f0ef2d8
CD
4847
4848# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
4849case ,${enable_languages},:${enable_objc_gc} in
4850 *,objc,*:yes)
4f0ef2d8
CD
4851 # Keep target-boehm-gc if requested for Objective-C.
4852 ;;
4f0ef2d8 4853 *)
d42c4017
DA
4854 # Otherwise remove target-boehm-gc depending on target-libjava.
4855 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4856 noconfigdirs="$noconfigdirs target-boehm-gc"
4857 fi
4f0ef2d8
CD
4858 ;;
4859esac
4860
caeba88f
AL
4861# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4862# $build_configdirs and $target_configdirs.
9e07f89d
NN
4863# If we have the source for $noconfigdirs entries, add them to $notsupp.
4864
4865notsupp=""
4866for dir in . $skipdirs $noconfigdirs ; do
caeba88f 4867 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
4868 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4869 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4870 if test -r $srcdir/$dirname/configure ; then
4871 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4872 true
4873 else
4874 notsupp="$notsupp $dir"
4875 fi
4876 fi
4877 fi
caeba88f
AL
4878 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4879 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4880 if test -r $srcdir/$dirname/configure ; then
4881 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4882 true
4883 else
4884 notsupp="$notsupp $dir"
4885 fi
4886 fi
4887 fi
9e07f89d
NN
4888 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4889 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4890 if test -r $srcdir/$dirname/configure ; then
4891 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4892 true
4893 else
4894 notsupp="$notsupp $dir"
4895 fi
4896 fi
4897 fi
4898done
4899
4900# Sometimes the tools are distributed with libiberty but with no other
4901# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 4902# Don't let libgcc imply libiberty either.
9e07f89d 4903if test -n "${target_configdirs}" ; then
f86e35b8 4904 libgcc=
9e07f89d
NN
4905 others=
4906 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
4907 if test "$i" = "libgcc"; then
4908 libgcc=target-libgcc
4909 elif test "$i" != "libiberty" ; then
9e07f89d
NN
4910 if test -r $srcdir/$i/configure ; then
4911 others=yes;
4912 break;
4913 fi
4914 fi
4915 done
4916 if test -z "${others}" ; then
f86e35b8 4917 target_configdirs=$libgcc
9e07f89d
NN
4918 fi
4919fi
4920
4921# Quietly strip out all directories which aren't configurable in this tree.
4922# This relies on all configurable subdirectories being autoconfiscated, which
4923# is now the case.
6a9cf61e
PB
4924build_configdirs_all="$build_configdirs"
4925build_configdirs=
4926for i in ${build_configdirs_all} ; do
c6b750e1 4927 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
4928 if test -f ${srcdir}/$j/configure ; then
4929 build_configdirs="${build_configdirs} $i"
4930 fi
4931done
4932
9e07f89d
NN
4933configdirs_all="$configdirs"
4934configdirs=
4935for i in ${configdirs_all} ; do
4936 if test -f ${srcdir}/$i/configure ; then
4937 configdirs="${configdirs} $i"
4938 fi
4939done
6a9cf61e 4940
9e07f89d
NN
4941target_configdirs_all="$target_configdirs"
4942target_configdirs=
4943for i in ${target_configdirs_all} ; do
c6b750e1 4944 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
4945 if test -f ${srcdir}/$j/configure ; then
4946 target_configdirs="${target_configdirs} $i"
4947 fi
4948done
4949
4950# Produce a warning message for the subdirs we can't configure.
4951# This isn't especially interesting in the Cygnus tree, but in the individual
4952# FSF releases, it's important to let people know when their machine isn't
4953# supported by the one or two programs in a package.
4954
4955if test -n "${notsupp}" && test -z "${norecursion}" ; then
4956 # If $appdirs is non-empty, at least one of those directories must still
4957 # be configured, or we error out. (E.g., if the gas release supports a
4958 # specified target in some subdirs but not the gas subdir, we shouldn't
4959 # pretend that all is well.)
4960 if test -n "$appdirs" ; then
4961 for dir in $appdirs ; do
4962 if test -r $dir/Makefile.in ; then
4963 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4964 appdirs=""
4965 break
4966 fi
6a9cf61e 4967 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
4968 appdirs=""
4969 break
4970 fi
4971 fi
4972 done
4973 if test -n "$appdirs" ; then
4974 echo "*** This configuration is not supported by this package." 1>&2
4975 exit 1
4976 fi
4977 fi
4978 # Okay, some application will build, or we don't care to check. Still
4979 # notify of subdirs not getting built.
4980 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4981 echo " ${notsupp}" 1>&2
4982 echo " (Any other directories should still work fine.)" 1>&2
4983fi
4984
4985case "$host" in
4986 *msdosdjgpp*)
4987 enable_gdbtk=no ;;
4988esac
4989
18f6b6ee
PB
4990# To find our prefix, in gcc_cv_tool_prefix.
4991
4992# The user is always right.
4993if test "${PATH_SEPARATOR+set}" != set; then
4994 echo "#! /bin/sh" >conf$$.sh
4995 echo "exit 0" >>conf$$.sh
4996 chmod +x conf$$.sh
4997 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4998 PATH_SEPARATOR=';'
4999 else
5000 PATH_SEPARATOR=:
5001 fi
5002 rm -f conf$$.sh
5003fi
5004
5005
5006
5007if test "x$exec_prefix" = xNONE; then
5008 if test "x$prefix" = xNONE; then
5009 gcc_cv_tool_prefix=$ac_default_prefix
5010 else
5011 gcc_cv_tool_prefix=$prefix
5012 fi
5013else
5014 gcc_cv_tool_prefix=$exec_prefix
5015fi
5016
5017# If there is no compiler in the tree, use the PATH only. In any
5018# case, if there is no compiler in the tree nobody should use
5019# AS_FOR_TARGET and LD_FOR_TARGET.
5020if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5021 gcc_version=`cat $srcdir/gcc/BASE-VER`
5022 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5023 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5024 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5025 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5026 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5027 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5028else
5029 gcc_cv_tool_dirs=
5030fi
5031
5032if test x$build = x$target && test -n "$md_exec_prefix"; then
5033 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5034fi
5035
5036
5037
9e07f89d
NN
5038copy_dirs=
5039
c6b750e1 5040
a19b6204
MM
5041# Check whether --with-build-sysroot or --without-build-sysroot was given.
5042if test "${with_build_sysroot+set}" = set; then
5043 withval="$with_build_sysroot"
5044 if test x"$withval" != x ; then
5045 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5046 fi
5047else
5048 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5049fi;
a19b6204
MM
5050
5051
9e07f89d
NN
5052# Handle --with-headers=XXX. If the value is not "yes", the contents of
5053# the named directory are copied to $(tooldir)/sys-include.
5054if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5055 if test x${is_cross_compiler} = xno ; then
5056 echo 1>&2 '***' --with-headers is only supported when cross compiling
5057 exit 1
5058 fi
5059 if test x"${with_headers}" != xyes ; then
18f6b6ee 5060 x=${gcc_cv_tool_prefix}
c6b750e1 5061 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5062 fi
5063fi
5064
5065# Handle --with-libs=XXX. If the value is not "yes", the contents of
5066# the name directories are copied to $(tooldir)/lib. Multiple directories
5067# are permitted.
5068if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5069 if test x${is_cross_compiler} = xno ; then
5070 echo 1>&2 '***' --with-libs is only supported when cross compiling
5071 exit 1
5072 fi
5073 if test x"${with_libs}" != xyes ; then
5074 # Copy the libraries in reverse order, so that files in the first named
5075 # library override files in subsequent libraries.
18f6b6ee 5076 x=${gcc_cv_tool_prefix}
9e07f89d 5077 for l in ${with_libs}; do
c6b750e1 5078 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5079 done
5080 fi
5081fi
5082
2429c060
PB
5083# Set with_gnu_as and with_gnu_ld as appropriate.
5084#
5085# This is done by determining whether or not the appropriate directory
5086# is available, and by checking whether or not specific configurations
5087# have requested that this magic not happen.
c6b750e1
DJ
5088#
5089# The command line options always override the explicit settings in
2429c060
PB
5090# configure.in, and the settings in configure.in override this magic.
5091#
c6b750e1 5092# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5093# want to do that, then you should use the --without-gnu-as and
5094# --without-gnu-ld options for the configure script.
5095
5096if test x${use_gnu_as} = x &&
5097 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5098 with_gnu_as=yes
5099 extra_host_args="$extra_host_args --with-gnu-as"
5100fi
5101
5102if test x${use_gnu_ld} = x &&
5103 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5104 with_gnu_ld=yes
5105 extra_host_args="$extra_host_args --with-gnu-ld"
5106fi
5107
5108# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5109# can detect this case.
5110
5111if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5112 with_newlib=yes
5113 extra_host_args="$extra_host_args --with-newlib"
5114fi
5115
9e07f89d
NN
5116# Handle ${copy_dirs}
5117set fnord ${copy_dirs}
5118shift
5119while test $# != 0 ; do
5120 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5121 :
5122 else
5123 echo Copying $1 to $2
5124
5125 # Use the install script to create the directory and all required
5126 # parent directories.
5127 if test -d $2 ; then
5128 :
5129 else
5130 echo >config.temp
5131 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5132 fi
5133
5134 # Copy the directory, assuming we have tar.
5135 # FIXME: Should we use B in the second tar? Not all systems support it.
5136 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5137
5138 # It is the responsibility of the user to correctly adjust all
5139 # symlinks. If somebody can figure out how to handle them correctly
5140 # here, feel free to add the code.
5141
5142 echo $1 > $2/COPIED
5143 fi
5144 shift; shift
5145done
5146
2429c060
PB
5147# Determine a target-dependent exec_prefix that the installed
5148# gcc will search in. Keep this list sorted by triplet, with
5149# the *-*-osname triplets last.
5150md_exec_prefix=
5151case "${target}" in
5152 alpha*-*-*vms*)
5153 md_exec_prefix=/gnu/lib/gcc-lib
5154 ;;
5155 i3456786-pc-msdosdjgpp*)
5156 md_exec_prefix=/dev/env/DJDIR/bin
5157 ;;
5158 i3456786-*-sco3.2v5*)
5159 if test $with_gnu_as = yes; then
5160 md_exec_prefix=/usr/gnu/bin
5161 else
5162 md_exec_prefix=/usr/ccs/bin/elf
5163 fi
5164 ;;
5165
5166 mn10300-*-* | \
5167 powerpc-*-chorusos* | \
5168 powerpc*-*-eabi* | \
5169 powerpc*-*-sysv* | \
5170 powerpc*-*-kaos* | \
5171 s390x-ibm-tpf*)
5172 md_exec_prefix=/usr/ccs/bin
5173 ;;
5174 sparc64-*-elf*)
5175 ;;
5176 v850*-*-*)
5177 md_exec_prefix=/usr/ccs/bin
5178 ;;
5179 xtensa-*-elf*)
5180 ;;
5181
5182 *-*-beos* | \
5183 *-*-elf* | \
5184 *-*-hpux* | \
5185 *-*-netware* | \
5186 *-*-nto-qnx* | \
5187 *-*-rtems* | \
5188 *-*-solaris2* | \
5189 *-*-sysv45* | \
5190 *-*-vxworks* | \
5191 *-wrs-windiss)
5192 md_exec_prefix=/usr/ccs/bin
5193 ;;
5194esac
5195
a0da8069
NN
5196extra_arflags_for_target=
5197extra_nmflags_for_target=
5198extra_ranlibflags_for_target=
5199target_makefile_frag=/dev/null
5200case "${target}" in
4e206d7e
DB
5201 mep*-*-*)
5202 target_makefile_frag="config/mt-mep"
5203 ;;
77d7106f
AM
5204 spu-*-*)
5205 target_makefile_frag="config/mt-spu"
5206 ;;
2a3124ca 5207 *-*-netware*)
a0da8069
NN
5208 target_makefile_frag="config/mt-netware"
5209 ;;
3d6dfe0f
NN
5210 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5211 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5212 ;;
5213 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5214 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5215 # commands to handle both 32-bit and 64-bit objects. These flags are
5216 # harmless if we're using GNU nm or ar.
5217 extra_arflags_for_target=" -X32_64"
5218 extra_nmflags_for_target=" -B -X32_64"
5219 ;;
5220 *-*-darwin*)
5221 # ranlib from Darwin requires the -c flag to look at common symbols.
5222 extra_ranlibflags_for_target=" -c"
5223 ;;
5224 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5225 target_makefile_frag="config/mt-wince"
5226 ;;
5227esac
5228
5229alphaieee_frag=/dev/null
5230case $target in
5231 alpha*-*-*)
5232 # This just makes sure to use the -mieee option to build target libs.
5233 # This should probably be set individually by each library.
5234 alphaieee_frag="config/mt-alphaieee"
5235 ;;
5236esac
5237
5238# If --enable-target-optspace always use -Os instead of -O2 to build
5239# the target libraries, similarly if it is not specified, use -Os
5240# on selected platforms.
5241ospace_frag=/dev/null
5242case "${enable_target_optspace}:${target}" in
5243 yes:*)
5244 ospace_frag="config/mt-ospace"
5245 ;;
5246 :d30v-*)
5247 ospace_frag="config/mt-d30v"
5248 ;;
5249 :m32r-* | :d10v-* | :fr30-*)
5250 ospace_frag="config/mt-ospace"
5251 ;;
5252 no:* | :*)
5253 ;;
5254 *)
5255 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5256 ;;
5257esac
5258
a0da8069
NN
5259# Default to using --with-stabs for certain targets.
5260if test x${with_stabs} = x ; then
5261 case "${target}" in
e31d1ea3 5262 mips*-*-irix[56]*)
a0da8069
NN
5263 ;;
5264 mips*-*-* | alpha*-*-osf*)
5265 with_stabs=yes;
5266 extra_host_args="${extra_host_args} --with-stabs"
5267 ;;
5268 esac
5269fi
5270
5271# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5272# them automatically.
5273case "${host}" in
c6b750e1 5274 hppa*64*-*-hpux11*)
a0da8069
NN
5275 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5276 ;;
5277esac
5278
a0da8069
NN
5279# Some systems (e.g., one of the i386-aix systems the gas testers are
5280# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5281tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5282build_tooldir=${tooldir}
5283
a0da8069
NN
5284# Create a .gdbinit file which runs the one in srcdir
5285# and tells GDB to look there for source files.
5286
5287if test -r ${srcdir}/.gdbinit ; then
5288 case ${srcdir} in
5289 .) ;;
5290 *) cat > ./.gdbinit <<EOF
5291# ${NO_EDIT}
5292dir ${srcdir}
5293dir .
5294source ${srcdir}/.gdbinit
5295EOF
5296 ;;
5297 esac
5298fi
5299
a0da8069
NN
5300# Make sure that the compiler is able to generate an executable. If it
5301# can't, we are probably in trouble. We don't care whether we can run the
5302# executable--we might be using a cross compiler--we only care whether it
5303# can be created. At this point the main configure script has set CC.
5304we_are_ok=no
5305echo "int main () { return 0; }" > conftest.c
5306${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5307if test $? = 0 ; then
5308 if test -s conftest || test -s conftest.exe ; then
5309 we_are_ok=yes
5310 fi
c6b750e1 5311fi
a0da8069
NN
5312case $we_are_ok in
5313 no)
5314 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5315 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5316 rm -f conftest*
5317 exit 1
5318 ;;
5319esac
5320rm -f conftest*
5321
5322# The Solaris /usr/ucb/cc compiler does not appear to work.
5323case "${host}" in
5324 sparc-sun-solaris2*)
5325 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5326 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5327 could_use=
5328 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5329 if test -d /opt/cygnus/bin ; then
5330 if test "$could_use" = "" ; then
5331 could_use="/opt/cygnus/bin"
5332 else
5333 could_use="$could_use or /opt/cygnus/bin"
5334 fi
5335 fi
5336 if test "$could_use" = "" ; then
5337 echo "Warning: compilation may fail because you're using"
5338 echo "/usr/ucb/cc. You should change your PATH or CC "
5339 echo "variable and rerun configure."
5340 else
5341 echo "Warning: compilation may fail because you're using"
5342 echo "/usr/ucb/cc, when you should use the C compiler from"
5343 echo "$could_use. You should change your"
5344 echo "PATH or CC variable and rerun configure."
5345 fi
5346 fi
5347 ;;
5348esac
5349
a0da8069
NN
5350case "${host}" in
5351 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5352 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5353 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5354esac
5355
5356# Record target_configdirs and the configure arguments for target and
5357# build configuration in Makefile.
5358target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5359build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5360
a0da8069
NN
5361# Determine whether gdb needs tk/tcl or not.
5362# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5363# and in that case we want gdb to be built without tk. Ugh!
5364# In fact I believe gdb is the *only* package directly dependent on tk,
5365# so we should be able to put the 'maybe's in unconditionally and
5366# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5367# 100% sure that that's safe though.
c180f501 5368
675c6968 5369gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5370case "$enable_gdbtk" in
5371 no)
5372 GDB_TK="" ;;
c180f501
AC
5373 yes)
5374 GDB_TK="${gdb_tk}" ;;
a0da8069 5375 *)
c180f501
AC
5376 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5377 # distro. Eventually someone will fix this and move Insight, nee
5378 # gdbtk to a separate directory.
5379 if test -d ${srcdir}/gdb/gdbtk ; then
5380 GDB_TK="${gdb_tk}"
5381 else
5382 GDB_TK=""
5383 fi
5384 ;;
a0da8069 5385esac
907be67c
DJ
5386CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5387INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5388
6bd3dfaa 5389# Strip out unwanted targets.
dd12c3a8
NN
5390
5391# While at that, we remove Makefiles if we were started for recursive
5392# configuration, so that the top-level Makefile reconfigures them,
5393# like we used to do when configure itself was recursive.
dd12c3a8 5394
6bd3dfaa
PB
5395# Loop over modules. $extrasub must be used with care, limiting as
5396# much as possible the usage of range addresses. That's because autoconf
5397# splits the sed script to overcome limits in the number of commands,
5398# and relying on carefully-timed sed passes may turn out to be very hard
5399# to maintain later. In this particular case, you just have to be careful
5400# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5401
319cab08
PB
5402# Check whether --enable-bootstrap or --disable-bootstrap was given.
5403if test "${enable_bootstrap+set}" = set; then
5404 enableval="$enable_bootstrap"
c6b750e1 5405
319cab08 5406else
9cb3fa6f 5407 enable_bootstrap=default
c6b750e1 5408fi;
319cab08 5409
9cb3fa6f
PB
5410# Issue errors and warnings for invalid/strange bootstrap combinations.
5411case "$configdirs" in
5412 *gcc*) have_compiler=yes ;;
5413 *) have_compiler=no ;;
5414esac
5415
5416case "$have_compiler:$host:$target:$enable_bootstrap" in
5417 *:*:*:no) ;;
5418
0aed8855 5419 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5420 # and we are in a native configuration.
5421 yes:$build:$build:default)
0aed8855 5422 enable_bootstrap=yes ;;
9cb3fa6f
PB
5423
5424 *:*:*:default)
5425 enable_bootstrap=no ;;
5426
5427 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5428 yes:$build:$build:yes)
9cb3fa6f
PB
5429 ;;
5430
5431 # Other configurations, but we have a compiler. Assume the user knows
5432 # what he's doing.
80911fe1 5433 yes:*:*:yes)
c6b750e1
DJ
5434 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5435echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5436 ;;
5437
5438 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5439 no:*:*:yes)
c6b750e1
DJ
5440 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5441echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5442 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5443
5444 # Fail if wrong command line
5445 *)
c6b750e1
DJ
5446 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5447echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5448 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5449 ;;
5450esac
5451
5452# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5453case "$enable_bootstrap" in
5454 yes)
498d4a71 5455 bootstrap_suffix=bootstrap ;;
319cab08 5456 no)
498d4a71 5457 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5458esac
5459
6a9cf61e 5460for module in ${build_configdirs} ; do
498d4a71
CF
5461 if test -z "${no_recursion}" \
5462 && test -f ${build_subdir}/${module}/Makefile; then
5463 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5464 rm -f ${build_subdir}/${module}/Makefile
5465 fi
5466 extrasub="$extrasub
5467/^@if build-$module\$/d
5468/^@endif build-$module\$/d
5469/^@if build-$module-$bootstrap_suffix\$/d
5470/^@endif build-$module-$bootstrap_suffix\$/d"
5471done
5472for module in ${configdirs} ; do
80911fe1 5473 if test -z "${no_recursion}"; then
8cf39b1b 5474 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5475 if test -f ${file}; then
5476 echo 1>&2 "*** removing ${file} to force reconfigure"
5477 rm -f ${file}
5478 fi
5479 done
498d4a71
CF
5480 fi
5481 extrasub="$extrasub
5482/^@if $module\$/d
5483/^@endif $module\$/d
5484/^@if $module-$bootstrap_suffix\$/d
5485/^@endif $module-$bootstrap_suffix\$/d"
5486done
5487for module in ${target_configdirs} ; do
5488 if test -z "${no_recursion}" \
5489 && test -f ${target_subdir}/${module}/Makefile; then
5490 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5491 rm -f ${target_subdir}/${module}/Makefile
5492 fi
5493 extrasub="$extrasub
5494/^@if target-$module\$/d
5495/^@endif target-$module\$/d
5496/^@if target-$module-$bootstrap_suffix\$/d
5497/^@endif target-$module-$bootstrap_suffix\$/d"
5498done
5499
6bd3dfaa
PB
5500extrasub="$extrasub
5501/^@if /,/^@endif /d"
a0da8069
NN
5502
5503# Create the serialization dependencies. This uses a temporary file.
5504
e6bfb94a
AO
5505# Check whether --enable-serial-configure or --disable-serial-configure was given.
5506if test "${enable_serial_configure+set}" = set; then
5507 enableval="$enable_serial_configure"
e6bfb94a 5508
c6b750e1 5509fi;
e6bfb94a 5510
1047cb91
DD
5511case ${enable_serial_configure} in
5512 yes)
5513 enable_serial_build_configure=yes
5514 enable_serial_host_configure=yes
5515 enable_serial_target_configure=yes
5516 ;;
5517esac
5518
a0da8069
NN
5519# These force 'configure's to be done one at a time, to avoid problems
5520# with contention over a shared config.cache.
5521rm -f serdep.tmp
e6bfb94a 5522echo '# serdep.tmp' > serdep.tmp
a0da8069 5523olditem=
1047cb91 5524test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5525for item in ${build_configdirs} ; do
5526 case ${olditem} in
5527 "") ;;
e6bfb94a 5528 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5529 esac
5530 olditem=${item}
5531done
5532olditem=
1047cb91 5533test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5534for item in ${configdirs} ; do
5535 case ${olditem} in
5536 "") ;;
e6bfb94a 5537 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5538 esac
5539 olditem=${item}
5540done
5541olditem=
1047cb91 5542test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5543for item in ${target_configdirs} ; do
5544 case ${olditem} in
5545 "") ;;
e6bfb94a 5546 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5547 esac
5548 olditem=${item}
5549done
5550serialization_dependencies=serdep.tmp
5551
5552
e6bfb94a 5553# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5554# target, nonopt, and variable assignments. These are the ones we
5555# might not want to pass down to subconfigures. Also strip
5556# program-prefix, program-suffix, and program-transform-name, so that
5557# we can pass down a consistent program-transform-name.
5558baseargs=
5559keep_next=no
5560skip_next=no
5561eval "set -- $ac_configure_args"
18f6b6ee
PB
5562for ac_arg
5563do
c6b750e1
DJ
5564 if test X"$skip_next" = X"yes"; then
5565 skip_next=no
5566 continue
5567 fi
5568 if test X"$keep_next" = X"yes"; then
5569 case $ac_arg in
5570 *\'*)
5571 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5572 esac
5573 baseargs="$baseargs '$ac_arg'"
5574 keep_next=no
5575 continue
5576 fi
5577
5578 # Handle separated arguments. Based on the logic generated by
5579 # autoconf 2.59.
5580 case $ac_arg in
5581 *=* | --config-cache | -C | -disable-* | --disable-* \
5582 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5583 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5584 | -with-* | --with-* | -without-* | --without-* | --x)
5585 separate_arg=no
5586 ;;
5587 -*)
5588 separate_arg=yes
5589 ;;
5590 *)
5591 separate_arg=no
5592 ;;
5593 esac
5594
5595 case "$ac_arg" in
5596 --no*)
5597 continue
5598 ;;
5599 --c* | \
5600 --sr* | \
5601 --ho* | \
5602 --bu* | \
5603 --t* | \
5604 --program-* | \
5605 -cache_file* | \
5606 -srcdir* | \
5607 -host* | \
5608 -build* | \
5609 -target* | \
5610 -program-prefix* | \
5611 -program-suffix* | \
5612 -program-transform-name* )
5613 skip_next=$separate_arg
5614 continue
5615 ;;
5616 -*)
5617 # An option. Add it.
5618 case $ac_arg in
5619 *\'*)
5620 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5621 esac
5622 baseargs="$baseargs '$ac_arg'"
5623 keep_next=$separate_arg
5624 ;;
5625 *)
5626 # Either a variable assignment, or a nonopt (triplet). Don't
5627 # pass it down; let the Makefile handle this.
5628 continue
5629 ;;
5630 esac
5631done
5632# Remove the initial space we just introduced and, as these will be
5633# expanded by make, quote '$'.
5634baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5635
f27d4f92
DJ
5636# Add in --program-transform-name, after --program-prefix and
5637# --program-suffix have been applied to it. Autoconf has already
5638# doubled dollar signs and backslashes in program_transform_name; we want
5639# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5640# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5641# Also, because we want to override the logic in subdir configure scripts to
5642# choose program_transform_name, replace any s,x,x, with s,y,y,.
5643sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5644${program_transform_name}
5645EOF_SED
5646gcc_transform_name=`cat conftestsed.out`
5647rm -f conftestsed.out
5648baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5649
a0da8069
NN
5650# For the build-side libraries, we just need to pretend we're native,
5651# and not use the same cache file. Multilibs are neither needed nor
5652# desired.
4b900473 5653build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5654
5655# For host modules, accept cache file option, or specification as blank.
5656case "${cache_file}" in
5657"") # empty
5658 cache_file_option="" ;;
5659/* | [A-Za-z]:[\\/]* ) # absolute path
5660 cache_file_option="--cache-file=${cache_file}" ;;
5661*) # relative path
5662 cache_file_option="--cache-file=../${cache_file}" ;;
5663esac
5664
82252c06
NN
5665# Host dirs don't like to share a cache file either, horribly enough.
5666# This seems to be due to autoconf 2.5x stupidity.
4b900473 5667host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5668
5669target_configargs=${baseargs}
5670
5671# Passing a --with-cross-host argument lets the target libraries know
5672# whether they are being built with a cross-compiler or being built
5673# native. However, it would be better to use other mechanisms to make the
5674# sorts of decisions they want to make on this basis. Please consider
5675# this option to be deprecated. FIXME.
5676if test x${is_cross_compiler} = xyes ; then
c6b750e1 5677 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5678fi
5679
5680# Default to --enable-multilib.
5681if test x${enable_multilib} = x ; then
5682 target_configargs="--enable-multilib ${target_configargs}"
5683fi
5684
5685# Pass --with-newlib if appropriate. Note that target_configdirs has
5686# changed from the earlier setting of with_newlib.
5687if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5688 target_configargs="--with-newlib ${target_configargs}"
5689fi
5690
95036d20
NN
5691# Different target subdirs use different values of certain variables
5692# (notably CXX). Worse, multilibs use *lots* of different values.
5693# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5694# it doesn't automatically accept command-line overrides of them.
5695# This means it's not safe for target subdirs to share a cache file,
5696# which is disgusting, but there you have it. Hopefully this can be
5697# fixed in future. It's still worthwhile to use a cache file for each
5698# directory. I think.
5699
ae380b45
MS
5700# Pass the appropriate --build, --host, --target and --cache-file arguments.
5701# We need to pass --target, as newer autoconf's requires consistency
5702# for target_alias and gcc doesn't manage it consistently.
4b900473 5703target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5704
a0da8069
NN
5705FLAGS_FOR_TARGET=
5706case " $target_configdirs " in
5707 *" newlib "*)
5708 case " $target_configargs " in
5709 *" --with-newlib "*)
5710 case "$target" in
5711 *-cygwin*)
564b43e5 5712 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
5713 esac
5714
5715 # If we're not building GCC, don't discard standard headers.
5716 if test -d ${srcdir}/gcc; then
5717 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5718
5719 if test "${build}" != "${host}"; then
5720 # On Canadian crosses, CC_FOR_TARGET will have already been set
5721 # by `configure', so we won't have an opportunity to add -Bgcc/
5722 # to it. This is right: we don't want to search that directory
5723 # for binaries, but we want the header files in there, so add
5724 # them explicitly.
b00612cc 5725 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5726
5727 # Someone might think of using the pre-installed headers on
5728 # Canadian crosses, in case the installed compiler is not fully
5729 # compatible with the compiler being built. In this case, it
5730 # would be better to flag an error than risking having
5731 # incompatible object files being constructed. We can't
5732 # guarantee that an error will be flagged, but let's hope the
5733 # compiler will do it, when presented with incompatible header
5734 # files.
5735 fi
5736 fi
5737
5738 case "${target}-${is_cross_compiler}" in
ec11bdc6 5739 i[3456789]86-*-linux*-no)
a0da8069
NN
5740 # Here host == target, so we don't need to build gcc,
5741 # so we don't want to discard standard headers.
5742 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5743 ;;
5744 *)
5745 # If we're building newlib, use its generic headers last, but search
5746 # for any libc-related directories first (so make it the last -B
5747 # switch).
5748 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5749 ;;
5750 esac
5751 ;;
5752 esac
5753 ;;
5754esac
45055374
CV
5755case "$target" in
5756*-mingw*)
5757 # Can't be handled as Cygwin above since Mingw does not use newlib.
5758 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' ;;
5759esac
a0da8069 5760
5fbad20a
DD
5761# Allow the user to override the flags for
5762# our build compiler if desired.
5763CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5764
a0da8069
NN
5765# On Canadian crosses, we'll be searching the right directories for
5766# the previously-installed cross compiler, so don't bother to add
5767# flags for directories within the install tree of the compiler
5768# being built; programs in there won't even run.
5769if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5770 # Search for pre-installed headers if nothing else fits.
bba45b8b 5771 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
5772fi
5773
5774if test "x${use_gnu_ld}" = x &&
5775 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5776 # Arrange for us to find uninstalled linker scripts.
b00612cc 5777 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
5778fi
5779
a481dbb7
DD
5780# Search for other target-specific linker scripts and such.
5781case "${target}" in
5782 m32c-*-* )
5783 if test -d ${srcdir}/libgloss/m32c; then
5784 # This is for crt0.o
5785 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5786 # This is for r8c.ld
5787 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5788 # This is for libnosys.a
5789 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5790 fi
5791 ;;
4e206d7e
DB
5792 mep*)
5793 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5794 ;;
5795esac
5796
a0da8069 5797# Makefile fragments.
3e707e94
PB
5798for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5799do
5800 eval fragval=\$$frag
5801 if test $fragval != /dev/null; then
5802 eval $frag=${srcdir}/$fragval
5803 fi
5804done
a0da8069
NN
5805
5806
5807
5808
5809
5810# Miscellanea: directories, flags, etc.
5811
5812
5813
5814
5815
5816
5817
6a9cf61e 5818# Build module lists & subconfigure args.
a0da8069
NN
5819
5820
5821
be01d343
PB
5822# Host module lists & subconfigure args.
5823
5824
5825
5826# Target module lists & subconfigure args.
5827
5828
5829
5830# Build tools.
5831
5832
5833
5834# Generate default definitions for YACC, M4, LEX and other programs that run
5835# on the build machine. These are used if the Makefile can't locate these
5836# programs in objdir.
5837MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5838
5839for ac_prog in 'bison -y' byacc yacc
5840do
c6b750e1 5841 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5842set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5843echo "$as_me:$LINENO: checking for $ac_word" >&5
5844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5845if test "${ac_cv_prog_YACC+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5847else
5848 if test -n "$YACC"; then
5849 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5850else
c6b750e1
DJ
5851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852for as_dir in $PATH
5853do
5854 IFS=$as_save_IFS
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5858 ac_cv_prog_YACC="$ac_prog"
5859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 break 2
5861 fi
5862done
5863done
5864
be01d343
PB
5865fi
5866fi
c6b750e1 5867YACC=$ac_cv_prog_YACC
be01d343 5868if test -n "$YACC"; then
c6b750e1
DJ
5869 echo "$as_me:$LINENO: result: $YACC" >&5
5870echo "${ECHO_T}$YACC" >&6
be01d343 5871else
c6b750e1
DJ
5872 echo "$as_me:$LINENO: result: no" >&5
5873echo "${ECHO_T}no" >&6
be01d343
PB
5874fi
5875
c6b750e1 5876 test -n "$YACC" && break
be01d343
PB
5877done
5878test -n "$YACC" || YACC="$MISSING bison -y"
5879
5880case " $build_configdirs " in
5881 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5882 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5883esac
5884
5885for ac_prog in bison
5886do
c6b750e1 5887 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5888set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5889echo "$as_me:$LINENO: checking for $ac_word" >&5
5890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5891if test "${ac_cv_prog_BISON+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5893else
5894 if test -n "$BISON"; then
5895 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5896else
c6b750e1
DJ
5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898for as_dir in $PATH
5899do
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904 ac_cv_prog_BISON="$ac_prog"
5905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 break 2
5907 fi
5908done
5909done
5910
be01d343
PB
5911fi
5912fi
c6b750e1 5913BISON=$ac_cv_prog_BISON
be01d343 5914if test -n "$BISON"; then
c6b750e1
DJ
5915 echo "$as_me:$LINENO: result: $BISON" >&5
5916echo "${ECHO_T}$BISON" >&6
be01d343 5917else
c6b750e1
DJ
5918 echo "$as_me:$LINENO: result: no" >&5
5919echo "${ECHO_T}no" >&6
be01d343
PB
5920fi
5921
c6b750e1 5922 test -n "$BISON" && break
be01d343
PB
5923done
5924test -n "$BISON" || BISON="$MISSING bison"
5925
5926case " $build_configdirs " in
5927 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5928esac
5929
5930for ac_prog in gm4 gnum4 m4
5931do
c6b750e1 5932 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5933set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5934echo "$as_me:$LINENO: checking for $ac_word" >&5
5935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5936if test "${ac_cv_prog_M4+set}" = set; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5938else
5939 if test -n "$M4"; then
5940 ac_cv_prog_M4="$M4" # Let the user override the test.
5941else
c6b750e1
DJ
5942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943for as_dir in $PATH
5944do
5945 IFS=$as_save_IFS
5946 test -z "$as_dir" && as_dir=.
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5949 ac_cv_prog_M4="$ac_prog"
5950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 break 2
5952 fi
5953done
5954done
5955
be01d343
PB
5956fi
5957fi
c6b750e1 5958M4=$ac_cv_prog_M4
be01d343 5959if test -n "$M4"; then
c6b750e1
DJ
5960 echo "$as_me:$LINENO: result: $M4" >&5
5961echo "${ECHO_T}$M4" >&6
be01d343 5962else
c6b750e1
DJ
5963 echo "$as_me:$LINENO: result: no" >&5
5964echo "${ECHO_T}no" >&6
be01d343
PB
5965fi
5966
c6b750e1 5967 test -n "$M4" && break
be01d343
PB
5968done
5969test -n "$M4" || M4="$MISSING m4"
5970
5971case " $build_configdirs " in
5972 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5973esac
5974
5975for ac_prog in flex lex
5976do
c6b750e1 5977 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5978set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5979echo "$as_me:$LINENO: checking for $ac_word" >&5
5980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5981if test "${ac_cv_prog_LEX+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5983else
5984 if test -n "$LEX"; then
5985 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5986else
c6b750e1
DJ
5987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988for as_dir in $PATH
5989do
5990 IFS=$as_save_IFS
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5994 ac_cv_prog_LEX="$ac_prog"
5995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 break 2
5997 fi
5998done
5999done
6000
be01d343
PB
6001fi
6002fi
c6b750e1 6003LEX=$ac_cv_prog_LEX
be01d343 6004if test -n "$LEX"; then
c6b750e1
DJ
6005 echo "$as_me:$LINENO: result: $LEX" >&5
6006echo "${ECHO_T}$LEX" >&6
be01d343 6007else
c6b750e1
DJ
6008 echo "$as_me:$LINENO: result: no" >&5
6009echo "${ECHO_T}no" >&6
be01d343
PB
6010fi
6011
c6b750e1 6012 test -n "$LEX" && break
be01d343
PB
6013done
6014test -n "$LEX" || LEX="$MISSING flex"
6015
6016case " $build_configdirs " in
6017 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6018 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6019esac
6020
6021for ac_prog in flex
6022do
c6b750e1 6023 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6024set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6025echo "$as_me:$LINENO: checking for $ac_word" >&5
6026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6027if test "${ac_cv_prog_FLEX+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6029else
6030 if test -n "$FLEX"; then
6031 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6032else
c6b750e1
DJ
6033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034for as_dir in $PATH
6035do
6036 IFS=$as_save_IFS
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6040 ac_cv_prog_FLEX="$ac_prog"
6041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6042 break 2
6043 fi
6044done
6045done
6046
be01d343
PB
6047fi
6048fi
c6b750e1 6049FLEX=$ac_cv_prog_FLEX
be01d343 6050if test -n "$FLEX"; then
c6b750e1
DJ
6051 echo "$as_me:$LINENO: result: $FLEX" >&5
6052echo "${ECHO_T}$FLEX" >&6
be01d343 6053else
c6b750e1
DJ
6054 echo "$as_me:$LINENO: result: no" >&5
6055echo "${ECHO_T}no" >&6
be01d343
PB
6056fi
6057
c6b750e1 6058 test -n "$FLEX" && break
be01d343
PB
6059done
6060test -n "$FLEX" || FLEX="$MISSING flex"
6061
6062case " $build_configdirs " in
6063 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6064esac
6065
6066for ac_prog in makeinfo
6067do
c6b750e1 6068 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6069set dummy $ac_prog; 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_MAKEINFO+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6074else
6075 if test -n "$MAKEINFO"; then
6076 ac_cv_prog_MAKEINFO="$MAKEINFO" # 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_MAKEINFO="$ac_prog"
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 6094MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6095if test -n "$MAKEINFO"; then
c6b750e1
DJ
6096 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6097echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6098else
c6b750e1
DJ
6099 echo "$as_me:$LINENO: result: no" >&5
6100echo "${ECHO_T}no" >&6
be01d343
PB
6101fi
6102
c6b750e1 6103 test -n "$MAKEINFO" && break
be01d343
PB
6104done
6105test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6106
6107case " $build_configdirs " in
6108 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6109 *)
6110
a4ef73e9 6111 # For an installed makeinfo, we require it to be from texinfo 4.4 or
be01d343
PB
6112 # higher, else we use the "missing" dummy.
6113 if ${MAKEINFO} --version \
a4ef73e9 6114 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
be01d343
PB
6115 :
6116 else
6117 MAKEINFO="$MISSING makeinfo"
6118 fi
6119 ;;
6120
6121esac
a0da8069 6122
be01d343 6123# FIXME: expect and dejagnu may become build tools?
a0da8069 6124
be01d343
PB
6125for ac_prog in expect
6126do
c6b750e1 6127 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6128set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6129echo "$as_me:$LINENO: checking for $ac_word" >&5
6130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6131if test "${ac_cv_prog_EXPECT+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6133else
6134 if test -n "$EXPECT"; then
6135 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6136else
c6b750e1
DJ
6137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138for as_dir in $PATH
6139do
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6144 ac_cv_prog_EXPECT="$ac_prog"
6145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 break 2
6147 fi
6148done
6149done
6150
be01d343
PB
6151fi
6152fi
c6b750e1 6153EXPECT=$ac_cv_prog_EXPECT
be01d343 6154if test -n "$EXPECT"; then
c6b750e1
DJ
6155 echo "$as_me:$LINENO: result: $EXPECT" >&5
6156echo "${ECHO_T}$EXPECT" >&6
be01d343 6157else
c6b750e1
DJ
6158 echo "$as_me:$LINENO: result: no" >&5
6159echo "${ECHO_T}no" >&6
be01d343 6160fi
a0da8069 6161
c6b750e1 6162 test -n "$EXPECT" && break
be01d343
PB
6163done
6164test -n "$EXPECT" || EXPECT="expect"
a0da8069 6165
be01d343
PB
6166case " $configdirs " in
6167 *" expect "*)
6168 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6169 ;;
6170esac
a0da8069 6171
be01d343
PB
6172for ac_prog in runtest
6173do
c6b750e1 6174 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6175set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6176echo "$as_me:$LINENO: checking for $ac_word" >&5
6177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6178if test "${ac_cv_prog_RUNTEST+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6180else
6181 if test -n "$RUNTEST"; then
6182 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6183else
c6b750e1
DJ
6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6191 ac_cv_prog_RUNTEST="$ac_prog"
6192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 break 2
6194 fi
6195done
6196done
6197
be01d343
PB
6198fi
6199fi
c6b750e1 6200RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6201if test -n "$RUNTEST"; then
c6b750e1
DJ
6202 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6203echo "${ECHO_T}$RUNTEST" >&6
be01d343 6204else
c6b750e1
DJ
6205 echo "$as_me:$LINENO: result: no" >&5
6206echo "${ECHO_T}no" >&6
be01d343 6207fi
a0da8069 6208
c6b750e1 6209 test -n "$RUNTEST" && break
be01d343
PB
6210done
6211test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6212
be01d343
PB
6213case " $configdirs " in
6214 *" dejagnu "*)
6b89cc21 6215 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6216 ;;
6217esac
a0da8069
NN
6218
6219
a0da8069 6220# Host tools.
859789af
AC
6221ncn_tool_prefix=
6222test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6223ncn_target_tool_prefix=
6224test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6225
9a819804
AO
6226
6227
6228if test -n "$AR"; then
6229 ac_cv_prog_AR=$AR
6230elif test -n "$ac_cv_prog_AR"; then
6231 AR=$ac_cv_prog_AR
6232fi
6233
6234if test -n "$ac_cv_prog_AR"; then
6235 for ncn_progname in ar; do
6236 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6237set dummy ${ncn_progname}; ac_word=$2
6238echo "$as_me:$LINENO: checking for $ac_word" >&5
6239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6240if test "${ac_cv_prog_AR+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6242else
6243 if test -n "$AR"; then
6244 ac_cv_prog_AR="$AR" # Let the user override the test.
6245else
6246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247for as_dir in $PATH
6248do
6249 IFS=$as_save_IFS
6250 test -z "$as_dir" && as_dir=.
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6253 ac_cv_prog_AR="${ncn_progname}"
6254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 break 2
6256 fi
6257done
6258done
6259
6260fi
6261fi
6262AR=$ac_cv_prog_AR
6263if test -n "$AR"; then
6264 echo "$as_me:$LINENO: result: $AR" >&5
6265echo "${ECHO_T}$AR" >&6
6266else
6267 echo "$as_me:$LINENO: result: no" >&5
6268echo "${ECHO_T}no" >&6
6269fi
6270
6271 done
6272fi
6273
6274for ncn_progname in ar; do
05cbd757
PB
6275 if test -n "$ncn_tool_prefix"; then
6276 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6277set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6278echo "$as_me:$LINENO: checking for $ac_word" >&5
6279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6280if test "${ac_cv_prog_AR+set}" = set; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6282else
6283 if test -n "$AR"; then
6284 ac_cv_prog_AR="$AR" # Let the user override the test.
6285else
c6b750e1
DJ
6286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287for as_dir in $PATH
6288do
6289 IFS=$as_save_IFS
6290 test -z "$as_dir" && as_dir=.
6291 for ac_exec_ext in '' $ac_executable_extensions; do
6292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6293 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6295 break 2
6296 fi
6297done
6298done
6299
859789af
AC
6300fi
6301fi
c6b750e1 6302AR=$ac_cv_prog_AR
859789af 6303if test -n "$AR"; then
c6b750e1
DJ
6304 echo "$as_me:$LINENO: result: $AR" >&5
6305echo "${ECHO_T}$AR" >&6
859789af 6306else
c6b750e1
DJ
6307 echo "$as_me:$LINENO: result: no" >&5
6308echo "${ECHO_T}no" >&6
859789af
AC
6309fi
6310
05cbd757
PB
6311 fi
6312 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6313 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6314set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6315echo "$as_me:$LINENO: checking for $ac_word" >&5
6316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6317if test "${ac_cv_prog_AR+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6319else
05cbd757
PB
6320 if test -n "$AR"; then
6321 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6322else
c6b750e1
DJ
6323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324for as_dir in $PATH
6325do
6326 IFS=$as_save_IFS
6327 test -z "$as_dir" && as_dir=.
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6330 ac_cv_prog_AR="${ncn_progname}"
6331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 break 2
6333 fi
6334done
6335done
6336
859789af
AC
6337fi
6338fi
c6b750e1 6339AR=$ac_cv_prog_AR
05cbd757 6340if test -n "$AR"; then
c6b750e1
DJ
6341 echo "$as_me:$LINENO: result: $AR" >&5
6342echo "${ECHO_T}$AR" >&6
859789af 6343else
c6b750e1
DJ
6344 echo "$as_me:$LINENO: result: no" >&5
6345echo "${ECHO_T}no" >&6
859789af 6346fi
c6b750e1 6347
05cbd757
PB
6348 fi
6349 test -n "$ac_cv_prog_AR" && break
6350done
6351
6352if test -z "$ac_cv_prog_AR" ; then
6353 set dummy ar
6354 if test $build = $host ; then
6355 AR="$2"
859789af 6356 else
05cbd757 6357 AR="${ncn_tool_prefix}$2"
859789af 6358 fi
859789af
AC
6359fi
6360
9a819804
AO
6361
6362
6363if test -n "$AS"; then
6364 ac_cv_prog_AS=$AS
6365elif test -n "$ac_cv_prog_AS"; then
6366 AS=$ac_cv_prog_AS
6367fi
6368
6369if test -n "$ac_cv_prog_AS"; then
6370 for ncn_progname in as; do
6371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6372set dummy ${ncn_progname}; ac_word=$2
6373echo "$as_me:$LINENO: checking for $ac_word" >&5
6374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6375if test "${ac_cv_prog_AS+set}" = set; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
6377else
6378 if test -n "$AS"; then
6379 ac_cv_prog_AS="$AS" # Let the user override the test.
6380else
6381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382for as_dir in $PATH
6383do
6384 IFS=$as_save_IFS
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6388 ac_cv_prog_AS="${ncn_progname}"
6389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 break 2
6391 fi
6392done
6393done
6394
6395fi
6396fi
6397AS=$ac_cv_prog_AS
6398if test -n "$AS"; then
6399 echo "$as_me:$LINENO: result: $AS" >&5
6400echo "${ECHO_T}$AS" >&6
6401else
6402 echo "$as_me:$LINENO: result: no" >&5
6403echo "${ECHO_T}no" >&6
6404fi
6405
6406 done
6407fi
6408
6409for ncn_progname in as; do
05cbd757
PB
6410 if test -n "$ncn_tool_prefix"; then
6411 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6412set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6413echo "$as_me:$LINENO: checking for $ac_word" >&5
6414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6415if test "${ac_cv_prog_AS+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6417else
6418 if test -n "$AS"; then
6419 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6420else
6421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422for as_dir in $PATH
6423do
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 break 2
6431 fi
6432done
6433done
6434
859789af
AC
6435fi
6436fi
c6b750e1 6437AS=$ac_cv_prog_AS
859789af 6438if test -n "$AS"; then
c6b750e1
DJ
6439 echo "$as_me:$LINENO: result: $AS" >&5
6440echo "${ECHO_T}$AS" >&6
859789af 6441else
c6b750e1
DJ
6442 echo "$as_me:$LINENO: result: no" >&5
6443echo "${ECHO_T}no" >&6
859789af
AC
6444fi
6445
05cbd757
PB
6446 fi
6447 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6449set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6450echo "$as_me:$LINENO: checking for $ac_word" >&5
6451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6452if test "${ac_cv_prog_AS+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6454else
05cbd757
PB
6455 if test -n "$AS"; then
6456 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6457else
c6b750e1
DJ
6458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459for as_dir in $PATH
6460do
6461 IFS=$as_save_IFS
6462 test -z "$as_dir" && as_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6465 ac_cv_prog_AS="${ncn_progname}"
6466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 break 2
6468 fi
6469done
6470done
6471
859789af
AC
6472fi
6473fi
c6b750e1 6474AS=$ac_cv_prog_AS
05cbd757 6475if test -n "$AS"; then
c6b750e1
DJ
6476 echo "$as_me:$LINENO: result: $AS" >&5
6477echo "${ECHO_T}$AS" >&6
859789af 6478else
c6b750e1
DJ
6479 echo "$as_me:$LINENO: result: no" >&5
6480echo "${ECHO_T}no" >&6
859789af 6481fi
c6b750e1 6482
05cbd757
PB
6483 fi
6484 test -n "$ac_cv_prog_AS" && break
6485done
6486
6487if test -z "$ac_cv_prog_AS" ; then
6488 set dummy as
6489 if test $build = $host ; then
6490 AS="$2"
859789af 6491 else
05cbd757 6492 AS="${ncn_tool_prefix}$2"
859789af 6493 fi
859789af
AC
6494fi
6495
9a819804
AO
6496
6497
6498if test -n "$DLLTOOL"; then
6499 ac_cv_prog_DLLTOOL=$DLLTOOL
6500elif test -n "$ac_cv_prog_DLLTOOL"; then
6501 DLLTOOL=$ac_cv_prog_DLLTOOL
6502fi
6503
6504if test -n "$ac_cv_prog_DLLTOOL"; then
6505 for ncn_progname in dlltool; do
6506 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6507set dummy ${ncn_progname}; ac_word=$2
6508echo "$as_me:$LINENO: checking for $ac_word" >&5
6509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6510if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6512else
6513 if test -n "$DLLTOOL"; then
6514 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6515else
6516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517for as_dir in $PATH
6518do
6519 IFS=$as_save_IFS
6520 test -z "$as_dir" && as_dir=.
6521 for ac_exec_ext in '' $ac_executable_extensions; do
6522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6523 ac_cv_prog_DLLTOOL="${ncn_progname}"
6524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 break 2
6526 fi
6527done
6528done
6529
6530fi
6531fi
6532DLLTOOL=$ac_cv_prog_DLLTOOL
6533if test -n "$DLLTOOL"; then
6534 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6535echo "${ECHO_T}$DLLTOOL" >&6
6536else
6537 echo "$as_me:$LINENO: result: no" >&5
6538echo "${ECHO_T}no" >&6
6539fi
6540
6541 done
6542fi
6543
6544for ncn_progname in dlltool; do
05cbd757
PB
6545 if test -n "$ncn_tool_prefix"; then
6546 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6547set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6548echo "$as_me:$LINENO: checking for $ac_word" >&5
6549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6550if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6552else
6553 if test -n "$DLLTOOL"; then
6554 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6555else
c6b750e1
DJ
6556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557for as_dir in $PATH
6558do
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6563 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 break 2
6566 fi
6567done
6568done
6569
859789af
AC
6570fi
6571fi
c6b750e1 6572DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6573if test -n "$DLLTOOL"; then
c6b750e1
DJ
6574 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6575echo "${ECHO_T}$DLLTOOL" >&6
859789af 6576else
c6b750e1
DJ
6577 echo "$as_me:$LINENO: result: no" >&5
6578echo "${ECHO_T}no" >&6
859789af
AC
6579fi
6580
05cbd757
PB
6581 fi
6582 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6584set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6585echo "$as_me:$LINENO: checking for $ac_word" >&5
6586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6587if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6589else
05cbd757
PB
6590 if test -n "$DLLTOOL"; then
6591 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6592else
c6b750e1
DJ
6593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594for as_dir in $PATH
6595do
6596 IFS=$as_save_IFS
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6600 ac_cv_prog_DLLTOOL="${ncn_progname}"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 break 2
6603 fi
6604done
6605done
6606
859789af
AC
6607fi
6608fi
c6b750e1 6609DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6610if test -n "$DLLTOOL"; then
c6b750e1
DJ
6611 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6612echo "${ECHO_T}$DLLTOOL" >&6
859789af 6613else
c6b750e1
DJ
6614 echo "$as_me:$LINENO: result: no" >&5
6615echo "${ECHO_T}no" >&6
859789af 6616fi
c6b750e1 6617
05cbd757
PB
6618 fi
6619 test -n "$ac_cv_prog_DLLTOOL" && break
6620done
6621
6622if test -z "$ac_cv_prog_DLLTOOL" ; then
6623 set dummy dlltool
6624 if test $build = $host ; then
6625 DLLTOOL="$2"
859789af 6626 else
05cbd757 6627 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6628 fi
859789af
AC
6629fi
6630
9a819804
AO
6631
6632
6633if test -n "$LD"; then
6634 ac_cv_prog_LD=$LD
6635elif test -n "$ac_cv_prog_LD"; then
6636 LD=$ac_cv_prog_LD
6637fi
6638
6639if test -n "$ac_cv_prog_LD"; then
6640 for ncn_progname in ld; do
6641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6642set dummy ${ncn_progname}; ac_word=$2
6643echo "$as_me:$LINENO: checking for $ac_word" >&5
6644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6645if test "${ac_cv_prog_LD+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6647else
6648 if test -n "$LD"; then
6649 ac_cv_prog_LD="$LD" # Let the user override the test.
6650else
6651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652for as_dir in $PATH
6653do
6654 IFS=$as_save_IFS
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6658 ac_cv_prog_LD="${ncn_progname}"
6659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6660 break 2
6661 fi
6662done
6663done
6664
6665fi
6666fi
6667LD=$ac_cv_prog_LD
6668if test -n "$LD"; then
6669 echo "$as_me:$LINENO: result: $LD" >&5
6670echo "${ECHO_T}$LD" >&6
6671else
6672 echo "$as_me:$LINENO: result: no" >&5
6673echo "${ECHO_T}no" >&6
6674fi
6675
6676 done
6677fi
6678
6679for ncn_progname in ld; do
05cbd757
PB
6680 if test -n "$ncn_tool_prefix"; then
6681 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6682set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6683echo "$as_me:$LINENO: checking for $ac_word" >&5
6684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6685if test "${ac_cv_prog_LD+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6687else
6688 if test -n "$LD"; then
6689 ac_cv_prog_LD="$LD" # Let the user override the test.
6690else
c6b750e1
DJ
6691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692for as_dir in $PATH
6693do
6694 IFS=$as_save_IFS
6695 test -z "$as_dir" && as_dir=.
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6698 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 break 2
6701 fi
6702done
6703done
6704
859789af
AC
6705fi
6706fi
c6b750e1 6707LD=$ac_cv_prog_LD
859789af 6708if test -n "$LD"; then
c6b750e1
DJ
6709 echo "$as_me:$LINENO: result: $LD" >&5
6710echo "${ECHO_T}$LD" >&6
859789af 6711else
c6b750e1
DJ
6712 echo "$as_me:$LINENO: result: no" >&5
6713echo "${ECHO_T}no" >&6
859789af
AC
6714fi
6715
05cbd757
PB
6716 fi
6717 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6718 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6719set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6720echo "$as_me:$LINENO: checking for $ac_word" >&5
6721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6722if test "${ac_cv_prog_LD+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6724else
05cbd757
PB
6725 if test -n "$LD"; then
6726 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6727else
c6b750e1
DJ
6728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729for as_dir in $PATH
6730do
6731 IFS=$as_save_IFS
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6735 ac_cv_prog_LD="${ncn_progname}"
6736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 break 2
6738 fi
6739done
6740done
6741
859789af
AC
6742fi
6743fi
c6b750e1 6744LD=$ac_cv_prog_LD
05cbd757 6745if test -n "$LD"; then
c6b750e1
DJ
6746 echo "$as_me:$LINENO: result: $LD" >&5
6747echo "${ECHO_T}$LD" >&6
859789af 6748else
c6b750e1
DJ
6749 echo "$as_me:$LINENO: result: no" >&5
6750echo "${ECHO_T}no" >&6
859789af 6751fi
c6b750e1 6752
05cbd757
PB
6753 fi
6754 test -n "$ac_cv_prog_LD" && break
6755done
6756
6757if test -z "$ac_cv_prog_LD" ; then
6758 set dummy ld
6759 if test $build = $host ; then
6760 LD="$2"
859789af 6761 else
05cbd757 6762 LD="${ncn_tool_prefix}$2"
859789af 6763 fi
859789af
AC
6764fi
6765
9a819804
AO
6766
6767
6768if test -n "$LIPO"; then
6769 ac_cv_prog_LIPO=$LIPO
6770elif test -n "$ac_cv_prog_LIPO"; then
6771 LIPO=$ac_cv_prog_LIPO
6772fi
6773
6774if test -n "$ac_cv_prog_LIPO"; then
6775 for ncn_progname in lipo; do
6776 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6777set dummy ${ncn_progname}; ac_word=$2
6778echo "$as_me:$LINENO: checking for $ac_word" >&5
6779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6780if test "${ac_cv_prog_LIPO+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6782else
6783 if test -n "$LIPO"; then
6784 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6785else
6786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787for as_dir in $PATH
6788do
6789 IFS=$as_save_IFS
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6793 ac_cv_prog_LIPO="${ncn_progname}"
6794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 break 2
6796 fi
6797done
6798done
6799
6800fi
6801fi
6802LIPO=$ac_cv_prog_LIPO
6803if test -n "$LIPO"; then
6804 echo "$as_me:$LINENO: result: $LIPO" >&5
6805echo "${ECHO_T}$LIPO" >&6
6806else
6807 echo "$as_me:$LINENO: result: no" >&5
6808echo "${ECHO_T}no" >&6
6809fi
6810
6811 done
6812fi
6813
6814for ncn_progname in lipo; do
be01d343
PB
6815 if test -n "$ncn_tool_prefix"; then
6816 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6817set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6818echo "$as_me:$LINENO: checking for $ac_word" >&5
6819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6820if test "${ac_cv_prog_LIPO+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6822else
6823 if test -n "$LIPO"; then
6824 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6825else
c6b750e1
DJ
6826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827for as_dir in $PATH
6828do
6829 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6833 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 break 2
6836 fi
6837done
6838done
6839
be01d343
PB
6840fi
6841fi
c6b750e1 6842LIPO=$ac_cv_prog_LIPO
be01d343 6843if test -n "$LIPO"; then
c6b750e1
DJ
6844 echo "$as_me:$LINENO: result: $LIPO" >&5
6845echo "${ECHO_T}$LIPO" >&6
be01d343 6846else
c6b750e1
DJ
6847 echo "$as_me:$LINENO: result: no" >&5
6848echo "${ECHO_T}no" >&6
be01d343
PB
6849fi
6850
6851 fi
6852 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6853 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6854set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6855echo "$as_me:$LINENO: checking for $ac_word" >&5
6856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6857if test "${ac_cv_prog_LIPO+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6859else
6860 if test -n "$LIPO"; then
6861 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6862else
c6b750e1
DJ
6863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864for as_dir in $PATH
6865do
6866 IFS=$as_save_IFS
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6870 ac_cv_prog_LIPO="${ncn_progname}"
6871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 break 2
6873 fi
6874done
6875done
6876
be01d343
PB
6877fi
6878fi
c6b750e1 6879LIPO=$ac_cv_prog_LIPO
be01d343 6880if test -n "$LIPO"; then
c6b750e1
DJ
6881 echo "$as_me:$LINENO: result: $LIPO" >&5
6882echo "${ECHO_T}$LIPO" >&6
be01d343 6883else
c6b750e1
DJ
6884 echo "$as_me:$LINENO: result: no" >&5
6885echo "${ECHO_T}no" >&6
be01d343 6886fi
c6b750e1 6887
be01d343
PB
6888 fi
6889 test -n "$ac_cv_prog_LIPO" && break
6890done
6891
6892if test -z "$ac_cv_prog_LIPO" ; then
6893 set dummy lipo
6894 if test $build = $host ; then
6895 LIPO="$2"
6896 else
6897 LIPO="${ncn_tool_prefix}$2"
6898 fi
6899fi
6900
9a819804
AO
6901
6902
6903if test -n "$NM"; then
6904 ac_cv_prog_NM=$NM
6905elif test -n "$ac_cv_prog_NM"; then
6906 NM=$ac_cv_prog_NM
6907fi
6908
6909if test -n "$ac_cv_prog_NM"; then
6910 for ncn_progname in nm; do
6911 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6912set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6913echo "$as_me:$LINENO: checking for $ac_word" >&5
6914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6915if test "${ac_cv_prog_NM+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6917else
6918 if test -n "$NM"; then
6919 ac_cv_prog_NM="$NM" # Let the user override the test.
6920else
c6b750e1
DJ
6921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922for as_dir in $PATH
6923do
6924 IFS=$as_save_IFS
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 6928 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
6929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6930 break 2
6931 fi
6932done
6933done
6934
859789af
AC
6935fi
6936fi
c6b750e1 6937NM=$ac_cv_prog_NM
859789af 6938if test -n "$NM"; then
c6b750e1
DJ
6939 echo "$as_me:$LINENO: result: $NM" >&5
6940echo "${ECHO_T}$NM" >&6
859789af 6941else
c6b750e1
DJ
6942 echo "$as_me:$LINENO: result: no" >&5
6943echo "${ECHO_T}no" >&6
859789af
AC
6944fi
6945
9a819804
AO
6946 done
6947fi
6948
6949for ncn_progname in nm; do
6950 if test -n "$ncn_tool_prefix"; then
6951 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6952set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6953echo "$as_me:$LINENO: checking for $ac_word" >&5
6954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6955if test "${ac_cv_prog_NM+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6957else
05cbd757
PB
6958 if test -n "$NM"; then
6959 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 6960else
c6b750e1
DJ
6961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962for as_dir in $PATH
6963do
6964 IFS=$as_save_IFS
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 6968 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
6969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 break 2
6971 fi
6972done
6973done
6974
859789af
AC
6975fi
6976fi
c6b750e1 6977NM=$ac_cv_prog_NM
05cbd757 6978if test -n "$NM"; then
c6b750e1
DJ
6979 echo "$as_me:$LINENO: result: $NM" >&5
6980echo "${ECHO_T}$NM" >&6
859789af 6981else
c6b750e1
DJ
6982 echo "$as_me:$LINENO: result: no" >&5
6983echo "${ECHO_T}no" >&6
859789af 6984fi
c6b750e1 6985
05cbd757 6986 fi
9a819804
AO
6987 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
6988 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6989set dummy ${ncn_progname}; ac_word=$2
6990echo "$as_me:$LINENO: checking for $ac_word" >&5
6991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6992if test "${ac_cv_prog_NM+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6994else
6995 if test -n "$NM"; then
6996 ac_cv_prog_NM="$NM" # Let the user override the test.
6997else
6998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999for as_dir in $PATH
7000do
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7005 ac_cv_prog_NM="${ncn_progname}"
7006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 break 2
7008 fi
7009done
7010done
7011
7012fi
7013fi
7014NM=$ac_cv_prog_NM
7015if test -n "$NM"; then
7016 echo "$as_me:$LINENO: result: $NM" >&5
7017echo "${ECHO_T}$NM" >&6
7018else
7019 echo "$as_me:$LINENO: result: no" >&5
7020echo "${ECHO_T}no" >&6
7021fi
7022
7023 fi
7024 test -n "$ac_cv_prog_NM" && break
7025done
7026
7027if test -z "$ac_cv_prog_NM" ; then
7028 set dummy nm
7029 if test $build = $host ; then
7030 NM="$2"
7031 else
7032 NM="${ncn_tool_prefix}$2"
7033 fi
7034fi
7035
7036
7037
7038if test -n "$RANLIB"; then
7039 ac_cv_prog_RANLIB=$RANLIB
7040elif test -n "$ac_cv_prog_RANLIB"; then
7041 RANLIB=$ac_cv_prog_RANLIB
7042fi
7043
7044if test -n "$ac_cv_prog_RANLIB"; then
7045 for ncn_progname in ranlib; do
7046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7047set dummy ${ncn_progname}; ac_word=$2
7048echo "$as_me:$LINENO: checking for $ac_word" >&5
7049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7050if test "${ac_cv_prog_RANLIB+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052else
7053 if test -n "$RANLIB"; then
7054 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7055else
7056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057for as_dir in $PATH
7058do
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7063 ac_cv_prog_RANLIB="${ncn_progname}"
7064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 break 2
7066 fi
7067done
7068done
7069
7070fi
7071fi
7072RANLIB=$ac_cv_prog_RANLIB
7073if test -n "$RANLIB"; then
7074 echo "$as_me:$LINENO: result: $RANLIB" >&5
7075echo "${ECHO_T}$RANLIB" >&6
7076else
7077 echo "$as_me:$LINENO: result: no" >&5
7078echo "${ECHO_T}no" >&6
7079fi
7080
7081 done
7082fi
859789af 7083
9a819804 7084for ncn_progname in ranlib; do
05cbd757
PB
7085 if test -n "$ncn_tool_prefix"; then
7086 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7087set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7088echo "$as_me:$LINENO: checking for $ac_word" >&5
7089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7090if test "${ac_cv_prog_RANLIB+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7092else
7093 if test -n "$RANLIB"; then
7094 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7095else
c6b750e1
DJ
7096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097for as_dir in $PATH
7098do
7099 IFS=$as_save_IFS
7100 test -z "$as_dir" && as_dir=.
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7103 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 break 2
7106 fi
7107done
7108done
7109
859789af
AC
7110fi
7111fi
c6b750e1 7112RANLIB=$ac_cv_prog_RANLIB
859789af 7113if test -n "$RANLIB"; then
c6b750e1
DJ
7114 echo "$as_me:$LINENO: result: $RANLIB" >&5
7115echo "${ECHO_T}$RANLIB" >&6
859789af 7116else
c6b750e1
DJ
7117 echo "$as_me:$LINENO: result: no" >&5
7118echo "${ECHO_T}no" >&6
859789af
AC
7119fi
7120
05cbd757
PB
7121 fi
7122 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7124set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7125echo "$as_me:$LINENO: checking for $ac_word" >&5
7126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7127if test "${ac_cv_prog_RANLIB+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7129else
05cbd757
PB
7130 if test -n "$RANLIB"; then
7131 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7132else
c6b750e1
DJ
7133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134for as_dir in $PATH
7135do
7136 IFS=$as_save_IFS
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7140 ac_cv_prog_RANLIB="${ncn_progname}"
7141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 break 2
7143 fi
7144done
7145done
7146
859789af
AC
7147fi
7148fi
c6b750e1 7149RANLIB=$ac_cv_prog_RANLIB
05cbd757 7150if test -n "$RANLIB"; then
c6b750e1
DJ
7151 echo "$as_me:$LINENO: result: $RANLIB" >&5
7152echo "${ECHO_T}$RANLIB" >&6
859789af 7153else
c6b750e1
DJ
7154 echo "$as_me:$LINENO: result: no" >&5
7155echo "${ECHO_T}no" >&6
859789af 7156fi
c6b750e1 7157
859789af 7158 fi
05cbd757
PB
7159 test -n "$ac_cv_prog_RANLIB" && break
7160done
7161
7162if test -z "$ac_cv_prog_RANLIB" ; then
7163 RANLIB=":"
859789af
AC
7164fi
7165
9a819804
AO
7166
7167
7168if test -n "$STRIP"; then
7169 ac_cv_prog_STRIP=$STRIP
7170elif test -n "$ac_cv_prog_STRIP"; then
7171 STRIP=$ac_cv_prog_STRIP
7172fi
7173
7174if test -n "$ac_cv_prog_STRIP"; then
7175 for ncn_progname in strip; do
7176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7177set dummy ${ncn_progname}; ac_word=$2
7178echo "$as_me:$LINENO: checking for $ac_word" >&5
7179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7180if test "${ac_cv_prog_STRIP+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
7182else
7183 if test -n "$STRIP"; then
7184 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7185else
7186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187for as_dir in $PATH
7188do
7189 IFS=$as_save_IFS
7190 test -z "$as_dir" && as_dir=.
7191 for ac_exec_ext in '' $ac_executable_extensions; do
7192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7193 ac_cv_prog_STRIP="${ncn_progname}"
7194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7195 break 2
7196 fi
7197done
7198done
7199
7200fi
7201fi
7202STRIP=$ac_cv_prog_STRIP
7203if test -n "$STRIP"; then
7204 echo "$as_me:$LINENO: result: $STRIP" >&5
7205echo "${ECHO_T}$STRIP" >&6
7206else
7207 echo "$as_me:$LINENO: result: no" >&5
7208echo "${ECHO_T}no" >&6
7209fi
7210
7211 done
7212fi
7213
7214for ncn_progname in strip; do
be01d343
PB
7215 if test -n "$ncn_tool_prefix"; then
7216 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7217set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7218echo "$as_me:$LINENO: checking for $ac_word" >&5
7219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7220if test "${ac_cv_prog_STRIP+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7222else
7223 if test -n "$STRIP"; then
7224 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7225else
c6b750e1
DJ
7226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227for as_dir in $PATH
7228do
7229 IFS=$as_save_IFS
7230 test -z "$as_dir" && as_dir=.
7231 for ac_exec_ext in '' $ac_executable_extensions; do
7232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7233 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7235 break 2
7236 fi
7237done
7238done
7239
be01d343
PB
7240fi
7241fi
c6b750e1 7242STRIP=$ac_cv_prog_STRIP
be01d343 7243if test -n "$STRIP"; then
c6b750e1
DJ
7244 echo "$as_me:$LINENO: result: $STRIP" >&5
7245echo "${ECHO_T}$STRIP" >&6
be01d343 7246else
c6b750e1
DJ
7247 echo "$as_me:$LINENO: result: no" >&5
7248echo "${ECHO_T}no" >&6
be01d343
PB
7249fi
7250
7251 fi
7252 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7254set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7255echo "$as_me:$LINENO: checking for $ac_word" >&5
7256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7257if test "${ac_cv_prog_STRIP+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7259else
7260 if test -n "$STRIP"; then
7261 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7262else
c6b750e1
DJ
7263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264for as_dir in $PATH
7265do
7266 IFS=$as_save_IFS
7267 test -z "$as_dir" && as_dir=.
7268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7270 ac_cv_prog_STRIP="${ncn_progname}"
7271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7272 break 2
7273 fi
7274done
7275done
7276
be01d343
PB
7277fi
7278fi
c6b750e1 7279STRIP=$ac_cv_prog_STRIP
be01d343 7280if test -n "$STRIP"; then
c6b750e1
DJ
7281 echo "$as_me:$LINENO: result: $STRIP" >&5
7282echo "${ECHO_T}$STRIP" >&6
be01d343 7283else
c6b750e1
DJ
7284 echo "$as_me:$LINENO: result: no" >&5
7285echo "${ECHO_T}no" >&6
be01d343 7286fi
c6b750e1 7287
be01d343
PB
7288 fi
7289 test -n "$ac_cv_prog_STRIP" && break
7290done
7291
7292if test -z "$ac_cv_prog_STRIP" ; then
7293 STRIP=":"
7294fi
7295
9a819804
AO
7296
7297
7298if test -n "$WINDRES"; then
7299 ac_cv_prog_WINDRES=$WINDRES
7300elif test -n "$ac_cv_prog_WINDRES"; then
7301 WINDRES=$ac_cv_prog_WINDRES
7302fi
7303
7304if test -n "$ac_cv_prog_WINDRES"; then
7305 for ncn_progname in windres; do
7306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7307set dummy ${ncn_progname}; ac_word=$2
7308echo "$as_me:$LINENO: checking for $ac_word" >&5
7309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7310if test "${ac_cv_prog_WINDRES+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7312else
7313 if test -n "$WINDRES"; then
7314 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7315else
7316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317for as_dir in $PATH
7318do
7319 IFS=$as_save_IFS
7320 test -z "$as_dir" && as_dir=.
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7323 ac_cv_prog_WINDRES="${ncn_progname}"
7324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7325 break 2
7326 fi
7327done
7328done
7329
7330fi
7331fi
7332WINDRES=$ac_cv_prog_WINDRES
7333if test -n "$WINDRES"; then
7334 echo "$as_me:$LINENO: result: $WINDRES" >&5
7335echo "${ECHO_T}$WINDRES" >&6
7336else
7337 echo "$as_me:$LINENO: result: no" >&5
7338echo "${ECHO_T}no" >&6
7339fi
7340
7341 done
7342fi
7343
7344for ncn_progname in windres; do
05cbd757
PB
7345 if test -n "$ncn_tool_prefix"; then
7346 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7347set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7348echo "$as_me:$LINENO: checking for $ac_word" >&5
7349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7350if test "${ac_cv_prog_WINDRES+set}" = set; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7352else
7353 if test -n "$WINDRES"; then
7354 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7355else
c6b750e1
DJ
7356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357for as_dir in $PATH
7358do
7359 IFS=$as_save_IFS
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7363 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 break 2
7366 fi
7367done
7368done
7369
859789af
AC
7370fi
7371fi
c6b750e1 7372WINDRES=$ac_cv_prog_WINDRES
859789af 7373if test -n "$WINDRES"; then
c6b750e1
DJ
7374 echo "$as_me:$LINENO: result: $WINDRES" >&5
7375echo "${ECHO_T}$WINDRES" >&6
859789af 7376else
c6b750e1
DJ
7377 echo "$as_me:$LINENO: result: no" >&5
7378echo "${ECHO_T}no" >&6
859789af
AC
7379fi
7380
05cbd757
PB
7381 fi
7382 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7383 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7384set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7385echo "$as_me:$LINENO: checking for $ac_word" >&5
7386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7387if test "${ac_cv_prog_WINDRES+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7389else
05cbd757
PB
7390 if test -n "$WINDRES"; then
7391 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7392else
c6b750e1
DJ
7393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394for as_dir in $PATH
7395do
7396 IFS=$as_save_IFS
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7400 ac_cv_prog_WINDRES="${ncn_progname}"
7401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 break 2
7403 fi
7404done
7405done
7406
859789af
AC
7407fi
7408fi
c6b750e1 7409WINDRES=$ac_cv_prog_WINDRES
05cbd757 7410if test -n "$WINDRES"; then
c6b750e1
DJ
7411 echo "$as_me:$LINENO: result: $WINDRES" >&5
7412echo "${ECHO_T}$WINDRES" >&6
859789af 7413else
c6b750e1
DJ
7414 echo "$as_me:$LINENO: result: no" >&5
7415echo "${ECHO_T}no" >&6
859789af 7416fi
c6b750e1 7417
05cbd757
PB
7418 fi
7419 test -n "$ac_cv_prog_WINDRES" && break
7420done
7421
7422if test -z "$ac_cv_prog_WINDRES" ; then
7423 set dummy windres
7424 if test $build = $host ; then
7425 WINDRES="$2"
859789af 7426 else
05cbd757 7427 WINDRES="${ncn_tool_prefix}$2"
859789af 7428 fi
859789af
AC
7429fi
7430
9a819804
AO
7431
7432
7433if test -n "$OBJCOPY"; then
7434 ac_cv_prog_OBJCOPY=$OBJCOPY
7435elif test -n "$ac_cv_prog_OBJCOPY"; then
7436 OBJCOPY=$ac_cv_prog_OBJCOPY
7437fi
7438
7439if test -n "$ac_cv_prog_OBJCOPY"; then
7440 for ncn_progname in objcopy; do
7441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7442set dummy ${ncn_progname}; ac_word=$2
7443echo "$as_me:$LINENO: checking for $ac_word" >&5
7444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7445if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7447else
7448 if test -n "$OBJCOPY"; then
7449 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7450else
7451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452for as_dir in $PATH
7453do
7454 IFS=$as_save_IFS
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7458 ac_cv_prog_OBJCOPY="${ncn_progname}"
7459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 break 2
7461 fi
7462done
7463done
7464
7465fi
7466fi
7467OBJCOPY=$ac_cv_prog_OBJCOPY
7468if test -n "$OBJCOPY"; then
7469 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7470echo "${ECHO_T}$OBJCOPY" >&6
7471else
7472 echo "$as_me:$LINENO: result: no" >&5
7473echo "${ECHO_T}no" >&6
7474fi
7475
7476 done
7477fi
7478
7479for ncn_progname in objcopy; do
05cbd757
PB
7480 if test -n "$ncn_tool_prefix"; then
7481 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7482set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7483echo "$as_me:$LINENO: checking for $ac_word" >&5
7484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7485if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7487else
7488 if test -n "$OBJCOPY"; then
7489 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7490else
c6b750e1
DJ
7491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492for as_dir in $PATH
7493do
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 break 2
7501 fi
7502done
7503done
7504
859789af
AC
7505fi
7506fi
c6b750e1 7507OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7508if test -n "$OBJCOPY"; then
c6b750e1
DJ
7509 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7510echo "${ECHO_T}$OBJCOPY" >&6
859789af 7511else
c6b750e1
DJ
7512 echo "$as_me:$LINENO: result: no" >&5
7513echo "${ECHO_T}no" >&6
859789af
AC
7514fi
7515
05cbd757
PB
7516 fi
7517 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7518 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7519set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7520echo "$as_me:$LINENO: checking for $ac_word" >&5
7521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7522if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7524else
05cbd757
PB
7525 if test -n "$OBJCOPY"; then
7526 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7527else
c6b750e1
DJ
7528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529for as_dir in $PATH
7530do
7531 IFS=$as_save_IFS
7532 test -z "$as_dir" && as_dir=.
7533 for ac_exec_ext in '' $ac_executable_extensions; do
7534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7535 ac_cv_prog_OBJCOPY="${ncn_progname}"
7536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7537 break 2
7538 fi
7539done
7540done
7541
859789af
AC
7542fi
7543fi
c6b750e1 7544OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7545if test -n "$OBJCOPY"; then
c6b750e1
DJ
7546 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7547echo "${ECHO_T}$OBJCOPY" >&6
859789af 7548else
c6b750e1
DJ
7549 echo "$as_me:$LINENO: result: no" >&5
7550echo "${ECHO_T}no" >&6
859789af 7551fi
c6b750e1 7552
05cbd757
PB
7553 fi
7554 test -n "$ac_cv_prog_OBJCOPY" && break
7555done
7556
7557if test -z "$ac_cv_prog_OBJCOPY" ; then
7558 set dummy objcopy
7559 if test $build = $host ; then
7560 OBJCOPY="$2"
859789af 7561 else
05cbd757 7562 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7563 fi
859789af
AC
7564fi
7565
9a819804
AO
7566
7567
7568if test -n "$OBJDUMP"; then
7569 ac_cv_prog_OBJDUMP=$OBJDUMP
7570elif test -n "$ac_cv_prog_OBJDUMP"; then
7571 OBJDUMP=$ac_cv_prog_OBJDUMP
7572fi
7573
7574if test -n "$ac_cv_prog_OBJDUMP"; then
7575 for ncn_progname in objdump; do
7576 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7577set dummy ${ncn_progname}; ac_word=$2
7578echo "$as_me:$LINENO: checking for $ac_word" >&5
7579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7580if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7581 echo $ECHO_N "(cached) $ECHO_C" >&6
7582else
7583 if test -n "$OBJDUMP"; then
7584 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7585else
7586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587for as_dir in $PATH
7588do
7589 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7593 ac_cv_prog_OBJDUMP="${ncn_progname}"
7594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 break 2
7596 fi
7597done
7598done
7599
7600fi
7601fi
7602OBJDUMP=$ac_cv_prog_OBJDUMP
7603if test -n "$OBJDUMP"; then
7604 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7605echo "${ECHO_T}$OBJDUMP" >&6
7606else
7607 echo "$as_me:$LINENO: result: no" >&5
7608echo "${ECHO_T}no" >&6
7609fi
7610
7611 done
7612fi
7613
7614for ncn_progname in objdump; do
05cbd757
PB
7615 if test -n "$ncn_tool_prefix"; then
7616 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7617set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7618echo "$as_me:$LINENO: checking for $ac_word" >&5
7619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7620if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7622else
7623 if test -n "$OBJDUMP"; then
7624 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7625else
c6b750e1
DJ
7626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627for as_dir in $PATH
7628do
7629 IFS=$as_save_IFS
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7633 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 break 2
7636 fi
7637done
7638done
7639
859789af
AC
7640fi
7641fi
c6b750e1 7642OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 7643if test -n "$OBJDUMP"; then
c6b750e1
DJ
7644 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7645echo "${ECHO_T}$OBJDUMP" >&6
859789af 7646else
c6b750e1
DJ
7647 echo "$as_me:$LINENO: result: no" >&5
7648echo "${ECHO_T}no" >&6
859789af
AC
7649fi
7650
05cbd757
PB
7651 fi
7652 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7654set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7655echo "$as_me:$LINENO: checking for $ac_word" >&5
7656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7657if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7659else
05cbd757
PB
7660 if test -n "$OBJDUMP"; then
7661 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 7662else
c6b750e1
DJ
7663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664for as_dir in $PATH
7665do
7666 IFS=$as_save_IFS
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7670 ac_cv_prog_OBJDUMP="${ncn_progname}"
7671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 break 2
7673 fi
7674done
7675done
7676
859789af
AC
7677fi
7678fi
c6b750e1 7679OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 7680if test -n "$OBJDUMP"; then
c6b750e1
DJ
7681 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7682echo "${ECHO_T}$OBJDUMP" >&6
859789af 7683else
c6b750e1
DJ
7684 echo "$as_me:$LINENO: result: no" >&5
7685echo "${ECHO_T}no" >&6
859789af 7686fi
c6b750e1 7687
05cbd757
PB
7688 fi
7689 test -n "$ac_cv_prog_OBJDUMP" && break
7690done
7691
7692if test -z "$ac_cv_prog_OBJDUMP" ; then
7693 set dummy objdump
7694 if test $build = $host ; then
7695 OBJDUMP="$2"
859789af 7696 else
05cbd757 7697 OBJDUMP="${ncn_tool_prefix}$2"
859789af 7698 fi
859789af
AC
7699fi
7700
a0da8069
NN
7701
7702
7703
7704
7705
7706
be01d343 7707# Target tools.
c6b750e1 7708
2429c060
PB
7709# Check whether --with-build-time-tools or --without-build-time-tools was given.
7710if test "${with_build_time_tools+set}" = set; then
7711 withval="$with_build_time_tools"
7712 case x"$withval" in
7713 x/*) ;;
7714 *)
7715 with_build_time_tools=
c6b750e1
DJ
7716 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7717echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
7718 ;;
7719 esac
859789af 7720else
2429c060 7721 with_build_time_tools=
c6b750e1 7722fi;
859789af 7723
9a819804
AO
7724
7725
7726if test -n "$CC_FOR_TARGET"; then
7727 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7728elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7729 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7730fi
7731
7732if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7733 for ncn_progname in cc gcc; do
7734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7735set dummy ${ncn_progname}; ac_word=$2
7736echo "$as_me:$LINENO: checking for $ac_word" >&5
7737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7738if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
7740else
7741 if test -n "$CC_FOR_TARGET"; then
7742 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7743else
7744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745for as_dir in $PATH
7746do
7747 IFS=$as_save_IFS
7748 test -z "$as_dir" && as_dir=.
7749 for ac_exec_ext in '' $ac_executable_extensions; do
7750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7751 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 break 2
7754 fi
7755done
7756done
7757
7758fi
7759fi
7760CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7761if test -n "$CC_FOR_TARGET"; then
7762 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7763echo "${ECHO_T}$CC_FOR_TARGET" >&6
7764else
7765 echo "$as_me:$LINENO: result: no" >&5
7766echo "${ECHO_T}no" >&6
7767fi
7768
7769 done
7770fi
7771
7772if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 7773 for ncn_progname in cc gcc; do
c6b750e1
DJ
7774 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7775echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7776 if test -x $with_build_time_tools/${ncn_progname}; then
7777 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7778 echo "$as_me:$LINENO: result: yes" >&5
7779echo "${ECHO_T}yes" >&6
cac3d6c4 7780 break
2429c060 7781 else
c6b750e1
DJ
7782 echo "$as_me:$LINENO: result: no" >&5
7783echo "${ECHO_T}no" >&6
cac3d6c4
CM
7784 fi
7785 done
55db4b87
PB
7786fi
7787
2429c060
PB
7788if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7789 for ncn_progname in cc gcc; do
7790 if test -n "$ncn_target_tool_prefix"; then
7791 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7792set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7793echo "$as_me:$LINENO: checking for $ac_word" >&5
7794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7795if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
7797else
7798 if test -n "$CC_FOR_TARGET"; then
7799 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7800else
c6b750e1
DJ
7801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802for as_dir in $PATH
7803do
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7808 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 break 2
7811 fi
7812done
7813done
7814
55db4b87
PB
7815fi
7816fi
c6b750e1 7817CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 7818if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
7819 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7820echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 7821else
c6b750e1
DJ
7822 echo "$as_me:$LINENO: result: no" >&5
7823echo "${ECHO_T}no" >&6
55db4b87
PB
7824fi
7825
2429c060
PB
7826 fi
7827 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
7828 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 7829set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7830echo "$as_me:$LINENO: checking for $ac_word" >&5
7831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7832if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 7834else
05cbd757
PB
7835 if test -n "$CC_FOR_TARGET"; then
7836 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 7837else
c6b750e1
DJ
7838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839for as_dir in $PATH
7840do
7841 IFS=$as_save_IFS
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7845 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 break 2
7848 fi
7849done
7850done
7851
55db4b87
PB
7852fi
7853fi
c6b750e1 7854CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 7855if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
7856 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7857echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 7858else
c6b750e1
DJ
7859 echo "$as_me:$LINENO: result: no" >&5
7860echo "${ECHO_T}no" >&6
55db4b87 7861fi
c6b750e1 7862
2429c060
PB
7863 fi
7864 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
7865 done
7866fi
c6b750e1 7867
05cbd757
PB
7868if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
7869 set dummy cc gcc
7870 if test $build = $target ; then
7871 CC_FOR_TARGET="$2"
55db4b87 7872 else
05cbd757 7873 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 7874 fi
55db4b87
PB
7875fi
7876
9a819804
AO
7877
7878
7879if test -n "$CXX_FOR_TARGET"; then
7880 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
7881elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
7882 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7883fi
7884
7885if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
7886 for ncn_progname in c++ g++ cxx gxx; do
7887 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7888set dummy ${ncn_progname}; ac_word=$2
7889echo "$as_me:$LINENO: checking for $ac_word" >&5
7890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7891if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7893else
7894 if test -n "$CXX_FOR_TARGET"; then
7895 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7896else
7897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898for as_dir in $PATH
7899do
7900 IFS=$as_save_IFS
7901 test -z "$as_dir" && as_dir=.
7902 for ac_exec_ext in '' $ac_executable_extensions; do
7903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7904 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
7905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 break 2
7907 fi
7908done
7909done
7910
7911fi
7912fi
7913CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7914if test -n "$CXX_FOR_TARGET"; then
7915 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7916echo "${ECHO_T}$CXX_FOR_TARGET" >&6
7917else
7918 echo "$as_me:$LINENO: result: no" >&5
7919echo "${ECHO_T}no" >&6
7920fi
7921
7922 done
7923fi
7924
7925if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 7926 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
7927 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7928echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7929 if test -x $with_build_time_tools/${ncn_progname}; then
7930 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7931 echo "$as_me:$LINENO: result: yes" >&5
7932echo "${ECHO_T}yes" >&6
2429c060
PB
7933 break
7934 else
c6b750e1
DJ
7935 echo "$as_me:$LINENO: result: no" >&5
7936echo "${ECHO_T}no" >&6
2429c060
PB
7937 fi
7938 done
7939fi
7940
7941if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
7942 for ncn_progname in c++ g++ cxx gxx; do
7943 if test -n "$ncn_target_tool_prefix"; then
7944 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7945set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7946echo "$as_me:$LINENO: checking for $ac_word" >&5
7947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7948if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
7950else
7951 if test -n "$CXX_FOR_TARGET"; then
7952 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7953else
c6b750e1
DJ
7954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955for as_dir in $PATH
7956do
7957 IFS=$as_save_IFS
7958 test -z "$as_dir" && as_dir=.
7959 for ac_exec_ext in '' $ac_executable_extensions; do
7960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7961 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7963 break 2
7964 fi
7965done
7966done
7967
55db4b87
PB
7968fi
7969fi
c6b750e1 7970CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 7971if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
7972 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7973echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 7974else
c6b750e1
DJ
7975 echo "$as_me:$LINENO: result: no" >&5
7976echo "${ECHO_T}no" >&6
55db4b87
PB
7977fi
7978
2429c060
PB
7979 fi
7980 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
7981 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 7982set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7983echo "$as_me:$LINENO: checking for $ac_word" >&5
7984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7985if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 7987else
05cbd757
PB
7988 if test -n "$CXX_FOR_TARGET"; then
7989 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 7990else
c6b750e1
DJ
7991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992for as_dir in $PATH
7993do
7994 IFS=$as_save_IFS
7995 test -z "$as_dir" && as_dir=.
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7998 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
7999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 break 2
8001 fi
8002done
8003done
8004
55db4b87
PB
8005fi
8006fi
c6b750e1 8007CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8008if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8009 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8010echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8011else
c6b750e1
DJ
8012 echo "$as_me:$LINENO: result: no" >&5
8013echo "${ECHO_T}no" >&6
55db4b87 8014fi
c6b750e1 8015
2429c060
PB
8016 fi
8017 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8018 done
8019fi
c6b750e1 8020
05cbd757
PB
8021if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8022 set dummy c++ g++ cxx gxx
8023 if test $build = $target ; then
8024 CXX_FOR_TARGET="$2"
55db4b87 8025 else
05cbd757 8026 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8027 fi
859789af
AC
8028fi
8029
9a819804
AO
8030
8031
8032if test -n "$GCC_FOR_TARGET"; then
8033 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8034elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8035 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8036fi
8037
8038if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8039 for ncn_progname in gcc; do
8040 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8041set dummy ${ncn_progname}; ac_word=$2
8042echo "$as_me:$LINENO: checking for $ac_word" >&5
8043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8044if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8046else
8047 if test -n "$GCC_FOR_TARGET"; then
8048 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8049else
8050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051for as_dir in $PATH
8052do
8053 IFS=$as_save_IFS
8054 test -z "$as_dir" && as_dir=.
8055 for ac_exec_ext in '' $ac_executable_extensions; do
8056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8057 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 break 2
8060 fi
8061done
8062done
8063
8064fi
8065fi
8066GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8067if test -n "$GCC_FOR_TARGET"; then
8068 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8069echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8070else
8071 echo "$as_me:$LINENO: result: no" >&5
8072echo "${ECHO_T}no" >&6
8073fi
8074
8075 done
8076fi
8077
8078if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8079 for ncn_progname in gcc; do
c6b750e1
DJ
8080 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8081echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8082 if test -x $with_build_time_tools/${ncn_progname}; then
8083 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8084 echo "$as_me:$LINENO: result: yes" >&5
8085echo "${ECHO_T}yes" >&6
2429c060
PB
8086 break
8087 else
c6b750e1
DJ
8088 echo "$as_me:$LINENO: result: no" >&5
8089echo "${ECHO_T}no" >&6
2429c060
PB
8090 fi
8091 done
8092fi
8093
8094if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8095 for ncn_progname in gcc; do
8096 if test -n "$ncn_target_tool_prefix"; then
8097 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8098set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8099echo "$as_me:$LINENO: checking for $ac_word" >&5
8100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8101if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8103else
2429c060
PB
8104 if test -n "$GCC_FOR_TARGET"; then
8105 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8106else
c6b750e1
DJ
8107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108for as_dir in $PATH
8109do
8110 IFS=$as_save_IFS
8111 test -z "$as_dir" && as_dir=.
8112 for ac_exec_ext in '' $ac_executable_extensions; do
8113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8114 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8116 break 2
8117 fi
8118done
8119done
8120
55db4b87
PB
8121fi
8122fi
c6b750e1 8123GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8124if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8125 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8126echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8127else
c6b750e1
DJ
8128 echo "$as_me:$LINENO: result: no" >&5
8129echo "${ECHO_T}no" >&6
55db4b87
PB
8130fi
8131
2429c060
PB
8132 fi
8133 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8135set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8136echo "$as_me:$LINENO: checking for $ac_word" >&5
8137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8138if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8140else
05cbd757
PB
8141 if test -n "$GCC_FOR_TARGET"; then
8142 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8143else
c6b750e1
DJ
8144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145for as_dir in $PATH
8146do
8147 IFS=$as_save_IFS
8148 test -z "$as_dir" && as_dir=.
8149 for ac_exec_ext in '' $ac_executable_extensions; do
8150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8151 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8153 break 2
8154 fi
8155done
8156done
8157
55db4b87
PB
8158fi
8159fi
c6b750e1 8160GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8161if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8162 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8163echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8164else
c6b750e1
DJ
8165 echo "$as_me:$LINENO: result: no" >&5
8166echo "${ECHO_T}no" >&6
55db4b87 8167fi
c6b750e1 8168
2429c060
PB
8169 fi
8170 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8171 done
8172fi
c6b750e1 8173
05cbd757
PB
8174if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8175 GCC_FOR_TARGET="${CC_FOR_TARGET}"
55db4b87
PB
8176fi
8177
9a819804
AO
8178
8179
8180if test -n "$GCJ_FOR_TARGET"; then
8181 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8182elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8183 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8184fi
8185
8186if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8187 for ncn_progname in gcj; do
8188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8189set dummy ${ncn_progname}; ac_word=$2
8190echo "$as_me:$LINENO: checking for $ac_word" >&5
8191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8192if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8193 echo $ECHO_N "(cached) $ECHO_C" >&6
8194else
8195 if test -n "$GCJ_FOR_TARGET"; then
8196 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8197else
8198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199for as_dir in $PATH
8200do
8201 IFS=$as_save_IFS
8202 test -z "$as_dir" && as_dir=.
8203 for ac_exec_ext in '' $ac_executable_extensions; do
8204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8205 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8207 break 2
8208 fi
8209done
8210done
8211
8212fi
8213fi
8214GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8215if test -n "$GCJ_FOR_TARGET"; then
8216 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8217echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8218else
8219 echo "$as_me:$LINENO: result: no" >&5
8220echo "${ECHO_T}no" >&6
8221fi
8222
8223 done
8224fi
8225
8226if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8227 for ncn_progname in gcj; do
c6b750e1
DJ
8228 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8229echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8230 if test -x $with_build_time_tools/${ncn_progname}; then
8231 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8232 echo "$as_me:$LINENO: result: yes" >&5
8233echo "${ECHO_T}yes" >&6
2429c060
PB
8234 break
8235 else
c6b750e1
DJ
8236 echo "$as_me:$LINENO: result: no" >&5
8237echo "${ECHO_T}no" >&6
2429c060
PB
8238 fi
8239 done
8240fi
8241
8242if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8243 for ncn_progname in gcj; do
8244 if test -n "$ncn_target_tool_prefix"; then
8245 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8246set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8247echo "$as_me:$LINENO: checking for $ac_word" >&5
8248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8249if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8251else
8252 if test -n "$GCJ_FOR_TARGET"; then
8253 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8254else
c6b750e1
DJ
8255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256for as_dir in $PATH
8257do
8258 IFS=$as_save_IFS
8259 test -z "$as_dir" && as_dir=.
8260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8262 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 break 2
8265 fi
8266done
8267done
8268
55db4b87
PB
8269fi
8270fi
9a819804
AO
8271GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8272if test -n "$GCJ_FOR_TARGET"; then
8273 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8274echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8275else
8276 echo "$as_me:$LINENO: result: no" >&5
8277echo "${ECHO_T}no" >&6
8278fi
8279
8280 fi
8281 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8282 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8283set dummy ${ncn_progname}; ac_word=$2
8284echo "$as_me:$LINENO: checking for $ac_word" >&5
8285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8286if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8288else
8289 if test -n "$GCJ_FOR_TARGET"; then
8290 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8291else
8292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293for as_dir in $PATH
8294do
8295 IFS=$as_save_IFS
8296 test -z "$as_dir" && as_dir=.
8297 for ac_exec_ext in '' $ac_executable_extensions; do
8298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8299 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8301 break 2
8302 fi
8303done
8304done
8305
8306fi
8307fi
8308GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8309if test -n "$GCJ_FOR_TARGET"; then
8310 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8311echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8312else
8313 echo "$as_me:$LINENO: result: no" >&5
8314echo "${ECHO_T}no" >&6
8315fi
8316
8317 fi
8318 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8319 done
8320fi
8321
8322if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8323 set dummy gcj
8324 if test $build = $target ; then
8325 GCJ_FOR_TARGET="$2"
8326 else
8327 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8328 fi
8329fi
8330
8331
8332
8333if test -n "$GFORTRAN_FOR_TARGET"; then
8334 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8335elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8336 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8337fi
8338
9a819804
AO
8339if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8340 for ncn_progname in gfortran; do
8341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8342set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8343echo "$as_me:$LINENO: checking for $ac_word" >&5
8344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8345if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8346 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8347else
9a819804
AO
8348 if test -n "$GFORTRAN_FOR_TARGET"; then
8349 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8350else
c6b750e1
DJ
8351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352for as_dir in $PATH
8353do
8354 IFS=$as_save_IFS
8355 test -z "$as_dir" && as_dir=.
8356 for ac_exec_ext in '' $ac_executable_extensions; do
8357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8358 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8360 break 2
8361 fi
8362done
8363done
8364
55db4b87
PB
8365fi
8366fi
9a819804
AO
8367GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8368if test -n "$GFORTRAN_FOR_TARGET"; then
8369 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8370echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8371else
c6b750e1
DJ
8372 echo "$as_me:$LINENO: result: no" >&5
8373echo "${ECHO_T}no" >&6
55db4b87 8374fi
c6b750e1 8375
2429c060
PB
8376 done
8377fi
c6b750e1 8378
9a819804 8379if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8380 for ncn_progname in gfortran; do
c6b750e1
DJ
8381 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8382echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8383 if test -x $with_build_time_tools/${ncn_progname}; then
8384 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8385 echo "$as_me:$LINENO: result: yes" >&5
8386echo "${ECHO_T}yes" >&6
2429c060
PB
8387 break
8388 else
c6b750e1
DJ
8389 echo "$as_me:$LINENO: result: no" >&5
8390echo "${ECHO_T}no" >&6
2429c060
PB
8391 fi
8392 done
8393fi
8394
8395if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8396 for ncn_progname in gfortran; do
8397 if test -n "$ncn_target_tool_prefix"; then
8398 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8399set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8400echo "$as_me:$LINENO: checking for $ac_word" >&5
8401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8402if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8404else
8405 if test -n "$GFORTRAN_FOR_TARGET"; then
8406 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8407else
c6b750e1
DJ
8408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8409for as_dir in $PATH
8410do
8411 IFS=$as_save_IFS
8412 test -z "$as_dir" && as_dir=.
8413 for ac_exec_ext in '' $ac_executable_extensions; do
8414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8415 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8417 break 2
8418 fi
8419done
8420done
8421
55db4b87
PB
8422fi
8423fi
c6b750e1 8424GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8425if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8426 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8427echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8428else
c6b750e1
DJ
8429 echo "$as_me:$LINENO: result: no" >&5
8430echo "${ECHO_T}no" >&6
55db4b87
PB
8431fi
8432
2429c060
PB
8433 fi
8434 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8436set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8437echo "$as_me:$LINENO: checking for $ac_word" >&5
8438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8439if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8441else
05cbd757 8442 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8443 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8444else
8445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446for as_dir in $PATH
8447do
8448 IFS=$as_save_IFS
8449 test -z "$as_dir" && as_dir=.
8450 for ac_exec_ext in '' $ac_executable_extensions; do
8451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8452 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8454 break 2
8455 fi
8456done
8457done
8458
55db4b87
PB
8459fi
8460fi
c6b750e1 8461GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8462if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8463 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8464echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8465else
c6b750e1
DJ
8466 echo "$as_me:$LINENO: result: no" >&5
8467echo "${ECHO_T}no" >&6
55db4b87 8468fi
c6b750e1 8469
2429c060
PB
8470 fi
8471 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8472 done
8473fi
c6b750e1 8474
05cbd757
PB
8475if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8476 set dummy gfortran
8477 if test $build = $target ; then
8478 GFORTRAN_FOR_TARGET="$2"
55db4b87 8479 else
05cbd757 8480 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8481 fi
859789af
AC
8482fi
8483
2429c060
PB
8484
8485
2429c060
PB
8486cat > conftest.c << \EOF
8487#ifdef __GNUC__
8488 gcc_yay;
8489#endif
8490EOF
8491if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8492 have_gcc_for_target=yes
859789af 8493else
2429c060
PB
8494 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8495 have_gcc_for_target=no
859789af 8496fi
2429c060
PB
8497rm conftest.c
8498
8499
8500
859789af 8501
2429c060
PB
8502if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8503 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8504 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8505echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8506 if test -x $with_build_time_tools/ar; then
8507 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8508 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8509 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8510echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8511 else
c6b750e1
DJ
8512 echo "$as_me:$LINENO: result: no" >&5
8513echo "${ECHO_T}no" >&6
3a35eeb3 8514 fi
2429c060
PB
8515 elif test $build != $host && test $have_gcc_for_target = yes; then
8516 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
8517 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
8518 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8519 fi
2429c060 8520fi
c6b750e1 8521if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8522 # Extract the first word of "ar", so it can be a program name with args.
8523set dummy ar; ac_word=$2
c6b750e1
DJ
8524echo "$as_me:$LINENO: checking for $ac_word" >&5
8525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8526if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8527 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8528else
c6b750e1
DJ
8529 case $AR_FOR_TARGET in
8530 [\\/]* | ?:[\\/]*)
2429c060
PB
8531 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8532 ;;
2429c060 8533 *)
c6b750e1
DJ
8534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535for as_dir in $gcc_cv_tool_dirs
8536do
8537 IFS=$as_save_IFS
8538 test -z "$as_dir" && as_dir=.
8539 for ac_exec_ext in '' $ac_executable_extensions; do
8540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8541 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8543 break 2
8544 fi
8545done
8546done
8547
2429c060
PB
8548 ;;
8549esac
859789af 8550fi
c6b750e1
DJ
8551AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8552
2429c060 8553if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8554 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8555echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8556else
c6b750e1
DJ
8557 echo "$as_me:$LINENO: result: no" >&5
8558echo "${ECHO_T}no" >&6
859789af 8559fi
05cbd757 8560
2429c060
PB
8561fi
8562if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8563
8564
8565if test -n "$AR_FOR_TARGET"; then
8566 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8567elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8568 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8569fi
8570
8571if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8572 for ncn_progname in ar; do
8573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8574set dummy ${ncn_progname}; ac_word=$2
8575echo "$as_me:$LINENO: checking for $ac_word" >&5
8576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8577if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8578 echo $ECHO_N "(cached) $ECHO_C" >&6
8579else
8580 if test -n "$AR_FOR_TARGET"; then
8581 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8582else
8583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584for as_dir in $PATH
8585do
8586 IFS=$as_save_IFS
8587 test -z "$as_dir" && as_dir=.
8588 for ac_exec_ext in '' $ac_executable_extensions; do
8589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8590 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8592 break 2
8593 fi
8594done
8595done
8596
8597fi
8598fi
8599AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8600if test -n "$AR_FOR_TARGET"; then
8601 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8602echo "${ECHO_T}$AR_FOR_TARGET" >&6
8603else
8604 echo "$as_me:$LINENO: result: no" >&5
8605echo "${ECHO_T}no" >&6
8606fi
8607
8608 done
8609fi
8610
8611if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8612 for ncn_progname in ar; do
c6b750e1
DJ
8613 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8614echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8615 if test -x $with_build_time_tools/${ncn_progname}; then
8616 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8617 echo "$as_me:$LINENO: result: yes" >&5
8618echo "${ECHO_T}yes" >&6
2429c060
PB
8619 break
8620 else
c6b750e1
DJ
8621 echo "$as_me:$LINENO: result: no" >&5
8622echo "${ECHO_T}no" >&6
2429c060
PB
8623 fi
8624 done
859789af
AC
8625fi
8626
2429c060
PB
8627if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8628 for ncn_progname in ar; do
8629 if test -n "$ncn_target_tool_prefix"; then
8630 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8631set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8632echo "$as_me:$LINENO: checking for $ac_word" >&5
8633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8634if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8635 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8636else
2429c060
PB
8637 if test -n "$AR_FOR_TARGET"; then
8638 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 8639else
c6b750e1
DJ
8640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8641for as_dir in $PATH
8642do
8643 IFS=$as_save_IFS
8644 test -z "$as_dir" && as_dir=.
8645 for ac_exec_ext in '' $ac_executable_extensions; do
8646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8647 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8649 break 2
8650 fi
8651done
8652done
8653
7e0f7140
GK
8654fi
8655fi
c6b750e1 8656AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8657if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8658 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8659echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8660else
c6b750e1
DJ
8661 echo "$as_me:$LINENO: result: no" >&5
8662echo "${ECHO_T}no" >&6
7e0f7140
GK
8663fi
8664
2429c060
PB
8665 fi
8666 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 8668set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8669echo "$as_me:$LINENO: checking for $ac_word" >&5
8670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8671if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8673else
2429c060
PB
8674 if test -n "$AR_FOR_TARGET"; then
8675 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 8676else
c6b750e1
DJ
8677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8678for as_dir in $PATH
8679do
8680 IFS=$as_save_IFS
8681 test -z "$as_dir" && as_dir=.
8682 for ac_exec_ext in '' $ac_executable_extensions; do
8683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8684 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8686 break 2
8687 fi
8688done
8689done
8690
7e0f7140
GK
8691fi
8692fi
c6b750e1 8693AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8694if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8695 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8696echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8697else
c6b750e1
DJ
8698 echo "$as_me:$LINENO: result: no" >&5
8699echo "${ECHO_T}no" >&6
7e0f7140 8700fi
c6b750e1 8701
2429c060
PB
8702 fi
8703 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8704 done
8705fi
c6b750e1 8706
2429c060
PB
8707if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8708 set dummy ar
7e0f7140 8709 if test $build = $target ; then
2429c060 8710 AR_FOR_TARGET="$2"
7e0f7140 8711 else
2429c060 8712 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140
GK
8713 fi
8714fi
8715
3a35eeb3
PB
8716else
8717 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
8718fi
8719
8720
8721
8722
8723if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8724 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8725 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8726echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8727 if test -x $with_build_time_tools/as; then
8728 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8729 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
8730 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8731echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 8732 else
c6b750e1
DJ
8733 echo "$as_me:$LINENO: result: no" >&5
8734echo "${ECHO_T}no" >&6
3a35eeb3 8735 fi
2429c060
PB
8736 elif test $build != $host && test $have_gcc_for_target = yes; then
8737 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
8738 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
8739 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
8740 fi
8741fi
c6b750e1 8742if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8743 # Extract the first word of "as", so it can be a program name with args.
8744set dummy as; ac_word=$2
c6b750e1
DJ
8745echo "$as_me:$LINENO: checking for $ac_word" >&5
8746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8747if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8749else
c6b750e1
DJ
8750 case $AS_FOR_TARGET in
8751 [\\/]* | ?:[\\/]*)
2429c060
PB
8752 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8753 ;;
2429c060 8754 *)
c6b750e1
DJ
8755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8756for as_dir in $gcc_cv_tool_dirs
8757do
8758 IFS=$as_save_IFS
8759 test -z "$as_dir" && as_dir=.
8760 for ac_exec_ext in '' $ac_executable_extensions; do
8761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8762 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8764 break 2
8765 fi
8766done
8767done
8768
2429c060
PB
8769 ;;
8770esac
8771fi
c6b750e1
DJ
8772AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
8773
2429c060 8774if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
8775 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8776echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 8777else
c6b750e1
DJ
8778 echo "$as_me:$LINENO: result: no" >&5
8779echo "${ECHO_T}no" >&6
2429c060
PB
8780fi
8781
8782fi
8783if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
8784
8785
8786if test -n "$AS_FOR_TARGET"; then
8787 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
8788elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8789 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8790fi
8791
8792if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8793 for ncn_progname in as; do
8794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8795set dummy ${ncn_progname}; ac_word=$2
8796echo "$as_me:$LINENO: checking for $ac_word" >&5
8797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8798if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8800else
8801 if test -n "$AS_FOR_TARGET"; then
8802 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8803else
8804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805for as_dir in $PATH
8806do
8807 IFS=$as_save_IFS
8808 test -z "$as_dir" && as_dir=.
8809 for ac_exec_ext in '' $ac_executable_extensions; do
8810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8811 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
8812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8813 break 2
8814 fi
8815done
8816done
8817
8818fi
8819fi
8820AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8821if test -n "$AS_FOR_TARGET"; then
8822 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8823echo "${ECHO_T}$AS_FOR_TARGET" >&6
8824else
8825 echo "$as_me:$LINENO: result: no" >&5
8826echo "${ECHO_T}no" >&6
8827fi
8828
8829 done
8830fi
8831
8832if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8833 for ncn_progname in as; do
c6b750e1
DJ
8834 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8835echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8836 if test -x $with_build_time_tools/${ncn_progname}; then
8837 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8838 echo "$as_me:$LINENO: result: yes" >&5
8839echo "${ECHO_T}yes" >&6
2429c060
PB
8840 break
8841 else
c6b750e1
DJ
8842 echo "$as_me:$LINENO: result: no" >&5
8843echo "${ECHO_T}no" >&6
2429c060
PB
8844 fi
8845 done
8846fi
8847
8848if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
8849 for ncn_progname in as; do
8850 if test -n "$ncn_target_tool_prefix"; then
8851 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8852set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8853echo "$as_me:$LINENO: checking for $ac_word" >&5
8854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8855if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
8857else
8858 if test -n "$AS_FOR_TARGET"; then
8859 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8860else
c6b750e1
DJ
8861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8862for as_dir in $PATH
8863do
8864 IFS=$as_save_IFS
8865 test -z "$as_dir" && as_dir=.
8866 for ac_exec_ext in '' $ac_executable_extensions; do
8867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8868 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8870 break 2
8871 fi
8872done
8873done
8874
2429c060
PB
8875fi
8876fi
c6b750e1 8877AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 8878if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
8879 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8880echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 8881else
c6b750e1
DJ
8882 echo "$as_me:$LINENO: result: no" >&5
8883echo "${ECHO_T}no" >&6
2429c060
PB
8884fi
8885
8886 fi
8887 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
8888 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8889set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8890echo "$as_me:$LINENO: checking for $ac_word" >&5
8891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8892if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
8894else
8895 if test -n "$AS_FOR_TARGET"; then
8896 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8897else
c6b750e1
DJ
8898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899for as_dir in $PATH
8900do
8901 IFS=$as_save_IFS
8902 test -z "$as_dir" && as_dir=.
8903 for ac_exec_ext in '' $ac_executable_extensions; do
8904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8905 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
8906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8907 break 2
8908 fi
8909done
8910done
8911
2429c060
PB
8912fi
8913fi
c6b750e1 8914AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 8915if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
8916 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8917echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 8918else
c6b750e1
DJ
8919 echo "$as_me:$LINENO: result: no" >&5
8920echo "${ECHO_T}no" >&6
2429c060 8921fi
c6b750e1 8922
2429c060
PB
8923 fi
8924 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
8925 done
8926fi
c6b750e1 8927
2429c060
PB
8928if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
8929 set dummy as
8930 if test $build = $target ; then
8931 AS_FOR_TARGET="$2"
8932 else
8933 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
8934 fi
8935fi
8936
3a35eeb3
PB
8937else
8938 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
8939fi
8940
8941
8942
8943
8944if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
8945 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8946 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
8947echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8948 if test -x $with_build_time_tools/dlltool; then
8949 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
8950 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
8951 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
8952echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 8953 else
c6b750e1
DJ
8954 echo "$as_me:$LINENO: result: no" >&5
8955echo "${ECHO_T}no" >&6
3a35eeb3 8956 fi
2429c060
PB
8957 elif test $build != $host && test $have_gcc_for_target = yes; then
8958 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
8959 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
8960 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
8961 fi
8962fi
c6b750e1 8963if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8964 # Extract the first word of "dlltool", so it can be a program name with args.
8965set dummy dlltool; ac_word=$2
c6b750e1
DJ
8966echo "$as_me:$LINENO: checking for $ac_word" >&5
8967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8968if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
8969 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8970else
c6b750e1
DJ
8971 case $DLLTOOL_FOR_TARGET in
8972 [\\/]* | ?:[\\/]*)
2429c060
PB
8973 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
8974 ;;
2429c060 8975 *)
c6b750e1
DJ
8976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8977for as_dir in $gcc_cv_tool_dirs
8978do
8979 IFS=$as_save_IFS
8980 test -z "$as_dir" && as_dir=.
8981 for ac_exec_ext in '' $ac_executable_extensions; do
8982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8983 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8985 break 2
8986 fi
8987done
8988done
8989
2429c060
PB
8990 ;;
8991esac
8992fi
c6b750e1
DJ
8993DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
8994
2429c060 8995if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
8996 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
8997echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 8998else
c6b750e1
DJ
8999 echo "$as_me:$LINENO: result: no" >&5
9000echo "${ECHO_T}no" >&6
2429c060
PB
9001fi
9002
9003fi
9004if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9005
9006
9007if test -n "$DLLTOOL_FOR_TARGET"; then
9008 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9009elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9010 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9011fi
9012
9013if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9014 for ncn_progname in dlltool; do
9015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9016set dummy ${ncn_progname}; ac_word=$2
9017echo "$as_me:$LINENO: checking for $ac_word" >&5
9018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9019if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9021else
9022 if test -n "$DLLTOOL_FOR_TARGET"; then
9023 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9024else
9025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026for as_dir in $PATH
9027do
9028 IFS=$as_save_IFS
9029 test -z "$as_dir" && as_dir=.
9030 for ac_exec_ext in '' $ac_executable_extensions; do
9031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9032 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9034 break 2
9035 fi
9036done
9037done
9038
9039fi
9040fi
9041DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9042if test -n "$DLLTOOL_FOR_TARGET"; then
9043 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9044echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9045else
9046 echo "$as_me:$LINENO: result: no" >&5
9047echo "${ECHO_T}no" >&6
9048fi
9049
9050 done
9051fi
9052
9053if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9054 for ncn_progname in dlltool; do
c6b750e1
DJ
9055 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9056echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9057 if test -x $with_build_time_tools/${ncn_progname}; then
9058 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9059 echo "$as_me:$LINENO: result: yes" >&5
9060echo "${ECHO_T}yes" >&6
2429c060
PB
9061 break
9062 else
c6b750e1
DJ
9063 echo "$as_me:$LINENO: result: no" >&5
9064echo "${ECHO_T}no" >&6
2429c060
PB
9065 fi
9066 done
9067fi
9068
9069if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9070 for ncn_progname in dlltool; do
9071 if test -n "$ncn_target_tool_prefix"; then
9072 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9073set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9074echo "$as_me:$LINENO: checking for $ac_word" >&5
9075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9076if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9078else
9079 if test -n "$DLLTOOL_FOR_TARGET"; then
9080 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9081else
c6b750e1
DJ
9082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9083for as_dir in $PATH
9084do
9085 IFS=$as_save_IFS
9086 test -z "$as_dir" && as_dir=.
9087 for ac_exec_ext in '' $ac_executable_extensions; do
9088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9089 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9091 break 2
9092 fi
9093done
9094done
9095
2429c060
PB
9096fi
9097fi
c6b750e1 9098DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9099if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9100 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9101echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9102else
c6b750e1
DJ
9103 echo "$as_me:$LINENO: result: no" >&5
9104echo "${ECHO_T}no" >&6
2429c060
PB
9105fi
9106
9107 fi
9108 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9110set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9111echo "$as_me:$LINENO: checking for $ac_word" >&5
9112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9113if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9115else
9116 if test -n "$DLLTOOL_FOR_TARGET"; then
9117 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9118else
c6b750e1
DJ
9119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9120for as_dir in $PATH
9121do
9122 IFS=$as_save_IFS
9123 test -z "$as_dir" && as_dir=.
9124 for ac_exec_ext in '' $ac_executable_extensions; do
9125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9126 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9128 break 2
9129 fi
9130done
9131done
9132
2429c060
PB
9133fi
9134fi
c6b750e1 9135DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9136if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9137 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9138echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9139else
c6b750e1
DJ
9140 echo "$as_me:$LINENO: result: no" >&5
9141echo "${ECHO_T}no" >&6
2429c060 9142fi
c6b750e1 9143
2429c060
PB
9144 fi
9145 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9146 done
9147fi
c6b750e1 9148
2429c060
PB
9149if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9150 set dummy dlltool
9151 if test $build = $target ; then
9152 DLLTOOL_FOR_TARGET="$2"
9153 else
9154 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9155 fi
9156fi
9157
3a35eeb3
PB
9158else
9159 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9160fi
9161
9162
9163
9164
9165if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9166 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9167 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9168echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9169 if test -x $with_build_time_tools/ld; then
9170 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9171 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9172 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9173echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9174 else
c6b750e1
DJ
9175 echo "$as_me:$LINENO: result: no" >&5
9176echo "${ECHO_T}no" >&6
3a35eeb3 9177 fi
2429c060
PB
9178 elif test $build != $host && test $have_gcc_for_target = yes; then
9179 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
9180 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
9181 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9182 fi
9183fi
c6b750e1 9184if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9185 # Extract the first word of "ld", so it can be a program name with args.
9186set dummy ld; ac_word=$2
c6b750e1
DJ
9187echo "$as_me:$LINENO: checking for $ac_word" >&5
9188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9189if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9191else
c6b750e1
DJ
9192 case $LD_FOR_TARGET in
9193 [\\/]* | ?:[\\/]*)
2429c060
PB
9194 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9195 ;;
2429c060 9196 *)
c6b750e1
DJ
9197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9198for as_dir in $gcc_cv_tool_dirs
9199do
9200 IFS=$as_save_IFS
9201 test -z "$as_dir" && as_dir=.
9202 for ac_exec_ext in '' $ac_executable_extensions; do
9203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9204 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9206 break 2
9207 fi
9208done
9209done
9210
2429c060
PB
9211 ;;
9212esac
9213fi
c6b750e1
DJ
9214LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9215
2429c060 9216if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9217 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9218echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9219else
c6b750e1
DJ
9220 echo "$as_me:$LINENO: result: no" >&5
9221echo "${ECHO_T}no" >&6
2429c060
PB
9222fi
9223
9224fi
9225if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9226
9227
9228if test -n "$LD_FOR_TARGET"; then
9229 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9230elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9231 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9232fi
9233
9234if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9235 for ncn_progname in ld; do
9236 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9237set dummy ${ncn_progname}; ac_word=$2
9238echo "$as_me:$LINENO: checking for $ac_word" >&5
9239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9240if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9242else
9243 if test -n "$LD_FOR_TARGET"; then
9244 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9245else
9246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247for as_dir in $PATH
9248do
9249 IFS=$as_save_IFS
9250 test -z "$as_dir" && as_dir=.
9251 for ac_exec_ext in '' $ac_executable_extensions; do
9252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9253 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9255 break 2
9256 fi
9257done
9258done
9259
9260fi
9261fi
9262LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9263if test -n "$LD_FOR_TARGET"; then
9264 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9265echo "${ECHO_T}$LD_FOR_TARGET" >&6
9266else
9267 echo "$as_me:$LINENO: result: no" >&5
9268echo "${ECHO_T}no" >&6
9269fi
9270
9271 done
9272fi
9273
9274if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9275 for ncn_progname in ld; do
c6b750e1
DJ
9276 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9277echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9278 if test -x $with_build_time_tools/${ncn_progname}; then
9279 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9280 echo "$as_me:$LINENO: result: yes" >&5
9281echo "${ECHO_T}yes" >&6
2429c060
PB
9282 break
9283 else
c6b750e1
DJ
9284 echo "$as_me:$LINENO: result: no" >&5
9285echo "${ECHO_T}no" >&6
2429c060
PB
9286 fi
9287 done
9288fi
9289
9290if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9291 for ncn_progname in ld; do
9292 if test -n "$ncn_target_tool_prefix"; then
9293 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9294set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9295echo "$as_me:$LINENO: checking for $ac_word" >&5
9296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9297if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9298 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9299else
9300 if test -n "$LD_FOR_TARGET"; then
9301 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9302else
c6b750e1
DJ
9303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9304for as_dir in $PATH
9305do
9306 IFS=$as_save_IFS
9307 test -z "$as_dir" && as_dir=.
9308 for ac_exec_ext in '' $ac_executable_extensions; do
9309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9310 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9312 break 2
9313 fi
9314done
9315done
9316
2429c060
PB
9317fi
9318fi
c6b750e1 9319LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9320if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9321 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9322echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9323else
c6b750e1
DJ
9324 echo "$as_me:$LINENO: result: no" >&5
9325echo "${ECHO_T}no" >&6
2429c060
PB
9326fi
9327
9328 fi
9329 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9331set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9332echo "$as_me:$LINENO: checking for $ac_word" >&5
9333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9334if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9336else
9337 if test -n "$LD_FOR_TARGET"; then
9338 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9339else
c6b750e1
DJ
9340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9341for as_dir in $PATH
9342do
9343 IFS=$as_save_IFS
9344 test -z "$as_dir" && as_dir=.
9345 for ac_exec_ext in '' $ac_executable_extensions; do
9346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9347 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9349 break 2
9350 fi
9351done
9352done
9353
2429c060
PB
9354fi
9355fi
c6b750e1 9356LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9357if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9358 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9359echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9360else
c6b750e1
DJ
9361 echo "$as_me:$LINENO: result: no" >&5
9362echo "${ECHO_T}no" >&6
2429c060 9363fi
c6b750e1 9364
2429c060
PB
9365 fi
9366 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9367 done
9368fi
c6b750e1 9369
2429c060
PB
9370if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9371 set dummy ld
9372 if test $build = $target ; then
9373 LD_FOR_TARGET="$2"
9374 else
9375 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9376 fi
9377fi
9378
3a35eeb3
PB
9379else
9380 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9381fi
9382
9383
9384
9385
9386if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9387 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9388 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9389echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9390 if test -x $with_build_time_tools/lipo; then
9391 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9392 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9393 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9394echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9395 else
c6b750e1
DJ
9396 echo "$as_me:$LINENO: result: no" >&5
9397echo "${ECHO_T}no" >&6
3a35eeb3 9398 fi
2429c060
PB
9399 elif test $build != $host && test $have_gcc_for_target = yes; then
9400 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
9401 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
9402 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9403 fi
9404fi
9a819804
AO
9405if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9406 # Extract the first word of "lipo", so it can be a program name with args.
9407set dummy lipo; ac_word=$2
9408echo "$as_me:$LINENO: checking for $ac_word" >&5
9409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9410if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9412else
9413 case $LIPO_FOR_TARGET in
9414 [\\/]* | ?:[\\/]*)
9415 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9416 ;;
9417 *)
9418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9419for as_dir in $gcc_cv_tool_dirs
9420do
9421 IFS=$as_save_IFS
9422 test -z "$as_dir" && as_dir=.
9423 for ac_exec_ext in '' $ac_executable_extensions; do
9424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9425 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9427 break 2
9428 fi
9429done
9430done
9431
9432 ;;
9433esac
9434fi
9435LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9436
9437if test -n "$LIPO_FOR_TARGET"; then
9438 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9439echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9440else
9441 echo "$as_me:$LINENO: result: no" >&5
9442echo "${ECHO_T}no" >&6
9443fi
9444
9445fi
9446if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9447
9448
9449if test -n "$LIPO_FOR_TARGET"; then
9450 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9451elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9452 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9453fi
9454
9455if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9456 for ncn_progname in lipo; do
9457 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9458set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9459echo "$as_me:$LINENO: checking for $ac_word" >&5
9460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9461if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9462 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9463else
9a819804
AO
9464 if test -n "$LIPO_FOR_TARGET"; then
9465 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9466else
9467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9468for as_dir in $PATH
c6b750e1
DJ
9469do
9470 IFS=$as_save_IFS
9471 test -z "$as_dir" && as_dir=.
9472 for ac_exec_ext in '' $ac_executable_extensions; do
9473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9474 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9476 break 2
9477 fi
9478done
9479done
9480
2429c060 9481fi
9a819804
AO
9482fi
9483LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9484if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9485 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9486echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9487else
c6b750e1
DJ
9488 echo "$as_me:$LINENO: result: no" >&5
9489echo "${ECHO_T}no" >&6
2429c060
PB
9490fi
9491
9a819804 9492 done
2429c060 9493fi
9a819804
AO
9494
9495if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9496 for ncn_progname in lipo; do
c6b750e1
DJ
9497 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9498echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9499 if test -x $with_build_time_tools/${ncn_progname}; then
9500 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9501 echo "$as_me:$LINENO: result: yes" >&5
9502echo "${ECHO_T}yes" >&6
2429c060
PB
9503 break
9504 else
c6b750e1
DJ
9505 echo "$as_me:$LINENO: result: no" >&5
9506echo "${ECHO_T}no" >&6
2429c060
PB
9507 fi
9508 done
9509fi
9510
9511if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9512 for ncn_progname in lipo; do
9513 if test -n "$ncn_target_tool_prefix"; then
9514 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9515set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9516echo "$as_me:$LINENO: checking for $ac_word" >&5
9517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9518if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9520else
9521 if test -n "$LIPO_FOR_TARGET"; then
9522 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9523else
c6b750e1
DJ
9524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9525for as_dir in $PATH
9526do
9527 IFS=$as_save_IFS
9528 test -z "$as_dir" && as_dir=.
9529 for ac_exec_ext in '' $ac_executable_extensions; do
9530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9531 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9533 break 2
9534 fi
9535done
9536done
9537
2429c060
PB
9538fi
9539fi
c6b750e1 9540LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9541if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9542 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9543echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9544else
c6b750e1
DJ
9545 echo "$as_me:$LINENO: result: no" >&5
9546echo "${ECHO_T}no" >&6
2429c060
PB
9547fi
9548
9549 fi
9550 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9552set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9553echo "$as_me:$LINENO: checking for $ac_word" >&5
9554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9555if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9557else
9558 if test -n "$LIPO_FOR_TARGET"; then
9559 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9560else
c6b750e1
DJ
9561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9562for as_dir in $PATH
9563do
9564 IFS=$as_save_IFS
9565 test -z "$as_dir" && as_dir=.
9566 for ac_exec_ext in '' $ac_executable_extensions; do
9567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9568 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9570 break 2
9571 fi
9572done
9573done
9574
2429c060
PB
9575fi
9576fi
c6b750e1 9577LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9578if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9579 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9580echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9581else
c6b750e1
DJ
9582 echo "$as_me:$LINENO: result: no" >&5
9583echo "${ECHO_T}no" >&6
2429c060 9584fi
c6b750e1 9585
2429c060
PB
9586 fi
9587 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9588 done
9589fi
c6b750e1 9590
2429c060
PB
9591if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9592 set dummy lipo
9593 if test $build = $target ; then
9594 LIPO_FOR_TARGET="$2"
9595 else
9596 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9597 fi
9598fi
9599
3a35eeb3
PB
9600else
9601 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
9602fi
9603
9604
9605
9606
9607if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9608 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9609 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9610echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9611 if test -x $with_build_time_tools/nm; then
9612 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9613 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
9614 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9615echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 9616 else
c6b750e1
DJ
9617 echo "$as_me:$LINENO: result: no" >&5
9618echo "${ECHO_T}no" >&6
3a35eeb3 9619 fi
2429c060
PB
9620 elif test $build != $host && test $have_gcc_for_target = yes; then
9621 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
9622 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
9623 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
9624 fi
9625fi
c6b750e1 9626if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9627 # Extract the first word of "nm", so it can be a program name with args.
9628set dummy nm; ac_word=$2
c6b750e1
DJ
9629echo "$as_me:$LINENO: checking for $ac_word" >&5
9630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9631if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9633else
c6b750e1
DJ
9634 case $NM_FOR_TARGET in
9635 [\\/]* | ?:[\\/]*)
2429c060
PB
9636 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9637 ;;
2429c060 9638 *)
c6b750e1
DJ
9639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9640for as_dir in $gcc_cv_tool_dirs
9641do
9642 IFS=$as_save_IFS
9643 test -z "$as_dir" && as_dir=.
9644 for ac_exec_ext in '' $ac_executable_extensions; do
9645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9646 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9648 break 2
9649 fi
9650done
9651done
9652
2429c060
PB
9653 ;;
9654esac
9655fi
c6b750e1
DJ
9656NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9657
2429c060 9658if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9659 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9660echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 9661else
c6b750e1
DJ
9662 echo "$as_me:$LINENO: result: no" >&5
9663echo "${ECHO_T}no" >&6
2429c060
PB
9664fi
9665
9666fi
9667if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
9668
9669
9670if test -n "$NM_FOR_TARGET"; then
9671 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9672elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9673 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9674fi
9675
9676if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9677 for ncn_progname in nm; do
9678 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9679set dummy ${ncn_progname}; ac_word=$2
9680echo "$as_me:$LINENO: checking for $ac_word" >&5
9681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9682if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9683 echo $ECHO_N "(cached) $ECHO_C" >&6
9684else
9685 if test -n "$NM_FOR_TARGET"; then
9686 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9687else
9688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9689for as_dir in $PATH
9690do
9691 IFS=$as_save_IFS
9692 test -z "$as_dir" && as_dir=.
9693 for ac_exec_ext in '' $ac_executable_extensions; do
9694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9695 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9697 break 2
9698 fi
9699done
9700done
9701
9702fi
9703fi
9704NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9705if test -n "$NM_FOR_TARGET"; then
9706 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9707echo "${ECHO_T}$NM_FOR_TARGET" >&6
9708else
9709 echo "$as_me:$LINENO: result: no" >&5
9710echo "${ECHO_T}no" >&6
9711fi
9712
9713 done
9714fi
9715
9716if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9717 for ncn_progname in nm; do
c6b750e1
DJ
9718 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9719echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9720 if test -x $with_build_time_tools/${ncn_progname}; then
9721 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9722 echo "$as_me:$LINENO: result: yes" >&5
9723echo "${ECHO_T}yes" >&6
2429c060
PB
9724 break
9725 else
c6b750e1
DJ
9726 echo "$as_me:$LINENO: result: no" >&5
9727echo "${ECHO_T}no" >&6
2429c060
PB
9728 fi
9729 done
9730fi
9731
9732if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9733 for ncn_progname in nm; do
9734 if test -n "$ncn_target_tool_prefix"; then
9735 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 9736set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9737echo "$as_me:$LINENO: checking for $ac_word" >&5
9738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9739if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9741else
55db4b87
PB
9742 if test -n "$NM_FOR_TARGET"; then
9743 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 9744else
c6b750e1
DJ
9745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9746for as_dir in $PATH
9747do
9748 IFS=$as_save_IFS
9749 test -z "$as_dir" && as_dir=.
9750 for ac_exec_ext in '' $ac_executable_extensions; do
9751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9752 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9754 break 2
9755 fi
9756done
9757done
9758
859789af
AC
9759fi
9760fi
c6b750e1 9761NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 9762if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9763 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9764echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 9765else
c6b750e1
DJ
9766 echo "$as_me:$LINENO: result: no" >&5
9767echo "${ECHO_T}no" >&6
859789af
AC
9768fi
9769
2429c060
PB
9770 fi
9771 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
9772 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9773set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9774echo "$as_me:$LINENO: checking for $ac_word" >&5
9775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9776if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9778else
05cbd757
PB
9779 if test -n "$NM_FOR_TARGET"; then
9780 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 9781else
c6b750e1
DJ
9782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9783for as_dir in $PATH
9784do
9785 IFS=$as_save_IFS
9786 test -z "$as_dir" && as_dir=.
9787 for ac_exec_ext in '' $ac_executable_extensions; do
9788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9789 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9791 break 2
9792 fi
9793done
9794done
9795
859789af
AC
9796fi
9797fi
c6b750e1 9798NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 9799if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9800 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9801echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 9802else
c6b750e1
DJ
9803 echo "$as_me:$LINENO: result: no" >&5
9804echo "${ECHO_T}no" >&6
859789af 9805fi
c6b750e1 9806
2429c060
PB
9807 fi
9808 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
9809 done
9810fi
c6b750e1 9811
05cbd757
PB
9812if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
9813 set dummy nm
9814 if test $build = $target ; then
9815 NM_FOR_TARGET="$2"
859789af 9816 else
05cbd757 9817 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 9818 fi
859789af
AC
9819fi
9820
3a35eeb3
PB
9821else
9822 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
9823fi
9824
9825
9826
9827
9828if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9829 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9830 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
9831echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9832 if test -x $with_build_time_tools/objdump; then
9833 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
9834 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
9835 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
9836echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 9837 else
c6b750e1
DJ
9838 echo "$as_me:$LINENO: result: no" >&5
9839echo "${ECHO_T}no" >&6
3a35eeb3 9840 fi
2429c060
PB
9841 elif test $build != $host && test $have_gcc_for_target = yes; then
9842 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
9843 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
9844 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
9845 fi
9846fi
c6b750e1 9847if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9848 # Extract the first word of "objdump", so it can be a program name with args.
9849set dummy objdump; ac_word=$2
c6b750e1
DJ
9850echo "$as_me:$LINENO: checking for $ac_word" >&5
9851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9852if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
9853 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9854else
c6b750e1
DJ
9855 case $OBJDUMP_FOR_TARGET in
9856 [\\/]* | ?:[\\/]*)
2429c060
PB
9857 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
9858 ;;
2429c060 9859 *)
c6b750e1
DJ
9860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9861for as_dir in $gcc_cv_tool_dirs
9862do
9863 IFS=$as_save_IFS
9864 test -z "$as_dir" && as_dir=.
9865 for ac_exec_ext in '' $ac_executable_extensions; do
9866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9867 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9869 break 2
9870 fi
9871done
9872done
9873
2429c060
PB
9874 ;;
9875esac
9876fi
c6b750e1
DJ
9877OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
9878
2429c060 9879if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
9880 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
9881echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 9882else
c6b750e1
DJ
9883 echo "$as_me:$LINENO: result: no" >&5
9884echo "${ECHO_T}no" >&6
2429c060
PB
9885fi
9886
9887fi
9888if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
9889
9890
9891if test -n "$OBJDUMP_FOR_TARGET"; then
9892 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
9893elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
9894 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
9895fi
9896
9897if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
9898 for ncn_progname in objdump; do
9899 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9900set dummy ${ncn_progname}; ac_word=$2
9901echo "$as_me:$LINENO: checking for $ac_word" >&5
9902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9903if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9905else
9906 if test -n "$OBJDUMP_FOR_TARGET"; then
9907 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
9908else
9909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9910for as_dir in $PATH
9911do
9912 IFS=$as_save_IFS
9913 test -z "$as_dir" && as_dir=.
9914 for ac_exec_ext in '' $ac_executable_extensions; do
9915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9916 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
9917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9918 break 2
9919 fi
9920done
9921done
9922
9923fi
9924fi
9925OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
9926if test -n "$OBJDUMP_FOR_TARGET"; then
9927 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
9928echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
9929else
9930 echo "$as_me:$LINENO: result: no" >&5
9931echo "${ECHO_T}no" >&6
9932fi
9933
9934 done
9935fi
9936
9937if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9938 for ncn_progname in objdump; do
c6b750e1
DJ
9939 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9940echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9941 if test -x $with_build_time_tools/${ncn_progname}; then
9942 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9943 echo "$as_me:$LINENO: result: yes" >&5
9944echo "${ECHO_T}yes" >&6
2429c060
PB
9945 break
9946 else
c6b750e1
DJ
9947 echo "$as_me:$LINENO: result: no" >&5
9948echo "${ECHO_T}no" >&6
2429c060
PB
9949 fi
9950 done
9951fi
9952
9953if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
9954 for ncn_progname in objdump; do
9955 if test -n "$ncn_target_tool_prefix"; then
9956 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9957set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9958echo "$as_me:$LINENO: checking for $ac_word" >&5
9959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9960if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
9962else
9963 if test -n "$OBJDUMP_FOR_TARGET"; then
9964 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
9965else
c6b750e1
DJ
9966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9967for as_dir in $PATH
9968do
9969 IFS=$as_save_IFS
9970 test -z "$as_dir" && as_dir=.
9971 for ac_exec_ext in '' $ac_executable_extensions; do
9972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9973 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9975 break 2
9976 fi
9977done
9978done
9979
5ae72758
DJ
9980fi
9981fi
c6b750e1 9982OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 9983if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
9984 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
9985echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 9986else
c6b750e1
DJ
9987 echo "$as_me:$LINENO: result: no" >&5
9988echo "${ECHO_T}no" >&6
5ae72758
DJ
9989fi
9990
2429c060
PB
9991 fi
9992 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
9993 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 9994set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9995echo "$as_me:$LINENO: checking for $ac_word" >&5
9996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9997if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
9999else
10000 if test -n "$OBJDUMP_FOR_TARGET"; then
10001 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10002else
c6b750e1
DJ
10003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004for as_dir in $PATH
10005do
10006 IFS=$as_save_IFS
10007 test -z "$as_dir" && as_dir=.
10008 for ac_exec_ext in '' $ac_executable_extensions; do
10009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10010 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10012 break 2
10013 fi
10014done
10015done
10016
5ae72758
DJ
10017fi
10018fi
c6b750e1 10019OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10020if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10021 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10022echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10023else
c6b750e1
DJ
10024 echo "$as_me:$LINENO: result: no" >&5
10025echo "${ECHO_T}no" >&6
5ae72758 10026fi
c6b750e1 10027
2429c060
PB
10028 fi
10029 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10030 done
10031fi
c6b750e1 10032
5ae72758
DJ
10033if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10034 set dummy objdump
10035 if test $build = $target ; then
10036 OBJDUMP_FOR_TARGET="$2"
10037 else
10038 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10039 fi
10040fi
10041
3a35eeb3
PB
10042else
10043 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10044fi
10045
10046
10047
10048
10049if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10050 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10051 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10052echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10053 if test -x $with_build_time_tools/ranlib; then
10054 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10055 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10056 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10057echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10058 else
c6b750e1
DJ
10059 echo "$as_me:$LINENO: result: no" >&5
10060echo "${ECHO_T}no" >&6
3a35eeb3 10061 fi
2429c060
PB
10062 elif test $build != $host && test $have_gcc_for_target = yes; then
10063 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
10064 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
10065 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10066 fi
10067fi
c6b750e1 10068if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10069 # Extract the first word of "ranlib", so it can be a program name with args.
10070set dummy ranlib; ac_word=$2
c6b750e1
DJ
10071echo "$as_me:$LINENO: checking for $ac_word" >&5
10072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10073if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10074 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10075else
c6b750e1
DJ
10076 case $RANLIB_FOR_TARGET in
10077 [\\/]* | ?:[\\/]*)
2429c060
PB
10078 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10079 ;;
2429c060 10080 *)
c6b750e1
DJ
10081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10082for as_dir in $gcc_cv_tool_dirs
10083do
10084 IFS=$as_save_IFS
10085 test -z "$as_dir" && as_dir=.
10086 for ac_exec_ext in '' $ac_executable_extensions; do
10087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10088 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10090 break 2
10091 fi
10092done
10093done
10094
2429c060
PB
10095 ;;
10096esac
10097fi
c6b750e1
DJ
10098RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10099
2429c060 10100if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10101 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10102echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10103else
c6b750e1
DJ
10104 echo "$as_me:$LINENO: result: no" >&5
10105echo "${ECHO_T}no" >&6
2429c060
PB
10106fi
10107
10108fi
10109if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10110
10111
10112if test -n "$RANLIB_FOR_TARGET"; then
10113 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10114elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10115 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10116fi
10117
10118if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10119 for ncn_progname in ranlib; do
10120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10121set dummy ${ncn_progname}; ac_word=$2
10122echo "$as_me:$LINENO: checking for $ac_word" >&5
10123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10124if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10126else
10127 if test -n "$RANLIB_FOR_TARGET"; then
10128 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10129else
10130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10131for as_dir in $PATH
10132do
10133 IFS=$as_save_IFS
10134 test -z "$as_dir" && as_dir=.
10135 for ac_exec_ext in '' $ac_executable_extensions; do
10136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10137 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10139 break 2
10140 fi
10141done
10142done
10143
10144fi
10145fi
10146RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10147if test -n "$RANLIB_FOR_TARGET"; then
10148 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10149echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10150else
10151 echo "$as_me:$LINENO: result: no" >&5
10152echo "${ECHO_T}no" >&6
10153fi
10154
10155 done
10156fi
10157
10158if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10159 for ncn_progname in ranlib; do
c6b750e1
DJ
10160 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10161echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10162 if test -x $with_build_time_tools/${ncn_progname}; then
10163 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10164 echo "$as_me:$LINENO: result: yes" >&5
10165echo "${ECHO_T}yes" >&6
2429c060
PB
10166 break
10167 else
c6b750e1
DJ
10168 echo "$as_me:$LINENO: result: no" >&5
10169echo "${ECHO_T}no" >&6
2429c060
PB
10170 fi
10171 done
10172fi
10173
10174if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10175 for ncn_progname in ranlib; do
10176 if test -n "$ncn_target_tool_prefix"; then
10177 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10178set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10179echo "$as_me:$LINENO: checking for $ac_word" >&5
10180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10181if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10183else
55db4b87
PB
10184 if test -n "$RANLIB_FOR_TARGET"; then
10185 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10186else
c6b750e1
DJ
10187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188for as_dir in $PATH
10189do
10190 IFS=$as_save_IFS
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10194 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 break 2
10197 fi
10198done
10199done
10200
859789af
AC
10201fi
10202fi
c6b750e1 10203RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10204if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10205 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10206echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10207else
c6b750e1
DJ
10208 echo "$as_me:$LINENO: result: no" >&5
10209echo "${ECHO_T}no" >&6
859789af
AC
10210fi
10211
2429c060
PB
10212 fi
10213 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10214 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10215set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10216echo "$as_me:$LINENO: checking for $ac_word" >&5
10217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10218if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10220else
05cbd757
PB
10221 if test -n "$RANLIB_FOR_TARGET"; then
10222 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10223else
c6b750e1
DJ
10224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10225for as_dir in $PATH
10226do
10227 IFS=$as_save_IFS
10228 test -z "$as_dir" && as_dir=.
10229 for ac_exec_ext in '' $ac_executable_extensions; do
10230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10231 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 break 2
10234 fi
10235done
10236done
10237
859789af
AC
10238fi
10239fi
c6b750e1 10240RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10241if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10242 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10243echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10244else
c6b750e1
DJ
10245 echo "$as_me:$LINENO: result: no" >&5
10246echo "${ECHO_T}no" >&6
859789af 10247fi
c6b750e1 10248
2429c060
PB
10249 fi
10250 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10251 done
10252fi
c6b750e1 10253
2429c060
PB
10254if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10255 set dummy ranlib
10256 if test $build = $target ; then
10257 RANLIB_FOR_TARGET="$2"
10258 else
10259 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10260 fi
2429c060 10261fi
05cbd757 10262
3a35eeb3
PB
10263else
10264 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10265fi
10266
2429c060
PB
10267
10268
10269
10270if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10271 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10272 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10273echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10274 if test -x $with_build_time_tools/strip; then
10275 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10276 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10277 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10278echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10279 else
c6b750e1
DJ
10280 echo "$as_me:$LINENO: result: no" >&5
10281echo "${ECHO_T}no" >&6
3a35eeb3 10282 fi
2429c060
PB
10283 elif test $build != $host && test $have_gcc_for_target = yes; then
10284 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
10285 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
10286 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10287 fi
10288fi
c6b750e1 10289if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10290 # Extract the first word of "strip", so it can be a program name with args.
10291set dummy strip; ac_word=$2
c6b750e1
DJ
10292echo "$as_me:$LINENO: checking for $ac_word" >&5
10293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10294if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10295 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10296else
c6b750e1
DJ
10297 case $STRIP_FOR_TARGET in
10298 [\\/]* | ?:[\\/]*)
2429c060
PB
10299 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10300 ;;
2429c060 10301 *)
c6b750e1
DJ
10302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303for as_dir in $gcc_cv_tool_dirs
10304do
10305 IFS=$as_save_IFS
10306 test -z "$as_dir" && as_dir=.
10307 for ac_exec_ext in '' $ac_executable_extensions; do
10308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10309 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10311 break 2
10312 fi
10313done
10314done
10315
2429c060
PB
10316 ;;
10317esac
10318fi
c6b750e1
DJ
10319STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10320
2429c060 10321if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10322 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10323echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10324else
c6b750e1
DJ
10325 echo "$as_me:$LINENO: result: no" >&5
10326echo "${ECHO_T}no" >&6
2429c060
PB
10327fi
10328
10329fi
10330if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10331
10332
10333if test -n "$STRIP_FOR_TARGET"; then
10334 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10335elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10336 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10337fi
10338
10339if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10340 for ncn_progname in strip; do
10341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10342set dummy ${ncn_progname}; ac_word=$2
10343echo "$as_me:$LINENO: checking for $ac_word" >&5
10344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10345if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10347else
10348 if test -n "$STRIP_FOR_TARGET"; then
10349 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10350else
10351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352for as_dir in $PATH
10353do
10354 IFS=$as_save_IFS
10355 test -z "$as_dir" && as_dir=.
10356 for ac_exec_ext in '' $ac_executable_extensions; do
10357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10358 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10360 break 2
10361 fi
10362done
10363done
10364
10365fi
10366fi
10367STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10368if test -n "$STRIP_FOR_TARGET"; then
10369 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10370echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10371else
10372 echo "$as_me:$LINENO: result: no" >&5
10373echo "${ECHO_T}no" >&6
10374fi
10375
10376 done
10377fi
10378
10379if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10380 for ncn_progname in strip; do
c6b750e1
DJ
10381 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10382echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10383 if test -x $with_build_time_tools/${ncn_progname}; then
10384 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10385 echo "$as_me:$LINENO: result: yes" >&5
10386echo "${ECHO_T}yes" >&6
2429c060
PB
10387 break
10388 else
c6b750e1
DJ
10389 echo "$as_me:$LINENO: result: no" >&5
10390echo "${ECHO_T}no" >&6
2429c060
PB
10391 fi
10392 done
10393fi
10394
10395if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10396 for ncn_progname in strip; do
10397 if test -n "$ncn_target_tool_prefix"; then
10398 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10399set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10400echo "$as_me:$LINENO: checking for $ac_word" >&5
10401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10402if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10404else
10405 if test -n "$STRIP_FOR_TARGET"; then
10406 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10407else
10408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409for as_dir in $PATH
10410do
10411 IFS=$as_save_IFS
10412 test -z "$as_dir" && as_dir=.
10413 for ac_exec_ext in '' $ac_executable_extensions; do
10414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10415 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10417 break 2
10418 fi
10419done
10420done
10421
7e0f7140
GK
10422fi
10423fi
c6b750e1 10424STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10425if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10426 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10427echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10428else
c6b750e1
DJ
10429 echo "$as_me:$LINENO: result: no" >&5
10430echo "${ECHO_T}no" >&6
7e0f7140
GK
10431fi
10432
2429c060
PB
10433 fi
10434 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10436set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10437echo "$as_me:$LINENO: checking for $ac_word" >&5
10438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10439if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10441else
10442 if test -n "$STRIP_FOR_TARGET"; then
10443 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10444else
c6b750e1
DJ
10445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10446for as_dir in $PATH
10447do
10448 IFS=$as_save_IFS
10449 test -z "$as_dir" && as_dir=.
10450 for ac_exec_ext in '' $ac_executable_extensions; do
10451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10452 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10454 break 2
10455 fi
10456done
10457done
10458
7e0f7140
GK
10459fi
10460fi
c6b750e1 10461STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10462if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10463 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10464echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10465else
c6b750e1
DJ
10466 echo "$as_me:$LINENO: result: no" >&5
10467echo "${ECHO_T}no" >&6
7e0f7140 10468fi
c6b750e1 10469
2429c060
PB
10470 fi
10471 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10472 done
10473fi
c6b750e1 10474
7e0f7140
GK
10475if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10476 set dummy strip
10477 if test $build = $target ; then
10478 STRIP_FOR_TARGET="$2"
10479 else
10480 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10481 fi
10482fi
10483
3a35eeb3
PB
10484else
10485 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10486fi
10487
10488
10489
10490
10491if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10492 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10493 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10494echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10495 if test -x $with_build_time_tools/windres; then
10496 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10497 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10498 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10499echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10500 else
c6b750e1
DJ
10501 echo "$as_me:$LINENO: result: no" >&5
10502echo "${ECHO_T}no" >&6
3a35eeb3 10503 fi
2429c060
PB
10504 elif test $build != $host && test $have_gcc_for_target = yes; then
10505 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
10506 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
10507 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10508 fi
10509fi
c6b750e1 10510if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10511 # Extract the first word of "windres", so it can be a program name with args.
10512set dummy windres; ac_word=$2
c6b750e1
DJ
10513echo "$as_me:$LINENO: checking for $ac_word" >&5
10514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10515if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10517else
c6b750e1
DJ
10518 case $WINDRES_FOR_TARGET in
10519 [\\/]* | ?:[\\/]*)
2429c060
PB
10520 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10521 ;;
2429c060 10522 *)
c6b750e1
DJ
10523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10524for as_dir in $gcc_cv_tool_dirs
10525do
10526 IFS=$as_save_IFS
10527 test -z "$as_dir" && as_dir=.
10528 for ac_exec_ext in '' $ac_executable_extensions; do
10529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10530 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10532 break 2
10533 fi
10534done
10535done
10536
2429c060
PB
10537 ;;
10538esac
10539fi
c6b750e1
DJ
10540WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10541
2429c060 10542if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10543 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10544echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10545else
c6b750e1
DJ
10546 echo "$as_me:$LINENO: result: no" >&5
10547echo "${ECHO_T}no" >&6
2429c060
PB
10548fi
10549
10550fi
10551if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10552
10553
10554if test -n "$WINDRES_FOR_TARGET"; then
10555 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10556elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10557 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10558fi
10559
10560if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10561 for ncn_progname in windres; do
10562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10563set dummy ${ncn_progname}; ac_word=$2
10564echo "$as_me:$LINENO: checking for $ac_word" >&5
10565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10566if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10568else
10569 if test -n "$WINDRES_FOR_TARGET"; then
10570 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10571else
10572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10573for as_dir in $PATH
10574do
10575 IFS=$as_save_IFS
10576 test -z "$as_dir" && as_dir=.
10577 for ac_exec_ext in '' $ac_executable_extensions; do
10578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10579 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10581 break 2
10582 fi
10583done
10584done
10585
10586fi
10587fi
10588WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10589if test -n "$WINDRES_FOR_TARGET"; then
10590 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10591echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10592else
10593 echo "$as_me:$LINENO: result: no" >&5
10594echo "${ECHO_T}no" >&6
10595fi
10596
10597 done
10598fi
10599
10600if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10601 for ncn_progname in windres; do
c6b750e1
DJ
10602 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10603echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10604 if test -x $with_build_time_tools/${ncn_progname}; then
10605 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10606 echo "$as_me:$LINENO: result: yes" >&5
10607echo "${ECHO_T}yes" >&6
2429c060
PB
10608 break
10609 else
c6b750e1
DJ
10610 echo "$as_me:$LINENO: result: no" >&5
10611echo "${ECHO_T}no" >&6
2429c060
PB
10612 fi
10613 done
10614fi
10615
10616if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10617 for ncn_progname in windres; do
10618 if test -n "$ncn_target_tool_prefix"; then
10619 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10620set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10621echo "$as_me:$LINENO: checking for $ac_word" >&5
10622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10623if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10625else
55db4b87
PB
10626 if test -n "$WINDRES_FOR_TARGET"; then
10627 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10628else
c6b750e1
DJ
10629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10630for as_dir in $PATH
10631do
10632 IFS=$as_save_IFS
10633 test -z "$as_dir" && as_dir=.
10634 for ac_exec_ext in '' $ac_executable_extensions; do
10635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10636 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10638 break 2
10639 fi
10640done
10641done
10642
859789af
AC
10643fi
10644fi
c6b750e1 10645WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 10646if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10647 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10648echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10649else
c6b750e1
DJ
10650 echo "$as_me:$LINENO: result: no" >&5
10651echo "${ECHO_T}no" >&6
859789af
AC
10652fi
10653
2429c060
PB
10654 fi
10655 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10657set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10658echo "$as_me:$LINENO: checking for $ac_word" >&5
10659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10660if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10662else
05cbd757
PB
10663 if test -n "$WINDRES_FOR_TARGET"; then
10664 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10665else
c6b750e1
DJ
10666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10667for as_dir in $PATH
10668do
10669 IFS=$as_save_IFS
10670 test -z "$as_dir" && as_dir=.
10671 for ac_exec_ext in '' $ac_executable_extensions; do
10672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10673 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10675 break 2
10676 fi
10677done
10678done
10679
859789af
AC
10680fi
10681fi
c6b750e1 10682WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 10683if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10684 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10685echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10686else
c6b750e1
DJ
10687 echo "$as_me:$LINENO: result: no" >&5
10688echo "${ECHO_T}no" >&6
859789af 10689fi
c6b750e1 10690
2429c060
PB
10691 fi
10692 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10693 done
10694fi
c6b750e1 10695
05cbd757
PB
10696if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10697 set dummy windres
10698 if test $build = $target ; then
10699 WINDRES_FOR_TARGET="$2"
859789af 10700 else
05cbd757 10701 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10702 fi
859789af
AC
10703fi
10704
3a35eeb3
PB
10705else
10706 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
10707fi
10708
852e5f18 10709
be01d343
PB
10710RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
10711
c6b750e1
DJ
10712echo "$as_me:$LINENO: checking where to find the target ar" >&5
10713echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 10714if test "x${build}" != "x${host}" ; then
2429c060
PB
10715 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
10716 # We already found the complete path
c6b750e1
DJ
10717 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
10718echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
2429c060
PB
10719 else
10720 # Canadian cross, just use what we found
c6b750e1
DJ
10721 echo "$as_me:$LINENO: result: pre-installed" >&5
10722echo "${ECHO_T}pre-installed" >&6
2429c060 10723 fi
be01d343
PB
10724else
10725 ok=yes
10726 case " ${configdirs} " in
10727 *" binutils "*) ;;
10728 *) ok=no ;;
10729 esac
c6b750e1 10730
be01d343
PB
10731 if test $ok = yes; then
10732 # An in-tree tool is available and we can use it
10733 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
10734 echo "$as_me:$LINENO: result: just compiled" >&5
10735echo "${ECHO_T}just compiled" >&6
2429c060
PB
10736 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
10737 # We already found the complete path
c6b750e1
DJ
10738 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
10739echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
be01d343
PB
10740 elif test "x$target" = "x$host"; then
10741 # We can use an host tool
10742 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
10743 echo "$as_me:$LINENO: result: host tool" >&5
10744echo "${ECHO_T}host tool" >&6
be01d343
PB
10745 else
10746 # We need a cross tool
c6b750e1
DJ
10747 echo "$as_me:$LINENO: result: pre-installed" >&5
10748echo "${ECHO_T}pre-installed" >&6
be01d343
PB
10749 fi
10750fi
4b900473 10751
c6b750e1
DJ
10752echo "$as_me:$LINENO: checking where to find the target as" >&5
10753echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 10754if test "x${build}" != "x${host}" ; then
2429c060
PB
10755 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
10756 # We already found the complete path
c6b750e1
DJ
10757 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
10758echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
2429c060
PB
10759 else
10760 # Canadian cross, just use what we found
c6b750e1
DJ
10761 echo "$as_me:$LINENO: result: pre-installed" >&5
10762echo "${ECHO_T}pre-installed" >&6
2429c060 10763 fi
be01d343
PB
10764else
10765 ok=yes
10766 case " ${configdirs} " in
10767 *" gas "*) ;;
10768 *) ok=no ;;
10769 esac
c6b750e1 10770
be01d343
PB
10771 if test $ok = yes; then
10772 # An in-tree tool is available and we can use it
10773 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
10774 echo "$as_me:$LINENO: result: just compiled" >&5
10775echo "${ECHO_T}just compiled" >&6
2429c060
PB
10776 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
10777 # We already found the complete path
c6b750e1
DJ
10778 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
10779echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
be01d343
PB
10780 elif test "x$target" = "x$host"; then
10781 # We can use an host tool
10782 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
10783 echo "$as_me:$LINENO: result: host tool" >&5
10784echo "${ECHO_T}host tool" >&6
be01d343
PB
10785 else
10786 # We need a cross tool
c6b750e1
DJ
10787 echo "$as_me:$LINENO: result: pre-installed" >&5
10788echo "${ECHO_T}pre-installed" >&6
be01d343
PB
10789 fi
10790fi
4b900473 10791
c6b750e1
DJ
10792echo "$as_me:$LINENO: checking where to find the target cc" >&5
10793echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 10794if test "x${build}" != "x${host}" ; then
2429c060
PB
10795 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
10796 # We already found the complete path
c6b750e1
DJ
10797 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
10798echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
2429c060
PB
10799 else
10800 # Canadian cross, just use what we found
c6b750e1
DJ
10801 echo "$as_me:$LINENO: result: pre-installed" >&5
10802echo "${ECHO_T}pre-installed" >&6
2429c060 10803 fi
be01d343
PB
10804else
10805 ok=yes
10806 case " ${configdirs} " in
10807 *" gcc "*) ;;
10808 *) ok=no ;;
10809 esac
c6b750e1 10810
be01d343
PB
10811 if test $ok = yes; then
10812 # An in-tree tool is available and we can use it
10813 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
10814 echo "$as_me:$LINENO: result: just compiled" >&5
10815echo "${ECHO_T}just compiled" >&6
2429c060
PB
10816 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
10817 # We already found the complete path
c6b750e1
DJ
10818 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
10819echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
be01d343
PB
10820 elif test "x$target" = "x$host"; then
10821 # We can use an host tool
10822 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
10823 echo "$as_me:$LINENO: result: host tool" >&5
10824echo "${ECHO_T}host tool" >&6
be01d343
PB
10825 else
10826 # We need a cross tool
c6b750e1
DJ
10827 echo "$as_me:$LINENO: result: pre-installed" >&5
10828echo "${ECHO_T}pre-installed" >&6
be01d343
PB
10829 fi
10830fi
4b900473 10831
c6b750e1
DJ
10832echo "$as_me:$LINENO: checking where to find the target c++" >&5
10833echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 10834if test "x${build}" != "x${host}" ; then
2429c060
PB
10835 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
10836 # We already found the complete path
c6b750e1
DJ
10837 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
10838echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
2429c060
PB
10839 else
10840 # Canadian cross, just use what we found
c6b750e1
DJ
10841 echo "$as_me:$LINENO: result: pre-installed" >&5
10842echo "${ECHO_T}pre-installed" >&6
2429c060 10843 fi
be01d343
PB
10844else
10845 ok=yes
10846 case " ${configdirs} " in
10847 *" gcc "*) ;;
10848 *) ok=no ;;
10849 esac
10850 case ,${enable_languages}, in
10851 *,c++,*) ;;
10852 *) ok=no ;;
10853 esac
10854 if test $ok = yes; then
10855 # An in-tree tool is available and we can use it
10856 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
10857 echo "$as_me:$LINENO: result: just compiled" >&5
10858echo "${ECHO_T}just compiled" >&6
2429c060
PB
10859 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
10860 # We already found the complete path
c6b750e1
DJ
10861 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
10862echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
be01d343
PB
10863 elif test "x$target" = "x$host"; then
10864 # We can use an host tool
10865 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
10866 echo "$as_me:$LINENO: result: host tool" >&5
10867echo "${ECHO_T}host tool" >&6
be01d343
PB
10868 else
10869 # We need a cross tool
c6b750e1
DJ
10870 echo "$as_me:$LINENO: result: pre-installed" >&5
10871echo "${ECHO_T}pre-installed" >&6
be01d343
PB
10872 fi
10873fi
4b900473 10874
c6b750e1
DJ
10875echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
10876echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 10877if test "x${build}" != "x${host}" ; then
2429c060
PB
10878 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
10879 # We already found the complete path
c6b750e1
DJ
10880 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
10881echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
2429c060
PB
10882 else
10883 # Canadian cross, just use what we found
c6b750e1
DJ
10884 echo "$as_me:$LINENO: result: pre-installed" >&5
10885echo "${ECHO_T}pre-installed" >&6
2429c060 10886 fi
be01d343
PB
10887else
10888 ok=yes
10889 case " ${configdirs} " in
10890 *" gcc "*) ;;
10891 *) ok=no ;;
10892 esac
10893 case ,${enable_languages}, in
10894 *,c++,*) ;;
10895 *) ok=no ;;
10896 esac
10897 if test $ok = yes; then
10898 # An in-tree tool is available and we can use it
10899 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
10900 echo "$as_me:$LINENO: result: just compiled" >&5
10901echo "${ECHO_T}just compiled" >&6
2429c060
PB
10902 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
10903 # We already found the complete path
c6b750e1
DJ
10904 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
10905echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
be01d343
PB
10906 elif test "x$target" = "x$host"; then
10907 # We can use an host tool
10908 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
10909 echo "$as_me:$LINENO: result: host tool" >&5
10910echo "${ECHO_T}host tool" >&6
be01d343
PB
10911 else
10912 # We need a cross tool
c6b750e1
DJ
10913 echo "$as_me:$LINENO: result: pre-installed" >&5
10914echo "${ECHO_T}pre-installed" >&6
be01d343
PB
10915 fi
10916fi
4b900473 10917
c6b750e1
DJ
10918echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
10919echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 10920if test "x${build}" != "x${host}" ; then
2429c060
PB
10921 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
10922 # We already found the complete path
c6b750e1
DJ
10923 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
10924echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
2429c060
PB
10925 else
10926 # Canadian cross, just use what we found
c6b750e1
DJ
10927 echo "$as_me:$LINENO: result: pre-installed" >&5
10928echo "${ECHO_T}pre-installed" >&6
2429c060 10929 fi
be01d343
PB
10930else
10931 ok=yes
10932 case " ${configdirs} " in
10933 *" binutils "*) ;;
10934 *) ok=no ;;
10935 esac
c6b750e1 10936
be01d343
PB
10937 if test $ok = yes; then
10938 # An in-tree tool is available and we can use it
10939 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
10940 echo "$as_me:$LINENO: result: just compiled" >&5
10941echo "${ECHO_T}just compiled" >&6
2429c060
PB
10942 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
10943 # We already found the complete path
c6b750e1
DJ
10944 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
10945echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
be01d343
PB
10946 elif test "x$target" = "x$host"; then
10947 # We can use an host tool
10948 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
10949 echo "$as_me:$LINENO: result: host tool" >&5
10950echo "${ECHO_T}host tool" >&6
be01d343
PB
10951 else
10952 # We need a cross tool
c6b750e1
DJ
10953 echo "$as_me:$LINENO: result: pre-installed" >&5
10954echo "${ECHO_T}pre-installed" >&6
be01d343
PB
10955 fi
10956fi
4b900473 10957
c6b750e1
DJ
10958echo "$as_me:$LINENO: checking where to find the target gcc" >&5
10959echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 10960if test "x${build}" != "x${host}" ; then
2429c060
PB
10961 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
10962 # We already found the complete path
c6b750e1
DJ
10963 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
10964echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
2429c060
PB
10965 else
10966 # Canadian cross, just use what we found
c6b750e1
DJ
10967 echo "$as_me:$LINENO: result: pre-installed" >&5
10968echo "${ECHO_T}pre-installed" >&6
2429c060 10969 fi
be01d343
PB
10970else
10971 ok=yes
10972 case " ${configdirs} " in
10973 *" gcc "*) ;;
10974 *) ok=no ;;
10975 esac
c6b750e1 10976
be01d343
PB
10977 if test $ok = yes; then
10978 # An in-tree tool is available and we can use it
10979 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
10980 echo "$as_me:$LINENO: result: just compiled" >&5
10981echo "${ECHO_T}just compiled" >&6
2429c060
PB
10982 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
10983 # We already found the complete path
c6b750e1
DJ
10984 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
10985echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
be01d343
PB
10986 elif test "x$target" = "x$host"; then
10987 # We can use an host tool
10988 GCC_FOR_TARGET='$()'
c6b750e1
DJ
10989 echo "$as_me:$LINENO: result: host tool" >&5
10990echo "${ECHO_T}host tool" >&6
be01d343
PB
10991 else
10992 # We need a cross tool
c6b750e1
DJ
10993 echo "$as_me:$LINENO: result: pre-installed" >&5
10994echo "${ECHO_T}pre-installed" >&6
be01d343
PB
10995 fi
10996fi
4b900473 10997
c6b750e1
DJ
10998echo "$as_me:$LINENO: checking where to find the target gcj" >&5
10999echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11000if test "x${build}" != "x${host}" ; then
2429c060
PB
11001 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11002 # We already found the complete path
c6b750e1
DJ
11003 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
11004echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
2429c060
PB
11005 else
11006 # Canadian cross, just use what we found
c6b750e1
DJ
11007 echo "$as_me:$LINENO: result: pre-installed" >&5
11008echo "${ECHO_T}pre-installed" >&6
2429c060 11009 fi
be01d343
PB
11010else
11011 ok=yes
11012 case " ${configdirs} " in
11013 *" gcc "*) ;;
11014 *) ok=no ;;
11015 esac
11016 case ,${enable_languages}, in
11017 *,java,*) ;;
11018 *) ok=no ;;
11019 esac
11020 if test $ok = yes; then
11021 # An in-tree tool is available and we can use it
11022 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11023 echo "$as_me:$LINENO: result: just compiled" >&5
11024echo "${ECHO_T}just compiled" >&6
2429c060
PB
11025 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11026 # We already found the complete path
c6b750e1
DJ
11027 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
11028echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
be01d343
PB
11029 elif test "x$target" = "x$host"; then
11030 # We can use an host tool
11031 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11032 echo "$as_me:$LINENO: result: host tool" >&5
11033echo "${ECHO_T}host tool" >&6
be01d343
PB
11034 else
11035 # We need a cross tool
c6b750e1
DJ
11036 echo "$as_me:$LINENO: result: pre-installed" >&5
11037echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11038 fi
11039fi
4b900473 11040
c6b750e1
DJ
11041echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11042echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11043if test "x${build}" != "x${host}" ; then
2429c060
PB
11044 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11045 # We already found the complete path
c6b750e1
DJ
11046 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
11047echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
2429c060
PB
11048 else
11049 # Canadian cross, just use what we found
c6b750e1
DJ
11050 echo "$as_me:$LINENO: result: pre-installed" >&5
11051echo "${ECHO_T}pre-installed" >&6
2429c060 11052 fi
be01d343
PB
11053else
11054 ok=yes
11055 case " ${configdirs} " in
11056 *" gcc "*) ;;
11057 *) ok=no ;;
11058 esac
11059 case ,${enable_languages}, in
11060 *,fortran,*) ;;
11061 *) ok=no ;;
11062 esac
11063 if test $ok = yes; then
11064 # An in-tree tool is available and we can use it
11065 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11066 echo "$as_me:$LINENO: result: just compiled" >&5
11067echo "${ECHO_T}just compiled" >&6
2429c060
PB
11068 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11069 # We already found the complete path
c6b750e1
DJ
11070 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
11071echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
be01d343
PB
11072 elif test "x$target" = "x$host"; then
11073 # We can use an host tool
11074 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11075 echo "$as_me:$LINENO: result: host tool" >&5
11076echo "${ECHO_T}host tool" >&6
be01d343
PB
11077 else
11078 # We need a cross tool
c6b750e1
DJ
11079 echo "$as_me:$LINENO: result: pre-installed" >&5
11080echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11081 fi
11082fi
4b900473 11083
c6b750e1
DJ
11084echo "$as_me:$LINENO: checking where to find the target ld" >&5
11085echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11086if test "x${build}" != "x${host}" ; then
2429c060
PB
11087 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11088 # We already found the complete path
c6b750e1
DJ
11089 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
11090echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
2429c060
PB
11091 else
11092 # Canadian cross, just use what we found
c6b750e1
DJ
11093 echo "$as_me:$LINENO: result: pre-installed" >&5
11094echo "${ECHO_T}pre-installed" >&6
2429c060 11095 fi
be01d343
PB
11096else
11097 ok=yes
11098 case " ${configdirs} " in
11099 *" ld "*) ;;
11100 *) ok=no ;;
11101 esac
c6b750e1 11102
be01d343
PB
11103 if test $ok = yes; then
11104 # An in-tree tool is available and we can use it
11105 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11106 echo "$as_me:$LINENO: result: just compiled" >&5
11107echo "${ECHO_T}just compiled" >&6
2429c060
PB
11108 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11109 # We already found the complete path
c6b750e1
DJ
11110 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
11111echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
be01d343
PB
11112 elif test "x$target" = "x$host"; then
11113 # We can use an host tool
11114 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11115 echo "$as_me:$LINENO: result: host tool" >&5
11116echo "${ECHO_T}host tool" >&6
be01d343
PB
11117 else
11118 # We need a cross tool
c6b750e1
DJ
11119 echo "$as_me:$LINENO: result: pre-installed" >&5
11120echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11121 fi
11122fi
4b900473 11123
c6b750e1
DJ
11124echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11125echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11126if test "x${build}" != "x${host}" ; then
2429c060
PB
11127 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11128 # We already found the complete path
c6b750e1
DJ
11129 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
11130echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
2429c060
PB
11131 else
11132 # Canadian cross, just use what we found
c6b750e1
DJ
11133 echo "$as_me:$LINENO: result: pre-installed" >&5
11134echo "${ECHO_T}pre-installed" >&6
2429c060 11135 fi
be01d343 11136else
2429c060
PB
11137 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11138 # We already found the complete path
c6b750e1
DJ
11139 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
11140echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
2429c060 11141 elif test "x$target" = "x$host"; then
be01d343
PB
11142 # We can use an host tool
11143 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11144 echo "$as_me:$LINENO: result: host tool" >&5
11145echo "${ECHO_T}host tool" >&6
be01d343
PB
11146 else
11147 # We need a cross tool
c6b750e1
DJ
11148 echo "$as_me:$LINENO: result: pre-installed" >&5
11149echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11150 fi
11151fi
4b900473 11152
c6b750e1
DJ
11153echo "$as_me:$LINENO: checking where to find the target nm" >&5
11154echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11155if test "x${build}" != "x${host}" ; then
2429c060
PB
11156 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11157 # We already found the complete path
c6b750e1
DJ
11158 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
11159echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
2429c060
PB
11160 else
11161 # Canadian cross, just use what we found
c6b750e1
DJ
11162 echo "$as_me:$LINENO: result: pre-installed" >&5
11163echo "${ECHO_T}pre-installed" >&6
2429c060 11164 fi
be01d343
PB
11165else
11166 ok=yes
11167 case " ${configdirs} " in
11168 *" binutils "*) ;;
11169 *) ok=no ;;
11170 esac
c6b750e1 11171
be01d343
PB
11172 if test $ok = yes; then
11173 # An in-tree tool is available and we can use it
11174 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11175 echo "$as_me:$LINENO: result: just compiled" >&5
11176echo "${ECHO_T}just compiled" >&6
2429c060
PB
11177 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11178 # We already found the complete path
c6b750e1
DJ
11179 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
11180echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
be01d343
PB
11181 elif test "x$target" = "x$host"; then
11182 # We can use an host tool
11183 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11184 echo "$as_me:$LINENO: result: host tool" >&5
11185echo "${ECHO_T}host tool" >&6
be01d343
PB
11186 else
11187 # We need a cross tool
c6b750e1
DJ
11188 echo "$as_me:$LINENO: result: pre-installed" >&5
11189echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11190 fi
11191fi
4b900473 11192
c6b750e1
DJ
11193echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11194echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11195if test "x${build}" != "x${host}" ; then
2429c060
PB
11196 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11197 # We already found the complete path
c6b750e1
DJ
11198 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
11199echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
2429c060
PB
11200 else
11201 # Canadian cross, just use what we found
c6b750e1
DJ
11202 echo "$as_me:$LINENO: result: pre-installed" >&5
11203echo "${ECHO_T}pre-installed" >&6
2429c060 11204 fi
be01d343
PB
11205else
11206 ok=yes
11207 case " ${configdirs} " in
11208 *" binutils "*) ;;
11209 *) ok=no ;;
11210 esac
c6b750e1 11211
be01d343
PB
11212 if test $ok = yes; then
11213 # An in-tree tool is available and we can use it
11214 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11215 echo "$as_me:$LINENO: result: just compiled" >&5
11216echo "${ECHO_T}just compiled" >&6
2429c060
PB
11217 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11218 # We already found the complete path
c6b750e1
DJ
11219 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
11220echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
be01d343
PB
11221 elif test "x$target" = "x$host"; then
11222 # We can use an host tool
11223 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11224 echo "$as_me:$LINENO: result: host tool" >&5
11225echo "${ECHO_T}host tool" >&6
be01d343
PB
11226 else
11227 # We need a cross tool
c6b750e1
DJ
11228 echo "$as_me:$LINENO: result: pre-installed" >&5
11229echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11230 fi
11231fi
4b900473 11232
c6b750e1
DJ
11233echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11234echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11235if test "x${build}" != "x${host}" ; then
2429c060
PB
11236 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11237 # We already found the complete path
c6b750e1
DJ
11238 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
11239echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
2429c060
PB
11240 else
11241 # Canadian cross, just use what we found
c6b750e1
DJ
11242 echo "$as_me:$LINENO: result: pre-installed" >&5
11243echo "${ECHO_T}pre-installed" >&6
2429c060 11244 fi
be01d343
PB
11245else
11246 ok=yes
11247 case " ${configdirs} " in
11248 *" binutils "*) ;;
11249 *) ok=no ;;
11250 esac
c6b750e1 11251
be01d343
PB
11252 if test $ok = yes; then
11253 # An in-tree tool is available and we can use it
11254 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11255 echo "$as_me:$LINENO: result: just compiled" >&5
11256echo "${ECHO_T}just compiled" >&6
2429c060
PB
11257 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11258 # We already found the complete path
c6b750e1
DJ
11259 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
11260echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
be01d343
PB
11261 elif test "x$target" = "x$host"; then
11262 # We can use an host tool
11263 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11264 echo "$as_me:$LINENO: result: host tool" >&5
11265echo "${ECHO_T}host tool" >&6
be01d343
PB
11266 else
11267 # We need a cross tool
c6b750e1
DJ
11268 echo "$as_me:$LINENO: result: pre-installed" >&5
11269echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11270 fi
11271fi
4b900473 11272
c6b750e1
DJ
11273echo "$as_me:$LINENO: checking where to find the target strip" >&5
11274echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11275if test "x${build}" != "x${host}" ; then
2429c060
PB
11276 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11277 # We already found the complete path
c6b750e1
DJ
11278 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
11279echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
2429c060
PB
11280 else
11281 # Canadian cross, just use what we found
c6b750e1
DJ
11282 echo "$as_me:$LINENO: result: pre-installed" >&5
11283echo "${ECHO_T}pre-installed" >&6
2429c060 11284 fi
be01d343
PB
11285else
11286 ok=yes
11287 case " ${configdirs} " in
11288 *" binutils "*) ;;
11289 *) ok=no ;;
11290 esac
c6b750e1 11291
be01d343
PB
11292 if test $ok = yes; then
11293 # An in-tree tool is available and we can use it
11294 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11295 echo "$as_me:$LINENO: result: just compiled" >&5
11296echo "${ECHO_T}just compiled" >&6
2429c060
PB
11297 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11298 # We already found the complete path
c6b750e1
DJ
11299 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
11300echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
be01d343
PB
11301 elif test "x$target" = "x$host"; then
11302 # We can use an host tool
11303 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11304 echo "$as_me:$LINENO: result: host tool" >&5
11305echo "${ECHO_T}host tool" >&6
be01d343
PB
11306 else
11307 # We need a cross tool
c6b750e1
DJ
11308 echo "$as_me:$LINENO: result: pre-installed" >&5
11309echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11310 fi
11311fi
4b900473 11312
c6b750e1
DJ
11313echo "$as_me:$LINENO: checking where to find the target windres" >&5
11314echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 11315if test "x${build}" != "x${host}" ; then
2429c060
PB
11316 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11317 # We already found the complete path
c6b750e1
DJ
11318 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
11319echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
2429c060
PB
11320 else
11321 # Canadian cross, just use what we found
c6b750e1
DJ
11322 echo "$as_me:$LINENO: result: pre-installed" >&5
11323echo "${ECHO_T}pre-installed" >&6
2429c060 11324 fi
be01d343
PB
11325else
11326 ok=yes
11327 case " ${configdirs} " in
11328 *" binutils "*) ;;
11329 *) ok=no ;;
11330 esac
c6b750e1 11331
be01d343
PB
11332 if test $ok = yes; then
11333 # An in-tree tool is available and we can use it
11334 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
11335 echo "$as_me:$LINENO: result: just compiled" >&5
11336echo "${ECHO_T}just compiled" >&6
2429c060
PB
11337 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11338 # We already found the complete path
c6b750e1
DJ
11339 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
11340echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
be01d343
PB
11341 elif test "x$target" = "x$host"; then
11342 # We can use an host tool
11343 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
11344 echo "$as_me:$LINENO: result: host tool" >&5
11345echo "${ECHO_T}host tool" >&6
be01d343
PB
11346 else
11347 # We need a cross tool
c6b750e1
DJ
11348 echo "$as_me:$LINENO: result: pre-installed" >&5
11349echo "${ECHO_T}pre-installed" >&6
be01d343 11350 fi
a0da8069 11351fi
54752a6b
NN
11352
11353
11354
be01d343 11355
4b900473 11356
a0da8069
NN
11357# Certain tools may need extra flags.
11358AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11359RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11360NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11361
be01d343
PB
11362# When building target libraries, except in a Canadian cross, we use
11363# the same toolchain as the compiler we just built.
11364COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11365COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11366COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11367if test $host = $build; then
11368 case " $configdirs " in
11369 *" gcc "*)
11370 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11371 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11372 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11373 ;;
11374 esac
11375fi
11376
11377
11378
11379
11380
c6b750e1
DJ
11381echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11382echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
11383# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11384if test "${enable_maintainer_mode+set}" = set; then
11385 enableval="$enable_maintainer_mode"
11386 USE_MAINTAINER_MODE=$enableval
11387else
11388 USE_MAINTAINER_MODE=no
c6b750e1
DJ
11389fi;
11390echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11391echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
11392
11393
11394if test "$USE_MAINTAINER_MODE" = yes; then
11395 MAINTAINER_MODE_TRUE=
11396 MAINTAINER_MODE_FALSE='#'
11397else
11398 MAINTAINER_MODE_TRUE='#'
11399 MAINTAINER_MODE_FALSE=
c6b750e1 11400fi
3d5e36ae
AO
11401MAINT=$MAINTAINER_MODE_TRUE
11402
1d39f329
NN
11403# ---------------------
11404# GCC bootstrap support
11405# ---------------------
11406
11407# Stage specific cflags for build.
11408stage1_cflags="-g"
11409case $build in
11410 vax-*-*)
11411 case ${GCC} in
11412 yes) stage1_cflags="-g -Wa,-J" ;;
11413 *) stage1_cflags="-g -J" ;;
11414 esac ;;
1d39f329
NN
11415esac
11416
1d89b610
PB
11417# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11418if test "$GCC" = yes; then
11419 saved_CFLAGS="$CFLAGS"
11420
11421 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11422 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
11423 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11424echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
11425 cat >conftest.$ac_ext <<_ACEOF
11426/* confdefs.h. */
11427_ACEOF
11428cat confdefs.h >>conftest.$ac_ext
11429cat >>conftest.$ac_ext <<_ACEOF
11430/* end confdefs.h. */
11431
11432int
11433main ()
11434{
11435
11436 ;
11437 return 0;
11438}
11439_ACEOF
11440rm -f conftest.$ac_objext
11441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11442 (eval $ac_compile) 2>conftest.er1
11443 ac_status=$?
11444 grep -v '^ *+' conftest.er1 >conftest.err
11445 rm -f conftest.er1
11446 cat conftest.err >&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } &&
11449 { ac_try='test -z "$ac_c_werror_flag"
11450 || test ! -s conftest.err'
11451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452 (eval $ac_try) 2>&5
11453 ac_status=$?
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; } &&
11456 { ac_try='test -s conftest.$ac_objext'
11457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458 (eval $ac_try) 2>&5
11459 ac_status=$?
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; }; then
11462 echo "$as_me:$LINENO: result: yes" >&5
11463echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
11464else
11465 echo "$as_me: failed program was:" >&5
11466sed 's/^/| /' conftest.$ac_ext >&5
11467
11468echo "$as_me:$LINENO: result: no" >&5
11469echo "${ECHO_T}no" >&6
11470fi
11471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
11472
11473 CFLAGS="$saved_CFLAGS"
11474fi
11475
11476
1d39f329 11477
8a0d8a5c
PB
11478# Enable --enable-checking in stage1 of the compiler.
11479# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
11480if test "${enable_stage1_checking+set}" = set; then
11481 enableval="$enable_stage1_checking"
11482 stage1_checking=--enable-checking=${enable_stage1_checking}
11483else
11484 if test "x$enable_checking" = xno; then
11485 stage1_checking=--enable-checking
11486else
11487 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
11488fi
c6b750e1 11489fi;
8a0d8a5c
PB
11490
11491
1d39f329 11492# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
11493# Check whether --enable-werror or --disable-werror was given.
11494if test "${enable_werror+set}" = set; then
11495 enableval="$enable_werror"
c6b750e1 11496
1d39f329 11497else
a0323144 11498 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 11499 enable_werror=yes
79fcd0ec
PB
11500else
11501 enable_werror=no
11502fi
c6b750e1 11503fi;
1a6f2dc7
NN
11504case ${enable_werror} in
11505 yes) stage2_werror_flag="--enable-werror-always" ;;
11506 *) stage2_werror_flag="" ;;
1d39f329
NN
11507esac
11508
11509
108a6f8e 11510# Flags needed to enable html installing and building
c6b750e1 11511
108a6f8e
CD
11512# Check whether --with-datarootdir or --without-datarootdir was given.
11513if test "${with_datarootdir+set}" = set; then
11514 withval="$with_datarootdir"
11515 datarootdir="\${prefix}/${withval}"
11516else
11517 datarootdir="\${prefix}/share"
c6b750e1 11518fi;
108a6f8e
CD
11519
11520
11521# Check whether --with-docdir or --without-docdir was given.
11522if test "${with_docdir+set}" = set; then
11523 withval="$with_docdir"
11524 docdir="\${prefix}/${withval}"
11525else
11526 docdir="\${datarootdir}/doc"
c6b750e1 11527fi;
108a6f8e
CD
11528
11529
11530# Check whether --with-htmldir or --without-htmldir was given.
11531if test "${with_htmldir+set}" = set; then
11532 withval="$with_htmldir"
11533 htmldir="\${prefix}/${withval}"
11534else
11535 htmldir="\${docdir}"
c6b750e1 11536fi;
108a6f8e
CD
11537
11538
11539
11540
11541
c6b750e1
DJ
11542 ac_config_files="$ac_config_files Makefile"
11543cat >confcache <<\_ACEOF
a0da8069
NN
11544# This file is a shell script that caches the results of configure
11545# tests run on this system so they can be shared between configure
c6b750e1
DJ
11546# scripts and configure runs, see configure's option --config-cache.
11547# It is not useful on other systems. If it contains results you don't
11548# want to keep, you may remove or edit it.
a0da8069 11549#
c6b750e1
DJ
11550# config.status only pays attention to the cache file if you give it
11551# the --recheck option to rerun configure.
a0da8069 11552#
c6b750e1
DJ
11553# `ac_cv_env_foo' variables (set or unset) will be overridden when
11554# loading this file, other *unset* `ac_cv_foo' will be assigned the
11555# following values.
11556
11557_ACEOF
11558
a0da8069
NN
11559# The following way of writing the cache mishandles newlines in values,
11560# but we know of no workaround that is simple, portable, and efficient.
11561# So, don't put newlines in cache variables' values.
11562# Ultrix sh set writes to stderr and can't be redirected directly,
11563# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
11564{
11565 (set) 2>&1 |
11566 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11567 *ac_space=\ *)
11568 # `set' does not quote correctly, so add quotes (double-quote
11569 # substitution turns \\\\ into \\, and sed turns \\ into \).
11570 sed -n \
11571 "s/'/'\\\\''/g;
11572 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11573 ;;
11574 *)
11575 # `set' quotes correctly as required by POSIX, so do not add quotes.
11576 sed -n \
11577 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11578 ;;
11579 esac;
11580} |
11581 sed '
11582 t clear
11583 : clear
11584 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11585 t end
11586 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11587 : end' >>confcache
11588if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 11589 if test -w $cache_file; then
c6b750e1
DJ
11590 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11591 cat confcache >$cache_file
a0da8069
NN
11592 else
11593 echo "not updating unwritable cache $cache_file"
11594 fi
852e5f18 11595fi
a0da8069 11596rm -f confcache
852e5f18 11597
a0da8069
NN
11598test "x$prefix" = xNONE && prefix=$ac_default_prefix
11599# Let make expand exec_prefix.
11600test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 11601
c6b750e1
DJ
11602# VPATH may cause trouble with some makes, so we remove $(srcdir),
11603# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11604# trailing colons and then remove the whole line if VPATH becomes empty
11605# (actually we leave an empty line to preserve line numbers).
a0da8069 11606if test "x$srcdir" = x.; then
c6b750e1
DJ
11607 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11608s/:*\$(srcdir):*/:/;
11609s/:*\${srcdir}:*/:/;
11610s/:*@srcdir@:*/:/;
11611s/^\([^=]*=[ ]*\):*/\1/;
11612s/:*$//;
11613s/^[^=]*=[ ]*$//;
11614}'
a0da8069 11615fi
252b5132 11616
a0da8069
NN
11617# Transform confdefs.h into DEFS.
11618# Protect against shell expansion while executing Makefile rules.
11619# Protect against Makefile macro expansion.
c6b750e1
DJ
11620#
11621# If the first sed substitution is executed (which looks for macros that
11622# take arguments), then we branch to the quote section. Otherwise,
11623# look for a macro that doesn't take arguments.
11624cat >confdef2opt.sed <<\_ACEOF
11625t clear
11626: clear
11627s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
11628t quote
11629s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
11630t quote
11631d
11632: quote
11633s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
11634s,\[,\\&,g
11635s,\],\\&,g
11636s,\$,$$,g
11637p
11638_ACEOF
11639# We use echo to avoid assuming a particular line-breaking character.
11640# The extra dot is to prevent the shell from consuming trailing
11641# line-breaks from the sub-command output. A line-break within
11642# single-quotes doesn't work because, if this script is created in a
11643# platform that uses two characters for line-breaks (e.g., DOS), tr
11644# would break.
11645ac_LF_and_DOT=`echo; echo .`
11646DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11647rm -f confdef2opt.sed
11648
11649
11650ac_libobjs=
11651ac_ltlibobjs=
11652for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11653 # 1. Remove the extension, and $U if already installed.
11654 ac_i=`echo "$ac_i" |
11655 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11656 # 2. Add them.
11657 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11658 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11659done
11660LIBOBJS=$ac_libobjs
852e5f18 11661
c6b750e1 11662LTLIBOBJS=$ac_ltlibobjs
376a0e54 11663
cac3d6c4 11664
c6b750e1
DJ
11665
11666: ${CONFIG_STATUS=./config.status}
11667ac_clean_files_save=$ac_clean_files
11668ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11669{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11670echo "$as_me: creating $CONFIG_STATUS" >&6;}
11671cat >$CONFIG_STATUS <<_ACEOF
11672#! $SHELL
11673# Generated by $as_me.
a0da8069 11674# Run this file to recreate the current configuration.
a0da8069 11675# Compiler output produced by configure, useful for debugging
c6b750e1 11676# configure, is in config.log if it exists.
376a0e54 11677
c6b750e1
DJ
11678debug=false
11679ac_cs_recheck=false
11680ac_cs_silent=false
11681SHELL=\${CONFIG_SHELL-$SHELL}
11682_ACEOF
11683
11684cat >>$CONFIG_STATUS <<\_ACEOF
11685## --------------------- ##
11686## M4sh Initialization. ##
11687## --------------------- ##
11688
11689# Be Bourne compatible
11690if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11691 emulate sh
11692 NULLCMD=:
11693 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11694 # is contrary to our usage. Disable this feature.
11695 alias -g '${1+"$@"}'='"$@"'
11696elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11697 set -o posix
11698fi
11699DUALCASE=1; export DUALCASE # for MKS sh
11700
11701# Support unset when possible.
11702if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11703 as_unset=unset
11704else
11705 as_unset=false
11706fi
11707
11708
11709# Work around bugs in pre-3.0 UWIN ksh.
11710$as_unset ENV MAIL MAILPATH
11711PS1='$ '
11712PS2='> '
11713PS4='+ '
11714
11715# NLS nuisances.
11716for as_var in \
11717 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11718 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11719 LC_TELEPHONE LC_TIME
11720do
11721 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11722 eval $as_var=C; export $as_var
11723 else
11724 $as_unset $as_var
11725 fi
11726done
11727
11728# Required to use basename.
11729if expr a : '\(a\)' >/dev/null 2>&1; then
11730 as_expr=expr
11731else
11732 as_expr=false
11733fi
11734
11735if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11736 as_basename=basename
11737else
11738 as_basename=false
11739fi
11740
11741
11742# Name of the executable.
11743as_me=`$as_basename "$0" ||
11744$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11745 X"$0" : 'X\(//\)$' \| \
11746 X"$0" : 'X\(/\)$' \| \
11747 . : '\(.\)' 2>/dev/null ||
11748echo X/"$0" |
11749 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11750 /^X\/\(\/\/\)$/{ s//\1/; q; }
11751 /^X\/\(\/\).*/{ s//\1/; q; }
11752 s/.*/./; q'`
11753
11754
11755# PATH needs CR, and LINENO needs CR and PATH.
11756# Avoid depending upon Character Ranges.
11757as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11758as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11759as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11760as_cr_digits='0123456789'
11761as_cr_alnum=$as_cr_Letters$as_cr_digits
11762
11763# The user is always right.
11764if test "${PATH_SEPARATOR+set}" != set; then
11765 echo "#! /bin/sh" >conf$$.sh
11766 echo "exit 0" >>conf$$.sh
11767 chmod +x conf$$.sh
11768 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11769 PATH_SEPARATOR=';'
11770 else
11771 PATH_SEPARATOR=:
11772 fi
11773 rm -f conf$$.sh
11774fi
11775
11776
11777 as_lineno_1=$LINENO
11778 as_lineno_2=$LINENO
11779 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11780 test "x$as_lineno_1" != "x$as_lineno_2" &&
11781 test "x$as_lineno_3" = "x$as_lineno_2" || {
11782 # Find who we are. Look in the path if we contain no path at all
11783 # relative or not.
11784 case $0 in
11785 *[\\/]* ) as_myself=$0 ;;
11786 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11787for as_dir in $PATH
11788do
11789 IFS=$as_save_IFS
11790 test -z "$as_dir" && as_dir=.
11791 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11792done
11793
11794 ;;
11795 esac
11796 # We did not find ourselves, most probably we were run as `sh COMMAND'
11797 # in which case we are not to be found in the path.
11798 if test "x$as_myself" = x; then
11799 as_myself=$0
11800 fi
11801 if test ! -f "$as_myself"; then
11802 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11803echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11804 { (exit 1); exit 1; }; }
11805 fi
11806 case $CONFIG_SHELL in
11807 '')
11808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11809for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11810do
11811 IFS=$as_save_IFS
11812 test -z "$as_dir" && as_dir=.
11813 for as_base in sh bash ksh sh5; do
11814 case $as_dir in
11815 /*)
11816 if ("$as_dir/$as_base" -c '
11817 as_lineno_1=$LINENO
11818 as_lineno_2=$LINENO
11819 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11820 test "x$as_lineno_1" != "x$as_lineno_2" &&
11821 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11822 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11823 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11824 CONFIG_SHELL=$as_dir/$as_base
11825 export CONFIG_SHELL
11826 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11827 fi;;
11828 esac
11829 done
11830done
11831;;
11832 esac
11833
11834 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11835 # uniformly replaced by the line number. The first 'sed' inserts a
11836 # line-number line before each line; the second 'sed' does the real
11837 # work. The second script uses 'N' to pair each line-number line
11838 # with the numbered line, and appends trailing '-' during
11839 # substitution so that $LINENO is not a special case at line end.
11840 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11841 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11842 sed '=' <$as_myself |
11843 sed '
11844 N
11845 s,$,-,
11846 : loop
11847 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11848 t loop
11849 s,-$,,
11850 s,^['$as_cr_digits']*\n,,
11851 ' >$as_me.lineno &&
11852 chmod +x $as_me.lineno ||
11853 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11854echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11855 { (exit 1); exit 1; }; }
11856
11857 # Don't try to exec as it changes $[0], causing all sort of problems
11858 # (the dirname of $[0] is not the place where we might find the
11859 # original and so on. Autoconf is especially sensible to this).
11860 . ./$as_me.lineno
11861 # Exit status is that of the last command.
11862 exit
11863}
11864
11865
11866case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11867 *c*,-n*) ECHO_N= ECHO_C='
11868' ECHO_T=' ' ;;
11869 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11870 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11871esac
11872
11873if expr a : '\(a\)' >/dev/null 2>&1; then
11874 as_expr=expr
11875else
11876 as_expr=false
11877fi
11878
11879rm -f conf$$ conf$$.exe conf$$.file
11880echo >conf$$.file
11881if ln -s conf$$.file conf$$ 2>/dev/null; then
11882 # We could just check for DJGPP; but this test a) works b) is more generic
11883 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11884 if test -f conf$$.exe; then
11885 # Don't use ln at all; we don't have any links
11886 as_ln_s='cp -p'
11887 else
11888 as_ln_s='ln -s'
11889 fi
11890elif ln conf$$.file conf$$ 2>/dev/null; then
11891 as_ln_s=ln
11892else
11893 as_ln_s='cp -p'
11894fi
11895rm -f conf$$ conf$$.exe conf$$.file
11896
11897if mkdir -p . 2>/dev/null; then
11898 as_mkdir_p=:
11899else
11900 test -d ./-p && rmdir ./-p
11901 as_mkdir_p=false
11902fi
11903
11904as_executable_p="test -f"
11905
11906# Sed expression to map a string onto a valid CPP name.
11907as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11908
11909# Sed expression to map a string onto a valid variable name.
11910as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11911
11912
11913# IFS
11914# We need space, tab and new line, in precisely that order.
11915as_nl='
11916'
11917IFS=" $as_nl"
11918
11919# CDPATH.
11920$as_unset CDPATH
11921
11922exec 6>&1
11923
11924# Open the log real soon, to keep \$[0] and so on meaningful, and to
11925# report actual input values of CONFIG_FILES etc. instead of their
11926# values after options handling. Logging --version etc. is OK.
11927exec 5>>config.log
11928{
11929 echo
11930 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11931## Running $as_me. ##
11932_ASBOX
11933} >&5
11934cat >&5 <<_CSEOF
11935
11936This file was extended by $as_me, which was
11937generated by GNU Autoconf 2.59. Invocation command line was
11938
11939 CONFIG_FILES = $CONFIG_FILES
11940 CONFIG_HEADERS = $CONFIG_HEADERS
11941 CONFIG_LINKS = $CONFIG_LINKS
11942 CONFIG_COMMANDS = $CONFIG_COMMANDS
11943 $ $0 $@
11944
11945_CSEOF
11946echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11947echo >&5
11948_ACEOF
11949
11950# Files that config.status was made for.
11951if test -n "$ac_config_files"; then
11952 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11953fi
11954
11955if test -n "$ac_config_headers"; then
11956 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11957fi
11958
11959if test -n "$ac_config_links"; then
11960 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11961fi
11962
11963if test -n "$ac_config_commands"; then
11964 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11965fi
11966
11967cat >>$CONFIG_STATUS <<\_ACEOF
11968
11969ac_cs_usage="\
11970\`$as_me' instantiates files from templates according to the
11971current configuration.
11972
11973Usage: $0 [OPTIONS] [FILE]...
11974
11975 -h, --help print this help, then exit
11976 -V, --version print version number, then exit
11977 -q, --quiet do not print progress messages
11978 -d, --debug don't remove temporary files
11979 --recheck update $as_me by reconfiguring in the same conditions
11980 --file=FILE[:TEMPLATE]
11981 instantiate the configuration file FILE
11982
11983Configuration files:
11984$config_files
11985
11986Report bugs to <bug-autoconf@gnu.org>."
11987_ACEOF
11988
11989cat >>$CONFIG_STATUS <<_ACEOF
11990ac_cs_version="\\
11991config.status
11992configured by $0, generated by GNU Autoconf 2.59,
11993 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11994
11995Copyright (C) 2003 Free Software Foundation, Inc.
11996This config.status script is free software; the Free Software Foundation
11997gives unlimited permission to copy, distribute and modify it."
11998srcdir=$srcdir
11999INSTALL="$INSTALL"
12000_ACEOF
12001
12002cat >>$CONFIG_STATUS <<\_ACEOF
12003# If no file are specified by the user, then we need to provide default
12004# value. By we need to know if files were specified by the user.
12005ac_need_defaults=:
12006while test $# != 0
a0da8069 12007do
c6b750e1
DJ
12008 case $1 in
12009 --*=*)
12010 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12011 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12012 ac_shift=:
12013 ;;
12014 -*)
12015 ac_option=$1
12016 ac_optarg=$2
12017 ac_shift=shift
12018 ;;
12019 *) # This is not an option, so the user has probably given explicit
12020 # arguments.
12021 ac_option=$1
12022 ac_need_defaults=false;;
12023 esac
12024
12025 case $ac_option in
12026 # Handling of the options.
12027_ACEOF
12028cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12029 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12030 ac_cs_recheck=: ;;
12031 --version | --vers* | -V )
12032 echo "$ac_cs_version"; exit 0 ;;
12033 --he | --h)
12034 # Conflict between --help and --header
12035 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12036Try \`$0 --help' for more information." >&5
12037echo "$as_me: error: ambiguous option: $1
12038Try \`$0 --help' for more information." >&2;}
12039 { (exit 1); exit 1; }; };;
12040 --help | --hel | -h )
12041 echo "$ac_cs_usage"; exit 0 ;;
12042 --debug | --d* | -d )
12043 debug=: ;;
12044 --file | --fil | --fi | --f )
12045 $ac_shift
12046 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12047 ac_need_defaults=false;;
12048 --header | --heade | --head | --hea )
12049 $ac_shift
12050 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12051 ac_need_defaults=false;;
12052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12053 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12054 ac_cs_silent=: ;;
12055
12056 # This is an error.
12057 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12058Try \`$0 --help' for more information." >&5
12059echo "$as_me: error: unrecognized option: $1
12060Try \`$0 --help' for more information." >&2;}
12061 { (exit 1); exit 1; }; } ;;
12062
12063 *) ac_config_targets="$ac_config_targets $1" ;;
12064
376a0e54 12065 esac
c6b750e1 12066 shift
376a0e54
CM
12067done
12068
c6b750e1 12069ac_configure_extra_args=
376a0e54 12070
c6b750e1
DJ
12071if $ac_cs_silent; then
12072 exec 6>/dev/null
12073 ac_configure_extra_args="$ac_configure_extra_args --silent"
12074fi
376a0e54 12075
c6b750e1
DJ
12076_ACEOF
12077cat >>$CONFIG_STATUS <<_ACEOF
12078if \$ac_cs_recheck; then
12079 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12080 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12081fi
12082
12083_ACEOF
12084
12085
12086
12087
12088
12089cat >>$CONFIG_STATUS <<\_ACEOF
12090for ac_config_target in $ac_config_targets
12091do
12092 case "$ac_config_target" in
12093 # Handling of arguments.
12094 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12095 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12096echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12097 { (exit 1); exit 1; }; };;
12098 esac
12099done
12100
12101# If the user did not use the arguments to specify the items to instantiate,
12102# then the envvar interface is used. Set only those that are not.
12103# We use the long form for the default assignment because of an extremely
12104# bizarre bug on SunOS 4.1.3.
12105if $ac_need_defaults; then
12106 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12107fi
12108
12109# Have a temporary directory for convenience. Make it in the build tree
12110# simply because there is no reason to put it here, and in addition,
12111# creating and moving files from /tmp can sometimes cause problems.
12112# Create a temporary directory, and hook for its removal unless debugging.
12113$debug ||
12114{
12115 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12116 trap '{ (exit 1); exit 1; }' 1 2 13 15
12117}
12118
12119# Create a (secure) tmp directory for tmp files.
12120
12121{
12122 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12123 test -n "$tmp" && test -d "$tmp"
12124} ||
12125{
12126 tmp=./confstat$$-$RANDOM
12127 (umask 077 && mkdir $tmp)
12128} ||
12129{
12130 echo "$me: cannot create a temporary directory in ." >&2
12131 { (exit 1); exit 1; }
12132}
12133
12134_ACEOF
12135
12136cat >>$CONFIG_STATUS <<_ACEOF
12137
12138#
12139# CONFIG_FILES section.
12140#
12141
12142# No need to generate the scripts if there are no CONFIG_FILES.
12143# This happens for instance when ./config.status config.h
12144if test -n "\$CONFIG_FILES"; then
12145 # Protect against being on the right side of a sed subst in config.status.
12146 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12147 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12148s,@SHELL@,$SHELL,;t t
12149s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12150s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12151s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12152s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12153s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12154s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12155s,@exec_prefix@,$exec_prefix,;t t
12156s,@prefix@,$prefix,;t t
12157s,@program_transform_name@,$program_transform_name,;t t
12158s,@bindir@,$bindir,;t t
12159s,@sbindir@,$sbindir,;t t
12160s,@libexecdir@,$libexecdir,;t t
12161s,@datadir@,$datadir,;t t
12162s,@sysconfdir@,$sysconfdir,;t t
12163s,@sharedstatedir@,$sharedstatedir,;t t
12164s,@localstatedir@,$localstatedir,;t t
12165s,@libdir@,$libdir,;t t
12166s,@includedir@,$includedir,;t t
12167s,@oldincludedir@,$oldincludedir,;t t
12168s,@infodir@,$infodir,;t t
12169s,@mandir@,$mandir,;t t
12170s,@build_alias@,$build_alias,;t t
12171s,@host_alias@,$host_alias,;t t
12172s,@target_alias@,$target_alias,;t t
12173s,@DEFS@,$DEFS,;t t
12174s,@ECHO_C@,$ECHO_C,;t t
12175s,@ECHO_N@,$ECHO_N,;t t
12176s,@ECHO_T@,$ECHO_T,;t t
12177s,@LIBS@,$LIBS,;t t
12178s,@build@,$build,;t t
12179s,@build_cpu@,$build_cpu,;t t
12180s,@build_vendor@,$build_vendor,;t t
12181s,@build_os@,$build_os,;t t
12182s,@build_noncanonical@,$build_noncanonical,;t t
12183s,@host_noncanonical@,$host_noncanonical,;t t
12184s,@target_noncanonical@,$target_noncanonical,;t t
12185s,@host@,$host,;t t
12186s,@host_cpu@,$host_cpu,;t t
12187s,@host_vendor@,$host_vendor,;t t
12188s,@host_os@,$host_os,;t t
12189s,@target@,$target,;t t
12190s,@target_cpu@,$target_cpu,;t t
12191s,@target_vendor@,$target_vendor,;t t
12192s,@target_os@,$target_os,;t t
12193s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12194s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12195s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12196s,@LN@,$LN,;t t
12197s,@LN_S@,$LN_S,;t t
12198s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12199s,@build_libsubdir@,$build_libsubdir,;t t
12200s,@build_subdir@,$build_subdir,;t t
12201s,@host_subdir@,$host_subdir,;t t
12202s,@target_subdir@,$target_subdir,;t t
12203s,@CC@,$CC,;t t
12204s,@CFLAGS@,$CFLAGS,;t t
12205s,@LDFLAGS@,$LDFLAGS,;t t
12206s,@CPPFLAGS@,$CPPFLAGS,;t t
12207s,@ac_ct_CC@,$ac_ct_CC,;t t
12208s,@EXEEXT@,$EXEEXT,;t t
12209s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12210s,@CXX@,$CXX,;t t
12211s,@CXXFLAGS@,$CXXFLAGS,;t t
12212s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12213s,@GNATBIND@,$GNATBIND,;t t
12214s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12215s,@GNATMAKE@,$GNATMAKE,;t t
12216s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12217s,@do_compare@,$do_compare,;t t
12218s,@gmplibs@,$gmplibs,;t t
12219s,@gmpinc@,$gmpinc,;t t
12220s,@stage1_languages@,$stage1_languages,;t t
12221s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
12222s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12223s,@tooldir@,$tooldir,;t t
12224s,@build_tooldir@,$build_tooldir,;t t
12225s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12226s,@GDB_TK@,$GDB_TK,;t t
12227s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12228s,@build_configargs@,$build_configargs,;t t
12229s,@build_configdirs@,$build_configdirs,;t t
12230s,@host_configargs@,$host_configargs,;t t
12231s,@configdirs@,$configdirs,;t t
12232s,@target_configargs@,$target_configargs,;t t
12233s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12234s,@config_shell@,$config_shell,;t t
12235s,@YACC@,$YACC,;t t
12236s,@BISON@,$BISON,;t t
12237s,@M4@,$M4,;t t
12238s,@LEX@,$LEX,;t t
12239s,@FLEX@,$FLEX,;t t
12240s,@MAKEINFO@,$MAKEINFO,;t t
12241s,@EXPECT@,$EXPECT,;t t
12242s,@RUNTEST@,$RUNTEST,;t t
12243s,@AR@,$AR,;t t
12244s,@AS@,$AS,;t t
12245s,@DLLTOOL@,$DLLTOOL,;t t
12246s,@LD@,$LD,;t t
12247s,@LIPO@,$LIPO,;t t
12248s,@NM@,$NM,;t t
12249s,@RANLIB@,$RANLIB,;t t
12250s,@STRIP@,$STRIP,;t t
12251s,@WINDRES@,$WINDRES,;t t
12252s,@OBJCOPY@,$OBJCOPY,;t t
12253s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1 12254s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
c6b750e1
DJ
12255s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12256s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12257s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12258s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12259s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12260s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12261s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12262s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12263s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12264s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12265s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12266s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12267s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12268s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12269s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
12270s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12271s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12272s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12273s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12274s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12275s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12276s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12277s,@MAINT@,$MAINT,;t t
12278s,@stage1_cflags@,$stage1_cflags,;t t
12279s,@stage1_checking@,$stage1_checking,;t t
12280s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12281s,@datarootdir@,$datarootdir,;t t
12282s,@docdir@,$docdir,;t t
12283s,@htmldir@,$htmldir,;t t
12284s,@LIBOBJS@,$LIBOBJS,;t t
12285s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 12286/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 12287s,@serialization_dependencies@,,;t t
a0da8069 12288/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 12289s,@host_makefile_frag@,,;t t
a0da8069 12290/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 12291s,@target_makefile_frag@,,;t t
a0da8069 12292/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 12293s,@alphaieee_frag@,,;t t
a0da8069 12294/@ospace_frag@/r $ospace_frag
c6b750e1 12295s,@ospace_frag@,,;t t
a0da8069 12296CEOF
252b5132 12297
c6b750e1
DJ
12298_ACEOF
12299
12300 cat >>$CONFIG_STATUS <<\_ACEOF
12301 # Split the substitutions into bite-sized pieces for seds with
12302 # small command number limits, like on Digital OSF/1 and HP-UX.
12303 ac_max_sed_lines=48
12304 ac_sed_frag=1 # Number of current file.
12305 ac_beg=1 # First line for current file.
12306 ac_end=$ac_max_sed_lines # Line after last line for current file.
12307 ac_more_lines=:
12308 ac_sed_cmds=
12309 while $ac_more_lines; do
12310 if test $ac_beg -gt 1; then
12311 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12312 else
12313 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12314 fi
12315 if test ! -s $tmp/subs.frag; then
12316 ac_more_lines=false
a0da8069 12317 else
c6b750e1
DJ
12318 # The purpose of the label and of the branching condition is to
12319 # speed up the sed processing (if there are no `@' at all, there
12320 # is no need to browse any of the substitutions).
12321 # These are the two extra sed commands mentioned above.
12322 (echo ':t
12323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12324 if test -z "$ac_sed_cmds"; then
12325 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12326 else
12327 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12328 fi
12329 ac_sed_frag=`expr $ac_sed_frag + 1`
12330 ac_beg=$ac_end
12331 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 12332 fi
c6b750e1
DJ
12333 done
12334 if test -z "$ac_sed_cmds"; then
12335 ac_sed_cmds=cat
852e5f18 12336 fi
c6b750e1 12337fi # test -n "$CONFIG_FILES"
cac3d6c4 12338
c6b750e1
DJ
12339_ACEOF
12340cat >>$CONFIG_STATUS <<\_ACEOF
12341for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 12342 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
12343 case $ac_file in
12344 - | *:- | *:-:* ) # input from stdin
12345 cat >$tmp/stdin
12346 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12347 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12348 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12349 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12350 * ) ac_file_in=$ac_file.in ;;
a0da8069 12351 esac
252b5132 12352
c6b750e1
DJ
12353 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12354 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12355$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12356 X"$ac_file" : 'X\(//\)[^/]' \| \
12357 X"$ac_file" : 'X\(//\)$' \| \
12358 X"$ac_file" : 'X\(/\)' \| \
12359 . : '\(.\)' 2>/dev/null ||
12360echo X"$ac_file" |
12361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12363 /^X\(\/\/\)$/{ s//\1/; q; }
12364 /^X\(\/\).*/{ s//\1/; q; }
12365 s/.*/./; q'`
12366 { if $as_mkdir_p; then
12367 mkdir -p "$ac_dir"
cac3d6c4 12368 else
c6b750e1
DJ
12369 as_dir="$ac_dir"
12370 as_dirs=
12371 while test ! -d "$as_dir"; do
12372 as_dirs="$as_dir $as_dirs"
12373 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12374$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12375 X"$as_dir" : 'X\(//\)[^/]' \| \
12376 X"$as_dir" : 'X\(//\)$' \| \
12377 X"$as_dir" : 'X\(/\)' \| \
12378 . : '\(.\)' 2>/dev/null ||
12379echo X"$as_dir" |
12380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12381 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12382 /^X\(\/\/\)$/{ s//\1/; q; }
12383 /^X\(\/\).*/{ s//\1/; q; }
12384 s/.*/./; q'`
12385 done
12386 test ! -n "$as_dirs" || mkdir $as_dirs
12387 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12388echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12389 { (exit 1); exit 1; }; }; }
12390
12391 ac_builddir=.
252b5132 12392
c6b750e1
DJ
12393if test "$ac_dir" != .; then
12394 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12395 # A "../" for each directory in $ac_dir_suffix.
12396 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12397else
12398 ac_dir_suffix= ac_top_builddir=
12399fi
12400
12401case $srcdir in
12402 .) # No --srcdir option. We are building in place.
12403 ac_srcdir=.
12404 if test -z "$ac_top_builddir"; then
12405 ac_top_srcdir=.
12406 else
12407 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12408 fi ;;
12409 [\\/]* | ?:[\\/]* ) # Absolute path.
12410 ac_srcdir=$srcdir$ac_dir_suffix;
12411 ac_top_srcdir=$srcdir ;;
a0da8069 12412 *) # Relative path.
c6b750e1
DJ
12413 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12414 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12415esac
252b5132 12416
c6b750e1
DJ
12417# Do not use `cd foo && pwd` to compute absolute paths, because
12418# the directories may not exist.
12419case `pwd` in
12420.) ac_abs_builddir="$ac_dir";;
12421*)
12422 case "$ac_dir" in
12423 .) ac_abs_builddir=`pwd`;;
12424 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12425 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12426 esac;;
12427esac
12428case $ac_abs_builddir in
12429.) ac_abs_top_builddir=${ac_top_builddir}.;;
12430*)
12431 case ${ac_top_builddir}. in
12432 .) ac_abs_top_builddir=$ac_abs_builddir;;
12433 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12434 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12435 esac;;
12436esac
12437case $ac_abs_builddir in
12438.) ac_abs_srcdir=$ac_srcdir;;
12439*)
12440 case $ac_srcdir in
12441 .) ac_abs_srcdir=$ac_abs_builddir;;
12442 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12443 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12444 esac;;
12445esac
12446case $ac_abs_builddir in
12447.) ac_abs_top_srcdir=$ac_top_srcdir;;
12448*)
12449 case $ac_top_srcdir in
12450 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12451 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12452 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12453 esac;;
12454esac
252b5132 12455
c6b750e1
DJ
12456
12457 case $INSTALL in
12458 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12459 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 12460 esac
252b5132 12461
c6b750e1
DJ
12462 if test x"$ac_file" != x-; then
12463 { echo "$as_me:$LINENO: creating $ac_file" >&5
12464echo "$as_me: creating $ac_file" >&6;}
12465 rm -f "$ac_file"
12466 fi
12467 # Let's still pretend it is `configure' which instantiates (i.e., don't
12468 # use $as_me), people would be surprised to read:
12469 # /* config.h. Generated by config.status. */
12470 if test x"$ac_file" = x-; then
12471 configure_input=
12472 else
12473 configure_input="$ac_file. "
12474 fi
12475 configure_input=$configure_input"Generated from `echo $ac_file_in |
12476 sed 's,.*/,,'` by configure."
12477
12478 # First look for the input files in the build tree, otherwise in the
12479 # src tree.
12480 ac_file_inputs=`IFS=:
12481 for f in $ac_file_in; do
12482 case $f in
12483 -) echo $tmp/stdin ;;
12484 [\\/$]*)
12485 # Absolute (can't be DOS-style, as IFS=:)
12486 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12487echo "$as_me: error: cannot find input file: $f" >&2;}
12488 { (exit 1); exit 1; }; }
12489 echo "$f";;
12490 *) # Relative
12491 if test -f "$f"; then
12492 # Build tree
12493 echo "$f"
12494 elif test -f "$srcdir/$f"; then
12495 # Source tree
12496 echo "$srcdir/$f"
12497 else
12498 # /dev/null tree
12499 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12500echo "$as_me: error: cannot find input file: $f" >&2;}
12501 { (exit 1); exit 1; }; }
12502 fi;;
12503 esac
12504 done` || { (exit 1); exit 1; }
12505_ACEOF
12506cat >>$CONFIG_STATUS <<_ACEOF
12507 sed "$ac_vpsub
12508$extrasub
12509_ACEOF
12510cat >>$CONFIG_STATUS <<\_ACEOF
12511:t
12512/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12513s,@configure_input@,$configure_input,;t t
12514s,@srcdir@,$ac_srcdir,;t t
12515s,@abs_srcdir@,$ac_abs_srcdir,;t t
12516s,@top_srcdir@,$ac_top_srcdir,;t t
12517s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12518s,@builddir@,$ac_builddir,;t t
12519s,@abs_builddir@,$ac_abs_builddir,;t t
12520s,@top_builddir@,$ac_top_builddir,;t t
12521s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12522s,@INSTALL@,$ac_INSTALL,;t t
12523" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12524 rm -f $tmp/stdin
12525 if test x"$ac_file" != x-; then
12526 mv $tmp/out $ac_file
12527 else
12528 cat $tmp/out
12529 rm -f $tmp/out
12530 fi
c148b4cb 12531
c6b750e1
DJ
12532done
12533_ACEOF
c148b4cb 12534
c6b750e1 12535cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 12536
c6b750e1
DJ
12537{ (exit 0); exit 0; }
12538_ACEOF
c148b4cb 12539chmod +x $CONFIG_STATUS
c6b750e1
DJ
12540ac_clean_files=$ac_clean_files_save
12541
12542
12543# configure is writing to config.log, and then calls config.status.
12544# config.status does its own redirection, appending to config.log.
12545# Unfortunately, on DOS this fails, as config.log is still kept open
12546# by configure, so config.status won't be able to write to it; its
12547# output is simply discarded. So we exec the FD to /dev/null,
12548# effectively closing config.log, so it can be properly (re)opened and
12549# appended to by config.status. When coming back to configure, we
12550# need to make the FD available again.
12551if test "$no_create" != yes; then
12552 ac_cs_success=:
12553 ac_config_status_args=
12554 test "$silent" = yes &&
12555 ac_config_status_args="$ac_config_status_args --quiet"
12556 exec 5>/dev/null
12557 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12558 exec 5>>config.log
12559 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12560 # would make configure fail if this is the last instruction.
12561 $ac_cs_success || { (exit 1); exit 1; }
12562fi
c148b4cb 12563