ChangeLog:
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
c6b750e1 3# Generated by GNU Autoconf 2.59.
a0da8069 4#
c6b750e1 5# Copyright (C) 2003 Free Software Foundation, Inc.
a0da8069
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
c6b750e1
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
a0da8069 243
c6b750e1
DJ
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
a0da8069 254ac_default_prefix=/usr/local
c6b750e1
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
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" "$@"
1767for ac_arg; do
1768 case "$ac_arg" in
1769 *" "*|*" "*|*\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?*)
1770 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1771 # if the argument is of the form -foo=baz, quote the baz part only
1772 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1773 *) ;;
1774 esac
1775 # Add the quoted argument to the list.
1776 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1777done
1778# Remove the initial space we just introduced and, as these will be
1779# expanded by make, quote '$'.
1780TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
586c0873 1781
75205f78 1782
a0da8069 1783moveifchange=${srcdir}/move-if-change
252b5132 1784
0fdbe983
DJ
1785srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1786
1787# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1788# a relative path.
1789if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1790 INSTALL="${srcpwd}/install-sh -c"
1791fi
1792
a0da8069
NN
1793# Set srcdir to "." if that's what it is.
1794# This is important for multilib support.
1795pwd=`${PWDCMD-pwd}`
a0da8069
NN
1796if test "${pwd}" = "${srcpwd}" ; then
1797 srcdir=.
252b5132
RH
1798fi
1799
a0da8069 1800topsrcdir=$srcpwd
252b5132 1801
a0da8069 1802extra_host_args=
afefada0 1803
a0da8069
NN
1804### To add a new directory to the tree, first choose whether it is a target
1805### or a host dependent tool. Then put it into the appropriate list
1806### (library or tools, host or target), doing a dependency sort.
252b5132 1807
c6b750e1 1808# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1809# configdirs, or target_configdirs; see the serialization section below.
252b5132 1810
c6b750e1
DJ
1811# Dependency sorting is only needed when *configuration* must be done in
1812# a particular order. In all cases a dependency should be specified in
a0da8069 1813# the Makefile, whether or not it's implicitly specified here.
252b5132 1814
a0da8069
NN
1815# Double entries in build_configdirs, configdirs, or target_configdirs may
1816# cause circular dependencies and break everything horribly.
252b5132 1817
6a9cf61e
PB
1818# these library is used by various programs built for the build
1819# environment
1820#
1821build_libs="build-libiberty"
1822
1823# these tools are built for the build environment
ee025550 1824build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1825
a0da8069
NN
1826# these libraries are used by various programs built for the host environment
1827#
4b900473 1828host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
a0da8069 1829
a0da8069
NN
1830# these tools are built for the host environment
1831# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1832# know that we are building the simulator.
1833# binutils, gas and ld appear in that order because it makes sense to run
1834# "make check" in that particular order.
b00612cc 1835host_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
1836
1837# libgcj represents the runtime libraries only used by gcj.
1838libgcj="target-libffi \
a0da8069
NN
1839 target-zlib \
1840 target-qthreads \
1841 target-libjava"
1842
1843# these libraries are built for the target environment, and are built after
1844# the host libraries and the host tools (which may be a cross compiler)
1845#
b1299c4e
DJ
1846target_libraries="target-libgcc \
1847 target-libiberty \
a0da8069
NN
1848 target-libgloss \
1849 target-newlib \
b9459e83 1850 target-libstdc++-v3 \
4b1cb4fe 1851 target-libmudflap \
bb780410 1852 target-libssp \
4b1cb4fe 1853 target-libgfortran \
4f0ef2d8 1854 target-boehm-gc \
83326456 1855 ${libgcj} \
a2592b1b 1856 target-libobjc \
b3ded179
PB
1857 target-libada \
1858 target-libgomp"
a0da8069 1859
9c14acb8
NN
1860# these tools are built using the target libraries, and are intended to
1861# run only in the target environment
a0da8069 1862#
9c14acb8 1863# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1864# list belongs in this list. those programs are also very likely
1865# candidates for the "native_only" list which follows
1866#
a3dd767d 1867target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1868
a0da8069 1869################################################################################
252b5132 1870
a0da8069
NN
1871## All tools belong in one of the four categories, and are assigned above
1872## We assign ${configdirs} this way to remove all embedded newlines. This
1873## is important because configure will choke if they ever get through.
1874## ${configdirs} is directories we build using the host tools.
1875## ${target_configdirs} is directories we build using the target tools.
a0da8069 1876configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1877target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1878build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1879
a0da8069 1880################################################################################
252b5132 1881
a0da8069 1882srcname="gnu development package"
252b5132 1883
a0da8069
NN
1884# This gets set non-empty for some net releases of packages.
1885appdirs=""
252b5132 1886
a0da8069
NN
1887# Define is_cross_compiler to save on calls to 'test'.
1888is_cross_compiler=
1889if test x"${host}" = x"${target}" ; then
1890 is_cross_compiler=no
252b5132 1891else
a0da8069 1892 is_cross_compiler=yes
c6b750e1 1893fi
252b5132 1894
9175bfc0 1895# Find the build and target subdir names.
dd12c3a8 1896
66a79c16
DJ
1897# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1898# have matching libraries, they should use host libraries: Makefile.tpl
1899# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1900# However, they still use the build modules, because the corresponding
1901# host modules (e.g. bison) are only built for the host when bootstrap
1902# finishes. So:
1903# - build_subdir is where we find build modules, and never changes.
1904# - build_libsubdir is where we find build libraries, and can be overridden.
1905
1906# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1907build_subdir="build-${build_noncanonical}"
c6b750e1 1908
66a79c16
DJ
1909# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1910if test "${with_build_libsubdir+set}" = set; then
1911 withval="$with_build_libsubdir"
1912 build_libsubdir="$withval"
1913else
1914 build_libsubdir="$build_subdir"
c6b750e1 1915fi;
b00612cc
PB
1916# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1917if ( test $srcdir = . && test -d gcc ) \
1918 || test -d $srcdir/../host-${host_noncanonical}; then
1919 host_subdir="host-${host_noncanonical}"
1920else
1921 host_subdir=.
1922fi
dd12c3a8
NN
1923# No prefix.
1924target_subdir=${target_noncanonical}
c6b750e1 1925
252b5132 1926
a0da8069
NN
1927# Skipdirs are removed silently.
1928skipdirs=
1929# Noconfigdirs are removed loudly.
1930noconfigdirs=""
252b5132 1931
a0da8069
NN
1932use_gnu_ld=
1933# Make sure we don't let GNU ld be added if we didn't want it.
1934if test x$with_gnu_ld = xno ; then
1935 use_gnu_ld=no
1936 noconfigdirs="$noconfigdirs ld"
252b5132
RH
1937fi
1938
a0da8069
NN
1939use_gnu_as=
1940# Make sure we don't let GNU as be added if we didn't want it.
1941if test x$with_gnu_as = xno ; then
1942 use_gnu_as=no
1943 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1944fi
1945
c6b750e1 1946# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1947# it's not even worth trying to configure, much less build, that tool.
252b5132 1948
a0da8069
NN
1949case ${with_x} in
1950 yes | "") ;; # the default value for this tree is that X11 is available
1951 no)
675c6968 1952 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 1953 # We won't be able to build gdbtk without X.
c6b750e1 1954 enable_gdbtk=no
a0da8069
NN
1955 ;;
1956 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1957esac
252b5132 1958
a0da8069 1959# Some tools are only suitable for building in a "native" situation.
c6b750e1 1960# Remove these if host!=target.
701628f5 1961native_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 1962
a0da8069
NN
1963# Similarly, some are only suitable for cross toolchains.
1964# Remove these if host=target.
1965cross_only="target-libgloss target-newlib target-opcodes"
1966
1967case $is_cross_compiler in
1968 no) skipdirs="${skipdirs} ${cross_only}" ;;
1969 yes) skipdirs="${skipdirs} ${native_only}" ;;
1970esac
252b5132 1971
a0da8069
NN
1972# If both --with-headers and --with-libs are specified, default to
1973# --without-newlib.
32be62b5
RS
1974if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1975 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
1976 if test x"${with_newlib}" = x ; then
1977 with_newlib=no
1978 fi
252b5132
RH
1979fi
1980
a0da8069
NN
1981# Recognize --with-newlib/--without-newlib.
1982case ${with_newlib} in
1983 no) skipdirs="${skipdirs} target-newlib" ;;
1984 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1985esac
252b5132 1986
a0da8069 1987# Configure extra directories which are host specific
252b5132 1988
a0da8069
NN
1989case "${host}" in
1990 *-cygwin*)
1991 configdirs="$configdirs libtermcap" ;;
1992esac
252b5132 1993
59f7ec45
HPN
1994# A target can indicate whether a language isn't supported for some reason.
1995# Only spaces may be used in this macro; not newlines or tabs.
1996unsupported_languages=
1997
c6b750e1 1998# Remove more programs from consideration, based on the host or
a0da8069
NN
1999# target this usually means that a port of the program doesn't
2000# exist yet.
252b5132 2001
a0da8069
NN
2002case "${host}" in
2003 hppa*64*-*-*)
2004 noconfigdirs="$noconfigdirs byacc"
2005 ;;
ec11bdc6 2006 i[3456789]86-*-vsta)
675c6968 2007 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2008 ;;
ec11bdc6 2009 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2010 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2011 ;;
2d1e8239
NC
2012 x86_64-*-mingw*)
2013 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2014 ;;
ec11bdc6 2015 i[3456789]86-*-mingw32*)
675c6968 2016 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2017 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2018 ;;
ec11bdc6 2019 i[3456789]86-*-beos*)
675c6968 2020 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2021 ;;
a0da8069 2022 *-*-cygwin*)
a92834c8 2023 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2024 ;;
2025 *-*-netbsd*)
a92834c8 2026 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2027 ;;
2028 ppc*-*-pe)
675c6968 2029 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2030 ;;
2031 powerpc-*-beos*)
675c6968 2032 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2033 ;;
a0da8069 2034esac
252b5132 2035
4b1cb4fe 2036
a2592b1b
DD
2037# Check whether --enable-libada or --disable-libada was given.
2038if test "${enable_libada+set}" = set; then
2039 enableval="$enable_libada"
2040 ENABLE_LIBADA=$enableval
2041else
2042 ENABLE_LIBADA=yes
c6b750e1 2043fi;
a2592b1b 2044if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2045 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2046fi
2047
5f128533
KH
2048# Check whether --enable-libssp or --disable-libssp was given.
2049if test "${enable_libssp+set}" = set; then
2050 enableval="$enable_libssp"
2051 ENABLE_LIBSSP=$enableval
2052else
2053 ENABLE_LIBSSP=yes
c6b750e1 2054fi;
5f128533 2055
a0da8069
NN
2056# Save it here so that, even in case of --enable-libgcj, if the Java
2057# front-end isn't enabled, we still get libgcj disabled.
2058libgcj_saved=$libgcj
2059case $enable_libgcj in
2060yes)
2061 # If we reset it here, it won't get added to noconfigdirs in the
2062 # target-specific build rules, so it will be forcibly enabled
2063 # (unless the Java language itself isn't enabled).
2064 libgcj=
2065 ;;
2066no)
2067 # Make sure we get it printed in the list of not supported target libs.
2068 noconfigdirs="$noconfigdirs ${libgcj}"
2069 ;;
2070esac
252b5132 2071
4b1cb4fe 2072
a6df5a19
PB
2073# Disable libmudflap on some systems.
2074if test x$enable_libmudflap = x ; then
3e707e94 2075 case "${target}" in
b3ded179 2076 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
3d6dfe0f 2077 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2078 ;;
2079 *-*-freebsd*)
2080 # Enable libmudflap by default in FreeBSD.
2081 ;;
2082 *)
2083 # Disable it by default everywhere else.
2084 noconfigdirs="$noconfigdirs target-libmudflap"
2085 ;;
2086 esac
a6df5a19 2087fi
4b1cb4fe 2088
a6df5a19
PB
2089# Disable libgomp on non POSIX hosted systems.
2090if test x$enable_libgomp = x ; then
b3ded179
PB
2091 # Enable libgomp by default on hosted POSIX systems.
2092 case "${target}" in
2093 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2094 ;;
2095 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2096 ;;
64ce424c 2097 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2098 ;;
2099 *-*-darwin* | *-*-aix*)
2100 ;;
2101 *)
2102 noconfigdirs="$noconfigdirs target-libgomp"
2103 ;;
2104 esac
a6df5a19 2105fi
b3ded179 2106
4b1cb4fe 2107
a0da8069
NN
2108case "${target}" in
2109 *-*-chorusos)
54d1c879 2110 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2111 ;;
790c0838 2112 powerpc-*-darwin* | i[3456789]86-*-darwin*)
b3f16a9b 2113 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 2114 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2115 ;;
04d1ab34 2116 *-*-darwin*)
d320aacb 2117 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2118 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2119 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2120 ;;
a0da8069 2121 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2122 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2123 ;;
de0b4a87 2124 *-*-freebsd*)
4b1cb4fe
DD
2125 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2126 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2127 && test -f /usr/local/include/gmp.h; then
2128 with_gmp=/usr/local
2129 fi
2130
2131 # Skip some stuff that's unsupported on some FreeBSD configurations.
2132 case "${target}" in
2133 i*86-*-*) ;;
2134 alpha*-*-*) ;;
2135 *)
54d1c879 2136 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2137 ;;
2138 esac
2139 ;;
f8a495c8
NC
2140 *-*-kaos*)
2141 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2142 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2143 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2144 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2145 noconfigdirs="$noconfigdirs target-libgloss"
2146 ;;
a0da8069
NN
2147 *-*-netbsd*)
2148 # Skip some stuff on all NetBSD configurations.
2149 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2150
2151 # Skip some stuff that's unsupported on some NetBSD configurations.
2152 case "${target}" in
2153 i*86-*-netbsdelf*) ;;
5b474aa8 2154 arm*-*-netbsdelf*) ;;
a0da8069 2155 *)
54d1c879 2156 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2157 ;;
2158 esac
2159 ;;
2a3124ca 2160 *-*-netware*)
54d1c879 2161 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2162 ;;
2163 *-*-rtems*)
54d1c879 2164 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2165 ;;
1587117a
EC
2166 # The tpf target doesn't support gdb yet.
2167 *-*-tpf*)
54d1c879 2168 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2169 ;;
c1968181 2170 *-*-uclinux*)
54d1c879 2171 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2172 ;;
a0da8069 2173 *-*-vxworks*)
54d1c879 2174 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2175 ;;
2176 alpha*-dec-osf*)
2177 # ld works, but does not support shared libraries.
2178 # newlib is not 64 bit ready. I'm not sure about fileutils.
2179 # gas doesn't generate exception information.
2180 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2181 ;;
2182 alpha*-*-*vms*)
54d1c879 2183 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2184 ;;
2185 alpha*-*-linux*)
2186 # newlib is not 64 bit ready
2187 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2188 ;;
a0da8069
NN
2189 alpha*-*-*)
2190 # newlib is not 64 bit ready
54d1c879 2191 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2192 ;;
4a18bd6b 2193 am33_2.0-*-linux*)
54d1c879 2194 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2195 ;;
a0da8069 2196 sh-*-linux*)
54d1c879 2197 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2198 ;;
a0da8069 2199 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2200 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2201 noconfigdirs="$noconfigdirs target-examples"
2202 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2203 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2204 noconfigdirs="$noconfigdirs expect dejagnu"
2205 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2206 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2207 noconfigdirs="$noconfigdirs target-newlib"
2208 case "${host}" in
2209 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2210 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2211 ;;
2212 esac
2213 ;;
2214 arc-*-*)
54d1c879 2215 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2216 ;;
caeba88f 2217 arm-semi-aof )
caeba88f 2218 ;;
a0da8069 2219 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2220 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2221 ;;
11b04d1f 2222 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069
NN
2223 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2224 ;;
bd70a46f
KH
2225 arm*-*-linux-gnueabi)
2226 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2227 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2228 ;;
df4a6958 2229 arm*-*-symbianelf*)
54d1c879 2230 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
df4a6958 2231 ;;
a0da8069 2232 arm-*-pe*)
54d1c879 2233 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2234 ;;
a0da8069 2235 thumb-*-coff)
54d1c879 2236 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2237 ;;
2238 thumb-*-elf)
54d1c879 2239 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2240 ;;
a0da8069 2241 thumb-*-pe)
54d1c879 2242 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2243 ;;
2244 arm-*-riscix*)
54d1c879 2245 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2246 ;;
2247 avr-*-*)
54d1c879 2248 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2249 ;;
376a0e54 2250 bfin-*-*)
00d89675 2251 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2252 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2253 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2254 fi
2255 ;;
a0da8069 2256 c4x-*-* | tic4x-*-*)
54d1c879 2257 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2258 ;;
2259 c54x*-*-* | tic54x-*-*)
54d1c879 2260 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2261 ;;
c7e66c6d 2262 cris-*-* | crisv32-*-*)
59f7ec45 2263 unsupported_languages="$unsupported_languages java"
c7e66c6d 2264 case "${target}" in
2faa2958 2265 *-*-aout)
096f7d00 2266 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2267 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2268 *-*-elf)
096f7d00 2269 unsupported_languages="$unsupported_languages fortran"
5e818318 2270 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2271 *-*-linux*)
5e818318 2272 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2273 *)
096f7d00 2274 unsupported_languages="$unsupported_languages fortran"
54d1c879 2275 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2276 esac
a0da8069 2277 ;;
3e707e94 2278 crx-*-*)
54d1c879 2279 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2280 ;;
a0da8069 2281 d10v-*-*)
54d1c879 2282 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2283 ;;
2284 d30v-*-*)
54d1c879 2285 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2286 ;;
2287 fr30-*-elf*)
54d1c879 2288 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2289 ;;
2290 frv-*-*)
54d1c879 2291 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2292 ;;
2293 h8300*-*-*)
54d1c879 2294 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2295 ;;
2296 h8500-*-*)
54d1c879 2297 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2298 ;;
caeba88f 2299 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2300 ;;
a0da8069
NN
2301 hppa*64*-*-linux* | parisc*64*-*-linux*)
2302 # In this case, it's because the hppa64-linux target is for
2303 # the kernel only at this point and has no libc, and thus no
2304 # headers, crt*.o, etc., all of which are needed by these.
2305 noconfigdirs="$noconfigdirs target-zlib"
2306 ;;
5dcac624
DA
2307 parisc*-*-linux* | hppa*-*-linux*)
2308 ;;
a0da8069 2309 hppa*-*-*elf* | \
a0da8069
NN
2310 hppa*-*-lites* | \
2311 hppa*-*-openbsd* | \
2312 hppa*64*-*-*)
54d1c879 2313 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2314 ;;
2315 hppa*-hp-hpux11*)
2316 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069
NN
2317 ;;
2318 hppa*-*-*)
2319 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2320 # build on HP-UX 10.20.
54d1c879 2321 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2322 ;;
b07c2aad 2323 i960-*-*)
54d1c879 2324 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2325 ;;
a0da8069
NN
2326 ia64*-*-elf*)
2327 # No gdb support yet.
675c6968 2328 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2329 ;;
2330 ia64*-**-hpux*)
2331 # No gdb or ld support yet.
54d1c879 2332 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2333 ;;
caeba88f 2334 i370-*-opened*)
caeba88f 2335 ;;
ec11bdc6 2336 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2337 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2338 ;;
ec11bdc6 2339 i[3456789]86-*-linux*)
a0da8069
NN
2340 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2341 # not build java stuff by default.
2342 case "${target}" in
2343 *-*-*libc1*)
54d1c879 2344 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2345 esac
2346
2347 # This section makes it possible to build newlib natively on linux.
2348 # If we are using a cross compiler then don't configure newlib.
2349 if test x${is_cross_compiler} != xno ; then
bba45b8b 2350 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2351 fi
2352 noconfigdirs="$noconfigdirs target-libgloss"
2353 # If we are not using a cross compiler, do configure newlib.
2354 # Note however, that newlib will only be configured in this situation
2355 # if the --with-newlib option has been given, because otherwise
2356 # 'target-newlib' will appear in skipdirs.
2357 ;;
ec11bdc6 2358 i[3456789]86-*-mingw32*)
45055374
CV
2359 target_configdirs="$target_configdirs target-winsup"
2360 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2361 ;;
2d1e8239
NC
2362 x86_64-*-mingw*)
2363 target_configdirs="$target_configdirs target-winsup"
2364 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2365 ;;
a0da8069
NN
2366 *-*-cygwin*)
2367 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2368 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2369 # always build newlib if winsup directory is present.
45055374 2370 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2371 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2372 elif test -d "$srcdir/newlib"; then
45055374 2373 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2374 fi
c6b750e1 2375 ;;
caeba88f
AL
2376 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2377 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2378 ;;
ec11bdc6 2379 i[3456789]86-*-pe)
54d1c879 2380 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2381 ;;
ec11bdc6 2382 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2383 # The linker does not yet know about weak symbols in COFF,
2384 # and is not configured to handle mixed ELF and COFF.
54d1c879 2385 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2386 ;;
ec11bdc6 2387 i[3456789]86-*-sco*)
54d1c879 2388 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2389 ;;
ec11bdc6 2390 i[3456789]86-*-solaris2*)
a0da8069
NN
2391 noconfigdirs="$noconfigdirs target-libgloss"
2392 ;;
ec11bdc6 2393 i[3456789]86-*-sysv4*)
54d1c879 2394 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2395 ;;
ec11bdc6 2396 i[3456789]86-*-beos*)
54d1c879 2397 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2398 ;;
b59bea8a 2399 i[3456789]86-*-rdos*)
2429c060
PB
2400 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2401 ;;
b07c2aad 2402 m32r-*-*)
54d1c879 2403 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2404 ;;
a0da8069 2405 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2406 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2407 ;;
2408 m68k-*-elf*)
54d1c879 2409 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2410 ;;
2411 m68k-*-coff*)
54d1c879 2412 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2413 ;;
2414 mcore-*-pe*)
2415 # The EPOC C++ environment does not support exceptions or rtti,
2416 # and so building libstdc++-v3 tends not to always work.
2417 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2418 ;;
2419 mmix-*-*)
59f7ec45 2420 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2421 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2422 ;;
2423 mn10200-*-*)
54d1c879 2424 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2425 ;;
2426 mn10300-*-*)
54d1c879 2427 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2428 ;;
4970f871 2429 mt-*-*)
cdb9b172
AH
2430 noconfigdirs="$noconfigdirs sim"
2431 ;;
a0da8069
NN
2432 powerpc-*-aix*)
2433 # copied from rs6000-*-* entry
54d1c879 2434 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2435 ;;
2436 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2437 target_configdirs="$target_configdirs target-winsup"
54d1c879 2438 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2439 # always build newlib.
2440 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2441 ;;
2442 # This is temporary until we can link against shared libraries
2443 powerpcle-*-solaris*)
54d1c879 2444 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
a0da8069
NN
2445 ;;
2446 powerpc-*-beos*)
54d1c879 2447 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2448 ;;
a0da8069 2449 powerpc-*-eabi)
54d1c879 2450 noconfigdirs="$noconfigdirs ${libgcj}"
caeba88f
AL
2451 ;;
2452 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
a0da8069 2453 ;;
a0da8069 2454 rs6000-*-lynxos*)
54d1c879 2455 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2456 ;;
2457 rs6000-*-aix*)
54d1c879 2458 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2459 ;;
2460 rs6000-*-*)
54d1c879 2461 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2462 ;;
2463 m68k-apollo-*)
54d1c879 2464 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069
NN
2465 ;;
2466 mips*-*-irix5*)
54d1c879 2467 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2468 ;;
2469 mips*-*-irix6*)
a0da8069
NN
2470 # Linking libjava exceeds command-line length limits on at least
2471 # IRIX 6.2, but not on IRIX 6.5.
2472 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2473 # <oldham@codesourcery.com>
54d1c879 2474 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2475 ;;
a0da8069 2476 mips*-*-bsd*)
54d1c879 2477 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2478 ;;
1712ab83 2479 mips64*-*-linux*)
f3529cf1 2480 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1712ab83 2481 ;;
a0da8069
NN
2482 mips*-*-linux*)
2483 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2484 ;;
2485 mips*-*-*)
54d1c879 2486 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2487 ;;
2488 romp-*-*)
54d1c879 2489 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2490 ;;
dbf85af7 2491 sh-*-* | sh64-*-*)
a0da8069 2492 case "${host}" in
ec11bdc6
DD
2493 i[3456789]86-*-vsta) ;; # don't add gprof back in
2494 i[3456789]86-*-go32*) ;; # don't add gprof back in
2495 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2496 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2497 esac
54d1c879 2498 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2499 ;;
a0da8069 2500 sparc-*-elf*)
54d1c879 2501 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2502 ;;
2503 sparc64-*-elf*)
54d1c879 2504 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2505 ;;
2506 sparclite-*-*)
54d1c879 2507 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2508 ;;
2509 sparc-*-sunos4*)
54d1c879 2510 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2511 if test x${is_cross_compiler} != xno ; then
2512 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2513 else
2514 use_gnu_ld=no
2515 fi
2516 ;;
e3c770b1 2517 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2518 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2519 ;;
a0da8069
NN
2520 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2521 ;;
2839fe5d
BE
2522 spu-*-*)
2523 skipdirs="target-libssp"
2524 ;;
a0da8069 2525 v810-*-*)
54d1c879 2526 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2527 ;;
2528 v850-*-*)
54d1c879 2529 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2530 ;;
2531 v850e-*-*)
54d1c879 2532 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2533 ;;
2534 v850ea-*-*)
54d1c879 2535 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2536 ;;
2537 vax-*-vms)
54d1c879 2538 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2539 ;;
2540 vax-*-*)
54d1c879 2541 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2542 ;;
fbd1054d 2543 xtensa-*-*)
54d1c879 2544 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2545 ;;
a0da8069 2546 ip2k-*-*)
54d1c879 2547 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2548 ;;
de0b4a87 2549 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2550 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2551 ;;
2552 *-*-lynxos*)
54d1c879 2553 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2554 ;;
a0da8069 2555 *-*-*)
54d1c879 2556 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2557 ;;
2558esac
252b5132 2559
a0da8069
NN
2560# If we aren't building newlib, then don't build libgloss, since libgloss
2561# depends upon some newlib header files.
2562case "${noconfigdirs}" in
2563 *target-libgloss*) ;;
2564 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2565esac
2566
a0da8069
NN
2567# Work in distributions that contain no compiler tools, like Autoconf.
2568tentative_cc=""
2569host_makefile_frag=/dev/null
2570if test -d ${srcdir}/config ; then
2571case "${host}" in
2572 m68k-hp-hpux*)
2573 # Avoid "too much defining" errors from HPUX compiler.
2574 tentative_cc="cc -Wp,-H256000"
2575 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2576 # If it's HP/UX ar, this should be harmless.
2577 RANLIB="ar ts"
2578 ;;
2579 m68k-apollo-sysv*)
2580 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2581 ;;
2582 m68k-apollo-bsd*)
2583 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2584 # chokes on bfd, the compiler won't let you assign integers to enums, and
2585 # other problems. Defining CC to gcc is a questionable way to say "don't use
2586 # the apollo compiler" (the preferred version of GCC could be called cc,
2587 # or whatever), but I'm not sure leaving CC as cc is any better...
2588 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2589 # Used to have BISON=yacc.
2590 tentative_cc=gcc
2591 ;;
2592 m88k-dg-dgux*)
2593 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2594 ;;
2595 m88k-harris-cxux*)
2596 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2597 tentative_cc="cc -Xa"
2598 host_makefile_frag="config/mh-cxux"
2599 ;;
2600 m88k-motorola-sysv*)
2601 ;;
2602 mips*-dec-ultrix*)
2603 tentative_cc="cc -Wf,-XNg1000"
2604 host_makefile_frag="config/mh-decstation"
2605 ;;
2606 mips*-nec-sysv4*)
2607 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2608 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2609 host_makefile_frag="config/mh-necv4"
2610 ;;
2611 mips*-sgi-irix4*)
2612 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2613 # environment. Also bump switch table size so that cp-parse will
2614 # compile. Bump string length limit so linker builds.
2615 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2616 ;;
2617 mips*-*-sysv4*)
2618 host_makefile_frag="config/mh-sysv4"
2619 ;;
2620 mips*-*-sysv*)
2621 # This is for a MIPS running RISC/os 4.52C.
2622
2623 # This is needed for GDB, but needs to be in the top-level make because
2624 # if a library is compiled with the bsd headers and gets linked with the
2625 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2626 # a different size).
2627 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2628 # known except to select the sysv environment. Could we use /proc instead?
2629 # These "sysv environments" and "bsd environments" often end up being a pain.
2630 #
2631 # This is not part of CFLAGS because perhaps not all C compilers have this
2632 # option.
2633 tentative_cc="cc -systype sysv"
2634 ;;
2635 i370-ibm-opened*)
2636 tentative_cc="c89"
2637 ;;
ec11bdc6 2638 i[3456789]86-*-sysv5*)
a0da8069
NN
2639 host_makefile_frag="config/mh-sysv5"
2640 ;;
ec11bdc6 2641 i[3456789]86-*-dgux*)
a0da8069
NN
2642 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2643 host_makefile_frag="config/mh-dgux386"
2644 ;;
ec11bdc6 2645 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2646 # The MetaWare compiler will generate a copyright message unless you
2647 # turn it off by adding the -Hnocopyr flag.
2648 tentative_cc="cc -Hnocopyr"
2649 ;;
ec11bdc6 2650 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2651 # for an NCR 3000 (i486/SVR4) system.
2652 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2653 # This compiler not only emits obnoxious copyright messages every time
2654 # you run it, but it chokes and dies on a whole bunch of GNU source
2655 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2656 tentative_cc="/usr/ccs/ATT/cc"
2657 host_makefile_frag="config/mh-ncr3000"
2658 ;;
ec11bdc6 2659 i[3456789]86-*-sco3.2v5*)
a0da8069 2660 ;;
ec11bdc6 2661 i[3456789]86-*-sco*)
a0da8069
NN
2662 # The native C compiler botches some simple uses of const. Unfortunately,
2663 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2664 tentative_cc="cc -Dconst="
2665 host_makefile_frag="config/mh-sco"
2666 ;;
ec11bdc6 2667 i[3456789]86-*-udk*)
a0da8069
NN
2668 host_makefile_frag="config/mh-sysv5"
2669 ;;
ec11bdc6 2670 i[3456789]86-*-solaris2*)
a0da8069
NN
2671 host_makefile_frag="config/mh-sysv4"
2672 ;;
ec11bdc6 2673 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2674 host_makefile_frag="config/mh-djgpp"
2675 ;;
2676 *-cygwin*)
2677 host_makefile_frag="config/mh-cygwin"
2678 ;;
2679 *-mingw32*)
a0da8069 2680 ;;
2d1e8239
NC
2681 *-mingw64*)
2682 ;;
a0da8069
NN
2683 *-interix*)
2684 host_makefile_frag="config/mh-interix"
2685 ;;
2686 vax-*-ultrix2*)
2687 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2688 tentative_cc=gcc
2689 ;;
2690 *-*-solaris2*)
2691 host_makefile_frag="config/mh-solaris"
2692 ;;
2693 m68k-sun-sunos*)
2694 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2695 # without overflowing the jump tables (-J says to use a 32 bit table)
2696 tentative_cc="cc -J"
2697 ;;
2698 *-hp-hpux*)
2699 tentative_cc="cc -Wp,-H256000"
2700 ;;
2701 *-*-hiux*)
2702 tentative_cc="cc -Wp,-H256000"
2703 ;;
2704 rs6000-*-lynxos*)
2705 # /bin/cc is less than useful for our purposes. Always use GCC
2706 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2707 host_makefile_frag="config/mh-lynxrs6k"
2708 ;;
0df3d27f
PB
2709 powerpc-*-darwin*)
2710 host_makefile_frag="config/mh-ppc-darwin"
2711 ;;
f6d183c0
PB
2712 powerpc-*-aix*)
2713 host_makefile_frag="config/mh-ppc-aix"
2714 ;;
2715 rs6000-*-aix*)
2716 host_makefile_frag="config/mh-ppc-aix"
2717 ;;
a0da8069
NN
2718 *-*-lynxos*)
2719 # /bin/cc is less than useful for our purposes. Always use GCC
2720 tentative_cc="/bin/gcc"
2721 ;;
2722 *-*-sysv4*)
2723 host_makefile_frag="config/mh-sysv4"
2724 ;;
fe69863c
DD
2725 # This is placed last to prevent interfering with the cases above.
2726 i[3456789]86-*-*)
2727 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2728 host_makefile_frag="config/mh-x86omitfp"
2729 ;;
a0da8069
NN
2730esac
2731fi
2732
9e07f89d
NN
2733# If we aren't going to be using gcc, see if we can extract a definition
2734# of CC from the fragment.
2735# Actually, use the 'pre-extracted' version above.
2736if test -z "${CC}" && test "${build}" = "${host}" ; then
2737 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2738 found=
2739 for dir in $PATH; do
2740 test -z "$dir" && dir=.
2741 if test -f $dir/gcc; then
2742 found=yes
2743 break
2744 fi
2745 done
2746 IFS="$save_ifs"
2747 if test -z "${found}" && test -n "${tentative_cc}" ; then
2748 CC=$tentative_cc
2749 fi
2750fi
2751
2752if test "${build}" != "${host}" ; then
9e07f89d 2753 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
9e07f89d 2754else
512b7dfb 2755 CC_FOR_BUILD="\$(CC)"
18f6b6ee
PB
2756fi
2757
2758ac_ext=c
c6b750e1
DJ
2759ac_cpp='$CPP $CPPFLAGS'
2760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2765set dummy ${ac_tool_prefix}gcc; ac_word=$2
2766echo "$as_me:$LINENO: checking for $ac_word" >&5
2767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2768if test "${ac_cv_prog_CC+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2770else
2771 if test -n "$CC"; then
2772 ac_cv_prog_CC="$CC" # Let the user override the test.
2773else
2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775for as_dir in $PATH
2776do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785done
2786done
2787
2788fi
2789fi
2790CC=$ac_cv_prog_CC
2791if test -n "$CC"; then
2792 echo "$as_me:$LINENO: result: $CC" >&5
2793echo "${ECHO_T}$CC" >&6
2794else
2795 echo "$as_me:$LINENO: result: no" >&5
2796echo "${ECHO_T}no" >&6
2797fi
2798
2799fi
2800if test -z "$ac_cv_prog_CC"; then
2801 ac_ct_CC=$CC
6a9cf61e 2802 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2803set dummy gcc; ac_word=$2
c6b750e1
DJ
2804echo "$as_me:$LINENO: checking for $ac_word" >&5
2805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2806if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2808else
2809 if test -n "$ac_ct_CC"; then
2810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2811else
2812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813for as_dir in $PATH
2814do
2815 IFS=$as_save_IFS
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2819 ac_cv_prog_ac_ct_CC="gcc"
2820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 break 2
2822 fi
2823done
2824done
2825
2826fi
2827fi
2828ac_ct_CC=$ac_cv_prog_ac_ct_CC
2829if test -n "$ac_ct_CC"; then
2830 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2831echo "${ECHO_T}$ac_ct_CC" >&6
2832else
2833 echo "$as_me:$LINENO: result: no" >&5
2834echo "${ECHO_T}no" >&6
2835fi
2836
2837 CC=$ac_ct_CC
2838else
2839 CC="$ac_cv_prog_CC"
2840fi
2841
2842if test -z "$CC"; then
2843 if test -n "$ac_tool_prefix"; then
2844 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2845set dummy ${ac_tool_prefix}cc; ac_word=$2
2846echo "$as_me:$LINENO: checking for $ac_word" >&5
2847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2848if test "${ac_cv_prog_CC+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2850else
2851 if test -n "$CC"; then
2852 ac_cv_prog_CC="$CC" # Let the user override the test.
2853else
c6b750e1
DJ
2854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855for as_dir in $PATH
2856do
2857 IFS=$as_save_IFS
2858 test -z "$as_dir" && as_dir=.
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2861 ac_cv_prog_CC="${ac_tool_prefix}cc"
2862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 break 2
2864 fi
2865done
2866done
2867
9e07f89d
NN
2868fi
2869fi
c6b750e1 2870CC=$ac_cv_prog_CC
9e07f89d 2871if test -n "$CC"; then
c6b750e1
DJ
2872 echo "$as_me:$LINENO: result: $CC" >&5
2873echo "${ECHO_T}$CC" >&6
9e07f89d 2874else
c6b750e1
DJ
2875 echo "$as_me:$LINENO: result: no" >&5
2876echo "${ECHO_T}no" >&6
9e07f89d
NN
2877fi
2878
c6b750e1
DJ
2879fi
2880if test -z "$ac_cv_prog_CC"; then
2881 ac_ct_CC=$CC
2882 # Extract the first word of "cc", so it can be a program name with args.
2883set dummy cc; ac_word=$2
2884echo "$as_me:$LINENO: checking for $ac_word" >&5
2885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2886if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888else
2889 if test -n "$ac_ct_CC"; then
2890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2891else
2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH
2894do
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2899 ac_cv_prog_ac_ct_CC="cc"
2900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903done
2904done
2905
2906fi
2907fi
2908ac_ct_CC=$ac_cv_prog_ac_ct_CC
2909if test -n "$ac_ct_CC"; then
2910 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2911echo "${ECHO_T}$ac_ct_CC" >&6
2912else
2913 echo "$as_me:$LINENO: result: no" >&5
2914echo "${ECHO_T}no" >&6
2915fi
2916
2917 CC=$ac_ct_CC
2918else
2919 CC="$ac_cv_prog_CC"
2920fi
2921
2922fi
9e07f89d
NN
2923if test -z "$CC"; then
2924 # Extract the first word of "cc", so it can be a program name with args.
2925set dummy cc; ac_word=$2
c6b750e1
DJ
2926echo "$as_me:$LINENO: checking for $ac_word" >&5
2927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2928if test "${ac_cv_prog_CC+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2930else
2931 if test -n "$CC"; then
2932 ac_cv_prog_CC="$CC" # Let the user override the test.
2933else
9e07f89d 2934 ac_prog_rejected=no
c6b750e1
DJ
2935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936for as_dir in $PATH
2937do
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2942 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2943 ac_prog_rejected=yes
2944 continue
2945 fi
2946 ac_cv_prog_CC="cc"
2947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 break 2
2949 fi
2950done
2951done
2952
9e07f89d
NN
2953if test $ac_prog_rejected = yes; then
2954 # We found a bogon in the path, so make sure we never use it.
2955 set dummy $ac_cv_prog_CC
2956 shift
c6b750e1 2957 if test $# != 0; then
9e07f89d
NN
2958 # We chose a different compiler from the bogus one.
2959 # However, it has the same basename, so the bogon will be chosen
2960 # first if we set CC to just the basename; use the full file name.
2961 shift
c6b750e1 2962 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
2963 fi
2964fi
2965fi
2966fi
c6b750e1 2967CC=$ac_cv_prog_CC
9e07f89d 2968if test -n "$CC"; then
c6b750e1
DJ
2969 echo "$as_me:$LINENO: result: $CC" >&5
2970echo "${ECHO_T}$CC" >&6
9e07f89d 2971else
c6b750e1
DJ
2972 echo "$as_me:$LINENO: result: no" >&5
2973echo "${ECHO_T}no" >&6
9e07f89d
NN
2974fi
2975
c6b750e1
DJ
2976fi
2977if test -z "$CC"; then
2978 if test -n "$ac_tool_prefix"; then
2979 for ac_prog in cl
2980 do
2981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2982set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2983echo "$as_me:$LINENO: checking for $ac_word" >&5
2984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2985if test "${ac_cv_prog_CC+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2987else
2988 if test -n "$CC"; then
2989 ac_cv_prog_CC="$CC" # Let the user override the test.
2990else
c6b750e1
DJ
2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992for as_dir in $PATH
2993do
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 break 2
376a0e54 3001 fi
c6b750e1
DJ
3002done
3003done
cac3d6c4 3004
c6b750e1
DJ
3005fi
3006fi
3007CC=$ac_cv_prog_CC
3008if test -n "$CC"; then
3009 echo "$as_me:$LINENO: result: $CC" >&5
3010echo "${ECHO_T}$CC" >&6
cac3d6c4 3011else
c6b750e1
DJ
3012 echo "$as_me:$LINENO: result: no" >&5
3013echo "${ECHO_T}no" >&6
9e07f89d 3014fi
cac3d6c4 3015
c6b750e1
DJ
3016 test -n "$CC" && break
3017 done
cac3d6c4 3018fi
c6b750e1
DJ
3019if test -z "$CC"; then
3020 ac_ct_CC=$CC
3021 for ac_prog in cl
3022do
3023 # Extract the first word of "$ac_prog", so it can be a program name with args.
3024set dummy $ac_prog; ac_word=$2
3025echo "$as_me:$LINENO: checking for $ac_word" >&5
3026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3027if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3029else
c6b750e1
DJ
3030 if test -n "$ac_ct_CC"; then
3031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3032else
c6b750e1
DJ
3033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034for as_dir in $PATH
3035do
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_ac_ct_CC="$ac_prog"
3041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3043 fi
3044done
3045done
3046
cac3d6c4
CM
3047fi
3048fi
c6b750e1
DJ
3049ac_ct_CC=$ac_cv_prog_ac_ct_CC
3050if test -n "$ac_ct_CC"; then
3051 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3052echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3053else
c6b750e1
DJ
3054 echo "$as_me:$LINENO: result: no" >&5
3055echo "${ECHO_T}no" >&6
cac3d6c4 3056fi
376a0e54 3057
c6b750e1
DJ
3058 test -n "$ac_ct_CC" && break
3059done
3060
3061 CC=$ac_ct_CC
3062fi
3063
3064fi
3065
3066
3067test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3068See \`config.log' for more details." >&5
3069echo "$as_me: error: no acceptable C compiler found in \$PATH
3070See \`config.log' for more details." >&2;}
3071 { (exit 1); exit 1; }; }
3072
3073# Provide some information about the compiler.
3074echo "$as_me:$LINENO:" \
3075 "checking for C compiler version" >&5
3076ac_compiler=`set X $ac_compile; echo $2`
3077{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3078 (eval $ac_compiler --version </dev/null >&5) 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }
3082{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3083 (eval $ac_compiler -v </dev/null >&5) 2>&5
3084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }
3087{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3088 (eval $ac_compiler -V </dev/null >&5) 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }
3092
3093cat >conftest.$ac_ext <<_ACEOF
3094/* confdefs.h. */
3095_ACEOF
3096cat confdefs.h >>conftest.$ac_ext
3097cat >>conftest.$ac_ext <<_ACEOF
3098/* end confdefs.h. */
3099
3100int
3101main ()
3102{
3103
3104 ;
3105 return 0;
3106}
3107_ACEOF
3108ac_clean_files_save=$ac_clean_files
3109ac_clean_files="$ac_clean_files a.out a.exe b.out"
3110# Try to create an executable without -o first, disregard a.out.
3111# It will help us diagnose broken compilers, and finding out an intuition
3112# of exeext.
3113echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3114echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3115ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3116if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3117 (eval $ac_link_default) 2>&5
3118 ac_status=$?
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; then
3121 # Find the output, starting from the most likely. This scheme is
3122# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3123# resort.
3124
3125# Be careful to initialize this variable, since it used to be cached.
3126# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3127ac_cv_exeext=
3128# b.out is created by i960 compilers.
3129for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3130do
3131 test -f "$ac_file" || continue
3132 case $ac_file in
3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3134 ;;
3135 conftest.$ac_ext )
3136 # This is the source file.
3137 ;;
3138 [ab].out )
3139 # We found the default executable, but exeext='' is most
3140 # certainly right.
3141 break;;
3142 *.* )
3143 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3144 # FIXME: I believe we export ac_cv_exeext for Libtool,
3145 # but it would be cool to find out if it's true. Does anybody
3146 # maintain Libtool? --akim.
3147 export ac_cv_exeext
3148 break;;
3149 * )
3150 break;;
3151 esac
3152done
3153else
3154 echo "$as_me: failed program was:" >&5
3155sed 's/^/| /' conftest.$ac_ext >&5
3156
3157{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3158See \`config.log' for more details." >&5
3159echo "$as_me: error: C compiler cannot create executables
3160See \`config.log' for more details." >&2;}
3161 { (exit 77); exit 77; }; }
3162fi
3163
3164ac_exeext=$ac_cv_exeext
3165echo "$as_me:$LINENO: result: $ac_file" >&5
3166echo "${ECHO_T}$ac_file" >&6
3167
3168# Check the compiler produces executables we can run. If not, either
3169# the compiler is broken, or we cross compile.
3170echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3171echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3172# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3173# If not cross compiling, check that we can run a simple program.
3174if test "$cross_compiling" != yes; then
3175 if { ac_try='./$ac_file'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 (eval $ac_try) 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
3181 cross_compiling=no
3182 else
3183 if test "$cross_compiling" = maybe; then
3184 cross_compiling=yes
3185 else
3186 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3187If you meant to cross compile, use \`--host'.
3188See \`config.log' for more details." >&5
3189echo "$as_me: error: cannot run C compiled programs.
3190If you meant to cross compile, use \`--host'.
3191See \`config.log' for more details." >&2;}
3192 { (exit 1); exit 1; }; }
3193 fi
3194 fi
3195fi
3196echo "$as_me:$LINENO: result: yes" >&5
3197echo "${ECHO_T}yes" >&6
3198
3199rm -f a.out a.exe conftest$ac_cv_exeext b.out
3200ac_clean_files=$ac_clean_files_save
3201# Check the compiler produces executables we can run. If not, either
3202# the compiler is broken, or we cross compile.
3203echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3204echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3205echo "$as_me:$LINENO: result: $cross_compiling" >&5
3206echo "${ECHO_T}$cross_compiling" >&6
3207
3208echo "$as_me:$LINENO: checking for suffix of executables" >&5
3209echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3211 (eval $ac_link) 2>&5
3212 ac_status=$?
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; then
3215 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3216# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3217# work properly (i.e., refer to `conftest.exe'), while it won't with
3218# `rm'.
3219for ac_file in conftest.exe conftest conftest.*; do
3220 test -f "$ac_file" || continue
3221 case $ac_file in
3222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3223 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3224 export ac_cv_exeext
3225 break;;
3226 * ) break;;
3227 esac
3228done
3229else
3230 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3231See \`config.log' for more details." >&5
3232echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3233See \`config.log' for more details." >&2;}
3234 { (exit 1); exit 1; }; }
3235fi
3236
3237rm -f conftest$ac_cv_exeext
3238echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3239echo "${ECHO_T}$ac_cv_exeext" >&6
3240
3241rm -f conftest.$ac_ext
3242EXEEXT=$ac_cv_exeext
3243ac_exeext=$EXEEXT
3244echo "$as_me:$LINENO: checking for suffix of object files" >&5
3245echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3246if test "${ac_cv_objext+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3248else
3249 cat >conftest.$ac_ext <<_ACEOF
3250/* confdefs.h. */
3251_ACEOF
3252cat confdefs.h >>conftest.$ac_ext
3253cat >>conftest.$ac_ext <<_ACEOF
3254/* end confdefs.h. */
3255
3256int
3257main ()
3258{
3259
3260 ;
3261 return 0;
3262}
3263_ACEOF
3264rm -f conftest.o conftest.obj
3265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3266 (eval $ac_compile) 2>&5
3267 ac_status=$?
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; then
3270 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3271 case $ac_file in
3272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3273 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3274 break;;
3275 esac
3276done
cac3d6c4 3277else
c6b750e1
DJ
3278 echo "$as_me: failed program was:" >&5
3279sed 's/^/| /' conftest.$ac_ext >&5
3280
3281{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3282See \`config.log' for more details." >&5
3283echo "$as_me: error: cannot compute suffix of object files: cannot compile
3284See \`config.log' for more details." >&2;}
3285 { (exit 1); exit 1; }; }
3286fi
3287
3288rm -f conftest.$ac_cv_objext conftest.$ac_ext
3289fi
3290echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3291echo "${ECHO_T}$ac_cv_objext" >&6
3292OBJEXT=$ac_cv_objext
3293ac_objext=$OBJEXT
3294echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3295echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3296if test "${ac_cv_c_compiler_gnu+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3298else
3299 cat >conftest.$ac_ext <<_ACEOF
3300/* confdefs.h. */
3301_ACEOF
3302cat confdefs.h >>conftest.$ac_ext
3303cat >>conftest.$ac_ext <<_ACEOF
3304/* end confdefs.h. */
3305
3306int
3307main ()
3308{
3309#ifndef __GNUC__
3310 choke me
3311#endif
3312
3313 ;
3314 return 0;
3315}
3316_ACEOF
3317rm -f conftest.$ac_objext
3318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3319 (eval $ac_compile) 2>conftest.er1
3320 ac_status=$?
3321 grep -v '^ *+' conftest.er1 >conftest.err
3322 rm -f conftest.er1
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } &&
3326 { ac_try='test -z "$ac_c_werror_flag"
3327 || test ! -s conftest.err'
3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329 (eval $ac_try) 2>&5
3330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; } &&
3333 { ac_try='test -s conftest.$ac_objext'
3334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335 (eval $ac_try) 2>&5
3336 ac_status=$?
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; }; then
3339 ac_compiler_gnu=yes
3340else
3341 echo "$as_me: failed program was:" >&5
3342sed 's/^/| /' conftest.$ac_ext >&5
3343
3344ac_compiler_gnu=no
3345fi
3346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3347ac_cv_c_compiler_gnu=$ac_compiler_gnu
3348
3349fi
3350echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3351echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3352GCC=`test $ac_compiler_gnu = yes && echo yes`
3353ac_test_CFLAGS=${CFLAGS+set}
3354ac_save_CFLAGS=$CFLAGS
3355CFLAGS="-g"
3356echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3357echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3358if test "${ac_cv_prog_cc_g+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360else
3361 cat >conftest.$ac_ext <<_ACEOF
3362/* confdefs.h. */
3363_ACEOF
3364cat confdefs.h >>conftest.$ac_ext
3365cat >>conftest.$ac_ext <<_ACEOF
3366/* end confdefs.h. */
3367
3368int
3369main ()
3370{
3371
3372 ;
3373 return 0;
3374}
3375_ACEOF
3376rm -f conftest.$ac_objext
3377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3378 (eval $ac_compile) 2>conftest.er1
3379 ac_status=$?
3380 grep -v '^ *+' conftest.er1 >conftest.err
3381 rm -f conftest.er1
3382 cat conftest.err >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } &&
3385 { ac_try='test -z "$ac_c_werror_flag"
3386 || test ! -s conftest.err'
3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 (eval $ac_try) 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; } &&
3392 { ac_try='test -s conftest.$ac_objext'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394 (eval $ac_try) 2>&5
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
9e07f89d
NN
3398 ac_cv_prog_cc_g=yes
3399else
c6b750e1
DJ
3400 echo "$as_me: failed program was:" >&5
3401sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3402
c6b750e1 3403ac_cv_prog_cc_g=no
376a0e54 3404fi
c6b750e1
DJ
3405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3406fi
3407echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3408echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3409if test "$ac_test_CFLAGS" = set; then
c6b750e1 3410 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3411elif test $ac_cv_prog_cc_g = yes; then
3412 if test "$GCC" = yes; then
3413 CFLAGS="-g -O2"
3414 else
3415 CFLAGS="-g"
3416 fi
3417else
3418 if test "$GCC" = yes; then
3419 CFLAGS="-O2"
3420 else
3421 CFLAGS=
3422 fi
3423fi
c6b750e1
DJ
3424echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3425echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3426if test "${ac_cv_prog_cc_stdc+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3428else
3429 ac_cv_prog_cc_stdc=no
3430ac_save_CC=$CC
3431cat >conftest.$ac_ext <<_ACEOF
3432/* confdefs.h. */
3433_ACEOF
3434cat confdefs.h >>conftest.$ac_ext
3435cat >>conftest.$ac_ext <<_ACEOF
3436/* end confdefs.h. */
3437#include <stdarg.h>
3438#include <stdio.h>
3439#include <sys/types.h>
3440#include <sys/stat.h>
3441/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3442struct buf { int x; };
3443FILE * (*rcsopen) (struct buf *, struct stat *, int);
3444static char *e (p, i)
3445 char **p;
3446 int i;
3447{
3448 return p[i];
3449}
3450static char *f (char * (*g) (char **, int), char **p, ...)
3451{
3452 char *s;
3453 va_list v;
3454 va_start (v,p);
3455 s = g (p, va_arg (v,int));
3456 va_end (v);
3457 return s;
3458}
3459
3460/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3461 function prototypes and stuff, but not '\xHH' hex character constants.
3462 These don't provoke an error unfortunately, instead are silently treated
3463 as 'x'. The following induces an error, until -std1 is added to get
3464 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3465 array size at least. It's necessary to write '\x00'==0 to get something
3466 that's true only with -std1. */
3467int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3468
3469int test (int i, double x);
3470struct s1 {int (*f) (int a);};
3471struct s2 {int (*f) (double a);};
3472int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3473int argc;
3474char **argv;
3475int
3476main ()
3477{
3478return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3479 ;
3480 return 0;
3481}
3482_ACEOF
3483# Don't try gcc -ansi; that turns off useful extensions and
3484# breaks some systems' header files.
3485# AIX -qlanglvl=ansi
3486# Ultrix and OSF/1 -std1
3487# HP-UX 10.20 and later -Ae
3488# HP-UX older versions -Aa -D_HPUX_SOURCE
3489# SVR4 -Xc -D__EXTENSIONS__
3490for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3491do
3492 CC="$ac_save_CC $ac_arg"
3493 rm -f conftest.$ac_objext
3494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3495 (eval $ac_compile) 2>conftest.er1
3496 ac_status=$?
3497 grep -v '^ *+' conftest.er1 >conftest.err
3498 rm -f conftest.er1
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } &&
3502 { ac_try='test -z "$ac_c_werror_flag"
3503 || test ! -s conftest.err'
3504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505 (eval $ac_try) 2>&5
3506 ac_status=$?
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }; } &&
3509 { ac_try='test -s conftest.$ac_objext'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 (eval $ac_try) 2>&5
3512 ac_status=$?
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; }; then
3515 ac_cv_prog_cc_stdc=$ac_arg
3516break
3517else
3518 echo "$as_me: failed program was:" >&5
3519sed 's/^/| /' conftest.$ac_ext >&5
3520
3521fi
3522rm -f conftest.err conftest.$ac_objext
3523done
3524rm -f conftest.$ac_ext conftest.$ac_objext
3525CC=$ac_save_CC
3526
3527fi
3528
3529case "x$ac_cv_prog_cc_stdc" in
3530 x|xno)
3531 echo "$as_me:$LINENO: result: none needed" >&5
3532echo "${ECHO_T}none needed" >&6 ;;
3533 *)
3534 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3535echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3536 CC="$CC $ac_cv_prog_cc_stdc" ;;
3537esac
3538
3539# Some people use a C++ compiler to compile C. Since we use `exit',
3540# in C++ we need to declare it. In case someone uses the same compiler
3541# for both compiling C and C++ we need to have the C++ compiler decide
3542# the declaration of exit, since it's the most demanding environment.
3543cat >conftest.$ac_ext <<_ACEOF
3544#ifndef __cplusplus
3545 choke me
3546#endif
3547_ACEOF
3548rm -f conftest.$ac_objext
3549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3550 (eval $ac_compile) 2>conftest.er1
3551 ac_status=$?
3552 grep -v '^ *+' conftest.er1 >conftest.err
3553 rm -f conftest.er1
3554 cat conftest.err >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } &&
3557 { ac_try='test -z "$ac_c_werror_flag"
3558 || test ! -s conftest.err'
3559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 (eval $ac_try) 2>&5
3561 ac_status=$?
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; } &&
3564 { ac_try='test -s conftest.$ac_objext'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 (eval $ac_try) 2>&5
3567 ac_status=$?
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; }; then
3570 for ac_declaration in \
3571 '' \
3572 'extern "C" void std::exit (int) throw (); using std::exit;' \
3573 'extern "C" void std::exit (int); using std::exit;' \
3574 'extern "C" void exit (int) throw ();' \
3575 'extern "C" void exit (int);' \
3576 'void exit (int);'
3577do
3578 cat >conftest.$ac_ext <<_ACEOF
3579/* confdefs.h. */
3580_ACEOF
3581cat confdefs.h >>conftest.$ac_ext
3582cat >>conftest.$ac_ext <<_ACEOF
3583/* end confdefs.h. */
3584$ac_declaration
3585#include <stdlib.h>
3586int
3587main ()
3588{
3589exit (42);
3590 ;
3591 return 0;
3592}
3593_ACEOF
3594rm -f conftest.$ac_objext
3595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3596 (eval $ac_compile) 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } &&
3603 { ac_try='test -z "$ac_c_werror_flag"
3604 || test ! -s conftest.err'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 (eval $ac_try) 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; } &&
3610 { ac_try='test -s conftest.$ac_objext'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 (eval $ac_try) 2>&5
3613 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; }; then
3616 :
3617else
3618 echo "$as_me: failed program was:" >&5
3619sed 's/^/| /' conftest.$ac_ext >&5
3620
3621continue
3622fi
3623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3624 cat >conftest.$ac_ext <<_ACEOF
3625/* confdefs.h. */
3626_ACEOF
3627cat confdefs.h >>conftest.$ac_ext
3628cat >>conftest.$ac_ext <<_ACEOF
3629/* end confdefs.h. */
3630$ac_declaration
3631int
3632main ()
3633{
3634exit (42);
3635 ;
3636 return 0;
3637}
3638_ACEOF
3639rm -f conftest.$ac_objext
3640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3641 (eval $ac_compile) 2>conftest.er1
3642 ac_status=$?
3643 grep -v '^ *+' conftest.er1 >conftest.err
3644 rm -f conftest.er1
3645 cat conftest.err >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); } &&
3648 { ac_try='test -z "$ac_c_werror_flag"
3649 || test ! -s conftest.err'
3650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651 (eval $ac_try) 2>&5
3652 ac_status=$?
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); }; } &&
3655 { ac_try='test -s conftest.$ac_objext'
3656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657 (eval $ac_try) 2>&5
3658 ac_status=$?
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; }; then
3661 break
3662else
3663 echo "$as_me: failed program was:" >&5
3664sed 's/^/| /' conftest.$ac_ext >&5
3665
3666fi
3667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3668done
3669rm -f conftest*
3670if test -n "$ac_declaration"; then
3671 echo '#ifdef __cplusplus' >>confdefs.h
3672 echo $ac_declaration >>confdefs.h
3673 echo '#endif' >>confdefs.h
3674fi
3675
3676else
3677 echo "$as_me: failed program was:" >&5
3678sed 's/^/| /' conftest.$ac_ext >&5
3679
3680fi
3681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3682ac_ext=c
3683ac_cpp='$CPP $CPPFLAGS'
3684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3687
18f6b6ee
PB
3688ac_ext=cc
3689ac_cpp='$CXXCPP $CPPFLAGS'
3690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3693if test -n "$ac_tool_prefix"; then
3694 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3695 do
3696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3697set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3698echo "$as_me:$LINENO: checking for $ac_word" >&5
3699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3700if test "${ac_cv_prog_CXX+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3702else
3703 if test -n "$CXX"; then
3704 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3705else
3706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707for as_dir in $PATH
3708do
3709 IFS=$as_save_IFS
3710 test -z "$as_dir" && as_dir=.
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 break 2
3716 fi
3717done
3718done
512b7dfb 3719
18f6b6ee
PB
3720fi
3721fi
3722CXX=$ac_cv_prog_CXX
3723if test -n "$CXX"; then
3724 echo "$as_me:$LINENO: result: $CXX" >&5
3725echo "${ECHO_T}$CXX" >&6
3726else
3727 echo "$as_me:$LINENO: result: no" >&5
3728echo "${ECHO_T}no" >&6
3729fi
3730
3731 test -n "$CXX" && break
3732 done
3733fi
3734if test -z "$CXX"; then
3735 ac_ct_CXX=$CXX
3736 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3737do
3738 # Extract the first word of "$ac_prog", so it can be a program name with args.
3739set dummy $ac_prog; ac_word=$2
3740echo "$as_me:$LINENO: checking for $ac_word" >&5
3741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3744else
3745 if test -n "$ac_ct_CXX"; then
3746 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3747else
3748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749for as_dir in $PATH
3750do
3751 IFS=$as_save_IFS
3752 test -z "$as_dir" && as_dir=.
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3755 ac_cv_prog_ac_ct_CXX="$ac_prog"
3756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 break 2
512b7dfb 3758 fi
18f6b6ee
PB
3759done
3760done
512b7dfb 3761
18f6b6ee
PB
3762fi
3763fi
3764ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3765if test -n "$ac_ct_CXX"; then
3766 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3767echo "${ECHO_T}$ac_ct_CXX" >&6
3768else
3769 echo "$as_me:$LINENO: result: no" >&5
3770echo "${ECHO_T}no" >&6
3771fi
3772
3773 test -n "$ac_ct_CXX" && break
3774done
3775test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3776
3777 CXX=$ac_ct_CXX
3778fi
3779
3780
3781# Provide some information about the compiler.
3782echo "$as_me:$LINENO:" \
3783 "checking for C++ compiler version" >&5
3784ac_compiler=`set X $ac_compile; echo $2`
3785{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3786 (eval $ac_compiler --version </dev/null >&5) 2>&5
3787 ac_status=$?
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }
3790{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3791 (eval $ac_compiler -v </dev/null >&5) 2>&5
3792 ac_status=$?
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); }
3795{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3796 (eval $ac_compiler -V </dev/null >&5) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }
3800
3801echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3802echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3803if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3805else
3806 cat >conftest.$ac_ext <<_ACEOF
3807/* confdefs.h. */
3808_ACEOF
3809cat confdefs.h >>conftest.$ac_ext
3810cat >>conftest.$ac_ext <<_ACEOF
3811/* end confdefs.h. */
3812
3813int
3814main ()
3815{
3816#ifndef __GNUC__
3817 choke me
3818#endif
3819
3820 ;
3821 return 0;
3822}
3823_ACEOF
3824rm -f conftest.$ac_objext
3825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3826 (eval $ac_compile) 2>conftest.er1
3827 ac_status=$?
3828 grep -v '^ *+' conftest.er1 >conftest.err
3829 rm -f conftest.er1
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } &&
3833 { ac_try='test -z "$ac_cxx_werror_flag"
3834 || test ! -s conftest.err'
3835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836 (eval $ac_try) 2>&5
3837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; } &&
3840 { ac_try='test -s conftest.$ac_objext'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 (eval $ac_try) 2>&5
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; }; then
3846 ac_compiler_gnu=yes
3847else
3848 echo "$as_me: failed program was:" >&5
3849sed 's/^/| /' conftest.$ac_ext >&5
3850
3851ac_compiler_gnu=no
3852fi
3853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3854ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3855
3856fi
3857echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3858echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3859GXX=`test $ac_compiler_gnu = yes && echo yes`
3860ac_test_CXXFLAGS=${CXXFLAGS+set}
3861ac_save_CXXFLAGS=$CXXFLAGS
3862CXXFLAGS="-g"
3863echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3864echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3865if test "${ac_cv_prog_cxx_g+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867else
3868 cat >conftest.$ac_ext <<_ACEOF
3869/* confdefs.h. */
3870_ACEOF
3871cat confdefs.h >>conftest.$ac_ext
3872cat >>conftest.$ac_ext <<_ACEOF
3873/* end confdefs.h. */
3874
3875int
3876main ()
3877{
3878
3879 ;
3880 return 0;
3881}
3882_ACEOF
3883rm -f conftest.$ac_objext
3884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3885 (eval $ac_compile) 2>conftest.er1
3886 ac_status=$?
3887 grep -v '^ *+' conftest.er1 >conftest.err
3888 rm -f conftest.er1
3889 cat conftest.err >&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); } &&
3892 { ac_try='test -z "$ac_cxx_werror_flag"
3893 || test ! -s conftest.err'
3894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895 (eval $ac_try) 2>&5
3896 ac_status=$?
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; } &&
3899 { ac_try='test -s conftest.$ac_objext'
3900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901 (eval $ac_try) 2>&5
3902 ac_status=$?
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); }; }; then
3905 ac_cv_prog_cxx_g=yes
3906else
3907 echo "$as_me: failed program was:" >&5
3908sed 's/^/| /' conftest.$ac_ext >&5
3909
3910ac_cv_prog_cxx_g=no
3911fi
3912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3913fi
3914echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3915echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3916if test "$ac_test_CXXFLAGS" = set; then
3917 CXXFLAGS=$ac_save_CXXFLAGS
3918elif test $ac_cv_prog_cxx_g = yes; then
3919 if test "$GXX" = yes; then
3920 CXXFLAGS="-g -O2"
3921 else
3922 CXXFLAGS="-g"
3923 fi
3924else
3925 if test "$GXX" = yes; then
3926 CXXFLAGS="-O2"
3927 else
3928 CXXFLAGS=
3929 fi
3930fi
3931for ac_declaration in \
3932 '' \
3933 'extern "C" void std::exit (int) throw (); using std::exit;' \
3934 'extern "C" void std::exit (int); using std::exit;' \
3935 'extern "C" void exit (int) throw ();' \
3936 'extern "C" void exit (int);' \
3937 'void exit (int);'
3938do
3939 cat >conftest.$ac_ext <<_ACEOF
3940/* confdefs.h. */
3941_ACEOF
3942cat confdefs.h >>conftest.$ac_ext
3943cat >>conftest.$ac_ext <<_ACEOF
3944/* end confdefs.h. */
3945$ac_declaration
3946#include <stdlib.h>
3947int
3948main ()
3949{
3950exit (42);
3951 ;
3952 return 0;
3953}
3954_ACEOF
3955rm -f conftest.$ac_objext
3956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3957 (eval $ac_compile) 2>conftest.er1
3958 ac_status=$?
3959 grep -v '^ *+' conftest.er1 >conftest.err
3960 rm -f conftest.er1
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } &&
3964 { ac_try='test -z "$ac_cxx_werror_flag"
3965 || test ! -s conftest.err'
3966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967 (eval $ac_try) 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; } &&
3971 { ac_try='test -s conftest.$ac_objext'
3972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973 (eval $ac_try) 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; }; then
3977 :
3978else
3979 echo "$as_me: failed program was:" >&5
3980sed 's/^/| /' conftest.$ac_ext >&5
3981
3982continue
3983fi
3984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3985 cat >conftest.$ac_ext <<_ACEOF
3986/* confdefs.h. */
3987_ACEOF
3988cat confdefs.h >>conftest.$ac_ext
3989cat >>conftest.$ac_ext <<_ACEOF
3990/* end confdefs.h. */
3991$ac_declaration
3992int
3993main ()
3994{
3995exit (42);
3996 ;
3997 return 0;
3998}
3999_ACEOF
4000rm -f conftest.$ac_objext
4001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4002 (eval $ac_compile) 2>conftest.er1
4003 ac_status=$?
4004 grep -v '^ *+' conftest.er1 >conftest.err
4005 rm -f conftest.er1
4006 cat conftest.err >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } &&
4009 { ac_try='test -z "$ac_cxx_werror_flag"
4010 || test ! -s conftest.err'
4011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012 (eval $ac_try) 2>&5
4013 ac_status=$?
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); }; } &&
4016 { ac_try='test -s conftest.$ac_objext'
4017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018 (eval $ac_try) 2>&5
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; }; then
4022 break
4023else
4024 echo "$as_me: failed program was:" >&5
4025sed 's/^/| /' conftest.$ac_ext >&5
4026
4027fi
4028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4029done
4030rm -f conftest*
4031if test -n "$ac_declaration"; then
4032 echo '#ifdef __cplusplus' >>confdefs.h
4033 echo $ac_declaration >>confdefs.h
4034 echo '#endif' >>confdefs.h
4035fi
4036
4037ac_ext=c
4038ac_cpp='$CPP $CPPFLAGS'
4039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042
4043
4044# We must set the default linker to the linker used by gcc for the correct
4045# operation of libtool. If LD is not defined and we are using gcc, try to
4046# set the LD default to the ld used by gcc.
4047if test -z "$LD"; then
4048 if test "$GCC" = yes; then
4049 case $build in
4050 *-*-mingw*)
4051 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4052 *)
4053 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4054 esac
4055 case $gcc_prog_ld in
4056 # Accept absolute paths.
4057 [\\/]* | [A-Za-z]:[\\/]*)
4058 LD="$gcc_prog_ld" ;;
4059 esac
4060 fi
512b7dfb
PB
4061fi
4062
4063
4064
4065
c6b750e1 4066if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4067 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4068set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4069echo "$as_me:$LINENO: checking for $ac_word" >&5
4070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4071if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4072 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4073else
512b7dfb
PB
4074 if test -n "$GNATBIND"; then
4075 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4076else
c6b750e1
DJ
4077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078for as_dir in $PATH
4079do
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4084 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 break 2
4087 fi
4088done
4089done
4090
9e07f89d
NN
4091fi
4092fi
512b7dfb
PB
4093GNATBIND=$ac_cv_prog_GNATBIND
4094if test -n "$GNATBIND"; then
4095 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4096echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4097else
c6b750e1
DJ
4098 echo "$as_me:$LINENO: result: no" >&5
4099echo "${ECHO_T}no" >&6
9e07f89d
NN
4100fi
4101
c6b750e1 4102fi
512b7dfb
PB
4103if test -z "$ac_cv_prog_GNATBIND"; then
4104 ac_ct_GNATBIND=$GNATBIND
4105 # Extract the first word of "gnatbind", so it can be a program name with args.
4106set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4107echo "$as_me:$LINENO: checking for $ac_word" >&5
4108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4109if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4110 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4111else
512b7dfb
PB
4112 if test -n "$ac_ct_GNATBIND"; then
4113 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4114else
c6b750e1
DJ
4115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116for as_dir in $PATH
4117do
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4122 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 break 2
4125 fi
4126done
4127done
4128
512b7dfb 4129 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4130fi
4131fi
512b7dfb
PB
4132ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4133if test -n "$ac_ct_GNATBIND"; then
4134 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4135echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4136else
c6b750e1
DJ
4137 echo "$as_me:$LINENO: result: no" >&5
4138echo "${ECHO_T}no" >&6
9e07f89d
NN
4139fi
4140
512b7dfb 4141 GNATBIND=$ac_ct_GNATBIND
24ff9987 4142else
512b7dfb 4143 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4144fi
4145
7df2cd5d 4146if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4147 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4148set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4149echo "$as_me:$LINENO: checking for $ac_word" >&5
4150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4151if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153else
512b7dfb
PB
4154 if test -n "$GNATMAKE"; then
4155 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4156else
4157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158for as_dir in $PATH
4159do
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4164 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 break 2
4167 fi
4168done
4169done
4170
4171fi
4172fi
512b7dfb
PB
4173GNATMAKE=$ac_cv_prog_GNATMAKE
4174if test -n "$GNATMAKE"; then
4175 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4176echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4177else
4178 echo "$as_me:$LINENO: result: no" >&5
4179echo "${ECHO_T}no" >&6
4180fi
4181
4182fi
512b7dfb
PB
4183if test -z "$ac_cv_prog_GNATMAKE"; then
4184 ac_ct_GNATMAKE=$GNATMAKE
4185 # Extract the first word of "gnatmake", so it can be a program name with args.
4186set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4187echo "$as_me:$LINENO: checking for $ac_word" >&5
4188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4189if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4191else
512b7dfb
PB
4192 if test -n "$ac_ct_GNATMAKE"; then
4193 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4194else
4195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196for as_dir in $PATH
4197do
4198 IFS=$as_save_IFS
4199 test -z "$as_dir" && as_dir=.
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4202 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 break 2
4205 fi
4206done
4207done
4208
512b7dfb 4209 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4210fi
4211fi
512b7dfb
PB
4212ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4213if test -n "$ac_ct_GNATMAKE"; then
4214 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4215echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4216else
4217 echo "$as_me:$LINENO: result: no" >&5
4218echo "${ECHO_T}no" >&6
4219fi
4220
512b7dfb 4221 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4222else
512b7dfb 4223 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4224fi
4225
c6b750e1
DJ
4226echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4227echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4228if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4230else
4231 cat >conftest.adb <<EOF
4232procedure conftest is begin null; end conftest;
4233EOF
4234acx_cv_cc_gcc_supports_ada=no
4235# There is a bug in old released versions of GCC which causes the
4236# driver to exit successfully when the appropriate language module
4237# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4238# Therefore we must check for the error message as well as an
4239# unsuccessful exit.
b8908782
DD
4240# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4241# given a .adb file, but produce no object file. So we must check
4242# if an object file was really produced to guard against this.
9e07f89d 4243errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4244if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4245 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4246fi
4247rm -f conftest.*
4248fi
c6b750e1
DJ
4249echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4250echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4251
512b7dfb 4252if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4253 have_gnat=yes
4254else
4255 have_gnat=no
4256fi
4257
c6b750e1
DJ
4258echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4259echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4260if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4262else
4263 echo abfoo >t1
4264 echo cdfoo >t2
4265 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4266 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4267 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4268 :
4269 else
4270 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4271 fi
4272 fi
b8908782
DD
4273 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4274 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4275 :
b8908782
DD
4276 else
4277 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4278 fi
4279 fi
4280 rm t1 t2
4281
4282fi
c6b750e1
DJ
4283echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4284echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4285do_compare="$gcc_cv_prog_cmp_skip"
4286
4287
9e07f89d 4288
11b04d1f 4289# Check for GMP and MPFR
4b900473 4290gmplibs="-lmpfr -lgmp"
4b1cb4fe 4291gmpinc=
4b900473
PB
4292have_gmp=no
4293
11b04d1f
DD
4294# Specify a location for mpfr
4295# check for this first so it ends up on the link line before gmp.
c6b750e1 4296
11b04d1f
DD
4297# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4298if test "${with_mpfr_dir+set}" = set; then
4299 withval="$with_mpfr_dir"
c6b750e1
DJ
4300 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4301Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4302echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4303Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4304 { (exit 1); exit 1; }; }
4305fi;
11b04d1f
DD
4306
4307
11b04d1f
DD
4308# Check whether --with-mpfr or --without-mpfr was given.
4309if test "${with_mpfr+set}" = set; then
4310 withval="$with_mpfr"
c6b750e1
DJ
4311
4312fi;
11b04d1f 4313
8a0d8a5c
PB
4314# Check whether --with-mpfr_include or --without-mpfr_include was given.
4315if test "${with_mpfr_include+set}" = set; then
4316 withval="$with_mpfr_include"
c6b750e1
DJ
4317
4318fi;
8a0d8a5c
PB
4319
4320# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4321if test "${with_mpfr_lib+set}" = set; then
4322 withval="$with_mpfr_lib"
8a0d8a5c 4323
c6b750e1 4324fi;
11b04d1f
DD
4325
4326if test "x$with_mpfr" != x; then
4327 gmplibs="-L$with_mpfr/lib $gmplibs"
4328 gmpinc="-I$with_mpfr/include"
4329fi
8a0d8a5c
PB
4330if test "x$with_mpfr_include" != x; then
4331 gmpinc="-I$with_mpfr_include"
4332fi
4333if test "x$with_mpfr_lib" != x; then
4334 gmplibs="-L$with_mpfr_lib $gmplibs"
4335fi
4b900473
PB
4336if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4337 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4338 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4339 # Do not test the mpfr version. Assume that it is sufficient, since
4340 # it is in the source tree, and the library has not been built yet
4341 # but it would be included on the link line in the version check below
4342 # hence making the test fail.
4343 have_gmp=yes
4344fi
11b04d1f 4345
4b1cb4fe 4346# Specify a location for gmp
c6b750e1 4347
4b1cb4fe
DD
4348# Check whether --with-gmp-dir or --without-gmp-dir was given.
4349if test "${with_gmp_dir+set}" = set; then
4350 withval="$with_gmp_dir"
c6b750e1
DJ
4351 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4352Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4353echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4354Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4355 { (exit 1); exit 1; }; }
4356fi;
4b1cb4fe
DD
4357
4358
4b1cb4fe
DD
4359# Check whether --with-gmp or --without-gmp was given.
4360if test "${with_gmp+set}" = set; then
4361 withval="$with_gmp"
c6b750e1
DJ
4362
4363fi;
4b1cb4fe 4364
8a0d8a5c
PB
4365# Check whether --with-gmp_include or --without-gmp_include was given.
4366if test "${with_gmp_include+set}" = set; then
4367 withval="$with_gmp_include"
c6b750e1
DJ
4368
4369fi;
8a0d8a5c
PB
4370
4371# Check whether --with-gmp_lib or --without-gmp_lib was given.
4372if test "${with_gmp_lib+set}" = set; then
4373 withval="$with_gmp_lib"
8a0d8a5c 4374
c6b750e1 4375fi;
8a0d8a5c 4376
4b1cb4fe 4377
11b04d1f
DD
4378if test "x$with_gmp" != x; then
4379 gmplibs="-L$with_gmp/lib $gmplibs"
4380 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4381fi
8a0d8a5c
PB
4382if test "x$with_gmp_include" != x; then
4383 gmpinc="-I$with_gmp_include $gmpinc"
4384fi
4385if test "x$with_gmp_lib" != x; then
4386 gmplibs="-L$with_gmp_lib $gmplibs"
4387fi
4b900473
PB
4388if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4389 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4390 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4391 # Do not test the gmp version. Assume that it is sufficient, since
4392 # it is in the source tree, and the library has not been built yet
4393 # but it would be included on the link line in the version check below
4394 # hence making the test fail.
4395 have_gmp=yes
4396fi
4b1cb4fe 4397
ceb92e78 4398if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4399 have_gmp=yes
4400 saved_CFLAGS="$CFLAGS"
4401 CFLAGS="$CFLAGS $gmpinc"
4402 # Check GMP actually works
c6b750e1
DJ
4403 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4404echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4405
4406cat >conftest.$ac_ext <<_ACEOF
4407/* confdefs.h. */
4408_ACEOF
4409cat confdefs.h >>conftest.$ac_ext
4410cat >>conftest.$ac_ext <<_ACEOF
4411/* end confdefs.h. */
4b1cb4fe 4412#include "gmp.h"
c6b750e1
DJ
4413int
4414main ()
4415{
4b1cb4fe 4416
4b900473
PB
4417 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4418 choke me
4419 #endif
c6b750e1
DJ
4420
4421 ;
4422 return 0;
4423}
4424_ACEOF
4425rm -f conftest.$ac_objext
4426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4427 (eval $ac_compile) 2>conftest.er1
4428 ac_status=$?
4429 grep -v '^ *+' conftest.er1 >conftest.err
4430 rm -f conftest.er1
4431 cat conftest.err >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } &&
4434 { ac_try='test -z "$ac_c_werror_flag"
4435 || test ! -s conftest.err'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437 (eval $ac_try) 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; } &&
4441 { ac_try='test -s conftest.$ac_objext'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443 (eval $ac_try) 2>&5
4444 ac_status=$?
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; }; then
4447 echo "$as_me:$LINENO: result: yes" >&5
4448echo "${ECHO_T}yes" >&6
4449else
4450 echo "$as_me: failed program was:" >&5
4451sed 's/^/| /' conftest.$ac_ext >&5
4452
4453echo "$as_me:$LINENO: result: no" >&5
4454echo "${ECHO_T}no" >&6; have_gmp=no
4455fi
4456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4457
4b900473
PB
4458 if test x"$have_gmp" = xyes; then
4459 saved_LIBS="$LIBS"
4460 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4461 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4462echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4463 cat >conftest.$ac_ext <<_ACEOF
4464/* confdefs.h. */
4465_ACEOF
4466cat confdefs.h >>conftest.$ac_ext
4467cat >>conftest.$ac_ext <<_ACEOF
4468/* end confdefs.h. */
9b134994 4469#include <gmp.h>
4b900473 4470 #include <mpfr.h>
c6b750e1
DJ
4471int
4472main ()
4473{
9b134994 4474
4b900473
PB
4475 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4476 choke me
4477 #endif
4478 mpfr_t n; mpfr_init(n);
4479 mpfr_t x; mpfr_init(x);
4480 int t;
4481 mpfr_atan2 (n, n, x, GMP_RNDN);
4482 mpfr_erfc (n, x, GMP_RNDN);
4483 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4484
4485 ;
4486 return 0;
4487}
4488_ACEOF
4489rm -f conftest.$ac_objext conftest$ac_exeext
4490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4491 (eval $ac_link) 2>conftest.er1
4492 ac_status=$?
4493 grep -v '^ *+' conftest.er1 >conftest.err
4494 rm -f conftest.er1
4495 cat conftest.err >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } &&
4498 { ac_try='test -z "$ac_c_werror_flag"
4499 || test ! -s conftest.err'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 (eval $ac_try) 2>&5
4502 ac_status=$?
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; } &&
4505 { ac_try='test -s conftest$ac_exeext'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507 (eval $ac_try) 2>&5
4508 ac_status=$?
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; }; then
4511 cat >conftest.$ac_ext <<_ACEOF
4512/* confdefs.h. */
4513_ACEOF
4514cat confdefs.h >>conftest.$ac_ext
4515cat >>conftest.$ac_ext <<_ACEOF
4516/* end confdefs.h. */
4b1cb4fe 4517#include <gmp.h>
4b900473 4518 #include <mpfr.h>
c6b750e1
DJ
4519int
4520main ()
4521{
9dbaa842 4522
4b900473
PB
4523 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4524 choke me
4525 #endif
4526 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4527
4528 ;
4529 return 0;
4530}
4531_ACEOF
4532rm -f conftest.$ac_objext conftest$ac_exeext
4533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4534 (eval $ac_link) 2>conftest.er1
4535 ac_status=$?
4536 grep -v '^ *+' conftest.er1 >conftest.err
4537 rm -f conftest.er1
4538 cat conftest.err >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } &&
4541 { ac_try='test -z "$ac_c_werror_flag"
4542 || test ! -s conftest.err'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 (eval $ac_try) 2>&5
4545 ac_status=$?
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; } &&
4548 { ac_try='test -s conftest$ac_exeext'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 (eval $ac_try) 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4554 echo "$as_me:$LINENO: result: yes" >&5
4555echo "${ECHO_T}yes" >&6
4556else
4557 echo "$as_me: failed program was:" >&5
4558sed 's/^/| /' conftest.$ac_ext >&5
4559
4560echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4561echo "${ECHO_T}buggy but acceptable" >&6
4562fi
4563rm -f conftest.err conftest.$ac_objext \
4564 conftest$ac_exeext conftest.$ac_ext
4565else
4566 echo "$as_me: failed program was:" >&5
4567sed 's/^/| /' conftest.$ac_ext >&5
4568
4569echo "$as_me:$LINENO: result: no" >&5
4570echo "${ECHO_T}no" >&6; have_gmp=no
4571fi
4572rm -f conftest.err conftest.$ac_objext \
4573 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4574 LIBS="$saved_LIBS"
4575 fi
4576 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4577
4b900473 4578 if test x$have_gmp != xyes; then
c6b750e1
DJ
4579 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4580Try the --with-gmp and/or --with-mpfr options to specify their locations.
4581Copies of these libraries' source code can be found at their respective
4582hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4583See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4584If you obtained GMP and/or MPFR from a vendor distribution package, make
4585sure that you have installed both the libraries and the header files.
4586They may be located in separate packages." >&5
4587echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
9dbaa842
DD
4588Try the --with-gmp and/or --with-mpfr options to specify their locations.
4589Copies of these libraries' source code can be found at their respective
4590hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4591See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4592If you obtained GMP and/or MPFR from a vendor distribution package, make
4593sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4594They may be located in separate packages." >&2;}
4595 { (exit 1); exit 1; }; }
4b900473 4596 fi
9dbaa842
DD
4597fi
4598
11b04d1f 4599# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4600
4601
4602
947f426e 4603# By default, C is the only stage 1 language.
9b134994 4604stage1_languages=,c,
1d39f329 4605
9e07f89d
NN
4606# Figure out what language subdirectories are present.
4607# Look if the user specified --enable-languages="..."; if not, use
4608# the environment variable $LANGUAGES if defined. $LANGUAGES might
4609# go away some day.
4610# NB: embedded tabs in this IF block -- do not untabify
4611if test -d ${srcdir}/gcc; then
4612 if test x"${enable_languages+set}" != xset; then
4613 if test x"${LANGUAGES+set}" = xset; then
4614 enable_languages="${LANGUAGES}"
4615 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4616 else
4617 enable_languages=all
4618 fi
4619 else
4620 if test x"${enable_languages}" = x ||
4621 test x"${enable_languages}" = xyes;
4622 then
4623 echo configure.in: --enable-languages needs at least one language argument 1>&2
4624 exit 1
4625 fi
4626 fi
4627 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4628
096f7d00
DE
4629 # 'f95' is the old name for the 'fortran' language. We issue a warning
4630 # and make the substitution.
4631 case ,${enable_languages}, in
4632 *,f95,*)
4633 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4634 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4635 ;;
4636 esac
4637
9e07f89d
NN
4638 # First scan to see if an enabled language requires some other language.
4639 # We assume that a given config-lang.in will list all the language
4640 # front ends it requires, even if some are required indirectly.
4641 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4642 case ${lang_frag} in
4643 ..) ;;
4644 # The odd quoting in the next line works around
4645 # an apparent bug in bash 1.12 on linux.
4646 ${srcdir}/gcc/[*]/config-lang.in) ;;
4647 *)
4648 # From the config-lang.in, get $language, $lang_requires
4649 language=
4650 lang_requires=
4651 . ${lang_frag}
4652 for other in ${lang_requires} ; do
4653 case ,${enable_languages}, in
4654 *,$other,*) ;;
4655 *,all,*) ;;
4656 *,$language,*)
4657 echo " \`$other' language required by \`$language'; enabling" 1>&2
4658 enable_languages="${enable_languages},${other}"
4659 ;;
4660 esac
4661 done
4662 ;;
4663 esac
4664 done
4665
9b134994 4666 new_enable_languages=,c,
9e07f89d 4667 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4668 potential_languages=,c,
9e07f89d
NN
4669
4670 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4671 case ${lang_frag} in
4672 ..) ;;
4673 # The odd quoting in the next line works around
4674 # an apparent bug in bash 1.12 on linux.
4675 ${srcdir}/gcc/[*]/config-lang.in) ;;
4676 *)
c6b750e1 4677 # From the config-lang.in, get $language, $target_libs,
1d39f329 4678 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4679 language=
4680 target_libs=
4681 lang_dirs=
64ce424c 4682 subdir_requires=
9b134994
PB
4683 boot_language=no
4684 build_by_default=yes
9e07f89d 4685 . ${lang_frag}
9b134994
PB
4686 if test x${language} = x; then
4687 echo "${lang_frag} doesn't set \$language." 1>&2
4688 exit 1
4689 fi
4690
4691 case ,${enable_languages}, in
4692 *,${language},*)
9e07f89d
NN
4693 # Language was explicitly selected; include it.
4694 add_this_lang=yes
4695 ;;
9b134994
PB
4696 *,all,*)
4697 # 'all' was selected, select it if it is a default language
4698 add_this_lang=${build_by_default}
9e07f89d
NN
4699 ;;
4700 *)
4701 add_this_lang=no
4702 ;;
4703 esac
4b1cb4fe 4704
64ce424c 4705 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4706 for i in $subdir_requires; do
3d3adb43 4707 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4708 case ,${enable_languages}, in
4709 *,${language},*)
4710 # Specifically requested language; tell them.
c6b750e1
DJ
4711 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4712echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4713 { (exit 1); exit 1; }; }
64ce424c
PB
4714 ;;
4715 *)
4716 # Silently disable.
9b134994 4717 add_this_lang=unsupported
64ce424c
PB
4718 ;;
4719 esac
4720 done
4721
9b134994
PB
4722 # Disable Ada if no preexisting GNAT is available.
4723 case ,${enable_languages},:${language}:${have_gnat} in
4724 *,${language},*:ada:no)
4725 # Specifically requested language; tell them.
c6b750e1
DJ
4726 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4727echo "$as_me: error: GNAT is required to build $language" >&2;}
4728 { (exit 1); exit 1; }; }
9b134994
PB
4729 ;;
4730 *:ada:no)
4731 # Silently disable.
4732 add_this_lang=unsupported
4733 ;;
4734 esac
4735
59f7ec45
HPN
4736 # Disable a language that is unsupported by the target.
4737 case " $unsupported_languages " in
4738 *" $language "*)
9b134994 4739 add_this_lang=unsupported
59f7ec45
HPN
4740 ;;
4741 esac
4742
4b1cb4fe 4743 case $add_this_lang in
9b134994 4744 unsupported)
9e07f89d 4745 # Remove language-dependent dirs.
1d39f329
NN
4746 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4747 ;;
9b134994
PB
4748 no)
4749 # Remove language-dependent dirs; still show language as supported.
4750 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4751 potential_languages="${potential_languages}${language},"
4752 ;;
4753 yes)
4754 new_enable_languages="${new_enable_languages}${language},"
4755 potential_languages="${potential_languages}${language},"
1d39f329
NN
4756 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4757 case ${boot_language} in
4758 yes)
4fa63067 4759 # Add to (comma-separated) list of stage 1 languages.
9b134994 4760 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4761 ;;
4762 esac
4763 ;;
9e07f89d
NN
4764 esac
4765 ;;
4766 esac
4767 done
4768
9b134994
PB
4769 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4770if test "${enable_stage1_languages+set}" = set; then
4771 enableval="$enable_stage1_languages"
4772 case ,${enable_stage1_languages}, in
4773 ,no,|,,)
4774 # Set it to something that will have no effect in the loop below
4775 enable_stage1_languages=c ;;
4776 ,yes,)
4777 enable_stage1_languages=`echo $new_enable_languages | \
4778 sed -e "s/^,//" -e "s/,$//" ` ;;
4779 *,all,*)
4780 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4781 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4782 esac
4783
4784 # Add "good" languages from enable_stage1_languages to stage1_languages,
4785 # while "bad" languages go in missing_languages. Leave no duplicates.
4786 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4787 case $potential_languages in
4788 *,$i,*)
4789 case $stage1_languages in
4790 *,$i,*) ;;
4791 *) stage1_languages="$stage1_languages$i," ;;
4792 esac ;;
4793 *)
4794 case $missing_languages in
4795 *,$i,*) ;;
4796 *) missing_languages="$missing_languages$i," ;;
4797 esac ;;
4798 esac
4799 done
c6b750e1 4800fi;
9b134994
PB
4801
4802 # Remove leading/trailing commas that were added for simplicity
4803 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4804 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4805 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4806 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4807
9e07f89d 4808 if test "x$missing_languages" != x; then
c6b750e1 4809 { { echo "$as_me:$LINENO: error:
27258dd4 4810The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4811Supported languages are: ${potential_languages}" >&5
4812echo "$as_me: error:
4813The following requested languages could not be built: ${missing_languages}
4814Supported languages are: ${potential_languages}" >&2;}
4815 { (exit 1); exit 1; }; }
9e07f89d 4816 fi
9e07f89d
NN
4817 if test "x$new_enable_languages" != "x$enable_languages"; then
4818 echo The following languages will be built: ${new_enable_languages}
9b134994 4819 enable_languages="$new_enable_languages"
9e07f89d 4820 fi
9b134994 4821
c6b750e1 4822
81ec575a 4823 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
4824fi
4825
a6df5a19
PB
4826# Handle --disable-<component> generically.
4827for dir in $configdirs $build_configdirs $target_configdirs ; do
4828 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4829 if eval test x\${enable_${dirname}} "=" xno ; then
4830 noconfigdirs="$noconfigdirs $dir"
4831 fi
4832done
4833
4f0ef2d8
CD
4834# Check for Boehm's garbage collector
4835# Check whether --enable-objc-gc or --disable-objc-gc was given.
4836if test "${enable_objc_gc+set}" = set; then
4837 enableval="$enable_objc_gc"
4838 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4839 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
4840 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4841echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4842 { (exit 1); exit 1; }; }
4f0ef2d8
CD
4843 ;;
4844esac
c6b750e1 4845fi;
4f0ef2d8
CD
4846
4847# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
4848case ,${enable_languages},:${enable_objc_gc} in
4849 *,objc,*:yes)
4f0ef2d8
CD
4850 # Keep target-boehm-gc if requested for Objective-C.
4851 ;;
4f0ef2d8 4852 *)
d42c4017
DA
4853 # Otherwise remove target-boehm-gc depending on target-libjava.
4854 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4855 noconfigdirs="$noconfigdirs target-boehm-gc"
4856 fi
4f0ef2d8
CD
4857 ;;
4858esac
4859
caeba88f
AL
4860# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4861# $build_configdirs and $target_configdirs.
9e07f89d
NN
4862# If we have the source for $noconfigdirs entries, add them to $notsupp.
4863
4864notsupp=""
4865for dir in . $skipdirs $noconfigdirs ; do
caeba88f 4866 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
4867 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4868 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4869 if test -r $srcdir/$dirname/configure ; then
4870 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4871 true
4872 else
4873 notsupp="$notsupp $dir"
4874 fi
4875 fi
4876 fi
caeba88f
AL
4877 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4878 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4879 if test -r $srcdir/$dirname/configure ; then
4880 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4881 true
4882 else
4883 notsupp="$notsupp $dir"
4884 fi
4885 fi
4886 fi
9e07f89d
NN
4887 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4888 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4889 if test -r $srcdir/$dirname/configure ; then
4890 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4891 true
4892 else
4893 notsupp="$notsupp $dir"
4894 fi
4895 fi
4896 fi
4897done
4898
4899# Sometimes the tools are distributed with libiberty but with no other
4900# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 4901# Don't let libgcc imply libiberty either.
9e07f89d 4902if test -n "${target_configdirs}" ; then
f86e35b8 4903 libgcc=
9e07f89d
NN
4904 others=
4905 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
4906 if test "$i" = "libgcc"; then
4907 libgcc=target-libgcc
4908 elif test "$i" != "libiberty" ; then
9e07f89d
NN
4909 if test -r $srcdir/$i/configure ; then
4910 others=yes;
4911 break;
4912 fi
4913 fi
4914 done
4915 if test -z "${others}" ; then
f86e35b8 4916 target_configdirs=$libgcc
9e07f89d
NN
4917 fi
4918fi
4919
4920# Quietly strip out all directories which aren't configurable in this tree.
4921# This relies on all configurable subdirectories being autoconfiscated, which
4922# is now the case.
6a9cf61e
PB
4923build_configdirs_all="$build_configdirs"
4924build_configdirs=
4925for i in ${build_configdirs_all} ; do
c6b750e1 4926 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
4927 if test -f ${srcdir}/$j/configure ; then
4928 build_configdirs="${build_configdirs} $i"
4929 fi
4930done
4931
9e07f89d
NN
4932configdirs_all="$configdirs"
4933configdirs=
4934for i in ${configdirs_all} ; do
4935 if test -f ${srcdir}/$i/configure ; then
4936 configdirs="${configdirs} $i"
4937 fi
4938done
6a9cf61e 4939
9e07f89d
NN
4940target_configdirs_all="$target_configdirs"
4941target_configdirs=
4942for i in ${target_configdirs_all} ; do
c6b750e1 4943 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
4944 if test -f ${srcdir}/$j/configure ; then
4945 target_configdirs="${target_configdirs} $i"
4946 fi
4947done
4948
4949# Produce a warning message for the subdirs we can't configure.
4950# This isn't especially interesting in the Cygnus tree, but in the individual
4951# FSF releases, it's important to let people know when their machine isn't
4952# supported by the one or two programs in a package.
4953
4954if test -n "${notsupp}" && test -z "${norecursion}" ; then
4955 # If $appdirs is non-empty, at least one of those directories must still
4956 # be configured, or we error out. (E.g., if the gas release supports a
4957 # specified target in some subdirs but not the gas subdir, we shouldn't
4958 # pretend that all is well.)
4959 if test -n "$appdirs" ; then
4960 for dir in $appdirs ; do
4961 if test -r $dir/Makefile.in ; then
4962 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4963 appdirs=""
4964 break
4965 fi
6a9cf61e 4966 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
4967 appdirs=""
4968 break
4969 fi
4970 fi
4971 done
4972 if test -n "$appdirs" ; then
4973 echo "*** This configuration is not supported by this package." 1>&2
4974 exit 1
4975 fi
4976 fi
4977 # Okay, some application will build, or we don't care to check. Still
4978 # notify of subdirs not getting built.
4979 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4980 echo " ${notsupp}" 1>&2
4981 echo " (Any other directories should still work fine.)" 1>&2
4982fi
4983
4984case "$host" in
4985 *msdosdjgpp*)
4986 enable_gdbtk=no ;;
4987esac
4988
18f6b6ee
PB
4989# To find our prefix, in gcc_cv_tool_prefix.
4990
4991# The user is always right.
4992if test "${PATH_SEPARATOR+set}" != set; then
4993 echo "#! /bin/sh" >conf$$.sh
4994 echo "exit 0" >>conf$$.sh
4995 chmod +x conf$$.sh
4996 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4997 PATH_SEPARATOR=';'
4998 else
4999 PATH_SEPARATOR=:
5000 fi
5001 rm -f conf$$.sh
5002fi
5003
5004
5005
5006if test "x$exec_prefix" = xNONE; then
5007 if test "x$prefix" = xNONE; then
5008 gcc_cv_tool_prefix=$ac_default_prefix
5009 else
5010 gcc_cv_tool_prefix=$prefix
5011 fi
5012else
5013 gcc_cv_tool_prefix=$exec_prefix
5014fi
5015
5016# If there is no compiler in the tree, use the PATH only. In any
5017# case, if there is no compiler in the tree nobody should use
5018# AS_FOR_TARGET and LD_FOR_TARGET.
5019if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5020 gcc_version=`cat $srcdir/gcc/BASE-VER`
5021 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5022 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5023 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5024 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5025 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5026 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5027else
5028 gcc_cv_tool_dirs=
5029fi
5030
5031if test x$build = x$target && test -n "$md_exec_prefix"; then
5032 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5033fi
5034
5035
5036
9e07f89d
NN
5037copy_dirs=
5038
c6b750e1 5039
a19b6204
MM
5040# Check whether --with-build-sysroot or --without-build-sysroot was given.
5041if test "${with_build_sysroot+set}" = set; then
5042 withval="$with_build_sysroot"
5043 if test x"$withval" != x ; then
5044 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5045 fi
5046else
5047 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5048fi;
a19b6204
MM
5049
5050
9e07f89d
NN
5051# Handle --with-headers=XXX. If the value is not "yes", the contents of
5052# the named directory are copied to $(tooldir)/sys-include.
5053if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5054 if test x${is_cross_compiler} = xno ; then
5055 echo 1>&2 '***' --with-headers is only supported when cross compiling
5056 exit 1
5057 fi
5058 if test x"${with_headers}" != xyes ; then
18f6b6ee 5059 x=${gcc_cv_tool_prefix}
c6b750e1 5060 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5061 fi
5062fi
5063
5064# Handle --with-libs=XXX. If the value is not "yes", the contents of
5065# the name directories are copied to $(tooldir)/lib. Multiple directories
5066# are permitted.
5067if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5068 if test x${is_cross_compiler} = xno ; then
5069 echo 1>&2 '***' --with-libs is only supported when cross compiling
5070 exit 1
5071 fi
5072 if test x"${with_libs}" != xyes ; then
5073 # Copy the libraries in reverse order, so that files in the first named
5074 # library override files in subsequent libraries.
18f6b6ee 5075 x=${gcc_cv_tool_prefix}
9e07f89d 5076 for l in ${with_libs}; do
c6b750e1 5077 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5078 done
5079 fi
5080fi
5081
2429c060
PB
5082# Set with_gnu_as and with_gnu_ld as appropriate.
5083#
5084# This is done by determining whether or not the appropriate directory
5085# is available, and by checking whether or not specific configurations
5086# have requested that this magic not happen.
c6b750e1
DJ
5087#
5088# The command line options always override the explicit settings in
2429c060
PB
5089# configure.in, and the settings in configure.in override this magic.
5090#
c6b750e1 5091# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5092# want to do that, then you should use the --without-gnu-as and
5093# --without-gnu-ld options for the configure script.
5094
5095if test x${use_gnu_as} = x &&
5096 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5097 with_gnu_as=yes
5098 extra_host_args="$extra_host_args --with-gnu-as"
5099fi
5100
5101if test x${use_gnu_ld} = x &&
5102 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5103 with_gnu_ld=yes
5104 extra_host_args="$extra_host_args --with-gnu-ld"
5105fi
5106
5107# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5108# can detect this case.
5109
5110if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5111 with_newlib=yes
5112 extra_host_args="$extra_host_args --with-newlib"
5113fi
5114
9e07f89d
NN
5115# Handle ${copy_dirs}
5116set fnord ${copy_dirs}
5117shift
5118while test $# != 0 ; do
5119 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5120 :
5121 else
5122 echo Copying $1 to $2
5123
5124 # Use the install script to create the directory and all required
5125 # parent directories.
5126 if test -d $2 ; then
5127 :
5128 else
5129 echo >config.temp
5130 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5131 fi
5132
5133 # Copy the directory, assuming we have tar.
5134 # FIXME: Should we use B in the second tar? Not all systems support it.
5135 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5136
5137 # It is the responsibility of the user to correctly adjust all
5138 # symlinks. If somebody can figure out how to handle them correctly
5139 # here, feel free to add the code.
5140
5141 echo $1 > $2/COPIED
5142 fi
5143 shift; shift
5144done
5145
2429c060
PB
5146# Determine a target-dependent exec_prefix that the installed
5147# gcc will search in. Keep this list sorted by triplet, with
5148# the *-*-osname triplets last.
5149md_exec_prefix=
5150case "${target}" in
5151 alpha*-*-*vms*)
5152 md_exec_prefix=/gnu/lib/gcc-lib
5153 ;;
5154 i3456786-pc-msdosdjgpp*)
5155 md_exec_prefix=/dev/env/DJDIR/bin
5156 ;;
5157 i3456786-*-sco3.2v5*)
5158 if test $with_gnu_as = yes; then
5159 md_exec_prefix=/usr/gnu/bin
5160 else
5161 md_exec_prefix=/usr/ccs/bin/elf
5162 fi
5163 ;;
5164
5165 mn10300-*-* | \
5166 powerpc-*-chorusos* | \
5167 powerpc*-*-eabi* | \
5168 powerpc*-*-sysv* | \
5169 powerpc*-*-kaos* | \
5170 s390x-ibm-tpf*)
5171 md_exec_prefix=/usr/ccs/bin
5172 ;;
5173 sparc64-*-elf*)
5174 ;;
5175 v850*-*-*)
5176 md_exec_prefix=/usr/ccs/bin
5177 ;;
5178 xtensa-*-elf*)
5179 ;;
5180
5181 *-*-beos* | \
5182 *-*-elf* | \
5183 *-*-hpux* | \
5184 *-*-netware* | \
5185 *-*-nto-qnx* | \
5186 *-*-rtems* | \
5187 *-*-solaris2* | \
5188 *-*-sysv45* | \
5189 *-*-vxworks* | \
5190 *-wrs-windiss)
5191 md_exec_prefix=/usr/ccs/bin
5192 ;;
5193esac
5194
a0da8069
NN
5195extra_arflags_for_target=
5196extra_nmflags_for_target=
5197extra_ranlibflags_for_target=
5198target_makefile_frag=/dev/null
5199case "${target}" in
4e206d7e
DB
5200 mep*-*-*)
5201 target_makefile_frag="config/mt-mep"
5202 ;;
77d7106f
AM
5203 spu-*-*)
5204 target_makefile_frag="config/mt-spu"
5205 ;;
2a3124ca 5206 *-*-netware*)
a0da8069
NN
5207 target_makefile_frag="config/mt-netware"
5208 ;;
3d6dfe0f
NN
5209 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5210 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5211 ;;
5212 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5213 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5214 # commands to handle both 32-bit and 64-bit objects. These flags are
5215 # harmless if we're using GNU nm or ar.
5216 extra_arflags_for_target=" -X32_64"
5217 extra_nmflags_for_target=" -B -X32_64"
5218 ;;
5219 *-*-darwin*)
5220 # ranlib from Darwin requires the -c flag to look at common symbols.
5221 extra_ranlibflags_for_target=" -c"
5222 ;;
5223 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5224 target_makefile_frag="config/mt-wince"
5225 ;;
5226esac
5227
5228alphaieee_frag=/dev/null
5229case $target in
5230 alpha*-*-*)
5231 # This just makes sure to use the -mieee option to build target libs.
5232 # This should probably be set individually by each library.
5233 alphaieee_frag="config/mt-alphaieee"
5234 ;;
5235esac
5236
5237# If --enable-target-optspace always use -Os instead of -O2 to build
5238# the target libraries, similarly if it is not specified, use -Os
5239# on selected platforms.
5240ospace_frag=/dev/null
5241case "${enable_target_optspace}:${target}" in
5242 yes:*)
5243 ospace_frag="config/mt-ospace"
5244 ;;
5245 :d30v-*)
5246 ospace_frag="config/mt-d30v"
5247 ;;
5248 :m32r-* | :d10v-* | :fr30-*)
5249 ospace_frag="config/mt-ospace"
5250 ;;
5251 no:* | :*)
5252 ;;
5253 *)
5254 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5255 ;;
5256esac
5257
a0da8069
NN
5258# Default to using --with-stabs for certain targets.
5259if test x${with_stabs} = x ; then
5260 case "${target}" in
e31d1ea3 5261 mips*-*-irix[56]*)
a0da8069
NN
5262 ;;
5263 mips*-*-* | alpha*-*-osf*)
5264 with_stabs=yes;
5265 extra_host_args="${extra_host_args} --with-stabs"
5266 ;;
5267 esac
5268fi
5269
5270# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5271# them automatically.
5272case "${host}" in
c6b750e1 5273 hppa*64*-*-hpux11*)
a0da8069
NN
5274 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5275 ;;
5276esac
5277
a0da8069
NN
5278# Some systems (e.g., one of the i386-aix systems the gas testers are
5279# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5280tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5281build_tooldir=${tooldir}
5282
a0da8069
NN
5283# Create a .gdbinit file which runs the one in srcdir
5284# and tells GDB to look there for source files.
5285
5286if test -r ${srcdir}/.gdbinit ; then
5287 case ${srcdir} in
5288 .) ;;
5289 *) cat > ./.gdbinit <<EOF
5290# ${NO_EDIT}
5291dir ${srcdir}
5292dir .
5293source ${srcdir}/.gdbinit
5294EOF
5295 ;;
5296 esac
5297fi
5298
a0da8069
NN
5299# Make sure that the compiler is able to generate an executable. If it
5300# can't, we are probably in trouble. We don't care whether we can run the
5301# executable--we might be using a cross compiler--we only care whether it
5302# can be created. At this point the main configure script has set CC.
5303we_are_ok=no
5304echo "int main () { return 0; }" > conftest.c
5305${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5306if test $? = 0 ; then
5307 if test -s conftest || test -s conftest.exe ; then
5308 we_are_ok=yes
5309 fi
c6b750e1 5310fi
a0da8069
NN
5311case $we_are_ok in
5312 no)
5313 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5314 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5315 rm -f conftest*
5316 exit 1
5317 ;;
5318esac
5319rm -f conftest*
5320
5321# The Solaris /usr/ucb/cc compiler does not appear to work.
5322case "${host}" in
5323 sparc-sun-solaris2*)
5324 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5325 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5326 could_use=
5327 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5328 if test -d /opt/cygnus/bin ; then
5329 if test "$could_use" = "" ; then
5330 could_use="/opt/cygnus/bin"
5331 else
5332 could_use="$could_use or /opt/cygnus/bin"
5333 fi
5334 fi
5335 if test "$could_use" = "" ; then
5336 echo "Warning: compilation may fail because you're using"
5337 echo "/usr/ucb/cc. You should change your PATH or CC "
5338 echo "variable and rerun configure."
5339 else
5340 echo "Warning: compilation may fail because you're using"
5341 echo "/usr/ucb/cc, when you should use the C compiler from"
5342 echo "$could_use. You should change your"
5343 echo "PATH or CC variable and rerun configure."
5344 fi
5345 fi
5346 ;;
5347esac
5348
a0da8069
NN
5349case "${host}" in
5350 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5351 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5352 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5353esac
5354
5355# Record target_configdirs and the configure arguments for target and
5356# build configuration in Makefile.
5357target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5358build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5359
a0da8069
NN
5360# Determine whether gdb needs tk/tcl or not.
5361# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5362# and in that case we want gdb to be built without tk. Ugh!
5363# In fact I believe gdb is the *only* package directly dependent on tk,
5364# so we should be able to put the 'maybe's in unconditionally and
5365# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5366# 100% sure that that's safe though.
c180f501 5367
675c6968 5368gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5369case "$enable_gdbtk" in
5370 no)
5371 GDB_TK="" ;;
c180f501
AC
5372 yes)
5373 GDB_TK="${gdb_tk}" ;;
a0da8069 5374 *)
c180f501
AC
5375 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5376 # distro. Eventually someone will fix this and move Insight, nee
5377 # gdbtk to a separate directory.
5378 if test -d ${srcdir}/gdb/gdbtk ; then
5379 GDB_TK="${gdb_tk}"
5380 else
5381 GDB_TK=""
5382 fi
5383 ;;
a0da8069 5384esac
907be67c
DJ
5385CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5386INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5387
6bd3dfaa 5388# Strip out unwanted targets.
dd12c3a8
NN
5389
5390# While at that, we remove Makefiles if we were started for recursive
5391# configuration, so that the top-level Makefile reconfigures them,
5392# like we used to do when configure itself was recursive.
dd12c3a8 5393
6bd3dfaa
PB
5394# Loop over modules. $extrasub must be used with care, limiting as
5395# much as possible the usage of range addresses. That's because autoconf
5396# splits the sed script to overcome limits in the number of commands,
5397# and relying on carefully-timed sed passes may turn out to be very hard
5398# to maintain later. In this particular case, you just have to be careful
5399# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5400
319cab08
PB
5401# Check whether --enable-bootstrap or --disable-bootstrap was given.
5402if test "${enable_bootstrap+set}" = set; then
5403 enableval="$enable_bootstrap"
c6b750e1 5404
319cab08 5405else
9cb3fa6f 5406 enable_bootstrap=default
c6b750e1 5407fi;
319cab08 5408
9cb3fa6f
PB
5409# Issue errors and warnings for invalid/strange bootstrap combinations.
5410case "$configdirs" in
5411 *gcc*) have_compiler=yes ;;
5412 *) have_compiler=no ;;
5413esac
5414
5415case "$have_compiler:$host:$target:$enable_bootstrap" in
5416 *:*:*:no) ;;
5417
0aed8855 5418 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5419 # and we are in a native configuration.
5420 yes:$build:$build:default)
0aed8855 5421 enable_bootstrap=yes ;;
9cb3fa6f
PB
5422
5423 *:*:*:default)
5424 enable_bootstrap=no ;;
5425
5426 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5427 yes:$build:$build:yes)
9cb3fa6f
PB
5428 ;;
5429
5430 # Other configurations, but we have a compiler. Assume the user knows
5431 # what he's doing.
80911fe1 5432 yes:*:*:yes)
c6b750e1
DJ
5433 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5434echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5435 ;;
5436
5437 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5438 no:*:*:yes)
c6b750e1
DJ
5439 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5440echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5441 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5442
5443 # Fail if wrong command line
5444 *)
c6b750e1
DJ
5445 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5446echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5447 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5448 ;;
5449esac
5450
5451# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5452case "$enable_bootstrap" in
5453 yes)
498d4a71 5454 bootstrap_suffix=bootstrap ;;
319cab08 5455 no)
498d4a71 5456 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5457esac
5458
6a9cf61e 5459for module in ${build_configdirs} ; do
498d4a71
CF
5460 if test -z "${no_recursion}" \
5461 && test -f ${build_subdir}/${module}/Makefile; then
5462 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5463 rm -f ${build_subdir}/${module}/Makefile
5464 fi
5465 extrasub="$extrasub
5466/^@if build-$module\$/d
5467/^@endif build-$module\$/d
5468/^@if build-$module-$bootstrap_suffix\$/d
5469/^@endif build-$module-$bootstrap_suffix\$/d"
5470done
5471for module in ${configdirs} ; do
80911fe1 5472 if test -z "${no_recursion}"; then
8cf39b1b 5473 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5474 if test -f ${file}; then
5475 echo 1>&2 "*** removing ${file} to force reconfigure"
5476 rm -f ${file}
5477 fi
5478 done
498d4a71
CF
5479 fi
5480 extrasub="$extrasub
5481/^@if $module\$/d
5482/^@endif $module\$/d
5483/^@if $module-$bootstrap_suffix\$/d
5484/^@endif $module-$bootstrap_suffix\$/d"
5485done
5486for module in ${target_configdirs} ; do
5487 if test -z "${no_recursion}" \
5488 && test -f ${target_subdir}/${module}/Makefile; then
5489 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5490 rm -f ${target_subdir}/${module}/Makefile
5491 fi
5492 extrasub="$extrasub
5493/^@if target-$module\$/d
5494/^@endif target-$module\$/d
5495/^@if target-$module-$bootstrap_suffix\$/d
5496/^@endif target-$module-$bootstrap_suffix\$/d"
5497done
5498
6bd3dfaa
PB
5499extrasub="$extrasub
5500/^@if /,/^@endif /d"
a0da8069
NN
5501
5502# Create the serialization dependencies. This uses a temporary file.
5503
e6bfb94a
AO
5504# Check whether --enable-serial-configure or --disable-serial-configure was given.
5505if test "${enable_serial_configure+set}" = set; then
5506 enableval="$enable_serial_configure"
e6bfb94a 5507
c6b750e1 5508fi;
e6bfb94a 5509
1047cb91
DD
5510case ${enable_serial_configure} in
5511 yes)
5512 enable_serial_build_configure=yes
5513 enable_serial_host_configure=yes
5514 enable_serial_target_configure=yes
5515 ;;
5516esac
5517
a0da8069
NN
5518# These force 'configure's to be done one at a time, to avoid problems
5519# with contention over a shared config.cache.
5520rm -f serdep.tmp
e6bfb94a 5521echo '# serdep.tmp' > serdep.tmp
a0da8069 5522olditem=
1047cb91 5523test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5524for item in ${build_configdirs} ; do
5525 case ${olditem} in
5526 "") ;;
e6bfb94a 5527 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5528 esac
5529 olditem=${item}
5530done
5531olditem=
1047cb91 5532test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5533for item in ${configdirs} ; do
5534 case ${olditem} in
5535 "") ;;
e6bfb94a 5536 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5537 esac
5538 olditem=${item}
5539done
5540olditem=
1047cb91 5541test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5542for item in ${target_configdirs} ; do
5543 case ${olditem} in
5544 "") ;;
e6bfb94a 5545 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5546 esac
5547 olditem=${item}
5548done
5549serialization_dependencies=serdep.tmp
5550
5551
e6bfb94a 5552# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5553# target, nonopt, and variable assignments. These are the ones we
5554# might not want to pass down to subconfigures. Also strip
5555# program-prefix, program-suffix, and program-transform-name, so that
5556# we can pass down a consistent program-transform-name.
5557baseargs=
5558keep_next=no
5559skip_next=no
5560eval "set -- $ac_configure_args"
18f6b6ee
PB
5561for ac_arg
5562do
c6b750e1
DJ
5563 if test X"$skip_next" = X"yes"; then
5564 skip_next=no
5565 continue
5566 fi
5567 if test X"$keep_next" = X"yes"; then
5568 case $ac_arg in
5569 *\'*)
5570 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5571 esac
5572 baseargs="$baseargs '$ac_arg'"
5573 keep_next=no
5574 continue
5575 fi
5576
5577 # Handle separated arguments. Based on the logic generated by
5578 # autoconf 2.59.
5579 case $ac_arg in
5580 *=* | --config-cache | -C | -disable-* | --disable-* \
5581 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5582 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5583 | -with-* | --with-* | -without-* | --without-* | --x)
5584 separate_arg=no
5585 ;;
5586 -*)
5587 separate_arg=yes
5588 ;;
5589 *)
5590 separate_arg=no
5591 ;;
5592 esac
5593
5594 case "$ac_arg" in
5595 --no*)
5596 continue
5597 ;;
5598 --c* | \
5599 --sr* | \
5600 --ho* | \
5601 --bu* | \
5602 --t* | \
5603 --program-* | \
5604 -cache_file* | \
5605 -srcdir* | \
5606 -host* | \
5607 -build* | \
5608 -target* | \
5609 -program-prefix* | \
5610 -program-suffix* | \
5611 -program-transform-name* )
5612 skip_next=$separate_arg
5613 continue
5614 ;;
5615 -*)
5616 # An option. Add it.
5617 case $ac_arg in
5618 *\'*)
5619 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5620 esac
5621 baseargs="$baseargs '$ac_arg'"
5622 keep_next=$separate_arg
5623 ;;
5624 *)
5625 # Either a variable assignment, or a nonopt (triplet). Don't
5626 # pass it down; let the Makefile handle this.
5627 continue
5628 ;;
5629 esac
5630done
5631# Remove the initial space we just introduced and, as these will be
5632# expanded by make, quote '$'.
5633baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5634
f27d4f92
DJ
5635# Add in --program-transform-name, after --program-prefix and
5636# --program-suffix have been applied to it. Autoconf has already
5637# doubled dollar signs and backslashes in program_transform_name; we want
5638# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5639# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5640# Also, because we want to override the logic in subdir configure scripts to
5641# choose program_transform_name, replace any s,x,x, with s,y,y,.
5642sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5643${program_transform_name}
5644EOF_SED
5645gcc_transform_name=`cat conftestsed.out`
5646rm -f conftestsed.out
5647baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5648
a0da8069
NN
5649# For the build-side libraries, we just need to pretend we're native,
5650# and not use the same cache file. Multilibs are neither needed nor
5651# desired.
4b900473 5652build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5653
5654# For host modules, accept cache file option, or specification as blank.
5655case "${cache_file}" in
5656"") # empty
5657 cache_file_option="" ;;
5658/* | [A-Za-z]:[\\/]* ) # absolute path
5659 cache_file_option="--cache-file=${cache_file}" ;;
5660*) # relative path
5661 cache_file_option="--cache-file=../${cache_file}" ;;
5662esac
5663
82252c06
NN
5664# Host dirs don't like to share a cache file either, horribly enough.
5665# This seems to be due to autoconf 2.5x stupidity.
4b900473 5666host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5667
5668target_configargs=${baseargs}
5669
5670# Passing a --with-cross-host argument lets the target libraries know
5671# whether they are being built with a cross-compiler or being built
5672# native. However, it would be better to use other mechanisms to make the
5673# sorts of decisions they want to make on this basis. Please consider
5674# this option to be deprecated. FIXME.
5675if test x${is_cross_compiler} = xyes ; then
c6b750e1 5676 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5677fi
5678
5679# Default to --enable-multilib.
5680if test x${enable_multilib} = x ; then
5681 target_configargs="--enable-multilib ${target_configargs}"
5682fi
5683
5684# Pass --with-newlib if appropriate. Note that target_configdirs has
5685# changed from the earlier setting of with_newlib.
5686if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5687 target_configargs="--with-newlib ${target_configargs}"
5688fi
5689
95036d20
NN
5690# Different target subdirs use different values of certain variables
5691# (notably CXX). Worse, multilibs use *lots* of different values.
5692# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5693# it doesn't automatically accept command-line overrides of them.
5694# This means it's not safe for target subdirs to share a cache file,
5695# which is disgusting, but there you have it. Hopefully this can be
5696# fixed in future. It's still worthwhile to use a cache file for each
5697# directory. I think.
5698
ae380b45
MS
5699# Pass the appropriate --build, --host, --target and --cache-file arguments.
5700# We need to pass --target, as newer autoconf's requires consistency
5701# for target_alias and gcc doesn't manage it consistently.
4b900473 5702target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5703
a0da8069
NN
5704FLAGS_FOR_TARGET=
5705case " $target_configdirs " in
5706 *" newlib "*)
5707 case " $target_configargs " in
5708 *" --with-newlib "*)
5709 case "$target" in
5710 *-cygwin*)
564b43e5 5711 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
5712 esac
5713
5714 # If we're not building GCC, don't discard standard headers.
5715 if test -d ${srcdir}/gcc; then
5716 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5717
5718 if test "${build}" != "${host}"; then
5719 # On Canadian crosses, CC_FOR_TARGET will have already been set
5720 # by `configure', so we won't have an opportunity to add -Bgcc/
5721 # to it. This is right: we don't want to search that directory
5722 # for binaries, but we want the header files in there, so add
5723 # them explicitly.
b00612cc 5724 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5725
5726 # Someone might think of using the pre-installed headers on
5727 # Canadian crosses, in case the installed compiler is not fully
5728 # compatible with the compiler being built. In this case, it
5729 # would be better to flag an error than risking having
5730 # incompatible object files being constructed. We can't
5731 # guarantee that an error will be flagged, but let's hope the
5732 # compiler will do it, when presented with incompatible header
5733 # files.
5734 fi
5735 fi
5736
5737 case "${target}-${is_cross_compiler}" in
ec11bdc6 5738 i[3456789]86-*-linux*-no)
a0da8069
NN
5739 # Here host == target, so we don't need to build gcc,
5740 # so we don't want to discard standard headers.
5741 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5742 ;;
5743 *)
5744 # If we're building newlib, use its generic headers last, but search
5745 # for any libc-related directories first (so make it the last -B
5746 # switch).
5747 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5748 ;;
5749 esac
5750 ;;
5751 esac
5752 ;;
5753esac
45055374
CV
5754case "$target" in
5755*-mingw*)
5756 # Can't be handled as Cygwin above since Mingw does not use newlib.
5757 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' ;;
5758esac
a0da8069 5759
5fbad20a
DD
5760# Allow the user to override the flags for
5761# our build compiler if desired.
5762CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5763
a0da8069
NN
5764# On Canadian crosses, we'll be searching the right directories for
5765# the previously-installed cross compiler, so don't bother to add
5766# flags for directories within the install tree of the compiler
5767# being built; programs in there won't even run.
5768if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5769 # Search for pre-installed headers if nothing else fits.
bba45b8b 5770 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
5771fi
5772
5773if test "x${use_gnu_ld}" = x &&
5774 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5775 # Arrange for us to find uninstalled linker scripts.
b00612cc 5776 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
5777fi
5778
a481dbb7
DD
5779# Search for other target-specific linker scripts and such.
5780case "${target}" in
5781 m32c-*-* )
5782 if test -d ${srcdir}/libgloss/m32c; then
5783 # This is for crt0.o
5784 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5785 # This is for r8c.ld
5786 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5787 # This is for libnosys.a
5788 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5789 fi
5790 ;;
4e206d7e
DB
5791 mep*)
5792 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5793 ;;
5794esac
5795
a0da8069 5796# Makefile fragments.
3e707e94
PB
5797for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5798do
5799 eval fragval=\$$frag
5800 if test $fragval != /dev/null; then
5801 eval $frag=${srcdir}/$fragval
5802 fi
5803done
a0da8069
NN
5804
5805
5806
5807
5808
5809# Miscellanea: directories, flags, etc.
5810
5811
5812
5813
5814
5815
5816
6a9cf61e 5817# Build module lists & subconfigure args.
a0da8069
NN
5818
5819
5820
be01d343
PB
5821# Host module lists & subconfigure args.
5822
5823
5824
5825# Target module lists & subconfigure args.
5826
5827
5828
5829# Build tools.
5830
5831
5832
5833# Generate default definitions for YACC, M4, LEX and other programs that run
5834# on the build machine. These are used if the Makefile can't locate these
5835# programs in objdir.
5836MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5837
5838for ac_prog in 'bison -y' byacc yacc
5839do
c6b750e1 5840 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5841set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5842echo "$as_me:$LINENO: checking for $ac_word" >&5
5843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5844if test "${ac_cv_prog_YACC+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5846else
5847 if test -n "$YACC"; then
5848 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5849else
c6b750e1
DJ
5850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851for as_dir in $PATH
5852do
5853 IFS=$as_save_IFS
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857 ac_cv_prog_YACC="$ac_prog"
5858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 break 2
5860 fi
5861done
5862done
5863
be01d343
PB
5864fi
5865fi
c6b750e1 5866YACC=$ac_cv_prog_YACC
be01d343 5867if test -n "$YACC"; then
c6b750e1
DJ
5868 echo "$as_me:$LINENO: result: $YACC" >&5
5869echo "${ECHO_T}$YACC" >&6
be01d343 5870else
c6b750e1
DJ
5871 echo "$as_me:$LINENO: result: no" >&5
5872echo "${ECHO_T}no" >&6
be01d343
PB
5873fi
5874
c6b750e1 5875 test -n "$YACC" && break
be01d343
PB
5876done
5877test -n "$YACC" || YACC="$MISSING bison -y"
5878
5879case " $build_configdirs " in
5880 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5881 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5882esac
5883
5884for ac_prog in bison
5885do
c6b750e1 5886 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5887set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5888echo "$as_me:$LINENO: checking for $ac_word" >&5
5889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5890if test "${ac_cv_prog_BISON+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5892else
5893 if test -n "$BISON"; then
5894 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5895else
c6b750e1
DJ
5896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897for as_dir in $PATH
5898do
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903 ac_cv_prog_BISON="$ac_prog"
5904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5906 fi
5907done
5908done
5909
be01d343
PB
5910fi
5911fi
c6b750e1 5912BISON=$ac_cv_prog_BISON
be01d343 5913if test -n "$BISON"; then
c6b750e1
DJ
5914 echo "$as_me:$LINENO: result: $BISON" >&5
5915echo "${ECHO_T}$BISON" >&6
be01d343 5916else
c6b750e1
DJ
5917 echo "$as_me:$LINENO: result: no" >&5
5918echo "${ECHO_T}no" >&6
be01d343
PB
5919fi
5920
c6b750e1 5921 test -n "$BISON" && break
be01d343
PB
5922done
5923test -n "$BISON" || BISON="$MISSING bison"
5924
5925case " $build_configdirs " in
5926 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5927esac
5928
5929for ac_prog in gm4 gnum4 m4
5930do
c6b750e1 5931 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5932set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5933echo "$as_me:$LINENO: checking for $ac_word" >&5
5934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5935if test "${ac_cv_prog_M4+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5937else
5938 if test -n "$M4"; then
5939 ac_cv_prog_M4="$M4" # Let the user override the test.
5940else
c6b750e1
DJ
5941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942for as_dir in $PATH
5943do
5944 IFS=$as_save_IFS
5945 test -z "$as_dir" && as_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5948 ac_cv_prog_M4="$ac_prog"
5949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 break 2
5951 fi
5952done
5953done
5954
be01d343
PB
5955fi
5956fi
c6b750e1 5957M4=$ac_cv_prog_M4
be01d343 5958if test -n "$M4"; then
c6b750e1
DJ
5959 echo "$as_me:$LINENO: result: $M4" >&5
5960echo "${ECHO_T}$M4" >&6
be01d343 5961else
c6b750e1
DJ
5962 echo "$as_me:$LINENO: result: no" >&5
5963echo "${ECHO_T}no" >&6
be01d343
PB
5964fi
5965
c6b750e1 5966 test -n "$M4" && break
be01d343
PB
5967done
5968test -n "$M4" || M4="$MISSING m4"
5969
5970case " $build_configdirs " in
5971 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5972esac
5973
5974for ac_prog in flex lex
5975do
c6b750e1 5976 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5977set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5978echo "$as_me:$LINENO: checking for $ac_word" >&5
5979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5980if test "${ac_cv_prog_LEX+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5982else
5983 if test -n "$LEX"; then
5984 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5985else
c6b750e1
DJ
5986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987for as_dir in $PATH
5988do
5989 IFS=$as_save_IFS
5990 test -z "$as_dir" && as_dir=.
5991 for ac_exec_ext in '' $ac_executable_extensions; do
5992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5993 ac_cv_prog_LEX="$ac_prog"
5994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5995 break 2
5996 fi
5997done
5998done
5999
be01d343
PB
6000fi
6001fi
c6b750e1 6002LEX=$ac_cv_prog_LEX
be01d343 6003if test -n "$LEX"; then
c6b750e1
DJ
6004 echo "$as_me:$LINENO: result: $LEX" >&5
6005echo "${ECHO_T}$LEX" >&6
be01d343 6006else
c6b750e1
DJ
6007 echo "$as_me:$LINENO: result: no" >&5
6008echo "${ECHO_T}no" >&6
be01d343
PB
6009fi
6010
c6b750e1 6011 test -n "$LEX" && break
be01d343
PB
6012done
6013test -n "$LEX" || LEX="$MISSING flex"
6014
6015case " $build_configdirs " in
6016 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6017 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6018esac
6019
6020for ac_prog in flex
6021do
c6b750e1 6022 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6023set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6024echo "$as_me:$LINENO: checking for $ac_word" >&5
6025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6026if test "${ac_cv_prog_FLEX+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6028else
6029 if test -n "$FLEX"; then
6030 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6031else
c6b750e1
DJ
6032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033for as_dir in $PATH
6034do
6035 IFS=$as_save_IFS
6036 test -z "$as_dir" && as_dir=.
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6039 ac_cv_prog_FLEX="$ac_prog"
6040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 break 2
6042 fi
6043done
6044done
6045
be01d343
PB
6046fi
6047fi
c6b750e1 6048FLEX=$ac_cv_prog_FLEX
be01d343 6049if test -n "$FLEX"; then
c6b750e1
DJ
6050 echo "$as_me:$LINENO: result: $FLEX" >&5
6051echo "${ECHO_T}$FLEX" >&6
be01d343 6052else
c6b750e1
DJ
6053 echo "$as_me:$LINENO: result: no" >&5
6054echo "${ECHO_T}no" >&6
be01d343
PB
6055fi
6056
c6b750e1 6057 test -n "$FLEX" && break
be01d343
PB
6058done
6059test -n "$FLEX" || FLEX="$MISSING flex"
6060
6061case " $build_configdirs " in
6062 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6063esac
6064
6065for ac_prog in makeinfo
6066do
c6b750e1 6067 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6068set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6069echo "$as_me:$LINENO: checking for $ac_word" >&5
6070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6071if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6073else
6074 if test -n "$MAKEINFO"; then
6075 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6076else
c6b750e1
DJ
6077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078for as_dir in $PATH
6079do
6080 IFS=$as_save_IFS
6081 test -z "$as_dir" && as_dir=.
6082 for ac_exec_ext in '' $ac_executable_extensions; do
6083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6084 ac_cv_prog_MAKEINFO="$ac_prog"
6085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6086 break 2
6087 fi
6088done
6089done
6090
be01d343
PB
6091fi
6092fi
c6b750e1 6093MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6094if test -n "$MAKEINFO"; then
c6b750e1
DJ
6095 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6096echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6097else
c6b750e1
DJ
6098 echo "$as_me:$LINENO: result: no" >&5
6099echo "${ECHO_T}no" >&6
be01d343
PB
6100fi
6101
c6b750e1 6102 test -n "$MAKEINFO" && break
be01d343
PB
6103done
6104test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6105
6106case " $build_configdirs " in
6107 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6108 *)
6109
a4ef73e9 6110 # For an installed makeinfo, we require it to be from texinfo 4.4 or
be01d343
PB
6111 # higher, else we use the "missing" dummy.
6112 if ${MAKEINFO} --version \
a4ef73e9 6113 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
be01d343
PB
6114 :
6115 else
6116 MAKEINFO="$MISSING makeinfo"
6117 fi
6118 ;;
6119
6120esac
a0da8069 6121
be01d343 6122# FIXME: expect and dejagnu may become build tools?
a0da8069 6123
be01d343
PB
6124for ac_prog in expect
6125do
c6b750e1 6126 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6127set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6128echo "$as_me:$LINENO: checking for $ac_word" >&5
6129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6130if test "${ac_cv_prog_EXPECT+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6132else
6133 if test -n "$EXPECT"; then
6134 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6135else
c6b750e1
DJ
6136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137for as_dir in $PATH
6138do
6139 IFS=$as_save_IFS
6140 test -z "$as_dir" && as_dir=.
6141 for ac_exec_ext in '' $ac_executable_extensions; do
6142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6143 ac_cv_prog_EXPECT="$ac_prog"
6144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6145 break 2
6146 fi
6147done
6148done
6149
be01d343
PB
6150fi
6151fi
c6b750e1 6152EXPECT=$ac_cv_prog_EXPECT
be01d343 6153if test -n "$EXPECT"; then
c6b750e1
DJ
6154 echo "$as_me:$LINENO: result: $EXPECT" >&5
6155echo "${ECHO_T}$EXPECT" >&6
be01d343 6156else
c6b750e1
DJ
6157 echo "$as_me:$LINENO: result: no" >&5
6158echo "${ECHO_T}no" >&6
be01d343 6159fi
a0da8069 6160
c6b750e1 6161 test -n "$EXPECT" && break
be01d343
PB
6162done
6163test -n "$EXPECT" || EXPECT="expect"
a0da8069 6164
be01d343
PB
6165case " $configdirs " in
6166 *" expect "*)
6167 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6168 ;;
6169esac
a0da8069 6170
be01d343
PB
6171for ac_prog in runtest
6172do
c6b750e1 6173 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6174set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6175echo "$as_me:$LINENO: checking for $ac_word" >&5
6176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6177if test "${ac_cv_prog_RUNTEST+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6179else
6180 if test -n "$RUNTEST"; then
6181 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6182else
c6b750e1
DJ
6183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184for as_dir in $PATH
6185do
6186 IFS=$as_save_IFS
6187 test -z "$as_dir" && as_dir=.
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6190 ac_cv_prog_RUNTEST="$ac_prog"
6191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6192 break 2
6193 fi
6194done
6195done
6196
be01d343
PB
6197fi
6198fi
c6b750e1 6199RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6200if test -n "$RUNTEST"; then
c6b750e1
DJ
6201 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6202echo "${ECHO_T}$RUNTEST" >&6
be01d343 6203else
c6b750e1
DJ
6204 echo "$as_me:$LINENO: result: no" >&5
6205echo "${ECHO_T}no" >&6
be01d343 6206fi
a0da8069 6207
c6b750e1 6208 test -n "$RUNTEST" && break
be01d343
PB
6209done
6210test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6211
be01d343
PB
6212case " $configdirs " in
6213 *" dejagnu "*)
6b89cc21 6214 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6215 ;;
6216esac
a0da8069
NN
6217
6218
a0da8069 6219# Host tools.
859789af
AC
6220ncn_tool_prefix=
6221test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6222ncn_target_tool_prefix=
6223test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6224
9a819804
AO
6225
6226
6227if test -n "$AR"; then
6228 ac_cv_prog_AR=$AR
6229elif test -n "$ac_cv_prog_AR"; then
6230 AR=$ac_cv_prog_AR
6231fi
6232
6233if test -n "$ac_cv_prog_AR"; then
6234 for ncn_progname in ar; do
6235 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6236set dummy ${ncn_progname}; ac_word=$2
6237echo "$as_me:$LINENO: checking for $ac_word" >&5
6238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6239if test "${ac_cv_prog_AR+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6241else
6242 if test -n "$AR"; then
6243 ac_cv_prog_AR="$AR" # Let the user override the test.
6244else
6245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246for as_dir in $PATH
6247do
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6252 ac_cv_prog_AR="${ncn_progname}"
6253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 break 2
6255 fi
6256done
6257done
6258
6259fi
6260fi
6261AR=$ac_cv_prog_AR
6262if test -n "$AR"; then
6263 echo "$as_me:$LINENO: result: $AR" >&5
6264echo "${ECHO_T}$AR" >&6
6265else
6266 echo "$as_me:$LINENO: result: no" >&5
6267echo "${ECHO_T}no" >&6
6268fi
6269
6270 done
6271fi
6272
6273for ncn_progname in ar; do
05cbd757
PB
6274 if test -n "$ncn_tool_prefix"; then
6275 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6276set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6277echo "$as_me:$LINENO: checking for $ac_word" >&5
6278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6279if test "${ac_cv_prog_AR+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6281else
6282 if test -n "$AR"; then
6283 ac_cv_prog_AR="$AR" # Let the user override the test.
6284else
c6b750e1
DJ
6285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286for as_dir in $PATH
6287do
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6292 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 break 2
6295 fi
6296done
6297done
6298
859789af
AC
6299fi
6300fi
c6b750e1 6301AR=$ac_cv_prog_AR
859789af 6302if test -n "$AR"; then
c6b750e1
DJ
6303 echo "$as_me:$LINENO: result: $AR" >&5
6304echo "${ECHO_T}$AR" >&6
859789af 6305else
c6b750e1
DJ
6306 echo "$as_me:$LINENO: result: no" >&5
6307echo "${ECHO_T}no" >&6
859789af
AC
6308fi
6309
05cbd757
PB
6310 fi
6311 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6313set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6314echo "$as_me:$LINENO: checking for $ac_word" >&5
6315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6316if test "${ac_cv_prog_AR+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6318else
05cbd757
PB
6319 if test -n "$AR"; then
6320 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6321else
c6b750e1
DJ
6322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323for as_dir in $PATH
6324do
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6329 ac_cv_prog_AR="${ncn_progname}"
6330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 break 2
6332 fi
6333done
6334done
6335
859789af
AC
6336fi
6337fi
c6b750e1 6338AR=$ac_cv_prog_AR
05cbd757 6339if test -n "$AR"; then
c6b750e1
DJ
6340 echo "$as_me:$LINENO: result: $AR" >&5
6341echo "${ECHO_T}$AR" >&6
859789af 6342else
c6b750e1
DJ
6343 echo "$as_me:$LINENO: result: no" >&5
6344echo "${ECHO_T}no" >&6
859789af 6345fi
c6b750e1 6346
05cbd757
PB
6347 fi
6348 test -n "$ac_cv_prog_AR" && break
6349done
6350
6351if test -z "$ac_cv_prog_AR" ; then
6352 set dummy ar
6353 if test $build = $host ; then
6354 AR="$2"
859789af 6355 else
05cbd757 6356 AR="${ncn_tool_prefix}$2"
859789af 6357 fi
859789af
AC
6358fi
6359
9a819804
AO
6360
6361
6362if test -n "$AS"; then
6363 ac_cv_prog_AS=$AS
6364elif test -n "$ac_cv_prog_AS"; then
6365 AS=$ac_cv_prog_AS
6366fi
6367
6368if test -n "$ac_cv_prog_AS"; then
6369 for ncn_progname in as; do
6370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6371set dummy ${ncn_progname}; ac_word=$2
6372echo "$as_me:$LINENO: checking for $ac_word" >&5
6373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6374if test "${ac_cv_prog_AS+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6376else
6377 if test -n "$AS"; then
6378 ac_cv_prog_AS="$AS" # Let the user override the test.
6379else
6380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381for as_dir in $PATH
6382do
6383 IFS=$as_save_IFS
6384 test -z "$as_dir" && as_dir=.
6385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6387 ac_cv_prog_AS="${ncn_progname}"
6388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 break 2
6390 fi
6391done
6392done
6393
6394fi
6395fi
6396AS=$ac_cv_prog_AS
6397if test -n "$AS"; then
6398 echo "$as_me:$LINENO: result: $AS" >&5
6399echo "${ECHO_T}$AS" >&6
6400else
6401 echo "$as_me:$LINENO: result: no" >&5
6402echo "${ECHO_T}no" >&6
6403fi
6404
6405 done
6406fi
6407
6408for ncn_progname in as; do
05cbd757
PB
6409 if test -n "$ncn_tool_prefix"; then
6410 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6411set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6412echo "$as_me:$LINENO: checking for $ac_word" >&5
6413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6414if test "${ac_cv_prog_AS+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6416else
6417 if test -n "$AS"; then
6418 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6419else
6420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421for as_dir in $PATH
6422do
6423 IFS=$as_save_IFS
6424 test -z "$as_dir" && as_dir=.
6425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6427 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6429 break 2
6430 fi
6431done
6432done
6433
859789af
AC
6434fi
6435fi
c6b750e1 6436AS=$ac_cv_prog_AS
859789af 6437if test -n "$AS"; then
c6b750e1
DJ
6438 echo "$as_me:$LINENO: result: $AS" >&5
6439echo "${ECHO_T}$AS" >&6
859789af 6440else
c6b750e1
DJ
6441 echo "$as_me:$LINENO: result: no" >&5
6442echo "${ECHO_T}no" >&6
859789af
AC
6443fi
6444
05cbd757
PB
6445 fi
6446 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6448set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6449echo "$as_me:$LINENO: checking for $ac_word" >&5
6450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6451if test "${ac_cv_prog_AS+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6453else
05cbd757
PB
6454 if test -n "$AS"; then
6455 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6456else
c6b750e1
DJ
6457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458for as_dir in $PATH
6459do
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6464 ac_cv_prog_AS="${ncn_progname}"
6465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 break 2
6467 fi
6468done
6469done
6470
859789af
AC
6471fi
6472fi
c6b750e1 6473AS=$ac_cv_prog_AS
05cbd757 6474if test -n "$AS"; then
c6b750e1
DJ
6475 echo "$as_me:$LINENO: result: $AS" >&5
6476echo "${ECHO_T}$AS" >&6
859789af 6477else
c6b750e1
DJ
6478 echo "$as_me:$LINENO: result: no" >&5
6479echo "${ECHO_T}no" >&6
859789af 6480fi
c6b750e1 6481
05cbd757
PB
6482 fi
6483 test -n "$ac_cv_prog_AS" && break
6484done
6485
6486if test -z "$ac_cv_prog_AS" ; then
6487 set dummy as
6488 if test $build = $host ; then
6489 AS="$2"
859789af 6490 else
05cbd757 6491 AS="${ncn_tool_prefix}$2"
859789af 6492 fi
859789af
AC
6493fi
6494
9a819804
AO
6495
6496
6497if test -n "$DLLTOOL"; then
6498 ac_cv_prog_DLLTOOL=$DLLTOOL
6499elif test -n "$ac_cv_prog_DLLTOOL"; then
6500 DLLTOOL=$ac_cv_prog_DLLTOOL
6501fi
6502
6503if test -n "$ac_cv_prog_DLLTOOL"; then
6504 for ncn_progname in dlltool; do
6505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6506set dummy ${ncn_progname}; ac_word=$2
6507echo "$as_me:$LINENO: checking for $ac_word" >&5
6508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6509if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6510 echo $ECHO_N "(cached) $ECHO_C" >&6
6511else
6512 if test -n "$DLLTOOL"; then
6513 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6514else
6515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516for as_dir in $PATH
6517do
6518 IFS=$as_save_IFS
6519 test -z "$as_dir" && as_dir=.
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6522 ac_cv_prog_DLLTOOL="${ncn_progname}"
6523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 break 2
6525 fi
6526done
6527done
6528
6529fi
6530fi
6531DLLTOOL=$ac_cv_prog_DLLTOOL
6532if test -n "$DLLTOOL"; then
6533 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6534echo "${ECHO_T}$DLLTOOL" >&6
6535else
6536 echo "$as_me:$LINENO: result: no" >&5
6537echo "${ECHO_T}no" >&6
6538fi
6539
6540 done
6541fi
6542
6543for ncn_progname in dlltool; do
05cbd757
PB
6544 if test -n "$ncn_tool_prefix"; then
6545 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6546set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6547echo "$as_me:$LINENO: checking for $ac_word" >&5
6548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6549if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6551else
6552 if test -n "$DLLTOOL"; then
6553 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6554else
c6b750e1
DJ
6555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556for as_dir in $PATH
6557do
6558 IFS=$as_save_IFS
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6564 break 2
6565 fi
6566done
6567done
6568
859789af
AC
6569fi
6570fi
c6b750e1 6571DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6572if test -n "$DLLTOOL"; then
c6b750e1
DJ
6573 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6574echo "${ECHO_T}$DLLTOOL" >&6
859789af 6575else
c6b750e1
DJ
6576 echo "$as_me:$LINENO: result: no" >&5
6577echo "${ECHO_T}no" >&6
859789af
AC
6578fi
6579
05cbd757
PB
6580 fi
6581 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6583set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6584echo "$as_me:$LINENO: checking for $ac_word" >&5
6585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6586if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6588else
05cbd757
PB
6589 if test -n "$DLLTOOL"; then
6590 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6591else
c6b750e1
DJ
6592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593for as_dir in $PATH
6594do
6595 IFS=$as_save_IFS
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6599 ac_cv_prog_DLLTOOL="${ncn_progname}"
6600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 break 2
6602 fi
6603done
6604done
6605
859789af
AC
6606fi
6607fi
c6b750e1 6608DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6609if test -n "$DLLTOOL"; then
c6b750e1
DJ
6610 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6611echo "${ECHO_T}$DLLTOOL" >&6
859789af 6612else
c6b750e1
DJ
6613 echo "$as_me:$LINENO: result: no" >&5
6614echo "${ECHO_T}no" >&6
859789af 6615fi
c6b750e1 6616
05cbd757
PB
6617 fi
6618 test -n "$ac_cv_prog_DLLTOOL" && break
6619done
6620
6621if test -z "$ac_cv_prog_DLLTOOL" ; then
6622 set dummy dlltool
6623 if test $build = $host ; then
6624 DLLTOOL="$2"
859789af 6625 else
05cbd757 6626 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6627 fi
859789af
AC
6628fi
6629
9a819804
AO
6630
6631
6632if test -n "$LD"; then
6633 ac_cv_prog_LD=$LD
6634elif test -n "$ac_cv_prog_LD"; then
6635 LD=$ac_cv_prog_LD
6636fi
6637
6638if test -n "$ac_cv_prog_LD"; then
6639 for ncn_progname in ld; do
6640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6641set dummy ${ncn_progname}; ac_word=$2
6642echo "$as_me:$LINENO: checking for $ac_word" >&5
6643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6644if test "${ac_cv_prog_LD+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6646else
6647 if test -n "$LD"; then
6648 ac_cv_prog_LD="$LD" # Let the user override the test.
6649else
6650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651for as_dir in $PATH
6652do
6653 IFS=$as_save_IFS
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6657 ac_cv_prog_LD="${ncn_progname}"
6658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 break 2
6660 fi
6661done
6662done
6663
6664fi
6665fi
6666LD=$ac_cv_prog_LD
6667if test -n "$LD"; then
6668 echo "$as_me:$LINENO: result: $LD" >&5
6669echo "${ECHO_T}$LD" >&6
6670else
6671 echo "$as_me:$LINENO: result: no" >&5
6672echo "${ECHO_T}no" >&6
6673fi
6674
6675 done
6676fi
6677
6678for ncn_progname in ld; do
05cbd757
PB
6679 if test -n "$ncn_tool_prefix"; then
6680 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6681set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6682echo "$as_me:$LINENO: checking for $ac_word" >&5
6683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6684if test "${ac_cv_prog_LD+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6686else
6687 if test -n "$LD"; then
6688 ac_cv_prog_LD="$LD" # Let the user override the test.
6689else
c6b750e1
DJ
6690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691for as_dir in $PATH
6692do
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6697 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 break 2
6700 fi
6701done
6702done
6703
859789af
AC
6704fi
6705fi
c6b750e1 6706LD=$ac_cv_prog_LD
859789af 6707if test -n "$LD"; then
c6b750e1
DJ
6708 echo "$as_me:$LINENO: result: $LD" >&5
6709echo "${ECHO_T}$LD" >&6
859789af 6710else
c6b750e1
DJ
6711 echo "$as_me:$LINENO: result: no" >&5
6712echo "${ECHO_T}no" >&6
859789af
AC
6713fi
6714
05cbd757
PB
6715 fi
6716 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6718set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6719echo "$as_me:$LINENO: checking for $ac_word" >&5
6720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6721if test "${ac_cv_prog_LD+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6723else
05cbd757
PB
6724 if test -n "$LD"; then
6725 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6726else
c6b750e1
DJ
6727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728for as_dir in $PATH
6729do
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6734 ac_cv_prog_LD="${ncn_progname}"
6735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6737 fi
6738done
6739done
6740
859789af
AC
6741fi
6742fi
c6b750e1 6743LD=$ac_cv_prog_LD
05cbd757 6744if test -n "$LD"; then
c6b750e1
DJ
6745 echo "$as_me:$LINENO: result: $LD" >&5
6746echo "${ECHO_T}$LD" >&6
859789af 6747else
c6b750e1
DJ
6748 echo "$as_me:$LINENO: result: no" >&5
6749echo "${ECHO_T}no" >&6
859789af 6750fi
c6b750e1 6751
05cbd757
PB
6752 fi
6753 test -n "$ac_cv_prog_LD" && break
6754done
6755
6756if test -z "$ac_cv_prog_LD" ; then
6757 set dummy ld
6758 if test $build = $host ; then
6759 LD="$2"
859789af 6760 else
05cbd757 6761 LD="${ncn_tool_prefix}$2"
859789af 6762 fi
859789af
AC
6763fi
6764
9a819804
AO
6765
6766
6767if test -n "$LIPO"; then
6768 ac_cv_prog_LIPO=$LIPO
6769elif test -n "$ac_cv_prog_LIPO"; then
6770 LIPO=$ac_cv_prog_LIPO
6771fi
6772
6773if test -n "$ac_cv_prog_LIPO"; then
6774 for ncn_progname in lipo; do
6775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6776set dummy ${ncn_progname}; ac_word=$2
6777echo "$as_me:$LINENO: checking for $ac_word" >&5
6778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6779if test "${ac_cv_prog_LIPO+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6781else
6782 if test -n "$LIPO"; then
6783 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6784else
6785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786for as_dir in $PATH
6787do
6788 IFS=$as_save_IFS
6789 test -z "$as_dir" && as_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6792 ac_cv_prog_LIPO="${ncn_progname}"
6793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 break 2
6795 fi
6796done
6797done
6798
6799fi
6800fi
6801LIPO=$ac_cv_prog_LIPO
6802if test -n "$LIPO"; then
6803 echo "$as_me:$LINENO: result: $LIPO" >&5
6804echo "${ECHO_T}$LIPO" >&6
6805else
6806 echo "$as_me:$LINENO: result: no" >&5
6807echo "${ECHO_T}no" >&6
6808fi
6809
6810 done
6811fi
6812
6813for ncn_progname in lipo; do
be01d343
PB
6814 if test -n "$ncn_tool_prefix"; then
6815 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6816set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6817echo "$as_me:$LINENO: checking for $ac_word" >&5
6818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6819if test "${ac_cv_prog_LIPO+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6821else
6822 if test -n "$LIPO"; then
6823 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6824else
c6b750e1
DJ
6825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826for as_dir in $PATH
6827do
6828 IFS=$as_save_IFS
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6832 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 break 2
6835 fi
6836done
6837done
6838
be01d343
PB
6839fi
6840fi
c6b750e1 6841LIPO=$ac_cv_prog_LIPO
be01d343 6842if test -n "$LIPO"; then
c6b750e1
DJ
6843 echo "$as_me:$LINENO: result: $LIPO" >&5
6844echo "${ECHO_T}$LIPO" >&6
be01d343 6845else
c6b750e1
DJ
6846 echo "$as_me:$LINENO: result: no" >&5
6847echo "${ECHO_T}no" >&6
be01d343
PB
6848fi
6849
6850 fi
6851 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6853set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6854echo "$as_me:$LINENO: checking for $ac_word" >&5
6855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6856if test "${ac_cv_prog_LIPO+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6858else
6859 if test -n "$LIPO"; then
6860 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6861else
c6b750e1
DJ
6862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863for as_dir in $PATH
6864do
6865 IFS=$as_save_IFS
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869 ac_cv_prog_LIPO="${ncn_progname}"
6870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 break 2
6872 fi
6873done
6874done
6875
be01d343
PB
6876fi
6877fi
c6b750e1 6878LIPO=$ac_cv_prog_LIPO
be01d343 6879if test -n "$LIPO"; then
c6b750e1
DJ
6880 echo "$as_me:$LINENO: result: $LIPO" >&5
6881echo "${ECHO_T}$LIPO" >&6
be01d343 6882else
c6b750e1
DJ
6883 echo "$as_me:$LINENO: result: no" >&5
6884echo "${ECHO_T}no" >&6
be01d343 6885fi
c6b750e1 6886
be01d343
PB
6887 fi
6888 test -n "$ac_cv_prog_LIPO" && break
6889done
6890
6891if test -z "$ac_cv_prog_LIPO" ; then
6892 set dummy lipo
6893 if test $build = $host ; then
6894 LIPO="$2"
6895 else
6896 LIPO="${ncn_tool_prefix}$2"
6897 fi
6898fi
6899
9a819804
AO
6900
6901
6902if test -n "$NM"; then
6903 ac_cv_prog_NM=$NM
6904elif test -n "$ac_cv_prog_NM"; then
6905 NM=$ac_cv_prog_NM
6906fi
6907
6908if test -n "$ac_cv_prog_NM"; then
6909 for ncn_progname in nm; do
6910 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6911set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6912echo "$as_me:$LINENO: checking for $ac_word" >&5
6913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6914if test "${ac_cv_prog_NM+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6916else
6917 if test -n "$NM"; then
6918 ac_cv_prog_NM="$NM" # Let the user override the test.
6919else
c6b750e1
DJ
6920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921for as_dir in $PATH
6922do
6923 IFS=$as_save_IFS
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 6927 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
6928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 break 2
6930 fi
6931done
6932done
6933
859789af
AC
6934fi
6935fi
c6b750e1 6936NM=$ac_cv_prog_NM
859789af 6937if test -n "$NM"; then
c6b750e1
DJ
6938 echo "$as_me:$LINENO: result: $NM" >&5
6939echo "${ECHO_T}$NM" >&6
859789af 6940else
c6b750e1
DJ
6941 echo "$as_me:$LINENO: result: no" >&5
6942echo "${ECHO_T}no" >&6
859789af
AC
6943fi
6944
9a819804
AO
6945 done
6946fi
6947
6948for ncn_progname in nm; do
6949 if test -n "$ncn_tool_prefix"; then
6950 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6951set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6952echo "$as_me:$LINENO: checking for $ac_word" >&5
6953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6954if test "${ac_cv_prog_NM+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6956else
05cbd757
PB
6957 if test -n "$NM"; then
6958 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 6959else
c6b750e1
DJ
6960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961for as_dir in $PATH
6962do
6963 IFS=$as_save_IFS
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 6967 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
6968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 break 2
6970 fi
6971done
6972done
6973
859789af
AC
6974fi
6975fi
c6b750e1 6976NM=$ac_cv_prog_NM
05cbd757 6977if test -n "$NM"; then
c6b750e1
DJ
6978 echo "$as_me:$LINENO: result: $NM" >&5
6979echo "${ECHO_T}$NM" >&6
859789af 6980else
c6b750e1
DJ
6981 echo "$as_me:$LINENO: result: no" >&5
6982echo "${ECHO_T}no" >&6
859789af 6983fi
c6b750e1 6984
05cbd757 6985 fi
9a819804
AO
6986 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
6987 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6988set dummy ${ncn_progname}; ac_word=$2
6989echo "$as_me:$LINENO: checking for $ac_word" >&5
6990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6991if test "${ac_cv_prog_NM+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6993else
6994 if test -n "$NM"; then
6995 ac_cv_prog_NM="$NM" # Let the user override the test.
6996else
6997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998for as_dir in $PATH
6999do
7000 IFS=$as_save_IFS
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7004 ac_cv_prog_NM="${ncn_progname}"
7005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 break 2
7007 fi
7008done
7009done
7010
7011fi
7012fi
7013NM=$ac_cv_prog_NM
7014if test -n "$NM"; then
7015 echo "$as_me:$LINENO: result: $NM" >&5
7016echo "${ECHO_T}$NM" >&6
7017else
7018 echo "$as_me:$LINENO: result: no" >&5
7019echo "${ECHO_T}no" >&6
7020fi
7021
7022 fi
7023 test -n "$ac_cv_prog_NM" && break
7024done
7025
7026if test -z "$ac_cv_prog_NM" ; then
7027 set dummy nm
7028 if test $build = $host ; then
7029 NM="$2"
7030 else
7031 NM="${ncn_tool_prefix}$2"
7032 fi
7033fi
7034
7035
7036
7037if test -n "$RANLIB"; then
7038 ac_cv_prog_RANLIB=$RANLIB
7039elif test -n "$ac_cv_prog_RANLIB"; then
7040 RANLIB=$ac_cv_prog_RANLIB
7041fi
7042
7043if test -n "$ac_cv_prog_RANLIB"; then
7044 for ncn_progname in ranlib; do
7045 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7046set dummy ${ncn_progname}; ac_word=$2
7047echo "$as_me:$LINENO: checking for $ac_word" >&5
7048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7049if test "${ac_cv_prog_RANLIB+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7051else
7052 if test -n "$RANLIB"; then
7053 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7054else
7055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056for as_dir in $PATH
7057do
7058 IFS=$as_save_IFS
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062 ac_cv_prog_RANLIB="${ncn_progname}"
7063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 break 2
7065 fi
7066done
7067done
7068
7069fi
7070fi
7071RANLIB=$ac_cv_prog_RANLIB
7072if test -n "$RANLIB"; then
7073 echo "$as_me:$LINENO: result: $RANLIB" >&5
7074echo "${ECHO_T}$RANLIB" >&6
7075else
7076 echo "$as_me:$LINENO: result: no" >&5
7077echo "${ECHO_T}no" >&6
7078fi
7079
7080 done
7081fi
859789af 7082
9a819804 7083for ncn_progname in ranlib; do
05cbd757
PB
7084 if test -n "$ncn_tool_prefix"; then
7085 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7086set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7087echo "$as_me:$LINENO: checking for $ac_word" >&5
7088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7089if test "${ac_cv_prog_RANLIB+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7091else
7092 if test -n "$RANLIB"; then
7093 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7094else
c6b750e1
DJ
7095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096for as_dir in $PATH
7097do
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7102 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 break 2
7105 fi
7106done
7107done
7108
859789af
AC
7109fi
7110fi
c6b750e1 7111RANLIB=$ac_cv_prog_RANLIB
859789af 7112if test -n "$RANLIB"; then
c6b750e1
DJ
7113 echo "$as_me:$LINENO: result: $RANLIB" >&5
7114echo "${ECHO_T}$RANLIB" >&6
859789af 7115else
c6b750e1
DJ
7116 echo "$as_me:$LINENO: result: no" >&5
7117echo "${ECHO_T}no" >&6
859789af
AC
7118fi
7119
05cbd757
PB
7120 fi
7121 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7122 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7123set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7124echo "$as_me:$LINENO: checking for $ac_word" >&5
7125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7126if test "${ac_cv_prog_RANLIB+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7128else
05cbd757
PB
7129 if test -n "$RANLIB"; then
7130 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7131else
c6b750e1
DJ
7132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7139 ac_cv_prog_RANLIB="${ncn_progname}"
7140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 break 2
7142 fi
7143done
7144done
7145
859789af
AC
7146fi
7147fi
c6b750e1 7148RANLIB=$ac_cv_prog_RANLIB
05cbd757 7149if test -n "$RANLIB"; then
c6b750e1
DJ
7150 echo "$as_me:$LINENO: result: $RANLIB" >&5
7151echo "${ECHO_T}$RANLIB" >&6
859789af 7152else
c6b750e1
DJ
7153 echo "$as_me:$LINENO: result: no" >&5
7154echo "${ECHO_T}no" >&6
859789af 7155fi
c6b750e1 7156
859789af 7157 fi
05cbd757
PB
7158 test -n "$ac_cv_prog_RANLIB" && break
7159done
7160
7161if test -z "$ac_cv_prog_RANLIB" ; then
7162 RANLIB=":"
859789af
AC
7163fi
7164
9a819804
AO
7165
7166
7167if test -n "$STRIP"; then
7168 ac_cv_prog_STRIP=$STRIP
7169elif test -n "$ac_cv_prog_STRIP"; then
7170 STRIP=$ac_cv_prog_STRIP
7171fi
7172
7173if test -n "$ac_cv_prog_STRIP"; then
7174 for ncn_progname in strip; do
7175 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7176set dummy ${ncn_progname}; ac_word=$2
7177echo "$as_me:$LINENO: checking for $ac_word" >&5
7178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7179if test "${ac_cv_prog_STRIP+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7181else
7182 if test -n "$STRIP"; then
7183 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7184else
7185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186for as_dir in $PATH
7187do
7188 IFS=$as_save_IFS
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7192 ac_cv_prog_STRIP="${ncn_progname}"
7193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 break 2
7195 fi
7196done
7197done
7198
7199fi
7200fi
7201STRIP=$ac_cv_prog_STRIP
7202if test -n "$STRIP"; then
7203 echo "$as_me:$LINENO: result: $STRIP" >&5
7204echo "${ECHO_T}$STRIP" >&6
7205else
7206 echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6
7208fi
7209
7210 done
7211fi
7212
7213for ncn_progname in strip; do
be01d343
PB
7214 if test -n "$ncn_tool_prefix"; then
7215 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7216set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7217echo "$as_me:$LINENO: checking for $ac_word" >&5
7218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7219if test "${ac_cv_prog_STRIP+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7221else
7222 if test -n "$STRIP"; then
7223 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7224else
c6b750e1
DJ
7225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226for as_dir in $PATH
7227do
7228 IFS=$as_save_IFS
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7232 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234 break 2
7235 fi
7236done
7237done
7238
be01d343
PB
7239fi
7240fi
c6b750e1 7241STRIP=$ac_cv_prog_STRIP
be01d343 7242if test -n "$STRIP"; then
c6b750e1
DJ
7243 echo "$as_me:$LINENO: result: $STRIP" >&5
7244echo "${ECHO_T}$STRIP" >&6
be01d343 7245else
c6b750e1
DJ
7246 echo "$as_me:$LINENO: result: no" >&5
7247echo "${ECHO_T}no" >&6
be01d343
PB
7248fi
7249
7250 fi
7251 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7253set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7254echo "$as_me:$LINENO: checking for $ac_word" >&5
7255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7256if test "${ac_cv_prog_STRIP+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7258else
7259 if test -n "$STRIP"; then
7260 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7261else
c6b750e1
DJ
7262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263for as_dir in $PATH
7264do
7265 IFS=$as_save_IFS
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269 ac_cv_prog_STRIP="${ncn_progname}"
7270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 break 2
7272 fi
7273done
7274done
7275
be01d343
PB
7276fi
7277fi
c6b750e1 7278STRIP=$ac_cv_prog_STRIP
be01d343 7279if test -n "$STRIP"; then
c6b750e1
DJ
7280 echo "$as_me:$LINENO: result: $STRIP" >&5
7281echo "${ECHO_T}$STRIP" >&6
be01d343 7282else
c6b750e1
DJ
7283 echo "$as_me:$LINENO: result: no" >&5
7284echo "${ECHO_T}no" >&6
be01d343 7285fi
c6b750e1 7286
be01d343
PB
7287 fi
7288 test -n "$ac_cv_prog_STRIP" && break
7289done
7290
7291if test -z "$ac_cv_prog_STRIP" ; then
7292 STRIP=":"
7293fi
7294
9a819804
AO
7295
7296
7297if test -n "$WINDRES"; then
7298 ac_cv_prog_WINDRES=$WINDRES
7299elif test -n "$ac_cv_prog_WINDRES"; then
7300 WINDRES=$ac_cv_prog_WINDRES
7301fi
7302
7303if test -n "$ac_cv_prog_WINDRES"; then
7304 for ncn_progname in windres; do
7305 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7306set dummy ${ncn_progname}; ac_word=$2
7307echo "$as_me:$LINENO: checking for $ac_word" >&5
7308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7309if test "${ac_cv_prog_WINDRES+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7311else
7312 if test -n "$WINDRES"; then
7313 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7314else
7315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316for as_dir in $PATH
7317do
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322 ac_cv_prog_WINDRES="${ncn_progname}"
7323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 break 2
7325 fi
7326done
7327done
7328
7329fi
7330fi
7331WINDRES=$ac_cv_prog_WINDRES
7332if test -n "$WINDRES"; then
7333 echo "$as_me:$LINENO: result: $WINDRES" >&5
7334echo "${ECHO_T}$WINDRES" >&6
7335else
7336 echo "$as_me:$LINENO: result: no" >&5
7337echo "${ECHO_T}no" >&6
7338fi
7339
7340 done
7341fi
7342
7343for ncn_progname in windres; do
05cbd757
PB
7344 if test -n "$ncn_tool_prefix"; then
7345 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7346set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7347echo "$as_me:$LINENO: checking for $ac_word" >&5
7348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7349if test "${ac_cv_prog_WINDRES+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7351else
7352 if test -n "$WINDRES"; then
7353 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7354else
c6b750e1
DJ
7355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356for as_dir in $PATH
7357do
7358 IFS=$as_save_IFS
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 break 2
7365 fi
7366done
7367done
7368
859789af
AC
7369fi
7370fi
c6b750e1 7371WINDRES=$ac_cv_prog_WINDRES
859789af 7372if test -n "$WINDRES"; then
c6b750e1
DJ
7373 echo "$as_me:$LINENO: result: $WINDRES" >&5
7374echo "${ECHO_T}$WINDRES" >&6
859789af 7375else
c6b750e1
DJ
7376 echo "$as_me:$LINENO: result: no" >&5
7377echo "${ECHO_T}no" >&6
859789af
AC
7378fi
7379
05cbd757
PB
7380 fi
7381 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7383set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7384echo "$as_me:$LINENO: checking for $ac_word" >&5
7385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7386if test "${ac_cv_prog_WINDRES+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7388else
05cbd757
PB
7389 if test -n "$WINDRES"; then
7390 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7391else
c6b750e1
DJ
7392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393for as_dir in $PATH
7394do
7395 IFS=$as_save_IFS
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7399 ac_cv_prog_WINDRES="${ncn_progname}"
7400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 break 2
7402 fi
7403done
7404done
7405
859789af
AC
7406fi
7407fi
c6b750e1 7408WINDRES=$ac_cv_prog_WINDRES
05cbd757 7409if test -n "$WINDRES"; then
c6b750e1
DJ
7410 echo "$as_me:$LINENO: result: $WINDRES" >&5
7411echo "${ECHO_T}$WINDRES" >&6
859789af 7412else
c6b750e1
DJ
7413 echo "$as_me:$LINENO: result: no" >&5
7414echo "${ECHO_T}no" >&6
859789af 7415fi
c6b750e1 7416
05cbd757
PB
7417 fi
7418 test -n "$ac_cv_prog_WINDRES" && break
7419done
7420
7421if test -z "$ac_cv_prog_WINDRES" ; then
7422 set dummy windres
7423 if test $build = $host ; then
7424 WINDRES="$2"
859789af 7425 else
05cbd757 7426 WINDRES="${ncn_tool_prefix}$2"
859789af 7427 fi
859789af
AC
7428fi
7429
9a819804
AO
7430
7431
7432if test -n "$OBJCOPY"; then
7433 ac_cv_prog_OBJCOPY=$OBJCOPY
7434elif test -n "$ac_cv_prog_OBJCOPY"; then
7435 OBJCOPY=$ac_cv_prog_OBJCOPY
7436fi
7437
7438if test -n "$ac_cv_prog_OBJCOPY"; then
7439 for ncn_progname in objcopy; do
7440 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7441set dummy ${ncn_progname}; ac_word=$2
7442echo "$as_me:$LINENO: checking for $ac_word" >&5
7443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7444if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7446else
7447 if test -n "$OBJCOPY"; then
7448 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7449else
7450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451for as_dir in $PATH
7452do
7453 IFS=$as_save_IFS
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7457 ac_cv_prog_OBJCOPY="${ncn_progname}"
7458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 break 2
7460 fi
7461done
7462done
7463
7464fi
7465fi
7466OBJCOPY=$ac_cv_prog_OBJCOPY
7467if test -n "$OBJCOPY"; then
7468 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7469echo "${ECHO_T}$OBJCOPY" >&6
7470else
7471 echo "$as_me:$LINENO: result: no" >&5
7472echo "${ECHO_T}no" >&6
7473fi
7474
7475 done
7476fi
7477
7478for ncn_progname in objcopy; do
05cbd757
PB
7479 if test -n "$ncn_tool_prefix"; then
7480 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7481set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7482echo "$as_me:$LINENO: checking for $ac_word" >&5
7483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7484if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7486else
7487 if test -n "$OBJCOPY"; then
7488 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7489else
c6b750e1
DJ
7490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491for as_dir in $PATH
7492do
7493 IFS=$as_save_IFS
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7497 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 break 2
7500 fi
7501done
7502done
7503
859789af
AC
7504fi
7505fi
c6b750e1 7506OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7507if test -n "$OBJCOPY"; then
c6b750e1
DJ
7508 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7509echo "${ECHO_T}$OBJCOPY" >&6
859789af 7510else
c6b750e1
DJ
7511 echo "$as_me:$LINENO: result: no" >&5
7512echo "${ECHO_T}no" >&6
859789af
AC
7513fi
7514
05cbd757
PB
7515 fi
7516 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7518set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7519echo "$as_me:$LINENO: checking for $ac_word" >&5
7520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7521if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7523else
05cbd757
PB
7524 if test -n "$OBJCOPY"; then
7525 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7526else
c6b750e1
DJ
7527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528for as_dir in $PATH
7529do
7530 IFS=$as_save_IFS
7531 test -z "$as_dir" && as_dir=.
7532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7534 ac_cv_prog_OBJCOPY="${ncn_progname}"
7535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7536 break 2
7537 fi
7538done
7539done
7540
859789af
AC
7541fi
7542fi
c6b750e1 7543OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7544if test -n "$OBJCOPY"; then
c6b750e1
DJ
7545 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7546echo "${ECHO_T}$OBJCOPY" >&6
859789af 7547else
c6b750e1
DJ
7548 echo "$as_me:$LINENO: result: no" >&5
7549echo "${ECHO_T}no" >&6
859789af 7550fi
c6b750e1 7551
05cbd757
PB
7552 fi
7553 test -n "$ac_cv_prog_OBJCOPY" && break
7554done
7555
7556if test -z "$ac_cv_prog_OBJCOPY" ; then
7557 set dummy objcopy
7558 if test $build = $host ; then
7559 OBJCOPY="$2"
859789af 7560 else
05cbd757 7561 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7562 fi
859789af
AC
7563fi
7564
9a819804
AO
7565
7566
7567if test -n "$OBJDUMP"; then
7568 ac_cv_prog_OBJDUMP=$OBJDUMP
7569elif test -n "$ac_cv_prog_OBJDUMP"; then
7570 OBJDUMP=$ac_cv_prog_OBJDUMP
7571fi
7572
7573if test -n "$ac_cv_prog_OBJDUMP"; then
7574 for ncn_progname in objdump; do
7575 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7576set dummy ${ncn_progname}; ac_word=$2
7577echo "$as_me:$LINENO: checking for $ac_word" >&5
7578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7579if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7581else
7582 if test -n "$OBJDUMP"; then
7583 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7584else
7585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586for as_dir in $PATH
7587do
7588 IFS=$as_save_IFS
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7592 ac_cv_prog_OBJDUMP="${ncn_progname}"
7593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7594 break 2
7595 fi
7596done
7597done
7598
7599fi
7600fi
7601OBJDUMP=$ac_cv_prog_OBJDUMP
7602if test -n "$OBJDUMP"; then
7603 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7604echo "${ECHO_T}$OBJDUMP" >&6
7605else
7606 echo "$as_me:$LINENO: result: no" >&5
7607echo "${ECHO_T}no" >&6
7608fi
7609
7610 done
7611fi
7612
7613for ncn_progname in objdump; do
05cbd757
PB
7614 if test -n "$ncn_tool_prefix"; then
7615 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7616set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7617echo "$as_me:$LINENO: checking for $ac_word" >&5
7618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7619if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7621else
7622 if test -n "$OBJDUMP"; then
7623 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7624else
c6b750e1
DJ
7625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626for as_dir in $PATH
7627do
7628 IFS=$as_save_IFS
7629 test -z "$as_dir" && as_dir=.
7630 for ac_exec_ext in '' $ac_executable_extensions; do
7631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7632 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 break 2
7635 fi
7636done
7637done
7638
859789af
AC
7639fi
7640fi
c6b750e1 7641OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 7642if test -n "$OBJDUMP"; then
c6b750e1
DJ
7643 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7644echo "${ECHO_T}$OBJDUMP" >&6
859789af 7645else
c6b750e1
DJ
7646 echo "$as_me:$LINENO: result: no" >&5
7647echo "${ECHO_T}no" >&6
859789af
AC
7648fi
7649
05cbd757
PB
7650 fi
7651 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7653set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7654echo "$as_me:$LINENO: checking for $ac_word" >&5
7655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7656if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7657 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7658else
05cbd757
PB
7659 if test -n "$OBJDUMP"; then
7660 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 7661else
c6b750e1
DJ
7662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663for as_dir in $PATH
7664do
7665 IFS=$as_save_IFS
7666 test -z "$as_dir" && as_dir=.
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7669 ac_cv_prog_OBJDUMP="${ncn_progname}"
7670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7671 break 2
7672 fi
7673done
7674done
7675
859789af
AC
7676fi
7677fi
c6b750e1 7678OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 7679if test -n "$OBJDUMP"; then
c6b750e1
DJ
7680 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7681echo "${ECHO_T}$OBJDUMP" >&6
859789af 7682else
c6b750e1
DJ
7683 echo "$as_me:$LINENO: result: no" >&5
7684echo "${ECHO_T}no" >&6
859789af 7685fi
c6b750e1 7686
05cbd757
PB
7687 fi
7688 test -n "$ac_cv_prog_OBJDUMP" && break
7689done
7690
7691if test -z "$ac_cv_prog_OBJDUMP" ; then
7692 set dummy objdump
7693 if test $build = $host ; then
7694 OBJDUMP="$2"
859789af 7695 else
05cbd757 7696 OBJDUMP="${ncn_tool_prefix}$2"
859789af 7697 fi
859789af
AC
7698fi
7699
a0da8069
NN
7700
7701
7702
7703
7704
7705
be01d343 7706# Target tools.
c6b750e1 7707
2429c060
PB
7708# Check whether --with-build-time-tools or --without-build-time-tools was given.
7709if test "${with_build_time_tools+set}" = set; then
7710 withval="$with_build_time_tools"
7711 case x"$withval" in
7712 x/*) ;;
7713 *)
7714 with_build_time_tools=
c6b750e1
DJ
7715 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7716echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
7717 ;;
7718 esac
859789af 7719else
2429c060 7720 with_build_time_tools=
c6b750e1 7721fi;
859789af 7722
9a819804
AO
7723
7724
7725if test -n "$CC_FOR_TARGET"; then
7726 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7727elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7728 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7729fi
7730
7731if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7732 for ncn_progname in cc gcc; do
7733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7734set dummy ${ncn_progname}; ac_word=$2
7735echo "$as_me:$LINENO: checking for $ac_word" >&5
7736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7737if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7739else
7740 if test -n "$CC_FOR_TARGET"; then
7741 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7742else
7743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744for as_dir in $PATH
7745do
7746 IFS=$as_save_IFS
7747 test -z "$as_dir" && as_dir=.
7748 for ac_exec_ext in '' $ac_executable_extensions; do
7749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7750 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7752 break 2
7753 fi
7754done
7755done
7756
7757fi
7758fi
7759CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7760if test -n "$CC_FOR_TARGET"; then
7761 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7762echo "${ECHO_T}$CC_FOR_TARGET" >&6
7763else
7764 echo "$as_me:$LINENO: result: no" >&5
7765echo "${ECHO_T}no" >&6
7766fi
7767
7768 done
7769fi
7770
7771if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 7772 for ncn_progname in cc gcc; do
c6b750e1
DJ
7773 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7774echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7775 if test -x $with_build_time_tools/${ncn_progname}; then
7776 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7777 echo "$as_me:$LINENO: result: yes" >&5
7778echo "${ECHO_T}yes" >&6
cac3d6c4 7779 break
2429c060 7780 else
c6b750e1
DJ
7781 echo "$as_me:$LINENO: result: no" >&5
7782echo "${ECHO_T}no" >&6
cac3d6c4
CM
7783 fi
7784 done
55db4b87
PB
7785fi
7786
2429c060
PB
7787if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7788 for ncn_progname in cc gcc; do
7789 if test -n "$ncn_target_tool_prefix"; then
7790 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7791set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7792echo "$as_me:$LINENO: checking for $ac_word" >&5
7793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7794if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
7796else
7797 if test -n "$CC_FOR_TARGET"; then
7798 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7799else
c6b750e1
DJ
7800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801for as_dir in $PATH
7802do
7803 IFS=$as_save_IFS
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7807 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 break 2
7810 fi
7811done
7812done
7813
55db4b87
PB
7814fi
7815fi
c6b750e1 7816CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 7817if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
7818 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7819echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 7820else
c6b750e1
DJ
7821 echo "$as_me:$LINENO: result: no" >&5
7822echo "${ECHO_T}no" >&6
55db4b87
PB
7823fi
7824
2429c060
PB
7825 fi
7826 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
7827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 7828set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7829echo "$as_me:$LINENO: checking for $ac_word" >&5
7830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7831if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 7833else
05cbd757
PB
7834 if test -n "$CC_FOR_TARGET"; then
7835 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 7836else
c6b750e1
DJ
7837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838for as_dir in $PATH
7839do
7840 IFS=$as_save_IFS
7841 test -z "$as_dir" && as_dir=.
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7844 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7846 break 2
7847 fi
7848done
7849done
7850
55db4b87
PB
7851fi
7852fi
c6b750e1 7853CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 7854if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
7855 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7856echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 7857else
c6b750e1
DJ
7858 echo "$as_me:$LINENO: result: no" >&5
7859echo "${ECHO_T}no" >&6
55db4b87 7860fi
c6b750e1 7861
2429c060
PB
7862 fi
7863 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
7864 done
7865fi
c6b750e1 7866
05cbd757
PB
7867if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
7868 set dummy cc gcc
7869 if test $build = $target ; then
7870 CC_FOR_TARGET="$2"
55db4b87 7871 else
05cbd757 7872 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 7873 fi
55db4b87
PB
7874fi
7875
9a819804
AO
7876
7877
7878if test -n "$CXX_FOR_TARGET"; then
7879 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
7880elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
7881 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7882fi
7883
7884if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
7885 for ncn_progname in c++ g++ cxx gxx; do
7886 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7887set dummy ${ncn_progname}; ac_word=$2
7888echo "$as_me:$LINENO: checking for $ac_word" >&5
7889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7890if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7892else
7893 if test -n "$CXX_FOR_TARGET"; then
7894 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7895else
7896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897for as_dir in $PATH
7898do
7899 IFS=$as_save_IFS
7900 test -z "$as_dir" && as_dir=.
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7903 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
7904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7905 break 2
7906 fi
7907done
7908done
7909
7910fi
7911fi
7912CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7913if test -n "$CXX_FOR_TARGET"; then
7914 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7915echo "${ECHO_T}$CXX_FOR_TARGET" >&6
7916else
7917 echo "$as_me:$LINENO: result: no" >&5
7918echo "${ECHO_T}no" >&6
7919fi
7920
7921 done
7922fi
7923
7924if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 7925 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
7926 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7927echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7928 if test -x $with_build_time_tools/${ncn_progname}; then
7929 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7930 echo "$as_me:$LINENO: result: yes" >&5
7931echo "${ECHO_T}yes" >&6
2429c060
PB
7932 break
7933 else
c6b750e1
DJ
7934 echo "$as_me:$LINENO: result: no" >&5
7935echo "${ECHO_T}no" >&6
2429c060
PB
7936 fi
7937 done
7938fi
7939
7940if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
7941 for ncn_progname in c++ g++ cxx gxx; do
7942 if test -n "$ncn_target_tool_prefix"; then
7943 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7944set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7945echo "$as_me:$LINENO: checking for $ac_word" >&5
7946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7947if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
7949else
7950 if test -n "$CXX_FOR_TARGET"; then
7951 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7952else
c6b750e1
DJ
7953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954for as_dir in $PATH
7955do
7956 IFS=$as_save_IFS
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7960 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7962 break 2
7963 fi
7964done
7965done
7966
55db4b87
PB
7967fi
7968fi
c6b750e1 7969CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 7970if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
7971 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7972echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 7973else
c6b750e1
DJ
7974 echo "$as_me:$LINENO: result: no" >&5
7975echo "${ECHO_T}no" >&6
55db4b87
PB
7976fi
7977
2429c060
PB
7978 fi
7979 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
7980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 7981set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7982echo "$as_me:$LINENO: checking for $ac_word" >&5
7983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7984if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7985 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 7986else
05cbd757
PB
7987 if test -n "$CXX_FOR_TARGET"; then
7988 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 7989else
c6b750e1
DJ
7990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991for as_dir in $PATH
7992do
7993 IFS=$as_save_IFS
7994 test -z "$as_dir" && as_dir=.
7995 for ac_exec_ext in '' $ac_executable_extensions; do
7996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7997 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
7998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7999 break 2
8000 fi
8001done
8002done
8003
55db4b87
PB
8004fi
8005fi
c6b750e1 8006CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8007if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8008 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8009echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8010else
c6b750e1
DJ
8011 echo "$as_me:$LINENO: result: no" >&5
8012echo "${ECHO_T}no" >&6
55db4b87 8013fi
c6b750e1 8014
2429c060
PB
8015 fi
8016 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8017 done
8018fi
c6b750e1 8019
05cbd757
PB
8020if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8021 set dummy c++ g++ cxx gxx
8022 if test $build = $target ; then
8023 CXX_FOR_TARGET="$2"
55db4b87 8024 else
05cbd757 8025 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8026 fi
859789af
AC
8027fi
8028
9a819804
AO
8029
8030
8031if test -n "$GCC_FOR_TARGET"; then
8032 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8033elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8034 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8035fi
8036
8037if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8038 for ncn_progname in gcc; do
8039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8040set dummy ${ncn_progname}; ac_word=$2
8041echo "$as_me:$LINENO: checking for $ac_word" >&5
8042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8043if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8045else
8046 if test -n "$GCC_FOR_TARGET"; then
8047 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8048else
8049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050for as_dir in $PATH
8051do
8052 IFS=$as_save_IFS
8053 test -z "$as_dir" && as_dir=.
8054 for ac_exec_ext in '' $ac_executable_extensions; do
8055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8056 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8058 break 2
8059 fi
8060done
8061done
8062
8063fi
8064fi
8065GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8066if test -n "$GCC_FOR_TARGET"; then
8067 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8068echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8069else
8070 echo "$as_me:$LINENO: result: no" >&5
8071echo "${ECHO_T}no" >&6
8072fi
8073
8074 done
8075fi
8076
8077if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8078 for ncn_progname in gcc; do
c6b750e1
DJ
8079 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8080echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8081 if test -x $with_build_time_tools/${ncn_progname}; then
8082 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8083 echo "$as_me:$LINENO: result: yes" >&5
8084echo "${ECHO_T}yes" >&6
2429c060
PB
8085 break
8086 else
c6b750e1
DJ
8087 echo "$as_me:$LINENO: result: no" >&5
8088echo "${ECHO_T}no" >&6
2429c060
PB
8089 fi
8090 done
8091fi
8092
8093if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8094 for ncn_progname in gcc; do
8095 if test -n "$ncn_target_tool_prefix"; then
8096 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8097set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8098echo "$as_me:$LINENO: checking for $ac_word" >&5
8099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8100if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8102else
2429c060
PB
8103 if test -n "$GCC_FOR_TARGET"; then
8104 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8105else
c6b750e1
DJ
8106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107for as_dir in $PATH
8108do
8109 IFS=$as_save_IFS
8110 test -z "$as_dir" && as_dir=.
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8113 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8115 break 2
8116 fi
8117done
8118done
8119
55db4b87
PB
8120fi
8121fi
c6b750e1 8122GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8123if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8124 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8125echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8126else
c6b750e1
DJ
8127 echo "$as_me:$LINENO: result: no" >&5
8128echo "${ECHO_T}no" >&6
55db4b87
PB
8129fi
8130
2429c060
PB
8131 fi
8132 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8133 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8134set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8135echo "$as_me:$LINENO: checking for $ac_word" >&5
8136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8137if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8139else
05cbd757
PB
8140 if test -n "$GCC_FOR_TARGET"; then
8141 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8142else
c6b750e1
DJ
8143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144for as_dir in $PATH
8145do
8146 IFS=$as_save_IFS
8147 test -z "$as_dir" && as_dir=.
8148 for ac_exec_ext in '' $ac_executable_extensions; do
8149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8150 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8152 break 2
8153 fi
8154done
8155done
8156
55db4b87
PB
8157fi
8158fi
c6b750e1 8159GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8160if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8161 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8162echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8163else
c6b750e1
DJ
8164 echo "$as_me:$LINENO: result: no" >&5
8165echo "${ECHO_T}no" >&6
55db4b87 8166fi
c6b750e1 8167
2429c060
PB
8168 fi
8169 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8170 done
8171fi
c6b750e1 8172
05cbd757
PB
8173if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8174 GCC_FOR_TARGET="${CC_FOR_TARGET}"
55db4b87
PB
8175fi
8176
9a819804
AO
8177
8178
8179if test -n "$GCJ_FOR_TARGET"; then
8180 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8181elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8182 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8183fi
8184
8185if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8186 for ncn_progname in gcj; do
8187 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8188set dummy ${ncn_progname}; ac_word=$2
8189echo "$as_me:$LINENO: checking for $ac_word" >&5
8190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8191if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8193else
8194 if test -n "$GCJ_FOR_TARGET"; then
8195 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8196else
8197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198for as_dir in $PATH
8199do
8200 IFS=$as_save_IFS
8201 test -z "$as_dir" && as_dir=.
8202 for ac_exec_ext in '' $ac_executable_extensions; do
8203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8204 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8206 break 2
8207 fi
8208done
8209done
8210
8211fi
8212fi
8213GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8214if test -n "$GCJ_FOR_TARGET"; then
8215 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8216echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8217else
8218 echo "$as_me:$LINENO: result: no" >&5
8219echo "${ECHO_T}no" >&6
8220fi
8221
8222 done
8223fi
8224
8225if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8226 for ncn_progname in gcj; do
c6b750e1
DJ
8227 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8228echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8229 if test -x $with_build_time_tools/${ncn_progname}; then
8230 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8231 echo "$as_me:$LINENO: result: yes" >&5
8232echo "${ECHO_T}yes" >&6
2429c060
PB
8233 break
8234 else
c6b750e1
DJ
8235 echo "$as_me:$LINENO: result: no" >&5
8236echo "${ECHO_T}no" >&6
2429c060
PB
8237 fi
8238 done
8239fi
8240
8241if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8242 for ncn_progname in gcj; do
8243 if test -n "$ncn_target_tool_prefix"; then
8244 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8245set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8246echo "$as_me:$LINENO: checking for $ac_word" >&5
8247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8248if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8249 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8250else
8251 if test -n "$GCJ_FOR_TARGET"; then
8252 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8253else
c6b750e1
DJ
8254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255for as_dir in $PATH
8256do
8257 IFS=$as_save_IFS
8258 test -z "$as_dir" && as_dir=.
8259 for ac_exec_ext in '' $ac_executable_extensions; do
8260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8261 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8263 break 2
8264 fi
8265done
8266done
8267
55db4b87
PB
8268fi
8269fi
9a819804
AO
8270GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8271if test -n "$GCJ_FOR_TARGET"; then
8272 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8273echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8274else
8275 echo "$as_me:$LINENO: result: no" >&5
8276echo "${ECHO_T}no" >&6
8277fi
8278
8279 fi
8280 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8282set dummy ${ncn_progname}; ac_word=$2
8283echo "$as_me:$LINENO: checking for $ac_word" >&5
8284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8285if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8287else
8288 if test -n "$GCJ_FOR_TARGET"; then
8289 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8290else
8291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292for as_dir in $PATH
8293do
8294 IFS=$as_save_IFS
8295 test -z "$as_dir" && as_dir=.
8296 for ac_exec_ext in '' $ac_executable_extensions; do
8297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8298 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8300 break 2
8301 fi
8302done
8303done
8304
8305fi
8306fi
8307GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8308if test -n "$GCJ_FOR_TARGET"; then
8309 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8310echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8311else
8312 echo "$as_me:$LINENO: result: no" >&5
8313echo "${ECHO_T}no" >&6
8314fi
8315
8316 fi
8317 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8318 done
8319fi
8320
8321if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8322 set dummy gcj
8323 if test $build = $target ; then
8324 GCJ_FOR_TARGET="$2"
8325 else
8326 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8327 fi
8328fi
8329
8330
8331
8332if test -n "$GFORTRAN_FOR_TARGET"; then
8333 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8334elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8335 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8336fi
8337
9a819804
AO
8338if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8339 for ncn_progname in gfortran; do
8340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8341set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8342echo "$as_me:$LINENO: checking for $ac_word" >&5
8343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8344if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8345 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8346else
9a819804
AO
8347 if test -n "$GFORTRAN_FOR_TARGET"; then
8348 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8349else
c6b750e1
DJ
8350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351for as_dir in $PATH
8352do
8353 IFS=$as_save_IFS
8354 test -z "$as_dir" && as_dir=.
8355 for ac_exec_ext in '' $ac_executable_extensions; do
8356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8357 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8359 break 2
8360 fi
8361done
8362done
8363
55db4b87
PB
8364fi
8365fi
9a819804
AO
8366GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8367if test -n "$GFORTRAN_FOR_TARGET"; then
8368 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8369echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8370else
c6b750e1
DJ
8371 echo "$as_me:$LINENO: result: no" >&5
8372echo "${ECHO_T}no" >&6
55db4b87 8373fi
c6b750e1 8374
2429c060
PB
8375 done
8376fi
c6b750e1 8377
9a819804 8378if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8379 for ncn_progname in gfortran; do
c6b750e1
DJ
8380 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8381echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8382 if test -x $with_build_time_tools/${ncn_progname}; then
8383 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8384 echo "$as_me:$LINENO: result: yes" >&5
8385echo "${ECHO_T}yes" >&6
2429c060
PB
8386 break
8387 else
c6b750e1
DJ
8388 echo "$as_me:$LINENO: result: no" >&5
8389echo "${ECHO_T}no" >&6
2429c060
PB
8390 fi
8391 done
8392fi
8393
8394if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8395 for ncn_progname in gfortran; do
8396 if test -n "$ncn_target_tool_prefix"; then
8397 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8398set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8399echo "$as_me:$LINENO: checking for $ac_word" >&5
8400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8401if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8403else
8404 if test -n "$GFORTRAN_FOR_TARGET"; then
8405 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8406else
c6b750e1
DJ
8407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408for as_dir in $PATH
8409do
8410 IFS=$as_save_IFS
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8416 break 2
8417 fi
8418done
8419done
8420
55db4b87
PB
8421fi
8422fi
c6b750e1 8423GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8424if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8425 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8426echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8427else
c6b750e1
DJ
8428 echo "$as_me:$LINENO: result: no" >&5
8429echo "${ECHO_T}no" >&6
55db4b87
PB
8430fi
8431
2429c060
PB
8432 fi
8433 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8434 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8435set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8436echo "$as_me:$LINENO: checking for $ac_word" >&5
8437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8438if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8440else
05cbd757 8441 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8442 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8443else
8444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445for as_dir in $PATH
8446do
8447 IFS=$as_save_IFS
8448 test -z "$as_dir" && as_dir=.
8449 for ac_exec_ext in '' $ac_executable_extensions; do
8450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8451 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8453 break 2
8454 fi
8455done
8456done
8457
55db4b87
PB
8458fi
8459fi
c6b750e1 8460GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8461if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8462 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8463echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8464else
c6b750e1
DJ
8465 echo "$as_me:$LINENO: result: no" >&5
8466echo "${ECHO_T}no" >&6
55db4b87 8467fi
c6b750e1 8468
2429c060
PB
8469 fi
8470 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8471 done
8472fi
c6b750e1 8473
05cbd757
PB
8474if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8475 set dummy gfortran
8476 if test $build = $target ; then
8477 GFORTRAN_FOR_TARGET="$2"
55db4b87 8478 else
05cbd757 8479 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8480 fi
859789af
AC
8481fi
8482
2429c060
PB
8483
8484
2429c060
PB
8485cat > conftest.c << \EOF
8486#ifdef __GNUC__
8487 gcc_yay;
8488#endif
8489EOF
8490if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8491 have_gcc_for_target=yes
859789af 8492else
2429c060
PB
8493 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8494 have_gcc_for_target=no
859789af 8495fi
2429c060
PB
8496rm conftest.c
8497
8498
8499
859789af 8500
2429c060
PB
8501if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8502 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8503 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8504echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8505 if test -x $with_build_time_tools/ar; then
8506 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8507 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8508 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8509echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8510 else
c6b750e1
DJ
8511 echo "$as_me:$LINENO: result: no" >&5
8512echo "${ECHO_T}no" >&6
3a35eeb3 8513 fi
2429c060
PB
8514 elif test $build != $host && test $have_gcc_for_target = yes; then
8515 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
8516 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
8517 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8518 fi
2429c060 8519fi
c6b750e1 8520if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8521 # Extract the first word of "ar", so it can be a program name with args.
8522set dummy ar; ac_word=$2
c6b750e1
DJ
8523echo "$as_me:$LINENO: checking for $ac_word" >&5
8524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8525if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8526 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8527else
c6b750e1
DJ
8528 case $AR_FOR_TARGET in
8529 [\\/]* | ?:[\\/]*)
2429c060
PB
8530 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8531 ;;
2429c060 8532 *)
c6b750e1
DJ
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534for as_dir in $gcc_cv_tool_dirs
8535do
8536 IFS=$as_save_IFS
8537 test -z "$as_dir" && as_dir=.
8538 for ac_exec_ext in '' $ac_executable_extensions; do
8539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8540 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8542 break 2
8543 fi
8544done
8545done
8546
2429c060
PB
8547 ;;
8548esac
859789af 8549fi
c6b750e1
DJ
8550AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8551
2429c060 8552if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8553 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8554echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8555else
c6b750e1
DJ
8556 echo "$as_me:$LINENO: result: no" >&5
8557echo "${ECHO_T}no" >&6
859789af 8558fi
05cbd757 8559
2429c060
PB
8560fi
8561if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8562
8563
8564if test -n "$AR_FOR_TARGET"; then
8565 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8566elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8567 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8568fi
8569
8570if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8571 for ncn_progname in ar; do
8572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8573set dummy ${ncn_progname}; ac_word=$2
8574echo "$as_me:$LINENO: checking for $ac_word" >&5
8575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8576if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8578else
8579 if test -n "$AR_FOR_TARGET"; then
8580 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8581else
8582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583for as_dir in $PATH
8584do
8585 IFS=$as_save_IFS
8586 test -z "$as_dir" && as_dir=.
8587 for ac_exec_ext in '' $ac_executable_extensions; do
8588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8589 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8591 break 2
8592 fi
8593done
8594done
8595
8596fi
8597fi
8598AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8599if test -n "$AR_FOR_TARGET"; then
8600 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8601echo "${ECHO_T}$AR_FOR_TARGET" >&6
8602else
8603 echo "$as_me:$LINENO: result: no" >&5
8604echo "${ECHO_T}no" >&6
8605fi
8606
8607 done
8608fi
8609
8610if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8611 for ncn_progname in ar; do
c6b750e1
DJ
8612 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8613echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8614 if test -x $with_build_time_tools/${ncn_progname}; then
8615 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8616 echo "$as_me:$LINENO: result: yes" >&5
8617echo "${ECHO_T}yes" >&6
2429c060
PB
8618 break
8619 else
c6b750e1
DJ
8620 echo "$as_me:$LINENO: result: no" >&5
8621echo "${ECHO_T}no" >&6
2429c060
PB
8622 fi
8623 done
859789af
AC
8624fi
8625
2429c060
PB
8626if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8627 for ncn_progname in ar; do
8628 if test -n "$ncn_target_tool_prefix"; then
8629 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8630set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8631echo "$as_me:$LINENO: checking for $ac_word" >&5
8632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8633if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8635else
2429c060
PB
8636 if test -n "$AR_FOR_TARGET"; then
8637 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 8638else
c6b750e1
DJ
8639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640for as_dir in $PATH
8641do
8642 IFS=$as_save_IFS
8643 test -z "$as_dir" && as_dir=.
8644 for ac_exec_ext in '' $ac_executable_extensions; do
8645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8646 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8648 break 2
8649 fi
8650done
8651done
8652
7e0f7140
GK
8653fi
8654fi
c6b750e1 8655AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8656if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8657 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8658echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8659else
c6b750e1
DJ
8660 echo "$as_me:$LINENO: result: no" >&5
8661echo "${ECHO_T}no" >&6
7e0f7140
GK
8662fi
8663
2429c060
PB
8664 fi
8665 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8666 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 8667set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8668echo "$as_me:$LINENO: checking for $ac_word" >&5
8669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8670if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8672else
2429c060
PB
8673 if test -n "$AR_FOR_TARGET"; then
8674 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 8675else
c6b750e1
DJ
8676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8677for as_dir in $PATH
8678do
8679 IFS=$as_save_IFS
8680 test -z "$as_dir" && as_dir=.
8681 for ac_exec_ext in '' $ac_executable_extensions; do
8682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8683 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8685 break 2
8686 fi
8687done
8688done
8689
7e0f7140
GK
8690fi
8691fi
c6b750e1 8692AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8693if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8694 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8695echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8696else
c6b750e1
DJ
8697 echo "$as_me:$LINENO: result: no" >&5
8698echo "${ECHO_T}no" >&6
7e0f7140 8699fi
c6b750e1 8700
2429c060
PB
8701 fi
8702 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8703 done
8704fi
c6b750e1 8705
2429c060
PB
8706if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8707 set dummy ar
7e0f7140 8708 if test $build = $target ; then
2429c060 8709 AR_FOR_TARGET="$2"
7e0f7140 8710 else
2429c060 8711 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140
GK
8712 fi
8713fi
8714
3a35eeb3
PB
8715else
8716 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
8717fi
8718
8719
8720
8721
8722if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8723 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8724 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8725echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8726 if test -x $with_build_time_tools/as; then
8727 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8728 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
8729 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8730echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 8731 else
c6b750e1
DJ
8732 echo "$as_me:$LINENO: result: no" >&5
8733echo "${ECHO_T}no" >&6
3a35eeb3 8734 fi
2429c060
PB
8735 elif test $build != $host && test $have_gcc_for_target = yes; then
8736 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
8737 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
8738 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
8739 fi
8740fi
c6b750e1 8741if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8742 # Extract the first word of "as", so it can be a program name with args.
8743set dummy as; ac_word=$2
c6b750e1
DJ
8744echo "$as_me:$LINENO: checking for $ac_word" >&5
8745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8746if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8747 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8748else
c6b750e1
DJ
8749 case $AS_FOR_TARGET in
8750 [\\/]* | ?:[\\/]*)
2429c060
PB
8751 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8752 ;;
2429c060 8753 *)
c6b750e1
DJ
8754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755for as_dir in $gcc_cv_tool_dirs
8756do
8757 IFS=$as_save_IFS
8758 test -z "$as_dir" && as_dir=.
8759 for ac_exec_ext in '' $ac_executable_extensions; do
8760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8761 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8763 break 2
8764 fi
8765done
8766done
8767
2429c060
PB
8768 ;;
8769esac
8770fi
c6b750e1
DJ
8771AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
8772
2429c060 8773if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
8774 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8775echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 8776else
c6b750e1
DJ
8777 echo "$as_me:$LINENO: result: no" >&5
8778echo "${ECHO_T}no" >&6
2429c060
PB
8779fi
8780
8781fi
8782if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
8783
8784
8785if test -n "$AS_FOR_TARGET"; then
8786 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
8787elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8788 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8789fi
8790
8791if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8792 for ncn_progname in as; do
8793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8794set dummy ${ncn_progname}; ac_word=$2
8795echo "$as_me:$LINENO: checking for $ac_word" >&5
8796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8797if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8798 echo $ECHO_N "(cached) $ECHO_C" >&6
8799else
8800 if test -n "$AS_FOR_TARGET"; then
8801 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8802else
8803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8804for as_dir in $PATH
8805do
8806 IFS=$as_save_IFS
8807 test -z "$as_dir" && as_dir=.
8808 for ac_exec_ext in '' $ac_executable_extensions; do
8809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8810 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
8811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8812 break 2
8813 fi
8814done
8815done
8816
8817fi
8818fi
8819AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8820if test -n "$AS_FOR_TARGET"; then
8821 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8822echo "${ECHO_T}$AS_FOR_TARGET" >&6
8823else
8824 echo "$as_me:$LINENO: result: no" >&5
8825echo "${ECHO_T}no" >&6
8826fi
8827
8828 done
8829fi
8830
8831if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8832 for ncn_progname in as; do
c6b750e1
DJ
8833 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8834echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8835 if test -x $with_build_time_tools/${ncn_progname}; then
8836 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8837 echo "$as_me:$LINENO: result: yes" >&5
8838echo "${ECHO_T}yes" >&6
2429c060
PB
8839 break
8840 else
c6b750e1
DJ
8841 echo "$as_me:$LINENO: result: no" >&5
8842echo "${ECHO_T}no" >&6
2429c060
PB
8843 fi
8844 done
8845fi
8846
8847if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
8848 for ncn_progname in as; do
8849 if test -n "$ncn_target_tool_prefix"; then
8850 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8851set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8852echo "$as_me:$LINENO: checking for $ac_word" >&5
8853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8854if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8855 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
8856else
8857 if test -n "$AS_FOR_TARGET"; then
8858 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8859else
c6b750e1
DJ
8860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8861for as_dir in $PATH
8862do
8863 IFS=$as_save_IFS
8864 test -z "$as_dir" && as_dir=.
8865 for ac_exec_ext in '' $ac_executable_extensions; do
8866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8867 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8869 break 2
8870 fi
8871done
8872done
8873
2429c060
PB
8874fi
8875fi
c6b750e1 8876AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 8877if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
8878 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8879echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 8880else
c6b750e1
DJ
8881 echo "$as_me:$LINENO: result: no" >&5
8882echo "${ECHO_T}no" >&6
2429c060
PB
8883fi
8884
8885 fi
8886 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
8887 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8888set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8889echo "$as_me:$LINENO: checking for $ac_word" >&5
8890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8891if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8892 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
8893else
8894 if test -n "$AS_FOR_TARGET"; then
8895 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8896else
c6b750e1
DJ
8897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8898for as_dir in $PATH
8899do
8900 IFS=$as_save_IFS
8901 test -z "$as_dir" && as_dir=.
8902 for ac_exec_ext in '' $ac_executable_extensions; do
8903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8904 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
8905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8906 break 2
8907 fi
8908done
8909done
8910
2429c060
PB
8911fi
8912fi
c6b750e1 8913AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 8914if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
8915 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8916echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 8917else
c6b750e1
DJ
8918 echo "$as_me:$LINENO: result: no" >&5
8919echo "${ECHO_T}no" >&6
2429c060 8920fi
c6b750e1 8921
2429c060
PB
8922 fi
8923 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
8924 done
8925fi
c6b750e1 8926
2429c060
PB
8927if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
8928 set dummy as
8929 if test $build = $target ; then
8930 AS_FOR_TARGET="$2"
8931 else
8932 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
8933 fi
8934fi
8935
3a35eeb3
PB
8936else
8937 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
8938fi
8939
8940
8941
8942
8943if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
8944 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8945 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
8946echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8947 if test -x $with_build_time_tools/dlltool; then
8948 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
8949 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
8950 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
8951echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 8952 else
c6b750e1
DJ
8953 echo "$as_me:$LINENO: result: no" >&5
8954echo "${ECHO_T}no" >&6
3a35eeb3 8955 fi
2429c060
PB
8956 elif test $build != $host && test $have_gcc_for_target = yes; then
8957 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
8958 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
8959 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
8960 fi
8961fi
c6b750e1 8962if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8963 # Extract the first word of "dlltool", so it can be a program name with args.
8964set dummy dlltool; ac_word=$2
c6b750e1
DJ
8965echo "$as_me:$LINENO: checking for $ac_word" >&5
8966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8967if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
8968 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8969else
c6b750e1
DJ
8970 case $DLLTOOL_FOR_TARGET in
8971 [\\/]* | ?:[\\/]*)
2429c060
PB
8972 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
8973 ;;
2429c060 8974 *)
c6b750e1
DJ
8975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976for as_dir in $gcc_cv_tool_dirs
8977do
8978 IFS=$as_save_IFS
8979 test -z "$as_dir" && as_dir=.
8980 for ac_exec_ext in '' $ac_executable_extensions; do
8981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8982 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8984 break 2
8985 fi
8986done
8987done
8988
2429c060
PB
8989 ;;
8990esac
8991fi
c6b750e1
DJ
8992DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
8993
2429c060 8994if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
8995 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
8996echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 8997else
c6b750e1
DJ
8998 echo "$as_me:$LINENO: result: no" >&5
8999echo "${ECHO_T}no" >&6
2429c060
PB
9000fi
9001
9002fi
9003if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9004
9005
9006if test -n "$DLLTOOL_FOR_TARGET"; then
9007 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9008elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9009 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9010fi
9011
9012if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9013 for ncn_progname in dlltool; do
9014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9015set dummy ${ncn_progname}; ac_word=$2
9016echo "$as_me:$LINENO: checking for $ac_word" >&5
9017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9018if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9020else
9021 if test -n "$DLLTOOL_FOR_TARGET"; then
9022 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9023else
9024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9025for as_dir in $PATH
9026do
9027 IFS=$as_save_IFS
9028 test -z "$as_dir" && as_dir=.
9029 for ac_exec_ext in '' $ac_executable_extensions; do
9030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9031 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9033 break 2
9034 fi
9035done
9036done
9037
9038fi
9039fi
9040DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9041if test -n "$DLLTOOL_FOR_TARGET"; then
9042 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9043echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9044else
9045 echo "$as_me:$LINENO: result: no" >&5
9046echo "${ECHO_T}no" >&6
9047fi
9048
9049 done
9050fi
9051
9052if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9053 for ncn_progname in dlltool; do
c6b750e1
DJ
9054 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9055echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9056 if test -x $with_build_time_tools/${ncn_progname}; then
9057 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9058 echo "$as_me:$LINENO: result: yes" >&5
9059echo "${ECHO_T}yes" >&6
2429c060
PB
9060 break
9061 else
c6b750e1
DJ
9062 echo "$as_me:$LINENO: result: no" >&5
9063echo "${ECHO_T}no" >&6
2429c060
PB
9064 fi
9065 done
9066fi
9067
9068if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9069 for ncn_progname in dlltool; do
9070 if test -n "$ncn_target_tool_prefix"; then
9071 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9072set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9073echo "$as_me:$LINENO: checking for $ac_word" >&5
9074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9075if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9077else
9078 if test -n "$DLLTOOL_FOR_TARGET"; then
9079 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9080else
c6b750e1
DJ
9081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082for as_dir in $PATH
9083do
9084 IFS=$as_save_IFS
9085 test -z "$as_dir" && as_dir=.
9086 for ac_exec_ext in '' $ac_executable_extensions; do
9087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9088 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9090 break 2
9091 fi
9092done
9093done
9094
2429c060
PB
9095fi
9096fi
c6b750e1 9097DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9098if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9099 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9100echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9101else
c6b750e1
DJ
9102 echo "$as_me:$LINENO: result: no" >&5
9103echo "${ECHO_T}no" >&6
2429c060
PB
9104fi
9105
9106 fi
9107 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9109set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9110echo "$as_me:$LINENO: checking for $ac_word" >&5
9111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9112if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9114else
9115 if test -n "$DLLTOOL_FOR_TARGET"; then
9116 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9117else
c6b750e1
DJ
9118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119for as_dir in $PATH
9120do
9121 IFS=$as_save_IFS
9122 test -z "$as_dir" && as_dir=.
9123 for ac_exec_ext in '' $ac_executable_extensions; do
9124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9125 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9127 break 2
9128 fi
9129done
9130done
9131
2429c060
PB
9132fi
9133fi
c6b750e1 9134DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9135if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9136 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9137echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9138else
c6b750e1
DJ
9139 echo "$as_me:$LINENO: result: no" >&5
9140echo "${ECHO_T}no" >&6
2429c060 9141fi
c6b750e1 9142
2429c060
PB
9143 fi
9144 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9145 done
9146fi
c6b750e1 9147
2429c060
PB
9148if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9149 set dummy dlltool
9150 if test $build = $target ; then
9151 DLLTOOL_FOR_TARGET="$2"
9152 else
9153 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9154 fi
9155fi
9156
3a35eeb3
PB
9157else
9158 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9159fi
9160
9161
9162
9163
9164if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9165 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9166 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9167echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9168 if test -x $with_build_time_tools/ld; then
9169 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9170 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9171 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9172echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9173 else
c6b750e1
DJ
9174 echo "$as_me:$LINENO: result: no" >&5
9175echo "${ECHO_T}no" >&6
3a35eeb3 9176 fi
2429c060
PB
9177 elif test $build != $host && test $have_gcc_for_target = yes; then
9178 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
9179 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
9180 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9181 fi
9182fi
c6b750e1 9183if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9184 # Extract the first word of "ld", so it can be a program name with args.
9185set dummy ld; ac_word=$2
c6b750e1
DJ
9186echo "$as_me:$LINENO: checking for $ac_word" >&5
9187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9188if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9190else
c6b750e1
DJ
9191 case $LD_FOR_TARGET in
9192 [\\/]* | ?:[\\/]*)
2429c060
PB
9193 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9194 ;;
2429c060 9195 *)
c6b750e1
DJ
9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9197for as_dir in $gcc_cv_tool_dirs
9198do
9199 IFS=$as_save_IFS
9200 test -z "$as_dir" && as_dir=.
9201 for ac_exec_ext in '' $ac_executable_extensions; do
9202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9203 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9205 break 2
9206 fi
9207done
9208done
9209
2429c060
PB
9210 ;;
9211esac
9212fi
c6b750e1
DJ
9213LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9214
2429c060 9215if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9216 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9217echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9218else
c6b750e1
DJ
9219 echo "$as_me:$LINENO: result: no" >&5
9220echo "${ECHO_T}no" >&6
2429c060
PB
9221fi
9222
9223fi
9224if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9225
9226
9227if test -n "$LD_FOR_TARGET"; then
9228 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9229elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9230 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9231fi
9232
9233if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9234 for ncn_progname in ld; do
9235 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9236set dummy ${ncn_progname}; ac_word=$2
9237echo "$as_me:$LINENO: checking for $ac_word" >&5
9238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9239if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9240 echo $ECHO_N "(cached) $ECHO_C" >&6
9241else
9242 if test -n "$LD_FOR_TARGET"; then
9243 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9244else
9245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9246for as_dir in $PATH
9247do
9248 IFS=$as_save_IFS
9249 test -z "$as_dir" && as_dir=.
9250 for ac_exec_ext in '' $ac_executable_extensions; do
9251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9252 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9254 break 2
9255 fi
9256done
9257done
9258
9259fi
9260fi
9261LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9262if test -n "$LD_FOR_TARGET"; then
9263 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9264echo "${ECHO_T}$LD_FOR_TARGET" >&6
9265else
9266 echo "$as_me:$LINENO: result: no" >&5
9267echo "${ECHO_T}no" >&6
9268fi
9269
9270 done
9271fi
9272
9273if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9274 for ncn_progname in ld; do
c6b750e1
DJ
9275 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9276echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9277 if test -x $with_build_time_tools/${ncn_progname}; then
9278 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9279 echo "$as_me:$LINENO: result: yes" >&5
9280echo "${ECHO_T}yes" >&6
2429c060
PB
9281 break
9282 else
c6b750e1
DJ
9283 echo "$as_me:$LINENO: result: no" >&5
9284echo "${ECHO_T}no" >&6
2429c060
PB
9285 fi
9286 done
9287fi
9288
9289if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9290 for ncn_progname in ld; do
9291 if test -n "$ncn_target_tool_prefix"; then
9292 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9293set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9294echo "$as_me:$LINENO: checking for $ac_word" >&5
9295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9296if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9298else
9299 if test -n "$LD_FOR_TARGET"; then
9300 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9301else
c6b750e1
DJ
9302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9303for as_dir in $PATH
9304do
9305 IFS=$as_save_IFS
9306 test -z "$as_dir" && as_dir=.
9307 for ac_exec_ext in '' $ac_executable_extensions; do
9308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9309 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9311 break 2
9312 fi
9313done
9314done
9315
2429c060
PB
9316fi
9317fi
c6b750e1 9318LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9319if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9320 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9321echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9322else
c6b750e1
DJ
9323 echo "$as_me:$LINENO: result: no" >&5
9324echo "${ECHO_T}no" >&6
2429c060
PB
9325fi
9326
9327 fi
9328 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9330set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9331echo "$as_me:$LINENO: checking for $ac_word" >&5
9332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9333if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9334 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9335else
9336 if test -n "$LD_FOR_TARGET"; then
9337 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9338else
c6b750e1
DJ
9339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340for as_dir in $PATH
9341do
9342 IFS=$as_save_IFS
9343 test -z "$as_dir" && as_dir=.
9344 for ac_exec_ext in '' $ac_executable_extensions; do
9345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9346 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9348 break 2
9349 fi
9350done
9351done
9352
2429c060
PB
9353fi
9354fi
c6b750e1 9355LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9356if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9357 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9358echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9359else
c6b750e1
DJ
9360 echo "$as_me:$LINENO: result: no" >&5
9361echo "${ECHO_T}no" >&6
2429c060 9362fi
c6b750e1 9363
2429c060
PB
9364 fi
9365 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9366 done
9367fi
c6b750e1 9368
2429c060
PB
9369if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9370 set dummy ld
9371 if test $build = $target ; then
9372 LD_FOR_TARGET="$2"
9373 else
9374 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9375 fi
9376fi
9377
3a35eeb3
PB
9378else
9379 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9380fi
9381
9382
9383
9384
9385if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9386 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9387 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9388echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9389 if test -x $with_build_time_tools/lipo; then
9390 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9391 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9392 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9393echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9394 else
c6b750e1
DJ
9395 echo "$as_me:$LINENO: result: no" >&5
9396echo "${ECHO_T}no" >&6
3a35eeb3 9397 fi
2429c060
PB
9398 elif test $build != $host && test $have_gcc_for_target = yes; then
9399 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
9400 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
9401 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9402 fi
9403fi
9a819804
AO
9404if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9405 # Extract the first word of "lipo", so it can be a program name with args.
9406set dummy lipo; ac_word=$2
9407echo "$as_me:$LINENO: checking for $ac_word" >&5
9408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9409if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
9411else
9412 case $LIPO_FOR_TARGET in
9413 [\\/]* | ?:[\\/]*)
9414 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9415 ;;
9416 *)
9417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9418for as_dir in $gcc_cv_tool_dirs
9419do
9420 IFS=$as_save_IFS
9421 test -z "$as_dir" && as_dir=.
9422 for ac_exec_ext in '' $ac_executable_extensions; do
9423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9424 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9426 break 2
9427 fi
9428done
9429done
9430
9431 ;;
9432esac
9433fi
9434LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9435
9436if test -n "$LIPO_FOR_TARGET"; then
9437 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9438echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9439else
9440 echo "$as_me:$LINENO: result: no" >&5
9441echo "${ECHO_T}no" >&6
9442fi
9443
9444fi
9445if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9446
9447
9448if test -n "$LIPO_FOR_TARGET"; then
9449 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9450elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9451 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9452fi
9453
9454if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9455 for ncn_progname in lipo; do
9456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9457set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9458echo "$as_me:$LINENO: checking for $ac_word" >&5
9459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9460if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9461 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9462else
9a819804
AO
9463 if test -n "$LIPO_FOR_TARGET"; then
9464 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9465else
9466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9467for as_dir in $PATH
c6b750e1
DJ
9468do
9469 IFS=$as_save_IFS
9470 test -z "$as_dir" && as_dir=.
9471 for ac_exec_ext in '' $ac_executable_extensions; do
9472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9473 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9475 break 2
9476 fi
9477done
9478done
9479
2429c060 9480fi
9a819804
AO
9481fi
9482LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9483if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9484 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9485echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9486else
c6b750e1
DJ
9487 echo "$as_me:$LINENO: result: no" >&5
9488echo "${ECHO_T}no" >&6
2429c060
PB
9489fi
9490
9a819804 9491 done
2429c060 9492fi
9a819804
AO
9493
9494if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9495 for ncn_progname in lipo; do
c6b750e1
DJ
9496 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9497echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9498 if test -x $with_build_time_tools/${ncn_progname}; then
9499 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9500 echo "$as_me:$LINENO: result: yes" >&5
9501echo "${ECHO_T}yes" >&6
2429c060
PB
9502 break
9503 else
c6b750e1
DJ
9504 echo "$as_me:$LINENO: result: no" >&5
9505echo "${ECHO_T}no" >&6
2429c060
PB
9506 fi
9507 done
9508fi
9509
9510if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9511 for ncn_progname in lipo; do
9512 if test -n "$ncn_target_tool_prefix"; then
9513 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9514set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9515echo "$as_me:$LINENO: checking for $ac_word" >&5
9516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9517if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9519else
9520 if test -n "$LIPO_FOR_TARGET"; then
9521 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9522else
c6b750e1
DJ
9523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9524for as_dir in $PATH
9525do
9526 IFS=$as_save_IFS
9527 test -z "$as_dir" && as_dir=.
9528 for ac_exec_ext in '' $ac_executable_extensions; do
9529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9530 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9532 break 2
9533 fi
9534done
9535done
9536
2429c060
PB
9537fi
9538fi
c6b750e1 9539LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9540if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9541 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9542echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9543else
c6b750e1
DJ
9544 echo "$as_me:$LINENO: result: no" >&5
9545echo "${ECHO_T}no" >&6
2429c060
PB
9546fi
9547
9548 fi
9549 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9551set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9552echo "$as_me:$LINENO: checking for $ac_word" >&5
9553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9554if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9556else
9557 if test -n "$LIPO_FOR_TARGET"; then
9558 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9559else
c6b750e1
DJ
9560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9561for as_dir in $PATH
9562do
9563 IFS=$as_save_IFS
9564 test -z "$as_dir" && as_dir=.
9565 for ac_exec_ext in '' $ac_executable_extensions; do
9566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9567 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9569 break 2
9570 fi
9571done
9572done
9573
2429c060
PB
9574fi
9575fi
c6b750e1 9576LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9577if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9578 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9579echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9580else
c6b750e1
DJ
9581 echo "$as_me:$LINENO: result: no" >&5
9582echo "${ECHO_T}no" >&6
2429c060 9583fi
c6b750e1 9584
2429c060
PB
9585 fi
9586 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9587 done
9588fi
c6b750e1 9589
2429c060
PB
9590if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9591 set dummy lipo
9592 if test $build = $target ; then
9593 LIPO_FOR_TARGET="$2"
9594 else
9595 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9596 fi
9597fi
9598
3a35eeb3
PB
9599else
9600 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
9601fi
9602
9603
9604
9605
9606if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9607 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9608 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9609echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9610 if test -x $with_build_time_tools/nm; then
9611 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9612 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
9613 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9614echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 9615 else
c6b750e1
DJ
9616 echo "$as_me:$LINENO: result: no" >&5
9617echo "${ECHO_T}no" >&6
3a35eeb3 9618 fi
2429c060
PB
9619 elif test $build != $host && test $have_gcc_for_target = yes; then
9620 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
9621 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
9622 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
9623 fi
9624fi
c6b750e1 9625if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9626 # Extract the first word of "nm", so it can be a program name with args.
9627set dummy nm; ac_word=$2
c6b750e1
DJ
9628echo "$as_me:$LINENO: checking for $ac_word" >&5
9629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9630if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9632else
c6b750e1
DJ
9633 case $NM_FOR_TARGET in
9634 [\\/]* | ?:[\\/]*)
2429c060
PB
9635 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9636 ;;
2429c060 9637 *)
c6b750e1
DJ
9638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9639for as_dir in $gcc_cv_tool_dirs
9640do
9641 IFS=$as_save_IFS
9642 test -z "$as_dir" && as_dir=.
9643 for ac_exec_ext in '' $ac_executable_extensions; do
9644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9645 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9647 break 2
9648 fi
9649done
9650done
9651
2429c060
PB
9652 ;;
9653esac
9654fi
c6b750e1
DJ
9655NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9656
2429c060 9657if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9658 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9659echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 9660else
c6b750e1
DJ
9661 echo "$as_me:$LINENO: result: no" >&5
9662echo "${ECHO_T}no" >&6
2429c060
PB
9663fi
9664
9665fi
9666if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
9667
9668
9669if test -n "$NM_FOR_TARGET"; then
9670 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9671elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9672 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9673fi
9674
9675if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9676 for ncn_progname in nm; do
9677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9678set dummy ${ncn_progname}; ac_word=$2
9679echo "$as_me:$LINENO: checking for $ac_word" >&5
9680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9681if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9683else
9684 if test -n "$NM_FOR_TARGET"; then
9685 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9686else
9687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9688for as_dir in $PATH
9689do
9690 IFS=$as_save_IFS
9691 test -z "$as_dir" && as_dir=.
9692 for ac_exec_ext in '' $ac_executable_extensions; do
9693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9694 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9696 break 2
9697 fi
9698done
9699done
9700
9701fi
9702fi
9703NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9704if test -n "$NM_FOR_TARGET"; then
9705 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9706echo "${ECHO_T}$NM_FOR_TARGET" >&6
9707else
9708 echo "$as_me:$LINENO: result: no" >&5
9709echo "${ECHO_T}no" >&6
9710fi
9711
9712 done
9713fi
9714
9715if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9716 for ncn_progname in nm; do
c6b750e1
DJ
9717 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9718echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9719 if test -x $with_build_time_tools/${ncn_progname}; then
9720 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9721 echo "$as_me:$LINENO: result: yes" >&5
9722echo "${ECHO_T}yes" >&6
2429c060
PB
9723 break
9724 else
c6b750e1
DJ
9725 echo "$as_me:$LINENO: result: no" >&5
9726echo "${ECHO_T}no" >&6
2429c060
PB
9727 fi
9728 done
9729fi
9730
9731if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9732 for ncn_progname in nm; do
9733 if test -n "$ncn_target_tool_prefix"; then
9734 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 9735set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9736echo "$as_me:$LINENO: checking for $ac_word" >&5
9737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9738if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9740else
55db4b87
PB
9741 if test -n "$NM_FOR_TARGET"; then
9742 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 9743else
c6b750e1
DJ
9744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9745for as_dir in $PATH
9746do
9747 IFS=$as_save_IFS
9748 test -z "$as_dir" && as_dir=.
9749 for ac_exec_ext in '' $ac_executable_extensions; do
9750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9751 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9753 break 2
9754 fi
9755done
9756done
9757
859789af
AC
9758fi
9759fi
c6b750e1 9760NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 9761if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9762 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9763echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 9764else
c6b750e1
DJ
9765 echo "$as_me:$LINENO: result: no" >&5
9766echo "${ECHO_T}no" >&6
859789af
AC
9767fi
9768
2429c060
PB
9769 fi
9770 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
9771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9772set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9773echo "$as_me:$LINENO: checking for $ac_word" >&5
9774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9775if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9777else
05cbd757
PB
9778 if test -n "$NM_FOR_TARGET"; then
9779 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 9780else
c6b750e1
DJ
9781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9782for as_dir in $PATH
9783do
9784 IFS=$as_save_IFS
9785 test -z "$as_dir" && as_dir=.
9786 for ac_exec_ext in '' $ac_executable_extensions; do
9787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9788 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9790 break 2
9791 fi
9792done
9793done
9794
859789af
AC
9795fi
9796fi
c6b750e1 9797NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 9798if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9799 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9800echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 9801else
c6b750e1
DJ
9802 echo "$as_me:$LINENO: result: no" >&5
9803echo "${ECHO_T}no" >&6
859789af 9804fi
c6b750e1 9805
2429c060
PB
9806 fi
9807 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
9808 done
9809fi
c6b750e1 9810
05cbd757
PB
9811if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
9812 set dummy nm
9813 if test $build = $target ; then
9814 NM_FOR_TARGET="$2"
859789af 9815 else
05cbd757 9816 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 9817 fi
859789af
AC
9818fi
9819
3a35eeb3
PB
9820else
9821 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
9822fi
9823
9824
9825
9826
9827if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9828 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9829 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
9830echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9831 if test -x $with_build_time_tools/objdump; then
9832 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
9833 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
9834 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
9835echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 9836 else
c6b750e1
DJ
9837 echo "$as_me:$LINENO: result: no" >&5
9838echo "${ECHO_T}no" >&6
3a35eeb3 9839 fi
2429c060
PB
9840 elif test $build != $host && test $have_gcc_for_target = yes; then
9841 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
9842 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
9843 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
9844 fi
9845fi
c6b750e1 9846if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9847 # Extract the first word of "objdump", so it can be a program name with args.
9848set dummy objdump; ac_word=$2
c6b750e1
DJ
9849echo "$as_me:$LINENO: checking for $ac_word" >&5
9850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9851if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
9852 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9853else
c6b750e1
DJ
9854 case $OBJDUMP_FOR_TARGET in
9855 [\\/]* | ?:[\\/]*)
2429c060
PB
9856 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
9857 ;;
2429c060 9858 *)
c6b750e1
DJ
9859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9860for as_dir in $gcc_cv_tool_dirs
9861do
9862 IFS=$as_save_IFS
9863 test -z "$as_dir" && as_dir=.
9864 for ac_exec_ext in '' $ac_executable_extensions; do
9865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9866 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9868 break 2
9869 fi
9870done
9871done
9872
2429c060
PB
9873 ;;
9874esac
9875fi
c6b750e1
DJ
9876OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
9877
2429c060 9878if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
9879 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
9880echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 9881else
c6b750e1
DJ
9882 echo "$as_me:$LINENO: result: no" >&5
9883echo "${ECHO_T}no" >&6
2429c060
PB
9884fi
9885
9886fi
9887if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
9888
9889
9890if test -n "$OBJDUMP_FOR_TARGET"; then
9891 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
9892elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
9893 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
9894fi
9895
9896if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
9897 for ncn_progname in objdump; do
9898 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9899set dummy ${ncn_progname}; ac_word=$2
9900echo "$as_me:$LINENO: checking for $ac_word" >&5
9901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9902if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9904else
9905 if test -n "$OBJDUMP_FOR_TARGET"; then
9906 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
9907else
9908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9909for as_dir in $PATH
9910do
9911 IFS=$as_save_IFS
9912 test -z "$as_dir" && as_dir=.
9913 for ac_exec_ext in '' $ac_executable_extensions; do
9914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9915 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
9916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9917 break 2
9918 fi
9919done
9920done
9921
9922fi
9923fi
9924OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
9925if test -n "$OBJDUMP_FOR_TARGET"; then
9926 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
9927echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
9928else
9929 echo "$as_me:$LINENO: result: no" >&5
9930echo "${ECHO_T}no" >&6
9931fi
9932
9933 done
9934fi
9935
9936if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9937 for ncn_progname in objdump; do
c6b750e1
DJ
9938 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9939echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9940 if test -x $with_build_time_tools/${ncn_progname}; then
9941 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9942 echo "$as_me:$LINENO: result: yes" >&5
9943echo "${ECHO_T}yes" >&6
2429c060
PB
9944 break
9945 else
c6b750e1
DJ
9946 echo "$as_me:$LINENO: result: no" >&5
9947echo "${ECHO_T}no" >&6
2429c060
PB
9948 fi
9949 done
9950fi
9951
9952if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
9953 for ncn_progname in objdump; do
9954 if test -n "$ncn_target_tool_prefix"; then
9955 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9956set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9957echo "$as_me:$LINENO: checking for $ac_word" >&5
9958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9959if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
9961else
9962 if test -n "$OBJDUMP_FOR_TARGET"; then
9963 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
9964else
c6b750e1
DJ
9965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966for as_dir in $PATH
9967do
9968 IFS=$as_save_IFS
9969 test -z "$as_dir" && as_dir=.
9970 for ac_exec_ext in '' $ac_executable_extensions; do
9971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9972 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9974 break 2
9975 fi
9976done
9977done
9978
5ae72758
DJ
9979fi
9980fi
c6b750e1 9981OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 9982if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
9983 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
9984echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 9985else
c6b750e1
DJ
9986 echo "$as_me:$LINENO: result: no" >&5
9987echo "${ECHO_T}no" >&6
5ae72758
DJ
9988fi
9989
2429c060
PB
9990 fi
9991 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
9992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 9993set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9994echo "$as_me:$LINENO: checking for $ac_word" >&5
9995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9996if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
9998else
9999 if test -n "$OBJDUMP_FOR_TARGET"; then
10000 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10001else
c6b750e1
DJ
10002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003for as_dir in $PATH
10004do
10005 IFS=$as_save_IFS
10006 test -z "$as_dir" && as_dir=.
10007 for ac_exec_ext in '' $ac_executable_extensions; do
10008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10009 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10011 break 2
10012 fi
10013done
10014done
10015
5ae72758
DJ
10016fi
10017fi
c6b750e1 10018OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10019if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10020 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10021echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10022else
c6b750e1
DJ
10023 echo "$as_me:$LINENO: result: no" >&5
10024echo "${ECHO_T}no" >&6
5ae72758 10025fi
c6b750e1 10026
2429c060
PB
10027 fi
10028 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10029 done
10030fi
c6b750e1 10031
5ae72758
DJ
10032if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10033 set dummy objdump
10034 if test $build = $target ; then
10035 OBJDUMP_FOR_TARGET="$2"
10036 else
10037 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10038 fi
10039fi
10040
3a35eeb3
PB
10041else
10042 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10043fi
10044
10045
10046
10047
10048if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10049 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10050 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10051echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10052 if test -x $with_build_time_tools/ranlib; then
10053 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10054 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10055 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10056echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10057 else
c6b750e1
DJ
10058 echo "$as_me:$LINENO: result: no" >&5
10059echo "${ECHO_T}no" >&6
3a35eeb3 10060 fi
2429c060
PB
10061 elif test $build != $host && test $have_gcc_for_target = yes; then
10062 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
10063 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
10064 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10065 fi
10066fi
c6b750e1 10067if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10068 # Extract the first word of "ranlib", so it can be a program name with args.
10069set dummy ranlib; ac_word=$2
c6b750e1
DJ
10070echo "$as_me:$LINENO: checking for $ac_word" >&5
10071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10072if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10074else
c6b750e1
DJ
10075 case $RANLIB_FOR_TARGET in
10076 [\\/]* | ?:[\\/]*)
2429c060
PB
10077 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10078 ;;
2429c060 10079 *)
c6b750e1
DJ
10080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10081for as_dir in $gcc_cv_tool_dirs
10082do
10083 IFS=$as_save_IFS
10084 test -z "$as_dir" && as_dir=.
10085 for ac_exec_ext in '' $ac_executable_extensions; do
10086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10087 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10089 break 2
10090 fi
10091done
10092done
10093
2429c060
PB
10094 ;;
10095esac
10096fi
c6b750e1
DJ
10097RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10098
2429c060 10099if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10100 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10101echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10102else
c6b750e1
DJ
10103 echo "$as_me:$LINENO: result: no" >&5
10104echo "${ECHO_T}no" >&6
2429c060
PB
10105fi
10106
10107fi
10108if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10109
10110
10111if test -n "$RANLIB_FOR_TARGET"; then
10112 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10113elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10114 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10115fi
10116
10117if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10118 for ncn_progname in ranlib; do
10119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10120set dummy ${ncn_progname}; ac_word=$2
10121echo "$as_me:$LINENO: checking for $ac_word" >&5
10122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10123if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10125else
10126 if test -n "$RANLIB_FOR_TARGET"; then
10127 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10128else
10129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130for as_dir in $PATH
10131do
10132 IFS=$as_save_IFS
10133 test -z "$as_dir" && as_dir=.
10134 for ac_exec_ext in '' $ac_executable_extensions; do
10135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10136 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10138 break 2
10139 fi
10140done
10141done
10142
10143fi
10144fi
10145RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10146if test -n "$RANLIB_FOR_TARGET"; then
10147 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10148echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10149else
10150 echo "$as_me:$LINENO: result: no" >&5
10151echo "${ECHO_T}no" >&6
10152fi
10153
10154 done
10155fi
10156
10157if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10158 for ncn_progname in ranlib; do
c6b750e1
DJ
10159 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10160echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10161 if test -x $with_build_time_tools/${ncn_progname}; then
10162 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10163 echo "$as_me:$LINENO: result: yes" >&5
10164echo "${ECHO_T}yes" >&6
2429c060
PB
10165 break
10166 else
c6b750e1
DJ
10167 echo "$as_me:$LINENO: result: no" >&5
10168echo "${ECHO_T}no" >&6
2429c060
PB
10169 fi
10170 done
10171fi
10172
10173if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10174 for ncn_progname in ranlib; do
10175 if test -n "$ncn_target_tool_prefix"; then
10176 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10177set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10178echo "$as_me:$LINENO: checking for $ac_word" >&5
10179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10180if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10182else
55db4b87
PB
10183 if test -n "$RANLIB_FOR_TARGET"; then
10184 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10185else
c6b750e1
DJ
10186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10187for as_dir in $PATH
10188do
10189 IFS=$as_save_IFS
10190 test -z "$as_dir" && as_dir=.
10191 for ac_exec_ext in '' $ac_executable_extensions; do
10192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10193 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10195 break 2
10196 fi
10197done
10198done
10199
859789af
AC
10200fi
10201fi
c6b750e1 10202RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10203if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10204 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10205echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10206else
c6b750e1
DJ
10207 echo "$as_me:$LINENO: result: no" >&5
10208echo "${ECHO_T}no" >&6
859789af
AC
10209fi
10210
2429c060
PB
10211 fi
10212 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10213 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10214set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10215echo "$as_me:$LINENO: checking for $ac_word" >&5
10216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10217if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10219else
05cbd757
PB
10220 if test -n "$RANLIB_FOR_TARGET"; then
10221 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10222else
c6b750e1
DJ
10223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10224for as_dir in $PATH
10225do
10226 IFS=$as_save_IFS
10227 test -z "$as_dir" && as_dir=.
10228 for ac_exec_ext in '' $ac_executable_extensions; do
10229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10230 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10232 break 2
10233 fi
10234done
10235done
10236
859789af
AC
10237fi
10238fi
c6b750e1 10239RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10240if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10241 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10242echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10243else
c6b750e1
DJ
10244 echo "$as_me:$LINENO: result: no" >&5
10245echo "${ECHO_T}no" >&6
859789af 10246fi
c6b750e1 10247
2429c060
PB
10248 fi
10249 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10250 done
10251fi
c6b750e1 10252
2429c060
PB
10253if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10254 set dummy ranlib
10255 if test $build = $target ; then
10256 RANLIB_FOR_TARGET="$2"
10257 else
10258 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10259 fi
2429c060 10260fi
05cbd757 10261
3a35eeb3
PB
10262else
10263 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10264fi
10265
2429c060
PB
10266
10267
10268
10269if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10270 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10271 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10272echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10273 if test -x $with_build_time_tools/strip; then
10274 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10275 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10276 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10277echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10278 else
c6b750e1
DJ
10279 echo "$as_me:$LINENO: result: no" >&5
10280echo "${ECHO_T}no" >&6
3a35eeb3 10281 fi
2429c060
PB
10282 elif test $build != $host && test $have_gcc_for_target = yes; then
10283 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
10284 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
10285 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10286 fi
10287fi
c6b750e1 10288if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10289 # Extract the first word of "strip", so it can be a program name with args.
10290set dummy strip; ac_word=$2
c6b750e1
DJ
10291echo "$as_me:$LINENO: checking for $ac_word" >&5
10292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10293if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10295else
c6b750e1
DJ
10296 case $STRIP_FOR_TARGET in
10297 [\\/]* | ?:[\\/]*)
2429c060
PB
10298 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10299 ;;
2429c060 10300 *)
c6b750e1
DJ
10301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10302for as_dir in $gcc_cv_tool_dirs
10303do
10304 IFS=$as_save_IFS
10305 test -z "$as_dir" && as_dir=.
10306 for ac_exec_ext in '' $ac_executable_extensions; do
10307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10308 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10310 break 2
10311 fi
10312done
10313done
10314
2429c060
PB
10315 ;;
10316esac
10317fi
c6b750e1
DJ
10318STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10319
2429c060 10320if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10321 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10322echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10323else
c6b750e1
DJ
10324 echo "$as_me:$LINENO: result: no" >&5
10325echo "${ECHO_T}no" >&6
2429c060
PB
10326fi
10327
10328fi
10329if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10330
10331
10332if test -n "$STRIP_FOR_TARGET"; then
10333 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10334elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10335 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10336fi
10337
10338if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10339 for ncn_progname in strip; do
10340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10341set dummy ${ncn_progname}; ac_word=$2
10342echo "$as_me:$LINENO: checking for $ac_word" >&5
10343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10344if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10345 echo $ECHO_N "(cached) $ECHO_C" >&6
10346else
10347 if test -n "$STRIP_FOR_TARGET"; then
10348 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10349else
10350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351for as_dir in $PATH
10352do
10353 IFS=$as_save_IFS
10354 test -z "$as_dir" && as_dir=.
10355 for ac_exec_ext in '' $ac_executable_extensions; do
10356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10357 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10359 break 2
10360 fi
10361done
10362done
10363
10364fi
10365fi
10366STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10367if test -n "$STRIP_FOR_TARGET"; then
10368 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10369echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10370else
10371 echo "$as_me:$LINENO: result: no" >&5
10372echo "${ECHO_T}no" >&6
10373fi
10374
10375 done
10376fi
10377
10378if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10379 for ncn_progname in strip; do
c6b750e1
DJ
10380 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10381echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10382 if test -x $with_build_time_tools/${ncn_progname}; then
10383 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10384 echo "$as_me:$LINENO: result: yes" >&5
10385echo "${ECHO_T}yes" >&6
2429c060
PB
10386 break
10387 else
c6b750e1
DJ
10388 echo "$as_me:$LINENO: result: no" >&5
10389echo "${ECHO_T}no" >&6
2429c060
PB
10390 fi
10391 done
10392fi
10393
10394if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10395 for ncn_progname in strip; do
10396 if test -n "$ncn_target_tool_prefix"; then
10397 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10398set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10399echo "$as_me:$LINENO: checking for $ac_word" >&5
10400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10401if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10403else
10404 if test -n "$STRIP_FOR_TARGET"; then
10405 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10406else
10407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10408for as_dir in $PATH
10409do
10410 IFS=$as_save_IFS
10411 test -z "$as_dir" && as_dir=.
10412 for ac_exec_ext in '' $ac_executable_extensions; do
10413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10414 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10416 break 2
10417 fi
10418done
10419done
10420
7e0f7140
GK
10421fi
10422fi
c6b750e1 10423STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10424if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10425 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10426echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10427else
c6b750e1
DJ
10428 echo "$as_me:$LINENO: result: no" >&5
10429echo "${ECHO_T}no" >&6
7e0f7140
GK
10430fi
10431
2429c060
PB
10432 fi
10433 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10434 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10435set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10436echo "$as_me:$LINENO: checking for $ac_word" >&5
10437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10438if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10440else
10441 if test -n "$STRIP_FOR_TARGET"; then
10442 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10443else
c6b750e1
DJ
10444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10445for as_dir in $PATH
10446do
10447 IFS=$as_save_IFS
10448 test -z "$as_dir" && as_dir=.
10449 for ac_exec_ext in '' $ac_executable_extensions; do
10450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10451 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10453 break 2
10454 fi
10455done
10456done
10457
7e0f7140
GK
10458fi
10459fi
c6b750e1 10460STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10461if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10462 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10463echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10464else
c6b750e1
DJ
10465 echo "$as_me:$LINENO: result: no" >&5
10466echo "${ECHO_T}no" >&6
7e0f7140 10467fi
c6b750e1 10468
2429c060
PB
10469 fi
10470 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10471 done
10472fi
c6b750e1 10473
7e0f7140
GK
10474if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10475 set dummy strip
10476 if test $build = $target ; then
10477 STRIP_FOR_TARGET="$2"
10478 else
10479 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10480 fi
10481fi
10482
3a35eeb3
PB
10483else
10484 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10485fi
10486
10487
10488
10489
10490if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10491 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10492 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10493echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10494 if test -x $with_build_time_tools/windres; then
10495 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10496 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10497 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10498echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10499 else
c6b750e1
DJ
10500 echo "$as_me:$LINENO: result: no" >&5
10501echo "${ECHO_T}no" >&6
3a35eeb3 10502 fi
2429c060
PB
10503 elif test $build != $host && test $have_gcc_for_target = yes; then
10504 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
10505 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
10506 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10507 fi
10508fi
c6b750e1 10509if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10510 # Extract the first word of "windres", so it can be a program name with args.
10511set dummy windres; ac_word=$2
c6b750e1
DJ
10512echo "$as_me:$LINENO: checking for $ac_word" >&5
10513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10514if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10516else
c6b750e1
DJ
10517 case $WINDRES_FOR_TARGET in
10518 [\\/]* | ?:[\\/]*)
2429c060
PB
10519 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10520 ;;
2429c060 10521 *)
c6b750e1
DJ
10522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10523for as_dir in $gcc_cv_tool_dirs
10524do
10525 IFS=$as_save_IFS
10526 test -z "$as_dir" && as_dir=.
10527 for ac_exec_ext in '' $ac_executable_extensions; do
10528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10529 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10531 break 2
10532 fi
10533done
10534done
10535
2429c060
PB
10536 ;;
10537esac
10538fi
c6b750e1
DJ
10539WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10540
2429c060 10541if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10542 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10543echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10544else
c6b750e1
DJ
10545 echo "$as_me:$LINENO: result: no" >&5
10546echo "${ECHO_T}no" >&6
2429c060
PB
10547fi
10548
10549fi
10550if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10551
10552
10553if test -n "$WINDRES_FOR_TARGET"; then
10554 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10555elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10556 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10557fi
10558
10559if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10560 for ncn_progname in windres; do
10561 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10562set dummy ${ncn_progname}; ac_word=$2
10563echo "$as_me:$LINENO: checking for $ac_word" >&5
10564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10565if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10567else
10568 if test -n "$WINDRES_FOR_TARGET"; then
10569 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10570else
10571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572for as_dir in $PATH
10573do
10574 IFS=$as_save_IFS
10575 test -z "$as_dir" && as_dir=.
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10578 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10580 break 2
10581 fi
10582done
10583done
10584
10585fi
10586fi
10587WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10588if test -n "$WINDRES_FOR_TARGET"; then
10589 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10590echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10591else
10592 echo "$as_me:$LINENO: result: no" >&5
10593echo "${ECHO_T}no" >&6
10594fi
10595
10596 done
10597fi
10598
10599if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10600 for ncn_progname in windres; do
c6b750e1
DJ
10601 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10602echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10603 if test -x $with_build_time_tools/${ncn_progname}; then
10604 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10605 echo "$as_me:$LINENO: result: yes" >&5
10606echo "${ECHO_T}yes" >&6
2429c060
PB
10607 break
10608 else
c6b750e1
DJ
10609 echo "$as_me:$LINENO: result: no" >&5
10610echo "${ECHO_T}no" >&6
2429c060
PB
10611 fi
10612 done
10613fi
10614
10615if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10616 for ncn_progname in windres; do
10617 if test -n "$ncn_target_tool_prefix"; then
10618 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10619set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10620echo "$as_me:$LINENO: checking for $ac_word" >&5
10621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10622if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10624else
55db4b87
PB
10625 if test -n "$WINDRES_FOR_TARGET"; then
10626 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10627else
c6b750e1
DJ
10628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10629for as_dir in $PATH
10630do
10631 IFS=$as_save_IFS
10632 test -z "$as_dir" && as_dir=.
10633 for ac_exec_ext in '' $ac_executable_extensions; do
10634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10635 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10637 break 2
10638 fi
10639done
10640done
10641
859789af
AC
10642fi
10643fi
c6b750e1 10644WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 10645if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10646 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10647echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10648else
c6b750e1
DJ
10649 echo "$as_me:$LINENO: result: no" >&5
10650echo "${ECHO_T}no" >&6
859789af
AC
10651fi
10652
2429c060
PB
10653 fi
10654 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10655 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10656set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10657echo "$as_me:$LINENO: checking for $ac_word" >&5
10658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10659if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10661else
05cbd757
PB
10662 if test -n "$WINDRES_FOR_TARGET"; then
10663 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10664else
c6b750e1
DJ
10665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10666for as_dir in $PATH
10667do
10668 IFS=$as_save_IFS
10669 test -z "$as_dir" && as_dir=.
10670 for ac_exec_ext in '' $ac_executable_extensions; do
10671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10672 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10674 break 2
10675 fi
10676done
10677done
10678
859789af
AC
10679fi
10680fi
c6b750e1 10681WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 10682if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10683 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10684echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10685else
c6b750e1
DJ
10686 echo "$as_me:$LINENO: result: no" >&5
10687echo "${ECHO_T}no" >&6
859789af 10688fi
c6b750e1 10689
2429c060
PB
10690 fi
10691 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10692 done
10693fi
c6b750e1 10694
05cbd757
PB
10695if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10696 set dummy windres
10697 if test $build = $target ; then
10698 WINDRES_FOR_TARGET="$2"
859789af 10699 else
05cbd757 10700 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10701 fi
859789af
AC
10702fi
10703
3a35eeb3
PB
10704else
10705 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
10706fi
10707
852e5f18 10708
be01d343
PB
10709RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
10710
c6b750e1
DJ
10711echo "$as_me:$LINENO: checking where to find the target ar" >&5
10712echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 10713if test "x${build}" != "x${host}" ; then
2429c060
PB
10714 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
10715 # We already found the complete path
c6b750e1
DJ
10716 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
10717echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
2429c060
PB
10718 else
10719 # Canadian cross, just use what we found
c6b750e1
DJ
10720 echo "$as_me:$LINENO: result: pre-installed" >&5
10721echo "${ECHO_T}pre-installed" >&6
2429c060 10722 fi
be01d343
PB
10723else
10724 ok=yes
10725 case " ${configdirs} " in
10726 *" binutils "*) ;;
10727 *) ok=no ;;
10728 esac
c6b750e1 10729
be01d343
PB
10730 if test $ok = yes; then
10731 # An in-tree tool is available and we can use it
10732 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
10733 echo "$as_me:$LINENO: result: just compiled" >&5
10734echo "${ECHO_T}just compiled" >&6
2429c060
PB
10735 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
10736 # We already found the complete path
c6b750e1
DJ
10737 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
10738echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
be01d343
PB
10739 elif test "x$target" = "x$host"; then
10740 # We can use an host tool
10741 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
10742 echo "$as_me:$LINENO: result: host tool" >&5
10743echo "${ECHO_T}host tool" >&6
be01d343
PB
10744 else
10745 # We need a cross tool
c6b750e1
DJ
10746 echo "$as_me:$LINENO: result: pre-installed" >&5
10747echo "${ECHO_T}pre-installed" >&6
be01d343
PB
10748 fi
10749fi
4b900473 10750
c6b750e1
DJ
10751echo "$as_me:$LINENO: checking where to find the target as" >&5
10752echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 10753if test "x${build}" != "x${host}" ; then
2429c060
PB
10754 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
10755 # We already found the complete path
c6b750e1
DJ
10756 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
10757echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
2429c060
PB
10758 else
10759 # Canadian cross, just use what we found
c6b750e1
DJ
10760 echo "$as_me:$LINENO: result: pre-installed" >&5
10761echo "${ECHO_T}pre-installed" >&6
2429c060 10762 fi
be01d343
PB
10763else
10764 ok=yes
10765 case " ${configdirs} " in
10766 *" gas "*) ;;
10767 *) ok=no ;;
10768 esac
c6b750e1 10769
be01d343
PB
10770 if test $ok = yes; then
10771 # An in-tree tool is available and we can use it
10772 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
10773 echo "$as_me:$LINENO: result: just compiled" >&5
10774echo "${ECHO_T}just compiled" >&6
2429c060
PB
10775 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
10776 # We already found the complete path
c6b750e1
DJ
10777 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
10778echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
be01d343
PB
10779 elif test "x$target" = "x$host"; then
10780 # We can use an host tool
10781 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
10782 echo "$as_me:$LINENO: result: host tool" >&5
10783echo "${ECHO_T}host tool" >&6
be01d343
PB
10784 else
10785 # We need a cross tool
c6b750e1
DJ
10786 echo "$as_me:$LINENO: result: pre-installed" >&5
10787echo "${ECHO_T}pre-installed" >&6
be01d343
PB
10788 fi
10789fi
4b900473 10790
c6b750e1
DJ
10791echo "$as_me:$LINENO: checking where to find the target cc" >&5
10792echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 10793if test "x${build}" != "x${host}" ; then
2429c060
PB
10794 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
10795 # We already found the complete path
c6b750e1
DJ
10796 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
10797echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
2429c060
PB
10798 else
10799 # Canadian cross, just use what we found
c6b750e1
DJ
10800 echo "$as_me:$LINENO: result: pre-installed" >&5
10801echo "${ECHO_T}pre-installed" >&6
2429c060 10802 fi
be01d343
PB
10803else
10804 ok=yes
10805 case " ${configdirs} " in
10806 *" gcc "*) ;;
10807 *) ok=no ;;
10808 esac
c6b750e1 10809
be01d343
PB
10810 if test $ok = yes; then
10811 # An in-tree tool is available and we can use it
10812 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
10813 echo "$as_me:$LINENO: result: just compiled" >&5
10814echo "${ECHO_T}just compiled" >&6
2429c060
PB
10815 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
10816 # We already found the complete path
c6b750e1
DJ
10817 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
10818echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
be01d343
PB
10819 elif test "x$target" = "x$host"; then
10820 # We can use an host tool
10821 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
10822 echo "$as_me:$LINENO: result: host tool" >&5
10823echo "${ECHO_T}host tool" >&6
be01d343
PB
10824 else
10825 # We need a cross tool
c6b750e1
DJ
10826 echo "$as_me:$LINENO: result: pre-installed" >&5
10827echo "${ECHO_T}pre-installed" >&6
be01d343
PB
10828 fi
10829fi
4b900473 10830
c6b750e1
DJ
10831echo "$as_me:$LINENO: checking where to find the target c++" >&5
10832echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 10833if test "x${build}" != "x${host}" ; then
2429c060
PB
10834 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
10835 # We already found the complete path
c6b750e1
DJ
10836 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
10837echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
2429c060
PB
10838 else
10839 # Canadian cross, just use what we found
c6b750e1
DJ
10840 echo "$as_me:$LINENO: result: pre-installed" >&5
10841echo "${ECHO_T}pre-installed" >&6
2429c060 10842 fi
be01d343
PB
10843else
10844 ok=yes
10845 case " ${configdirs} " in
10846 *" gcc "*) ;;
10847 *) ok=no ;;
10848 esac
10849 case ,${enable_languages}, in
10850 *,c++,*) ;;
10851 *) ok=no ;;
10852 esac
10853 if test $ok = yes; then
10854 # An in-tree tool is available and we can use it
10855 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
10856 echo "$as_me:$LINENO: result: just compiled" >&5
10857echo "${ECHO_T}just compiled" >&6
2429c060
PB
10858 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
10859 # We already found the complete path
c6b750e1
DJ
10860 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
10861echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
be01d343
PB
10862 elif test "x$target" = "x$host"; then
10863 # We can use an host tool
10864 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
10865 echo "$as_me:$LINENO: result: host tool" >&5
10866echo "${ECHO_T}host tool" >&6
be01d343
PB
10867 else
10868 # We need a cross tool
c6b750e1
DJ
10869 echo "$as_me:$LINENO: result: pre-installed" >&5
10870echo "${ECHO_T}pre-installed" >&6
be01d343
PB
10871 fi
10872fi
4b900473 10873
c6b750e1
DJ
10874echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
10875echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 10876if test "x${build}" != "x${host}" ; then
2429c060
PB
10877 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
10878 # We already found the complete path
c6b750e1
DJ
10879 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
10880echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
2429c060
PB
10881 else
10882 # Canadian cross, just use what we found
c6b750e1
DJ
10883 echo "$as_me:$LINENO: result: pre-installed" >&5
10884echo "${ECHO_T}pre-installed" >&6
2429c060 10885 fi
be01d343
PB
10886else
10887 ok=yes
10888 case " ${configdirs} " in
10889 *" gcc "*) ;;
10890 *) ok=no ;;
10891 esac
10892 case ,${enable_languages}, in
10893 *,c++,*) ;;
10894 *) ok=no ;;
10895 esac
10896 if test $ok = yes; then
10897 # An in-tree tool is available and we can use it
10898 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
10899 echo "$as_me:$LINENO: result: just compiled" >&5
10900echo "${ECHO_T}just compiled" >&6
2429c060
PB
10901 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
10902 # We already found the complete path
c6b750e1
DJ
10903 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
10904echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
be01d343
PB
10905 elif test "x$target" = "x$host"; then
10906 # We can use an host tool
10907 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
10908 echo "$as_me:$LINENO: result: host tool" >&5
10909echo "${ECHO_T}host tool" >&6
be01d343
PB
10910 else
10911 # We need a cross tool
c6b750e1
DJ
10912 echo "$as_me:$LINENO: result: pre-installed" >&5
10913echo "${ECHO_T}pre-installed" >&6
be01d343
PB
10914 fi
10915fi
4b900473 10916
c6b750e1
DJ
10917echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
10918echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 10919if test "x${build}" != "x${host}" ; then
2429c060
PB
10920 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
10921 # We already found the complete path
c6b750e1
DJ
10922 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
10923echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
2429c060
PB
10924 else
10925 # Canadian cross, just use what we found
c6b750e1
DJ
10926 echo "$as_me:$LINENO: result: pre-installed" >&5
10927echo "${ECHO_T}pre-installed" >&6
2429c060 10928 fi
be01d343
PB
10929else
10930 ok=yes
10931 case " ${configdirs} " in
10932 *" binutils "*) ;;
10933 *) ok=no ;;
10934 esac
c6b750e1 10935
be01d343
PB
10936 if test $ok = yes; then
10937 # An in-tree tool is available and we can use it
10938 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
10939 echo "$as_me:$LINENO: result: just compiled" >&5
10940echo "${ECHO_T}just compiled" >&6
2429c060
PB
10941 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
10942 # We already found the complete path
c6b750e1
DJ
10943 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
10944echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
be01d343
PB
10945 elif test "x$target" = "x$host"; then
10946 # We can use an host tool
10947 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
10948 echo "$as_me:$LINENO: result: host tool" >&5
10949echo "${ECHO_T}host tool" >&6
be01d343
PB
10950 else
10951 # We need a cross tool
c6b750e1
DJ
10952 echo "$as_me:$LINENO: result: pre-installed" >&5
10953echo "${ECHO_T}pre-installed" >&6
be01d343
PB
10954 fi
10955fi
4b900473 10956
c6b750e1
DJ
10957echo "$as_me:$LINENO: checking where to find the target gcc" >&5
10958echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 10959if test "x${build}" != "x${host}" ; then
2429c060
PB
10960 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
10961 # We already found the complete path
c6b750e1
DJ
10962 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
10963echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
2429c060
PB
10964 else
10965 # Canadian cross, just use what we found
c6b750e1
DJ
10966 echo "$as_me:$LINENO: result: pre-installed" >&5
10967echo "${ECHO_T}pre-installed" >&6
2429c060 10968 fi
be01d343
PB
10969else
10970 ok=yes
10971 case " ${configdirs} " in
10972 *" gcc "*) ;;
10973 *) ok=no ;;
10974 esac
c6b750e1 10975
be01d343
PB
10976 if test $ok = yes; then
10977 # An in-tree tool is available and we can use it
10978 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
10979 echo "$as_me:$LINENO: result: just compiled" >&5
10980echo "${ECHO_T}just compiled" >&6
2429c060
PB
10981 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
10982 # We already found the complete path
c6b750e1
DJ
10983 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
10984echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
be01d343
PB
10985 elif test "x$target" = "x$host"; then
10986 # We can use an host tool
10987 GCC_FOR_TARGET='$()'
c6b750e1
DJ
10988 echo "$as_me:$LINENO: result: host tool" >&5
10989echo "${ECHO_T}host tool" >&6
be01d343
PB
10990 else
10991 # We need a cross tool
c6b750e1
DJ
10992 echo "$as_me:$LINENO: result: pre-installed" >&5
10993echo "${ECHO_T}pre-installed" >&6
be01d343
PB
10994 fi
10995fi
4b900473 10996
c6b750e1
DJ
10997echo "$as_me:$LINENO: checking where to find the target gcj" >&5
10998echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 10999if test "x${build}" != "x${host}" ; then
2429c060
PB
11000 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11001 # We already found the complete path
c6b750e1
DJ
11002 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
11003echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
2429c060
PB
11004 else
11005 # Canadian cross, just use what we found
c6b750e1
DJ
11006 echo "$as_me:$LINENO: result: pre-installed" >&5
11007echo "${ECHO_T}pre-installed" >&6
2429c060 11008 fi
be01d343
PB
11009else
11010 ok=yes
11011 case " ${configdirs} " in
11012 *" gcc "*) ;;
11013 *) ok=no ;;
11014 esac
11015 case ,${enable_languages}, in
11016 *,java,*) ;;
11017 *) ok=no ;;
11018 esac
11019 if test $ok = yes; then
11020 # An in-tree tool is available and we can use it
11021 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11022 echo "$as_me:$LINENO: result: just compiled" >&5
11023echo "${ECHO_T}just compiled" >&6
2429c060
PB
11024 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11025 # We already found the complete path
c6b750e1
DJ
11026 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
11027echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
be01d343
PB
11028 elif test "x$target" = "x$host"; then
11029 # We can use an host tool
11030 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11031 echo "$as_me:$LINENO: result: host tool" >&5
11032echo "${ECHO_T}host tool" >&6
be01d343
PB
11033 else
11034 # We need a cross tool
c6b750e1
DJ
11035 echo "$as_me:$LINENO: result: pre-installed" >&5
11036echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11037 fi
11038fi
4b900473 11039
c6b750e1
DJ
11040echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11041echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11042if test "x${build}" != "x${host}" ; then
2429c060
PB
11043 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11044 # We already found the complete path
c6b750e1
DJ
11045 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
11046echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
2429c060
PB
11047 else
11048 # Canadian cross, just use what we found
c6b750e1
DJ
11049 echo "$as_me:$LINENO: result: pre-installed" >&5
11050echo "${ECHO_T}pre-installed" >&6
2429c060 11051 fi
be01d343
PB
11052else
11053 ok=yes
11054 case " ${configdirs} " in
11055 *" gcc "*) ;;
11056 *) ok=no ;;
11057 esac
11058 case ,${enable_languages}, in
11059 *,fortran,*) ;;
11060 *) ok=no ;;
11061 esac
11062 if test $ok = yes; then
11063 # An in-tree tool is available and we can use it
11064 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11065 echo "$as_me:$LINENO: result: just compiled" >&5
11066echo "${ECHO_T}just compiled" >&6
2429c060
PB
11067 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11068 # We already found the complete path
c6b750e1
DJ
11069 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
11070echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
be01d343
PB
11071 elif test "x$target" = "x$host"; then
11072 # We can use an host tool
11073 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11074 echo "$as_me:$LINENO: result: host tool" >&5
11075echo "${ECHO_T}host tool" >&6
be01d343
PB
11076 else
11077 # We need a cross tool
c6b750e1
DJ
11078 echo "$as_me:$LINENO: result: pre-installed" >&5
11079echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11080 fi
11081fi
4b900473 11082
c6b750e1
DJ
11083echo "$as_me:$LINENO: checking where to find the target ld" >&5
11084echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11085if test "x${build}" != "x${host}" ; then
2429c060
PB
11086 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11087 # We already found the complete path
c6b750e1
DJ
11088 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
11089echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
2429c060
PB
11090 else
11091 # Canadian cross, just use what we found
c6b750e1
DJ
11092 echo "$as_me:$LINENO: result: pre-installed" >&5
11093echo "${ECHO_T}pre-installed" >&6
2429c060 11094 fi
be01d343
PB
11095else
11096 ok=yes
11097 case " ${configdirs} " in
11098 *" ld "*) ;;
11099 *) ok=no ;;
11100 esac
c6b750e1 11101
be01d343
PB
11102 if test $ok = yes; then
11103 # An in-tree tool is available and we can use it
11104 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11105 echo "$as_me:$LINENO: result: just compiled" >&5
11106echo "${ECHO_T}just compiled" >&6
2429c060
PB
11107 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11108 # We already found the complete path
c6b750e1
DJ
11109 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
11110echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
be01d343
PB
11111 elif test "x$target" = "x$host"; then
11112 # We can use an host tool
11113 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11114 echo "$as_me:$LINENO: result: host tool" >&5
11115echo "${ECHO_T}host tool" >&6
be01d343
PB
11116 else
11117 # We need a cross tool
c6b750e1
DJ
11118 echo "$as_me:$LINENO: result: pre-installed" >&5
11119echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11120 fi
11121fi
4b900473 11122
c6b750e1
DJ
11123echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11124echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11125if test "x${build}" != "x${host}" ; then
2429c060
PB
11126 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11127 # We already found the complete path
c6b750e1
DJ
11128 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
11129echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
2429c060
PB
11130 else
11131 # Canadian cross, just use what we found
c6b750e1
DJ
11132 echo "$as_me:$LINENO: result: pre-installed" >&5
11133echo "${ECHO_T}pre-installed" >&6
2429c060 11134 fi
be01d343 11135else
2429c060
PB
11136 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11137 # We already found the complete path
c6b750e1
DJ
11138 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
11139echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
2429c060 11140 elif test "x$target" = "x$host"; then
be01d343
PB
11141 # We can use an host tool
11142 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11143 echo "$as_me:$LINENO: result: host tool" >&5
11144echo "${ECHO_T}host tool" >&6
be01d343
PB
11145 else
11146 # We need a cross tool
c6b750e1
DJ
11147 echo "$as_me:$LINENO: result: pre-installed" >&5
11148echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11149 fi
11150fi
4b900473 11151
c6b750e1
DJ
11152echo "$as_me:$LINENO: checking where to find the target nm" >&5
11153echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11154if test "x${build}" != "x${host}" ; then
2429c060
PB
11155 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11156 # We already found the complete path
c6b750e1
DJ
11157 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
11158echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
2429c060
PB
11159 else
11160 # Canadian cross, just use what we found
c6b750e1
DJ
11161 echo "$as_me:$LINENO: result: pre-installed" >&5
11162echo "${ECHO_T}pre-installed" >&6
2429c060 11163 fi
be01d343
PB
11164else
11165 ok=yes
11166 case " ${configdirs} " in
11167 *" binutils "*) ;;
11168 *) ok=no ;;
11169 esac
c6b750e1 11170
be01d343
PB
11171 if test $ok = yes; then
11172 # An in-tree tool is available and we can use it
11173 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11174 echo "$as_me:$LINENO: result: just compiled" >&5
11175echo "${ECHO_T}just compiled" >&6
2429c060
PB
11176 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11177 # We already found the complete path
c6b750e1
DJ
11178 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
11179echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
be01d343
PB
11180 elif test "x$target" = "x$host"; then
11181 # We can use an host tool
11182 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11183 echo "$as_me:$LINENO: result: host tool" >&5
11184echo "${ECHO_T}host tool" >&6
be01d343
PB
11185 else
11186 # We need a cross tool
c6b750e1
DJ
11187 echo "$as_me:$LINENO: result: pre-installed" >&5
11188echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11189 fi
11190fi
4b900473 11191
c6b750e1
DJ
11192echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11193echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11194if test "x${build}" != "x${host}" ; then
2429c060
PB
11195 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11196 # We already found the complete path
c6b750e1
DJ
11197 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
11198echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
2429c060
PB
11199 else
11200 # Canadian cross, just use what we found
c6b750e1
DJ
11201 echo "$as_me:$LINENO: result: pre-installed" >&5
11202echo "${ECHO_T}pre-installed" >&6
2429c060 11203 fi
be01d343
PB
11204else
11205 ok=yes
11206 case " ${configdirs} " in
11207 *" binutils "*) ;;
11208 *) ok=no ;;
11209 esac
c6b750e1 11210
be01d343
PB
11211 if test $ok = yes; then
11212 # An in-tree tool is available and we can use it
11213 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11214 echo "$as_me:$LINENO: result: just compiled" >&5
11215echo "${ECHO_T}just compiled" >&6
2429c060
PB
11216 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11217 # We already found the complete path
c6b750e1
DJ
11218 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
11219echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
be01d343
PB
11220 elif test "x$target" = "x$host"; then
11221 # We can use an host tool
11222 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11223 echo "$as_me:$LINENO: result: host tool" >&5
11224echo "${ECHO_T}host tool" >&6
be01d343
PB
11225 else
11226 # We need a cross tool
c6b750e1
DJ
11227 echo "$as_me:$LINENO: result: pre-installed" >&5
11228echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11229 fi
11230fi
4b900473 11231
c6b750e1
DJ
11232echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11233echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11234if test "x${build}" != "x${host}" ; then
2429c060
PB
11235 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11236 # We already found the complete path
c6b750e1
DJ
11237 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
11238echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
2429c060
PB
11239 else
11240 # Canadian cross, just use what we found
c6b750e1
DJ
11241 echo "$as_me:$LINENO: result: pre-installed" >&5
11242echo "${ECHO_T}pre-installed" >&6
2429c060 11243 fi
be01d343
PB
11244else
11245 ok=yes
11246 case " ${configdirs} " in
11247 *" binutils "*) ;;
11248 *) ok=no ;;
11249 esac
c6b750e1 11250
be01d343
PB
11251 if test $ok = yes; then
11252 # An in-tree tool is available and we can use it
11253 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11254 echo "$as_me:$LINENO: result: just compiled" >&5
11255echo "${ECHO_T}just compiled" >&6
2429c060
PB
11256 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11257 # We already found the complete path
c6b750e1
DJ
11258 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
11259echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
be01d343
PB
11260 elif test "x$target" = "x$host"; then
11261 # We can use an host tool
11262 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11263 echo "$as_me:$LINENO: result: host tool" >&5
11264echo "${ECHO_T}host tool" >&6
be01d343
PB
11265 else
11266 # We need a cross tool
c6b750e1
DJ
11267 echo "$as_me:$LINENO: result: pre-installed" >&5
11268echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11269 fi
11270fi
4b900473 11271
c6b750e1
DJ
11272echo "$as_me:$LINENO: checking where to find the target strip" >&5
11273echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11274if test "x${build}" != "x${host}" ; then
2429c060
PB
11275 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11276 # We already found the complete path
c6b750e1
DJ
11277 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
11278echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
2429c060
PB
11279 else
11280 # Canadian cross, just use what we found
c6b750e1
DJ
11281 echo "$as_me:$LINENO: result: pre-installed" >&5
11282echo "${ECHO_T}pre-installed" >&6
2429c060 11283 fi
be01d343
PB
11284else
11285 ok=yes
11286 case " ${configdirs} " in
11287 *" binutils "*) ;;
11288 *) ok=no ;;
11289 esac
c6b750e1 11290
be01d343
PB
11291 if test $ok = yes; then
11292 # An in-tree tool is available and we can use it
11293 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11294 echo "$as_me:$LINENO: result: just compiled" >&5
11295echo "${ECHO_T}just compiled" >&6
2429c060
PB
11296 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11297 # We already found the complete path
c6b750e1
DJ
11298 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
11299echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
be01d343
PB
11300 elif test "x$target" = "x$host"; then
11301 # We can use an host tool
11302 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11303 echo "$as_me:$LINENO: result: host tool" >&5
11304echo "${ECHO_T}host tool" >&6
be01d343
PB
11305 else
11306 # We need a cross tool
c6b750e1
DJ
11307 echo "$as_me:$LINENO: result: pre-installed" >&5
11308echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11309 fi
11310fi
4b900473 11311
c6b750e1
DJ
11312echo "$as_me:$LINENO: checking where to find the target windres" >&5
11313echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 11314if test "x${build}" != "x${host}" ; then
2429c060
PB
11315 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11316 # We already found the complete path
c6b750e1
DJ
11317 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
11318echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
2429c060
PB
11319 else
11320 # Canadian cross, just use what we found
c6b750e1
DJ
11321 echo "$as_me:$LINENO: result: pre-installed" >&5
11322echo "${ECHO_T}pre-installed" >&6
2429c060 11323 fi
be01d343
PB
11324else
11325 ok=yes
11326 case " ${configdirs} " in
11327 *" binutils "*) ;;
11328 *) ok=no ;;
11329 esac
c6b750e1 11330
be01d343
PB
11331 if test $ok = yes; then
11332 # An in-tree tool is available and we can use it
11333 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
11334 echo "$as_me:$LINENO: result: just compiled" >&5
11335echo "${ECHO_T}just compiled" >&6
2429c060
PB
11336 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11337 # We already found the complete path
c6b750e1
DJ
11338 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
11339echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
be01d343
PB
11340 elif test "x$target" = "x$host"; then
11341 # We can use an host tool
11342 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
11343 echo "$as_me:$LINENO: result: host tool" >&5
11344echo "${ECHO_T}host tool" >&6
be01d343
PB
11345 else
11346 # We need a cross tool
c6b750e1
DJ
11347 echo "$as_me:$LINENO: result: pre-installed" >&5
11348echo "${ECHO_T}pre-installed" >&6
be01d343 11349 fi
a0da8069 11350fi
54752a6b
NN
11351
11352
11353
be01d343 11354
4b900473 11355
a0da8069
NN
11356# Certain tools may need extra flags.
11357AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11358RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11359NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11360
be01d343
PB
11361# When building target libraries, except in a Canadian cross, we use
11362# the same toolchain as the compiler we just built.
11363COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11364COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11365COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11366if test $host = $build; then
11367 case " $configdirs " in
11368 *" gcc "*)
11369 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11370 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11371 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11372 ;;
11373 esac
11374fi
11375
11376
11377
11378
11379
c6b750e1
DJ
11380echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11381echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
11382# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11383if test "${enable_maintainer_mode+set}" = set; then
11384 enableval="$enable_maintainer_mode"
11385 USE_MAINTAINER_MODE=$enableval
11386else
11387 USE_MAINTAINER_MODE=no
c6b750e1
DJ
11388fi;
11389echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11390echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
11391
11392
11393if test "$USE_MAINTAINER_MODE" = yes; then
11394 MAINTAINER_MODE_TRUE=
11395 MAINTAINER_MODE_FALSE='#'
11396else
11397 MAINTAINER_MODE_TRUE='#'
11398 MAINTAINER_MODE_FALSE=
c6b750e1 11399fi
3d5e36ae
AO
11400MAINT=$MAINTAINER_MODE_TRUE
11401
1d39f329
NN
11402# ---------------------
11403# GCC bootstrap support
11404# ---------------------
11405
11406# Stage specific cflags for build.
11407stage1_cflags="-g"
11408case $build in
11409 vax-*-*)
11410 case ${GCC} in
11411 yes) stage1_cflags="-g -Wa,-J" ;;
11412 *) stage1_cflags="-g -J" ;;
11413 esac ;;
1d39f329
NN
11414esac
11415
1d89b610
PB
11416# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11417if test "$GCC" = yes; then
11418 saved_CFLAGS="$CFLAGS"
11419
11420 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11421 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
11422 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11423echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
11424 cat >conftest.$ac_ext <<_ACEOF
11425/* confdefs.h. */
11426_ACEOF
11427cat confdefs.h >>conftest.$ac_ext
11428cat >>conftest.$ac_ext <<_ACEOF
11429/* end confdefs.h. */
11430
11431int
11432main ()
11433{
11434
11435 ;
11436 return 0;
11437}
11438_ACEOF
11439rm -f conftest.$ac_objext
11440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11441 (eval $ac_compile) 2>conftest.er1
11442 ac_status=$?
11443 grep -v '^ *+' conftest.er1 >conftest.err
11444 rm -f conftest.er1
11445 cat conftest.err >&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } &&
11448 { ac_try='test -z "$ac_c_werror_flag"
11449 || test ! -s conftest.err'
11450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451 (eval $ac_try) 2>&5
11452 ac_status=$?
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; } &&
11455 { ac_try='test -s conftest.$ac_objext'
11456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457 (eval $ac_try) 2>&5
11458 ac_status=$?
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; }; then
11461 echo "$as_me:$LINENO: result: yes" >&5
11462echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
11463else
11464 echo "$as_me: failed program was:" >&5
11465sed 's/^/| /' conftest.$ac_ext >&5
11466
11467echo "$as_me:$LINENO: result: no" >&5
11468echo "${ECHO_T}no" >&6
11469fi
11470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
11471
11472 CFLAGS="$saved_CFLAGS"
11473fi
11474
11475
1d39f329 11476
8a0d8a5c
PB
11477# Enable --enable-checking in stage1 of the compiler.
11478# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
11479if test "${enable_stage1_checking+set}" = set; then
11480 enableval="$enable_stage1_checking"
11481 stage1_checking=--enable-checking=${enable_stage1_checking}
11482else
11483 if test "x$enable_checking" = xno; then
11484 stage1_checking=--enable-checking
11485else
11486 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
11487fi
c6b750e1 11488fi;
8a0d8a5c
PB
11489
11490
1d39f329 11491# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
11492# Check whether --enable-werror or --disable-werror was given.
11493if test "${enable_werror+set}" = set; then
11494 enableval="$enable_werror"
c6b750e1 11495
1d39f329 11496else
a0323144 11497 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 11498 enable_werror=yes
79fcd0ec
PB
11499else
11500 enable_werror=no
11501fi
c6b750e1 11502fi;
1a6f2dc7
NN
11503case ${enable_werror} in
11504 yes) stage2_werror_flag="--enable-werror-always" ;;
11505 *) stage2_werror_flag="" ;;
1d39f329
NN
11506esac
11507
11508
108a6f8e 11509# Flags needed to enable html installing and building
c6b750e1 11510
108a6f8e
CD
11511# Check whether --with-datarootdir or --without-datarootdir was given.
11512if test "${with_datarootdir+set}" = set; then
11513 withval="$with_datarootdir"
11514 datarootdir="\${prefix}/${withval}"
11515else
11516 datarootdir="\${prefix}/share"
c6b750e1 11517fi;
108a6f8e
CD
11518
11519
11520# Check whether --with-docdir or --without-docdir was given.
11521if test "${with_docdir+set}" = set; then
11522 withval="$with_docdir"
11523 docdir="\${prefix}/${withval}"
11524else
11525 docdir="\${datarootdir}/doc"
c6b750e1 11526fi;
108a6f8e
CD
11527
11528
11529# Check whether --with-htmldir or --without-htmldir was given.
11530if test "${with_htmldir+set}" = set; then
11531 withval="$with_htmldir"
11532 htmldir="\${prefix}/${withval}"
11533else
11534 htmldir="\${docdir}"
c6b750e1 11535fi;
108a6f8e
CD
11536
11537
11538
11539
11540
c6b750e1
DJ
11541 ac_config_files="$ac_config_files Makefile"
11542cat >confcache <<\_ACEOF
a0da8069
NN
11543# This file is a shell script that caches the results of configure
11544# tests run on this system so they can be shared between configure
c6b750e1
DJ
11545# scripts and configure runs, see configure's option --config-cache.
11546# It is not useful on other systems. If it contains results you don't
11547# want to keep, you may remove or edit it.
a0da8069 11548#
c6b750e1
DJ
11549# config.status only pays attention to the cache file if you give it
11550# the --recheck option to rerun configure.
a0da8069 11551#
c6b750e1
DJ
11552# `ac_cv_env_foo' variables (set or unset) will be overridden when
11553# loading this file, other *unset* `ac_cv_foo' will be assigned the
11554# following values.
11555
11556_ACEOF
11557
a0da8069
NN
11558# The following way of writing the cache mishandles newlines in values,
11559# but we know of no workaround that is simple, portable, and efficient.
11560# So, don't put newlines in cache variables' values.
11561# Ultrix sh set writes to stderr and can't be redirected directly,
11562# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
11563{
11564 (set) 2>&1 |
11565 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11566 *ac_space=\ *)
11567 # `set' does not quote correctly, so add quotes (double-quote
11568 # substitution turns \\\\ into \\, and sed turns \\ into \).
11569 sed -n \
11570 "s/'/'\\\\''/g;
11571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11572 ;;
11573 *)
11574 # `set' quotes correctly as required by POSIX, so do not add quotes.
11575 sed -n \
11576 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11577 ;;
11578 esac;
11579} |
11580 sed '
11581 t clear
11582 : clear
11583 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11584 t end
11585 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11586 : end' >>confcache
11587if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 11588 if test -w $cache_file; then
c6b750e1
DJ
11589 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11590 cat confcache >$cache_file
a0da8069
NN
11591 else
11592 echo "not updating unwritable cache $cache_file"
11593 fi
852e5f18 11594fi
a0da8069 11595rm -f confcache
852e5f18 11596
a0da8069
NN
11597test "x$prefix" = xNONE && prefix=$ac_default_prefix
11598# Let make expand exec_prefix.
11599test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 11600
c6b750e1
DJ
11601# VPATH may cause trouble with some makes, so we remove $(srcdir),
11602# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11603# trailing colons and then remove the whole line if VPATH becomes empty
11604# (actually we leave an empty line to preserve line numbers).
a0da8069 11605if test "x$srcdir" = x.; then
c6b750e1
DJ
11606 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11607s/:*\$(srcdir):*/:/;
11608s/:*\${srcdir}:*/:/;
11609s/:*@srcdir@:*/:/;
11610s/^\([^=]*=[ ]*\):*/\1/;
11611s/:*$//;
11612s/^[^=]*=[ ]*$//;
11613}'
a0da8069 11614fi
252b5132 11615
a0da8069
NN
11616# Transform confdefs.h into DEFS.
11617# Protect against shell expansion while executing Makefile rules.
11618# Protect against Makefile macro expansion.
c6b750e1
DJ
11619#
11620# If the first sed substitution is executed (which looks for macros that
11621# take arguments), then we branch to the quote section. Otherwise,
11622# look for a macro that doesn't take arguments.
11623cat >confdef2opt.sed <<\_ACEOF
11624t clear
11625: clear
11626s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
11627t quote
11628s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
11629t quote
11630d
11631: quote
11632s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
11633s,\[,\\&,g
11634s,\],\\&,g
11635s,\$,$$,g
11636p
11637_ACEOF
11638# We use echo to avoid assuming a particular line-breaking character.
11639# The extra dot is to prevent the shell from consuming trailing
11640# line-breaks from the sub-command output. A line-break within
11641# single-quotes doesn't work because, if this script is created in a
11642# platform that uses two characters for line-breaks (e.g., DOS), tr
11643# would break.
11644ac_LF_and_DOT=`echo; echo .`
11645DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11646rm -f confdef2opt.sed
11647
11648
11649ac_libobjs=
11650ac_ltlibobjs=
11651for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11652 # 1. Remove the extension, and $U if already installed.
11653 ac_i=`echo "$ac_i" |
11654 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11655 # 2. Add them.
11656 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11657 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11658done
11659LIBOBJS=$ac_libobjs
852e5f18 11660
c6b750e1 11661LTLIBOBJS=$ac_ltlibobjs
376a0e54 11662
cac3d6c4 11663
c6b750e1
DJ
11664
11665: ${CONFIG_STATUS=./config.status}
11666ac_clean_files_save=$ac_clean_files
11667ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11668{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11669echo "$as_me: creating $CONFIG_STATUS" >&6;}
11670cat >$CONFIG_STATUS <<_ACEOF
11671#! $SHELL
11672# Generated by $as_me.
a0da8069 11673# Run this file to recreate the current configuration.
a0da8069 11674# Compiler output produced by configure, useful for debugging
c6b750e1 11675# configure, is in config.log if it exists.
376a0e54 11676
c6b750e1
DJ
11677debug=false
11678ac_cs_recheck=false
11679ac_cs_silent=false
11680SHELL=\${CONFIG_SHELL-$SHELL}
11681_ACEOF
11682
11683cat >>$CONFIG_STATUS <<\_ACEOF
11684## --------------------- ##
11685## M4sh Initialization. ##
11686## --------------------- ##
11687
11688# Be Bourne compatible
11689if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11690 emulate sh
11691 NULLCMD=:
11692 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11693 # is contrary to our usage. Disable this feature.
11694 alias -g '${1+"$@"}'='"$@"'
11695elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11696 set -o posix
11697fi
11698DUALCASE=1; export DUALCASE # for MKS sh
11699
11700# Support unset when possible.
11701if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11702 as_unset=unset
11703else
11704 as_unset=false
11705fi
11706
11707
11708# Work around bugs in pre-3.0 UWIN ksh.
11709$as_unset ENV MAIL MAILPATH
11710PS1='$ '
11711PS2='> '
11712PS4='+ '
11713
11714# NLS nuisances.
11715for as_var in \
11716 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11717 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11718 LC_TELEPHONE LC_TIME
11719do
11720 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11721 eval $as_var=C; export $as_var
11722 else
11723 $as_unset $as_var
11724 fi
11725done
11726
11727# Required to use basename.
11728if expr a : '\(a\)' >/dev/null 2>&1; then
11729 as_expr=expr
11730else
11731 as_expr=false
11732fi
11733
11734if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11735 as_basename=basename
11736else
11737 as_basename=false
11738fi
11739
11740
11741# Name of the executable.
11742as_me=`$as_basename "$0" ||
11743$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11744 X"$0" : 'X\(//\)$' \| \
11745 X"$0" : 'X\(/\)$' \| \
11746 . : '\(.\)' 2>/dev/null ||
11747echo X/"$0" |
11748 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11749 /^X\/\(\/\/\)$/{ s//\1/; q; }
11750 /^X\/\(\/\).*/{ s//\1/; q; }
11751 s/.*/./; q'`
11752
11753
11754# PATH needs CR, and LINENO needs CR and PATH.
11755# Avoid depending upon Character Ranges.
11756as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11757as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11758as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11759as_cr_digits='0123456789'
11760as_cr_alnum=$as_cr_Letters$as_cr_digits
11761
11762# The user is always right.
11763if test "${PATH_SEPARATOR+set}" != set; then
11764 echo "#! /bin/sh" >conf$$.sh
11765 echo "exit 0" >>conf$$.sh
11766 chmod +x conf$$.sh
11767 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11768 PATH_SEPARATOR=';'
11769 else
11770 PATH_SEPARATOR=:
11771 fi
11772 rm -f conf$$.sh
11773fi
11774
11775
11776 as_lineno_1=$LINENO
11777 as_lineno_2=$LINENO
11778 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11779 test "x$as_lineno_1" != "x$as_lineno_2" &&
11780 test "x$as_lineno_3" = "x$as_lineno_2" || {
11781 # Find who we are. Look in the path if we contain no path at all
11782 # relative or not.
11783 case $0 in
11784 *[\\/]* ) as_myself=$0 ;;
11785 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786for as_dir in $PATH
11787do
11788 IFS=$as_save_IFS
11789 test -z "$as_dir" && as_dir=.
11790 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11791done
11792
11793 ;;
11794 esac
11795 # We did not find ourselves, most probably we were run as `sh COMMAND'
11796 # in which case we are not to be found in the path.
11797 if test "x$as_myself" = x; then
11798 as_myself=$0
11799 fi
11800 if test ! -f "$as_myself"; then
11801 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11802echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11803 { (exit 1); exit 1; }; }
11804 fi
11805 case $CONFIG_SHELL in
11806 '')
11807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11808for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11809do
11810 IFS=$as_save_IFS
11811 test -z "$as_dir" && as_dir=.
11812 for as_base in sh bash ksh sh5; do
11813 case $as_dir in
11814 /*)
11815 if ("$as_dir/$as_base" -c '
11816 as_lineno_1=$LINENO
11817 as_lineno_2=$LINENO
11818 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11819 test "x$as_lineno_1" != "x$as_lineno_2" &&
11820 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11821 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11822 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11823 CONFIG_SHELL=$as_dir/$as_base
11824 export CONFIG_SHELL
11825 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11826 fi;;
11827 esac
11828 done
11829done
11830;;
11831 esac
11832
11833 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11834 # uniformly replaced by the line number. The first 'sed' inserts a
11835 # line-number line before each line; the second 'sed' does the real
11836 # work. The second script uses 'N' to pair each line-number line
11837 # with the numbered line, and appends trailing '-' during
11838 # substitution so that $LINENO is not a special case at line end.
11839 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11840 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11841 sed '=' <$as_myself |
11842 sed '
11843 N
11844 s,$,-,
11845 : loop
11846 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11847 t loop
11848 s,-$,,
11849 s,^['$as_cr_digits']*\n,,
11850 ' >$as_me.lineno &&
11851 chmod +x $as_me.lineno ||
11852 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11853echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11854 { (exit 1); exit 1; }; }
11855
11856 # Don't try to exec as it changes $[0], causing all sort of problems
11857 # (the dirname of $[0] is not the place where we might find the
11858 # original and so on. Autoconf is especially sensible to this).
11859 . ./$as_me.lineno
11860 # Exit status is that of the last command.
11861 exit
11862}
11863
11864
11865case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11866 *c*,-n*) ECHO_N= ECHO_C='
11867' ECHO_T=' ' ;;
11868 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11869 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11870esac
11871
11872if expr a : '\(a\)' >/dev/null 2>&1; then
11873 as_expr=expr
11874else
11875 as_expr=false
11876fi
11877
11878rm -f conf$$ conf$$.exe conf$$.file
11879echo >conf$$.file
11880if ln -s conf$$.file conf$$ 2>/dev/null; then
11881 # We could just check for DJGPP; but this test a) works b) is more generic
11882 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11883 if test -f conf$$.exe; then
11884 # Don't use ln at all; we don't have any links
11885 as_ln_s='cp -p'
11886 else
11887 as_ln_s='ln -s'
11888 fi
11889elif ln conf$$.file conf$$ 2>/dev/null; then
11890 as_ln_s=ln
11891else
11892 as_ln_s='cp -p'
11893fi
11894rm -f conf$$ conf$$.exe conf$$.file
11895
11896if mkdir -p . 2>/dev/null; then
11897 as_mkdir_p=:
11898else
11899 test -d ./-p && rmdir ./-p
11900 as_mkdir_p=false
11901fi
11902
11903as_executable_p="test -f"
11904
11905# Sed expression to map a string onto a valid CPP name.
11906as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11907
11908# Sed expression to map a string onto a valid variable name.
11909as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11910
11911
11912# IFS
11913# We need space, tab and new line, in precisely that order.
11914as_nl='
11915'
11916IFS=" $as_nl"
11917
11918# CDPATH.
11919$as_unset CDPATH
11920
11921exec 6>&1
11922
11923# Open the log real soon, to keep \$[0] and so on meaningful, and to
11924# report actual input values of CONFIG_FILES etc. instead of their
11925# values after options handling. Logging --version etc. is OK.
11926exec 5>>config.log
11927{
11928 echo
11929 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11930## Running $as_me. ##
11931_ASBOX
11932} >&5
11933cat >&5 <<_CSEOF
11934
11935This file was extended by $as_me, which was
11936generated by GNU Autoconf 2.59. Invocation command line was
11937
11938 CONFIG_FILES = $CONFIG_FILES
11939 CONFIG_HEADERS = $CONFIG_HEADERS
11940 CONFIG_LINKS = $CONFIG_LINKS
11941 CONFIG_COMMANDS = $CONFIG_COMMANDS
11942 $ $0 $@
11943
11944_CSEOF
11945echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11946echo >&5
11947_ACEOF
11948
11949# Files that config.status was made for.
11950if test -n "$ac_config_files"; then
11951 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11952fi
11953
11954if test -n "$ac_config_headers"; then
11955 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11956fi
11957
11958if test -n "$ac_config_links"; then
11959 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11960fi
11961
11962if test -n "$ac_config_commands"; then
11963 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11964fi
11965
11966cat >>$CONFIG_STATUS <<\_ACEOF
11967
11968ac_cs_usage="\
11969\`$as_me' instantiates files from templates according to the
11970current configuration.
11971
11972Usage: $0 [OPTIONS] [FILE]...
11973
11974 -h, --help print this help, then exit
11975 -V, --version print version number, then exit
11976 -q, --quiet do not print progress messages
11977 -d, --debug don't remove temporary files
11978 --recheck update $as_me by reconfiguring in the same conditions
11979 --file=FILE[:TEMPLATE]
11980 instantiate the configuration file FILE
11981
11982Configuration files:
11983$config_files
11984
11985Report bugs to <bug-autoconf@gnu.org>."
11986_ACEOF
11987
11988cat >>$CONFIG_STATUS <<_ACEOF
11989ac_cs_version="\\
11990config.status
11991configured by $0, generated by GNU Autoconf 2.59,
11992 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11993
11994Copyright (C) 2003 Free Software Foundation, Inc.
11995This config.status script is free software; the Free Software Foundation
11996gives unlimited permission to copy, distribute and modify it."
11997srcdir=$srcdir
11998INSTALL="$INSTALL"
11999_ACEOF
12000
12001cat >>$CONFIG_STATUS <<\_ACEOF
12002# If no file are specified by the user, then we need to provide default
12003# value. By we need to know if files were specified by the user.
12004ac_need_defaults=:
12005while test $# != 0
a0da8069 12006do
c6b750e1
DJ
12007 case $1 in
12008 --*=*)
12009 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12010 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12011 ac_shift=:
12012 ;;
12013 -*)
12014 ac_option=$1
12015 ac_optarg=$2
12016 ac_shift=shift
12017 ;;
12018 *) # This is not an option, so the user has probably given explicit
12019 # arguments.
12020 ac_option=$1
12021 ac_need_defaults=false;;
12022 esac
12023
12024 case $ac_option in
12025 # Handling of the options.
12026_ACEOF
12027cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12028 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12029 ac_cs_recheck=: ;;
12030 --version | --vers* | -V )
12031 echo "$ac_cs_version"; exit 0 ;;
12032 --he | --h)
12033 # Conflict between --help and --header
12034 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12035Try \`$0 --help' for more information." >&5
12036echo "$as_me: error: ambiguous option: $1
12037Try \`$0 --help' for more information." >&2;}
12038 { (exit 1); exit 1; }; };;
12039 --help | --hel | -h )
12040 echo "$ac_cs_usage"; exit 0 ;;
12041 --debug | --d* | -d )
12042 debug=: ;;
12043 --file | --fil | --fi | --f )
12044 $ac_shift
12045 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12046 ac_need_defaults=false;;
12047 --header | --heade | --head | --hea )
12048 $ac_shift
12049 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12050 ac_need_defaults=false;;
12051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12052 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12053 ac_cs_silent=: ;;
12054
12055 # This is an error.
12056 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12057Try \`$0 --help' for more information." >&5
12058echo "$as_me: error: unrecognized option: $1
12059Try \`$0 --help' for more information." >&2;}
12060 { (exit 1); exit 1; }; } ;;
12061
12062 *) ac_config_targets="$ac_config_targets $1" ;;
12063
376a0e54 12064 esac
c6b750e1 12065 shift
376a0e54
CM
12066done
12067
c6b750e1 12068ac_configure_extra_args=
376a0e54 12069
c6b750e1
DJ
12070if $ac_cs_silent; then
12071 exec 6>/dev/null
12072 ac_configure_extra_args="$ac_configure_extra_args --silent"
12073fi
376a0e54 12074
c6b750e1
DJ
12075_ACEOF
12076cat >>$CONFIG_STATUS <<_ACEOF
12077if \$ac_cs_recheck; then
12078 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12079 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12080fi
12081
12082_ACEOF
12083
12084
12085
12086
12087
12088cat >>$CONFIG_STATUS <<\_ACEOF
12089for ac_config_target in $ac_config_targets
12090do
12091 case "$ac_config_target" in
12092 # Handling of arguments.
12093 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12094 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12095echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12096 { (exit 1); exit 1; }; };;
12097 esac
12098done
12099
12100# If the user did not use the arguments to specify the items to instantiate,
12101# then the envvar interface is used. Set only those that are not.
12102# We use the long form for the default assignment because of an extremely
12103# bizarre bug on SunOS 4.1.3.
12104if $ac_need_defaults; then
12105 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12106fi
12107
12108# Have a temporary directory for convenience. Make it in the build tree
12109# simply because there is no reason to put it here, and in addition,
12110# creating and moving files from /tmp can sometimes cause problems.
12111# Create a temporary directory, and hook for its removal unless debugging.
12112$debug ||
12113{
12114 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12115 trap '{ (exit 1); exit 1; }' 1 2 13 15
12116}
12117
12118# Create a (secure) tmp directory for tmp files.
12119
12120{
12121 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12122 test -n "$tmp" && test -d "$tmp"
12123} ||
12124{
12125 tmp=./confstat$$-$RANDOM
12126 (umask 077 && mkdir $tmp)
12127} ||
12128{
12129 echo "$me: cannot create a temporary directory in ." >&2
12130 { (exit 1); exit 1; }
12131}
12132
12133_ACEOF
12134
12135cat >>$CONFIG_STATUS <<_ACEOF
12136
12137#
12138# CONFIG_FILES section.
12139#
12140
12141# No need to generate the scripts if there are no CONFIG_FILES.
12142# This happens for instance when ./config.status config.h
12143if test -n "\$CONFIG_FILES"; then
12144 # Protect against being on the right side of a sed subst in config.status.
12145 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12146 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12147s,@SHELL@,$SHELL,;t t
12148s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12149s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12150s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12151s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12152s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12153s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12154s,@exec_prefix@,$exec_prefix,;t t
12155s,@prefix@,$prefix,;t t
12156s,@program_transform_name@,$program_transform_name,;t t
12157s,@bindir@,$bindir,;t t
12158s,@sbindir@,$sbindir,;t t
12159s,@libexecdir@,$libexecdir,;t t
12160s,@datadir@,$datadir,;t t
12161s,@sysconfdir@,$sysconfdir,;t t
12162s,@sharedstatedir@,$sharedstatedir,;t t
12163s,@localstatedir@,$localstatedir,;t t
12164s,@libdir@,$libdir,;t t
12165s,@includedir@,$includedir,;t t
12166s,@oldincludedir@,$oldincludedir,;t t
12167s,@infodir@,$infodir,;t t
12168s,@mandir@,$mandir,;t t
12169s,@build_alias@,$build_alias,;t t
12170s,@host_alias@,$host_alias,;t t
12171s,@target_alias@,$target_alias,;t t
12172s,@DEFS@,$DEFS,;t t
12173s,@ECHO_C@,$ECHO_C,;t t
12174s,@ECHO_N@,$ECHO_N,;t t
12175s,@ECHO_T@,$ECHO_T,;t t
12176s,@LIBS@,$LIBS,;t t
12177s,@build@,$build,;t t
12178s,@build_cpu@,$build_cpu,;t t
12179s,@build_vendor@,$build_vendor,;t t
12180s,@build_os@,$build_os,;t t
12181s,@build_noncanonical@,$build_noncanonical,;t t
12182s,@host_noncanonical@,$host_noncanonical,;t t
12183s,@target_noncanonical@,$target_noncanonical,;t t
12184s,@host@,$host,;t t
12185s,@host_cpu@,$host_cpu,;t t
12186s,@host_vendor@,$host_vendor,;t t
12187s,@host_os@,$host_os,;t t
12188s,@target@,$target,;t t
12189s,@target_cpu@,$target_cpu,;t t
12190s,@target_vendor@,$target_vendor,;t t
12191s,@target_os@,$target_os,;t t
12192s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12193s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12194s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12195s,@LN@,$LN,;t t
12196s,@LN_S@,$LN_S,;t t
12197s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12198s,@build_libsubdir@,$build_libsubdir,;t t
12199s,@build_subdir@,$build_subdir,;t t
12200s,@host_subdir@,$host_subdir,;t t
12201s,@target_subdir@,$target_subdir,;t t
12202s,@CC@,$CC,;t t
12203s,@CFLAGS@,$CFLAGS,;t t
12204s,@LDFLAGS@,$LDFLAGS,;t t
12205s,@CPPFLAGS@,$CPPFLAGS,;t t
12206s,@ac_ct_CC@,$ac_ct_CC,;t t
12207s,@EXEEXT@,$EXEEXT,;t t
12208s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12209s,@CXX@,$CXX,;t t
12210s,@CXXFLAGS@,$CXXFLAGS,;t t
12211s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12212s,@GNATBIND@,$GNATBIND,;t t
12213s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12214s,@GNATMAKE@,$GNATMAKE,;t t
12215s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12216s,@do_compare@,$do_compare,;t t
12217s,@gmplibs@,$gmplibs,;t t
12218s,@gmpinc@,$gmpinc,;t t
12219s,@stage1_languages@,$stage1_languages,;t t
12220s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
12221s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12222s,@tooldir@,$tooldir,;t t
12223s,@build_tooldir@,$build_tooldir,;t t
12224s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12225s,@GDB_TK@,$GDB_TK,;t t
12226s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12227s,@build_configargs@,$build_configargs,;t t
12228s,@build_configdirs@,$build_configdirs,;t t
12229s,@host_configargs@,$host_configargs,;t t
12230s,@configdirs@,$configdirs,;t t
12231s,@target_configargs@,$target_configargs,;t t
12232s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12233s,@config_shell@,$config_shell,;t t
12234s,@YACC@,$YACC,;t t
12235s,@BISON@,$BISON,;t t
12236s,@M4@,$M4,;t t
12237s,@LEX@,$LEX,;t t
12238s,@FLEX@,$FLEX,;t t
12239s,@MAKEINFO@,$MAKEINFO,;t t
12240s,@EXPECT@,$EXPECT,;t t
12241s,@RUNTEST@,$RUNTEST,;t t
12242s,@AR@,$AR,;t t
12243s,@AS@,$AS,;t t
12244s,@DLLTOOL@,$DLLTOOL,;t t
12245s,@LD@,$LD,;t t
12246s,@LIPO@,$LIPO,;t t
12247s,@NM@,$NM,;t t
12248s,@RANLIB@,$RANLIB,;t t
12249s,@STRIP@,$STRIP,;t t
12250s,@WINDRES@,$WINDRES,;t t
12251s,@OBJCOPY@,$OBJCOPY,;t t
12252s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1 12253s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
c6b750e1
DJ
12254s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12255s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12256s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12257s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12258s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12259s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12260s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12261s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12262s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12263s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12264s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12265s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12266s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12267s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12268s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
12269s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12270s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12271s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12272s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12273s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12274s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12275s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12276s,@MAINT@,$MAINT,;t t
12277s,@stage1_cflags@,$stage1_cflags,;t t
12278s,@stage1_checking@,$stage1_checking,;t t
12279s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12280s,@datarootdir@,$datarootdir,;t t
12281s,@docdir@,$docdir,;t t
12282s,@htmldir@,$htmldir,;t t
12283s,@LIBOBJS@,$LIBOBJS,;t t
12284s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 12285/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 12286s,@serialization_dependencies@,,;t t
a0da8069 12287/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 12288s,@host_makefile_frag@,,;t t
a0da8069 12289/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 12290s,@target_makefile_frag@,,;t t
a0da8069 12291/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 12292s,@alphaieee_frag@,,;t t
a0da8069 12293/@ospace_frag@/r $ospace_frag
c6b750e1 12294s,@ospace_frag@,,;t t
a0da8069 12295CEOF
252b5132 12296
c6b750e1
DJ
12297_ACEOF
12298
12299 cat >>$CONFIG_STATUS <<\_ACEOF
12300 # Split the substitutions into bite-sized pieces for seds with
12301 # small command number limits, like on Digital OSF/1 and HP-UX.
12302 ac_max_sed_lines=48
12303 ac_sed_frag=1 # Number of current file.
12304 ac_beg=1 # First line for current file.
12305 ac_end=$ac_max_sed_lines # Line after last line for current file.
12306 ac_more_lines=:
12307 ac_sed_cmds=
12308 while $ac_more_lines; do
12309 if test $ac_beg -gt 1; then
12310 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12311 else
12312 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12313 fi
12314 if test ! -s $tmp/subs.frag; then
12315 ac_more_lines=false
a0da8069 12316 else
c6b750e1
DJ
12317 # The purpose of the label and of the branching condition is to
12318 # speed up the sed processing (if there are no `@' at all, there
12319 # is no need to browse any of the substitutions).
12320 # These are the two extra sed commands mentioned above.
12321 (echo ':t
12322 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12323 if test -z "$ac_sed_cmds"; then
12324 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12325 else
12326 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12327 fi
12328 ac_sed_frag=`expr $ac_sed_frag + 1`
12329 ac_beg=$ac_end
12330 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 12331 fi
c6b750e1
DJ
12332 done
12333 if test -z "$ac_sed_cmds"; then
12334 ac_sed_cmds=cat
852e5f18 12335 fi
c6b750e1 12336fi # test -n "$CONFIG_FILES"
cac3d6c4 12337
c6b750e1
DJ
12338_ACEOF
12339cat >>$CONFIG_STATUS <<\_ACEOF
12340for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 12341 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
12342 case $ac_file in
12343 - | *:- | *:-:* ) # input from stdin
12344 cat >$tmp/stdin
12345 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12346 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12347 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12348 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12349 * ) ac_file_in=$ac_file.in ;;
a0da8069 12350 esac
252b5132 12351
c6b750e1
DJ
12352 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12353 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12354$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12355 X"$ac_file" : 'X\(//\)[^/]' \| \
12356 X"$ac_file" : 'X\(//\)$' \| \
12357 X"$ac_file" : 'X\(/\)' \| \
12358 . : '\(.\)' 2>/dev/null ||
12359echo X"$ac_file" |
12360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12361 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12362 /^X\(\/\/\)$/{ s//\1/; q; }
12363 /^X\(\/\).*/{ s//\1/; q; }
12364 s/.*/./; q'`
12365 { if $as_mkdir_p; then
12366 mkdir -p "$ac_dir"
cac3d6c4 12367 else
c6b750e1
DJ
12368 as_dir="$ac_dir"
12369 as_dirs=
12370 while test ! -d "$as_dir"; do
12371 as_dirs="$as_dir $as_dirs"
12372 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12373$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12374 X"$as_dir" : 'X\(//\)[^/]' \| \
12375 X"$as_dir" : 'X\(//\)$' \| \
12376 X"$as_dir" : 'X\(/\)' \| \
12377 . : '\(.\)' 2>/dev/null ||
12378echo X"$as_dir" |
12379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12380 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12381 /^X\(\/\/\)$/{ s//\1/; q; }
12382 /^X\(\/\).*/{ s//\1/; q; }
12383 s/.*/./; q'`
12384 done
12385 test ! -n "$as_dirs" || mkdir $as_dirs
12386 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12387echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12388 { (exit 1); exit 1; }; }; }
12389
12390 ac_builddir=.
252b5132 12391
c6b750e1
DJ
12392if test "$ac_dir" != .; then
12393 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12394 # A "../" for each directory in $ac_dir_suffix.
12395 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12396else
12397 ac_dir_suffix= ac_top_builddir=
12398fi
12399
12400case $srcdir in
12401 .) # No --srcdir option. We are building in place.
12402 ac_srcdir=.
12403 if test -z "$ac_top_builddir"; then
12404 ac_top_srcdir=.
12405 else
12406 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12407 fi ;;
12408 [\\/]* | ?:[\\/]* ) # Absolute path.
12409 ac_srcdir=$srcdir$ac_dir_suffix;
12410 ac_top_srcdir=$srcdir ;;
a0da8069 12411 *) # Relative path.
c6b750e1
DJ
12412 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12413 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12414esac
252b5132 12415
c6b750e1
DJ
12416# Do not use `cd foo && pwd` to compute absolute paths, because
12417# the directories may not exist.
12418case `pwd` in
12419.) ac_abs_builddir="$ac_dir";;
12420*)
12421 case "$ac_dir" in
12422 .) ac_abs_builddir=`pwd`;;
12423 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12424 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12425 esac;;
12426esac
12427case $ac_abs_builddir in
12428.) ac_abs_top_builddir=${ac_top_builddir}.;;
12429*)
12430 case ${ac_top_builddir}. in
12431 .) ac_abs_top_builddir=$ac_abs_builddir;;
12432 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12433 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12434 esac;;
12435esac
12436case $ac_abs_builddir in
12437.) ac_abs_srcdir=$ac_srcdir;;
12438*)
12439 case $ac_srcdir in
12440 .) ac_abs_srcdir=$ac_abs_builddir;;
12441 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12442 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12443 esac;;
12444esac
12445case $ac_abs_builddir in
12446.) ac_abs_top_srcdir=$ac_top_srcdir;;
12447*)
12448 case $ac_top_srcdir in
12449 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12450 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12451 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12452 esac;;
12453esac
252b5132 12454
c6b750e1
DJ
12455
12456 case $INSTALL in
12457 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12458 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 12459 esac
252b5132 12460
c6b750e1
DJ
12461 if test x"$ac_file" != x-; then
12462 { echo "$as_me:$LINENO: creating $ac_file" >&5
12463echo "$as_me: creating $ac_file" >&6;}
12464 rm -f "$ac_file"
12465 fi
12466 # Let's still pretend it is `configure' which instantiates (i.e., don't
12467 # use $as_me), people would be surprised to read:
12468 # /* config.h. Generated by config.status. */
12469 if test x"$ac_file" = x-; then
12470 configure_input=
12471 else
12472 configure_input="$ac_file. "
12473 fi
12474 configure_input=$configure_input"Generated from `echo $ac_file_in |
12475 sed 's,.*/,,'` by configure."
12476
12477 # First look for the input files in the build tree, otherwise in the
12478 # src tree.
12479 ac_file_inputs=`IFS=:
12480 for f in $ac_file_in; do
12481 case $f in
12482 -) echo $tmp/stdin ;;
12483 [\\/$]*)
12484 # Absolute (can't be DOS-style, as IFS=:)
12485 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12486echo "$as_me: error: cannot find input file: $f" >&2;}
12487 { (exit 1); exit 1; }; }
12488 echo "$f";;
12489 *) # Relative
12490 if test -f "$f"; then
12491 # Build tree
12492 echo "$f"
12493 elif test -f "$srcdir/$f"; then
12494 # Source tree
12495 echo "$srcdir/$f"
12496 else
12497 # /dev/null tree
12498 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12499echo "$as_me: error: cannot find input file: $f" >&2;}
12500 { (exit 1); exit 1; }; }
12501 fi;;
12502 esac
12503 done` || { (exit 1); exit 1; }
12504_ACEOF
12505cat >>$CONFIG_STATUS <<_ACEOF
12506 sed "$ac_vpsub
12507$extrasub
12508_ACEOF
12509cat >>$CONFIG_STATUS <<\_ACEOF
12510:t
12511/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12512s,@configure_input@,$configure_input,;t t
12513s,@srcdir@,$ac_srcdir,;t t
12514s,@abs_srcdir@,$ac_abs_srcdir,;t t
12515s,@top_srcdir@,$ac_top_srcdir,;t t
12516s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12517s,@builddir@,$ac_builddir,;t t
12518s,@abs_builddir@,$ac_abs_builddir,;t t
12519s,@top_builddir@,$ac_top_builddir,;t t
12520s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12521s,@INSTALL@,$ac_INSTALL,;t t
12522" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12523 rm -f $tmp/stdin
12524 if test x"$ac_file" != x-; then
12525 mv $tmp/out $ac_file
12526 else
12527 cat $tmp/out
12528 rm -f $tmp/out
12529 fi
c148b4cb 12530
c6b750e1
DJ
12531done
12532_ACEOF
c148b4cb 12533
c6b750e1 12534cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 12535
c6b750e1
DJ
12536{ (exit 0); exit 0; }
12537_ACEOF
c148b4cb 12538chmod +x $CONFIG_STATUS
c6b750e1
DJ
12539ac_clean_files=$ac_clean_files_save
12540
12541
12542# configure is writing to config.log, and then calls config.status.
12543# config.status does its own redirection, appending to config.log.
12544# Unfortunately, on DOS this fails, as config.log is still kept open
12545# by configure, so config.status won't be able to write to it; its
12546# output is simply discarded. So we exec the FD to /dev/null,
12547# effectively closing config.log, so it can be properly (re)opened and
12548# appended to by config.status. When coming back to configure, we
12549# need to make the FD available again.
12550if test "$no_create" != yes; then
12551 ac_cs_success=:
12552 ac_config_status_args=
12553 test "$silent" = yes &&
12554 ac_config_status_args="$ac_config_status_args --quiet"
12555 exec 5>/dev/null
12556 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12557 exec 5>>config.log
12558 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12559 # would make configure fail if this is the last instruction.
12560 $ac_cs_success || { (exit 1); exit 1; }
12561fi
c148b4cb 12562
This page took 1.298797 seconds and 4 git commands to generate.