]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - configure
* ld-elf/sec-to-seg.exp: New test: Checks the assignment of
[thirdparty/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
c6b750e1 3# Generated by GNU Autoconf 2.59.
a0da8069 4#
c6b750e1 5# Copyright (C) 2003 Free Software Foundation, Inc.
a0da8069
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
c6b750e1
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
a0da8069 243
c6b750e1
DJ
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
a0da8069 254ac_default_prefix=/usr/local
c6b750e1
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
5b553f7e 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 TOPLEVEL_CONFIGURE_ARGUMENTS 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 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 DEBUG_PREFIX_CFLAGS_FOR_TARGET CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP 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 WINDMC_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 pdfdir htmldir LIBOBJS LTLIBOBJS'
c6b750e1 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
7a283e07 277ac_pwd=`pwd`
a0da8069
NN
278
279# Initialize some variables set by options.
c6b750e1
DJ
280ac_init_help=
281ac_init_version=false
a0da8069
NN
282# The variables have the same names as the options, with
283# dashes changed to underlines.
c6b750e1 284cache_file=/dev/null
a0da8069 285exec_prefix=NONE
a0da8069 286no_create=
a0da8069
NN
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
a0da8069
NN
295verbose=
296x_includes=NONE
297x_libraries=NONE
c6b750e1
DJ
298
299# Installation directory options.
300# These are left unexpanded so users can "make install exec_prefix=/foo"
301# and all the variables that are supposed to be based on exec_prefix
302# by default will actually change.
303# Use braces instead of parens because sh, perl, etc. also accept them.
a0da8069
NN
304bindir='${exec_prefix}/bin'
305sbindir='${exec_prefix}/sbin'
306libexecdir='${exec_prefix}/libexec'
307datadir='${prefix}/share'
308sysconfdir='${prefix}/etc'
309sharedstatedir='${prefix}/com'
310localstatedir='${prefix}/var'
311libdir='${exec_prefix}/lib'
312includedir='${prefix}/include'
313oldincludedir='/usr/include'
314infodir='${prefix}/info'
315mandir='${prefix}/man'
252b5132 316
a0da8069
NN
317ac_prev=
318for ac_option
319do
a0da8069
NN
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
323 ac_prev=
324 continue
325 fi
252b5132 326
c6b750e1 327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
a0da8069
NN
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
c6b750e1 331 case $ac_option in
a0da8069
NN
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 336 bindir=$ac_optarg ;;
a0da8069
NN
337
338 -build | --build | --buil | --bui | --bu)
c6b750e1 339 ac_prev=build_alias ;;
a0da8069 340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 341 build_alias=$ac_optarg ;;
a0da8069
NN
342
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
a0da8069
NN
352
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 ac_prev=datadir ;;
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
c6b750e1 357 datadir=$ac_optarg ;;
a0da8069
NN
358
359 -disable-* | --disable-*)
c6b750e1 360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 361 # Reject names that are not valid shell variable names.
c6b750e1
DJ
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
a0da8069
NN
367
368 -enable-* | --enable-*)
c6b750e1 369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 370 # Reject names that are not valid shell variable names.
c6b750e1
DJ
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
377 *) ac_optarg=yes ;;
378 esac
c6b750e1 379 eval "enable_$ac_feature='$ac_optarg'" ;;
a0da8069
NN
380
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
c6b750e1 388 exec_prefix=$ac_optarg ;;
a0da8069
NN
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
c6b750e1
DJ
394 -help | --help | --hel | --he | -h)
395 ac_init_help=long ;;
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
a0da8069
NN
400
401 -host | --host | --hos | --ho)
c6b750e1 402 ac_prev=host_alias ;;
a0da8069 403 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 404 host_alias=$ac_optarg ;;
a0da8069
NN
405
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 411 includedir=$ac_optarg ;;
a0da8069
NN
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 416 infodir=$ac_optarg ;;
a0da8069
NN
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 421 libdir=$ac_optarg ;;
a0da8069
NN
422
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
c6b750e1 428 libexecdir=$ac_optarg ;;
a0da8069
NN
429
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
c6b750e1 437 localstatedir=$ac_optarg ;;
a0da8069
NN
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 442 mandir=$ac_optarg ;;
a0da8069
NN
443
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
447
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 449 | --no-cr | --no-c | -n)
a0da8069
NN
450 no_create=yes ;;
451
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454 no_recursion=yes ;;
455
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 463 oldincludedir=$ac_optarg ;;
a0da8069
NN
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 468 prefix=$ac_optarg ;;
a0da8069
NN
469
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 475 program_prefix=$ac_optarg ;;
a0da8069
NN
476
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 482 program_suffix=$ac_optarg ;;
a0da8069
NN
483
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 499 program_transform_name=$ac_optarg ;;
a0da8069
NN
500
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
504
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 ac_prev=sbindir ;;
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 | --sbi=* | --sb=*)
c6b750e1 509 sbindir=$ac_optarg ;;
a0da8069
NN
510
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
514 | --sha | --sh)
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 | --sha=* | --sh=*)
c6b750e1 520 sharedstatedir=$ac_optarg ;;
a0da8069
NN
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
c6b750e1 525 site=$ac_optarg ;;
a0da8069
NN
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 530 srcdir=$ac_optarg ;;
a0da8069
NN
531
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 537 sysconfdir=$ac_optarg ;;
a0da8069
NN
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 540 ac_prev=target_alias ;;
a0da8069 541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 542 target_alias=$ac_optarg ;;
a0da8069
NN
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
c6b750e1
DJ
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
a0da8069
NN
549
550 -with-* | --with-*)
c6b750e1 551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 552 # Reject names that are not valid shell variable names.
c6b750e1
DJ
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
a0da8069 556 ac_package=`echo $ac_package| sed 's/-/_/g'`
c6b750e1
DJ
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
559 *) ac_optarg=yes ;;
560 esac
c6b750e1 561 eval "with_$ac_package='$ac_optarg'" ;;
a0da8069
NN
562
563 -without-* | --without-*)
c6b750e1 564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 565 # Reject names that are not valid shell variable names.
c6b750e1
DJ
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
a0da8069
NN
571
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
575
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 581 x_includes=$ac_optarg ;;
a0da8069
NN
582
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 588 x_libraries=$ac_optarg ;;
a0da8069 589
c6b750e1
DJ
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
a0da8069
NN
593 ;;
594
c6b750e1
DJ
595 *=*)
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
603 export $ac_envvar ;;
604
a0da8069 605 *)
c6b750e1
DJ
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
611 ;;
612
613 esac
614done
615
616if test -n "$ac_prev"; then
c6b750e1
DJ
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
a0da8069 620fi
a0da8069 621
c6b750e1
DJ
622# Be sure to have absolute paths.
623for ac_var in exec_prefix prefix
624do
625 eval ac_val=$`echo $ac_var`
626 case $ac_val in
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
630 esac
631done
a0da8069 632
c6b750e1
DJ
633# Be sure to have absolute paths.
634for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
a0da8069 636do
c6b750e1
DJ
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
a0da8069
NN
642 esac
643done
644
c6b750e1
DJ
645# There might be people who depend on the old broken behavior: `$host'
646# used to hold the argument of --host etc.
647# FIXME: To remove some day.
648build=$build_alias
649host=$host_alias
650target=$target_alias
376a0e54 651
c6b750e1
DJ
652# FIXME: To remove some day.
653if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
659 cross_compiling=yes
660 fi
661fi
662
663ac_tool_prefix=
664test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666test "$silent" = yes && exec 6>/dev/null
a0da8069 667
a0da8069
NN
668
669# Find the source files, if location was not specified.
670if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
c6b750e1
DJ
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
679echo X"$0" |
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
a0da8069
NN
685 srcdir=$ac_confdir
686 if test ! -r $srcdir/$ac_unique_file; then
687 srcdir=..
688 fi
689else
690 ac_srcdir_defaulted=no
691fi
692if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
c6b750e1
DJ
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
a0da8069 696 else
c6b750e1
DJ
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
699 fi
700fi
701(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705ac_env_build_alias_set=${build_alias+set}
706ac_env_build_alias_value=$build_alias
707ac_cv_env_build_alias_set=${build_alias+set}
708ac_cv_env_build_alias_value=$build_alias
709ac_env_host_alias_set=${host_alias+set}
710ac_env_host_alias_value=$host_alias
711ac_cv_env_host_alias_set=${host_alias+set}
712ac_cv_env_host_alias_value=$host_alias
713ac_env_target_alias_set=${target_alias+set}
714ac_env_target_alias_value=$target_alias
715ac_cv_env_target_alias_set=${target_alias+set}
716ac_cv_env_target_alias_value=$target_alias
9cc8ae67
PB
717ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
718
c6b750e1
DJ
719ac_env_CC_set=${CC+set}
720ac_env_CC_value=$CC
721ac_cv_env_CC_set=${CC+set}
722ac_cv_env_CC_value=$CC
723ac_env_CFLAGS_set=${CFLAGS+set}
724ac_env_CFLAGS_value=$CFLAGS
725ac_cv_env_CFLAGS_set=${CFLAGS+set}
726ac_cv_env_CFLAGS_value=$CFLAGS
727ac_env_LDFLAGS_set=${LDFLAGS+set}
728ac_env_LDFLAGS_value=$LDFLAGS
729ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
730ac_cv_env_LDFLAGS_value=$LDFLAGS
731ac_env_CPPFLAGS_set=${CPPFLAGS+set}
732ac_env_CPPFLAGS_value=$CPPFLAGS
733ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
734ac_cv_env_CPPFLAGS_value=$CPPFLAGS
18f6b6ee
PB
735ac_env_CXX_set=${CXX+set}
736ac_env_CXX_value=$CXX
737ac_cv_env_CXX_set=${CXX+set}
738ac_cv_env_CXX_value=$CXX
739ac_env_CXXFLAGS_set=${CXXFLAGS+set}
740ac_env_CXXFLAGS_value=$CXXFLAGS
741ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
742ac_cv_env_CXXFLAGS_value=$CXXFLAGS
9a819804
AO
743ac_env_AR_set=${AR+set}
744ac_env_AR_value=$AR
745ac_cv_env_AR_set=${AR+set}
746ac_cv_env_AR_value=$AR
747ac_env_AS_set=${AS+set}
748ac_env_AS_value=$AS
749ac_cv_env_AS_set=${AS+set}
750ac_cv_env_AS_value=$AS
751ac_env_DLLTOOL_set=${DLLTOOL+set}
752ac_env_DLLTOOL_value=$DLLTOOL
753ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
754ac_cv_env_DLLTOOL_value=$DLLTOOL
755ac_env_LD_set=${LD+set}
756ac_env_LD_value=$LD
757ac_cv_env_LD_set=${LD+set}
758ac_cv_env_LD_value=$LD
759ac_env_LIPO_set=${LIPO+set}
760ac_env_LIPO_value=$LIPO
761ac_cv_env_LIPO_set=${LIPO+set}
762ac_cv_env_LIPO_value=$LIPO
763ac_env_NM_set=${NM+set}
764ac_env_NM_value=$NM
765ac_cv_env_NM_set=${NM+set}
766ac_cv_env_NM_value=$NM
767ac_env_RANLIB_set=${RANLIB+set}
768ac_env_RANLIB_value=$RANLIB
769ac_cv_env_RANLIB_set=${RANLIB+set}
770ac_cv_env_RANLIB_value=$RANLIB
771ac_env_STRIP_set=${STRIP+set}
772ac_env_STRIP_value=$STRIP
773ac_cv_env_STRIP_set=${STRIP+set}
774ac_cv_env_STRIP_value=$STRIP
775ac_env_WINDRES_set=${WINDRES+set}
776ac_env_WINDRES_value=$WINDRES
777ac_cv_env_WINDRES_set=${WINDRES+set}
778ac_cv_env_WINDRES_value=$WINDRES
0c24b341
NC
779ac_env_WINDMC_set=${WINDMC+set}
780ac_env_WINDMC_value=$WINDMC
781ac_cv_env_WINDMC_set=${WINDMC+set}
782ac_cv_env_WINDMC_value=$WINDMC
9a819804
AO
783ac_env_OBJCOPY_set=${OBJCOPY+set}
784ac_env_OBJCOPY_value=$OBJCOPY
785ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
786ac_cv_env_OBJCOPY_value=$OBJCOPY
787ac_env_OBJDUMP_set=${OBJDUMP+set}
788ac_env_OBJDUMP_value=$OBJDUMP
789ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
790ac_cv_env_OBJDUMP_value=$OBJDUMP
791ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
792ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
793ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
794ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
795ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
796ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
797ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
798ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
799ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
800ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
801ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
802ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
803ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
804ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
805ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
806ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
807ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
808ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
809ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
810ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
811ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
812ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
813ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
814ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
815ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
816ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
817ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
818ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
819ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
820ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
821ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
822ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
823ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
824ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
825ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
826ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
827ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
828ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
829ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
830ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
831ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
832ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
833ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
834ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
835ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
836ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
837ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
838ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
839ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
840ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
841ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
842ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
843ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
844ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
845ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
846ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
847ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
848ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
849ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
850ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
0c24b341
NC
851ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
852ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
853ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
854ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
c6b750e1
DJ
855
856#
857# Report the --help message.
858#
859if test "$ac_init_help" = "long"; then
860 # Omit some internal or obsolete options to make the list less imposing.
861 # This message is too long to be a string in the A/UX 3.1 sh.
862 cat <<_ACEOF
863\`configure' configures this package to adapt to many kinds of systems.
864
865Usage: $0 [OPTION]... [VAR=VALUE]...
866
867To assign environment variables (e.g., CC, CFLAGS...), specify them as
868VAR=VALUE. See below for descriptions of some of the useful variables.
869
870Defaults for the options are specified in brackets.
871
872Configuration:
873 -h, --help display this help and exit
874 --help=short display options specific to this package
875 --help=recursive display the short help of all the included packages
876 -V, --version display version information and exit
877 -q, --quiet, --silent do not print \`checking...' messages
878 --cache-file=FILE cache test results in FILE [disabled]
879 -C, --config-cache alias for \`--cache-file=config.cache'
880 -n, --no-create do not create output files
881 --srcdir=DIR find the sources in DIR [configure dir or \`..']
882
883_ACEOF
884
885 cat <<_ACEOF
886Installation directories:
887 --prefix=PREFIX install architecture-independent files in PREFIX
888 [$ac_default_prefix]
889 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
890 [PREFIX]
891
892By default, \`make install' will install all the files in
893\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
894an installation prefix other than \`$ac_default_prefix' using \`--prefix',
895for instance \`--prefix=\$HOME'.
896
897For better control, use the options below.
898
899Fine tuning of the installation directories:
900 --bindir=DIR user executables [EPREFIX/bin]
901 --sbindir=DIR system admin executables [EPREFIX/sbin]
902 --libexecdir=DIR program executables [EPREFIX/libexec]
903 --datadir=DIR read-only architecture-independent data [PREFIX/share]
904 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
905 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
906 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
907 --libdir=DIR object code libraries [EPREFIX/lib]
908 --includedir=DIR C header files [PREFIX/include]
909 --oldincludedir=DIR C header files for non-gcc [/usr/include]
910 --infodir=DIR info documentation [PREFIX/info]
911 --mandir=DIR man documentation [PREFIX/man]
912_ACEOF
913
914 cat <<\_ACEOF
915
916Program names:
917 --program-prefix=PREFIX prepend PREFIX to installed program names
918 --program-suffix=SUFFIX append SUFFIX to installed program names
919 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
920
921System types:
922 --build=BUILD configure for building on BUILD [guessed]
923 --host=HOST cross-compile to build programs to run on HOST [BUILD]
924 --target=TARGET configure for building compilers for TARGET [HOST]
925_ACEOF
a0da8069 926fi
a0da8069 927
c6b750e1
DJ
928if test -n "$ac_init_help"; then
929
930 cat <<\_ACEOF
931
932Optional Features:
933 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
934 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
93f9b408 935 --enable-gold use gold instead of ld
521ec477
DD
936 --enable-libada build libada directory
937 --enable-libssp build libssp directory
938 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 939 stage1. Mostly useful for compiler development.
521ec477
DD
940 --enable-objc-gc enable use of Boehm's garbage collector with the
941 GNU Objective-C runtime
942 --enable-bootstrap enable bootstrapping [yes if native build]
943 --enable-serial-[{host,target,build}-]configure
944 force sequential configuration of
c6b750e1 945 sub-packages for the host, target or build
521ec477 946 machine, or all sub-packages
c6b750e1
DJ
947 --enable-maintainer-mode enable make rules and dependencies not useful
948 (and sometimes confusing) to the casual installer
521ec477
DD
949 --enable-stage1-checking[=all] choose additional checking for stage1
950 of the compiler
c6b750e1
DJ
951 --enable-werror enable -Werror in bootstrap stage2 and later
952
953Optional Packages:
954 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
955 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
956 --with-build-libsubdir=DIR Directory where to find libraries for build system
521ec477
DD
957 --with-mpfr-dir=PATH this option has been REMOVED
958 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
959 Equivalent to --with-mpfr-include=PATH/include
960 plus --with-mpfr-lib=PATH/lib
961 --with-mpfr-include=PATH
521ec477
DD
962 specify directory for installed MPFR include files
963 --with-mpfr-lib=PATH specify directory for the installed MPFR library
964 --with-gmp-dir=PATH this option has been REMOVED
965 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
966 Equivalent to --with-gmp-include=PATH/include
967 plus --with-gmp-lib=PATH/lib
521ec477
DD
968 --with-gmp-include=PATH specify directory for installed GMP include files
969 --with-gmp-lib=PATH specify directory for the installed GMP library
970 --with-build-sysroot=SYSROOT
c6b750e1 971 use sysroot as the system root during the build
8a6ee3ab
JM
972 --with-debug-prefix-map='A=B C=D ...'
973 map A to B, C to D ... in debug information
521ec477 974 --with-build-time-tools=PATH
c6b750e1 975 use given path to find target tools during the build
521ec477
DD
976 --with-datarootdir use datarootdir as the data root directory.
977 --with-docdir install documentation in this directory.
978 --with-pdfdir install pdf in this directory.
979 --with-htmldir install html in this directory.
c6b750e1
DJ
980
981Some influential environment variables:
982 CC C compiler command
983 CFLAGS C compiler flags
984 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
985 nonstandard directory <lib dir>
986 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
987 headers in a nonstandard directory <include dir>
18f6b6ee
PB
988 CXX C++ compiler command
989 CXXFLAGS C++ compiler flags
9a819804
AO
990 AR AR for the host
991 AS AS for the host
992 DLLTOOL DLLTOOL for the host
993 LD LD for the host
994 LIPO LIPO for the host
995 NM NM for the host
996 RANLIB RANLIB for the host
997 STRIP STRIP for the host
998 WINDRES WINDRES for the host
0c24b341 999 WINDMC WINDMC for the host
9a819804
AO
1000 OBJCOPY OBJCOPY for the host
1001 OBJDUMP OBJDUMP for the host
1002 CC_FOR_TARGET
1003 CC for the target
1004 CXX_FOR_TARGET
1005 CXX for the target
1006 GCC_FOR_TARGET
1007 GCC for the target
1008 GCJ_FOR_TARGET
1009 GCJ for the target
1010 GFORTRAN_FOR_TARGET
1011 GFORTRAN for the target
1012 AR_FOR_TARGET
1013 AR for the target
1014 AS_FOR_TARGET
1015 AS for the target
1016 DLLTOOL_FOR_TARGET
1017 DLLTOOL for the target
1018 LD_FOR_TARGET
1019 LD for the target
1020 LIPO_FOR_TARGET
1021 LIPO for the target
1022 NM_FOR_TARGET
1023 NM for the target
1024 OBJDUMP_FOR_TARGET
1025 OBJDUMP for the target
1026 RANLIB_FOR_TARGET
1027 RANLIB for the target
1028 STRIP_FOR_TARGET
1029 STRIP for the target
1030 WINDRES_FOR_TARGET
1031 WINDRES for the target
0c24b341
NC
1032 WINDMC_FOR_TARGET
1033 WINDMC for the target
c6b750e1
DJ
1034
1035Use these variables to override the choices made by `configure' or to help
1036it to find libraries and programs with nonstandard names/locations.
1037
1038_ACEOF
1039fi
1040
1041if test "$ac_init_help" = "recursive"; then
1042 # If there are subdirs, report their specific --help.
1043 ac_popdir=`pwd`
1044 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1045 test -d $ac_dir || continue
1046 ac_builddir=.
1047
1048if test "$ac_dir" != .; then
1049 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1050 # A "../" for each directory in $ac_dir_suffix.
1051 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1052else
1053 ac_dir_suffix= ac_top_builddir=
1054fi
1055
1056case $srcdir in
1057 .) # No --srcdir option. We are building in place.
1058 ac_srcdir=.
1059 if test -z "$ac_top_builddir"; then
1060 ac_top_srcdir=.
1061 else
1062 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1063 fi ;;
1064 [\\/]* | ?:[\\/]* ) # Absolute path.
1065 ac_srcdir=$srcdir$ac_dir_suffix;
1066 ac_top_srcdir=$srcdir ;;
1067 *) # Relative path.
1068 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1069 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1070esac
1071
1072# Do not use `cd foo && pwd` to compute absolute paths, because
1073# the directories may not exist.
1074case `pwd` in
1075.) ac_abs_builddir="$ac_dir";;
1076*)
1077 case "$ac_dir" in
1078 .) ac_abs_builddir=`pwd`;;
1079 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1080 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1081 esac;;
1082esac
1083case $ac_abs_builddir in
1084.) ac_abs_top_builddir=${ac_top_builddir}.;;
1085*)
1086 case ${ac_top_builddir}. in
1087 .) ac_abs_top_builddir=$ac_abs_builddir;;
1088 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1089 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1090 esac;;
1091esac
1092case $ac_abs_builddir in
1093.) ac_abs_srcdir=$ac_srcdir;;
1094*)
1095 case $ac_srcdir in
1096 .) ac_abs_srcdir=$ac_abs_builddir;;
1097 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1098 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1099 esac;;
1100esac
1101case $ac_abs_builddir in
1102.) ac_abs_top_srcdir=$ac_top_srcdir;;
1103*)
1104 case $ac_top_srcdir in
1105 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1106 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1107 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1108 esac;;
1109esac
1110
1111 cd $ac_dir
1112 # Check for guested configure; otherwise get Cygnus style configure.
1113 if test -f $ac_srcdir/configure.gnu; then
1114 echo
1115 $SHELL $ac_srcdir/configure.gnu --help=recursive
1116 elif test -f $ac_srcdir/configure; then
1117 echo
1118 $SHELL $ac_srcdir/configure --help=recursive
1119 elif test -f $ac_srcdir/configure.ac ||
1120 test -f $ac_srcdir/configure.in; then
1121 echo
1122 $ac_configure --help
1123 else
1124 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1125 fi
1126 cd $ac_popdir
1127 done
1128fi
1129
1130test -n "$ac_init_help" && exit 0
1131if $ac_init_version; then
1132 cat <<\_ACEOF
1133
1134Copyright (C) 2003 Free Software Foundation, Inc.
1135This configure script is free software; the Free Software Foundation
1136gives unlimited permission to copy, distribute and modify it.
1137_ACEOF
1138 exit 0
1139fi
1140exec 5>config.log
1141cat >&5 <<_ACEOF
1142This file contains any messages produced by compilers while
1143running configure, to aid debugging if configure makes a mistake.
1144
1145It was created by $as_me, which was
1146generated by GNU Autoconf 2.59. Invocation command line was
1147
1148 $ $0 $@
1149
1150_ACEOF
1151{
1152cat <<_ASUNAME
1153## --------- ##
1154## Platform. ##
1155## --------- ##
1156
1157hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1158uname -m = `(uname -m) 2>/dev/null || echo unknown`
1159uname -r = `(uname -r) 2>/dev/null || echo unknown`
1160uname -s = `(uname -s) 2>/dev/null || echo unknown`
1161uname -v = `(uname -v) 2>/dev/null || echo unknown`
1162
1163/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1164/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1165
1166/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1167/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1168/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1169hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1170/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1171/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1172/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1173
1174_ASUNAME
1175
1176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1177for as_dir in $PATH
1178do
1179 IFS=$as_save_IFS
1180 test -z "$as_dir" && as_dir=.
1181 echo "PATH: $as_dir"
1182done
1183
1184} >&5
1185
1186cat >&5 <<_ACEOF
1187
1188
1189## ----------- ##
1190## Core tests. ##
1191## ----------- ##
1192
1193_ACEOF
1194
1195
1196# Keep a trace of the command line.
1197# Strip out --no-create and --no-recursion so they do not pile up.
1198# Strip out --silent because we don't want to record it for future runs.
1199# Also quote any args containing shell meta-characters.
1200# Make two passes to allow for proper duplicate-argument suppression.
1201ac_configure_args=
1202ac_configure_args0=
1203ac_configure_args1=
1204ac_sep=
1205ac_must_keep_next=false
1206for ac_pass in 1 2
1207do
1208 for ac_arg
1209 do
1210 case $ac_arg in
1211 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213 | -silent | --silent | --silen | --sile | --sil)
1214 continue ;;
1215 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1216 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1217 esac
1218 case $ac_pass in
1219 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1220 2)
1221 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1222 if test $ac_must_keep_next = true; then
1223 ac_must_keep_next=false # Got value, back to normal.
1224 else
1225 case $ac_arg in
1226 *=* | --config-cache | -C | -disable-* | --disable-* \
1227 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1228 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1229 | -with-* | --with-* | -without-* | --without-* | --x)
1230 case "$ac_configure_args0 " in
1231 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1232 esac
1233 ;;
1234 -* ) ac_must_keep_next=true ;;
1235 esac
1236 fi
1237 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1238 # Get rid of the leading space.
1239 ac_sep=" "
1240 ;;
1241 esac
1242 done
1243done
1244$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1245$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1246
1247# When interrupted or exit'd, cleanup temporary files, and complete
1248# config.log. We remove comments because anyway the quotes in there
1249# would cause problems or look ugly.
1250# WARNING: Be sure not to use single quotes in there, as some shells,
1251# such as our DU 5.0 friend, will then `close' the trap.
1252trap 'exit_status=$?
1253 # Save into config.log some information that might help in debugging.
1254 {
1255 echo
1256
1257 cat <<\_ASBOX
1258## ---------------- ##
1259## Cache variables. ##
1260## ---------------- ##
1261_ASBOX
1262 echo
1263 # The following way of writing the cache mishandles newlines in values,
1264{
1265 (set) 2>&1 |
1266 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1267 *ac_space=\ *)
1268 sed -n \
1269 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1271 ;;
1272 *)
1273 sed -n \
1274 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1275 ;;
1276 esac;
1277}
1278 echo
1279
1280 cat <<\_ASBOX
1281## ----------------- ##
1282## Output variables. ##
1283## ----------------- ##
1284_ASBOX
1285 echo
1286 for ac_var in $ac_subst_vars
1287 do
1288 eval ac_val=$`echo $ac_var`
1289 echo "$ac_var='"'"'$ac_val'"'"'"
1290 done | sort
1291 echo
1292
1293 if test -n "$ac_subst_files"; then
1294 cat <<\_ASBOX
1295## ------------- ##
1296## Output files. ##
1297## ------------- ##
1298_ASBOX
1299 echo
1300 for ac_var in $ac_subst_files
1301 do
1302 eval ac_val=$`echo $ac_var`
1303 echo "$ac_var='"'"'$ac_val'"'"'"
1304 done | sort
1305 echo
1306 fi
1307
1308 if test -s confdefs.h; then
1309 cat <<\_ASBOX
1310## ----------- ##
1311## confdefs.h. ##
1312## ----------- ##
1313_ASBOX
1314 echo
1315 sed "/^$/d" confdefs.h | sort
1316 echo
1317 fi
1318 test "$ac_signal" != 0 &&
1319 echo "$as_me: caught signal $ac_signal"
1320 echo "$as_me: exit $exit_status"
1321 } >&5
1322 rm -f core *.core &&
1323 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1324 exit $exit_status
1325 ' 0
1326for ac_signal in 1 2 13 15; do
1327 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1328done
1329ac_signal=0
1330
1331# confdefs.h avoids OS command line length limits that DEFS can exceed.
1332rm -rf conftest* confdefs.h
1333# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1334echo >confdefs.h
1335
1336# Predefined preprocessor variables.
1337
1338cat >>confdefs.h <<_ACEOF
1339#define PACKAGE_NAME "$PACKAGE_NAME"
1340_ACEOF
1341
1342
1343cat >>confdefs.h <<_ACEOF
1344#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1345_ACEOF
1346
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_VERSION "$PACKAGE_VERSION"
1350_ACEOF
1351
1352
1353cat >>confdefs.h <<_ACEOF
1354#define PACKAGE_STRING "$PACKAGE_STRING"
1355_ACEOF
1356
1357
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1360_ACEOF
1361
1362
1363# Let the site file select an alternate cache file if it wants to.
a0da8069 1364# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1365if test -z "$CONFIG_SITE"; then
1366 if test "x$prefix" != xNONE; then
1367 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1368 else
1369 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1370 fi
1371fi
1372for ac_site_file in $CONFIG_SITE; do
1373 if test -r "$ac_site_file"; then
c6b750e1
DJ
1374 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1375echo "$as_me: loading site script $ac_site_file" >&6;}
1376 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1377 . "$ac_site_file"
1378 fi
1379done
1380
1381if test -r "$cache_file"; then
c6b750e1
DJ
1382 # Some versions of bash will fail to source /dev/null (special
1383 # files actually), so we avoid doing that.
1384 if test -f "$cache_file"; then
1385 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1386echo "$as_me: loading cache $cache_file" >&6;}
1387 case $cache_file in
1388 [\\/]* | ?:[\\/]* ) . $cache_file;;
1389 *) . ./$cache_file;;
1390 esac
1391 fi
a0da8069 1392else
c6b750e1
DJ
1393 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1394echo "$as_me: creating cache $cache_file" >&6;}
1395 >$cache_file
1396fi
1397
1398# Check that the precious variables saved in the cache have kept the same
1399# value.
1400ac_cache_corrupted=false
1401for ac_var in `(set) 2>&1 |
1402 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1403 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1404 eval ac_new_set=\$ac_env_${ac_var}_set
1405 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1406 eval ac_new_val="\$ac_env_${ac_var}_value"
1407 case $ac_old_set,$ac_new_set in
1408 set,)
1409 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1410echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1411 ac_cache_corrupted=: ;;
1412 ,set)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,);;
1417 *)
1418 if test "x$ac_old_val" != "x$ac_new_val"; then
266df637
PB
1419 # differences in whitespace do not lead to failure.
1420 ac_old_val_w=`echo x $ac_old_val`
1421 ac_new_val_w=`echo x $ac_new_val`
1422 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
c6b750e1 1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
266df637
PB
1425 ac_cache_corrupted=:
1426 else
1427 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1428echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1429 eval $ac_var=\$ac_old_val
1430 fi
1431 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1432echo "$as_me: former value: \`$ac_old_val'" >&2;}
1433 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1434echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
1435 fi;;
1436 esac
1437 # Pass precious variables to config.status.
1438 if test "$ac_new_set" = set; then
1439 case $ac_new_val in
1440 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1441 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1442 *) ac_arg=$ac_var=$ac_new_val ;;
1443 esac
1444 case " $ac_configure_args " in
1445 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1446 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1447 esac
1448 fi
1449done
1450if $ac_cache_corrupted; then
7a283e07
RW
1451 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1452echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
1453 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1454echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1455 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1456echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1457 { (exit 1); exit 1; }; }
a0da8069
NN
1458fi
1459
1460ac_ext=c
a0da8069 1461ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464ac_compiler_gnu=$ac_cv_c_compiler_gnu
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
a0da8069
NN
1478
1479
75778ec4 1480
c6b750e1 1481
7a283e07
RW
1482
1483
1484
c6b750e1
DJ
1485
1486
1487
5b553f7e
RW
1488
1489progname=$0
1490# if PWD already has a value, it is probably wrong.
1491if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1492
1493# Export original configure arguments for use by sub-configures.
1494# Quote arguments with shell meta charatcers.
1495TOPLEVEL_CONFIGURE_ARGUMENTS=
1496set -- "$progname" "$@"
1497for ac_arg
1498do
1499 case "$ac_arg" in
1500 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1501 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1502 # if the argument is of the form -foo=baz, quote the baz part only
1503 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1504 *) ;;
1505 esac
1506 # Add the quoted argument to the list.
1507 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1508done
1509if test "$silent" = yes; then
1510 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1511fi
1512# Remove the initial space we just introduced and, as these will be
1513# expanded by make, quote '$'.
1514TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1515
c6b750e1
DJ
1516
1517# Find the build, host, and target systems.
a0da8069 1518ac_aux_dir=
315b3b02 1519for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1520 if test -f $ac_dir/install-sh; then
1521 ac_aux_dir=$ac_dir
1522 ac_install_sh="$ac_aux_dir/install-sh -c"
1523 break
1524 elif test -f $ac_dir/install.sh; then
1525 ac_aux_dir=$ac_dir
1526 ac_install_sh="$ac_aux_dir/install.sh -c"
1527 break
c6b750e1
DJ
1528 elif test -f $ac_dir/shtool; then
1529 ac_aux_dir=$ac_dir
1530 ac_install_sh="$ac_aux_dir/shtool install -c"
1531 break
a0da8069
NN
1532 fi
1533done
1534if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1535 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1536echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1537 { (exit 1); exit 1; }; }
a0da8069 1538fi
c6b750e1
DJ
1539ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1540ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1541ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1542
c6b750e1
DJ
1543# Make sure we can run config.sub.
1544$ac_config_sub sun4 >/dev/null 2>&1 ||
1545 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1546echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1547 { (exit 1); exit 1; }; }
1548
1549echo "$as_me:$LINENO: checking build system type" >&5
1550echo $ECHO_N "checking build system type... $ECHO_C" >&6
1551if test "${ac_cv_build+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1553else
1554 ac_cv_build_alias=$build_alias
1555test -z "$ac_cv_build_alias" &&
1556 ac_cv_build_alias=`$ac_config_guess`
1557test -z "$ac_cv_build_alias" &&
1558 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1559echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1560 { (exit 1); exit 1; }; }
1561ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1562 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1563echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1564 { (exit 1); exit 1; }; }
1565
1566fi
1567echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1568echo "${ECHO_T}$ac_cv_build" >&6
1569build=$ac_cv_build
1570build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1571build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1572build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1573
a0da8069 1574
c6b750e1
DJ
1575 case ${build_alias} in
1576 "") build_noncanonical=${build} ;;
1577 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1578esac
1579
1580
cac3d6c4 1581
c6b750e1
DJ
1582 case ${host_alias} in
1583 "") host_noncanonical=${build_noncanonical} ;;
1584 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1585esac
1586
cac3d6c4 1587
c6b750e1
DJ
1588
1589 case ${target_alias} in
1590 "") target_noncanonical=${host_noncanonical} ;;
1591 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1592esac
1593
cac3d6c4 1594
c6b750e1
DJ
1595
1596
1597test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1598 test "$program_prefix$program_suffix$program_transform_name" = \
1599 NONENONEs,x,x, &&
c6b750e1 1600 program_transform_name=s,y,y,
cac3d6c4 1601
c6b750e1
DJ
1602echo "$as_me:$LINENO: checking host system type" >&5
1603echo $ECHO_N "checking host system type... $ECHO_C" >&6
1604if test "${ac_cv_host+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1606else
c6b750e1
DJ
1607 ac_cv_host_alias=$host_alias
1608test -z "$ac_cv_host_alias" &&
1609 ac_cv_host_alias=$ac_cv_build_alias
1610ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1611 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1612echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1613 { (exit 1); exit 1; }; }
1614
1615fi
1616echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1617echo "${ECHO_T}$ac_cv_host" >&6
1618host=$ac_cv_host
1619host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1620host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1621host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1622
1623
1624echo "$as_me:$LINENO: checking target system type" >&5
1625echo $ECHO_N "checking target system type... $ECHO_C" >&6
1626if test "${ac_cv_target+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628else
1629 ac_cv_target_alias=$target_alias
1630test "x$ac_cv_target_alias" = "x" &&
1631 ac_cv_target_alias=$ac_cv_host_alias
1632ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1633 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1634echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1635 { (exit 1); exit 1; }; }
1636
cac3d6c4 1637fi
c6b750e1
DJ
1638echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1639echo "${ECHO_T}$ac_cv_target" >&6
1640target=$ac_cv_target
1641target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1642target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1643target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1644
1645
1646# The aliases save the names the user supplied, while $host etc.
1647# will get canonicalized.
1648test -n "$target_alias" &&
1649 test "$program_prefix$program_suffix$program_transform_name" = \
1650 NONENONEs,x,x, &&
1651 program_prefix=${target_alias}-
a0da8069 1652test "$program_prefix" != NONE &&
c6b750e1 1653 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1654# Use a double $ so make ignores it.
1655test "$program_suffix" != NONE &&
c6b750e1
DJ
1656 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1657# Double any \ or $. echo might interpret backslashes.
1658# By default was `s,x,x', remove it if useless.
1659cat <<\_ACEOF >conftest.sed
1660s/[\\$]/&&/g;s/;s,x,x,$//
1661_ACEOF
1662program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1663rm conftest.sed
cac3d6c4 1664
a0da8069
NN
1665
1666
e5c3f801
NN
1667# Get 'install' or 'install-sh' and its variants.
1668# Find a good install program. We prefer a C program (faster),
1669# so one script is as good as another. But avoid the broken or
1670# incompatible versions:
1671# SysV /etc/install, /usr/sbin/install
1672# SunOS /usr/etc/install
1673# IRIX /sbin/install
1674# AIX /bin/install
c6b750e1 1675# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1676# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1677# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1678# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1679# OS/2's system install, which has a completely different semantic
e5c3f801 1680# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 1681# Reject install programs that cannot install multiple files.
c6b750e1
DJ
1682echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1683echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1684if test -z "$INSTALL"; then
c6b750e1
DJ
1685if test "${ac_cv_path_install+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1687else
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689for as_dir in $PATH
1690do
1691 IFS=$as_save_IFS
1692 test -z "$as_dir" && as_dir=.
1693 # Account for people who put trailing slashes in PATH elements.
1694case $as_dir/ in
1695 ./ | .// | /cC/* | \
1696 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1697 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1698 /usr/ucb/* ) ;;
1699 *)
1700 # OSF1 and SCO ODT 3.0 have their own names for install.
1701 # Don't use installbsd from OSF since it installs stuff as root
1702 # by default.
1703 for ac_prog in ginstall scoinst install; do
1704 for ac_exec_ext in '' $ac_executable_extensions; do
1705 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1706 if test $ac_prog = install &&
c6b750e1 1707 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1708 # AIX install. It has an incompatible calling convention.
1709 :
c6b750e1
DJ
1710 elif test $ac_prog = install &&
1711 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1712 # program-specific install script used by HP pwplus--don't use.
1713 :
e5c3f801 1714 else
58c85be7
RW
1715 rm -rf conftest.one conftest.two conftest.dir
1716 echo one > conftest.one
1717 echo two > conftest.two
1718 mkdir conftest.dir
1719 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1720 test -s conftest.one && test -s conftest.two &&
1721 test -s conftest.dir/conftest.one &&
1722 test -s conftest.dir/conftest.two
1723 then
1724 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1725 break 3
1726 fi
e5c3f801
NN
1727 fi
1728 fi
1729 done
c6b750e1
DJ
1730 done
1731 ;;
1732esac
1733done
1734
58c85be7 1735rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
1736
1737fi
1738 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1739 INSTALL=$ac_cv_path_install
e5c3f801 1740 else
58c85be7
RW
1741 # As a last resort, use the slow shell script. Don't cache a
1742 # value for INSTALL within a source directory, because that will
e5c3f801 1743 # break other packages using the cache if that directory is
58c85be7 1744 # removed, or if the value is a relative name.
c6b750e1 1745 INSTALL=$ac_install_sh
e5c3f801
NN
1746 fi
1747fi
c6b750e1
DJ
1748echo "$as_me:$LINENO: result: $INSTALL" >&5
1749echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1750
1751# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1752# It thinks the first close brace ends the variable substitution.
1753test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1754
c6b750e1 1755test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1756
1757test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1758
c6b750e1
DJ
1759echo "$as_me:$LINENO: checking whether ln works" >&5
1760echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1761if test "${acx_cv_prog_LN+set}" = set; then
1762 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1763else
1764 rm -f conftestdata_t
1765echo >conftestdata_f
1766if ln conftestdata_f conftestdata_t 2>/dev/null
1767then
1768 acx_cv_prog_LN=ln
1769else
1770 acx_cv_prog_LN=no
1771fi
1772rm -f conftestdata_f conftestdata_t
1773
1774fi
1775if test $acx_cv_prog_LN = no; then
1776 LN="cp"
c6b750e1
DJ
1777 echo "$as_me:$LINENO: result: no, using $LN" >&5
1778echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1779else
1780 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1781 echo "$as_me:$LINENO: result: yes" >&5
1782echo "${ECHO_T}yes" >&6
656fdd47
PB
1783fi
1784
c6b750e1
DJ
1785echo "$as_me:$LINENO: checking whether ln -s works" >&5
1786echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1787LN_S=$as_ln_s
1788if test "$LN_S" = "ln -s"; then
1789 echo "$as_me:$LINENO: result: yes" >&5
1790echo "${ECHO_T}yes" >&6
cac3d6c4 1791else
c6b750e1
DJ
1792 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1793echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1794fi
1795
e5c3f801 1796
252b5132 1797### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1798### If we are on Windows, search for the shell. This will permit people
1799### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1800### without also having to set CONFIG_SHELL. This code will work when
1801### using bash, which sets OSTYPE.
1802case "${OSTYPE}" in
1803*win32*)
a0da8069
NN
1804 if test x${CONFIG_SHELL} = x ; then
1805 if test ! -f /bin/sh ; then
1806 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1807 CONFIG_SHELL=${SHELL}
1808 export CONFIG_SHELL
1809 else
1810 for prog in sh sh.exe bash bash.exe; do
1811 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1812 for dir in $PATH; do
1813 test -z "$dir" && dir=.
1814 if test -f $dir/$prog; then
1815 CONFIG_SHELL=$dir/$prog
1816 export CONFIG_SHELL
1817 break
1818 fi
1819 done
1820 IFS="$save_ifs"
1821 test -n "${CONFIG_SHELL}" && break
1822 done
1823 fi
1824 fi
1825 fi
1826 ;;
1827esac
1828
1829config_shell=${CONFIG_SHELL-/bin/sh}
1830
a0da8069 1831moveifchange=${srcdir}/move-if-change
252b5132 1832
0fdbe983
DJ
1833srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1834
1835# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1836# a relative path.
1837if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1838 INSTALL="${srcpwd}/install-sh -c"
1839fi
1840
a0da8069
NN
1841# Set srcdir to "." if that's what it is.
1842# This is important for multilib support.
1843pwd=`${PWDCMD-pwd}`
a0da8069
NN
1844if test "${pwd}" = "${srcpwd}" ; then
1845 srcdir=.
252b5132
RH
1846fi
1847
a0da8069 1848topsrcdir=$srcpwd
252b5132 1849
a0da8069 1850extra_host_args=
afefada0 1851
a0da8069
NN
1852### To add a new directory to the tree, first choose whether it is a target
1853### or a host dependent tool. Then put it into the appropriate list
1854### (library or tools, host or target), doing a dependency sort.
252b5132 1855
c6b750e1 1856# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1857# configdirs, or target_configdirs; see the serialization section below.
252b5132 1858
c6b750e1
DJ
1859# Dependency sorting is only needed when *configuration* must be done in
1860# a particular order. In all cases a dependency should be specified in
a0da8069 1861# the Makefile, whether or not it's implicitly specified here.
252b5132 1862
a0da8069
NN
1863# Double entries in build_configdirs, configdirs, or target_configdirs may
1864# cause circular dependencies and break everything horribly.
252b5132 1865
6a9cf61e
PB
1866# these library is used by various programs built for the build
1867# environment
1868#
1869build_libs="build-libiberty"
1870
1871# these tools are built for the build environment
ee025550 1872build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1873
a0da8069
NN
1874# these libraries are used by various programs built for the host environment
1875#
4b900473 1876host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
a0da8069 1877
a0da8069
NN
1878# these tools are built for the host environment
1879# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1880# know that we are building the simulator.
1881# binutils, gas and ld appear in that order because it makes sense to run
1882# "make check" in that particular order.
93f9b408 1883# If --enable-gold is used, "gold" will replace "ld".
b00612cc 1884host_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
1885
1886# libgcj represents the runtime libraries only used by gcj.
1887libgcj="target-libffi \
a0da8069
NN
1888 target-zlib \
1889 target-qthreads \
1890 target-libjava"
1891
1892# these libraries are built for the target environment, and are built after
1893# the host libraries and the host tools (which may be a cross compiler)
1894#
b1299c4e
DJ
1895target_libraries="target-libgcc \
1896 target-libiberty \
a0da8069
NN
1897 target-libgloss \
1898 target-newlib \
cff87f51 1899 target-libgomp \
b9459e83 1900 target-libstdc++-v3 \
4b1cb4fe 1901 target-libmudflap \
bb780410 1902 target-libssp \
4b1cb4fe 1903 target-libgfortran \
4f0ef2d8 1904 target-boehm-gc \
83326456 1905 ${libgcj} \
a2592b1b 1906 target-libobjc \
cff87f51 1907 target-libada"
a0da8069 1908
9c14acb8
NN
1909# these tools are built using the target libraries, and are intended to
1910# run only in the target environment
a0da8069 1911#
9c14acb8 1912# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1913# list belongs in this list. those programs are also very likely
1914# candidates for the "native_only" list which follows
1915#
a3dd767d 1916target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1917
a0da8069 1918################################################################################
252b5132 1919
a0da8069
NN
1920## All tools belong in one of the four categories, and are assigned above
1921## We assign ${configdirs} this way to remove all embedded newlines. This
1922## is important because configure will choke if they ever get through.
1923## ${configdirs} is directories we build using the host tools.
1924## ${target_configdirs} is directories we build using the target tools.
a0da8069 1925configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1926target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1927build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1928
9cc8ae67
PB
1929
1930
a0da8069 1931################################################################################
252b5132 1932
a0da8069 1933srcname="gnu development package"
252b5132 1934
a0da8069
NN
1935# This gets set non-empty for some net releases of packages.
1936appdirs=""
252b5132 1937
a0da8069
NN
1938# Define is_cross_compiler to save on calls to 'test'.
1939is_cross_compiler=
1940if test x"${host}" = x"${target}" ; then
1941 is_cross_compiler=no
252b5132 1942else
a0da8069 1943 is_cross_compiler=yes
c6b750e1 1944fi
252b5132 1945
9175bfc0 1946# Find the build and target subdir names.
dd12c3a8 1947
66a79c16
DJ
1948# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1949# have matching libraries, they should use host libraries: Makefile.tpl
1950# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1951# However, they still use the build modules, because the corresponding
1952# host modules (e.g. bison) are only built for the host when bootstrap
1953# finishes. So:
1954# - build_subdir is where we find build modules, and never changes.
1955# - build_libsubdir is where we find build libraries, and can be overridden.
1956
1957# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1958build_subdir="build-${build_noncanonical}"
c6b750e1 1959
66a79c16
DJ
1960# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1961if test "${with_build_libsubdir+set}" = set; then
1962 withval="$with_build_libsubdir"
1963 build_libsubdir="$withval"
1964else
1965 build_libsubdir="$build_subdir"
c6b750e1 1966fi;
b00612cc
PB
1967# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1968if ( test $srcdir = . && test -d gcc ) \
1969 || test -d $srcdir/../host-${host_noncanonical}; then
1970 host_subdir="host-${host_noncanonical}"
1971else
1972 host_subdir=.
1973fi
dd12c3a8
NN
1974# No prefix.
1975target_subdir=${target_noncanonical}
c6b750e1 1976
252b5132 1977
a0da8069
NN
1978# Skipdirs are removed silently.
1979skipdirs=
1980# Noconfigdirs are removed loudly.
1981noconfigdirs=""
252b5132 1982
a0da8069
NN
1983use_gnu_ld=
1984# Make sure we don't let GNU ld be added if we didn't want it.
1985if test x$with_gnu_ld = xno ; then
1986 use_gnu_ld=no
93f9b408 1987 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
1988fi
1989
a0da8069
NN
1990use_gnu_as=
1991# Make sure we don't let GNU as be added if we didn't want it.
1992if test x$with_gnu_as = xno ; then
1993 use_gnu_as=no
1994 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1995fi
1996
c6b750e1 1997# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1998# it's not even worth trying to configure, much less build, that tool.
252b5132 1999
a0da8069
NN
2000case ${with_x} in
2001 yes | "") ;; # the default value for this tree is that X11 is available
2002 no)
675c6968 2003 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2004 # We won't be able to build gdbtk without X.
c6b750e1 2005 enable_gdbtk=no
a0da8069
NN
2006 ;;
2007 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2008esac
252b5132 2009
a0da8069 2010# Some tools are only suitable for building in a "native" situation.
c6b750e1 2011# Remove these if host!=target.
701628f5 2012native_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 2013
a0da8069
NN
2014# Similarly, some are only suitable for cross toolchains.
2015# Remove these if host=target.
2016cross_only="target-libgloss target-newlib target-opcodes"
2017
2018case $is_cross_compiler in
2019 no) skipdirs="${skipdirs} ${cross_only}" ;;
2020 yes) skipdirs="${skipdirs} ${native_only}" ;;
2021esac
252b5132 2022
a0da8069
NN
2023# If both --with-headers and --with-libs are specified, default to
2024# --without-newlib.
32be62b5
RS
2025if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2026 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2027 if test x"${with_newlib}" = x ; then
2028 with_newlib=no
2029 fi
252b5132
RH
2030fi
2031
a0da8069
NN
2032# Recognize --with-newlib/--without-newlib.
2033case ${with_newlib} in
2034 no) skipdirs="${skipdirs} target-newlib" ;;
2035 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2036esac
252b5132 2037
93f9b408
ILT
2038# Handle --enable-gold.
2039
2040# Check whether --enable-gold or --disable-gold was given.
2041if test "${enable_gold+set}" = set; then
2042 enableval="$enable_gold"
2043 ENABLE_GOLD=$enableval
2044else
2045 ENABLE_GOLD=no
2046fi;
2047if test "${ENABLE_GOLD}" = "yes"; then
2048 # Check for ELF target.
2049 is_elf=no
2050 case "${target}" in
2051 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2052 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2053 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*)
2054 case "${target}" in
2055 *-*-linux*aout* | *-*-linux*oldld*)
2056 ;;
2057 *)
2058 is_elf=yes
2059 ;;
2060 esac
2061 esac
2062
2063 if test "$is_elf" = "yes"; then
2064 # Check for target supported by gold.
2065 case "${target}" in
310213e8 2066 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-*)
93f9b408
ILT
2067 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2068 ;;
2069 esac
2070 fi
2071fi
2072
a0da8069 2073# Configure extra directories which are host specific
252b5132 2074
a0da8069
NN
2075case "${host}" in
2076 *-cygwin*)
2077 configdirs="$configdirs libtermcap" ;;
2078esac
252b5132 2079
59f7ec45
HPN
2080# A target can indicate whether a language isn't supported for some reason.
2081# Only spaces may be used in this macro; not newlines or tabs.
2082unsupported_languages=
2083
c6b750e1 2084# Remove more programs from consideration, based on the host or
a0da8069
NN
2085# target this usually means that a port of the program doesn't
2086# exist yet.
252b5132 2087
a0da8069
NN
2088case "${host}" in
2089 hppa*64*-*-*)
2090 noconfigdirs="$noconfigdirs byacc"
2091 ;;
ec11bdc6 2092 i[3456789]86-*-vsta)
675c6968 2093 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2094 ;;
ec11bdc6 2095 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2096 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2097 ;;
2d1e8239
NC
2098 x86_64-*-mingw*)
2099 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2100 ;;
ec11bdc6 2101 i[3456789]86-*-mingw32*)
675c6968 2102 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2103 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2104 ;;
ec11bdc6 2105 i[3456789]86-*-beos*)
675c6968 2106 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2107 ;;
a0da8069 2108 *-*-cygwin*)
a92834c8 2109 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2110 ;;
2111 *-*-netbsd*)
a92834c8 2112 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2113 ;;
2114 ppc*-*-pe)
675c6968 2115 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2116 ;;
2117 powerpc-*-beos*)
675c6968 2118 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2119 ;;
a0da8069 2120esac
252b5132 2121
4b1cb4fe 2122
a2592b1b
DD
2123# Check whether --enable-libada or --disable-libada was given.
2124if test "${enable_libada+set}" = set; then
2125 enableval="$enable_libada"
2126 ENABLE_LIBADA=$enableval
2127else
2128 ENABLE_LIBADA=yes
c6b750e1 2129fi;
a2592b1b 2130if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2131 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2132fi
2133
5f128533
KH
2134# Check whether --enable-libssp or --disable-libssp was given.
2135if test "${enable_libssp+set}" = set; then
2136 enableval="$enable_libssp"
2137 ENABLE_LIBSSP=$enableval
2138else
2139 ENABLE_LIBSSP=yes
c6b750e1 2140fi;
5f128533 2141
a0da8069
NN
2142# Save it here so that, even in case of --enable-libgcj, if the Java
2143# front-end isn't enabled, we still get libgcj disabled.
2144libgcj_saved=$libgcj
2145case $enable_libgcj in
2146yes)
2147 # If we reset it here, it won't get added to noconfigdirs in the
2148 # target-specific build rules, so it will be forcibly enabled
2149 # (unless the Java language itself isn't enabled).
2150 libgcj=
2151 ;;
2152no)
2153 # Make sure we get it printed in the list of not supported target libs.
2154 noconfigdirs="$noconfigdirs ${libgcj}"
2155 ;;
2156esac
252b5132 2157
4b1cb4fe 2158
a6df5a19
PB
2159# Disable libmudflap on some systems.
2160if test x$enable_libmudflap = x ; then
3e707e94 2161 case "${target}" in
0ebe98fb 2162 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
3d6dfe0f 2163 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2164 ;;
2165 *-*-freebsd*)
2166 # Enable libmudflap by default in FreeBSD.
2167 ;;
2168 *)
2169 # Disable it by default everywhere else.
2170 noconfigdirs="$noconfigdirs target-libmudflap"
2171 ;;
2172 esac
a6df5a19 2173fi
4b1cb4fe 2174
a6df5a19
PB
2175# Disable libgomp on non POSIX hosted systems.
2176if test x$enable_libgomp = x ; then
b3ded179
PB
2177 # Enable libgomp by default on hosted POSIX systems.
2178 case "${target}" in
2179 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2180 ;;
2181 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2182 ;;
64ce424c 2183 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2184 ;;
2185 *-*-darwin* | *-*-aix*)
2186 ;;
2187 *)
2188 noconfigdirs="$noconfigdirs target-libgomp"
2189 ;;
2190 esac
a6df5a19 2191fi
b3ded179 2192
691bb5a1
DD
2193# Default libgloss CPU subdirectory.
2194libgloss_dir="$target_cpu"
4b1cb4fe 2195
a0da8069
NN
2196case "${target}" in
2197 *-*-chorusos)
54d1c879 2198 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2199 ;;
c9b68031 2200 powerpc-*-darwin* | i[3456789]86-*-darwin* | x86_64-*-darwin9*)
b3f16a9b 2201 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 2202 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2203 ;;
04d1ab34 2204 *-*-darwin*)
d320aacb 2205 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2206 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2207 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2208 ;;
a0da8069 2209 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2210 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2211 ;;
de0b4a87 2212 *-*-freebsd*)
4b1cb4fe
DD
2213 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2214 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2215 && test -f /usr/local/include/gmp.h; then
2216 with_gmp=/usr/local
2217 fi
2218
2219 # Skip some stuff that's unsupported on some FreeBSD configurations.
2220 case "${target}" in
2221 i*86-*-*) ;;
2222 alpha*-*-*) ;;
2223 *)
54d1c879 2224 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2225 ;;
2226 esac
2227 ;;
f8a495c8
NC
2228 *-*-kaos*)
2229 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2230 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2231 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2232 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2233 noconfigdirs="$noconfigdirs target-libgloss"
2234 ;;
a0da8069
NN
2235 *-*-netbsd*)
2236 # Skip some stuff on all NetBSD configurations.
2237 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2238
2239 # Skip some stuff that's unsupported on some NetBSD configurations.
2240 case "${target}" in
2241 i*86-*-netbsdelf*) ;;
5b474aa8 2242 arm*-*-netbsdelf*) ;;
a0da8069 2243 *)
54d1c879 2244 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2245 ;;
2246 esac
2247 ;;
2a3124ca 2248 *-*-netware*)
54d1c879 2249 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2250 ;;
2251 *-*-rtems*)
54d1c879 2252 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2253 ;;
1587117a
EC
2254 # The tpf target doesn't support gdb yet.
2255 *-*-tpf*)
54d1c879 2256 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2257 ;;
c1968181 2258 *-*-uclinux*)
54d1c879 2259 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2260 ;;
a0da8069 2261 *-*-vxworks*)
54d1c879 2262 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2263 ;;
2264 alpha*-dec-osf*)
2265 # ld works, but does not support shared libraries.
2266 # newlib is not 64 bit ready. I'm not sure about fileutils.
2267 # gas doesn't generate exception information.
2268 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2269 ;;
2270 alpha*-*-*vms*)
54d1c879 2271 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2272 ;;
2273 alpha*-*-linux*)
2274 # newlib is not 64 bit ready
2275 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2276 ;;
a0da8069
NN
2277 alpha*-*-*)
2278 # newlib is not 64 bit ready
54d1c879 2279 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2280 ;;
4a18bd6b 2281 am33_2.0-*-linux*)
54d1c879 2282 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2283 ;;
a0da8069 2284 sh-*-linux*)
54d1c879 2285 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2286 ;;
a0da8069 2287 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2288 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2289 noconfigdirs="$noconfigdirs target-examples"
2290 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2291 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2292 noconfigdirs="$noconfigdirs expect dejagnu"
2293 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2294 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2295 noconfigdirs="$noconfigdirs target-newlib"
2296 case "${host}" in
2297 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2298 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2299 ;;
2300 esac
691bb5a1 2301 libgloss_dir=wince
a0da8069
NN
2302 ;;
2303 arc-*-*)
54d1c879 2304 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2305 ;;
caeba88f 2306 arm-semi-aof )
caeba88f 2307 ;;
a0da8069 2308 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2309 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2310 libgloss_dir=arm
a0da8069 2311 ;;
11b04d1f 2312 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 2313 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 2314 libgloss_dir=arm
a0da8069 2315 ;;
bd70a46f 2316 arm*-*-linux-gnueabi)
6d18b86b 2317 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
2318 case ${with_newlib} in
2319 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2320 esac
691bb5a1 2321 libgloss_dir=arm
bd70a46f 2322 ;;
df4a6958 2323 arm*-*-symbianelf*)
54d1c879 2324 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 2325 libgloss_dir=arm
df4a6958 2326 ;;
a0da8069 2327 arm-*-pe*)
54d1c879 2328 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2329 ;;
a0da8069 2330 thumb-*-coff)
54d1c879 2331 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2332 ;;
2333 thumb-*-elf)
54d1c879 2334 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2335 ;;
a0da8069 2336 thumb-*-pe)
54d1c879 2337 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2338 ;;
2339 arm-*-riscix*)
54d1c879 2340 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2341 ;;
2342 avr-*-*)
266df637 2343 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 2344 ;;
376a0e54 2345 bfin-*-*)
00d89675 2346 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2347 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2348 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2349 fi
2350 ;;
a0da8069 2351 c4x-*-* | tic4x-*-*)
54d1c879 2352 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2353 ;;
2354 c54x*-*-* | tic54x-*-*)
54d1c879 2355 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2356 ;;
52310858
NC
2357 cr16-*-*)
2358 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2359 ;;
c7e66c6d 2360 cris-*-* | crisv32-*-*)
59f7ec45 2361 unsupported_languages="$unsupported_languages java"
c7e66c6d 2362 case "${target}" in
2faa2958 2363 *-*-aout)
096f7d00 2364 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2365 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2366 *-*-elf)
5e818318 2367 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2368 *-*-linux*)
5e818318 2369 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2370 *)
096f7d00 2371 unsupported_languages="$unsupported_languages fortran"
54d1c879 2372 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2373 esac
691bb5a1 2374 libgloss_dir=cris
a0da8069 2375 ;;
3e707e94 2376 crx-*-*)
54d1c879 2377 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2378 ;;
a0da8069 2379 d10v-*-*)
54d1c879 2380 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2381 ;;
2382 d30v-*-*)
54d1c879 2383 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 2384 ;;
691bb5a1
DD
2385 ep9312-*-elf | ep9312-*-coff)
2386 libgloss_dir=arm
2387 ;;
a0da8069 2388 fr30-*-elf*)
54d1c879 2389 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2390 ;;
2391 frv-*-*)
54d1c879 2392 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2393 ;;
2394 h8300*-*-*)
54d1c879 2395 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2396 ;;
2397 h8500-*-*)
54d1c879 2398 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2399 ;;
caeba88f 2400 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2401 ;;
a0da8069
NN
2402 hppa*64*-*-linux* | parisc*64*-*-linux*)
2403 # In this case, it's because the hppa64-linux target is for
2404 # the kernel only at this point and has no libc, and thus no
2405 # headers, crt*.o, etc., all of which are needed by these.
2406 noconfigdirs="$noconfigdirs target-zlib"
2407 ;;
5dcac624
DA
2408 parisc*-*-linux* | hppa*-*-linux*)
2409 ;;
a0da8069 2410 hppa*-*-*elf* | \
a0da8069
NN
2411 hppa*-*-lites* | \
2412 hppa*-*-openbsd* | \
2413 hppa*64*-*-*)
54d1c879 2414 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2415 ;;
2416 hppa*-hp-hpux11*)
2417 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 2418 ;;
691bb5a1
DD
2419 hppa*-*-pro*)
2420 libgloss_dir=pa
2421 ;;
a0da8069
NN
2422 hppa*-*-*)
2423 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2424 # build on HP-UX 10.20.
54d1c879 2425 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2426 ;;
b07c2aad 2427 i960-*-*)
54d1c879 2428 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2429 ;;
a0da8069
NN
2430 ia64*-*-elf*)
2431 # No gdb support yet.
675c6968 2432 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2433 ;;
2434 ia64*-**-hpux*)
2435 # No gdb or ld support yet.
54d1c879 2436 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2437 ;;
caeba88f 2438 i370-*-opened*)
caeba88f 2439 ;;
ec11bdc6 2440 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2441 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2442 libgloss_dir=i386
a0da8069 2443 ;;
ec11bdc6 2444 i[3456789]86-*-linux*)
a0da8069
NN
2445 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2446 # not build java stuff by default.
2447 case "${target}" in
2448 *-*-*libc1*)
54d1c879 2449 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2450 esac
2451
2452 # This section makes it possible to build newlib natively on linux.
2453 # If we are using a cross compiler then don't configure newlib.
2454 if test x${is_cross_compiler} != xno ; then
bba45b8b 2455 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2456 fi
2457 noconfigdirs="$noconfigdirs target-libgloss"
2458 # If we are not using a cross compiler, do configure newlib.
2459 # Note however, that newlib will only be configured in this situation
2460 # if the --with-newlib option has been given, because otherwise
2461 # 'target-newlib' will appear in skipdirs.
2462 ;;
ec11bdc6 2463 i[3456789]86-*-mingw32*)
45055374
CV
2464 target_configdirs="$target_configdirs target-winsup"
2465 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2466 ;;
2d1e8239
NC
2467 x86_64-*-mingw*)
2468 target_configdirs="$target_configdirs target-winsup"
2469 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2470 ;;
a0da8069
NN
2471 *-*-cygwin*)
2472 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2473 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2474 # always build newlib if winsup directory is present.
45055374 2475 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2476 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2477 elif test -d "$srcdir/newlib"; then
45055374 2478 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2479 fi
c6b750e1 2480 ;;
caeba88f
AL
2481 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2482 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2483 ;;
ec11bdc6 2484 i[3456789]86-*-pe)
54d1c879 2485 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2486 ;;
ec11bdc6 2487 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2488 # The linker does not yet know about weak symbols in COFF,
2489 # and is not configured to handle mixed ELF and COFF.
54d1c879 2490 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2491 ;;
ec11bdc6 2492 i[3456789]86-*-sco*)
54d1c879 2493 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2494 ;;
ec11bdc6 2495 i[3456789]86-*-solaris2*)
a0da8069
NN
2496 noconfigdirs="$noconfigdirs target-libgloss"
2497 ;;
ec11bdc6 2498 i[3456789]86-*-sysv4*)
54d1c879 2499 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2500 ;;
ec11bdc6 2501 i[3456789]86-*-beos*)
54d1c879 2502 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2503 ;;
b59bea8a 2504 i[3456789]86-*-rdos*)
2429c060
PB
2505 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2506 ;;
b07c2aad 2507 m32r-*-*)
54d1c879 2508 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2509 ;;
a0da8069 2510 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2511 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 2512 libgloss_dir=m68hc11
a0da8069
NN
2513 ;;
2514 m68k-*-elf*)
54d1c879 2515 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2516 ;;
2517 m68k-*-coff*)
54d1c879 2518 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2519 ;;
691bb5a1
DD
2520 m68*-*-* | fido-*-*)
2521 libgloss_dir=m68k
2522 ;;
a0da8069
NN
2523 mcore-*-pe*)
2524 # The EPOC C++ environment does not support exceptions or rtti,
2525 # and so building libstdc++-v3 tends not to always work.
2526 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2527 ;;
2528 mmix-*-*)
59f7ec45 2529 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2530 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2531 ;;
2532 mn10200-*-*)
54d1c879 2533 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2534 ;;
2535 mn10300-*-*)
54d1c879 2536 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2537 ;;
4970f871 2538 mt-*-*)
cdb9b172
AH
2539 noconfigdirs="$noconfigdirs sim"
2540 ;;
a0da8069
NN
2541 powerpc-*-aix*)
2542 # copied from rs6000-*-* entry
54d1c879 2543 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2544 ;;
2545 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2546 target_configdirs="$target_configdirs target-winsup"
54d1c879 2547 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2548 # always build newlib.
2549 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2550 ;;
2551 # This is temporary until we can link against shared libraries
2552 powerpcle-*-solaris*)
54d1c879 2553 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 2554 libgloss_dir=rs6000
a0da8069
NN
2555 ;;
2556 powerpc-*-beos*)
54d1c879 2557 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2558 ;;
a0da8069 2559 powerpc-*-eabi)
54d1c879 2560 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2561 libgloss_dir=rs6000
caeba88f
AL
2562 ;;
2563 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 2564 libgloss_dir=rs6000
a0da8069 2565 ;;
a0da8069 2566 rs6000-*-lynxos*)
54d1c879 2567 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2568 ;;
2569 rs6000-*-aix*)
54d1c879 2570 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2571 ;;
2572 rs6000-*-*)
54d1c879 2573 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2574 ;;
2575 m68k-apollo-*)
54d1c879 2576 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 2577 ;;
5bd8be13
RS
2578 mips*-sde-elf*)
2579 skipdirs="$skipdirs target-libiberty"
2580 noconfigdirs="$noconfigdirs ${libgcj}"
2581 if test x$with_newlib = xyes; then
2582 noconfigdirs="$noconfigdirs gprof"
2583 fi
2584 libgloss_dir=mips
2585 ;;
a0da8069 2586 mips*-*-irix5*)
54d1c879 2587 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2588 ;;
2589 mips*-*-irix6*)
a0da8069
NN
2590 # Linking libjava exceeds command-line length limits on at least
2591 # IRIX 6.2, but not on IRIX 6.5.
2592 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2593 # <oldham@codesourcery.com>
54d1c879 2594 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2595 ;;
a0da8069 2596 mips*-*-bsd*)
54d1c879 2597 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2598 ;;
a0da8069
NN
2599 mips*-*-linux*)
2600 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2601 ;;
2602 mips*-*-*)
54d1c879 2603 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 2604 libgloss_dir=mips
a0da8069
NN
2605 ;;
2606 romp-*-*)
54d1c879 2607 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2608 ;;
dbf85af7 2609 sh-*-* | sh64-*-*)
a0da8069 2610 case "${host}" in
ec11bdc6
DD
2611 i[3456789]86-*-vsta) ;; # don't add gprof back in
2612 i[3456789]86-*-go32*) ;; # don't add gprof back in
2613 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2614 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2615 esac
54d1c879 2616 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2617 ;;
691bb5a1
DD
2618 sparclet-*-aout* | sparc86x-*-*)
2619 libgloss_dir=sparc
2620 ;;
a0da8069 2621 sparc-*-elf*)
54d1c879 2622 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2623 ;;
2624 sparc64-*-elf*)
54d1c879 2625 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2626 libgloss_dir=sparc
a0da8069
NN
2627 ;;
2628 sparclite-*-*)
54d1c879 2629 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2630 libgloss_dir=sparc
a0da8069
NN
2631 ;;
2632 sparc-*-sunos4*)
54d1c879 2633 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2634 if test x${is_cross_compiler} != xno ; then
2635 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2636 else
2637 use_gnu_ld=no
2638 fi
2639 ;;
e3c770b1 2640 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2641 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2642 ;;
a0da8069
NN
2643 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2644 ;;
2839fe5d
BE
2645 spu-*-*)
2646 skipdirs="target-libssp"
2647 ;;
a0da8069 2648 v810-*-*)
54d1c879 2649 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2650 ;;
2651 v850-*-*)
54d1c879 2652 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2653 ;;
2654 v850e-*-*)
54d1c879 2655 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2656 ;;
2657 v850ea-*-*)
54d1c879 2658 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2659 ;;
2660 vax-*-vms)
54d1c879 2661 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2662 ;;
2663 vax-*-*)
54d1c879 2664 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2665 ;;
8b66833e 2666 xtensa*-*-*)
54d1c879 2667 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2668 ;;
a0da8069 2669 ip2k-*-*)
54d1c879 2670 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2671 ;;
de0b4a87 2672 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2673 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2674 ;;
2675 *-*-lynxos*)
54d1c879 2676 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2677 ;;
a0da8069 2678 *-*-*)
54d1c879 2679 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2680 ;;
2681esac
252b5132 2682
a0da8069
NN
2683# If we aren't building newlib, then don't build libgloss, since libgloss
2684# depends upon some newlib header files.
2685case "${noconfigdirs}" in
2686 *target-libgloss*) ;;
2687 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2688esac
2689
a0da8069
NN
2690# Work in distributions that contain no compiler tools, like Autoconf.
2691tentative_cc=""
2692host_makefile_frag=/dev/null
2693if test -d ${srcdir}/config ; then
2694case "${host}" in
2695 m68k-hp-hpux*)
2696 # Avoid "too much defining" errors from HPUX compiler.
2697 tentative_cc="cc -Wp,-H256000"
2698 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2699 # If it's HP/UX ar, this should be harmless.
2700 RANLIB="ar ts"
2701 ;;
2702 m68k-apollo-sysv*)
2703 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2704 ;;
2705 m68k-apollo-bsd*)
2706 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2707 # chokes on bfd, the compiler won't let you assign integers to enums, and
2708 # other problems. Defining CC to gcc is a questionable way to say "don't use
2709 # the apollo compiler" (the preferred version of GCC could be called cc,
2710 # or whatever), but I'm not sure leaving CC as cc is any better...
2711 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2712 # Used to have BISON=yacc.
2713 tentative_cc=gcc
2714 ;;
2715 m88k-dg-dgux*)
2716 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2717 ;;
2718 m88k-harris-cxux*)
2719 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2720 tentative_cc="cc -Xa"
2721 host_makefile_frag="config/mh-cxux"
2722 ;;
2723 m88k-motorola-sysv*)
2724 ;;
2725 mips*-dec-ultrix*)
2726 tentative_cc="cc -Wf,-XNg1000"
2727 host_makefile_frag="config/mh-decstation"
2728 ;;
2729 mips*-nec-sysv4*)
2730 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2731 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2732 host_makefile_frag="config/mh-necv4"
2733 ;;
2734 mips*-sgi-irix4*)
2735 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2736 # environment. Also bump switch table size so that cp-parse will
2737 # compile. Bump string length limit so linker builds.
2738 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2739 ;;
2740 mips*-*-sysv4*)
2741 host_makefile_frag="config/mh-sysv4"
2742 ;;
2743 mips*-*-sysv*)
2744 # This is for a MIPS running RISC/os 4.52C.
2745
2746 # This is needed for GDB, but needs to be in the top-level make because
2747 # if a library is compiled with the bsd headers and gets linked with the
2748 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2749 # a different size).
2750 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2751 # known except to select the sysv environment. Could we use /proc instead?
2752 # These "sysv environments" and "bsd environments" often end up being a pain.
2753 #
2754 # This is not part of CFLAGS because perhaps not all C compilers have this
2755 # option.
2756 tentative_cc="cc -systype sysv"
2757 ;;
2758 i370-ibm-opened*)
2759 tentative_cc="c89"
2760 ;;
ec11bdc6 2761 i[3456789]86-*-sysv5*)
a0da8069
NN
2762 host_makefile_frag="config/mh-sysv5"
2763 ;;
ec11bdc6 2764 i[3456789]86-*-dgux*)
a0da8069
NN
2765 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2766 host_makefile_frag="config/mh-dgux386"
2767 ;;
ec11bdc6 2768 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2769 # The MetaWare compiler will generate a copyright message unless you
2770 # turn it off by adding the -Hnocopyr flag.
2771 tentative_cc="cc -Hnocopyr"
2772 ;;
ec11bdc6 2773 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2774 # for an NCR 3000 (i486/SVR4) system.
2775 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2776 # This compiler not only emits obnoxious copyright messages every time
2777 # you run it, but it chokes and dies on a whole bunch of GNU source
2778 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2779 tentative_cc="/usr/ccs/ATT/cc"
2780 host_makefile_frag="config/mh-ncr3000"
2781 ;;
ec11bdc6 2782 i[3456789]86-*-sco3.2v5*)
a0da8069 2783 ;;
ec11bdc6 2784 i[3456789]86-*-sco*)
a0da8069
NN
2785 # The native C compiler botches some simple uses of const. Unfortunately,
2786 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2787 tentative_cc="cc -Dconst="
2788 host_makefile_frag="config/mh-sco"
2789 ;;
ec11bdc6 2790 i[3456789]86-*-udk*)
a0da8069
NN
2791 host_makefile_frag="config/mh-sysv5"
2792 ;;
ec11bdc6 2793 i[3456789]86-*-solaris2*)
a0da8069
NN
2794 host_makefile_frag="config/mh-sysv4"
2795 ;;
ec11bdc6 2796 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2797 host_makefile_frag="config/mh-djgpp"
2798 ;;
2799 *-cygwin*)
e33b51a6
NC
2800
2801echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2802echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2803echo a >cygwin-cat-check
2804if test `cat cygwin-cat-check` == a ; then
8ade07e9 2805 rm cygwin-cat-check
e33b51a6
NC
2806 echo "$as_me:$LINENO: result: yes" >&5
2807echo "${ECHO_T}yes" >&6
2808else
8ade07e9 2809 rm cygwin-cat-check
e33b51a6
NC
2810 echo "$as_me:$LINENO: result: no" >&5
2811echo "${ECHO_T}no" >&6
2812 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2813 Please either mount the build directory in binary mode or run the following
2814 commands before running any configure script:
2815set -o igncr
2816export SHELLOPTS
2817 " >&5
2818echo "$as_me: error: The cat command does not ignore carriage return characters.
2819 Please either mount the build directory in binary mode or run the following
2820 commands before running any configure script:
2821set -o igncr
2822export SHELLOPTS
2823 " >&2;}
2824 { (exit 1); exit 1; }; }
2825fi
e33b51a6 2826
a0da8069
NN
2827 host_makefile_frag="config/mh-cygwin"
2828 ;;
8a1599ab 2829 *-mingw*)
84e7906e 2830 host_makefile_frag="config/mh-mingw"
2d1e8239 2831 ;;
a0da8069
NN
2832 *-interix*)
2833 host_makefile_frag="config/mh-interix"
2834 ;;
2835 vax-*-ultrix2*)
2836 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2837 tentative_cc=gcc
2838 ;;
2839 *-*-solaris2*)
2840 host_makefile_frag="config/mh-solaris"
2841 ;;
2842 m68k-sun-sunos*)
2843 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2844 # without overflowing the jump tables (-J says to use a 32 bit table)
2845 tentative_cc="cc -J"
2846 ;;
2847 *-hp-hpux*)
2848 tentative_cc="cc -Wp,-H256000"
2849 ;;
2850 *-*-hiux*)
2851 tentative_cc="cc -Wp,-H256000"
2852 ;;
2853 rs6000-*-lynxos*)
2854 # /bin/cc is less than useful for our purposes. Always use GCC
2855 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2856 host_makefile_frag="config/mh-lynxrs6k"
2857 ;;
0df3d27f
PB
2858 powerpc-*-darwin*)
2859 host_makefile_frag="config/mh-ppc-darwin"
2860 ;;
f6d183c0
PB
2861 powerpc-*-aix*)
2862 host_makefile_frag="config/mh-ppc-aix"
2863 ;;
2864 rs6000-*-aix*)
2865 host_makefile_frag="config/mh-ppc-aix"
2866 ;;
a0da8069
NN
2867 *-*-lynxos*)
2868 # /bin/cc is less than useful for our purposes. Always use GCC
2869 tentative_cc="/bin/gcc"
2870 ;;
2871 *-*-sysv4*)
2872 host_makefile_frag="config/mh-sysv4"
2873 ;;
fe69863c
DD
2874 # This is placed last to prevent interfering with the cases above.
2875 i[3456789]86-*-*)
2876 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2877 host_makefile_frag="config/mh-x86omitfp"
2878 ;;
a0da8069
NN
2879esac
2880fi
2881
9e07f89d
NN
2882# If we aren't going to be using gcc, see if we can extract a definition
2883# of CC from the fragment.
2884# Actually, use the 'pre-extracted' version above.
2885if test -z "${CC}" && test "${build}" = "${host}" ; then
2886 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2887 found=
2888 for dir in $PATH; do
2889 test -z "$dir" && dir=.
2890 if test -f $dir/gcc; then
2891 found=yes
2892 break
2893 fi
2894 done
2895 IFS="$save_ifs"
2896 if test -z "${found}" && test -n "${tentative_cc}" ; then
2897 CC=$tentative_cc
2898 fi
2899fi
2900
2901if test "${build}" != "${host}" ; then
1576798e
PB
2902 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2903 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 2904 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
2905 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2906 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2907 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2908 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2909 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2910 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2911 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2912 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2913 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2914else
2915 AR_FOR_BUILD="\$(AR)"
2916 AS_FOR_BUILD="\$(AS)"
512b7dfb 2917 CC_FOR_BUILD="\$(CC)"
1576798e
PB
2918 CXX_FOR_BUILD="\$(CXX)"
2919 GCJ_FOR_BUILD="\$(GCJ)"
2920 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2921 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2922 LD_FOR_BUILD="\$(LD)"
2923 NM_FOR_BUILD="\$(NM)"
2924 RANLIB_FOR_BUILD="\$(RANLIB)"
2925 WINDRES_FOR_BUILD="\$(WINDRES)"
2926 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
2927fi
2928
2929ac_ext=c
c6b750e1
DJ
2930ac_cpp='$CPP $CPPFLAGS'
2931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934if test -n "$ac_tool_prefix"; then
2935 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2936set dummy ${ac_tool_prefix}gcc; ac_word=$2
2937echo "$as_me:$LINENO: checking for $ac_word" >&5
2938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2939if test "${ac_cv_prog_CC+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2941else
2942 if test -n "$CC"; then
2943 ac_cv_prog_CC="$CC" # Let the user override the test.
2944else
2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946for as_dir in $PATH
2947do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2952 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 break 2
2955 fi
2956done
2957done
2958
2959fi
2960fi
2961CC=$ac_cv_prog_CC
2962if test -n "$CC"; then
2963 echo "$as_me:$LINENO: result: $CC" >&5
2964echo "${ECHO_T}$CC" >&6
2965else
2966 echo "$as_me:$LINENO: result: no" >&5
2967echo "${ECHO_T}no" >&6
2968fi
2969
2970fi
2971if test -z "$ac_cv_prog_CC"; then
2972 ac_ct_CC=$CC
6a9cf61e 2973 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2974set dummy gcc; ac_word=$2
c6b750e1
DJ
2975echo "$as_me:$LINENO: checking for $ac_word" >&5
2976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2977if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2979else
2980 if test -n "$ac_ct_CC"; then
2981 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2982else
2983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984for as_dir in $PATH
2985do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990 ac_cv_prog_ac_ct_CC="gcc"
2991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994done
2995done
2996
2997fi
2998fi
2999ac_ct_CC=$ac_cv_prog_ac_ct_CC
3000if test -n "$ac_ct_CC"; then
3001 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3002echo "${ECHO_T}$ac_ct_CC" >&6
3003else
3004 echo "$as_me:$LINENO: result: no" >&5
3005echo "${ECHO_T}no" >&6
3006fi
3007
3008 CC=$ac_ct_CC
3009else
3010 CC="$ac_cv_prog_CC"
3011fi
3012
3013if test -z "$CC"; then
3014 if test -n "$ac_tool_prefix"; then
3015 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3016set dummy ${ac_tool_prefix}cc; ac_word=$2
3017echo "$as_me:$LINENO: checking for $ac_word" >&5
3018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3019if test "${ac_cv_prog_CC+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3021else
3022 if test -n "$CC"; then
3023 ac_cv_prog_CC="$CC" # Let the user override the test.
3024else
c6b750e1
DJ
3025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026for as_dir in $PATH
3027do
3028 IFS=$as_save_IFS
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3032 ac_cv_prog_CC="${ac_tool_prefix}cc"
3033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 break 2
3035 fi
3036done
3037done
3038
9e07f89d
NN
3039fi
3040fi
c6b750e1 3041CC=$ac_cv_prog_CC
9e07f89d 3042if test -n "$CC"; then
c6b750e1
DJ
3043 echo "$as_me:$LINENO: result: $CC" >&5
3044echo "${ECHO_T}$CC" >&6
9e07f89d 3045else
c6b750e1
DJ
3046 echo "$as_me:$LINENO: result: no" >&5
3047echo "${ECHO_T}no" >&6
9e07f89d
NN
3048fi
3049
c6b750e1
DJ
3050fi
3051if test -z "$ac_cv_prog_CC"; then
3052 ac_ct_CC=$CC
3053 # Extract the first word of "cc", so it can be a program name with args.
3054set dummy cc; ac_word=$2
3055echo "$as_me:$LINENO: checking for $ac_word" >&5
3056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3057if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3059else
3060 if test -n "$ac_ct_CC"; then
3061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3062else
3063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064for as_dir in $PATH
3065do
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3070 ac_cv_prog_ac_ct_CC="cc"
3071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 break 2
3073 fi
3074done
3075done
3076
3077fi
3078fi
3079ac_ct_CC=$ac_cv_prog_ac_ct_CC
3080if test -n "$ac_ct_CC"; then
3081 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3082echo "${ECHO_T}$ac_ct_CC" >&6
3083else
3084 echo "$as_me:$LINENO: result: no" >&5
3085echo "${ECHO_T}no" >&6
3086fi
3087
3088 CC=$ac_ct_CC
3089else
3090 CC="$ac_cv_prog_CC"
3091fi
3092
3093fi
9e07f89d
NN
3094if test -z "$CC"; then
3095 # Extract the first word of "cc", so it can be a program name with args.
3096set dummy cc; ac_word=$2
c6b750e1
DJ
3097echo "$as_me:$LINENO: checking for $ac_word" >&5
3098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3099if test "${ac_cv_prog_CC+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3101else
3102 if test -n "$CC"; then
3103 ac_cv_prog_CC="$CC" # Let the user override the test.
3104else
9e07f89d 3105 ac_prog_rejected=no
c6b750e1
DJ
3106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107for as_dir in $PATH
3108do
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3113 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3114 ac_prog_rejected=yes
3115 continue
3116 fi
3117 ac_cv_prog_CC="cc"
3118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 break 2
3120 fi
3121done
3122done
3123
9e07f89d
NN
3124if test $ac_prog_rejected = yes; then
3125 # We found a bogon in the path, so make sure we never use it.
3126 set dummy $ac_cv_prog_CC
3127 shift
c6b750e1 3128 if test $# != 0; then
9e07f89d
NN
3129 # We chose a different compiler from the bogus one.
3130 # However, it has the same basename, so the bogon will be chosen
3131 # first if we set CC to just the basename; use the full file name.
3132 shift
c6b750e1 3133 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3134 fi
3135fi
3136fi
3137fi
c6b750e1 3138CC=$ac_cv_prog_CC
9e07f89d 3139if test -n "$CC"; then
c6b750e1
DJ
3140 echo "$as_me:$LINENO: result: $CC" >&5
3141echo "${ECHO_T}$CC" >&6
9e07f89d 3142else
c6b750e1
DJ
3143 echo "$as_me:$LINENO: result: no" >&5
3144echo "${ECHO_T}no" >&6
9e07f89d
NN
3145fi
3146
c6b750e1
DJ
3147fi
3148if test -z "$CC"; then
3149 if test -n "$ac_tool_prefix"; then
3150 for ac_prog in cl
3151 do
3152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3153set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3154echo "$as_me:$LINENO: checking for $ac_word" >&5
3155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3156if test "${ac_cv_prog_CC+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3158else
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3161else
c6b750e1
DJ
3162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163for as_dir in $PATH
3164do
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3169 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
376a0e54 3172 fi
c6b750e1
DJ
3173done
3174done
cac3d6c4 3175
c6b750e1
DJ
3176fi
3177fi
3178CC=$ac_cv_prog_CC
3179if test -n "$CC"; then
3180 echo "$as_me:$LINENO: result: $CC" >&5
3181echo "${ECHO_T}$CC" >&6
cac3d6c4 3182else
c6b750e1
DJ
3183 echo "$as_me:$LINENO: result: no" >&5
3184echo "${ECHO_T}no" >&6
9e07f89d 3185fi
cac3d6c4 3186
c6b750e1
DJ
3187 test -n "$CC" && break
3188 done
cac3d6c4 3189fi
c6b750e1
DJ
3190if test -z "$CC"; then
3191 ac_ct_CC=$CC
3192 for ac_prog in cl
3193do
3194 # Extract the first word of "$ac_prog", so it can be a program name with args.
3195set dummy $ac_prog; ac_word=$2
3196echo "$as_me:$LINENO: checking for $ac_word" >&5
3197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3198if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3200else
c6b750e1
DJ
3201 if test -n "$ac_ct_CC"; then
3202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3203else
c6b750e1
DJ
3204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205for as_dir in $PATH
3206do
3207 IFS=$as_save_IFS
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211 ac_cv_prog_ac_ct_CC="$ac_prog"
3212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 break 2
3214 fi
3215done
3216done
3217
cac3d6c4
CM
3218fi
3219fi
c6b750e1
DJ
3220ac_ct_CC=$ac_cv_prog_ac_ct_CC
3221if test -n "$ac_ct_CC"; then
3222 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3223echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3224else
c6b750e1
DJ
3225 echo "$as_me:$LINENO: result: no" >&5
3226echo "${ECHO_T}no" >&6
cac3d6c4 3227fi
376a0e54 3228
c6b750e1
DJ
3229 test -n "$ac_ct_CC" && break
3230done
3231
3232 CC=$ac_ct_CC
3233fi
3234
3235fi
3236
3237
7a283e07
RW
3238test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3239echo "$as_me: error: in \`$ac_pwd':" >&2;}
3240{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
c6b750e1
DJ
3241See \`config.log' for more details." >&5
3242echo "$as_me: error: no acceptable C compiler found in \$PATH
3243See \`config.log' for more details." >&2;}
7a283e07 3244 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3245
3246# Provide some information about the compiler.
3247echo "$as_me:$LINENO:" \
3248 "checking for C compiler version" >&5
3249ac_compiler=`set X $ac_compile; echo $2`
3250{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3251 (eval $ac_compiler --version </dev/null >&5) 2>&5
3252 ac_status=$?
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }
3255{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3256 (eval $ac_compiler -v </dev/null >&5) 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }
3260{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3261 (eval $ac_compiler -V </dev/null >&5) 2>&5
3262 ac_status=$?
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }
3265
3266cat >conftest.$ac_ext <<_ACEOF
3267/* confdefs.h. */
3268_ACEOF
3269cat confdefs.h >>conftest.$ac_ext
3270cat >>conftest.$ac_ext <<_ACEOF
3271/* end confdefs.h. */
3272
3273int
3274main ()
3275{
3276
3277 ;
3278 return 0;
3279}
3280_ACEOF
3281ac_clean_files_save=$ac_clean_files
3282ac_clean_files="$ac_clean_files a.out a.exe b.out"
3283# Try to create an executable without -o first, disregard a.out.
3284# It will help us diagnose broken compilers, and finding out an intuition
3285# of exeext.
3286echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3287echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3288ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3289if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3290 (eval $ac_link_default) 2>&5
3291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; then
3294 # Find the output, starting from the most likely. This scheme is
3295# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3296# resort.
3297
3298# Be careful to initialize this variable, since it used to be cached.
3299# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3300ac_cv_exeext=
3301# b.out is created by i960 compilers.
3302for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3303do
3304 test -f "$ac_file" || continue
3305 case $ac_file in
3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3307 ;;
3308 conftest.$ac_ext )
3309 # This is the source file.
3310 ;;
3311 [ab].out )
3312 # We found the default executable, but exeext='' is most
3313 # certainly right.
3314 break;;
3315 *.* )
3316 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3317 # FIXME: I believe we export ac_cv_exeext for Libtool,
3318 # but it would be cool to find out if it's true. Does anybody
3319 # maintain Libtool? --akim.
3320 export ac_cv_exeext
3321 break;;
3322 * )
3323 break;;
3324 esac
3325done
3326else
3327 echo "$as_me: failed program was:" >&5
3328sed 's/^/| /' conftest.$ac_ext >&5
3329
7a283e07
RW
3330{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3331echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
3332{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3333See \`config.log' for more details." >&5
3334echo "$as_me: error: C compiler cannot create executables
3335See \`config.log' for more details." >&2;}
7a283e07 3336 { (exit 77); exit 77; }; }; }
c6b750e1
DJ
3337fi
3338
3339ac_exeext=$ac_cv_exeext
3340echo "$as_me:$LINENO: result: $ac_file" >&5
3341echo "${ECHO_T}$ac_file" >&6
3342
3343# Check the compiler produces executables we can run. If not, either
3344# the compiler is broken, or we cross compile.
3345echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3346echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3347# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3348# If not cross compiling, check that we can run a simple program.
3349if test "$cross_compiling" != yes; then
3350 if { ac_try='./$ac_file'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 (eval $ac_try) 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3356 cross_compiling=no
3357 else
3358 if test "$cross_compiling" = maybe; then
3359 cross_compiling=yes
3360 else
7a283e07
RW
3361 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3362echo "$as_me: error: in \`$ac_pwd':" >&2;}
3363{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
c6b750e1
DJ
3364If you meant to cross compile, use \`--host'.
3365See \`config.log' for more details." >&5
3366echo "$as_me: error: cannot run C compiled programs.
3367If you meant to cross compile, use \`--host'.
3368See \`config.log' for more details." >&2;}
7a283e07 3369 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3370 fi
3371 fi
3372fi
3373echo "$as_me:$LINENO: result: yes" >&5
3374echo "${ECHO_T}yes" >&6
3375
3376rm -f a.out a.exe conftest$ac_cv_exeext b.out
3377ac_clean_files=$ac_clean_files_save
3378# Check the compiler produces executables we can run. If not, either
3379# the compiler is broken, or we cross compile.
3380echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3381echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3382echo "$as_me:$LINENO: result: $cross_compiling" >&5
3383echo "${ECHO_T}$cross_compiling" >&6
3384
3385echo "$as_me:$LINENO: checking for suffix of executables" >&5
3386echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3388 (eval $ac_link) 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; then
3392 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3393# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3394# work properly (i.e., refer to `conftest.exe'), while it won't with
3395# `rm'.
3396for ac_file in conftest.exe conftest conftest.*; do
3397 test -f "$ac_file" || continue
3398 case $ac_file in
3399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3400 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3401 export ac_cv_exeext
3402 break;;
3403 * ) break;;
3404 esac
3405done
3406else
7a283e07
RW
3407 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3408echo "$as_me: error: in \`$ac_pwd':" >&2;}
3409{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
c6b750e1
DJ
3410See \`config.log' for more details." >&5
3411echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3412See \`config.log' for more details." >&2;}
7a283e07 3413 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3414fi
3415
3416rm -f conftest$ac_cv_exeext
3417echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3418echo "${ECHO_T}$ac_cv_exeext" >&6
3419
3420rm -f conftest.$ac_ext
3421EXEEXT=$ac_cv_exeext
3422ac_exeext=$EXEEXT
3423echo "$as_me:$LINENO: checking for suffix of object files" >&5
3424echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3425if test "${ac_cv_objext+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3427else
3428 cat >conftest.$ac_ext <<_ACEOF
3429/* confdefs.h. */
3430_ACEOF
3431cat confdefs.h >>conftest.$ac_ext
3432cat >>conftest.$ac_ext <<_ACEOF
3433/* end confdefs.h. */
3434
3435int
3436main ()
3437{
3438
3439 ;
3440 return 0;
3441}
3442_ACEOF
3443rm -f conftest.o conftest.obj
3444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445 (eval $ac_compile) 2>&5
3446 ac_status=$?
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; then
3449 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3450 case $ac_file in
3451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3452 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3453 break;;
3454 esac
3455done
cac3d6c4 3456else
c6b750e1
DJ
3457 echo "$as_me: failed program was:" >&5
3458sed 's/^/| /' conftest.$ac_ext >&5
3459
7a283e07
RW
3460{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3461echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
3462{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3463See \`config.log' for more details." >&5
3464echo "$as_me: error: cannot compute suffix of object files: cannot compile
3465See \`config.log' for more details." >&2;}
7a283e07 3466 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3467fi
3468
3469rm -f conftest.$ac_cv_objext conftest.$ac_ext
3470fi
3471echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3472echo "${ECHO_T}$ac_cv_objext" >&6
3473OBJEXT=$ac_cv_objext
3474ac_objext=$OBJEXT
3475echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3476echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3477if test "${ac_cv_c_compiler_gnu+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3479else
3480 cat >conftest.$ac_ext <<_ACEOF
3481/* confdefs.h. */
3482_ACEOF
3483cat confdefs.h >>conftest.$ac_ext
3484cat >>conftest.$ac_ext <<_ACEOF
3485/* end confdefs.h. */
3486
3487int
3488main ()
3489{
3490#ifndef __GNUC__
3491 choke me
3492#endif
3493
3494 ;
3495 return 0;
3496}
3497_ACEOF
3498rm -f conftest.$ac_objext
3499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500 (eval $ac_compile) 2>conftest.er1
3501 ac_status=$?
3502 grep -v '^ *+' conftest.er1 >conftest.err
3503 rm -f conftest.er1
3504 cat conftest.err >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try='test -z "$ac_c_werror_flag"
3508 || test ! -s conftest.err'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 (eval $ac_try) 2>&5
3511 ac_status=$?
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; } &&
3514 { ac_try='test -s conftest.$ac_objext'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516 (eval $ac_try) 2>&5
3517 ac_status=$?
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; }; then
3520 ac_compiler_gnu=yes
3521else
3522 echo "$as_me: failed program was:" >&5
3523sed 's/^/| /' conftest.$ac_ext >&5
3524
3525ac_compiler_gnu=no
3526fi
3527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3528ac_cv_c_compiler_gnu=$ac_compiler_gnu
3529
3530fi
3531echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3532echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3533GCC=`test $ac_compiler_gnu = yes && echo yes`
3534ac_test_CFLAGS=${CFLAGS+set}
3535ac_save_CFLAGS=$CFLAGS
3536CFLAGS="-g"
3537echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3538echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3539if test "${ac_cv_prog_cc_g+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3541else
3542 cat >conftest.$ac_ext <<_ACEOF
3543/* confdefs.h. */
3544_ACEOF
3545cat confdefs.h >>conftest.$ac_ext
3546cat >>conftest.$ac_ext <<_ACEOF
3547/* end confdefs.h. */
3548
3549int
3550main ()
3551{
3552
3553 ;
3554 return 0;
3555}
3556_ACEOF
3557rm -f conftest.$ac_objext
3558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3559 (eval $ac_compile) 2>conftest.er1
3560 ac_status=$?
3561 grep -v '^ *+' conftest.er1 >conftest.err
3562 rm -f conftest.er1
3563 cat conftest.err >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } &&
3566 { ac_try='test -z "$ac_c_werror_flag"
3567 || test ! -s conftest.err'
3568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569 (eval $ac_try) 2>&5
3570 ac_status=$?
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }; } &&
3573 { ac_try='test -s conftest.$ac_objext'
3574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575 (eval $ac_try) 2>&5
3576 ac_status=$?
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; }; then
9e07f89d
NN
3579 ac_cv_prog_cc_g=yes
3580else
c6b750e1
DJ
3581 echo "$as_me: failed program was:" >&5
3582sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3583
c6b750e1 3584ac_cv_prog_cc_g=no
376a0e54 3585fi
c6b750e1
DJ
3586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3587fi
3588echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3589echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3590if test "$ac_test_CFLAGS" = set; then
c6b750e1 3591 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3592elif test $ac_cv_prog_cc_g = yes; then
3593 if test "$GCC" = yes; then
3594 CFLAGS="-g -O2"
3595 else
3596 CFLAGS="-g"
3597 fi
3598else
3599 if test "$GCC" = yes; then
3600 CFLAGS="-O2"
3601 else
3602 CFLAGS=
3603 fi
3604fi
c6b750e1
DJ
3605echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3606echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3607if test "${ac_cv_prog_cc_stdc+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609else
3610 ac_cv_prog_cc_stdc=no
3611ac_save_CC=$CC
3612cat >conftest.$ac_ext <<_ACEOF
3613/* confdefs.h. */
3614_ACEOF
3615cat confdefs.h >>conftest.$ac_ext
3616cat >>conftest.$ac_ext <<_ACEOF
3617/* end confdefs.h. */
3618#include <stdarg.h>
3619#include <stdio.h>
3620#include <sys/types.h>
3621#include <sys/stat.h>
3622/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3623struct buf { int x; };
3624FILE * (*rcsopen) (struct buf *, struct stat *, int);
3625static char *e (p, i)
3626 char **p;
3627 int i;
3628{
3629 return p[i];
3630}
3631static char *f (char * (*g) (char **, int), char **p, ...)
3632{
3633 char *s;
3634 va_list v;
3635 va_start (v,p);
3636 s = g (p, va_arg (v,int));
3637 va_end (v);
3638 return s;
3639}
3640
3641/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3642 function prototypes and stuff, but not '\xHH' hex character constants.
3643 These don't provoke an error unfortunately, instead are silently treated
3644 as 'x'. The following induces an error, until -std1 is added to get
3645 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3646 array size at least. It's necessary to write '\x00'==0 to get something
3647 that's true only with -std1. */
3648int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3649
3650int test (int i, double x);
3651struct s1 {int (*f) (int a);};
3652struct s2 {int (*f) (double a);};
3653int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3654int argc;
3655char **argv;
3656int
3657main ()
3658{
3659return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3660 ;
3661 return 0;
3662}
3663_ACEOF
3664# Don't try gcc -ansi; that turns off useful extensions and
3665# breaks some systems' header files.
3666# AIX -qlanglvl=ansi
3667# Ultrix and OSF/1 -std1
3668# HP-UX 10.20 and later -Ae
3669# HP-UX older versions -Aa -D_HPUX_SOURCE
3670# SVR4 -Xc -D__EXTENSIONS__
3671for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3672do
3673 CC="$ac_save_CC $ac_arg"
3674 rm -f conftest.$ac_objext
3675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3676 (eval $ac_compile) 2>conftest.er1
3677 ac_status=$?
3678 grep -v '^ *+' conftest.er1 >conftest.err
3679 rm -f conftest.er1
3680 cat conftest.err >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); } &&
3683 { ac_try='test -z "$ac_c_werror_flag"
3684 || test ! -s conftest.err'
3685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3686 (eval $ac_try) 2>&5
3687 ac_status=$?
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); }; } &&
3690 { ac_try='test -s conftest.$ac_objext'
3691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3692 (eval $ac_try) 2>&5
3693 ac_status=$?
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); }; }; then
3696 ac_cv_prog_cc_stdc=$ac_arg
3697break
3698else
3699 echo "$as_me: failed program was:" >&5
3700sed 's/^/| /' conftest.$ac_ext >&5
3701
3702fi
3703rm -f conftest.err conftest.$ac_objext
3704done
3705rm -f conftest.$ac_ext conftest.$ac_objext
3706CC=$ac_save_CC
3707
3708fi
3709
3710case "x$ac_cv_prog_cc_stdc" in
3711 x|xno)
3712 echo "$as_me:$LINENO: result: none needed" >&5
3713echo "${ECHO_T}none needed" >&6 ;;
3714 *)
3715 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3716echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3717 CC="$CC $ac_cv_prog_cc_stdc" ;;
3718esac
3719
3720# Some people use a C++ compiler to compile C. Since we use `exit',
3721# in C++ we need to declare it. In case someone uses the same compiler
3722# for both compiling C and C++ we need to have the C++ compiler decide
3723# the declaration of exit, since it's the most demanding environment.
3724cat >conftest.$ac_ext <<_ACEOF
3725#ifndef __cplusplus
3726 choke me
3727#endif
3728_ACEOF
3729rm -f conftest.$ac_objext
3730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3731 (eval $ac_compile) 2>conftest.er1
3732 ac_status=$?
3733 grep -v '^ *+' conftest.er1 >conftest.err
3734 rm -f conftest.er1
3735 cat conftest.err >&5
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); } &&
3738 { ac_try='test -z "$ac_c_werror_flag"
3739 || test ! -s conftest.err'
3740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741 (eval $ac_try) 2>&5
3742 ac_status=$?
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }; } &&
3745 { ac_try='test -s conftest.$ac_objext'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 (eval $ac_try) 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; }; then
3751 for ac_declaration in \
3752 '' \
3753 'extern "C" void std::exit (int) throw (); using std::exit;' \
3754 'extern "C" void std::exit (int); using std::exit;' \
3755 'extern "C" void exit (int) throw ();' \
3756 'extern "C" void exit (int);' \
3757 'void exit (int);'
3758do
3759 cat >conftest.$ac_ext <<_ACEOF
3760/* confdefs.h. */
3761_ACEOF
3762cat confdefs.h >>conftest.$ac_ext
3763cat >>conftest.$ac_ext <<_ACEOF
3764/* end confdefs.h. */
3765$ac_declaration
3766#include <stdlib.h>
3767int
3768main ()
3769{
3770exit (42);
3771 ;
3772 return 0;
3773}
3774_ACEOF
3775rm -f conftest.$ac_objext
3776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3777 (eval $ac_compile) 2>conftest.er1
3778 ac_status=$?
3779 grep -v '^ *+' conftest.er1 >conftest.err
3780 rm -f conftest.er1
3781 cat conftest.err >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } &&
3784 { ac_try='test -z "$ac_c_werror_flag"
3785 || test ! -s conftest.err'
3786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 (eval $ac_try) 2>&5
3788 ac_status=$?
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }; } &&
3791 { ac_try='test -s conftest.$ac_objext'
3792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793 (eval $ac_try) 2>&5
3794 ac_status=$?
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }; }; then
3797 :
3798else
3799 echo "$as_me: failed program was:" >&5
3800sed 's/^/| /' conftest.$ac_ext >&5
3801
3802continue
3803fi
3804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3805 cat >conftest.$ac_ext <<_ACEOF
3806/* confdefs.h. */
3807_ACEOF
3808cat confdefs.h >>conftest.$ac_ext
3809cat >>conftest.$ac_ext <<_ACEOF
3810/* end confdefs.h. */
3811$ac_declaration
3812int
3813main ()
3814{
3815exit (42);
3816 ;
3817 return 0;
3818}
3819_ACEOF
3820rm -f conftest.$ac_objext
3821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3822 (eval $ac_compile) 2>conftest.er1
3823 ac_status=$?
3824 grep -v '^ *+' conftest.er1 >conftest.err
3825 rm -f conftest.er1
3826 cat conftest.err >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } &&
3829 { ac_try='test -z "$ac_c_werror_flag"
3830 || test ! -s conftest.err'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 (eval $ac_try) 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; } &&
3836 { ac_try='test -s conftest.$ac_objext'
3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 (eval $ac_try) 2>&5
3839 ac_status=$?
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }; then
3842 break
3843else
3844 echo "$as_me: failed program was:" >&5
3845sed 's/^/| /' conftest.$ac_ext >&5
3846
3847fi
3848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3849done
3850rm -f conftest*
3851if test -n "$ac_declaration"; then
3852 echo '#ifdef __cplusplus' >>confdefs.h
3853 echo $ac_declaration >>confdefs.h
3854 echo '#endif' >>confdefs.h
3855fi
3856
3857else
3858 echo "$as_me: failed program was:" >&5
3859sed 's/^/| /' conftest.$ac_ext >&5
3860
3861fi
3862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3863ac_ext=c
3864ac_cpp='$CPP $CPPFLAGS'
3865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3868
18f6b6ee
PB
3869ac_ext=cc
3870ac_cpp='$CXXCPP $CPPFLAGS'
3871ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3872ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3873ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3874if test -n "$ac_tool_prefix"; then
3875 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3876 do
3877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3878set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3879echo "$as_me:$LINENO: checking for $ac_word" >&5
3880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3881if test "${ac_cv_prog_CXX+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883else
3884 if test -n "$CXX"; then
3885 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3886else
3887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888for as_dir in $PATH
3889do
3890 IFS=$as_save_IFS
3891 test -z "$as_dir" && as_dir=.
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3894 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3896 break 2
3897 fi
3898done
3899done
512b7dfb 3900
18f6b6ee
PB
3901fi
3902fi
3903CXX=$ac_cv_prog_CXX
3904if test -n "$CXX"; then
3905 echo "$as_me:$LINENO: result: $CXX" >&5
3906echo "${ECHO_T}$CXX" >&6
3907else
3908 echo "$as_me:$LINENO: result: no" >&5
3909echo "${ECHO_T}no" >&6
3910fi
3911
3912 test -n "$CXX" && break
3913 done
3914fi
3915if test -z "$CXX"; then
3916 ac_ct_CXX=$CXX
3917 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3918do
3919 # Extract the first word of "$ac_prog", so it can be a program name with args.
3920set dummy $ac_prog; ac_word=$2
3921echo "$as_me:$LINENO: checking for $ac_word" >&5
3922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925else
3926 if test -n "$ac_ct_CXX"; then
3927 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3928else
3929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930for as_dir in $PATH
3931do
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_prog_ac_ct_CXX="$ac_prog"
3937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 break 2
512b7dfb 3939 fi
18f6b6ee
PB
3940done
3941done
512b7dfb 3942
18f6b6ee
PB
3943fi
3944fi
3945ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3946if test -n "$ac_ct_CXX"; then
3947 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3948echo "${ECHO_T}$ac_ct_CXX" >&6
3949else
3950 echo "$as_me:$LINENO: result: no" >&5
3951echo "${ECHO_T}no" >&6
3952fi
3953
3954 test -n "$ac_ct_CXX" && break
3955done
3956test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3957
3958 CXX=$ac_ct_CXX
3959fi
3960
3961
3962# Provide some information about the compiler.
3963echo "$as_me:$LINENO:" \
3964 "checking for C++ compiler version" >&5
3965ac_compiler=`set X $ac_compile; echo $2`
3966{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3967 (eval $ac_compiler --version </dev/null >&5) 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }
3971{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3972 (eval $ac_compiler -v </dev/null >&5) 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }
3976{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3977 (eval $ac_compiler -V </dev/null >&5) 2>&5
3978 ac_status=$?
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }
3981
3982echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3983echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3984if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3986else
3987 cat >conftest.$ac_ext <<_ACEOF
3988/* confdefs.h. */
3989_ACEOF
3990cat confdefs.h >>conftest.$ac_ext
3991cat >>conftest.$ac_ext <<_ACEOF
3992/* end confdefs.h. */
3993
3994int
3995main ()
3996{
3997#ifndef __GNUC__
3998 choke me
3999#endif
4000
4001 ;
4002 return 0;
4003}
4004_ACEOF
4005rm -f conftest.$ac_objext
4006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4007 (eval $ac_compile) 2>conftest.er1
4008 ac_status=$?
4009 grep -v '^ *+' conftest.er1 >conftest.err
4010 rm -f conftest.er1
4011 cat conftest.err >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); } &&
4014 { ac_try='test -z "$ac_cxx_werror_flag"
4015 || test ! -s conftest.err'
4016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017 (eval $ac_try) 2>&5
4018 ac_status=$?
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; } &&
4021 { ac_try='test -s conftest.$ac_objext'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023 (eval $ac_try) 2>&5
4024 ac_status=$?
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; }; then
4027 ac_compiler_gnu=yes
4028else
4029 echo "$as_me: failed program was:" >&5
4030sed 's/^/| /' conftest.$ac_ext >&5
4031
4032ac_compiler_gnu=no
4033fi
4034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4035ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4036
4037fi
4038echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4039echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4040GXX=`test $ac_compiler_gnu = yes && echo yes`
4041ac_test_CXXFLAGS=${CXXFLAGS+set}
4042ac_save_CXXFLAGS=$CXXFLAGS
4043CXXFLAGS="-g"
4044echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4045echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4046if test "${ac_cv_prog_cxx_g+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048else
4049 cat >conftest.$ac_ext <<_ACEOF
4050/* confdefs.h. */
4051_ACEOF
4052cat confdefs.h >>conftest.$ac_ext
4053cat >>conftest.$ac_ext <<_ACEOF
4054/* end confdefs.h. */
4055
4056int
4057main ()
4058{
4059
4060 ;
4061 return 0;
4062}
4063_ACEOF
4064rm -f conftest.$ac_objext
4065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4066 (eval $ac_compile) 2>conftest.er1
4067 ac_status=$?
4068 grep -v '^ *+' conftest.er1 >conftest.err
4069 rm -f conftest.er1
4070 cat conftest.err >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } &&
4073 { ac_try='test -z "$ac_cxx_werror_flag"
4074 || test ! -s conftest.err'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 (eval $ac_try) 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; } &&
4080 { ac_try='test -s conftest.$ac_objext'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082 (eval $ac_try) 2>&5
4083 ac_status=$?
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4086 ac_cv_prog_cxx_g=yes
4087else
4088 echo "$as_me: failed program was:" >&5
4089sed 's/^/| /' conftest.$ac_ext >&5
4090
4091ac_cv_prog_cxx_g=no
4092fi
4093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4094fi
4095echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4096echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4097if test "$ac_test_CXXFLAGS" = set; then
4098 CXXFLAGS=$ac_save_CXXFLAGS
4099elif test $ac_cv_prog_cxx_g = yes; then
4100 if test "$GXX" = yes; then
4101 CXXFLAGS="-g -O2"
4102 else
4103 CXXFLAGS="-g"
4104 fi
4105else
4106 if test "$GXX" = yes; then
4107 CXXFLAGS="-O2"
4108 else
4109 CXXFLAGS=
4110 fi
4111fi
4112for ac_declaration in \
4113 '' \
4114 'extern "C" void std::exit (int) throw (); using std::exit;' \
4115 'extern "C" void std::exit (int); using std::exit;' \
4116 'extern "C" void exit (int) throw ();' \
4117 'extern "C" void exit (int);' \
4118 'void exit (int);'
4119do
4120 cat >conftest.$ac_ext <<_ACEOF
4121/* confdefs.h. */
4122_ACEOF
4123cat confdefs.h >>conftest.$ac_ext
4124cat >>conftest.$ac_ext <<_ACEOF
4125/* end confdefs.h. */
4126$ac_declaration
4127#include <stdlib.h>
4128int
4129main ()
4130{
4131exit (42);
4132 ;
4133 return 0;
4134}
4135_ACEOF
4136rm -f conftest.$ac_objext
4137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4138 (eval $ac_compile) 2>conftest.er1
4139 ac_status=$?
4140 grep -v '^ *+' conftest.er1 >conftest.err
4141 rm -f conftest.er1
4142 cat conftest.err >&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } &&
4145 { ac_try='test -z "$ac_cxx_werror_flag"
4146 || test ! -s conftest.err'
4147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148 (eval $ac_try) 2>&5
4149 ac_status=$?
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; } &&
4152 { ac_try='test -s conftest.$ac_objext'
4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 (eval $ac_try) 2>&5
4155 ac_status=$?
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; }; then
4158 :
4159else
4160 echo "$as_me: failed program was:" >&5
4161sed 's/^/| /' conftest.$ac_ext >&5
4162
4163continue
4164fi
4165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4166 cat >conftest.$ac_ext <<_ACEOF
4167/* confdefs.h. */
4168_ACEOF
4169cat confdefs.h >>conftest.$ac_ext
4170cat >>conftest.$ac_ext <<_ACEOF
4171/* end confdefs.h. */
4172$ac_declaration
4173int
4174main ()
4175{
4176exit (42);
4177 ;
4178 return 0;
4179}
4180_ACEOF
4181rm -f conftest.$ac_objext
4182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4183 (eval $ac_compile) 2>conftest.er1
4184 ac_status=$?
4185 grep -v '^ *+' conftest.er1 >conftest.err
4186 rm -f conftest.er1
4187 cat conftest.err >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); } &&
4190 { ac_try='test -z "$ac_cxx_werror_flag"
4191 || test ! -s conftest.err'
4192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 (eval $ac_try) 2>&5
4194 ac_status=$?
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; } &&
4197 { ac_try='test -s conftest.$ac_objext'
4198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 (eval $ac_try) 2>&5
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; }; then
4203 break
4204else
4205 echo "$as_me: failed program was:" >&5
4206sed 's/^/| /' conftest.$ac_ext >&5
4207
4208fi
4209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4210done
4211rm -f conftest*
4212if test -n "$ac_declaration"; then
4213 echo '#ifdef __cplusplus' >>confdefs.h
4214 echo $ac_declaration >>confdefs.h
4215 echo '#endif' >>confdefs.h
4216fi
4217
4218ac_ext=c
4219ac_cpp='$CPP $CPPFLAGS'
4220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223
4224
4225# We must set the default linker to the linker used by gcc for the correct
4226# operation of libtool. If LD is not defined and we are using gcc, try to
4227# set the LD default to the ld used by gcc.
4228if test -z "$LD"; then
4229 if test "$GCC" = yes; then
4230 case $build in
4231 *-*-mingw*)
4232 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4233 *)
4234 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4235 esac
4236 case $gcc_prog_ld in
4237 # Accept absolute paths.
4238 [\\/]* | [A-Za-z]:[\\/]*)
4239 LD="$gcc_prog_ld" ;;
4240 esac
4241 fi
512b7dfb
PB
4242fi
4243
4244
4245
4246
c6b750e1 4247if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4248 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4249set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4250echo "$as_me:$LINENO: checking for $ac_word" >&5
4251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4252if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4253 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4254else
512b7dfb
PB
4255 if test -n "$GNATBIND"; then
4256 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4257else
c6b750e1
DJ
4258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259for as_dir in $PATH
4260do
4261 IFS=$as_save_IFS
4262 test -z "$as_dir" && as_dir=.
4263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4265 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 break 2
4268 fi
4269done
4270done
4271
9e07f89d
NN
4272fi
4273fi
512b7dfb
PB
4274GNATBIND=$ac_cv_prog_GNATBIND
4275if test -n "$GNATBIND"; then
4276 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4277echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4278else
c6b750e1
DJ
4279 echo "$as_me:$LINENO: result: no" >&5
4280echo "${ECHO_T}no" >&6
9e07f89d
NN
4281fi
4282
c6b750e1 4283fi
512b7dfb
PB
4284if test -z "$ac_cv_prog_GNATBIND"; then
4285 ac_ct_GNATBIND=$GNATBIND
4286 # Extract the first word of "gnatbind", so it can be a program name with args.
4287set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4288echo "$as_me:$LINENO: checking for $ac_word" >&5
4289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4290if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4291 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4292else
512b7dfb
PB
4293 if test -n "$ac_ct_GNATBIND"; then
4294 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4295else
c6b750e1
DJ
4296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297for as_dir in $PATH
4298do
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4303 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 break 2
4306 fi
4307done
4308done
4309
512b7dfb 4310 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4311fi
4312fi
512b7dfb
PB
4313ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4314if test -n "$ac_ct_GNATBIND"; then
4315 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4316echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4317else
c6b750e1
DJ
4318 echo "$as_me:$LINENO: result: no" >&5
4319echo "${ECHO_T}no" >&6
9e07f89d
NN
4320fi
4321
512b7dfb 4322 GNATBIND=$ac_ct_GNATBIND
24ff9987 4323else
512b7dfb 4324 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4325fi
4326
7df2cd5d 4327if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4328 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4329set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4330echo "$as_me:$LINENO: checking for $ac_word" >&5
4331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4332if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4334else
512b7dfb
PB
4335 if test -n "$GNATMAKE"; then
4336 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4337else
4338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339for as_dir in $PATH
4340do
4341 IFS=$as_save_IFS
4342 test -z "$as_dir" && as_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4345 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4347 break 2
4348 fi
4349done
4350done
4351
4352fi
4353fi
512b7dfb
PB
4354GNATMAKE=$ac_cv_prog_GNATMAKE
4355if test -n "$GNATMAKE"; then
4356 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4357echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4358else
4359 echo "$as_me:$LINENO: result: no" >&5
4360echo "${ECHO_T}no" >&6
4361fi
4362
4363fi
512b7dfb
PB
4364if test -z "$ac_cv_prog_GNATMAKE"; then
4365 ac_ct_GNATMAKE=$GNATMAKE
4366 # Extract the first word of "gnatmake", so it can be a program name with args.
4367set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4368echo "$as_me:$LINENO: checking for $ac_word" >&5
4369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4370if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4372else
512b7dfb
PB
4373 if test -n "$ac_ct_GNATMAKE"; then
4374 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4375else
4376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377for as_dir in $PATH
4378do
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4383 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 break 2
4386 fi
4387done
4388done
4389
512b7dfb 4390 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4391fi
4392fi
512b7dfb
PB
4393ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4394if test -n "$ac_ct_GNATMAKE"; then
4395 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4396echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4397else
4398 echo "$as_me:$LINENO: result: no" >&5
4399echo "${ECHO_T}no" >&6
4400fi
4401
512b7dfb 4402 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4403else
512b7dfb 4404 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4405fi
4406
c6b750e1
DJ
4407echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4408echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4409if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4411else
4412 cat >conftest.adb <<EOF
4413procedure conftest is begin null; end conftest;
4414EOF
4415acx_cv_cc_gcc_supports_ada=no
4416# There is a bug in old released versions of GCC which causes the
4417# driver to exit successfully when the appropriate language module
4418# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4419# Therefore we must check for the error message as well as an
4420# unsuccessful exit.
b8908782
DD
4421# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4422# given a .adb file, but produce no object file. So we must check
4423# if an object file was really produced to guard against this.
9e07f89d 4424errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4425if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4426 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4427fi
4428rm -f conftest.*
4429fi
c6b750e1
DJ
4430echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4431echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4432
512b7dfb 4433if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4434 have_gnat=yes
4435else
4436 have_gnat=no
4437fi
4438
c6b750e1
DJ
4439echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4440echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4441if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4443else
4444 echo abfoo >t1
4445 echo cdfoo >t2
4446 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4447 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4448 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4449 :
4450 else
4451 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4452 fi
4453 fi
b8908782
DD
4454 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4455 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4456 :
b8908782
DD
4457 else
4458 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4459 fi
4460 fi
4461 rm t1 t2
4462
4463fi
c6b750e1
DJ
4464echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4465echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4466do_compare="$gcc_cv_prog_cmp_skip"
4467
4468
9e07f89d 4469
11b04d1f 4470# Check for GMP and MPFR
4b900473 4471gmplibs="-lmpfr -lgmp"
4b1cb4fe 4472gmpinc=
4b900473
PB
4473have_gmp=no
4474
11b04d1f
DD
4475# Specify a location for mpfr
4476# check for this first so it ends up on the link line before gmp.
c6b750e1 4477
11b04d1f
DD
4478# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4479if test "${with_mpfr_dir+set}" = set; then
4480 withval="$with_mpfr_dir"
c6b750e1
DJ
4481 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4482Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4483echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4484Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4485 { (exit 1); exit 1; }; }
4486fi;
11b04d1f
DD
4487
4488
11b04d1f
DD
4489# Check whether --with-mpfr or --without-mpfr was given.
4490if test "${with_mpfr+set}" = set; then
4491 withval="$with_mpfr"
c6b750e1
DJ
4492
4493fi;
11b04d1f 4494
8a0d8a5c
PB
4495# Check whether --with-mpfr_include or --without-mpfr_include was given.
4496if test "${with_mpfr_include+set}" = set; then
4497 withval="$with_mpfr_include"
c6b750e1
DJ
4498
4499fi;
8a0d8a5c
PB
4500
4501# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4502if test "${with_mpfr_lib+set}" = set; then
4503 withval="$with_mpfr_lib"
8a0d8a5c 4504
c6b750e1 4505fi;
11b04d1f
DD
4506
4507if test "x$with_mpfr" != x; then
4508 gmplibs="-L$with_mpfr/lib $gmplibs"
4509 gmpinc="-I$with_mpfr/include"
4510fi
8a0d8a5c
PB
4511if test "x$with_mpfr_include" != x; then
4512 gmpinc="-I$with_mpfr_include"
4513fi
4514if test "x$with_mpfr_lib" != x; then
4515 gmplibs="-L$with_mpfr_lib $gmplibs"
4516fi
4b900473
PB
4517if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4518 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4519 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4520 # Do not test the mpfr version. Assume that it is sufficient, since
4521 # it is in the source tree, and the library has not been built yet
4522 # but it would be included on the link line in the version check below
4523 # hence making the test fail.
4524 have_gmp=yes
4525fi
11b04d1f 4526
4b1cb4fe 4527# Specify a location for gmp
c6b750e1 4528
4b1cb4fe
DD
4529# Check whether --with-gmp-dir or --without-gmp-dir was given.
4530if test "${with_gmp_dir+set}" = set; then
4531 withval="$with_gmp_dir"
c6b750e1
DJ
4532 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4533Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4534echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4535Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4536 { (exit 1); exit 1; }; }
4537fi;
4b1cb4fe
DD
4538
4539
4b1cb4fe
DD
4540# Check whether --with-gmp or --without-gmp was given.
4541if test "${with_gmp+set}" = set; then
4542 withval="$with_gmp"
c6b750e1
DJ
4543
4544fi;
4b1cb4fe 4545
8a0d8a5c
PB
4546# Check whether --with-gmp_include or --without-gmp_include was given.
4547if test "${with_gmp_include+set}" = set; then
4548 withval="$with_gmp_include"
c6b750e1
DJ
4549
4550fi;
8a0d8a5c
PB
4551
4552# Check whether --with-gmp_lib or --without-gmp_lib was given.
4553if test "${with_gmp_lib+set}" = set; then
4554 withval="$with_gmp_lib"
8a0d8a5c 4555
c6b750e1 4556fi;
8a0d8a5c 4557
4b1cb4fe 4558
11b04d1f
DD
4559if test "x$with_gmp" != x; then
4560 gmplibs="-L$with_gmp/lib $gmplibs"
4561 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4562fi
8a0d8a5c
PB
4563if test "x$with_gmp_include" != x; then
4564 gmpinc="-I$with_gmp_include $gmpinc"
4565fi
4566if test "x$with_gmp_lib" != x; then
4567 gmplibs="-L$with_gmp_lib $gmplibs"
4568fi
4b900473
PB
4569if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4570 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4571 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4572 # Do not test the gmp version. Assume that it is sufficient, since
4573 # it is in the source tree, and the library has not been built yet
4574 # but it would be included on the link line in the version check below
4575 # hence making the test fail.
4576 have_gmp=yes
4577fi
4b1cb4fe 4578
ceb92e78 4579if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4580 have_gmp=yes
4581 saved_CFLAGS="$CFLAGS"
4582 CFLAGS="$CFLAGS $gmpinc"
4583 # Check GMP actually works
c6b750e1
DJ
4584 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4585echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4586
4587cat >conftest.$ac_ext <<_ACEOF
4588/* confdefs.h. */
4589_ACEOF
4590cat confdefs.h >>conftest.$ac_ext
4591cat >>conftest.$ac_ext <<_ACEOF
4592/* end confdefs.h. */
4b1cb4fe 4593#include "gmp.h"
c6b750e1
DJ
4594int
4595main ()
4596{
4b1cb4fe 4597
4b900473
PB
4598 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4599 choke me
4600 #endif
c6b750e1
DJ
4601
4602 ;
4603 return 0;
4604}
4605_ACEOF
4606rm -f conftest.$ac_objext
4607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4608 (eval $ac_compile) 2>conftest.er1
4609 ac_status=$?
4610 grep -v '^ *+' conftest.er1 >conftest.err
4611 rm -f conftest.er1
4612 cat conftest.err >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } &&
4615 { ac_try='test -z "$ac_c_werror_flag"
4616 || test ! -s conftest.err'
4617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618 (eval $ac_try) 2>&5
4619 ac_status=$?
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }; } &&
4622 { ac_try='test -s conftest.$ac_objext'
4623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 (eval $ac_try) 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; }; then
4628 echo "$as_me:$LINENO: result: yes" >&5
4629echo "${ECHO_T}yes" >&6
4630else
4631 echo "$as_me: failed program was:" >&5
4632sed 's/^/| /' conftest.$ac_ext >&5
4633
4634echo "$as_me:$LINENO: result: no" >&5
4635echo "${ECHO_T}no" >&6; have_gmp=no
4636fi
4637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4638
4b900473
PB
4639 if test x"$have_gmp" = xyes; then
4640 saved_LIBS="$LIBS"
4641 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4642 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4643echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4644 cat >conftest.$ac_ext <<_ACEOF
4645/* confdefs.h. */
4646_ACEOF
4647cat confdefs.h >>conftest.$ac_ext
4648cat >>conftest.$ac_ext <<_ACEOF
4649/* end confdefs.h. */
9b134994 4650#include <gmp.h>
4b900473 4651 #include <mpfr.h>
c6b750e1
DJ
4652int
4653main ()
4654{
9b134994 4655
57c53b2b 4656 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4b900473
PB
4657 choke me
4658 #endif
a3ca38d2
DD
4659 mpfr_t n;
4660 mpfr_t x;
4b900473 4661 int t;
a3ca38d2
DD
4662 mpfr_init (n);
4663 mpfr_init (x);
4b900473
PB
4664 mpfr_atan2 (n, n, x, GMP_RNDN);
4665 mpfr_erfc (n, x, GMP_RNDN);
4666 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4667
4668 ;
4669 return 0;
4670}
4671_ACEOF
4672rm -f conftest.$ac_objext conftest$ac_exeext
4673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4674 (eval $ac_link) 2>conftest.er1
4675 ac_status=$?
4676 grep -v '^ *+' conftest.er1 >conftest.err
4677 rm -f conftest.er1
4678 cat conftest.err >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); } &&
4681 { ac_try='test -z "$ac_c_werror_flag"
4682 || test ! -s conftest.err'
4683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684 (eval $ac_try) 2>&5
4685 ac_status=$?
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; } &&
4688 { ac_try='test -s conftest$ac_exeext'
4689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 (eval $ac_try) 2>&5
4691 ac_status=$?
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; }; then
4694 cat >conftest.$ac_ext <<_ACEOF
4695/* confdefs.h. */
4696_ACEOF
4697cat confdefs.h >>conftest.$ac_ext
4698cat >>conftest.$ac_ext <<_ACEOF
4699/* end confdefs.h. */
4b1cb4fe 4700#include <gmp.h>
4b900473 4701 #include <mpfr.h>
c6b750e1
DJ
4702int
4703main ()
4704{
9dbaa842 4705
57c53b2b 4706 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
4b900473
PB
4707 choke me
4708 #endif
4709 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4710
4711 ;
4712 return 0;
4713}
4714_ACEOF
4715rm -f conftest.$ac_objext conftest$ac_exeext
4716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4717 (eval $ac_link) 2>conftest.er1
4718 ac_status=$?
4719 grep -v '^ *+' conftest.er1 >conftest.err
4720 rm -f conftest.er1
4721 cat conftest.err >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } &&
4724 { ac_try='test -z "$ac_c_werror_flag"
4725 || test ! -s conftest.err'
4726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727 (eval $ac_try) 2>&5
4728 ac_status=$?
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; } &&
4731 { ac_try='test -s conftest$ac_exeext'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 (eval $ac_try) 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; }; then
4737 echo "$as_me:$LINENO: result: yes" >&5
4738echo "${ECHO_T}yes" >&6
4739else
4740 echo "$as_me: failed program was:" >&5
4741sed 's/^/| /' conftest.$ac_ext >&5
4742
4743echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4744echo "${ECHO_T}buggy but acceptable" >&6
4745fi
4746rm -f conftest.err conftest.$ac_objext \
4747 conftest$ac_exeext conftest.$ac_ext
4748else
4749 echo "$as_me: failed program was:" >&5
4750sed 's/^/| /' conftest.$ac_ext >&5
4751
4752echo "$as_me:$LINENO: result: no" >&5
4753echo "${ECHO_T}no" >&6; have_gmp=no
4754fi
4755rm -f conftest.err conftest.$ac_objext \
4756 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4757 LIBS="$saved_LIBS"
4758 fi
4759 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4760
4b900473 4761 if test x$have_gmp != xyes; then
57c53b2b 4762 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
c6b750e1
DJ
4763Try the --with-gmp and/or --with-mpfr options to specify their locations.
4764Copies of these libraries' source code can be found at their respective
4765hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4766See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4767If you obtained GMP and/or MPFR from a vendor distribution package, make
4768sure that you have installed both the libraries and the header files.
4769They may be located in separate packages." >&5
57c53b2b 4770echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
9dbaa842
DD
4771Try the --with-gmp and/or --with-mpfr options to specify their locations.
4772Copies of these libraries' source code can be found at their respective
4773hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4774See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4775If you obtained GMP and/or MPFR from a vendor distribution package, make
4776sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4777They may be located in separate packages." >&2;}
4778 { (exit 1); exit 1; }; }
4b900473 4779 fi
9dbaa842
DD
4780fi
4781
11b04d1f 4782# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4783
4784
4785
947f426e 4786# By default, C is the only stage 1 language.
9b134994 4787stage1_languages=,c,
1d39f329 4788
9e07f89d
NN
4789# Figure out what language subdirectories are present.
4790# Look if the user specified --enable-languages="..."; if not, use
4791# the environment variable $LANGUAGES if defined. $LANGUAGES might
4792# go away some day.
4793# NB: embedded tabs in this IF block -- do not untabify
4794if test -d ${srcdir}/gcc; then
4795 if test x"${enable_languages+set}" != xset; then
4796 if test x"${LANGUAGES+set}" = xset; then
4797 enable_languages="${LANGUAGES}"
4798 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4799 else
4800 enable_languages=all
4801 fi
4802 else
4803 if test x"${enable_languages}" = x ||
4804 test x"${enable_languages}" = xyes;
4805 then
4806 echo configure.in: --enable-languages needs at least one language argument 1>&2
4807 exit 1
4808 fi
4809 fi
4810 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4811
096f7d00
DE
4812 # 'f95' is the old name for the 'fortran' language. We issue a warning
4813 # and make the substitution.
4814 case ,${enable_languages}, in
4815 *,f95,*)
4816 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4817 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4818 ;;
4819 esac
4820
9e07f89d
NN
4821 # First scan to see if an enabled language requires some other language.
4822 # We assume that a given config-lang.in will list all the language
4823 # front ends it requires, even if some are required indirectly.
4824 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4825 case ${lang_frag} in
4826 ..) ;;
4827 # The odd quoting in the next line works around
4828 # an apparent bug in bash 1.12 on linux.
4829 ${srcdir}/gcc/[*]/config-lang.in) ;;
4830 *)
4831 # From the config-lang.in, get $language, $lang_requires
4832 language=
4833 lang_requires=
4834 . ${lang_frag}
4835 for other in ${lang_requires} ; do
4836 case ,${enable_languages}, in
4837 *,$other,*) ;;
4838 *,all,*) ;;
4839 *,$language,*)
4840 echo " \`$other' language required by \`$language'; enabling" 1>&2
4841 enable_languages="${enable_languages},${other}"
4842 ;;
4843 esac
4844 done
4845 ;;
4846 esac
4847 done
4848
9b134994 4849 new_enable_languages=,c,
9e07f89d 4850 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4851 potential_languages=,c,
9e07f89d
NN
4852
4853 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4854 case ${lang_frag} in
4855 ..) ;;
4856 # The odd quoting in the next line works around
4857 # an apparent bug in bash 1.12 on linux.
4858 ${srcdir}/gcc/[*]/config-lang.in) ;;
4859 *)
c6b750e1 4860 # From the config-lang.in, get $language, $target_libs,
1d39f329 4861 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4862 language=
4863 target_libs=
4864 lang_dirs=
64ce424c 4865 subdir_requires=
9b134994
PB
4866 boot_language=no
4867 build_by_default=yes
9e07f89d 4868 . ${lang_frag}
9b134994
PB
4869 if test x${language} = x; then
4870 echo "${lang_frag} doesn't set \$language." 1>&2
4871 exit 1
4872 fi
4873
4874 case ,${enable_languages}, in
4875 *,${language},*)
9e07f89d
NN
4876 # Language was explicitly selected; include it.
4877 add_this_lang=yes
4878 ;;
9b134994
PB
4879 *,all,*)
4880 # 'all' was selected, select it if it is a default language
4881 add_this_lang=${build_by_default}
9e07f89d
NN
4882 ;;
4883 *)
4884 add_this_lang=no
4885 ;;
4886 esac
4b1cb4fe 4887
64ce424c 4888 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4889 for i in $subdir_requires; do
3d3adb43 4890 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4891 case ,${enable_languages}, in
4892 *,${language},*)
4893 # Specifically requested language; tell them.
c6b750e1
DJ
4894 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4895echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4896 { (exit 1); exit 1; }; }
64ce424c
PB
4897 ;;
4898 *)
4899 # Silently disable.
9b134994 4900 add_this_lang=unsupported
64ce424c
PB
4901 ;;
4902 esac
4903 done
4904
9b134994
PB
4905 # Disable Ada if no preexisting GNAT is available.
4906 case ,${enable_languages},:${language}:${have_gnat} in
4907 *,${language},*:ada:no)
4908 # Specifically requested language; tell them.
c6b750e1
DJ
4909 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4910echo "$as_me: error: GNAT is required to build $language" >&2;}
4911 { (exit 1); exit 1; }; }
9b134994
PB
4912 ;;
4913 *:ada:no)
4914 # Silently disable.
4915 add_this_lang=unsupported
4916 ;;
4917 esac
4918
59f7ec45
HPN
4919 # Disable a language that is unsupported by the target.
4920 case " $unsupported_languages " in
4921 *" $language "*)
9b134994 4922 add_this_lang=unsupported
59f7ec45
HPN
4923 ;;
4924 esac
4925
4b1cb4fe 4926 case $add_this_lang in
9b134994 4927 unsupported)
9e07f89d 4928 # Remove language-dependent dirs.
1d39f329
NN
4929 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4930 ;;
9b134994
PB
4931 no)
4932 # Remove language-dependent dirs; still show language as supported.
4933 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4934 potential_languages="${potential_languages}${language},"
4935 ;;
4936 yes)
4937 new_enable_languages="${new_enable_languages}${language},"
4938 potential_languages="${potential_languages}${language},"
1d39f329
NN
4939 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4940 case ${boot_language} in
4941 yes)
4fa63067 4942 # Add to (comma-separated) list of stage 1 languages.
9b134994 4943 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4944 ;;
4945 esac
4946 ;;
9e07f89d
NN
4947 esac
4948 ;;
4949 esac
4950 done
4951
9b134994
PB
4952 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4953if test "${enable_stage1_languages+set}" = set; then
4954 enableval="$enable_stage1_languages"
4955 case ,${enable_stage1_languages}, in
4956 ,no,|,,)
4957 # Set it to something that will have no effect in the loop below
4958 enable_stage1_languages=c ;;
4959 ,yes,)
4960 enable_stage1_languages=`echo $new_enable_languages | \
4961 sed -e "s/^,//" -e "s/,$//" ` ;;
4962 *,all,*)
4963 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4964 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4965 esac
4966
4967 # Add "good" languages from enable_stage1_languages to stage1_languages,
4968 # while "bad" languages go in missing_languages. Leave no duplicates.
4969 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4970 case $potential_languages in
4971 *,$i,*)
4972 case $stage1_languages in
4973 *,$i,*) ;;
4974 *) stage1_languages="$stage1_languages$i," ;;
4975 esac ;;
4976 *)
4977 case $missing_languages in
4978 *,$i,*) ;;
4979 *) missing_languages="$missing_languages$i," ;;
4980 esac ;;
4981 esac
4982 done
c6b750e1 4983fi;
9b134994
PB
4984
4985 # Remove leading/trailing commas that were added for simplicity
4986 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4987 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4988 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4989 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4990
9e07f89d 4991 if test "x$missing_languages" != x; then
c6b750e1 4992 { { echo "$as_me:$LINENO: error:
27258dd4 4993The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4994Supported languages are: ${potential_languages}" >&5
4995echo "$as_me: error:
4996The following requested languages could not be built: ${missing_languages}
4997Supported languages are: ${potential_languages}" >&2;}
4998 { (exit 1); exit 1; }; }
9e07f89d 4999 fi
9e07f89d
NN
5000 if test "x$new_enable_languages" != "x$enable_languages"; then
5001 echo The following languages will be built: ${new_enable_languages}
9b134994 5002 enable_languages="$new_enable_languages"
9e07f89d 5003 fi
9b134994 5004
c6b750e1 5005
81ec575a 5006 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
5007fi
5008
a6df5a19
PB
5009# Handle --disable-<component> generically.
5010for dir in $configdirs $build_configdirs $target_configdirs ; do
5011 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
5012 varname=`echo $dirname | sed -e s/+/_/g`
5013 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
5014 noconfigdirs="$noconfigdirs $dir"
5015 fi
5016done
5017
4f0ef2d8
CD
5018# Check for Boehm's garbage collector
5019# Check whether --enable-objc-gc or --disable-objc-gc was given.
5020if test "${enable_objc_gc+set}" = set; then
5021 enableval="$enable_objc_gc"
5022 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5023 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
5024 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5025echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5026 { (exit 1); exit 1; }; }
4f0ef2d8
CD
5027 ;;
5028esac
c6b750e1 5029fi;
4f0ef2d8
CD
5030
5031# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
5032case ,${enable_languages},:${enable_objc_gc} in
5033 *,objc,*:yes)
4f0ef2d8
CD
5034 # Keep target-boehm-gc if requested for Objective-C.
5035 ;;
4f0ef2d8 5036 *)
d42c4017
DA
5037 # Otherwise remove target-boehm-gc depending on target-libjava.
5038 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5039 noconfigdirs="$noconfigdirs target-boehm-gc"
5040 fi
4f0ef2d8
CD
5041 ;;
5042esac
5043
caeba88f
AL
5044# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5045# $build_configdirs and $target_configdirs.
9e07f89d
NN
5046# If we have the source for $noconfigdirs entries, add them to $notsupp.
5047
5048notsupp=""
5049for dir in . $skipdirs $noconfigdirs ; do
caeba88f 5050 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
5051 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5052 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5053 if test -r $srcdir/$dirname/configure ; then
5054 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5055 true
5056 else
5057 notsupp="$notsupp $dir"
5058 fi
5059 fi
5060 fi
caeba88f
AL
5061 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5062 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5063 if test -r $srcdir/$dirname/configure ; then
5064 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5065 true
5066 else
5067 notsupp="$notsupp $dir"
5068 fi
5069 fi
5070 fi
9e07f89d
NN
5071 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5072 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5073 if test -r $srcdir/$dirname/configure ; then
5074 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5075 true
5076 else
5077 notsupp="$notsupp $dir"
5078 fi
5079 fi
5080 fi
5081done
5082
5083# Sometimes the tools are distributed with libiberty but with no other
5084# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 5085# Don't let libgcc imply libiberty either.
9e07f89d 5086if test -n "${target_configdirs}" ; then
f86e35b8 5087 libgcc=
9e07f89d
NN
5088 others=
5089 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
5090 if test "$i" = "libgcc"; then
5091 libgcc=target-libgcc
5092 elif test "$i" != "libiberty" ; then
9e07f89d
NN
5093 if test -r $srcdir/$i/configure ; then
5094 others=yes;
5095 break;
5096 fi
5097 fi
5098 done
5099 if test -z "${others}" ; then
f86e35b8 5100 target_configdirs=$libgcc
9e07f89d
NN
5101 fi
5102fi
5103
5104# Quietly strip out all directories which aren't configurable in this tree.
5105# This relies on all configurable subdirectories being autoconfiscated, which
5106# is now the case.
6a9cf61e
PB
5107build_configdirs_all="$build_configdirs"
5108build_configdirs=
5109for i in ${build_configdirs_all} ; do
c6b750e1 5110 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5111 if test -f ${srcdir}/$j/configure ; then
5112 build_configdirs="${build_configdirs} $i"
5113 fi
5114done
5115
9e07f89d
NN
5116configdirs_all="$configdirs"
5117configdirs=
5118for i in ${configdirs_all} ; do
5119 if test -f ${srcdir}/$i/configure ; then
5120 configdirs="${configdirs} $i"
5121 fi
5122done
6a9cf61e 5123
9e07f89d
NN
5124target_configdirs_all="$target_configdirs"
5125target_configdirs=
5126for i in ${target_configdirs_all} ; do
c6b750e1 5127 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5128 if test -f ${srcdir}/$j/configure ; then
5129 target_configdirs="${target_configdirs} $i"
5130 fi
5131done
5132
5133# Produce a warning message for the subdirs we can't configure.
5134# This isn't especially interesting in the Cygnus tree, but in the individual
5135# FSF releases, it's important to let people know when their machine isn't
5136# supported by the one or two programs in a package.
5137
5138if test -n "${notsupp}" && test -z "${norecursion}" ; then
5139 # If $appdirs is non-empty, at least one of those directories must still
5140 # be configured, or we error out. (E.g., if the gas release supports a
5141 # specified target in some subdirs but not the gas subdir, we shouldn't
5142 # pretend that all is well.)
5143 if test -n "$appdirs" ; then
5144 for dir in $appdirs ; do
5145 if test -r $dir/Makefile.in ; then
5146 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5147 appdirs=""
5148 break
5149 fi
6a9cf61e 5150 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5151 appdirs=""
5152 break
5153 fi
5154 fi
5155 done
5156 if test -n "$appdirs" ; then
5157 echo "*** This configuration is not supported by this package." 1>&2
5158 exit 1
5159 fi
5160 fi
5161 # Okay, some application will build, or we don't care to check. Still
5162 # notify of subdirs not getting built.
5163 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5164 echo " ${notsupp}" 1>&2
5165 echo " (Any other directories should still work fine.)" 1>&2
5166fi
5167
5168case "$host" in
5169 *msdosdjgpp*)
5170 enable_gdbtk=no ;;
5171esac
5172
18f6b6ee
PB
5173# To find our prefix, in gcc_cv_tool_prefix.
5174
5175# The user is always right.
5176if test "${PATH_SEPARATOR+set}" != set; then
5177 echo "#! /bin/sh" >conf$$.sh
5178 echo "exit 0" >>conf$$.sh
5179 chmod +x conf$$.sh
5180 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5181 PATH_SEPARATOR=';'
5182 else
5183 PATH_SEPARATOR=:
5184 fi
5185 rm -f conf$$.sh
5186fi
5187
5188
5189
5190if test "x$exec_prefix" = xNONE; then
5191 if test "x$prefix" = xNONE; then
5192 gcc_cv_tool_prefix=$ac_default_prefix
5193 else
5194 gcc_cv_tool_prefix=$prefix
5195 fi
5196else
5197 gcc_cv_tool_prefix=$exec_prefix
5198fi
5199
5200# If there is no compiler in the tree, use the PATH only. In any
5201# case, if there is no compiler in the tree nobody should use
5202# AS_FOR_TARGET and LD_FOR_TARGET.
5203if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5204 gcc_version=`cat $srcdir/gcc/BASE-VER`
5205 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5206 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5207 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5208 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5209 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5210 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5211else
5212 gcc_cv_tool_dirs=
5213fi
5214
5215if test x$build = x$target && test -n "$md_exec_prefix"; then
5216 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5217fi
5218
5219
5220
9e07f89d
NN
5221copy_dirs=
5222
c6b750e1 5223
a19b6204
MM
5224# Check whether --with-build-sysroot or --without-build-sysroot was given.
5225if test "${with_build_sysroot+set}" = set; then
5226 withval="$with_build_sysroot"
5227 if test x"$withval" != x ; then
5228 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5229 fi
5230else
5231 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5232fi;
a19b6204
MM
5233
5234
8a6ee3ab
JM
5235
5236# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5237if test "${with_debug_prefix_map+set}" = set; then
5238 withval="$with_debug_prefix_map"
5239 if test x"$withval" != x; then
5240 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5241 for debug_map in $withval; do
5242 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5243 done
5244 fi
5245else
5246 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5247fi;
5248
5249
7f6ef0c0
PB
5250# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5251# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5252# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5253# We want to ensure that TARGET libraries (which we know are built with
5254# gcc) are built with "-O2 -g", so include those options when setting
5255# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5256if test "x$CFLAGS_FOR_TARGET" = x; then
5257 CFLAGS_FOR_TARGET=$CFLAGS
5258 case " $CFLAGS " in
5259 *" -O2 "*) ;;
5260 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5261 esac
5262 case " $CFLAGS " in
5263 *" -g "* | *" -g3 "*) ;;
5264 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5265 esac
5266fi
5267
5268
5269if test "x$CXXFLAGS_FOR_TARGET" = x; then
5270 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5271 case " $CXXFLAGS " in
5272 *" -O2 "*) ;;
5273 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5274 esac
5275 case " $CXXFLAGS " in
5276 *" -g "* | *" -g3 "*) ;;
5277 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5278 esac
5279fi
5280
5281
9e07f89d
NN
5282# Handle --with-headers=XXX. If the value is not "yes", the contents of
5283# the named directory are copied to $(tooldir)/sys-include.
5284if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5285 if test x${is_cross_compiler} = xno ; then
5286 echo 1>&2 '***' --with-headers is only supported when cross compiling
5287 exit 1
5288 fi
5289 if test x"${with_headers}" != xyes ; then
18f6b6ee 5290 x=${gcc_cv_tool_prefix}
c6b750e1 5291 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5292 fi
5293fi
5294
5295# Handle --with-libs=XXX. If the value is not "yes", the contents of
5296# the name directories are copied to $(tooldir)/lib. Multiple directories
5297# are permitted.
5298if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5299 if test x${is_cross_compiler} = xno ; then
5300 echo 1>&2 '***' --with-libs is only supported when cross compiling
5301 exit 1
5302 fi
5303 if test x"${with_libs}" != xyes ; then
5304 # Copy the libraries in reverse order, so that files in the first named
5305 # library override files in subsequent libraries.
18f6b6ee 5306 x=${gcc_cv_tool_prefix}
9e07f89d 5307 for l in ${with_libs}; do
c6b750e1 5308 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5309 done
5310 fi
5311fi
5312
2429c060
PB
5313# Set with_gnu_as and with_gnu_ld as appropriate.
5314#
5315# This is done by determining whether or not the appropriate directory
5316# is available, and by checking whether or not specific configurations
5317# have requested that this magic not happen.
c6b750e1
DJ
5318#
5319# The command line options always override the explicit settings in
2429c060
PB
5320# configure.in, and the settings in configure.in override this magic.
5321#
c6b750e1 5322# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5323# want to do that, then you should use the --without-gnu-as and
5324# --without-gnu-ld options for the configure script.
5325
5326if test x${use_gnu_as} = x &&
5327 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5328 with_gnu_as=yes
5329 extra_host_args="$extra_host_args --with-gnu-as"
5330fi
5331
5332if test x${use_gnu_ld} = x &&
93f9b408 5333 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
5334 with_gnu_ld=yes
5335 extra_host_args="$extra_host_args --with-gnu-ld"
5336fi
5337
5338# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5339# can detect this case.
5340
5341if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5342 with_newlib=yes
5343 extra_host_args="$extra_host_args --with-newlib"
5344fi
5345
9e07f89d
NN
5346# Handle ${copy_dirs}
5347set fnord ${copy_dirs}
5348shift
5349while test $# != 0 ; do
5350 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5351 :
5352 else
5353 echo Copying $1 to $2
5354
5355 # Use the install script to create the directory and all required
5356 # parent directories.
5357 if test -d $2 ; then
5358 :
5359 else
5360 echo >config.temp
5361 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5362 fi
5363
5364 # Copy the directory, assuming we have tar.
5365 # FIXME: Should we use B in the second tar? Not all systems support it.
5366 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5367
5368 # It is the responsibility of the user to correctly adjust all
5369 # symlinks. If somebody can figure out how to handle them correctly
5370 # here, feel free to add the code.
5371
5372 echo $1 > $2/COPIED
5373 fi
5374 shift; shift
5375done
5376
2429c060
PB
5377# Determine a target-dependent exec_prefix that the installed
5378# gcc will search in. Keep this list sorted by triplet, with
5379# the *-*-osname triplets last.
5380md_exec_prefix=
5381case "${target}" in
5382 alpha*-*-*vms*)
5383 md_exec_prefix=/gnu/lib/gcc-lib
5384 ;;
521ec477 5385 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5386 md_exec_prefix=/dev/env/DJDIR/bin
5387 ;;
521ec477 5388 i[34567]86-*-sco3.2v5*)
2429c060
PB
5389 if test $with_gnu_as = yes; then
5390 md_exec_prefix=/usr/gnu/bin
5391 else
5392 md_exec_prefix=/usr/ccs/bin/elf
5393 fi
5394 ;;
5395
5396 mn10300-*-* | \
5397 powerpc-*-chorusos* | \
5398 powerpc*-*-eabi* | \
5399 powerpc*-*-sysv* | \
5400 powerpc*-*-kaos* | \
5401 s390x-ibm-tpf*)
5402 md_exec_prefix=/usr/ccs/bin
5403 ;;
5404 sparc64-*-elf*)
5405 ;;
5406 v850*-*-*)
5407 md_exec_prefix=/usr/ccs/bin
5408 ;;
8b66833e 5409 xtensa*-*-elf*)
2429c060
PB
5410 ;;
5411
5412 *-*-beos* | \
5413 *-*-elf* | \
5414 *-*-hpux* | \
5415 *-*-netware* | \
5416 *-*-nto-qnx* | \
5417 *-*-rtems* | \
5418 *-*-solaris2* | \
521ec477 5419 *-*-sysv[45]* | \
2429c060
PB
5420 *-*-vxworks* | \
5421 *-wrs-windiss)
5422 md_exec_prefix=/usr/ccs/bin
5423 ;;
5424esac
5425
a0da8069
NN
5426extra_arflags_for_target=
5427extra_nmflags_for_target=
5428extra_ranlibflags_for_target=
5429target_makefile_frag=/dev/null
5430case "${target}" in
4e206d7e
DB
5431 mep*-*-*)
5432 target_makefile_frag="config/mt-mep"
5433 ;;
77d7106f
AM
5434 spu-*-*)
5435 target_makefile_frag="config/mt-spu"
5436 ;;
429acdec
RS
5437 mips*-sde-elf*)
5438 target_makefile_frag="config/mt-sde"
5439 ;;
f3b1e08e
RS
5440 mipsisa*-*-elfoabi*)
5441 target_makefile_frag="config/mt-mips-elfoabi"
5442 ;;
2a3124ca 5443 *-*-netware*)
a0da8069
NN
5444 target_makefile_frag="config/mt-netware"
5445 ;;
3d6dfe0f
NN
5446 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5447 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5448 ;;
5449 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5450 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5451 # commands to handle both 32-bit and 64-bit objects. These flags are
5452 # harmless if we're using GNU nm or ar.
5453 extra_arflags_for_target=" -X32_64"
5454 extra_nmflags_for_target=" -B -X32_64"
5455 ;;
5456 *-*-darwin*)
5457 # ranlib from Darwin requires the -c flag to look at common symbols.
5458 extra_ranlibflags_for_target=" -c"
5459 ;;
5460 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5461 target_makefile_frag="config/mt-wince"
5462 ;;
5463esac
5464
5465alphaieee_frag=/dev/null
5466case $target in
5467 alpha*-*-*)
5468 # This just makes sure to use the -mieee option to build target libs.
5469 # This should probably be set individually by each library.
5470 alphaieee_frag="config/mt-alphaieee"
5471 ;;
5472esac
5473
5474# If --enable-target-optspace always use -Os instead of -O2 to build
5475# the target libraries, similarly if it is not specified, use -Os
5476# on selected platforms.
5477ospace_frag=/dev/null
5478case "${enable_target_optspace}:${target}" in
5479 yes:*)
5480 ospace_frag="config/mt-ospace"
5481 ;;
5482 :d30v-*)
5483 ospace_frag="config/mt-d30v"
5484 ;;
5485 :m32r-* | :d10v-* | :fr30-*)
5486 ospace_frag="config/mt-ospace"
5487 ;;
5488 no:* | :*)
5489 ;;
5490 *)
5491 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5492 ;;
5493esac
5494
a0da8069
NN
5495# Default to using --with-stabs for certain targets.
5496if test x${with_stabs} = x ; then
5497 case "${target}" in
e31d1ea3 5498 mips*-*-irix[56]*)
a0da8069
NN
5499 ;;
5500 mips*-*-* | alpha*-*-osf*)
5501 with_stabs=yes;
5502 extra_host_args="${extra_host_args} --with-stabs"
5503 ;;
5504 esac
5505fi
5506
5507# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5508# them automatically.
5509case "${host}" in
c6b750e1 5510 hppa*64*-*-hpux11*)
a0da8069
NN
5511 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5512 ;;
5513esac
5514
a0da8069
NN
5515# Some systems (e.g., one of the i386-aix systems the gas testers are
5516# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5517tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5518build_tooldir=${tooldir}
5519
a0da8069
NN
5520# Create a .gdbinit file which runs the one in srcdir
5521# and tells GDB to look there for source files.
5522
5523if test -r ${srcdir}/.gdbinit ; then
5524 case ${srcdir} in
5525 .) ;;
5526 *) cat > ./.gdbinit <<EOF
5527# ${NO_EDIT}
5528dir ${srcdir}
5529dir .
5530source ${srcdir}/.gdbinit
5531EOF
5532 ;;
5533 esac
5534fi
5535
a0da8069
NN
5536# Make sure that the compiler is able to generate an executable. If it
5537# can't, we are probably in trouble. We don't care whether we can run the
5538# executable--we might be using a cross compiler--we only care whether it
5539# can be created. At this point the main configure script has set CC.
5540we_are_ok=no
5541echo "int main () { return 0; }" > conftest.c
5542${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5543if test $? = 0 ; then
5544 if test -s conftest || test -s conftest.exe ; then
5545 we_are_ok=yes
5546 fi
c6b750e1 5547fi
a0da8069
NN
5548case $we_are_ok in
5549 no)
5550 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5551 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5552 rm -f conftest*
5553 exit 1
5554 ;;
5555esac
5556rm -f conftest*
5557
5558# The Solaris /usr/ucb/cc compiler does not appear to work.
5559case "${host}" in
5560 sparc-sun-solaris2*)
5561 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5562 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5563 could_use=
5564 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5565 if test -d /opt/cygnus/bin ; then
5566 if test "$could_use" = "" ; then
5567 could_use="/opt/cygnus/bin"
5568 else
5569 could_use="$could_use or /opt/cygnus/bin"
5570 fi
5571 fi
5572 if test "$could_use" = "" ; then
5573 echo "Warning: compilation may fail because you're using"
5574 echo "/usr/ucb/cc. You should change your PATH or CC "
5575 echo "variable and rerun configure."
5576 else
5577 echo "Warning: compilation may fail because you're using"
5578 echo "/usr/ucb/cc, when you should use the C compiler from"
5579 echo "$could_use. You should change your"
5580 echo "PATH or CC variable and rerun configure."
5581 fi
5582 fi
5583 ;;
5584esac
5585
a0da8069
NN
5586case "${host}" in
5587 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5588 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5589 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5590esac
5591
5592# Record target_configdirs and the configure arguments for target and
5593# build configuration in Makefile.
5594target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5595build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5596
a0da8069
NN
5597# Determine whether gdb needs tk/tcl or not.
5598# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5599# and in that case we want gdb to be built without tk. Ugh!
5600# In fact I believe gdb is the *only* package directly dependent on tk,
5601# so we should be able to put the 'maybe's in unconditionally and
5602# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5603# 100% sure that that's safe though.
c180f501 5604
675c6968 5605gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5606case "$enable_gdbtk" in
5607 no)
5608 GDB_TK="" ;;
c180f501
AC
5609 yes)
5610 GDB_TK="${gdb_tk}" ;;
a0da8069 5611 *)
c180f501
AC
5612 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5613 # distro. Eventually someone will fix this and move Insight, nee
5614 # gdbtk to a separate directory.
5615 if test -d ${srcdir}/gdb/gdbtk ; then
5616 GDB_TK="${gdb_tk}"
5617 else
5618 GDB_TK=""
5619 fi
5620 ;;
a0da8069 5621esac
907be67c
DJ
5622CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5623INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5624
6bd3dfaa 5625# Strip out unwanted targets.
dd12c3a8
NN
5626
5627# While at that, we remove Makefiles if we were started for recursive
5628# configuration, so that the top-level Makefile reconfigures them,
5629# like we used to do when configure itself was recursive.
dd12c3a8 5630
6bd3dfaa
PB
5631# Loop over modules. $extrasub must be used with care, limiting as
5632# much as possible the usage of range addresses. That's because autoconf
5633# splits the sed script to overcome limits in the number of commands,
5634# and relying on carefully-timed sed passes may turn out to be very hard
5635# to maintain later. In this particular case, you just have to be careful
5636# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5637
319cab08
PB
5638# Check whether --enable-bootstrap or --disable-bootstrap was given.
5639if test "${enable_bootstrap+set}" = set; then
5640 enableval="$enable_bootstrap"
c6b750e1 5641
319cab08 5642else
9cb3fa6f 5643 enable_bootstrap=default
c6b750e1 5644fi;
319cab08 5645
9cb3fa6f
PB
5646# Issue errors and warnings for invalid/strange bootstrap combinations.
5647case "$configdirs" in
5648 *gcc*) have_compiler=yes ;;
5649 *) have_compiler=no ;;
5650esac
5651
5652case "$have_compiler:$host:$target:$enable_bootstrap" in
5653 *:*:*:no) ;;
5654
0aed8855 5655 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5656 # and we are in a native configuration.
5657 yes:$build:$build:default)
0aed8855 5658 enable_bootstrap=yes ;;
9cb3fa6f
PB
5659
5660 *:*:*:default)
5661 enable_bootstrap=no ;;
5662
5663 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5664 yes:$build:$build:yes)
9cb3fa6f
PB
5665 ;;
5666
5667 # Other configurations, but we have a compiler. Assume the user knows
5668 # what he's doing.
80911fe1 5669 yes:*:*:yes)
c6b750e1
DJ
5670 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5671echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5672 ;;
5673
5674 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5675 no:*:*:yes)
c6b750e1
DJ
5676 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5677echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5678 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5679
5680 # Fail if wrong command line
5681 *)
c6b750e1
DJ
5682 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5683echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5684 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5685 ;;
5686esac
5687
5688# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5689case "$enable_bootstrap" in
5690 yes)
498d4a71 5691 bootstrap_suffix=bootstrap ;;
319cab08 5692 no)
498d4a71 5693 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5694esac
5695
6a9cf61e 5696for module in ${build_configdirs} ; do
498d4a71
CF
5697 if test -z "${no_recursion}" \
5698 && test -f ${build_subdir}/${module}/Makefile; then
5699 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5700 rm -f ${build_subdir}/${module}/Makefile
5701 fi
5702 extrasub="$extrasub
5703/^@if build-$module\$/d
5704/^@endif build-$module\$/d
5705/^@if build-$module-$bootstrap_suffix\$/d
5706/^@endif build-$module-$bootstrap_suffix\$/d"
5707done
5708for module in ${configdirs} ; do
80911fe1 5709 if test -z "${no_recursion}"; then
8cf39b1b 5710 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5711 if test -f ${file}; then
5712 echo 1>&2 "*** removing ${file} to force reconfigure"
5713 rm -f ${file}
5714 fi
5715 done
498d4a71
CF
5716 fi
5717 extrasub="$extrasub
5718/^@if $module\$/d
5719/^@endif $module\$/d
5720/^@if $module-$bootstrap_suffix\$/d
5721/^@endif $module-$bootstrap_suffix\$/d"
5722done
5723for module in ${target_configdirs} ; do
5724 if test -z "${no_recursion}" \
5725 && test -f ${target_subdir}/${module}/Makefile; then
5726 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5727 rm -f ${target_subdir}/${module}/Makefile
5728 fi
5729 extrasub="$extrasub
5730/^@if target-$module\$/d
5731/^@endif target-$module\$/d
5732/^@if target-$module-$bootstrap_suffix\$/d
5733/^@endif target-$module-$bootstrap_suffix\$/d"
5734done
5735
6bd3dfaa
PB
5736extrasub="$extrasub
5737/^@if /,/^@endif /d"
a0da8069
NN
5738
5739# Create the serialization dependencies. This uses a temporary file.
5740
e6bfb94a
AO
5741# Check whether --enable-serial-configure or --disable-serial-configure was given.
5742if test "${enable_serial_configure+set}" = set; then
5743 enableval="$enable_serial_configure"
e6bfb94a 5744
c6b750e1 5745fi;
e6bfb94a 5746
1047cb91
DD
5747case ${enable_serial_configure} in
5748 yes)
5749 enable_serial_build_configure=yes
5750 enable_serial_host_configure=yes
5751 enable_serial_target_configure=yes
5752 ;;
5753esac
5754
a0da8069
NN
5755# These force 'configure's to be done one at a time, to avoid problems
5756# with contention over a shared config.cache.
5757rm -f serdep.tmp
e6bfb94a 5758echo '# serdep.tmp' > serdep.tmp
a0da8069 5759olditem=
1047cb91 5760test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5761for item in ${build_configdirs} ; do
5762 case ${olditem} in
5763 "") ;;
e6bfb94a 5764 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5765 esac
5766 olditem=${item}
5767done
5768olditem=
1047cb91 5769test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5770for item in ${configdirs} ; do
5771 case ${olditem} in
5772 "") ;;
e6bfb94a 5773 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5774 esac
5775 olditem=${item}
5776done
5777olditem=
1047cb91 5778test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5779for item in ${target_configdirs} ; do
5780 case ${olditem} in
5781 "") ;;
e6bfb94a 5782 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5783 esac
5784 olditem=${item}
5785done
5786serialization_dependencies=serdep.tmp
5787
5788
e6bfb94a 5789# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5790# target, nonopt, and variable assignments. These are the ones we
5791# might not want to pass down to subconfigures. Also strip
5792# program-prefix, program-suffix, and program-transform-name, so that
5793# we can pass down a consistent program-transform-name.
5794baseargs=
5795keep_next=no
5796skip_next=no
5797eval "set -- $ac_configure_args"
18f6b6ee
PB
5798for ac_arg
5799do
c6b750e1
DJ
5800 if test X"$skip_next" = X"yes"; then
5801 skip_next=no
5802 continue
5803 fi
5804 if test X"$keep_next" = X"yes"; then
5805 case $ac_arg in
5806 *\'*)
5807 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5808 esac
5809 baseargs="$baseargs '$ac_arg'"
5810 keep_next=no
5811 continue
5812 fi
5813
5814 # Handle separated arguments. Based on the logic generated by
5815 # autoconf 2.59.
5816 case $ac_arg in
5817 *=* | --config-cache | -C | -disable-* | --disable-* \
5818 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5819 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5820 | -with-* | --with-* | -without-* | --without-* | --x)
5821 separate_arg=no
5822 ;;
5823 -*)
5824 separate_arg=yes
5825 ;;
5826 *)
5827 separate_arg=no
5828 ;;
5829 esac
5830
5831 case "$ac_arg" in
5832 --no*)
5833 continue
5834 ;;
5835 --c* | \
5836 --sr* | \
5837 --ho* | \
5838 --bu* | \
5839 --t* | \
5840 --program-* | \
5841 -cache_file* | \
5842 -srcdir* | \
5843 -host* | \
5844 -build* | \
5845 -target* | \
5846 -program-prefix* | \
5847 -program-suffix* | \
5848 -program-transform-name* )
5849 skip_next=$separate_arg
5850 continue
5851 ;;
5852 -*)
5853 # An option. Add it.
5854 case $ac_arg in
5855 *\'*)
5856 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5857 esac
5858 baseargs="$baseargs '$ac_arg'"
5859 keep_next=$separate_arg
5860 ;;
5861 *)
5862 # Either a variable assignment, or a nonopt (triplet). Don't
5863 # pass it down; let the Makefile handle this.
5864 continue
5865 ;;
5866 esac
5867done
5868# Remove the initial space we just introduced and, as these will be
5869# expanded by make, quote '$'.
5870baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5871
f27d4f92
DJ
5872# Add in --program-transform-name, after --program-prefix and
5873# --program-suffix have been applied to it. Autoconf has already
5874# doubled dollar signs and backslashes in program_transform_name; we want
5875# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5876# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5877# Also, because we want to override the logic in subdir configure scripts to
5878# choose program_transform_name, replace any s,x,x, with s,y,y,.
5879sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5880${program_transform_name}
5881EOF_SED
5882gcc_transform_name=`cat conftestsed.out`
5883rm -f conftestsed.out
5884baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
5885if test "$silent" = yes; then
5886 baseargs="$baseargs --silent"
5887fi
f27d4f92 5888
a0da8069
NN
5889# For the build-side libraries, we just need to pretend we're native,
5890# and not use the same cache file. Multilibs are neither needed nor
5891# desired.
4b900473 5892build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5893
5894# For host modules, accept cache file option, or specification as blank.
5895case "${cache_file}" in
5896"") # empty
5897 cache_file_option="" ;;
5898/* | [A-Za-z]:[\\/]* ) # absolute path
5899 cache_file_option="--cache-file=${cache_file}" ;;
5900*) # relative path
5901 cache_file_option="--cache-file=../${cache_file}" ;;
5902esac
5903
82252c06
NN
5904# Host dirs don't like to share a cache file either, horribly enough.
5905# This seems to be due to autoconf 2.5x stupidity.
4b900473 5906host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5907
5908target_configargs=${baseargs}
5909
5910# Passing a --with-cross-host argument lets the target libraries know
5911# whether they are being built with a cross-compiler or being built
5912# native. However, it would be better to use other mechanisms to make the
5913# sorts of decisions they want to make on this basis. Please consider
5914# this option to be deprecated. FIXME.
5915if test x${is_cross_compiler} = xyes ; then
c6b750e1 5916 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5917fi
5918
5919# Default to --enable-multilib.
5920if test x${enable_multilib} = x ; then
5921 target_configargs="--enable-multilib ${target_configargs}"
5922fi
5923
5924# Pass --with-newlib if appropriate. Note that target_configdirs has
5925# changed from the earlier setting of with_newlib.
5926if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5927 target_configargs="--with-newlib ${target_configargs}"
5928fi
5929
95036d20
NN
5930# Different target subdirs use different values of certain variables
5931# (notably CXX). Worse, multilibs use *lots* of different values.
5932# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5933# it doesn't automatically accept command-line overrides of them.
5934# This means it's not safe for target subdirs to share a cache file,
5935# which is disgusting, but there you have it. Hopefully this can be
5936# fixed in future. It's still worthwhile to use a cache file for each
5937# directory. I think.
5938
ae380b45
MS
5939# Pass the appropriate --build, --host, --target and --cache-file arguments.
5940# We need to pass --target, as newer autoconf's requires consistency
5941# for target_alias and gcc doesn't manage it consistently.
4b900473 5942target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5943
a0da8069
NN
5944FLAGS_FOR_TARGET=
5945case " $target_configdirs " in
5946 *" newlib "*)
5947 case " $target_configargs " in
5948 *" --with-newlib "*)
5949 case "$target" in
5950 *-cygwin*)
564b43e5 5951 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
5952 esac
5953
5954 # If we're not building GCC, don't discard standard headers.
5955 if test -d ${srcdir}/gcc; then
5956 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5957
5958 if test "${build}" != "${host}"; then
5959 # On Canadian crosses, CC_FOR_TARGET will have already been set
5960 # by `configure', so we won't have an opportunity to add -Bgcc/
5961 # to it. This is right: we don't want to search that directory
5962 # for binaries, but we want the header files in there, so add
5963 # them explicitly.
b00612cc 5964 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5965
5966 # Someone might think of using the pre-installed headers on
5967 # Canadian crosses, in case the installed compiler is not fully
5968 # compatible with the compiler being built. In this case, it
5969 # would be better to flag an error than risking having
5970 # incompatible object files being constructed. We can't
5971 # guarantee that an error will be flagged, but let's hope the
5972 # compiler will do it, when presented with incompatible header
5973 # files.
5974 fi
5975 fi
5976
5977 case "${target}-${is_cross_compiler}" in
ec11bdc6 5978 i[3456789]86-*-linux*-no)
a0da8069
NN
5979 # Here host == target, so we don't need to build gcc,
5980 # so we don't want to discard standard headers.
5981 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5982 ;;
5983 *)
5984 # If we're building newlib, use its generic headers last, but search
5985 # for any libc-related directories first (so make it the last -B
5986 # switch).
5987 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
691bb5a1
DD
5988
5989 # If we're building libgloss, find the startup file, simulator library
5990 # and linker script.
5991 case " $target_configdirs " in
5992 *" libgloss "*)
5993 # Look for startup file, simulator library and maybe linker script.
5994 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5995 # Look for libnosys.a in case the target needs it.
5996 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5997 # Most targets have the linker script in the source directory.
5998 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5999 ;;
6000 esac
a0da8069
NN
6001 ;;
6002 esac
6003 ;;
6004 esac
6005 ;;
6006esac
45055374
CV
6007case "$target" in
6008*-mingw*)
6009 # Can't be handled as Cygwin above since Mingw does not use newlib.
6010 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' ;;
6011esac
a0da8069 6012
5fbad20a
DD
6013# Allow the user to override the flags for
6014# our build compiler if desired.
c66487f8
NC
6015if test x"${build}" = x"${host}" ; then
6016 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6017 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6018 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6019fi
5fbad20a 6020
a0da8069
NN
6021# On Canadian crosses, we'll be searching the right directories for
6022# the previously-installed cross compiler, so don't bother to add
6023# flags for directories within the install tree of the compiler
6024# being built; programs in there won't even run.
6025if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6026 # Search for pre-installed headers if nothing else fits.
bba45b8b 6027 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
6028fi
6029
6030if test "x${use_gnu_ld}" = x &&
6031 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6032 # Arrange for us to find uninstalled linker scripts.
b00612cc 6033 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
6034fi
6035
a481dbb7
DD
6036# Search for other target-specific linker scripts and such.
6037case "${target}" in
4e206d7e
DB
6038 mep*)
6039 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6040 ;;
6041esac
6042
a0da8069 6043# Makefile fragments.
3e707e94
PB
6044for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6045do
6046 eval fragval=\$$frag
6047 if test $fragval != /dev/null; then
6048 eval $frag=${srcdir}/$fragval
6049 fi
6050done
a0da8069
NN
6051
6052
6053
6054
6055
6056# Miscellanea: directories, flags, etc.
6057
6058
6059
6060
6061
6062
6063
6a9cf61e 6064# Build module lists & subconfigure args.
a0da8069
NN
6065
6066
6067
be01d343
PB
6068# Host module lists & subconfigure args.
6069
6070
6071
6072# Target module lists & subconfigure args.
6073
6074
6075
6076# Build tools.
6077
6078
6079
1576798e
PB
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
be01d343
PB
6094# Generate default definitions for YACC, M4, LEX and other programs that run
6095# on the build machine. These are used if the Makefile can't locate these
6096# programs in objdir.
6097MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6098
6099for ac_prog in 'bison -y' byacc yacc
6100do
c6b750e1 6101 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6102set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6103echo "$as_me:$LINENO: checking for $ac_word" >&5
6104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6105if test "${ac_cv_prog_YACC+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6107else
6108 if test -n "$YACC"; then
6109 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6110else
c6b750e1
DJ
6111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112for as_dir in $PATH
6113do
6114 IFS=$as_save_IFS
6115 test -z "$as_dir" && as_dir=.
6116 for ac_exec_ext in '' $ac_executable_extensions; do
6117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6118 ac_cv_prog_YACC="$ac_prog"
6119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 break 2
6121 fi
6122done
6123done
6124
be01d343
PB
6125fi
6126fi
c6b750e1 6127YACC=$ac_cv_prog_YACC
be01d343 6128if test -n "$YACC"; then
c6b750e1
DJ
6129 echo "$as_me:$LINENO: result: $YACC" >&5
6130echo "${ECHO_T}$YACC" >&6
be01d343 6131else
c6b750e1
DJ
6132 echo "$as_me:$LINENO: result: no" >&5
6133echo "${ECHO_T}no" >&6
be01d343
PB
6134fi
6135
c6b750e1 6136 test -n "$YACC" && break
be01d343
PB
6137done
6138test -n "$YACC" || YACC="$MISSING bison -y"
6139
6140case " $build_configdirs " in
6141 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6142 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6143esac
6144
6145for ac_prog in bison
6146do
c6b750e1 6147 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6148set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6149echo "$as_me:$LINENO: checking for $ac_word" >&5
6150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6151if test "${ac_cv_prog_BISON+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6153else
6154 if test -n "$BISON"; then
6155 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6156else
c6b750e1
DJ
6157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158for as_dir in $PATH
6159do
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6164 ac_cv_prog_BISON="$ac_prog"
6165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 break 2
6167 fi
6168done
6169done
6170
be01d343
PB
6171fi
6172fi
c6b750e1 6173BISON=$ac_cv_prog_BISON
be01d343 6174if test -n "$BISON"; then
c6b750e1
DJ
6175 echo "$as_me:$LINENO: result: $BISON" >&5
6176echo "${ECHO_T}$BISON" >&6
be01d343 6177else
c6b750e1
DJ
6178 echo "$as_me:$LINENO: result: no" >&5
6179echo "${ECHO_T}no" >&6
be01d343
PB
6180fi
6181
c6b750e1 6182 test -n "$BISON" && break
be01d343
PB
6183done
6184test -n "$BISON" || BISON="$MISSING bison"
6185
6186case " $build_configdirs " in
6187 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6188esac
6189
6190for ac_prog in gm4 gnum4 m4
6191do
c6b750e1 6192 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6193set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6194echo "$as_me:$LINENO: checking for $ac_word" >&5
6195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6196if test "${ac_cv_prog_M4+set}" = set; then
6197 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6198else
6199 if test -n "$M4"; then
6200 ac_cv_prog_M4="$M4" # Let the user override the test.
6201else
c6b750e1
DJ
6202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203for as_dir in $PATH
6204do
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6209 ac_cv_prog_M4="$ac_prog"
6210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 break 2
6212 fi
6213done
6214done
6215
be01d343
PB
6216fi
6217fi
c6b750e1 6218M4=$ac_cv_prog_M4
be01d343 6219if test -n "$M4"; then
c6b750e1
DJ
6220 echo "$as_me:$LINENO: result: $M4" >&5
6221echo "${ECHO_T}$M4" >&6
be01d343 6222else
c6b750e1
DJ
6223 echo "$as_me:$LINENO: result: no" >&5
6224echo "${ECHO_T}no" >&6
be01d343
PB
6225fi
6226
c6b750e1 6227 test -n "$M4" && break
be01d343
PB
6228done
6229test -n "$M4" || M4="$MISSING m4"
6230
6231case " $build_configdirs " in
6232 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6233esac
6234
6235for ac_prog in flex lex
6236do
c6b750e1 6237 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6238set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6239echo "$as_me:$LINENO: checking for $ac_word" >&5
6240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6241if test "${ac_cv_prog_LEX+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6243else
6244 if test -n "$LEX"; then
6245 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6246else
c6b750e1
DJ
6247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248for as_dir in $PATH
6249do
6250 IFS=$as_save_IFS
6251 test -z "$as_dir" && as_dir=.
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6254 ac_cv_prog_LEX="$ac_prog"
6255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 break 2
6257 fi
6258done
6259done
6260
be01d343
PB
6261fi
6262fi
c6b750e1 6263LEX=$ac_cv_prog_LEX
be01d343 6264if test -n "$LEX"; then
c6b750e1
DJ
6265 echo "$as_me:$LINENO: result: $LEX" >&5
6266echo "${ECHO_T}$LEX" >&6
be01d343 6267else
c6b750e1
DJ
6268 echo "$as_me:$LINENO: result: no" >&5
6269echo "${ECHO_T}no" >&6
be01d343
PB
6270fi
6271
c6b750e1 6272 test -n "$LEX" && break
be01d343
PB
6273done
6274test -n "$LEX" || LEX="$MISSING flex"
6275
6276case " $build_configdirs " in
6277 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6278 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6279esac
6280
6281for ac_prog in flex
6282do
c6b750e1 6283 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6284set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6285echo "$as_me:$LINENO: checking for $ac_word" >&5
6286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6287if test "${ac_cv_prog_FLEX+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6289else
6290 if test -n "$FLEX"; then
6291 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6292else
c6b750e1
DJ
6293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH
6295do
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300 ac_cv_prog_FLEX="$ac_prog"
6301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 break 2
6303 fi
6304done
6305done
6306
be01d343
PB
6307fi
6308fi
c6b750e1 6309FLEX=$ac_cv_prog_FLEX
be01d343 6310if test -n "$FLEX"; then
c6b750e1
DJ
6311 echo "$as_me:$LINENO: result: $FLEX" >&5
6312echo "${ECHO_T}$FLEX" >&6
be01d343 6313else
c6b750e1
DJ
6314 echo "$as_me:$LINENO: result: no" >&5
6315echo "${ECHO_T}no" >&6
be01d343
PB
6316fi
6317
c6b750e1 6318 test -n "$FLEX" && break
be01d343
PB
6319done
6320test -n "$FLEX" || FLEX="$MISSING flex"
6321
6322case " $build_configdirs " in
6323 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6324esac
6325
6326for ac_prog in makeinfo
6327do
c6b750e1 6328 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6329set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6330echo "$as_me:$LINENO: checking for $ac_word" >&5
6331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6332if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6334else
6335 if test -n "$MAKEINFO"; then
6336 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6337else
c6b750e1
DJ
6338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339for as_dir in $PATH
6340do
6341 IFS=$as_save_IFS
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6345 ac_cv_prog_MAKEINFO="$ac_prog"
6346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 break 2
6348 fi
6349done
6350done
6351
be01d343
PB
6352fi
6353fi
c6b750e1 6354MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6355if test -n "$MAKEINFO"; then
c6b750e1
DJ
6356 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6357echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6358else
c6b750e1
DJ
6359 echo "$as_me:$LINENO: result: no" >&5
6360echo "${ECHO_T}no" >&6
be01d343
PB
6361fi
6362
c6b750e1 6363 test -n "$MAKEINFO" && break
be01d343
PB
6364done
6365test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6366
6367case " $build_configdirs " in
6368 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6369 *)
6370
625a61cd 6371 # For an installed makeinfo, we require it to be from texinfo 4.6 or
be01d343
PB
6372 # higher, else we use the "missing" dummy.
6373 if ${MAKEINFO} --version \
625a61cd 6374 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
6375 :
6376 else
6377 MAKEINFO="$MISSING makeinfo"
6378 fi
6379 ;;
6380
6381esac
a0da8069 6382
be01d343 6383# FIXME: expect and dejagnu may become build tools?
a0da8069 6384
be01d343
PB
6385for ac_prog in expect
6386do
c6b750e1 6387 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6388set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6389echo "$as_me:$LINENO: checking for $ac_word" >&5
6390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6391if test "${ac_cv_prog_EXPECT+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6393else
6394 if test -n "$EXPECT"; then
6395 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6396else
c6b750e1
DJ
6397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398for as_dir in $PATH
6399do
6400 IFS=$as_save_IFS
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6404 ac_cv_prog_EXPECT="$ac_prog"
6405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 break 2
6407 fi
6408done
6409done
6410
be01d343
PB
6411fi
6412fi
c6b750e1 6413EXPECT=$ac_cv_prog_EXPECT
be01d343 6414if test -n "$EXPECT"; then
c6b750e1
DJ
6415 echo "$as_me:$LINENO: result: $EXPECT" >&5
6416echo "${ECHO_T}$EXPECT" >&6
be01d343 6417else
c6b750e1
DJ
6418 echo "$as_me:$LINENO: result: no" >&5
6419echo "${ECHO_T}no" >&6
be01d343 6420fi
a0da8069 6421
c6b750e1 6422 test -n "$EXPECT" && break
be01d343
PB
6423done
6424test -n "$EXPECT" || EXPECT="expect"
a0da8069 6425
be01d343
PB
6426case " $configdirs " in
6427 *" expect "*)
6428 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6429 ;;
6430esac
a0da8069 6431
be01d343
PB
6432for ac_prog in runtest
6433do
c6b750e1 6434 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6435set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6436echo "$as_me:$LINENO: checking for $ac_word" >&5
6437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6438if test "${ac_cv_prog_RUNTEST+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6440else
6441 if test -n "$RUNTEST"; then
6442 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6443else
c6b750e1
DJ
6444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445for as_dir in $PATH
6446do
6447 IFS=$as_save_IFS
6448 test -z "$as_dir" && as_dir=.
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6451 ac_cv_prog_RUNTEST="$ac_prog"
6452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 break 2
6454 fi
6455done
6456done
6457
be01d343
PB
6458fi
6459fi
c6b750e1 6460RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6461if test -n "$RUNTEST"; then
c6b750e1
DJ
6462 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6463echo "${ECHO_T}$RUNTEST" >&6
be01d343 6464else
c6b750e1
DJ
6465 echo "$as_me:$LINENO: result: no" >&5
6466echo "${ECHO_T}no" >&6
be01d343 6467fi
a0da8069 6468
c6b750e1 6469 test -n "$RUNTEST" && break
be01d343
PB
6470done
6471test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6472
be01d343
PB
6473case " $configdirs " in
6474 *" dejagnu "*)
6b89cc21 6475 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6476 ;;
6477esac
a0da8069
NN
6478
6479
a0da8069 6480# Host tools.
859789af
AC
6481ncn_tool_prefix=
6482test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6483ncn_target_tool_prefix=
6484test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6485
9a819804
AO
6486
6487
6488if test -n "$AR"; then
6489 ac_cv_prog_AR=$AR
6490elif test -n "$ac_cv_prog_AR"; then
6491 AR=$ac_cv_prog_AR
6492fi
6493
6494if test -n "$ac_cv_prog_AR"; then
6495 for ncn_progname in ar; do
6496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6497set dummy ${ncn_progname}; ac_word=$2
6498echo "$as_me:$LINENO: checking for $ac_word" >&5
6499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6500if test "${ac_cv_prog_AR+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6502else
6503 if test -n "$AR"; then
6504 ac_cv_prog_AR="$AR" # Let the user override the test.
6505else
6506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507for as_dir in $PATH
6508do
6509 IFS=$as_save_IFS
6510 test -z "$as_dir" && as_dir=.
6511 for ac_exec_ext in '' $ac_executable_extensions; do
6512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6513 ac_cv_prog_AR="${ncn_progname}"
6514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 break 2
6516 fi
6517done
6518done
6519
6520fi
6521fi
6522AR=$ac_cv_prog_AR
6523if test -n "$AR"; then
6524 echo "$as_me:$LINENO: result: $AR" >&5
6525echo "${ECHO_T}$AR" >&6
6526else
6527 echo "$as_me:$LINENO: result: no" >&5
6528echo "${ECHO_T}no" >&6
6529fi
6530
6531 done
6532fi
6533
6534for ncn_progname in ar; do
05cbd757
PB
6535 if test -n "$ncn_tool_prefix"; then
6536 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6537set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6538echo "$as_me:$LINENO: checking for $ac_word" >&5
6539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6540if test "${ac_cv_prog_AR+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6542else
6543 if test -n "$AR"; then
6544 ac_cv_prog_AR="$AR" # Let the user override the test.
6545else
c6b750e1
DJ
6546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547for as_dir in $PATH
6548do
6549 IFS=$as_save_IFS
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6553 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 break 2
6556 fi
6557done
6558done
6559
859789af
AC
6560fi
6561fi
c6b750e1 6562AR=$ac_cv_prog_AR
859789af 6563if test -n "$AR"; then
c6b750e1
DJ
6564 echo "$as_me:$LINENO: result: $AR" >&5
6565echo "${ECHO_T}$AR" >&6
859789af 6566else
c6b750e1
DJ
6567 echo "$as_me:$LINENO: result: no" >&5
6568echo "${ECHO_T}no" >&6
859789af
AC
6569fi
6570
05cbd757
PB
6571 fi
6572 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6574set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6575echo "$as_me:$LINENO: checking for $ac_word" >&5
6576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6577if test "${ac_cv_prog_AR+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6579else
05cbd757
PB
6580 if test -n "$AR"; then
6581 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6582else
c6b750e1
DJ
6583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584for as_dir in $PATH
6585do
6586 IFS=$as_save_IFS
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6590 ac_cv_prog_AR="${ncn_progname}"
6591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 break 2
6593 fi
6594done
6595done
6596
859789af
AC
6597fi
6598fi
c6b750e1 6599AR=$ac_cv_prog_AR
05cbd757 6600if test -n "$AR"; then
c6b750e1
DJ
6601 echo "$as_me:$LINENO: result: $AR" >&5
6602echo "${ECHO_T}$AR" >&6
859789af 6603else
c6b750e1
DJ
6604 echo "$as_me:$LINENO: result: no" >&5
6605echo "${ECHO_T}no" >&6
859789af 6606fi
c6b750e1 6607
05cbd757
PB
6608 fi
6609 test -n "$ac_cv_prog_AR" && break
6610done
6611
6612if test -z "$ac_cv_prog_AR" ; then
6613 set dummy ar
6614 if test $build = $host ; then
6615 AR="$2"
859789af 6616 else
05cbd757 6617 AR="${ncn_tool_prefix}$2"
859789af 6618 fi
859789af
AC
6619fi
6620
9a819804
AO
6621
6622
6623if test -n "$AS"; then
6624 ac_cv_prog_AS=$AS
6625elif test -n "$ac_cv_prog_AS"; then
6626 AS=$ac_cv_prog_AS
6627fi
6628
6629if test -n "$ac_cv_prog_AS"; then
6630 for ncn_progname in as; do
6631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6632set dummy ${ncn_progname}; ac_word=$2
6633echo "$as_me:$LINENO: checking for $ac_word" >&5
6634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6635if test "${ac_cv_prog_AS+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6637else
6638 if test -n "$AS"; then
6639 ac_cv_prog_AS="$AS" # Let the user override the test.
6640else
6641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642for as_dir in $PATH
6643do
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6648 ac_cv_prog_AS="${ncn_progname}"
6649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 break 2
6651 fi
6652done
6653done
6654
6655fi
6656fi
6657AS=$ac_cv_prog_AS
6658if test -n "$AS"; then
6659 echo "$as_me:$LINENO: result: $AS" >&5
6660echo "${ECHO_T}$AS" >&6
6661else
6662 echo "$as_me:$LINENO: result: no" >&5
6663echo "${ECHO_T}no" >&6
6664fi
6665
6666 done
6667fi
6668
6669for ncn_progname in as; do
05cbd757
PB
6670 if test -n "$ncn_tool_prefix"; then
6671 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6672set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6673echo "$as_me:$LINENO: checking for $ac_word" >&5
6674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6675if test "${ac_cv_prog_AS+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6677else
6678 if test -n "$AS"; then
6679 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6680else
6681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682for as_dir in $PATH
6683do
6684 IFS=$as_save_IFS
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6688 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 break 2
6691 fi
6692done
6693done
6694
859789af
AC
6695fi
6696fi
c6b750e1 6697AS=$ac_cv_prog_AS
859789af 6698if test -n "$AS"; then
c6b750e1
DJ
6699 echo "$as_me:$LINENO: result: $AS" >&5
6700echo "${ECHO_T}$AS" >&6
859789af 6701else
c6b750e1
DJ
6702 echo "$as_me:$LINENO: result: no" >&5
6703echo "${ECHO_T}no" >&6
859789af
AC
6704fi
6705
05cbd757
PB
6706 fi
6707 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6708 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6709set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6710echo "$as_me:$LINENO: checking for $ac_word" >&5
6711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6712if test "${ac_cv_prog_AS+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6714else
05cbd757
PB
6715 if test -n "$AS"; then
6716 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6717else
c6b750e1
DJ
6718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719for as_dir in $PATH
6720do
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725 ac_cv_prog_AS="${ncn_progname}"
6726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729done
6730done
6731
859789af
AC
6732fi
6733fi
c6b750e1 6734AS=$ac_cv_prog_AS
05cbd757 6735if test -n "$AS"; then
c6b750e1
DJ
6736 echo "$as_me:$LINENO: result: $AS" >&5
6737echo "${ECHO_T}$AS" >&6
859789af 6738else
c6b750e1
DJ
6739 echo "$as_me:$LINENO: result: no" >&5
6740echo "${ECHO_T}no" >&6
859789af 6741fi
c6b750e1 6742
05cbd757
PB
6743 fi
6744 test -n "$ac_cv_prog_AS" && break
6745done
6746
6747if test -z "$ac_cv_prog_AS" ; then
6748 set dummy as
6749 if test $build = $host ; then
6750 AS="$2"
859789af 6751 else
05cbd757 6752 AS="${ncn_tool_prefix}$2"
859789af 6753 fi
859789af
AC
6754fi
6755
9a819804
AO
6756
6757
6758if test -n "$DLLTOOL"; then
6759 ac_cv_prog_DLLTOOL=$DLLTOOL
6760elif test -n "$ac_cv_prog_DLLTOOL"; then
6761 DLLTOOL=$ac_cv_prog_DLLTOOL
6762fi
6763
6764if test -n "$ac_cv_prog_DLLTOOL"; then
6765 for ncn_progname in dlltool; do
6766 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6767set dummy ${ncn_progname}; ac_word=$2
6768echo "$as_me:$LINENO: checking for $ac_word" >&5
6769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6770if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6772else
6773 if test -n "$DLLTOOL"; then
6774 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6775else
6776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777for as_dir in $PATH
6778do
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6783 ac_cv_prog_DLLTOOL="${ncn_progname}"
6784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 break 2
6786 fi
6787done
6788done
6789
6790fi
6791fi
6792DLLTOOL=$ac_cv_prog_DLLTOOL
6793if test -n "$DLLTOOL"; then
6794 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6795echo "${ECHO_T}$DLLTOOL" >&6
6796else
6797 echo "$as_me:$LINENO: result: no" >&5
6798echo "${ECHO_T}no" >&6
6799fi
6800
6801 done
6802fi
6803
6804for ncn_progname in dlltool; do
05cbd757
PB
6805 if test -n "$ncn_tool_prefix"; then
6806 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6807set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6808echo "$as_me:$LINENO: checking for $ac_word" >&5
6809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6810if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6812else
6813 if test -n "$DLLTOOL"; then
6814 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6815else
c6b750e1
DJ
6816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817for as_dir in $PATH
6818do
6819 IFS=$as_save_IFS
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6823 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 break 2
6826 fi
6827done
6828done
6829
859789af
AC
6830fi
6831fi
c6b750e1 6832DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6833if test -n "$DLLTOOL"; then
c6b750e1
DJ
6834 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6835echo "${ECHO_T}$DLLTOOL" >&6
859789af 6836else
c6b750e1
DJ
6837 echo "$as_me:$LINENO: result: no" >&5
6838echo "${ECHO_T}no" >&6
859789af
AC
6839fi
6840
05cbd757
PB
6841 fi
6842 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6843 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6844set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6845echo "$as_me:$LINENO: checking for $ac_word" >&5
6846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6847if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6849else
05cbd757
PB
6850 if test -n "$DLLTOOL"; then
6851 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6852else
c6b750e1
DJ
6853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854for as_dir in $PATH
6855do
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6860 ac_cv_prog_DLLTOOL="${ncn_progname}"
6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6863 fi
6864done
6865done
6866
859789af
AC
6867fi
6868fi
c6b750e1 6869DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6870if test -n "$DLLTOOL"; then
c6b750e1
DJ
6871 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6872echo "${ECHO_T}$DLLTOOL" >&6
859789af 6873else
c6b750e1
DJ
6874 echo "$as_me:$LINENO: result: no" >&5
6875echo "${ECHO_T}no" >&6
859789af 6876fi
c6b750e1 6877
05cbd757
PB
6878 fi
6879 test -n "$ac_cv_prog_DLLTOOL" && break
6880done
6881
6882if test -z "$ac_cv_prog_DLLTOOL" ; then
6883 set dummy dlltool
6884 if test $build = $host ; then
6885 DLLTOOL="$2"
859789af 6886 else
05cbd757 6887 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6888 fi
859789af
AC
6889fi
6890
9a819804
AO
6891
6892
6893if test -n "$LD"; then
6894 ac_cv_prog_LD=$LD
6895elif test -n "$ac_cv_prog_LD"; then
6896 LD=$ac_cv_prog_LD
6897fi
6898
6899if test -n "$ac_cv_prog_LD"; then
6900 for ncn_progname in ld; do
6901 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6902set dummy ${ncn_progname}; ac_word=$2
6903echo "$as_me:$LINENO: checking for $ac_word" >&5
6904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6905if test "${ac_cv_prog_LD+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6907else
6908 if test -n "$LD"; then
6909 ac_cv_prog_LD="$LD" # Let the user override the test.
6910else
6911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912for as_dir in $PATH
6913do
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6918 ac_cv_prog_LD="${ncn_progname}"
6919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 break 2
6921 fi
6922done
6923done
6924
6925fi
6926fi
6927LD=$ac_cv_prog_LD
6928if test -n "$LD"; then
6929 echo "$as_me:$LINENO: result: $LD" >&5
6930echo "${ECHO_T}$LD" >&6
6931else
6932 echo "$as_me:$LINENO: result: no" >&5
6933echo "${ECHO_T}no" >&6
6934fi
6935
6936 done
6937fi
6938
6939for ncn_progname in ld; do
05cbd757
PB
6940 if test -n "$ncn_tool_prefix"; then
6941 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6942set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6943echo "$as_me:$LINENO: checking for $ac_word" >&5
6944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6945if test "${ac_cv_prog_LD+set}" = set; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6947else
6948 if test -n "$LD"; then
6949 ac_cv_prog_LD="$LD" # Let the user override the test.
6950else
c6b750e1
DJ
6951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952for as_dir in $PATH
6953do
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6958 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
6961 fi
6962done
6963done
6964
859789af
AC
6965fi
6966fi
c6b750e1 6967LD=$ac_cv_prog_LD
859789af 6968if test -n "$LD"; then
c6b750e1
DJ
6969 echo "$as_me:$LINENO: result: $LD" >&5
6970echo "${ECHO_T}$LD" >&6
859789af 6971else
c6b750e1
DJ
6972 echo "$as_me:$LINENO: result: no" >&5
6973echo "${ECHO_T}no" >&6
859789af
AC
6974fi
6975
05cbd757
PB
6976 fi
6977 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6979set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6980echo "$as_me:$LINENO: checking for $ac_word" >&5
6981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6982if test "${ac_cv_prog_LD+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6984else
05cbd757
PB
6985 if test -n "$LD"; then
6986 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6987else
c6b750e1
DJ
6988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989for as_dir in $PATH
6990do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6995 ac_cv_prog_LD="${ncn_progname}"
6996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6998 fi
6999done
7000done
7001
859789af
AC
7002fi
7003fi
c6b750e1 7004LD=$ac_cv_prog_LD
05cbd757 7005if test -n "$LD"; then
c6b750e1
DJ
7006 echo "$as_me:$LINENO: result: $LD" >&5
7007echo "${ECHO_T}$LD" >&6
859789af 7008else
c6b750e1
DJ
7009 echo "$as_me:$LINENO: result: no" >&5
7010echo "${ECHO_T}no" >&6
859789af 7011fi
c6b750e1 7012
05cbd757
PB
7013 fi
7014 test -n "$ac_cv_prog_LD" && break
7015done
7016
7017if test -z "$ac_cv_prog_LD" ; then
7018 set dummy ld
7019 if test $build = $host ; then
7020 LD="$2"
859789af 7021 else
05cbd757 7022 LD="${ncn_tool_prefix}$2"
859789af 7023 fi
859789af
AC
7024fi
7025
9a819804
AO
7026
7027
7028if test -n "$LIPO"; then
7029 ac_cv_prog_LIPO=$LIPO
7030elif test -n "$ac_cv_prog_LIPO"; then
7031 LIPO=$ac_cv_prog_LIPO
7032fi
7033
7034if test -n "$ac_cv_prog_LIPO"; then
7035 for ncn_progname in lipo; do
7036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7037set dummy ${ncn_progname}; ac_word=$2
7038echo "$as_me:$LINENO: checking for $ac_word" >&5
7039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7040if test "${ac_cv_prog_LIPO+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7042else
7043 if test -n "$LIPO"; then
7044 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7045else
7046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047for as_dir in $PATH
7048do
7049 IFS=$as_save_IFS
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7053 ac_cv_prog_LIPO="${ncn_progname}"
7054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 break 2
7056 fi
7057done
7058done
7059
7060fi
7061fi
7062LIPO=$ac_cv_prog_LIPO
7063if test -n "$LIPO"; then
7064 echo "$as_me:$LINENO: result: $LIPO" >&5
7065echo "${ECHO_T}$LIPO" >&6
7066else
7067 echo "$as_me:$LINENO: result: no" >&5
7068echo "${ECHO_T}no" >&6
7069fi
7070
7071 done
7072fi
7073
7074for ncn_progname in lipo; do
be01d343
PB
7075 if test -n "$ncn_tool_prefix"; then
7076 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7077set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7078echo "$as_me:$LINENO: checking for $ac_word" >&5
7079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7080if test "${ac_cv_prog_LIPO+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7082else
7083 if test -n "$LIPO"; then
7084 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7085else
c6b750e1
DJ
7086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087for as_dir in $PATH
7088do
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 break 2
7096 fi
7097done
7098done
7099
be01d343
PB
7100fi
7101fi
c6b750e1 7102LIPO=$ac_cv_prog_LIPO
be01d343 7103if test -n "$LIPO"; then
c6b750e1
DJ
7104 echo "$as_me:$LINENO: result: $LIPO" >&5
7105echo "${ECHO_T}$LIPO" >&6
be01d343 7106else
c6b750e1
DJ
7107 echo "$as_me:$LINENO: result: no" >&5
7108echo "${ECHO_T}no" >&6
be01d343
PB
7109fi
7110
7111 fi
7112 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7114set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7115echo "$as_me:$LINENO: checking for $ac_word" >&5
7116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7117if test "${ac_cv_prog_LIPO+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7119else
7120 if test -n "$LIPO"; then
7121 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7122else
c6b750e1
DJ
7123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124for as_dir in $PATH
7125do
7126 IFS=$as_save_IFS
7127 test -z "$as_dir" && as_dir=.
7128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7130 ac_cv_prog_LIPO="${ncn_progname}"
7131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 break 2
7133 fi
7134done
7135done
7136
be01d343
PB
7137fi
7138fi
c6b750e1 7139LIPO=$ac_cv_prog_LIPO
be01d343 7140if test -n "$LIPO"; then
c6b750e1
DJ
7141 echo "$as_me:$LINENO: result: $LIPO" >&5
7142echo "${ECHO_T}$LIPO" >&6
be01d343 7143else
c6b750e1
DJ
7144 echo "$as_me:$LINENO: result: no" >&5
7145echo "${ECHO_T}no" >&6
be01d343 7146fi
c6b750e1 7147
be01d343
PB
7148 fi
7149 test -n "$ac_cv_prog_LIPO" && break
7150done
7151
7152if test -z "$ac_cv_prog_LIPO" ; then
7153 set dummy lipo
7154 if test $build = $host ; then
7155 LIPO="$2"
7156 else
7157 LIPO="${ncn_tool_prefix}$2"
7158 fi
7159fi
7160
9a819804
AO
7161
7162
7163if test -n "$NM"; then
7164 ac_cv_prog_NM=$NM
7165elif test -n "$ac_cv_prog_NM"; then
7166 NM=$ac_cv_prog_NM
7167fi
7168
7169if test -n "$ac_cv_prog_NM"; then
7170 for ncn_progname in nm; do
7171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7172set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7173echo "$as_me:$LINENO: checking for $ac_word" >&5
7174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7175if test "${ac_cv_prog_NM+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7177else
7178 if test -n "$NM"; then
7179 ac_cv_prog_NM="$NM" # Let the user override the test.
7180else
c6b750e1
DJ
7181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182for as_dir in $PATH
7183do
7184 IFS=$as_save_IFS
7185 test -z "$as_dir" && as_dir=.
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7188 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 break 2
7191 fi
7192done
7193done
7194
859789af
AC
7195fi
7196fi
c6b750e1 7197NM=$ac_cv_prog_NM
859789af 7198if test -n "$NM"; then
c6b750e1
DJ
7199 echo "$as_me:$LINENO: result: $NM" >&5
7200echo "${ECHO_T}$NM" >&6
859789af 7201else
c6b750e1
DJ
7202 echo "$as_me:$LINENO: result: no" >&5
7203echo "${ECHO_T}no" >&6
859789af
AC
7204fi
7205
9a819804
AO
7206 done
7207fi
7208
7209for ncn_progname in nm; do
7210 if test -n "$ncn_tool_prefix"; then
7211 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7212set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7213echo "$as_me:$LINENO: checking for $ac_word" >&5
7214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7215if test "${ac_cv_prog_NM+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7217else
05cbd757
PB
7218 if test -n "$NM"; then
7219 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7220else
c6b750e1
DJ
7221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222for as_dir in $PATH
7223do
7224 IFS=$as_save_IFS
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7228 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 break 2
7231 fi
7232done
7233done
7234
859789af
AC
7235fi
7236fi
c6b750e1 7237NM=$ac_cv_prog_NM
05cbd757 7238if test -n "$NM"; then
c6b750e1
DJ
7239 echo "$as_me:$LINENO: result: $NM" >&5
7240echo "${ECHO_T}$NM" >&6
859789af 7241else
c6b750e1
DJ
7242 echo "$as_me:$LINENO: result: no" >&5
7243echo "${ECHO_T}no" >&6
859789af 7244fi
c6b750e1 7245
05cbd757 7246 fi
9a819804
AO
7247 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7249set dummy ${ncn_progname}; ac_word=$2
7250echo "$as_me:$LINENO: checking for $ac_word" >&5
7251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7252if test "${ac_cv_prog_NM+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7254else
7255 if test -n "$NM"; then
7256 ac_cv_prog_NM="$NM" # Let the user override the test.
7257else
7258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259for as_dir in $PATH
7260do
7261 IFS=$as_save_IFS
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7265 ac_cv_prog_NM="${ncn_progname}"
7266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 break 2
7268 fi
7269done
7270done
7271
7272fi
7273fi
7274NM=$ac_cv_prog_NM
7275if test -n "$NM"; then
7276 echo "$as_me:$LINENO: result: $NM" >&5
7277echo "${ECHO_T}$NM" >&6
7278else
7279 echo "$as_me:$LINENO: result: no" >&5
7280echo "${ECHO_T}no" >&6
7281fi
7282
7283 fi
7284 test -n "$ac_cv_prog_NM" && break
7285done
7286
7287if test -z "$ac_cv_prog_NM" ; then
7288 set dummy nm
7289 if test $build = $host ; then
7290 NM="$2"
7291 else
7292 NM="${ncn_tool_prefix}$2"
7293 fi
7294fi
7295
7296
7297
7298if test -n "$RANLIB"; then
7299 ac_cv_prog_RANLIB=$RANLIB
7300elif test -n "$ac_cv_prog_RANLIB"; then
7301 RANLIB=$ac_cv_prog_RANLIB
7302fi
7303
7304if test -n "$ac_cv_prog_RANLIB"; then
7305 for ncn_progname in ranlib; do
7306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7307set dummy ${ncn_progname}; ac_word=$2
7308echo "$as_me:$LINENO: checking for $ac_word" >&5
7309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7310if test "${ac_cv_prog_RANLIB+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7312else
7313 if test -n "$RANLIB"; then
7314 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7315else
7316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317for as_dir in $PATH
7318do
7319 IFS=$as_save_IFS
7320 test -z "$as_dir" && as_dir=.
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7323 ac_cv_prog_RANLIB="${ncn_progname}"
7324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7325 break 2
7326 fi
7327done
7328done
7329
7330fi
7331fi
7332RANLIB=$ac_cv_prog_RANLIB
7333if test -n "$RANLIB"; then
7334 echo "$as_me:$LINENO: result: $RANLIB" >&5
7335echo "${ECHO_T}$RANLIB" >&6
7336else
7337 echo "$as_me:$LINENO: result: no" >&5
7338echo "${ECHO_T}no" >&6
7339fi
7340
7341 done
7342fi
859789af 7343
9a819804 7344for ncn_progname in ranlib; do
05cbd757
PB
7345 if test -n "$ncn_tool_prefix"; then
7346 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7347set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7348echo "$as_me:$LINENO: checking for $ac_word" >&5
7349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7350if test "${ac_cv_prog_RANLIB+set}" = set; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7352else
7353 if test -n "$RANLIB"; then
7354 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7355else
c6b750e1
DJ
7356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357for as_dir in $PATH
7358do
7359 IFS=$as_save_IFS
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7363 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 break 2
7366 fi
7367done
7368done
7369
859789af
AC
7370fi
7371fi
c6b750e1 7372RANLIB=$ac_cv_prog_RANLIB
859789af 7373if test -n "$RANLIB"; then
c6b750e1
DJ
7374 echo "$as_me:$LINENO: result: $RANLIB" >&5
7375echo "${ECHO_T}$RANLIB" >&6
859789af 7376else
c6b750e1
DJ
7377 echo "$as_me:$LINENO: result: no" >&5
7378echo "${ECHO_T}no" >&6
859789af
AC
7379fi
7380
05cbd757
PB
7381 fi
7382 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7383 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7384set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7385echo "$as_me:$LINENO: checking for $ac_word" >&5
7386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7387if test "${ac_cv_prog_RANLIB+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7389else
05cbd757
PB
7390 if test -n "$RANLIB"; then
7391 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7392else
c6b750e1
DJ
7393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394for as_dir in $PATH
7395do
7396 IFS=$as_save_IFS
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7400 ac_cv_prog_RANLIB="${ncn_progname}"
7401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 break 2
7403 fi
7404done
7405done
7406
859789af
AC
7407fi
7408fi
c6b750e1 7409RANLIB=$ac_cv_prog_RANLIB
05cbd757 7410if test -n "$RANLIB"; then
c6b750e1
DJ
7411 echo "$as_me:$LINENO: result: $RANLIB" >&5
7412echo "${ECHO_T}$RANLIB" >&6
859789af 7413else
c6b750e1
DJ
7414 echo "$as_me:$LINENO: result: no" >&5
7415echo "${ECHO_T}no" >&6
859789af 7416fi
c6b750e1 7417
859789af 7418 fi
05cbd757
PB
7419 test -n "$ac_cv_prog_RANLIB" && break
7420done
7421
7422if test -z "$ac_cv_prog_RANLIB" ; then
7423 RANLIB=":"
859789af
AC
7424fi
7425
9a819804
AO
7426
7427
7428if test -n "$STRIP"; then
7429 ac_cv_prog_STRIP=$STRIP
7430elif test -n "$ac_cv_prog_STRIP"; then
7431 STRIP=$ac_cv_prog_STRIP
7432fi
7433
7434if test -n "$ac_cv_prog_STRIP"; then
7435 for ncn_progname in strip; do
7436 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7437set dummy ${ncn_progname}; ac_word=$2
7438echo "$as_me:$LINENO: checking for $ac_word" >&5
7439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7440if test "${ac_cv_prog_STRIP+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7442else
7443 if test -n "$STRIP"; then
7444 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7445else
7446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447for as_dir in $PATH
7448do
7449 IFS=$as_save_IFS
7450 test -z "$as_dir" && as_dir=.
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7453 ac_cv_prog_STRIP="${ncn_progname}"
7454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 break 2
7456 fi
7457done
7458done
7459
7460fi
7461fi
7462STRIP=$ac_cv_prog_STRIP
7463if test -n "$STRIP"; then
7464 echo "$as_me:$LINENO: result: $STRIP" >&5
7465echo "${ECHO_T}$STRIP" >&6
7466else
7467 echo "$as_me:$LINENO: result: no" >&5
7468echo "${ECHO_T}no" >&6
7469fi
7470
7471 done
7472fi
7473
7474for ncn_progname in strip; do
be01d343
PB
7475 if test -n "$ncn_tool_prefix"; then
7476 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7477set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7478echo "$as_me:$LINENO: checking for $ac_word" >&5
7479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7480if test "${ac_cv_prog_STRIP+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7482else
7483 if test -n "$STRIP"; then
7484 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7485else
c6b750e1
DJ
7486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487for as_dir in $PATH
7488do
7489 IFS=$as_save_IFS
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 break 2
7496 fi
7497done
7498done
7499
be01d343
PB
7500fi
7501fi
c6b750e1 7502STRIP=$ac_cv_prog_STRIP
be01d343 7503if test -n "$STRIP"; then
c6b750e1
DJ
7504 echo "$as_me:$LINENO: result: $STRIP" >&5
7505echo "${ECHO_T}$STRIP" >&6
be01d343 7506else
c6b750e1
DJ
7507 echo "$as_me:$LINENO: result: no" >&5
7508echo "${ECHO_T}no" >&6
be01d343
PB
7509fi
7510
7511 fi
7512 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7514set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7515echo "$as_me:$LINENO: checking for $ac_word" >&5
7516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7517if test "${ac_cv_prog_STRIP+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7519else
7520 if test -n "$STRIP"; then
7521 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7522else
c6b750e1
DJ
7523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524for as_dir in $PATH
7525do
7526 IFS=$as_save_IFS
7527 test -z "$as_dir" && as_dir=.
7528 for ac_exec_ext in '' $ac_executable_extensions; do
7529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7530 ac_cv_prog_STRIP="${ncn_progname}"
7531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7532 break 2
7533 fi
7534done
7535done
7536
be01d343
PB
7537fi
7538fi
c6b750e1 7539STRIP=$ac_cv_prog_STRIP
be01d343 7540if test -n "$STRIP"; then
c6b750e1
DJ
7541 echo "$as_me:$LINENO: result: $STRIP" >&5
7542echo "${ECHO_T}$STRIP" >&6
be01d343 7543else
c6b750e1
DJ
7544 echo "$as_me:$LINENO: result: no" >&5
7545echo "${ECHO_T}no" >&6
be01d343 7546fi
c6b750e1 7547
be01d343
PB
7548 fi
7549 test -n "$ac_cv_prog_STRIP" && break
7550done
7551
7552if test -z "$ac_cv_prog_STRIP" ; then
7553 STRIP=":"
7554fi
7555
9a819804
AO
7556
7557
7558if test -n "$WINDRES"; then
7559 ac_cv_prog_WINDRES=$WINDRES
7560elif test -n "$ac_cv_prog_WINDRES"; then
7561 WINDRES=$ac_cv_prog_WINDRES
7562fi
7563
7564if test -n "$ac_cv_prog_WINDRES"; then
7565 for ncn_progname in windres; do
7566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7567set dummy ${ncn_progname}; ac_word=$2
7568echo "$as_me:$LINENO: checking for $ac_word" >&5
7569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7570if test "${ac_cv_prog_WINDRES+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7572else
7573 if test -n "$WINDRES"; then
7574 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7575else
7576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577for as_dir in $PATH
7578do
7579 IFS=$as_save_IFS
7580 test -z "$as_dir" && as_dir=.
7581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7583 ac_cv_prog_WINDRES="${ncn_progname}"
7584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 break 2
7586 fi
7587done
7588done
7589
7590fi
7591fi
7592WINDRES=$ac_cv_prog_WINDRES
7593if test -n "$WINDRES"; then
7594 echo "$as_me:$LINENO: result: $WINDRES" >&5
7595echo "${ECHO_T}$WINDRES" >&6
7596else
7597 echo "$as_me:$LINENO: result: no" >&5
7598echo "${ECHO_T}no" >&6
7599fi
7600
7601 done
7602fi
7603
7604for ncn_progname in windres; do
05cbd757
PB
7605 if test -n "$ncn_tool_prefix"; then
7606 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7607set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7608echo "$as_me:$LINENO: checking for $ac_word" >&5
7609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7610if test "${ac_cv_prog_WINDRES+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7612else
7613 if test -n "$WINDRES"; then
7614 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7615else
c6b750e1
DJ
7616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617for as_dir in $PATH
7618do
7619 IFS=$as_save_IFS
7620 test -z "$as_dir" && as_dir=.
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7623 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 break 2
7626 fi
7627done
7628done
7629
859789af
AC
7630fi
7631fi
c6b750e1 7632WINDRES=$ac_cv_prog_WINDRES
859789af 7633if test -n "$WINDRES"; then
c6b750e1
DJ
7634 echo "$as_me:$LINENO: result: $WINDRES" >&5
7635echo "${ECHO_T}$WINDRES" >&6
859789af 7636else
c6b750e1
DJ
7637 echo "$as_me:$LINENO: result: no" >&5
7638echo "${ECHO_T}no" >&6
859789af
AC
7639fi
7640
05cbd757
PB
7641 fi
7642 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7643 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7644set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7645echo "$as_me:$LINENO: checking for $ac_word" >&5
7646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7647if test "${ac_cv_prog_WINDRES+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7649else
05cbd757
PB
7650 if test -n "$WINDRES"; then
7651 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7652else
c6b750e1
DJ
7653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654for as_dir in $PATH
7655do
7656 IFS=$as_save_IFS
7657 test -z "$as_dir" && as_dir=.
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7660 ac_cv_prog_WINDRES="${ncn_progname}"
7661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7662 break 2
7663 fi
7664done
7665done
7666
859789af
AC
7667fi
7668fi
c6b750e1 7669WINDRES=$ac_cv_prog_WINDRES
05cbd757 7670if test -n "$WINDRES"; then
c6b750e1
DJ
7671 echo "$as_me:$LINENO: result: $WINDRES" >&5
7672echo "${ECHO_T}$WINDRES" >&6
859789af 7673else
c6b750e1
DJ
7674 echo "$as_me:$LINENO: result: no" >&5
7675echo "${ECHO_T}no" >&6
859789af 7676fi
c6b750e1 7677
05cbd757
PB
7678 fi
7679 test -n "$ac_cv_prog_WINDRES" && break
7680done
7681
7682if test -z "$ac_cv_prog_WINDRES" ; then
7683 set dummy windres
7684 if test $build = $host ; then
7685 WINDRES="$2"
859789af 7686 else
05cbd757 7687 WINDRES="${ncn_tool_prefix}$2"
859789af 7688 fi
859789af
AC
7689fi
7690
9a819804
AO
7691
7692
0c24b341
NC
7693if test -n "$WINDMC"; then
7694 ac_cv_prog_WINDMC=$WINDMC
7695elif test -n "$ac_cv_prog_WINDMC"; then
7696 WINDMC=$ac_cv_prog_WINDMC
7697fi
7698
7699if test -n "$ac_cv_prog_WINDMC"; then
7700 for ncn_progname in windmc; do
7701 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7702set dummy ${ncn_progname}; ac_word=$2
7703echo "$as_me:$LINENO: checking for $ac_word" >&5
7704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7705if test "${ac_cv_prog_WINDMC+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7707else
7708 if test -n "$WINDMC"; then
7709 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7710else
7711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712for as_dir in $PATH
7713do
7714 IFS=$as_save_IFS
7715 test -z "$as_dir" && as_dir=.
7716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7718 ac_cv_prog_WINDMC="${ncn_progname}"
7719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7720 break 2
7721 fi
7722done
7723done
7724
7725fi
7726fi
7727WINDMC=$ac_cv_prog_WINDMC
7728if test -n "$WINDMC"; then
7729 echo "$as_me:$LINENO: result: $WINDMC" >&5
7730echo "${ECHO_T}$WINDMC" >&6
7731else
7732 echo "$as_me:$LINENO: result: no" >&5
7733echo "${ECHO_T}no" >&6
7734fi
7735
7736 done
7737fi
7738
7739for ncn_progname in windmc; do
7740 if test -n "$ncn_tool_prefix"; then
7741 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7742set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7743echo "$as_me:$LINENO: checking for $ac_word" >&5
7744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7745if test "${ac_cv_prog_WINDMC+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747else
7748 if test -n "$WINDMC"; then
7749 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7750else
7751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752for as_dir in $PATH
7753do
7754 IFS=$as_save_IFS
7755 test -z "$as_dir" && as_dir=.
7756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7760 break 2
7761 fi
7762done
7763done
7764
7765fi
7766fi
7767WINDMC=$ac_cv_prog_WINDMC
7768if test -n "$WINDMC"; then
7769 echo "$as_me:$LINENO: result: $WINDMC" >&5
7770echo "${ECHO_T}$WINDMC" >&6
7771else
7772 echo "$as_me:$LINENO: result: no" >&5
7773echo "${ECHO_T}no" >&6
7774fi
7775
7776 fi
7777 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7779set dummy ${ncn_progname}; ac_word=$2
7780echo "$as_me:$LINENO: checking for $ac_word" >&5
7781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7782if test "${ac_cv_prog_WINDMC+set}" = set; then
7783 echo $ECHO_N "(cached) $ECHO_C" >&6
7784else
7785 if test -n "$WINDMC"; then
7786 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7787else
7788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789for as_dir in $PATH
7790do
7791 IFS=$as_save_IFS
7792 test -z "$as_dir" && as_dir=.
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7795 ac_cv_prog_WINDMC="${ncn_progname}"
7796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 break 2
7798 fi
7799done
7800done
7801
7802fi
7803fi
7804WINDMC=$ac_cv_prog_WINDMC
7805if test -n "$WINDMC"; then
7806 echo "$as_me:$LINENO: result: $WINDMC" >&5
7807echo "${ECHO_T}$WINDMC" >&6
7808else
7809 echo "$as_me:$LINENO: result: no" >&5
7810echo "${ECHO_T}no" >&6
7811fi
7812
7813 fi
7814 test -n "$ac_cv_prog_WINDMC" && break
7815done
7816
7817if test -z "$ac_cv_prog_WINDMC" ; then
7818 set dummy windmc
7819 if test $build = $host ; then
7820 WINDMC="$2"
7821 else
7822 WINDMC="${ncn_tool_prefix}$2"
7823 fi
7824fi
7825
7826
7827
9a819804
AO
7828if test -n "$OBJCOPY"; then
7829 ac_cv_prog_OBJCOPY=$OBJCOPY
7830elif test -n "$ac_cv_prog_OBJCOPY"; then
7831 OBJCOPY=$ac_cv_prog_OBJCOPY
7832fi
7833
7834if test -n "$ac_cv_prog_OBJCOPY"; then
7835 for ncn_progname in objcopy; do
7836 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7837set dummy ${ncn_progname}; ac_word=$2
7838echo "$as_me:$LINENO: checking for $ac_word" >&5
7839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7840if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7842else
7843 if test -n "$OBJCOPY"; then
7844 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7845else
7846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847for as_dir in $PATH
7848do
7849 IFS=$as_save_IFS
7850 test -z "$as_dir" && as_dir=.
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7853 ac_cv_prog_OBJCOPY="${ncn_progname}"
7854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7855 break 2
7856 fi
7857done
7858done
7859
7860fi
7861fi
7862OBJCOPY=$ac_cv_prog_OBJCOPY
7863if test -n "$OBJCOPY"; then
7864 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7865echo "${ECHO_T}$OBJCOPY" >&6
7866else
7867 echo "$as_me:$LINENO: result: no" >&5
7868echo "${ECHO_T}no" >&6
7869fi
7870
7871 done
7872fi
7873
7874for ncn_progname in objcopy; do
05cbd757
PB
7875 if test -n "$ncn_tool_prefix"; then
7876 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7877set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7878echo "$as_me:$LINENO: checking for $ac_word" >&5
7879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7880if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7882else
7883 if test -n "$OBJCOPY"; then
7884 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7885else
c6b750e1
DJ
7886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887for as_dir in $PATH
7888do
7889 IFS=$as_save_IFS
7890 test -z "$as_dir" && as_dir=.
7891 for ac_exec_ext in '' $ac_executable_extensions; do
7892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7893 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7895 break 2
7896 fi
7897done
7898done
7899
859789af
AC
7900fi
7901fi
c6b750e1 7902OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7903if test -n "$OBJCOPY"; then
c6b750e1
DJ
7904 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7905echo "${ECHO_T}$OBJCOPY" >&6
859789af 7906else
c6b750e1
DJ
7907 echo "$as_me:$LINENO: result: no" >&5
7908echo "${ECHO_T}no" >&6
859789af
AC
7909fi
7910
05cbd757
PB
7911 fi
7912 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7913 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7914set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7915echo "$as_me:$LINENO: checking for $ac_word" >&5
7916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7917if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7919else
05cbd757
PB
7920 if test -n "$OBJCOPY"; then
7921 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7922else
c6b750e1
DJ
7923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924for as_dir in $PATH
7925do
7926 IFS=$as_save_IFS
7927 test -z "$as_dir" && as_dir=.
7928 for ac_exec_ext in '' $ac_executable_extensions; do
7929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7930 ac_cv_prog_OBJCOPY="${ncn_progname}"
7931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7932 break 2
7933 fi
7934done
7935done
7936
859789af
AC
7937fi
7938fi
c6b750e1 7939OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7940if test -n "$OBJCOPY"; then
c6b750e1
DJ
7941 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7942echo "${ECHO_T}$OBJCOPY" >&6
859789af 7943else
c6b750e1
DJ
7944 echo "$as_me:$LINENO: result: no" >&5
7945echo "${ECHO_T}no" >&6
859789af 7946fi
c6b750e1 7947
05cbd757
PB
7948 fi
7949 test -n "$ac_cv_prog_OBJCOPY" && break
7950done
7951
7952if test -z "$ac_cv_prog_OBJCOPY" ; then
7953 set dummy objcopy
7954 if test $build = $host ; then
7955 OBJCOPY="$2"
859789af 7956 else
05cbd757 7957 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7958 fi
859789af
AC
7959fi
7960
9a819804
AO
7961
7962
7963if test -n "$OBJDUMP"; then
7964 ac_cv_prog_OBJDUMP=$OBJDUMP
7965elif test -n "$ac_cv_prog_OBJDUMP"; then
7966 OBJDUMP=$ac_cv_prog_OBJDUMP
7967fi
7968
7969if test -n "$ac_cv_prog_OBJDUMP"; then
7970 for ncn_progname in objdump; do
7971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7972set dummy ${ncn_progname}; ac_word=$2
7973echo "$as_me:$LINENO: checking for $ac_word" >&5
7974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7975if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7977else
7978 if test -n "$OBJDUMP"; then
7979 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7980else
7981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982for as_dir in $PATH
7983do
7984 IFS=$as_save_IFS
7985 test -z "$as_dir" && as_dir=.
7986 for ac_exec_ext in '' $ac_executable_extensions; do
7987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7988 ac_cv_prog_OBJDUMP="${ncn_progname}"
7989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7990 break 2
7991 fi
7992done
7993done
7994
7995fi
7996fi
7997OBJDUMP=$ac_cv_prog_OBJDUMP
7998if test -n "$OBJDUMP"; then
7999 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8000echo "${ECHO_T}$OBJDUMP" >&6
8001else
8002 echo "$as_me:$LINENO: result: no" >&5
8003echo "${ECHO_T}no" >&6
8004fi
8005
8006 done
8007fi
8008
8009for ncn_progname in objdump; do
05cbd757
PB
8010 if test -n "$ncn_tool_prefix"; then
8011 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8012set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8013echo "$as_me:$LINENO: checking for $ac_word" >&5
8014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8015if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
8017else
8018 if test -n "$OBJDUMP"; then
8019 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8020else
c6b750e1
DJ
8021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022for as_dir in $PATH
8023do
8024 IFS=$as_save_IFS
8025 test -z "$as_dir" && as_dir=.
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8028 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8030 break 2
8031 fi
8032done
8033done
8034
859789af
AC
8035fi
8036fi
c6b750e1 8037OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 8038if test -n "$OBJDUMP"; then
c6b750e1
DJ
8039 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8040echo "${ECHO_T}$OBJDUMP" >&6
859789af 8041else
c6b750e1
DJ
8042 echo "$as_me:$LINENO: result: no" >&5
8043echo "${ECHO_T}no" >&6
859789af
AC
8044fi
8045
05cbd757
PB
8046 fi
8047 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8048 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8049set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8050echo "$as_me:$LINENO: checking for $ac_word" >&5
8051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8052if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8054else
05cbd757
PB
8055 if test -n "$OBJDUMP"; then
8056 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 8057else
c6b750e1
DJ
8058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059for as_dir in $PATH
8060do
8061 IFS=$as_save_IFS
8062 test -z "$as_dir" && as_dir=.
8063 for ac_exec_ext in '' $ac_executable_extensions; do
8064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8065 ac_cv_prog_OBJDUMP="${ncn_progname}"
8066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8067 break 2
8068 fi
8069done
8070done
8071
859789af
AC
8072fi
8073fi
c6b750e1 8074OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 8075if test -n "$OBJDUMP"; then
c6b750e1
DJ
8076 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8077echo "${ECHO_T}$OBJDUMP" >&6
859789af 8078else
c6b750e1
DJ
8079 echo "$as_me:$LINENO: result: no" >&5
8080echo "${ECHO_T}no" >&6
859789af 8081fi
c6b750e1 8082
05cbd757
PB
8083 fi
8084 test -n "$ac_cv_prog_OBJDUMP" && break
8085done
8086
8087if test -z "$ac_cv_prog_OBJDUMP" ; then
8088 set dummy objdump
8089 if test $build = $host ; then
8090 OBJDUMP="$2"
859789af 8091 else
05cbd757 8092 OBJDUMP="${ncn_tool_prefix}$2"
859789af 8093 fi
859789af
AC
8094fi
8095
a0da8069
NN
8096
8097
8098
8099
8100
be01d343 8101# Target tools.
c6b750e1 8102
2429c060
PB
8103# Check whether --with-build-time-tools or --without-build-time-tools was given.
8104if test "${with_build_time_tools+set}" = set; then
8105 withval="$with_build_time_tools"
8106 case x"$withval" in
8107 x/*) ;;
8108 *)
8109 with_build_time_tools=
c6b750e1
DJ
8110 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8111echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
8112 ;;
8113 esac
859789af 8114else
2429c060 8115 with_build_time_tools=
c6b750e1 8116fi;
859789af 8117
9a819804
AO
8118
8119
8120if test -n "$CC_FOR_TARGET"; then
8121 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8122elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8123 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8124fi
8125
8126if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8127 for ncn_progname in cc gcc; do
8128 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8129set dummy ${ncn_progname}; ac_word=$2
8130echo "$as_me:$LINENO: checking for $ac_word" >&5
8131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8132if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8134else
8135 if test -n "$CC_FOR_TARGET"; then
8136 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8137else
8138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139for as_dir in $PATH
8140do
8141 IFS=$as_save_IFS
8142 test -z "$as_dir" && as_dir=.
8143 for ac_exec_ext in '' $ac_executable_extensions; do
8144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8145 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8147 break 2
8148 fi
8149done
8150done
8151
8152fi
8153fi
8154CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8155if test -n "$CC_FOR_TARGET"; then
8156 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8157echo "${ECHO_T}$CC_FOR_TARGET" >&6
8158else
8159 echo "$as_me:$LINENO: result: no" >&5
8160echo "${ECHO_T}no" >&6
8161fi
8162
8163 done
8164fi
8165
8166if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8167 for ncn_progname in cc gcc; do
c6b750e1
DJ
8168 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8169echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8170 if test -x $with_build_time_tools/${ncn_progname}; then
8171 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8172 echo "$as_me:$LINENO: result: yes" >&5
8173echo "${ECHO_T}yes" >&6
cac3d6c4 8174 break
2429c060 8175 else
c6b750e1
DJ
8176 echo "$as_me:$LINENO: result: no" >&5
8177echo "${ECHO_T}no" >&6
cac3d6c4
CM
8178 fi
8179 done
55db4b87
PB
8180fi
8181
2429c060
PB
8182if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8183 for ncn_progname in cc gcc; do
8184 if test -n "$ncn_target_tool_prefix"; then
8185 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8186set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8187echo "$as_me:$LINENO: checking for $ac_word" >&5
8188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8189if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8191else
8192 if test -n "$CC_FOR_TARGET"; then
8193 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8194else
c6b750e1
DJ
8195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196for as_dir in $PATH
8197do
8198 IFS=$as_save_IFS
8199 test -z "$as_dir" && as_dir=.
8200 for ac_exec_ext in '' $ac_executable_extensions; do
8201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8202 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8204 break 2
8205 fi
8206done
8207done
8208
55db4b87
PB
8209fi
8210fi
c6b750e1 8211CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8212if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8213 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8214echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8215else
c6b750e1
DJ
8216 echo "$as_me:$LINENO: result: no" >&5
8217echo "${ECHO_T}no" >&6
55db4b87
PB
8218fi
8219
2429c060
PB
8220 fi
8221 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8223set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8224echo "$as_me:$LINENO: checking for $ac_word" >&5
8225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8226if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8228else
05cbd757
PB
8229 if test -n "$CC_FOR_TARGET"; then
8230 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8231else
c6b750e1
DJ
8232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233for as_dir in $PATH
8234do
8235 IFS=$as_save_IFS
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
8238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8239 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 break 2
8242 fi
8243done
8244done
8245
55db4b87
PB
8246fi
8247fi
c6b750e1 8248CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8249if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8250 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8251echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8252else
c6b750e1
DJ
8253 echo "$as_me:$LINENO: result: no" >&5
8254echo "${ECHO_T}no" >&6
55db4b87 8255fi
c6b750e1 8256
2429c060
PB
8257 fi
8258 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8259 done
8260fi
c6b750e1 8261
05cbd757
PB
8262if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8263 set dummy cc gcc
8264 if test $build = $target ; then
8265 CC_FOR_TARGET="$2"
55db4b87 8266 else
05cbd757 8267 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8268 fi
d3f5afc4
MS
8269else
8270 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8271fi
8272
9a819804
AO
8273
8274
8275if test -n "$CXX_FOR_TARGET"; then
8276 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8277elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8278 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8279fi
8280
8281if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8282 for ncn_progname in c++ g++ cxx gxx; do
8283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8284set dummy ${ncn_progname}; ac_word=$2
8285echo "$as_me:$LINENO: checking for $ac_word" >&5
8286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8287if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8289else
8290 if test -n "$CXX_FOR_TARGET"; then
8291 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8292else
8293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294for as_dir in $PATH
8295do
8296 IFS=$as_save_IFS
8297 test -z "$as_dir" && as_dir=.
8298 for ac_exec_ext in '' $ac_executable_extensions; do
8299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8300 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8302 break 2
8303 fi
8304done
8305done
8306
8307fi
8308fi
8309CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8310if test -n "$CXX_FOR_TARGET"; then
8311 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8312echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8313else
8314 echo "$as_me:$LINENO: result: no" >&5
8315echo "${ECHO_T}no" >&6
8316fi
8317
8318 done
8319fi
8320
8321if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8322 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8323 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8324echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8325 if test -x $with_build_time_tools/${ncn_progname}; then
8326 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8327 echo "$as_me:$LINENO: result: yes" >&5
8328echo "${ECHO_T}yes" >&6
2429c060
PB
8329 break
8330 else
c6b750e1
DJ
8331 echo "$as_me:$LINENO: result: no" >&5
8332echo "${ECHO_T}no" >&6
2429c060
PB
8333 fi
8334 done
8335fi
8336
8337if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8338 for ncn_progname in c++ g++ cxx gxx; do
8339 if test -n "$ncn_target_tool_prefix"; then
8340 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8341set dummy ${ncn_target_tool_prefix}${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
8344if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8346else
8347 if test -n "$CXX_FOR_TARGET"; then
8348 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
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
8357 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
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
c6b750e1 8366CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8367if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8368 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8369echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8370else
c6b750e1
DJ
8371 echo "$as_me:$LINENO: result: no" >&5
8372echo "${ECHO_T}no" >&6
55db4b87
PB
8373fi
8374
2429c060
PB
8375 fi
8376 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8377 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8378set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8379echo "$as_me:$LINENO: checking for $ac_word" >&5
8380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8381if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8383else
05cbd757
PB
8384 if test -n "$CXX_FOR_TARGET"; then
8385 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8386else
c6b750e1
DJ
8387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388for as_dir in $PATH
8389do
8390 IFS=$as_save_IFS
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8394 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8396 break 2
8397 fi
8398done
8399done
8400
55db4b87
PB
8401fi
8402fi
c6b750e1 8403CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8404if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8405 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8406echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8407else
c6b750e1
DJ
8408 echo "$as_me:$LINENO: result: no" >&5
8409echo "${ECHO_T}no" >&6
55db4b87 8410fi
c6b750e1 8411
2429c060
PB
8412 fi
8413 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8414 done
8415fi
c6b750e1 8416
05cbd757
PB
8417if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8418 set dummy c++ g++ cxx gxx
8419 if test $build = $target ; then
8420 CXX_FOR_TARGET="$2"
55db4b87 8421 else
05cbd757 8422 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8423 fi
d3f5afc4
MS
8424else
8425 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8426fi
8427
9a819804
AO
8428
8429
8430if test -n "$GCC_FOR_TARGET"; then
8431 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8432elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8433 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8434fi
8435
8436if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8437 for ncn_progname in gcc; do
8438 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8439set dummy ${ncn_progname}; ac_word=$2
8440echo "$as_me:$LINENO: checking for $ac_word" >&5
8441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8442if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8444else
8445 if test -n "$GCC_FOR_TARGET"; then
8446 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8447else
8448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8449for as_dir in $PATH
8450do
8451 IFS=$as_save_IFS
8452 test -z "$as_dir" && as_dir=.
8453 for ac_exec_ext in '' $ac_executable_extensions; do
8454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8455 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8457 break 2
8458 fi
8459done
8460done
8461
8462fi
8463fi
8464GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8465if test -n "$GCC_FOR_TARGET"; then
8466 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8467echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8468else
8469 echo "$as_me:$LINENO: result: no" >&5
8470echo "${ECHO_T}no" >&6
8471fi
8472
8473 done
8474fi
8475
8476if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8477 for ncn_progname in gcc; do
c6b750e1
DJ
8478 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8479echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8480 if test -x $with_build_time_tools/${ncn_progname}; then
8481 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8482 echo "$as_me:$LINENO: result: yes" >&5
8483echo "${ECHO_T}yes" >&6
2429c060
PB
8484 break
8485 else
c6b750e1
DJ
8486 echo "$as_me:$LINENO: result: no" >&5
8487echo "${ECHO_T}no" >&6
2429c060
PB
8488 fi
8489 done
8490fi
8491
8492if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8493 for ncn_progname in gcc; do
8494 if test -n "$ncn_target_tool_prefix"; then
8495 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8496set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8497echo "$as_me:$LINENO: checking for $ac_word" >&5
8498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8499if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8501else
2429c060
PB
8502 if test -n "$GCC_FOR_TARGET"; then
8503 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8504else
c6b750e1
DJ
8505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506for as_dir in $PATH
8507do
8508 IFS=$as_save_IFS
8509 test -z "$as_dir" && as_dir=.
8510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8512 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8514 break 2
8515 fi
8516done
8517done
8518
55db4b87
PB
8519fi
8520fi
c6b750e1 8521GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8522if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8523 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8524echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8525else
c6b750e1
DJ
8526 echo "$as_me:$LINENO: result: no" >&5
8527echo "${ECHO_T}no" >&6
55db4b87
PB
8528fi
8529
2429c060
PB
8530 fi
8531 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8533set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8534echo "$as_me:$LINENO: checking for $ac_word" >&5
8535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8536if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8538else
05cbd757
PB
8539 if test -n "$GCC_FOR_TARGET"; then
8540 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8541else
c6b750e1
DJ
8542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543for as_dir in $PATH
8544do
8545 IFS=$as_save_IFS
8546 test -z "$as_dir" && as_dir=.
8547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8549 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8551 break 2
8552 fi
8553done
8554done
8555
55db4b87
PB
8556fi
8557fi
c6b750e1 8558GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8559if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8560 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8561echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8562else
c6b750e1
DJ
8563 echo "$as_me:$LINENO: result: no" >&5
8564echo "${ECHO_T}no" >&6
55db4b87 8565fi
c6b750e1 8566
2429c060
PB
8567 fi
8568 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8569 done
8570fi
c6b750e1 8571
05cbd757
PB
8572if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8573 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8574else
8575 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8576fi
8577
9a819804
AO
8578
8579
8580if test -n "$GCJ_FOR_TARGET"; then
8581 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8582elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8583 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8584fi
8585
8586if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8587 for ncn_progname in gcj; do
8588 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8589set dummy ${ncn_progname}; ac_word=$2
8590echo "$as_me:$LINENO: checking for $ac_word" >&5
8591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8592if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8594else
8595 if test -n "$GCJ_FOR_TARGET"; then
8596 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8597else
8598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599for as_dir in $PATH
8600do
8601 IFS=$as_save_IFS
8602 test -z "$as_dir" && as_dir=.
8603 for ac_exec_ext in '' $ac_executable_extensions; do
8604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8605 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8607 break 2
8608 fi
8609done
8610done
8611
8612fi
8613fi
8614GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8615if test -n "$GCJ_FOR_TARGET"; then
8616 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8617echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8618else
8619 echo "$as_me:$LINENO: result: no" >&5
8620echo "${ECHO_T}no" >&6
8621fi
8622
8623 done
8624fi
8625
8626if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8627 for ncn_progname in gcj; do
c6b750e1
DJ
8628 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8629echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8630 if test -x $with_build_time_tools/${ncn_progname}; then
8631 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8632 echo "$as_me:$LINENO: result: yes" >&5
8633echo "${ECHO_T}yes" >&6
2429c060
PB
8634 break
8635 else
c6b750e1
DJ
8636 echo "$as_me:$LINENO: result: no" >&5
8637echo "${ECHO_T}no" >&6
2429c060
PB
8638 fi
8639 done
8640fi
8641
8642if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8643 for ncn_progname in gcj; do
8644 if test -n "$ncn_target_tool_prefix"; then
8645 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8646set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8647echo "$as_me:$LINENO: checking for $ac_word" >&5
8648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8649if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8651else
8652 if test -n "$GCJ_FOR_TARGET"; then
8653 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8654else
c6b750e1
DJ
8655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656for as_dir in $PATH
8657do
8658 IFS=$as_save_IFS
8659 test -z "$as_dir" && as_dir=.
8660 for ac_exec_ext in '' $ac_executable_extensions; do
8661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8662 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8664 break 2
8665 fi
8666done
8667done
8668
55db4b87
PB
8669fi
8670fi
9a819804
AO
8671GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8672if test -n "$GCJ_FOR_TARGET"; then
8673 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8674echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8675else
8676 echo "$as_me:$LINENO: result: no" >&5
8677echo "${ECHO_T}no" >&6
8678fi
8679
8680 fi
8681 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8682 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8683set dummy ${ncn_progname}; ac_word=$2
8684echo "$as_me:$LINENO: checking for $ac_word" >&5
8685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8686if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8688else
8689 if test -n "$GCJ_FOR_TARGET"; then
8690 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8691else
8692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693for as_dir in $PATH
8694do
8695 IFS=$as_save_IFS
8696 test -z "$as_dir" && as_dir=.
8697 for ac_exec_ext in '' $ac_executable_extensions; do
8698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8699 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8701 break 2
8702 fi
8703done
8704done
8705
8706fi
8707fi
8708GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8709if test -n "$GCJ_FOR_TARGET"; then
8710 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8711echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8712else
8713 echo "$as_me:$LINENO: result: no" >&5
8714echo "${ECHO_T}no" >&6
8715fi
8716
8717 fi
8718 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8719 done
8720fi
8721
8722if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8723 set dummy gcj
8724 if test $build = $target ; then
8725 GCJ_FOR_TARGET="$2"
8726 else
8727 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8728 fi
d3f5afc4
MS
8729else
8730 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8731fi
8732
8733
8734
8735if test -n "$GFORTRAN_FOR_TARGET"; then
8736 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8737elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8738 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8739fi
8740
9a819804
AO
8741if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8742 for ncn_progname in gfortran; do
8743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8744set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8745echo "$as_me:$LINENO: checking for $ac_word" >&5
8746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8747if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8748 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8749else
9a819804
AO
8750 if test -n "$GFORTRAN_FOR_TARGET"; then
8751 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8752else
c6b750e1
DJ
8753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754for as_dir in $PATH
8755do
8756 IFS=$as_save_IFS
8757 test -z "$as_dir" && as_dir=.
8758 for ac_exec_ext in '' $ac_executable_extensions; do
8759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8760 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8762 break 2
8763 fi
8764done
8765done
8766
55db4b87
PB
8767fi
8768fi
9a819804
AO
8769GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8770if test -n "$GFORTRAN_FOR_TARGET"; then
8771 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8772echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8773else
c6b750e1
DJ
8774 echo "$as_me:$LINENO: result: no" >&5
8775echo "${ECHO_T}no" >&6
55db4b87 8776fi
c6b750e1 8777
2429c060
PB
8778 done
8779fi
c6b750e1 8780
9a819804 8781if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8782 for ncn_progname in gfortran; do
c6b750e1
DJ
8783 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8784echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8785 if test -x $with_build_time_tools/${ncn_progname}; then
8786 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8787 echo "$as_me:$LINENO: result: yes" >&5
8788echo "${ECHO_T}yes" >&6
2429c060
PB
8789 break
8790 else
c6b750e1
DJ
8791 echo "$as_me:$LINENO: result: no" >&5
8792echo "${ECHO_T}no" >&6
2429c060
PB
8793 fi
8794 done
8795fi
8796
8797if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8798 for ncn_progname in gfortran; do
8799 if test -n "$ncn_target_tool_prefix"; then
8800 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8801set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8802echo "$as_me:$LINENO: checking for $ac_word" >&5
8803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8804if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8806else
8807 if test -n "$GFORTRAN_FOR_TARGET"; then
8808 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8809else
c6b750e1
DJ
8810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8811for as_dir in $PATH
8812do
8813 IFS=$as_save_IFS
8814 test -z "$as_dir" && as_dir=.
8815 for ac_exec_ext in '' $ac_executable_extensions; do
8816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8817 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8819 break 2
8820 fi
8821done
8822done
8823
55db4b87
PB
8824fi
8825fi
c6b750e1 8826GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8827if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8828 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8829echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8830else
c6b750e1
DJ
8831 echo "$as_me:$LINENO: result: no" >&5
8832echo "${ECHO_T}no" >&6
55db4b87
PB
8833fi
8834
2429c060
PB
8835 fi
8836 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8837 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8838set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8839echo "$as_me:$LINENO: checking for $ac_word" >&5
8840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8841if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8843else
05cbd757 8844 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8845 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8846else
8847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848for as_dir in $PATH
8849do
8850 IFS=$as_save_IFS
8851 test -z "$as_dir" && as_dir=.
8852 for ac_exec_ext in '' $ac_executable_extensions; do
8853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8854 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8856 break 2
8857 fi
8858done
8859done
8860
55db4b87
PB
8861fi
8862fi
c6b750e1 8863GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8864if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8865 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8866echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8867else
c6b750e1
DJ
8868 echo "$as_me:$LINENO: result: no" >&5
8869echo "${ECHO_T}no" >&6
55db4b87 8870fi
c6b750e1 8871
2429c060
PB
8872 fi
8873 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8874 done
8875fi
c6b750e1 8876
05cbd757
PB
8877if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8878 set dummy gfortran
8879 if test $build = $target ; then
8880 GFORTRAN_FOR_TARGET="$2"
55db4b87 8881 else
05cbd757 8882 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8883 fi
d3f5afc4
MS
8884else
8885 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8886fi
8887
2429c060
PB
8888
8889
2429c060
PB
8890cat > conftest.c << \EOF
8891#ifdef __GNUC__
8892 gcc_yay;
8893#endif
8894EOF
8895if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8896 have_gcc_for_target=yes
859789af 8897else
2429c060
PB
8898 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8899 have_gcc_for_target=no
859789af 8900fi
2429c060
PB
8901rm conftest.c
8902
8903
8904
859789af 8905
2429c060
PB
8906if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8907 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8908 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8909echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8910 if test -x $with_build_time_tools/ar; then
8911 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8912 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8913 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8914echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8915 else
c6b750e1
DJ
8916 echo "$as_me:$LINENO: result: no" >&5
8917echo "${ECHO_T}no" >&6
3a35eeb3 8918 fi
2429c060
PB
8919 elif test $build != $host && test $have_gcc_for_target = yes; then
8920 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8921 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8922 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8923 fi
2429c060 8924fi
c6b750e1 8925if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8926 # Extract the first word of "ar", so it can be a program name with args.
8927set dummy ar; ac_word=$2
c6b750e1
DJ
8928echo "$as_me:$LINENO: checking for $ac_word" >&5
8929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8930if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8932else
c6b750e1
DJ
8933 case $AR_FOR_TARGET in
8934 [\\/]* | ?:[\\/]*)
2429c060
PB
8935 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8936 ;;
2429c060 8937 *)
c6b750e1
DJ
8938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8939for as_dir in $gcc_cv_tool_dirs
8940do
8941 IFS=$as_save_IFS
8942 test -z "$as_dir" && as_dir=.
8943 for ac_exec_ext in '' $ac_executable_extensions; do
8944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8945 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8947 break 2
8948 fi
8949done
8950done
8951
2429c060
PB
8952 ;;
8953esac
859789af 8954fi
c6b750e1
DJ
8955AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8956
2429c060 8957if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8958 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8959echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8960else
c6b750e1
DJ
8961 echo "$as_me:$LINENO: result: no" >&5
8962echo "${ECHO_T}no" >&6
859789af 8963fi
05cbd757 8964
2429c060
PB
8965fi
8966if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8967
8968
8969if test -n "$AR_FOR_TARGET"; then
8970 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8971elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8972 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8973fi
8974
8975if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8976 for ncn_progname in ar; do
8977 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8978set dummy ${ncn_progname}; ac_word=$2
8979echo "$as_me:$LINENO: checking for $ac_word" >&5
8980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8981if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8983else
8984 if test -n "$AR_FOR_TARGET"; then
8985 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8986else
8987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8988for as_dir in $PATH
8989do
8990 IFS=$as_save_IFS
8991 test -z "$as_dir" && as_dir=.
8992 for ac_exec_ext in '' $ac_executable_extensions; do
8993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8994 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8996 break 2
8997 fi
8998done
8999done
9000
9001fi
9002fi
9003AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9004if test -n "$AR_FOR_TARGET"; then
9005 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9006echo "${ECHO_T}$AR_FOR_TARGET" >&6
9007else
9008 echo "$as_me:$LINENO: result: no" >&5
9009echo "${ECHO_T}no" >&6
9010fi
9011
9012 done
9013fi
9014
9015if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9016 for ncn_progname in ar; do
c6b750e1
DJ
9017 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9018echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9019 if test -x $with_build_time_tools/${ncn_progname}; then
9020 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9021 echo "$as_me:$LINENO: result: yes" >&5
9022echo "${ECHO_T}yes" >&6
2429c060
PB
9023 break
9024 else
c6b750e1
DJ
9025 echo "$as_me:$LINENO: result: no" >&5
9026echo "${ECHO_T}no" >&6
2429c060
PB
9027 fi
9028 done
859789af
AC
9029fi
9030
2429c060
PB
9031if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9032 for ncn_progname in ar; do
9033 if test -n "$ncn_target_tool_prefix"; then
9034 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9035set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9036echo "$as_me:$LINENO: checking for $ac_word" >&5
9037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9038if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9039 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9040else
2429c060
PB
9041 if test -n "$AR_FOR_TARGET"; then
9042 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 9043else
c6b750e1
DJ
9044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9045for as_dir in $PATH
9046do
9047 IFS=$as_save_IFS
9048 test -z "$as_dir" && as_dir=.
9049 for ac_exec_ext in '' $ac_executable_extensions; do
9050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9051 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9053 break 2
9054 fi
9055done
9056done
9057
7e0f7140
GK
9058fi
9059fi
c6b750e1 9060AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9061if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9062 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9063echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9064else
c6b750e1
DJ
9065 echo "$as_me:$LINENO: result: no" >&5
9066echo "${ECHO_T}no" >&6
7e0f7140
GK
9067fi
9068
2429c060
PB
9069 fi
9070 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 9072set dummy ${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_AR_FOR_TARGET+set}" = set; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9077else
2429c060
PB
9078 if test -n "$AR_FOR_TARGET"; then
9079 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 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_AR_FOR_TARGET="${ncn_progname}"
9089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9090 break 2
9091 fi
9092done
9093done
9094
7e0f7140
GK
9095fi
9096fi
c6b750e1 9097AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9098if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9099 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9100echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9101else
c6b750e1
DJ
9102 echo "$as_me:$LINENO: result: no" >&5
9103echo "${ECHO_T}no" >&6
7e0f7140 9104fi
c6b750e1 9105
2429c060
PB
9106 fi
9107 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9108 done
9109fi
c6b750e1 9110
2429c060
PB
9111if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9112 set dummy ar
7e0f7140 9113 if test $build = $target ; then
2429c060 9114 AR_FOR_TARGET="$2"
7e0f7140 9115 else
2429c060 9116 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 9117 fi
d3f5afc4
MS
9118else
9119 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
9120fi
9121
3a35eeb3
PB
9122else
9123 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
9124fi
9125
9126
9127
9128
9129if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9130 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9131 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9132echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9133 if test -x $with_build_time_tools/as; then
9134 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9135 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
9136 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9137echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 9138 else
c6b750e1
DJ
9139 echo "$as_me:$LINENO: result: no" >&5
9140echo "${ECHO_T}no" >&6
3a35eeb3 9141 fi
2429c060
PB
9142 elif test $build != $host && test $have_gcc_for_target = yes; then
9143 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
9144 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9145 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
9146 fi
9147fi
c6b750e1 9148if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9149 # Extract the first word of "as", so it can be a program name with args.
9150set dummy as; ac_word=$2
c6b750e1
DJ
9151echo "$as_me:$LINENO: checking for $ac_word" >&5
9152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9153if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9154 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9155else
c6b750e1
DJ
9156 case $AS_FOR_TARGET in
9157 [\\/]* | ?:[\\/]*)
2429c060
PB
9158 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9159 ;;
2429c060 9160 *)
c6b750e1
DJ
9161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9162for as_dir in $gcc_cv_tool_dirs
9163do
9164 IFS=$as_save_IFS
9165 test -z "$as_dir" && as_dir=.
9166 for ac_exec_ext in '' $ac_executable_extensions; do
9167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9168 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9170 break 2
9171 fi
9172done
9173done
9174
2429c060
PB
9175 ;;
9176esac
9177fi
c6b750e1
DJ
9178AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9179
2429c060 9180if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9181 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9182echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9183else
c6b750e1
DJ
9184 echo "$as_me:$LINENO: result: no" >&5
9185echo "${ECHO_T}no" >&6
2429c060
PB
9186fi
9187
9188fi
9189if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9190
9191
9192if test -n "$AS_FOR_TARGET"; then
9193 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9194elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9195 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9196fi
9197
9198if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9199 for ncn_progname in as; do
9200 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9201set dummy ${ncn_progname}; ac_word=$2
9202echo "$as_me:$LINENO: checking for $ac_word" >&5
9203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9204if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9205 echo $ECHO_N "(cached) $ECHO_C" >&6
9206else
9207 if test -n "$AS_FOR_TARGET"; then
9208 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9209else
9210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9211for as_dir in $PATH
9212do
9213 IFS=$as_save_IFS
9214 test -z "$as_dir" && as_dir=.
9215 for ac_exec_ext in '' $ac_executable_extensions; do
9216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9217 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9219 break 2
9220 fi
9221done
9222done
9223
9224fi
9225fi
9226AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9227if test -n "$AS_FOR_TARGET"; then
9228 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9229echo "${ECHO_T}$AS_FOR_TARGET" >&6
9230else
9231 echo "$as_me:$LINENO: result: no" >&5
9232echo "${ECHO_T}no" >&6
9233fi
9234
9235 done
9236fi
9237
9238if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9239 for ncn_progname in as; do
c6b750e1
DJ
9240 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9241echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9242 if test -x $with_build_time_tools/${ncn_progname}; then
9243 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9244 echo "$as_me:$LINENO: result: yes" >&5
9245echo "${ECHO_T}yes" >&6
2429c060
PB
9246 break
9247 else
c6b750e1
DJ
9248 echo "$as_me:$LINENO: result: no" >&5
9249echo "${ECHO_T}no" >&6
2429c060
PB
9250 fi
9251 done
9252fi
9253
9254if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9255 for ncn_progname in as; do
9256 if test -n "$ncn_target_tool_prefix"; then
9257 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9258set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9259echo "$as_me:$LINENO: checking for $ac_word" >&5
9260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9261if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9263else
9264 if test -n "$AS_FOR_TARGET"; then
9265 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9266else
c6b750e1
DJ
9267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9268for as_dir in $PATH
9269do
9270 IFS=$as_save_IFS
9271 test -z "$as_dir" && as_dir=.
9272 for ac_exec_ext in '' $ac_executable_extensions; do
9273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9274 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9276 break 2
9277 fi
9278done
9279done
9280
2429c060
PB
9281fi
9282fi
c6b750e1 9283AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9284if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9285 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9286echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9287else
c6b750e1
DJ
9288 echo "$as_me:$LINENO: result: no" >&5
9289echo "${ECHO_T}no" >&6
2429c060
PB
9290fi
9291
9292 fi
9293 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9294 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9295set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9296echo "$as_me:$LINENO: checking for $ac_word" >&5
9297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9298if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9300else
9301 if test -n "$AS_FOR_TARGET"; then
9302 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9303else
c6b750e1
DJ
9304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9305for as_dir in $PATH
9306do
9307 IFS=$as_save_IFS
9308 test -z "$as_dir" && as_dir=.
9309 for ac_exec_ext in '' $ac_executable_extensions; do
9310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9311 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9313 break 2
9314 fi
9315done
9316done
9317
2429c060
PB
9318fi
9319fi
c6b750e1 9320AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9321if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9322 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9323echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9324else
c6b750e1
DJ
9325 echo "$as_me:$LINENO: result: no" >&5
9326echo "${ECHO_T}no" >&6
2429c060 9327fi
c6b750e1 9328
2429c060
PB
9329 fi
9330 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9331 done
9332fi
c6b750e1 9333
2429c060
PB
9334if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9335 set dummy as
9336 if test $build = $target ; then
9337 AS_FOR_TARGET="$2"
9338 else
9339 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9340 fi
d3f5afc4
MS
9341else
9342 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9343fi
9344
3a35eeb3
PB
9345else
9346 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9347fi
9348
9349
9350
9351
9352if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9353 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9354 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9355echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9356 if test -x $with_build_time_tools/dlltool; then
9357 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9358 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9359 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9360echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9361 else
c6b750e1
DJ
9362 echo "$as_me:$LINENO: result: no" >&5
9363echo "${ECHO_T}no" >&6
3a35eeb3 9364 fi
2429c060
PB
9365 elif test $build != $host && test $have_gcc_for_target = yes; then
9366 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9367 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9368 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9369 fi
9370fi
c6b750e1 9371if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9372 # Extract the first word of "dlltool", so it can be a program name with args.
9373set dummy dlltool; ac_word=$2
c6b750e1
DJ
9374echo "$as_me:$LINENO: checking for $ac_word" >&5
9375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9376if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9377 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9378else
c6b750e1
DJ
9379 case $DLLTOOL_FOR_TARGET in
9380 [\\/]* | ?:[\\/]*)
2429c060
PB
9381 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9382 ;;
2429c060 9383 *)
c6b750e1
DJ
9384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9385for as_dir in $gcc_cv_tool_dirs
9386do
9387 IFS=$as_save_IFS
9388 test -z "$as_dir" && as_dir=.
9389 for ac_exec_ext in '' $ac_executable_extensions; do
9390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9391 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9393 break 2
9394 fi
9395done
9396done
9397
2429c060
PB
9398 ;;
9399esac
9400fi
c6b750e1
DJ
9401DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9402
2429c060 9403if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9404 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9405echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9406else
c6b750e1
DJ
9407 echo "$as_me:$LINENO: result: no" >&5
9408echo "${ECHO_T}no" >&6
2429c060
PB
9409fi
9410
9411fi
9412if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9413
9414
9415if test -n "$DLLTOOL_FOR_TARGET"; then
9416 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9417elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9418 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9419fi
9420
9421if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9422 for ncn_progname in dlltool; do
9423 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9424set dummy ${ncn_progname}; ac_word=$2
9425echo "$as_me:$LINENO: checking for $ac_word" >&5
9426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9427if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9429else
9430 if test -n "$DLLTOOL_FOR_TARGET"; then
9431 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9432else
9433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9434for as_dir in $PATH
9435do
9436 IFS=$as_save_IFS
9437 test -z "$as_dir" && as_dir=.
9438 for ac_exec_ext in '' $ac_executable_extensions; do
9439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9440 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9442 break 2
9443 fi
9444done
9445done
9446
9447fi
9448fi
9449DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9450if test -n "$DLLTOOL_FOR_TARGET"; then
9451 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9452echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9453else
9454 echo "$as_me:$LINENO: result: no" >&5
9455echo "${ECHO_T}no" >&6
9456fi
9457
9458 done
9459fi
9460
9461if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9462 for ncn_progname in dlltool; do
c6b750e1
DJ
9463 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9464echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9465 if test -x $with_build_time_tools/${ncn_progname}; then
9466 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9467 echo "$as_me:$LINENO: result: yes" >&5
9468echo "${ECHO_T}yes" >&6
2429c060
PB
9469 break
9470 else
c6b750e1
DJ
9471 echo "$as_me:$LINENO: result: no" >&5
9472echo "${ECHO_T}no" >&6
2429c060
PB
9473 fi
9474 done
9475fi
9476
9477if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9478 for ncn_progname in dlltool; do
9479 if test -n "$ncn_target_tool_prefix"; then
9480 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9481set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9482echo "$as_me:$LINENO: checking for $ac_word" >&5
9483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9484if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9486else
9487 if test -n "$DLLTOOL_FOR_TARGET"; then
9488 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9489else
c6b750e1
DJ
9490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491for as_dir in $PATH
9492do
9493 IFS=$as_save_IFS
9494 test -z "$as_dir" && as_dir=.
9495 for ac_exec_ext in '' $ac_executable_extensions; do
9496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9497 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9499 break 2
9500 fi
9501done
9502done
9503
2429c060
PB
9504fi
9505fi
c6b750e1 9506DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9507if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9508 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9509echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9510else
c6b750e1
DJ
9511 echo "$as_me:$LINENO: result: no" >&5
9512echo "${ECHO_T}no" >&6
2429c060
PB
9513fi
9514
9515 fi
9516 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9518set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9519echo "$as_me:$LINENO: checking for $ac_word" >&5
9520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9521if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9523else
9524 if test -n "$DLLTOOL_FOR_TARGET"; then
9525 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9526else
c6b750e1
DJ
9527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9528for as_dir in $PATH
9529do
9530 IFS=$as_save_IFS
9531 test -z "$as_dir" && as_dir=.
9532 for ac_exec_ext in '' $ac_executable_extensions; do
9533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9534 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9536 break 2
9537 fi
9538done
9539done
9540
2429c060
PB
9541fi
9542fi
c6b750e1 9543DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9544if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9545 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9546echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9547else
c6b750e1
DJ
9548 echo "$as_me:$LINENO: result: no" >&5
9549echo "${ECHO_T}no" >&6
2429c060 9550fi
c6b750e1 9551
2429c060
PB
9552 fi
9553 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9554 done
9555fi
c6b750e1 9556
2429c060
PB
9557if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9558 set dummy dlltool
9559 if test $build = $target ; then
9560 DLLTOOL_FOR_TARGET="$2"
9561 else
9562 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9563 fi
d3f5afc4
MS
9564else
9565 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9566fi
9567
3a35eeb3
PB
9568else
9569 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9570fi
9571
9572
9573
9574
9575if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9576 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9577 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9578echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9579 if test -x $with_build_time_tools/ld; then
9580 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9581 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9582 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9583echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9584 else
c6b750e1
DJ
9585 echo "$as_me:$LINENO: result: no" >&5
9586echo "${ECHO_T}no" >&6
3a35eeb3 9587 fi
2429c060
PB
9588 elif test $build != $host && test $have_gcc_for_target = yes; then
9589 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9590 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9591 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9592 fi
9593fi
c6b750e1 9594if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9595 # Extract the first word of "ld", so it can be a program name with args.
9596set dummy ld; ac_word=$2
c6b750e1
DJ
9597echo "$as_me:$LINENO: checking for $ac_word" >&5
9598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9599if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9600 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9601else
c6b750e1
DJ
9602 case $LD_FOR_TARGET in
9603 [\\/]* | ?:[\\/]*)
2429c060
PB
9604 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9605 ;;
2429c060 9606 *)
c6b750e1
DJ
9607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9608for as_dir in $gcc_cv_tool_dirs
9609do
9610 IFS=$as_save_IFS
9611 test -z "$as_dir" && as_dir=.
9612 for ac_exec_ext in '' $ac_executable_extensions; do
9613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9614 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9616 break 2
9617 fi
9618done
9619done
9620
2429c060
PB
9621 ;;
9622esac
9623fi
c6b750e1
DJ
9624LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9625
2429c060 9626if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9627 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9628echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9629else
c6b750e1
DJ
9630 echo "$as_me:$LINENO: result: no" >&5
9631echo "${ECHO_T}no" >&6
2429c060
PB
9632fi
9633
9634fi
9635if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9636
9637
9638if test -n "$LD_FOR_TARGET"; then
9639 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9640elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9641 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9642fi
9643
9644if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9645 for ncn_progname in ld; do
9646 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9647set dummy ${ncn_progname}; ac_word=$2
9648echo "$as_me:$LINENO: checking for $ac_word" >&5
9649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9650if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9652else
9653 if test -n "$LD_FOR_TARGET"; then
9654 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9655else
9656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9657for as_dir in $PATH
9658do
9659 IFS=$as_save_IFS
9660 test -z "$as_dir" && as_dir=.
9661 for ac_exec_ext in '' $ac_executable_extensions; do
9662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9663 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9665 break 2
9666 fi
9667done
9668done
9669
9670fi
9671fi
9672LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9673if test -n "$LD_FOR_TARGET"; then
9674 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9675echo "${ECHO_T}$LD_FOR_TARGET" >&6
9676else
9677 echo "$as_me:$LINENO: result: no" >&5
9678echo "${ECHO_T}no" >&6
9679fi
9680
9681 done
9682fi
9683
9684if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9685 for ncn_progname in ld; do
c6b750e1
DJ
9686 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9687echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9688 if test -x $with_build_time_tools/${ncn_progname}; then
9689 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9690 echo "$as_me:$LINENO: result: yes" >&5
9691echo "${ECHO_T}yes" >&6
2429c060
PB
9692 break
9693 else
c6b750e1
DJ
9694 echo "$as_me:$LINENO: result: no" >&5
9695echo "${ECHO_T}no" >&6
2429c060
PB
9696 fi
9697 done
9698fi
9699
9700if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9701 for ncn_progname in ld; do
9702 if test -n "$ncn_target_tool_prefix"; then
9703 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9704set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9705echo "$as_me:$LINENO: checking for $ac_word" >&5
9706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9707if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9709else
9710 if test -n "$LD_FOR_TARGET"; then
9711 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9712else
c6b750e1
DJ
9713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9714for as_dir in $PATH
9715do
9716 IFS=$as_save_IFS
9717 test -z "$as_dir" && as_dir=.
9718 for ac_exec_ext in '' $ac_executable_extensions; do
9719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9720 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9722 break 2
9723 fi
9724done
9725done
9726
2429c060
PB
9727fi
9728fi
c6b750e1 9729LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9730if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9731 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9732echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9733else
c6b750e1
DJ
9734 echo "$as_me:$LINENO: result: no" >&5
9735echo "${ECHO_T}no" >&6
2429c060
PB
9736fi
9737
9738 fi
9739 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9740 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9741set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9742echo "$as_me:$LINENO: checking for $ac_word" >&5
9743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9744if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9746else
9747 if test -n "$LD_FOR_TARGET"; then
9748 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9749else
c6b750e1
DJ
9750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9751for as_dir in $PATH
9752do
9753 IFS=$as_save_IFS
9754 test -z "$as_dir" && as_dir=.
9755 for ac_exec_ext in '' $ac_executable_extensions; do
9756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9757 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9759 break 2
9760 fi
9761done
9762done
9763
2429c060
PB
9764fi
9765fi
c6b750e1 9766LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9767if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9768 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9769echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9770else
c6b750e1
DJ
9771 echo "$as_me:$LINENO: result: no" >&5
9772echo "${ECHO_T}no" >&6
2429c060 9773fi
c6b750e1 9774
2429c060
PB
9775 fi
9776 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9777 done
9778fi
c6b750e1 9779
2429c060
PB
9780if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9781 set dummy ld
9782 if test $build = $target ; then
9783 LD_FOR_TARGET="$2"
9784 else
9785 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9786 fi
d3f5afc4
MS
9787else
9788 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9789fi
9790
3a35eeb3
PB
9791else
9792 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9793fi
9794
9795
9796
9797
9798if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9799 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9800 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9801echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9802 if test -x $with_build_time_tools/lipo; then
9803 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9804 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9805 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9806echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9807 else
c6b750e1
DJ
9808 echo "$as_me:$LINENO: result: no" >&5
9809echo "${ECHO_T}no" >&6
3a35eeb3 9810 fi
2429c060
PB
9811 elif test $build != $host && test $have_gcc_for_target = yes; then
9812 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9813 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9814 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9815 fi
9816fi
9a819804
AO
9817if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9818 # Extract the first word of "lipo", so it can be a program name with args.
9819set dummy lipo; ac_word=$2
9820echo "$as_me:$LINENO: checking for $ac_word" >&5
9821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9822if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9824else
9825 case $LIPO_FOR_TARGET in
9826 [\\/]* | ?:[\\/]*)
9827 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9828 ;;
9829 *)
9830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9831for as_dir in $gcc_cv_tool_dirs
9832do
9833 IFS=$as_save_IFS
9834 test -z "$as_dir" && as_dir=.
9835 for ac_exec_ext in '' $ac_executable_extensions; do
9836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9837 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9839 break 2
9840 fi
9841done
9842done
9843
9844 ;;
9845esac
9846fi
9847LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9848
9849if test -n "$LIPO_FOR_TARGET"; then
9850 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9851echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9852else
9853 echo "$as_me:$LINENO: result: no" >&5
9854echo "${ECHO_T}no" >&6
9855fi
9856
9857fi
9858if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9859
9860
9861if test -n "$LIPO_FOR_TARGET"; then
9862 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9863elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9864 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9865fi
9866
9867if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9868 for ncn_progname in lipo; do
9869 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9870set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9871echo "$as_me:$LINENO: checking for $ac_word" >&5
9872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9873if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9874 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9875else
9a819804
AO
9876 if test -n "$LIPO_FOR_TARGET"; then
9877 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9878else
9879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9880for as_dir in $PATH
c6b750e1
DJ
9881do
9882 IFS=$as_save_IFS
9883 test -z "$as_dir" && as_dir=.
9884 for ac_exec_ext in '' $ac_executable_extensions; do
9885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9886 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9888 break 2
9889 fi
9890done
9891done
9892
2429c060 9893fi
9a819804
AO
9894fi
9895LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9896if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9897 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9898echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9899else
c6b750e1
DJ
9900 echo "$as_me:$LINENO: result: no" >&5
9901echo "${ECHO_T}no" >&6
2429c060
PB
9902fi
9903
9a819804 9904 done
2429c060 9905fi
9a819804
AO
9906
9907if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9908 for ncn_progname in lipo; do
c6b750e1
DJ
9909 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9910echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9911 if test -x $with_build_time_tools/${ncn_progname}; then
9912 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9913 echo "$as_me:$LINENO: result: yes" >&5
9914echo "${ECHO_T}yes" >&6
2429c060
PB
9915 break
9916 else
c6b750e1
DJ
9917 echo "$as_me:$LINENO: result: no" >&5
9918echo "${ECHO_T}no" >&6
2429c060
PB
9919 fi
9920 done
9921fi
9922
9923if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9924 for ncn_progname in lipo; do
9925 if test -n "$ncn_target_tool_prefix"; then
9926 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9927set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9928echo "$as_me:$LINENO: checking for $ac_word" >&5
9929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9930if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9932else
9933 if test -n "$LIPO_FOR_TARGET"; then
9934 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9935else
c6b750e1
DJ
9936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9937for as_dir in $PATH
9938do
9939 IFS=$as_save_IFS
9940 test -z "$as_dir" && as_dir=.
9941 for ac_exec_ext in '' $ac_executable_extensions; do
9942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9943 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9945 break 2
9946 fi
9947done
9948done
9949
2429c060
PB
9950fi
9951fi
c6b750e1 9952LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9953if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9954 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9955echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9956else
c6b750e1
DJ
9957 echo "$as_me:$LINENO: result: no" >&5
9958echo "${ECHO_T}no" >&6
2429c060
PB
9959fi
9960
9961 fi
9962 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9963 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9964set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9965echo "$as_me:$LINENO: checking for $ac_word" >&5
9966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9967if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9969else
9970 if test -n "$LIPO_FOR_TARGET"; then
9971 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9972else
c6b750e1
DJ
9973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974for as_dir in $PATH
9975do
9976 IFS=$as_save_IFS
9977 test -z "$as_dir" && as_dir=.
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9980 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9982 break 2
9983 fi
9984done
9985done
9986
2429c060
PB
9987fi
9988fi
c6b750e1 9989LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9990if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9991 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9992echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9993else
c6b750e1
DJ
9994 echo "$as_me:$LINENO: result: no" >&5
9995echo "${ECHO_T}no" >&6
2429c060 9996fi
c6b750e1 9997
2429c060
PB
9998 fi
9999 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10000 done
10001fi
c6b750e1 10002
2429c060
PB
10003if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10004 set dummy lipo
10005 if test $build = $target ; then
10006 LIPO_FOR_TARGET="$2"
10007 else
10008 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10009 fi
d3f5afc4
MS
10010else
10011 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
10012fi
10013
3a35eeb3
PB
10014else
10015 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
10016fi
10017
10018
10019
10020
10021if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10022 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10023 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10024echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10025 if test -x $with_build_time_tools/nm; then
10026 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10027 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
10028 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10029echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 10030 else
c6b750e1
DJ
10031 echo "$as_me:$LINENO: result: no" >&5
10032echo "${ECHO_T}no" >&6
3a35eeb3 10033 fi
2429c060
PB
10034 elif test $build != $host && test $have_gcc_for_target = yes; then
10035 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
10036 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10037 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
10038 fi
10039fi
c6b750e1 10040if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10041 # Extract the first word of "nm", so it can be a program name with args.
10042set dummy nm; ac_word=$2
c6b750e1
DJ
10043echo "$as_me:$LINENO: checking for $ac_word" >&5
10044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10045if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10047else
c6b750e1
DJ
10048 case $NM_FOR_TARGET in
10049 [\\/]* | ?:[\\/]*)
2429c060
PB
10050 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10051 ;;
2429c060 10052 *)
c6b750e1
DJ
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054for as_dir in $gcc_cv_tool_dirs
10055do
10056 IFS=$as_save_IFS
10057 test -z "$as_dir" && as_dir=.
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10060 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10062 break 2
10063 fi
10064done
10065done
10066
2429c060
PB
10067 ;;
10068esac
10069fi
c6b750e1
DJ
10070NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10071
2429c060 10072if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10073 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10074echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 10075else
c6b750e1
DJ
10076 echo "$as_me:$LINENO: result: no" >&5
10077echo "${ECHO_T}no" >&6
2429c060
PB
10078fi
10079
10080fi
10081if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
10082
10083
10084if test -n "$NM_FOR_TARGET"; then
10085 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10086elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10087 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10088fi
10089
10090if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10091 for ncn_progname in nm; do
10092 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10093set dummy ${ncn_progname}; ac_word=$2
10094echo "$as_me:$LINENO: checking for $ac_word" >&5
10095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10096if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
10098else
10099 if test -n "$NM_FOR_TARGET"; then
10100 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10101else
10102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10103for as_dir in $PATH
10104do
10105 IFS=$as_save_IFS
10106 test -z "$as_dir" && as_dir=.
10107 for ac_exec_ext in '' $ac_executable_extensions; do
10108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10109 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10111 break 2
10112 fi
10113done
10114done
10115
10116fi
10117fi
10118NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10119if test -n "$NM_FOR_TARGET"; then
10120 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10121echo "${ECHO_T}$NM_FOR_TARGET" >&6
10122else
10123 echo "$as_me:$LINENO: result: no" >&5
10124echo "${ECHO_T}no" >&6
10125fi
10126
10127 done
10128fi
10129
10130if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10131 for ncn_progname in nm; do
c6b750e1
DJ
10132 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10133echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10134 if test -x $with_build_time_tools/${ncn_progname}; then
10135 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10136 echo "$as_me:$LINENO: result: yes" >&5
10137echo "${ECHO_T}yes" >&6
2429c060
PB
10138 break
10139 else
c6b750e1
DJ
10140 echo "$as_me:$LINENO: result: no" >&5
10141echo "${ECHO_T}no" >&6
2429c060
PB
10142 fi
10143 done
10144fi
10145
10146if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10147 for ncn_progname in nm; do
10148 if test -n "$ncn_target_tool_prefix"; then
10149 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10150set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10151echo "$as_me:$LINENO: checking for $ac_word" >&5
10152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10153if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10155else
55db4b87
PB
10156 if test -n "$NM_FOR_TARGET"; then
10157 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10158else
c6b750e1
DJ
10159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10160for as_dir in $PATH
10161do
10162 IFS=$as_save_IFS
10163 test -z "$as_dir" && as_dir=.
10164 for ac_exec_ext in '' $ac_executable_extensions; do
10165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10166 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10168 break 2
10169 fi
10170done
10171done
10172
859789af
AC
10173fi
10174fi
c6b750e1 10175NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 10176if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10177 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10178echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10179else
c6b750e1
DJ
10180 echo "$as_me:$LINENO: result: no" >&5
10181echo "${ECHO_T}no" >&6
859789af
AC
10182fi
10183
2429c060
PB
10184 fi
10185 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10186 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10187set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10188echo "$as_me:$LINENO: checking for $ac_word" >&5
10189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10190if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10192else
05cbd757
PB
10193 if test -n "$NM_FOR_TARGET"; then
10194 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10195else
c6b750e1
DJ
10196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197for as_dir in $PATH
10198do
10199 IFS=$as_save_IFS
10200 test -z "$as_dir" && as_dir=.
10201 for ac_exec_ext in '' $ac_executable_extensions; do
10202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10203 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10205 break 2
10206 fi
10207done
10208done
10209
859789af
AC
10210fi
10211fi
c6b750e1 10212NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10213if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10214 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10215echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10216else
c6b750e1
DJ
10217 echo "$as_me:$LINENO: result: no" >&5
10218echo "${ECHO_T}no" >&6
859789af 10219fi
c6b750e1 10220
2429c060
PB
10221 fi
10222 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10223 done
10224fi
c6b750e1 10225
05cbd757
PB
10226if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10227 set dummy nm
10228 if test $build = $target ; then
10229 NM_FOR_TARGET="$2"
859789af 10230 else
05cbd757 10231 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10232 fi
d3f5afc4
MS
10233else
10234 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10235fi
10236
3a35eeb3
PB
10237else
10238 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10239fi
10240
10241
10242
10243
10244if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10245 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10246 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10247echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10248 if test -x $with_build_time_tools/objdump; then
10249 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10250 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10251 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10252echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10253 else
c6b750e1
DJ
10254 echo "$as_me:$LINENO: result: no" >&5
10255echo "${ECHO_T}no" >&6
3a35eeb3 10256 fi
2429c060
PB
10257 elif test $build != $host && test $have_gcc_for_target = yes; then
10258 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10259 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10260 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10261 fi
10262fi
c6b750e1 10263if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10264 # Extract the first word of "objdump", so it can be a program name with args.
10265set dummy objdump; ac_word=$2
c6b750e1
DJ
10266echo "$as_me:$LINENO: checking for $ac_word" >&5
10267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10268if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10270else
c6b750e1
DJ
10271 case $OBJDUMP_FOR_TARGET in
10272 [\\/]* | ?:[\\/]*)
2429c060
PB
10273 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10274 ;;
2429c060 10275 *)
c6b750e1
DJ
10276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277for as_dir in $gcc_cv_tool_dirs
10278do
10279 IFS=$as_save_IFS
10280 test -z "$as_dir" && as_dir=.
10281 for ac_exec_ext in '' $ac_executable_extensions; do
10282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10283 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10285 break 2
10286 fi
10287done
10288done
10289
2429c060
PB
10290 ;;
10291esac
10292fi
c6b750e1
DJ
10293OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10294
2429c060 10295if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10296 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10297echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10298else
c6b750e1
DJ
10299 echo "$as_me:$LINENO: result: no" >&5
10300echo "${ECHO_T}no" >&6
2429c060
PB
10301fi
10302
10303fi
10304if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10305
10306
10307if test -n "$OBJDUMP_FOR_TARGET"; then
10308 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10309elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10310 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10311fi
10312
10313if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10314 for ncn_progname in objdump; do
10315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10316set dummy ${ncn_progname}; ac_word=$2
10317echo "$as_me:$LINENO: checking for $ac_word" >&5
10318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10319if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10321else
10322 if test -n "$OBJDUMP_FOR_TARGET"; then
10323 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10324else
10325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10326for as_dir in $PATH
10327do
10328 IFS=$as_save_IFS
10329 test -z "$as_dir" && as_dir=.
10330 for ac_exec_ext in '' $ac_executable_extensions; do
10331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10332 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10334 break 2
10335 fi
10336done
10337done
10338
10339fi
10340fi
10341OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10342if test -n "$OBJDUMP_FOR_TARGET"; then
10343 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10344echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10345else
10346 echo "$as_me:$LINENO: result: no" >&5
10347echo "${ECHO_T}no" >&6
10348fi
10349
10350 done
10351fi
10352
10353if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10354 for ncn_progname in objdump; do
c6b750e1
DJ
10355 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10356echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10357 if test -x $with_build_time_tools/${ncn_progname}; then
10358 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10359 echo "$as_me:$LINENO: result: yes" >&5
10360echo "${ECHO_T}yes" >&6
2429c060
PB
10361 break
10362 else
c6b750e1
DJ
10363 echo "$as_me:$LINENO: result: no" >&5
10364echo "${ECHO_T}no" >&6
2429c060
PB
10365 fi
10366 done
10367fi
10368
10369if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10370 for ncn_progname in objdump; do
10371 if test -n "$ncn_target_tool_prefix"; then
10372 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10373set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10374echo "$as_me:$LINENO: checking for $ac_word" >&5
10375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10376if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10378else
10379 if test -n "$OBJDUMP_FOR_TARGET"; then
10380 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10381else
c6b750e1
DJ
10382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10383for as_dir in $PATH
10384do
10385 IFS=$as_save_IFS
10386 test -z "$as_dir" && as_dir=.
10387 for ac_exec_ext in '' $ac_executable_extensions; do
10388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10389 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10391 break 2
10392 fi
10393done
10394done
10395
5ae72758
DJ
10396fi
10397fi
c6b750e1 10398OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10399if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10400 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10401echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10402else
c6b750e1
DJ
10403 echo "$as_me:$LINENO: result: no" >&5
10404echo "${ECHO_T}no" >&6
5ae72758
DJ
10405fi
10406
2429c060
PB
10407 fi
10408 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10410set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10411echo "$as_me:$LINENO: checking for $ac_word" >&5
10412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10413if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10414 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10415else
10416 if test -n "$OBJDUMP_FOR_TARGET"; then
10417 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10418else
c6b750e1
DJ
10419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420for as_dir in $PATH
10421do
10422 IFS=$as_save_IFS
10423 test -z "$as_dir" && as_dir=.
10424 for ac_exec_ext in '' $ac_executable_extensions; do
10425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10426 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10428 break 2
10429 fi
10430done
10431done
10432
5ae72758
DJ
10433fi
10434fi
c6b750e1 10435OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10436if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10437 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10438echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10439else
c6b750e1
DJ
10440 echo "$as_me:$LINENO: result: no" >&5
10441echo "${ECHO_T}no" >&6
5ae72758 10442fi
c6b750e1 10443
2429c060
PB
10444 fi
10445 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10446 done
10447fi
c6b750e1 10448
5ae72758
DJ
10449if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10450 set dummy objdump
10451 if test $build = $target ; then
10452 OBJDUMP_FOR_TARGET="$2"
10453 else
10454 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10455 fi
d3f5afc4
MS
10456else
10457 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10458fi
10459
3a35eeb3
PB
10460else
10461 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10462fi
10463
10464
10465
10466
10467if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10468 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10469 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10470echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10471 if test -x $with_build_time_tools/ranlib; then
10472 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10473 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10474 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10475echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10476 else
c6b750e1
DJ
10477 echo "$as_me:$LINENO: result: no" >&5
10478echo "${ECHO_T}no" >&6
3a35eeb3 10479 fi
2429c060
PB
10480 elif test $build != $host && test $have_gcc_for_target = yes; then
10481 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10482 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10483 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10484 fi
10485fi
c6b750e1 10486if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10487 # Extract the first word of "ranlib", so it can be a program name with args.
10488set dummy ranlib; ac_word=$2
c6b750e1
DJ
10489echo "$as_me:$LINENO: checking for $ac_word" >&5
10490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10491if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10493else
c6b750e1
DJ
10494 case $RANLIB_FOR_TARGET in
10495 [\\/]* | ?:[\\/]*)
2429c060
PB
10496 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10497 ;;
2429c060 10498 *)
c6b750e1
DJ
10499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500for as_dir in $gcc_cv_tool_dirs
10501do
10502 IFS=$as_save_IFS
10503 test -z "$as_dir" && as_dir=.
10504 for ac_exec_ext in '' $ac_executable_extensions; do
10505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10506 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10508 break 2
10509 fi
10510done
10511done
10512
2429c060
PB
10513 ;;
10514esac
10515fi
c6b750e1
DJ
10516RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10517
2429c060 10518if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10519 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10520echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10521else
c6b750e1
DJ
10522 echo "$as_me:$LINENO: result: no" >&5
10523echo "${ECHO_T}no" >&6
2429c060
PB
10524fi
10525
10526fi
10527if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10528
10529
10530if test -n "$RANLIB_FOR_TARGET"; then
10531 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10532elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10533 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10534fi
10535
10536if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10537 for ncn_progname in ranlib; do
10538 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10539set dummy ${ncn_progname}; ac_word=$2
10540echo "$as_me:$LINENO: checking for $ac_word" >&5
10541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10542if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10543 echo $ECHO_N "(cached) $ECHO_C" >&6
10544else
10545 if test -n "$RANLIB_FOR_TARGET"; then
10546 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10547else
10548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10549for as_dir in $PATH
10550do
10551 IFS=$as_save_IFS
10552 test -z "$as_dir" && as_dir=.
10553 for ac_exec_ext in '' $ac_executable_extensions; do
10554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10555 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10557 break 2
10558 fi
10559done
10560done
10561
10562fi
10563fi
10564RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10565if test -n "$RANLIB_FOR_TARGET"; then
10566 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10567echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10568else
10569 echo "$as_me:$LINENO: result: no" >&5
10570echo "${ECHO_T}no" >&6
10571fi
10572
10573 done
10574fi
10575
10576if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10577 for ncn_progname in ranlib; do
c6b750e1
DJ
10578 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10579echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10580 if test -x $with_build_time_tools/${ncn_progname}; then
10581 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10582 echo "$as_me:$LINENO: result: yes" >&5
10583echo "${ECHO_T}yes" >&6
2429c060
PB
10584 break
10585 else
c6b750e1
DJ
10586 echo "$as_me:$LINENO: result: no" >&5
10587echo "${ECHO_T}no" >&6
2429c060
PB
10588 fi
10589 done
10590fi
10591
10592if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10593 for ncn_progname in ranlib; do
10594 if test -n "$ncn_target_tool_prefix"; then
10595 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10596set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10597echo "$as_me:$LINENO: checking for $ac_word" >&5
10598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10599if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10600 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10601else
55db4b87
PB
10602 if test -n "$RANLIB_FOR_TARGET"; then
10603 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10604else
c6b750e1
DJ
10605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10606for as_dir in $PATH
10607do
10608 IFS=$as_save_IFS
10609 test -z "$as_dir" && as_dir=.
10610 for ac_exec_ext in '' $ac_executable_extensions; do
10611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10612 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10614 break 2
10615 fi
10616done
10617done
10618
859789af
AC
10619fi
10620fi
c6b750e1 10621RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10622if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10623 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10624echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10625else
c6b750e1
DJ
10626 echo "$as_me:$LINENO: result: no" >&5
10627echo "${ECHO_T}no" >&6
859789af
AC
10628fi
10629
2429c060
PB
10630 fi
10631 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10632 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10633set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10634echo "$as_me:$LINENO: checking for $ac_word" >&5
10635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10636if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10638else
05cbd757
PB
10639 if test -n "$RANLIB_FOR_TARGET"; then
10640 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10641else
c6b750e1
DJ
10642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10643for as_dir in $PATH
10644do
10645 IFS=$as_save_IFS
10646 test -z "$as_dir" && as_dir=.
10647 for ac_exec_ext in '' $ac_executable_extensions; do
10648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10649 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10651 break 2
10652 fi
10653done
10654done
10655
859789af
AC
10656fi
10657fi
c6b750e1 10658RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10659if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10660 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10661echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10662else
c6b750e1
DJ
10663 echo "$as_me:$LINENO: result: no" >&5
10664echo "${ECHO_T}no" >&6
859789af 10665fi
c6b750e1 10666
2429c060
PB
10667 fi
10668 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10669 done
10670fi
c6b750e1 10671
2429c060
PB
10672if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10673 set dummy ranlib
10674 if test $build = $target ; then
10675 RANLIB_FOR_TARGET="$2"
10676 else
10677 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10678 fi
d3f5afc4
MS
10679else
10680 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10681fi
05cbd757 10682
3a35eeb3
PB
10683else
10684 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10685fi
10686
2429c060
PB
10687
10688
10689
10690if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10691 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10692 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10693echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10694 if test -x $with_build_time_tools/strip; then
10695 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10696 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10697 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10698echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10699 else
c6b750e1
DJ
10700 echo "$as_me:$LINENO: result: no" >&5
10701echo "${ECHO_T}no" >&6
3a35eeb3 10702 fi
2429c060
PB
10703 elif test $build != $host && test $have_gcc_for_target = yes; then
10704 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10705 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10706 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10707 fi
10708fi
c6b750e1 10709if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10710 # Extract the first word of "strip", so it can be a program name with args.
10711set dummy strip; ac_word=$2
c6b750e1
DJ
10712echo "$as_me:$LINENO: checking for $ac_word" >&5
10713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10714if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10715 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10716else
c6b750e1
DJ
10717 case $STRIP_FOR_TARGET in
10718 [\\/]* | ?:[\\/]*)
2429c060
PB
10719 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10720 ;;
2429c060 10721 *)
c6b750e1
DJ
10722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723for as_dir in $gcc_cv_tool_dirs
10724do
10725 IFS=$as_save_IFS
10726 test -z "$as_dir" && as_dir=.
10727 for ac_exec_ext in '' $ac_executable_extensions; do
10728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10729 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10731 break 2
10732 fi
10733done
10734done
10735
2429c060
PB
10736 ;;
10737esac
10738fi
c6b750e1
DJ
10739STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10740
2429c060 10741if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10742 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10743echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10744else
c6b750e1
DJ
10745 echo "$as_me:$LINENO: result: no" >&5
10746echo "${ECHO_T}no" >&6
2429c060
PB
10747fi
10748
10749fi
10750if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10751
10752
10753if test -n "$STRIP_FOR_TARGET"; then
10754 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10755elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10756 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10757fi
10758
10759if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10760 for ncn_progname in strip; do
10761 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10762set dummy ${ncn_progname}; ac_word=$2
10763echo "$as_me:$LINENO: checking for $ac_word" >&5
10764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10765if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10767else
10768 if test -n "$STRIP_FOR_TARGET"; then
10769 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10770else
10771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10772for as_dir in $PATH
10773do
10774 IFS=$as_save_IFS
10775 test -z "$as_dir" && as_dir=.
10776 for ac_exec_ext in '' $ac_executable_extensions; do
10777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10778 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10780 break 2
10781 fi
10782done
10783done
10784
10785fi
10786fi
10787STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10788if test -n "$STRIP_FOR_TARGET"; then
10789 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10790echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10791else
10792 echo "$as_me:$LINENO: result: no" >&5
10793echo "${ECHO_T}no" >&6
10794fi
10795
10796 done
10797fi
10798
10799if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10800 for ncn_progname in strip; do
c6b750e1
DJ
10801 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10802echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10803 if test -x $with_build_time_tools/${ncn_progname}; then
10804 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10805 echo "$as_me:$LINENO: result: yes" >&5
10806echo "${ECHO_T}yes" >&6
2429c060
PB
10807 break
10808 else
c6b750e1
DJ
10809 echo "$as_me:$LINENO: result: no" >&5
10810echo "${ECHO_T}no" >&6
2429c060
PB
10811 fi
10812 done
10813fi
10814
10815if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10816 for ncn_progname in strip; do
10817 if test -n "$ncn_target_tool_prefix"; then
10818 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10819set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10820echo "$as_me:$LINENO: checking for $ac_word" >&5
10821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10822if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10824else
10825 if test -n "$STRIP_FOR_TARGET"; then
10826 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10827else
10828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10829for as_dir in $PATH
10830do
10831 IFS=$as_save_IFS
10832 test -z "$as_dir" && as_dir=.
10833 for ac_exec_ext in '' $ac_executable_extensions; do
10834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10835 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10837 break 2
10838 fi
10839done
10840done
10841
7e0f7140
GK
10842fi
10843fi
c6b750e1 10844STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10845if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10846 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10847echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10848else
c6b750e1
DJ
10849 echo "$as_me:$LINENO: result: no" >&5
10850echo "${ECHO_T}no" >&6
7e0f7140
GK
10851fi
10852
2429c060
PB
10853 fi
10854 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10856set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10857echo "$as_me:$LINENO: checking for $ac_word" >&5
10858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10859if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10861else
10862 if test -n "$STRIP_FOR_TARGET"; then
10863 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10864else
c6b750e1
DJ
10865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866for as_dir in $PATH
10867do
10868 IFS=$as_save_IFS
10869 test -z "$as_dir" && as_dir=.
10870 for ac_exec_ext in '' $ac_executable_extensions; do
10871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10872 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10874 break 2
10875 fi
10876done
10877done
10878
7e0f7140
GK
10879fi
10880fi
c6b750e1 10881STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10882if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10883 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10884echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10885else
c6b750e1
DJ
10886 echo "$as_me:$LINENO: result: no" >&5
10887echo "${ECHO_T}no" >&6
7e0f7140 10888fi
c6b750e1 10889
2429c060
PB
10890 fi
10891 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10892 done
10893fi
c6b750e1 10894
7e0f7140
GK
10895if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10896 set dummy strip
10897 if test $build = $target ; then
10898 STRIP_FOR_TARGET="$2"
10899 else
10900 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10901 fi
d3f5afc4
MS
10902else
10903 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10904fi
10905
3a35eeb3
PB
10906else
10907 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10908fi
10909
10910
10911
10912
10913if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10914 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10915 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10916echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10917 if test -x $with_build_time_tools/windres; then
10918 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10919 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10920 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10921echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10922 else
c6b750e1
DJ
10923 echo "$as_me:$LINENO: result: no" >&5
10924echo "${ECHO_T}no" >&6
3a35eeb3 10925 fi
2429c060
PB
10926 elif test $build != $host && test $have_gcc_for_target = yes; then
10927 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10928 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10929 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10930 fi
10931fi
c6b750e1 10932if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10933 # Extract the first word of "windres", so it can be a program name with args.
10934set dummy windres; ac_word=$2
c6b750e1
DJ
10935echo "$as_me:$LINENO: checking for $ac_word" >&5
10936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10937if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10939else
c6b750e1
DJ
10940 case $WINDRES_FOR_TARGET in
10941 [\\/]* | ?:[\\/]*)
2429c060
PB
10942 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10943 ;;
2429c060 10944 *)
c6b750e1
DJ
10945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946for as_dir in $gcc_cv_tool_dirs
10947do
10948 IFS=$as_save_IFS
10949 test -z "$as_dir" && as_dir=.
10950 for ac_exec_ext in '' $ac_executable_extensions; do
10951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10952 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10954 break 2
10955 fi
10956done
10957done
10958
2429c060
PB
10959 ;;
10960esac
10961fi
c6b750e1
DJ
10962WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10963
2429c060 10964if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10965 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10966echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10967else
c6b750e1
DJ
10968 echo "$as_me:$LINENO: result: no" >&5
10969echo "${ECHO_T}no" >&6
2429c060
PB
10970fi
10971
10972fi
10973if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10974
10975
10976if test -n "$WINDRES_FOR_TARGET"; then
10977 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10978elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10979 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10980fi
10981
10982if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10983 for ncn_progname in windres; do
10984 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10985set dummy ${ncn_progname}; ac_word=$2
10986echo "$as_me:$LINENO: checking for $ac_word" >&5
10987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10988if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10990else
10991 if test -n "$WINDRES_FOR_TARGET"; then
10992 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10993else
10994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10995for as_dir in $PATH
10996do
10997 IFS=$as_save_IFS
10998 test -z "$as_dir" && as_dir=.
10999 for ac_exec_ext in '' $ac_executable_extensions; do
11000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11001 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11003 break 2
11004 fi
11005done
11006done
11007
11008fi
11009fi
11010WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11011if test -n "$WINDRES_FOR_TARGET"; then
11012 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11013echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11014else
11015 echo "$as_me:$LINENO: result: no" >&5
11016echo "${ECHO_T}no" >&6
11017fi
11018
11019 done
11020fi
11021
11022if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11023 for ncn_progname in windres; do
c6b750e1
DJ
11024 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11025echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11026 if test -x $with_build_time_tools/${ncn_progname}; then
11027 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11028 echo "$as_me:$LINENO: result: yes" >&5
11029echo "${ECHO_T}yes" >&6
2429c060
PB
11030 break
11031 else
c6b750e1
DJ
11032 echo "$as_me:$LINENO: result: no" >&5
11033echo "${ECHO_T}no" >&6
2429c060
PB
11034 fi
11035 done
11036fi
11037
11038if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11039 for ncn_progname in windres; do
11040 if test -n "$ncn_target_tool_prefix"; then
11041 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11042set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11043echo "$as_me:$LINENO: checking for $ac_word" >&5
11044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11045if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11047else
55db4b87
PB
11048 if test -n "$WINDRES_FOR_TARGET"; then
11049 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11050else
c6b750e1
DJ
11051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11052for as_dir in $PATH
11053do
11054 IFS=$as_save_IFS
11055 test -z "$as_dir" && as_dir=.
11056 for ac_exec_ext in '' $ac_executable_extensions; do
11057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11058 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11060 break 2
11061 fi
11062done
11063done
11064
859789af
AC
11065fi
11066fi
c6b750e1 11067WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 11068if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11069 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11070echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11071else
c6b750e1
DJ
11072 echo "$as_me:$LINENO: result: no" >&5
11073echo "${ECHO_T}no" >&6
859789af
AC
11074fi
11075
2429c060
PB
11076 fi
11077 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11079set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11080echo "$as_me:$LINENO: checking for $ac_word" >&5
11081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11082if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11084else
05cbd757
PB
11085 if test -n "$WINDRES_FOR_TARGET"; then
11086 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11087else
c6b750e1
DJ
11088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089for as_dir in $PATH
11090do
11091 IFS=$as_save_IFS
11092 test -z "$as_dir" && as_dir=.
11093 for ac_exec_ext in '' $ac_executable_extensions; do
11094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11095 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11097 break 2
11098 fi
11099done
11100done
11101
859789af
AC
11102fi
11103fi
c6b750e1 11104WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 11105if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11106 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11107echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11108else
c6b750e1
DJ
11109 echo "$as_me:$LINENO: result: no" >&5
11110echo "${ECHO_T}no" >&6
859789af 11111fi
c6b750e1 11112
2429c060
PB
11113 fi
11114 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11115 done
11116fi
c6b750e1 11117
05cbd757
PB
11118if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11119 set dummy windres
11120 if test $build = $target ; then
11121 WINDRES_FOR_TARGET="$2"
859789af 11122 else
05cbd757 11123 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11124 fi
d3f5afc4
MS
11125else
11126 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
11127fi
11128
3a35eeb3
PB
11129else
11130 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
11131fi
11132
852e5f18 11133
0c24b341
NC
11134
11135
11136if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11137 if test -n "$with_build_time_tools"; then
11138 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11139echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11140 if test -x $with_build_time_tools/windmc; then
11141 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11142 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11143 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11144echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11145 else
11146 echo "$as_me:$LINENO: result: no" >&5
11147echo "${ECHO_T}no" >&6
11148 fi
11149 elif test $build != $host && test $have_gcc_for_target = yes; then
11150 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11151 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11152 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11153 fi
11154fi
11155if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11156 # Extract the first word of "windmc", so it can be a program name with args.
11157set dummy windmc; ac_word=$2
11158echo "$as_me:$LINENO: checking for $ac_word" >&5
11159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11160if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11161 echo $ECHO_N "(cached) $ECHO_C" >&6
11162else
11163 case $WINDMC_FOR_TARGET in
11164 [\\/]* | ?:[\\/]*)
11165 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11166 ;;
11167 *)
11168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169for as_dir in $gcc_cv_tool_dirs
11170do
11171 IFS=$as_save_IFS
11172 test -z "$as_dir" && as_dir=.
11173 for ac_exec_ext in '' $ac_executable_extensions; do
11174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11175 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11177 break 2
11178 fi
11179done
11180done
11181
11182 ;;
11183esac
11184fi
11185WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11186
11187if test -n "$WINDMC_FOR_TARGET"; then
11188 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11189echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11190else
11191 echo "$as_me:$LINENO: result: no" >&5
11192echo "${ECHO_T}no" >&6
11193fi
11194
11195fi
11196if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11197
11198
11199if test -n "$WINDMC_FOR_TARGET"; then
11200 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11201elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11202 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11203fi
11204
11205if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11206 for ncn_progname in windmc; do
11207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11208set dummy ${ncn_progname}; ac_word=$2
11209echo "$as_me:$LINENO: checking for $ac_word" >&5
11210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11211if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11213else
11214 if test -n "$WINDMC_FOR_TARGET"; then
11215 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11216else
11217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218for as_dir in $PATH
11219do
11220 IFS=$as_save_IFS
11221 test -z "$as_dir" && as_dir=.
11222 for ac_exec_ext in '' $ac_executable_extensions; do
11223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11224 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11226 break 2
11227 fi
11228done
11229done
11230
11231fi
11232fi
11233WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11234if test -n "$WINDMC_FOR_TARGET"; then
11235 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11236echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11237else
11238 echo "$as_me:$LINENO: result: no" >&5
11239echo "${ECHO_T}no" >&6
11240fi
11241
11242 done
11243fi
11244
11245if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11246 for ncn_progname in windmc; do
11247 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11248echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11249 if test -x $with_build_time_tools/${ncn_progname}; then
11250 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11251 echo "$as_me:$LINENO: result: yes" >&5
11252echo "${ECHO_T}yes" >&6
11253 break
11254 else
11255 echo "$as_me:$LINENO: result: no" >&5
11256echo "${ECHO_T}no" >&6
11257 fi
11258 done
11259fi
11260
11261if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11262 for ncn_progname in windmc; do
11263 if test -n "$ncn_target_tool_prefix"; then
11264 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11265set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11266echo "$as_me:$LINENO: checking for $ac_word" >&5
11267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11268if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11270else
11271 if test -n "$WINDMC_FOR_TARGET"; then
11272 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11273else
11274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275for as_dir in $PATH
11276do
11277 IFS=$as_save_IFS
11278 test -z "$as_dir" && as_dir=.
11279 for ac_exec_ext in '' $ac_executable_extensions; do
11280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11281 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11283 break 2
11284 fi
11285done
11286done
11287
11288fi
11289fi
11290WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11291if test -n "$WINDMC_FOR_TARGET"; then
11292 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11293echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11294else
11295 echo "$as_me:$LINENO: result: no" >&5
11296echo "${ECHO_T}no" >&6
11297fi
11298
11299 fi
11300 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11302set dummy ${ncn_progname}; ac_word=$2
11303echo "$as_me:$LINENO: checking for $ac_word" >&5
11304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11305if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11306 echo $ECHO_N "(cached) $ECHO_C" >&6
11307else
11308 if test -n "$WINDMC_FOR_TARGET"; then
11309 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11310else
11311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312for as_dir in $PATH
11313do
11314 IFS=$as_save_IFS
11315 test -z "$as_dir" && as_dir=.
11316 for ac_exec_ext in '' $ac_executable_extensions; do
11317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11318 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11320 break 2
11321 fi
11322done
11323done
11324
11325fi
11326fi
11327WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11328if test -n "$WINDMC_FOR_TARGET"; then
11329 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11330echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11331else
11332 echo "$as_me:$LINENO: result: no" >&5
11333echo "${ECHO_T}no" >&6
11334fi
11335
11336 fi
11337 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11338 done
11339fi
11340
11341if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11342 set dummy windmc
11343 if test $build = $target ; then
11344 WINDMC_FOR_TARGET="$2"
11345 else
11346 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11347 fi
11348else
11349 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11350fi
11351
11352else
11353 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11354fi
11355
11356
be01d343
PB
11357RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11358
c6b750e1
DJ
11359echo "$as_me:$LINENO: checking where to find the target ar" >&5
11360echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11361if test "x${build}" != "x${host}" ; then
2429c060
PB
11362 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11363 # We already found the complete path
b8025f34
AS
11364 ac_dir=`dirname $AR_FOR_TARGET`
11365 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11366echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11367 else
11368 # Canadian cross, just use what we found
c6b750e1
DJ
11369 echo "$as_me:$LINENO: result: pre-installed" >&5
11370echo "${ECHO_T}pre-installed" >&6
2429c060 11371 fi
be01d343
PB
11372else
11373 ok=yes
11374 case " ${configdirs} " in
11375 *" binutils "*) ;;
11376 *) ok=no ;;
11377 esac
c6b750e1 11378
be01d343
PB
11379 if test $ok = yes; then
11380 # An in-tree tool is available and we can use it
11381 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11382 echo "$as_me:$LINENO: result: just compiled" >&5
11383echo "${ECHO_T}just compiled" >&6
2429c060
PB
11384 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11385 # We already found the complete path
b8025f34
AS
11386 ac_dir=`dirname $AR_FOR_TARGET`
11387 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11388echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11389 elif test "x$target" = "x$host"; then
11390 # We can use an host tool
11391 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11392 echo "$as_me:$LINENO: result: host tool" >&5
11393echo "${ECHO_T}host tool" >&6
be01d343
PB
11394 else
11395 # We need a cross tool
c6b750e1
DJ
11396 echo "$as_me:$LINENO: result: pre-installed" >&5
11397echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11398 fi
11399fi
4b900473 11400
c6b750e1
DJ
11401echo "$as_me:$LINENO: checking where to find the target as" >&5
11402echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11403if test "x${build}" != "x${host}" ; then
2429c060
PB
11404 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11405 # We already found the complete path
b8025f34
AS
11406 ac_dir=`dirname $AS_FOR_TARGET`
11407 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11408echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11409 else
11410 # Canadian cross, just use what we found
c6b750e1
DJ
11411 echo "$as_me:$LINENO: result: pre-installed" >&5
11412echo "${ECHO_T}pre-installed" >&6
2429c060 11413 fi
be01d343
PB
11414else
11415 ok=yes
11416 case " ${configdirs} " in
11417 *" gas "*) ;;
11418 *) ok=no ;;
11419 esac
c6b750e1 11420
be01d343
PB
11421 if test $ok = yes; then
11422 # An in-tree tool is available and we can use it
11423 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11424 echo "$as_me:$LINENO: result: just compiled" >&5
11425echo "${ECHO_T}just compiled" >&6
2429c060
PB
11426 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11427 # We already found the complete path
b8025f34
AS
11428 ac_dir=`dirname $AS_FOR_TARGET`
11429 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11430echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11431 elif test "x$target" = "x$host"; then
11432 # We can use an host tool
11433 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11434 echo "$as_me:$LINENO: result: host tool" >&5
11435echo "${ECHO_T}host tool" >&6
be01d343
PB
11436 else
11437 # We need a cross tool
c6b750e1
DJ
11438 echo "$as_me:$LINENO: result: pre-installed" >&5
11439echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11440 fi
11441fi
4b900473 11442
c6b750e1
DJ
11443echo "$as_me:$LINENO: checking where to find the target cc" >&5
11444echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11445if test "x${build}" != "x${host}" ; then
2429c060
PB
11446 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11447 # We already found the complete path
b8025f34
AS
11448 ac_dir=`dirname $CC_FOR_TARGET`
11449 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11450echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11451 else
11452 # Canadian cross, just use what we found
c6b750e1
DJ
11453 echo "$as_me:$LINENO: result: pre-installed" >&5
11454echo "${ECHO_T}pre-installed" >&6
2429c060 11455 fi
be01d343
PB
11456else
11457 ok=yes
11458 case " ${configdirs} " in
11459 *" gcc "*) ;;
11460 *) ok=no ;;
11461 esac
c6b750e1 11462
be01d343
PB
11463 if test $ok = yes; then
11464 # An in-tree tool is available and we can use it
11465 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11466 echo "$as_me:$LINENO: result: just compiled" >&5
11467echo "${ECHO_T}just compiled" >&6
2429c060
PB
11468 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11469 # We already found the complete path
b8025f34
AS
11470 ac_dir=`dirname $CC_FOR_TARGET`
11471 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11472echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11473 elif test "x$target" = "x$host"; then
11474 # We can use an host tool
11475 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11476 echo "$as_me:$LINENO: result: host tool" >&5
11477echo "${ECHO_T}host tool" >&6
be01d343
PB
11478 else
11479 # We need a cross tool
c6b750e1
DJ
11480 echo "$as_me:$LINENO: result: pre-installed" >&5
11481echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11482 fi
11483fi
4b900473 11484
c6b750e1
DJ
11485echo "$as_me:$LINENO: checking where to find the target c++" >&5
11486echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11487if test "x${build}" != "x${host}" ; then
2429c060
PB
11488 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11489 # We already found the complete path
b8025f34
AS
11490 ac_dir=`dirname $CXX_FOR_TARGET`
11491 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11492echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11493 else
11494 # Canadian cross, just use what we found
c6b750e1
DJ
11495 echo "$as_me:$LINENO: result: pre-installed" >&5
11496echo "${ECHO_T}pre-installed" >&6
2429c060 11497 fi
be01d343
PB
11498else
11499 ok=yes
11500 case " ${configdirs} " in
11501 *" gcc "*) ;;
11502 *) ok=no ;;
11503 esac
11504 case ,${enable_languages}, in
11505 *,c++,*) ;;
11506 *) ok=no ;;
11507 esac
11508 if test $ok = yes; then
11509 # An in-tree tool is available and we can use it
11510 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
11511 echo "$as_me:$LINENO: result: just compiled" >&5
11512echo "${ECHO_T}just compiled" >&6
2429c060
PB
11513 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11514 # We already found the complete path
b8025f34
AS
11515 ac_dir=`dirname $CXX_FOR_TARGET`
11516 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11517echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11518 elif test "x$target" = "x$host"; then
11519 # We can use an host tool
11520 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11521 echo "$as_me:$LINENO: result: host tool" >&5
11522echo "${ECHO_T}host tool" >&6
be01d343
PB
11523 else
11524 # We need a cross tool
c6b750e1
DJ
11525 echo "$as_me:$LINENO: result: pre-installed" >&5
11526echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11527 fi
11528fi
4b900473 11529
c6b750e1
DJ
11530echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11531echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11532if test "x${build}" != "x${host}" ; then
2429c060
PB
11533 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11534 # We already found the complete path
b8025f34
AS
11535 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11536 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11537echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11538 else
11539 # Canadian cross, just use what we found
c6b750e1
DJ
11540 echo "$as_me:$LINENO: result: pre-installed" >&5
11541echo "${ECHO_T}pre-installed" >&6
2429c060 11542 fi
be01d343
PB
11543else
11544 ok=yes
11545 case " ${configdirs} " in
11546 *" gcc "*) ;;
11547 *) ok=no ;;
11548 esac
11549 case ,${enable_languages}, in
11550 *,c++,*) ;;
11551 *) ok=no ;;
11552 esac
11553 if test $ok = yes; then
11554 # An in-tree tool is available and we can use it
11555 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
11556 echo "$as_me:$LINENO: result: just compiled" >&5
11557echo "${ECHO_T}just compiled" >&6
2429c060
PB
11558 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11559 # We already found the complete path
b8025f34
AS
11560 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11561 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11562echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11563 elif test "x$target" = "x$host"; then
11564 # We can use an host tool
11565 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11566 echo "$as_me:$LINENO: result: host tool" >&5
11567echo "${ECHO_T}host tool" >&6
be01d343
PB
11568 else
11569 # We need a cross tool
c6b750e1
DJ
11570 echo "$as_me:$LINENO: result: pre-installed" >&5
11571echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11572 fi
11573fi
4b900473 11574
c6b750e1
DJ
11575echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11576echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11577if test "x${build}" != "x${host}" ; then
2429c060
PB
11578 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11579 # We already found the complete path
b8025f34
AS
11580 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11581 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11582echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11583 else
11584 # Canadian cross, just use what we found
c6b750e1
DJ
11585 echo "$as_me:$LINENO: result: pre-installed" >&5
11586echo "${ECHO_T}pre-installed" >&6
2429c060 11587 fi
be01d343
PB
11588else
11589 ok=yes
11590 case " ${configdirs} " in
11591 *" binutils "*) ;;
11592 *) ok=no ;;
11593 esac
c6b750e1 11594
be01d343
PB
11595 if test $ok = yes; then
11596 # An in-tree tool is available and we can use it
11597 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11598 echo "$as_me:$LINENO: result: just compiled" >&5
11599echo "${ECHO_T}just compiled" >&6
2429c060
PB
11600 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11601 # We already found the complete path
b8025f34
AS
11602 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11603 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11604echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11605 elif test "x$target" = "x$host"; then
11606 # We can use an host tool
11607 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11608 echo "$as_me:$LINENO: result: host tool" >&5
11609echo "${ECHO_T}host tool" >&6
be01d343
PB
11610 else
11611 # We need a cross tool
c6b750e1
DJ
11612 echo "$as_me:$LINENO: result: pre-installed" >&5
11613echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11614 fi
11615fi
4b900473 11616
c6b750e1
DJ
11617echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11618echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11619if test "x${build}" != "x${host}" ; then
2429c060
PB
11620 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11621 # We already found the complete path
b8025f34
AS
11622 ac_dir=`dirname $GCC_FOR_TARGET`
11623 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11624echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11625 else
11626 # Canadian cross, just use what we found
c6b750e1
DJ
11627 echo "$as_me:$LINENO: result: pre-installed" >&5
11628echo "${ECHO_T}pre-installed" >&6
2429c060 11629 fi
be01d343
PB
11630else
11631 ok=yes
11632 case " ${configdirs} " in
11633 *" gcc "*) ;;
11634 *) ok=no ;;
11635 esac
c6b750e1 11636
be01d343
PB
11637 if test $ok = yes; then
11638 # An in-tree tool is available and we can use it
11639 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11640 echo "$as_me:$LINENO: result: just compiled" >&5
11641echo "${ECHO_T}just compiled" >&6
2429c060
PB
11642 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11643 # We already found the complete path
b8025f34
AS
11644 ac_dir=`dirname $GCC_FOR_TARGET`
11645 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11646echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11647 elif test "x$target" = "x$host"; then
11648 # We can use an host tool
11649 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11650 echo "$as_me:$LINENO: result: host tool" >&5
11651echo "${ECHO_T}host tool" >&6
be01d343
PB
11652 else
11653 # We need a cross tool
c6b750e1
DJ
11654 echo "$as_me:$LINENO: result: pre-installed" >&5
11655echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11656 fi
11657fi
4b900473 11658
c6b750e1
DJ
11659echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11660echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11661if test "x${build}" != "x${host}" ; then
2429c060
PB
11662 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11663 # We already found the complete path
b8025f34
AS
11664 ac_dir=`dirname $GCJ_FOR_TARGET`
11665 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11666echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11667 else
11668 # Canadian cross, just use what we found
c6b750e1
DJ
11669 echo "$as_me:$LINENO: result: pre-installed" >&5
11670echo "${ECHO_T}pre-installed" >&6
2429c060 11671 fi
be01d343
PB
11672else
11673 ok=yes
11674 case " ${configdirs} " in
11675 *" gcc "*) ;;
11676 *) ok=no ;;
11677 esac
11678 case ,${enable_languages}, in
11679 *,java,*) ;;
11680 *) ok=no ;;
11681 esac
11682 if test $ok = yes; then
11683 # An in-tree tool is available and we can use it
11684 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11685 echo "$as_me:$LINENO: result: just compiled" >&5
11686echo "${ECHO_T}just compiled" >&6
2429c060
PB
11687 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11688 # We already found the complete path
b8025f34
AS
11689 ac_dir=`dirname $GCJ_FOR_TARGET`
11690 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11691echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11692 elif test "x$target" = "x$host"; then
11693 # We can use an host tool
11694 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11695 echo "$as_me:$LINENO: result: host tool" >&5
11696echo "${ECHO_T}host tool" >&6
be01d343
PB
11697 else
11698 # We need a cross tool
c6b750e1
DJ
11699 echo "$as_me:$LINENO: result: pre-installed" >&5
11700echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11701 fi
11702fi
4b900473 11703
c6b750e1
DJ
11704echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11705echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11706if test "x${build}" != "x${host}" ; then
2429c060
PB
11707 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11708 # We already found the complete path
b8025f34
AS
11709 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11710 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11711echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11712 else
11713 # Canadian cross, just use what we found
c6b750e1
DJ
11714 echo "$as_me:$LINENO: result: pre-installed" >&5
11715echo "${ECHO_T}pre-installed" >&6
2429c060 11716 fi
be01d343
PB
11717else
11718 ok=yes
11719 case " ${configdirs} " in
11720 *" gcc "*) ;;
11721 *) ok=no ;;
11722 esac
11723 case ,${enable_languages}, in
11724 *,fortran,*) ;;
11725 *) ok=no ;;
11726 esac
11727 if test $ok = yes; then
11728 # An in-tree tool is available and we can use it
11729 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11730 echo "$as_me:$LINENO: result: just compiled" >&5
11731echo "${ECHO_T}just compiled" >&6
2429c060
PB
11732 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11733 # We already found the complete path
b8025f34
AS
11734 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11735 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11736echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11737 elif test "x$target" = "x$host"; then
11738 # We can use an host tool
11739 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11740 echo "$as_me:$LINENO: result: host tool" >&5
11741echo "${ECHO_T}host tool" >&6
be01d343
PB
11742 else
11743 # We need a cross tool
c6b750e1
DJ
11744 echo "$as_me:$LINENO: result: pre-installed" >&5
11745echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11746 fi
11747fi
4b900473 11748
c6b750e1
DJ
11749echo "$as_me:$LINENO: checking where to find the target ld" >&5
11750echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11751if test "x${build}" != "x${host}" ; then
2429c060
PB
11752 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11753 # We already found the complete path
b8025f34
AS
11754 ac_dir=`dirname $LD_FOR_TARGET`
11755 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11756echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11757 else
11758 # Canadian cross, just use what we found
c6b750e1
DJ
11759 echo "$as_me:$LINENO: result: pre-installed" >&5
11760echo "${ECHO_T}pre-installed" >&6
2429c060 11761 fi
be01d343
PB
11762else
11763 ok=yes
11764 case " ${configdirs} " in
11765 *" ld "*) ;;
11766 *) ok=no ;;
11767 esac
c6b750e1 11768
be01d343
PB
11769 if test $ok = yes; then
11770 # An in-tree tool is available and we can use it
11771 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11772 echo "$as_me:$LINENO: result: just compiled" >&5
11773echo "${ECHO_T}just compiled" >&6
2429c060
PB
11774 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11775 # We already found the complete path
b8025f34
AS
11776 ac_dir=`dirname $LD_FOR_TARGET`
11777 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11778echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11779 elif test "x$target" = "x$host"; then
11780 # We can use an host tool
11781 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11782 echo "$as_me:$LINENO: result: host tool" >&5
11783echo "${ECHO_T}host tool" >&6
be01d343
PB
11784 else
11785 # We need a cross tool
c6b750e1
DJ
11786 echo "$as_me:$LINENO: result: pre-installed" >&5
11787echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11788 fi
11789fi
4b900473 11790
c6b750e1
DJ
11791echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11792echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11793if test "x${build}" != "x${host}" ; then
2429c060
PB
11794 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11795 # We already found the complete path
b8025f34
AS
11796 ac_dir=`dirname $LIPO_FOR_TARGET`
11797 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11798echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11799 else
11800 # Canadian cross, just use what we found
c6b750e1
DJ
11801 echo "$as_me:$LINENO: result: pre-installed" >&5
11802echo "${ECHO_T}pre-installed" >&6
2429c060 11803 fi
be01d343 11804else
2429c060
PB
11805 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11806 # We already found the complete path
b8025f34
AS
11807 ac_dir=`dirname $LIPO_FOR_TARGET`
11808 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11809echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11810 elif test "x$target" = "x$host"; then
be01d343
PB
11811 # We can use an host tool
11812 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11813 echo "$as_me:$LINENO: result: host tool" >&5
11814echo "${ECHO_T}host tool" >&6
be01d343
PB
11815 else
11816 # We need a cross tool
c6b750e1
DJ
11817 echo "$as_me:$LINENO: result: pre-installed" >&5
11818echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11819 fi
11820fi
4b900473 11821
c6b750e1
DJ
11822echo "$as_me:$LINENO: checking where to find the target nm" >&5
11823echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11824if test "x${build}" != "x${host}" ; then
2429c060
PB
11825 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11826 # We already found the complete path
b8025f34
AS
11827 ac_dir=`dirname $NM_FOR_TARGET`
11828 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11829echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11830 else
11831 # Canadian cross, just use what we found
c6b750e1
DJ
11832 echo "$as_me:$LINENO: result: pre-installed" >&5
11833echo "${ECHO_T}pre-installed" >&6
2429c060 11834 fi
be01d343
PB
11835else
11836 ok=yes
11837 case " ${configdirs} " in
11838 *" binutils "*) ;;
11839 *) ok=no ;;
11840 esac
c6b750e1 11841
be01d343
PB
11842 if test $ok = yes; then
11843 # An in-tree tool is available and we can use it
11844 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11845 echo "$as_me:$LINENO: result: just compiled" >&5
11846echo "${ECHO_T}just compiled" >&6
2429c060
PB
11847 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11848 # We already found the complete path
b8025f34
AS
11849 ac_dir=`dirname $NM_FOR_TARGET`
11850 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11851echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11852 elif test "x$target" = "x$host"; then
11853 # We can use an host tool
11854 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11855 echo "$as_me:$LINENO: result: host tool" >&5
11856echo "${ECHO_T}host tool" >&6
be01d343
PB
11857 else
11858 # We need a cross tool
c6b750e1
DJ
11859 echo "$as_me:$LINENO: result: pre-installed" >&5
11860echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11861 fi
11862fi
4b900473 11863
c6b750e1
DJ
11864echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11865echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11866if test "x${build}" != "x${host}" ; then
2429c060
PB
11867 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11868 # We already found the complete path
b8025f34
AS
11869 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11870 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11871echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11872 else
11873 # Canadian cross, just use what we found
c6b750e1
DJ
11874 echo "$as_me:$LINENO: result: pre-installed" >&5
11875echo "${ECHO_T}pre-installed" >&6
2429c060 11876 fi
be01d343
PB
11877else
11878 ok=yes
11879 case " ${configdirs} " in
11880 *" binutils "*) ;;
11881 *) ok=no ;;
11882 esac
c6b750e1 11883
be01d343
PB
11884 if test $ok = yes; then
11885 # An in-tree tool is available and we can use it
11886 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11887 echo "$as_me:$LINENO: result: just compiled" >&5
11888echo "${ECHO_T}just compiled" >&6
2429c060
PB
11889 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11890 # We already found the complete path
b8025f34
AS
11891 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11892 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11893echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11894 elif test "x$target" = "x$host"; then
11895 # We can use an host tool
11896 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11897 echo "$as_me:$LINENO: result: host tool" >&5
11898echo "${ECHO_T}host tool" >&6
be01d343
PB
11899 else
11900 # We need a cross tool
c6b750e1
DJ
11901 echo "$as_me:$LINENO: result: pre-installed" >&5
11902echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11903 fi
11904fi
4b900473 11905
c6b750e1
DJ
11906echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11907echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11908if test "x${build}" != "x${host}" ; then
2429c060
PB
11909 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11910 # We already found the complete path
b8025f34
AS
11911 ac_dir=`dirname $RANLIB_FOR_TARGET`
11912 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11913echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11914 else
11915 # Canadian cross, just use what we found
c6b750e1
DJ
11916 echo "$as_me:$LINENO: result: pre-installed" >&5
11917echo "${ECHO_T}pre-installed" >&6
2429c060 11918 fi
be01d343
PB
11919else
11920 ok=yes
11921 case " ${configdirs} " in
11922 *" binutils "*) ;;
11923 *) ok=no ;;
11924 esac
c6b750e1 11925
be01d343
PB
11926 if test $ok = yes; then
11927 # An in-tree tool is available and we can use it
11928 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11929 echo "$as_me:$LINENO: result: just compiled" >&5
11930echo "${ECHO_T}just compiled" >&6
2429c060
PB
11931 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11932 # We already found the complete path
b8025f34
AS
11933 ac_dir=`dirname $RANLIB_FOR_TARGET`
11934 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11935echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11936 elif test "x$target" = "x$host"; then
11937 # We can use an host tool
11938 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11939 echo "$as_me:$LINENO: result: host tool" >&5
11940echo "${ECHO_T}host tool" >&6
be01d343
PB
11941 else
11942 # We need a cross tool
c6b750e1
DJ
11943 echo "$as_me:$LINENO: result: pre-installed" >&5
11944echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11945 fi
11946fi
4b900473 11947
c6b750e1
DJ
11948echo "$as_me:$LINENO: checking where to find the target strip" >&5
11949echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11950if test "x${build}" != "x${host}" ; then
2429c060
PB
11951 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11952 # We already found the complete path
b8025f34
AS
11953 ac_dir=`dirname $STRIP_FOR_TARGET`
11954 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11955echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11956 else
11957 # Canadian cross, just use what we found
c6b750e1
DJ
11958 echo "$as_me:$LINENO: result: pre-installed" >&5
11959echo "${ECHO_T}pre-installed" >&6
2429c060 11960 fi
be01d343
PB
11961else
11962 ok=yes
11963 case " ${configdirs} " in
11964 *" binutils "*) ;;
11965 *) ok=no ;;
11966 esac
c6b750e1 11967
be01d343
PB
11968 if test $ok = yes; then
11969 # An in-tree tool is available and we can use it
11970 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11971 echo "$as_me:$LINENO: result: just compiled" >&5
11972echo "${ECHO_T}just compiled" >&6
2429c060
PB
11973 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11974 # We already found the complete path
b8025f34
AS
11975 ac_dir=`dirname $STRIP_FOR_TARGET`
11976 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11977echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11978 elif test "x$target" = "x$host"; then
11979 # We can use an host tool
11980 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11981 echo "$as_me:$LINENO: result: host tool" >&5
11982echo "${ECHO_T}host tool" >&6
be01d343
PB
11983 else
11984 # We need a cross tool
c6b750e1
DJ
11985 echo "$as_me:$LINENO: result: pre-installed" >&5
11986echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11987 fi
11988fi
4b900473 11989
c6b750e1
DJ
11990echo "$as_me:$LINENO: checking where to find the target windres" >&5
11991echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 11992if test "x${build}" != "x${host}" ; then
2429c060
PB
11993 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11994 # We already found the complete path
b8025f34
AS
11995 ac_dir=`dirname $WINDRES_FOR_TARGET`
11996 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11997echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11998 else
11999 # Canadian cross, just use what we found
c6b750e1
DJ
12000 echo "$as_me:$LINENO: result: pre-installed" >&5
12001echo "${ECHO_T}pre-installed" >&6
2429c060 12002 fi
be01d343
PB
12003else
12004 ok=yes
12005 case " ${configdirs} " in
12006 *" binutils "*) ;;
12007 *) ok=no ;;
12008 esac
c6b750e1 12009
be01d343
PB
12010 if test $ok = yes; then
12011 # An in-tree tool is available and we can use it
12012 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
12013 echo "$as_me:$LINENO: result: just compiled" >&5
12014echo "${ECHO_T}just compiled" >&6
2429c060
PB
12015 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12016 # We already found the complete path
b8025f34
AS
12017 ac_dir=`dirname $WINDRES_FOR_TARGET`
12018 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12019echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12020 elif test "x$target" = "x$host"; then
12021 # We can use an host tool
12022 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
12023 echo "$as_me:$LINENO: result: host tool" >&5
12024echo "${ECHO_T}host tool" >&6
be01d343
PB
12025 else
12026 # We need a cross tool
c6b750e1
DJ
12027 echo "$as_me:$LINENO: result: pre-installed" >&5
12028echo "${ECHO_T}pre-installed" >&6
be01d343 12029 fi
a0da8069 12030fi
54752a6b 12031
0c24b341
NC
12032echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12033echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12034if test "x${build}" != "x${host}" ; then
12035 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12036 # We already found the complete path
12037 ac_dir=`dirname $WINDMC_FOR_TARGET`
12038 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12039echo "${ECHO_T}pre-installed in $ac_dir" >&6
12040 else
12041 # Canadian cross, just use what we found
12042 echo "$as_me:$LINENO: result: pre-installed" >&5
12043echo "${ECHO_T}pre-installed" >&6
12044 fi
12045else
12046 ok=yes
12047 case " ${configdirs} " in
12048 *" binutils "*) ;;
12049 *) ok=no ;;
12050 esac
12051
12052 if test $ok = yes; then
12053 # An in-tree tool is available and we can use it
12054 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12055 echo "$as_me:$LINENO: result: just compiled" >&5
12056echo "${ECHO_T}just compiled" >&6
12057 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12058 # We already found the complete path
12059 ac_dir=`dirname $WINDMC_FOR_TARGET`
12060 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12061echo "${ECHO_T}pre-installed in $ac_dir" >&6
12062 elif test "x$target" = "x$host"; then
12063 # We can use an host tool
12064 WINDMC_FOR_TARGET='$(WINDMC)'
12065 echo "$as_me:$LINENO: result: host tool" >&5
12066echo "${ECHO_T}host tool" >&6
12067 else
12068 # We need a cross tool
12069 echo "$as_me:$LINENO: result: pre-installed" >&5
12070echo "${ECHO_T}pre-installed" >&6
12071 fi
12072fi
12073
54752a6b
NN
12074
12075
be01d343 12076
4b900473 12077
a0da8069
NN
12078# Certain tools may need extra flags.
12079AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12080RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12081NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12082
be01d343
PB
12083# When building target libraries, except in a Canadian cross, we use
12084# the same toolchain as the compiler we just built.
12085COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12086COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12087COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12088if test $host = $build; then
12089 case " $configdirs " in
12090 *" gcc "*)
12091 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12092 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12093 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12094 ;;
12095 esac
12096fi
12097
12098
12099
12100
12101
c6b750e1
DJ
12102echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12103echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
12104# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12105if test "${enable_maintainer_mode+set}" = set; then
12106 enableval="$enable_maintainer_mode"
12107 USE_MAINTAINER_MODE=$enableval
12108else
12109 USE_MAINTAINER_MODE=no
c6b750e1
DJ
12110fi;
12111echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12112echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
12113
12114
12115if test "$USE_MAINTAINER_MODE" = yes; then
12116 MAINTAINER_MODE_TRUE=
12117 MAINTAINER_MODE_FALSE='#'
12118else
12119 MAINTAINER_MODE_TRUE='#'
12120 MAINTAINER_MODE_FALSE=
c6b750e1 12121fi
3d5e36ae
AO
12122MAINT=$MAINTAINER_MODE_TRUE
12123
1d39f329
NN
12124# ---------------------
12125# GCC bootstrap support
12126# ---------------------
12127
12128# Stage specific cflags for build.
12129stage1_cflags="-g"
12130case $build in
12131 vax-*-*)
12132 case ${GCC} in
12133 yes) stage1_cflags="-g -Wa,-J" ;;
12134 *) stage1_cflags="-g -J" ;;
12135 esac ;;
1d39f329
NN
12136esac
12137
1d89b610
PB
12138# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12139if test "$GCC" = yes; then
12140 saved_CFLAGS="$CFLAGS"
12141
12142 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12143 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
12144 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12145echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12146 cat >conftest.$ac_ext <<_ACEOF
12147/* confdefs.h. */
12148_ACEOF
12149cat confdefs.h >>conftest.$ac_ext
12150cat >>conftest.$ac_ext <<_ACEOF
12151/* end confdefs.h. */
12152
2038f525
PB
12153#if (__GNUC__ < 3) \
12154 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12155 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12156#error http://gcc.gnu.org/PR29382
12157#endif
12158
c6b750e1
DJ
12159int
12160main ()
12161{
12162
12163 ;
12164 return 0;
12165}
12166_ACEOF
12167rm -f conftest.$ac_objext
12168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12169 (eval $ac_compile) 2>conftest.er1
12170 ac_status=$?
12171 grep -v '^ *+' conftest.er1 >conftest.err
12172 rm -f conftest.er1
12173 cat conftest.err >&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } &&
12176 { ac_try='test -z "$ac_c_werror_flag"
12177 || test ! -s conftest.err'
12178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179 (eval $ac_try) 2>&5
12180 ac_status=$?
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; } &&
12183 { ac_try='test -s conftest.$ac_objext'
12184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185 (eval $ac_try) 2>&5
12186 ac_status=$?
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; }; then
12189 echo "$as_me:$LINENO: result: yes" >&5
12190echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12191else
12192 echo "$as_me: failed program was:" >&5
12193sed 's/^/| /' conftest.$ac_ext >&5
12194
12195echo "$as_me:$LINENO: result: no" >&5
12196echo "${ECHO_T}no" >&6
12197fi
12198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12199
12200 CFLAGS="$saved_CFLAGS"
12201fi
12202
12203
1d39f329 12204
8a0d8a5c
PB
12205# Enable --enable-checking in stage1 of the compiler.
12206# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12207if test "${enable_stage1_checking+set}" = set; then
12208 enableval="$enable_stage1_checking"
12209 stage1_checking=--enable-checking=${enable_stage1_checking}
12210else
5566c1fa 12211 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12212 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12213else
5566c1fa 12214 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12215fi
c6b750e1 12216fi;
8a0d8a5c
PB
12217
12218
1d39f329 12219# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12220# Check whether --enable-werror or --disable-werror was given.
12221if test "${enable_werror+set}" = set; then
12222 enableval="$enable_werror"
c6b750e1 12223
1d39f329 12224else
a0323144 12225 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12226 enable_werror=yes
79fcd0ec
PB
12227else
12228 enable_werror=no
12229fi
c6b750e1 12230fi;
1a6f2dc7
NN
12231case ${enable_werror} in
12232 yes) stage2_werror_flag="--enable-werror-always" ;;
12233 *) stage2_werror_flag="" ;;
1d39f329
NN
12234esac
12235
12236
108a6f8e 12237# Flags needed to enable html installing and building
c6b750e1 12238
108a6f8e
CD
12239# Check whether --with-datarootdir or --without-datarootdir was given.
12240if test "${with_datarootdir+set}" = set; then
12241 withval="$with_datarootdir"
12242 datarootdir="\${prefix}/${withval}"
12243else
12244 datarootdir="\${prefix}/share"
c6b750e1 12245fi;
108a6f8e
CD
12246
12247
12248# Check whether --with-docdir or --without-docdir was given.
12249if test "${with_docdir+set}" = set; then
12250 withval="$with_docdir"
12251 docdir="\${prefix}/${withval}"
12252else
12253 docdir="\${datarootdir}/doc"
c6b750e1 12254fi;
108a6f8e
CD
12255
12256
a3ca38d2
DD
12257# Check whether --with-pdfdir or --without-pdfdir was given.
12258if test "${with_pdfdir+set}" = set; then
12259 withval="$with_pdfdir"
12260 pdfdir="\${prefix}/${withval}"
12261else
12262 pdfdir="\${docdir}"
12263fi;
12264
12265
108a6f8e
CD
12266# Check whether --with-htmldir or --without-htmldir was given.
12267if test "${with_htmldir+set}" = set; then
12268 withval="$with_htmldir"
12269 htmldir="\${prefix}/${withval}"
12270else
12271 htmldir="\${docdir}"
c6b750e1 12272fi;
108a6f8e
CD
12273
12274
12275
12276
12277
b8025f34 12278
c6b750e1
DJ
12279 ac_config_files="$ac_config_files Makefile"
12280cat >confcache <<\_ACEOF
a0da8069
NN
12281# This file is a shell script that caches the results of configure
12282# tests run on this system so they can be shared between configure
c6b750e1
DJ
12283# scripts and configure runs, see configure's option --config-cache.
12284# It is not useful on other systems. If it contains results you don't
12285# want to keep, you may remove or edit it.
a0da8069 12286#
c6b750e1
DJ
12287# config.status only pays attention to the cache file if you give it
12288# the --recheck option to rerun configure.
a0da8069 12289#
c6b750e1
DJ
12290# `ac_cv_env_foo' variables (set or unset) will be overridden when
12291# loading this file, other *unset* `ac_cv_foo' will be assigned the
12292# following values.
12293
12294_ACEOF
12295
a0da8069
NN
12296# The following way of writing the cache mishandles newlines in values,
12297# but we know of no workaround that is simple, portable, and efficient.
12298# So, don't put newlines in cache variables' values.
12299# Ultrix sh set writes to stderr and can't be redirected directly,
12300# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12301{
12302 (set) 2>&1 |
12303 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12304 *ac_space=\ *)
12305 # `set' does not quote correctly, so add quotes (double-quote
12306 # substitution turns \\\\ into \\, and sed turns \\ into \).
12307 sed -n \
12308 "s/'/'\\\\''/g;
12309 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12310 ;;
12311 *)
12312 # `set' quotes correctly as required by POSIX, so do not add quotes.
12313 sed -n \
12314 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12315 ;;
12316 esac;
12317} |
12318 sed '
12319 t clear
12320 : clear
12321 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12322 t end
12323 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12324 : end' >>confcache
12325if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12326 if test -w $cache_file; then
c6b750e1
DJ
12327 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12328 cat confcache >$cache_file
a0da8069
NN
12329 else
12330 echo "not updating unwritable cache $cache_file"
12331 fi
852e5f18 12332fi
a0da8069 12333rm -f confcache
852e5f18 12334
a0da8069
NN
12335test "x$prefix" = xNONE && prefix=$ac_default_prefix
12336# Let make expand exec_prefix.
12337test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12338
c6b750e1
DJ
12339# VPATH may cause trouble with some makes, so we remove $(srcdir),
12340# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12341# trailing colons and then remove the whole line if VPATH becomes empty
12342# (actually we leave an empty line to preserve line numbers).
a0da8069 12343if test "x$srcdir" = x.; then
c6b750e1
DJ
12344 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12345s/:*\$(srcdir):*/:/;
12346s/:*\${srcdir}:*/:/;
12347s/:*@srcdir@:*/:/;
12348s/^\([^=]*=[ ]*\):*/\1/;
12349s/:*$//;
12350s/^[^=]*=[ ]*$//;
12351}'
a0da8069 12352fi
252b5132 12353
a0da8069
NN
12354# Transform confdefs.h into DEFS.
12355# Protect against shell expansion while executing Makefile rules.
12356# Protect against Makefile macro expansion.
c6b750e1
DJ
12357#
12358# If the first sed substitution is executed (which looks for macros that
12359# take arguments), then we branch to the quote section. Otherwise,
12360# look for a macro that doesn't take arguments.
12361cat >confdef2opt.sed <<\_ACEOF
12362t clear
12363: clear
12364s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12365t quote
12366s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12367t quote
12368d
12369: quote
12370s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12371s,\[,\\&,g
12372s,\],\\&,g
12373s,\$,$$,g
12374p
12375_ACEOF
12376# We use echo to avoid assuming a particular line-breaking character.
12377# The extra dot is to prevent the shell from consuming trailing
12378# line-breaks from the sub-command output. A line-break within
12379# single-quotes doesn't work because, if this script is created in a
12380# platform that uses two characters for line-breaks (e.g., DOS), tr
12381# would break.
12382ac_LF_and_DOT=`echo; echo .`
12383DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12384rm -f confdef2opt.sed
12385
12386
12387ac_libobjs=
12388ac_ltlibobjs=
12389for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12390 # 1. Remove the extension, and $U if already installed.
12391 ac_i=`echo "$ac_i" |
12392 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12393 # 2. Add them.
12394 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12395 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12396done
12397LIBOBJS=$ac_libobjs
852e5f18 12398
c6b750e1 12399LTLIBOBJS=$ac_ltlibobjs
376a0e54 12400
cac3d6c4 12401
c6b750e1
DJ
12402
12403: ${CONFIG_STATUS=./config.status}
12404ac_clean_files_save=$ac_clean_files
12405ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12406{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12407echo "$as_me: creating $CONFIG_STATUS" >&6;}
12408cat >$CONFIG_STATUS <<_ACEOF
12409#! $SHELL
12410# Generated by $as_me.
a0da8069 12411# Run this file to recreate the current configuration.
a0da8069 12412# Compiler output produced by configure, useful for debugging
c6b750e1 12413# configure, is in config.log if it exists.
376a0e54 12414
c6b750e1
DJ
12415debug=false
12416ac_cs_recheck=false
12417ac_cs_silent=false
12418SHELL=\${CONFIG_SHELL-$SHELL}
12419_ACEOF
12420
12421cat >>$CONFIG_STATUS <<\_ACEOF
12422## --------------------- ##
12423## M4sh Initialization. ##
12424## --------------------- ##
12425
12426# Be Bourne compatible
12427if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12428 emulate sh
12429 NULLCMD=:
12430 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12431 # is contrary to our usage. Disable this feature.
12432 alias -g '${1+"$@"}'='"$@"'
12433elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12434 set -o posix
12435fi
12436DUALCASE=1; export DUALCASE # for MKS sh
12437
12438# Support unset when possible.
12439if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12440 as_unset=unset
12441else
12442 as_unset=false
12443fi
12444
12445
12446# Work around bugs in pre-3.0 UWIN ksh.
12447$as_unset ENV MAIL MAILPATH
12448PS1='$ '
12449PS2='> '
12450PS4='+ '
12451
12452# NLS nuisances.
12453for as_var in \
12454 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12455 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12456 LC_TELEPHONE LC_TIME
12457do
12458 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12459 eval $as_var=C; export $as_var
12460 else
12461 $as_unset $as_var
12462 fi
12463done
12464
12465# Required to use basename.
12466if expr a : '\(a\)' >/dev/null 2>&1; then
12467 as_expr=expr
12468else
12469 as_expr=false
12470fi
12471
12472if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12473 as_basename=basename
12474else
12475 as_basename=false
12476fi
12477
12478
12479# Name of the executable.
12480as_me=`$as_basename "$0" ||
12481$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12482 X"$0" : 'X\(//\)$' \| \
12483 X"$0" : 'X\(/\)$' \| \
12484 . : '\(.\)' 2>/dev/null ||
12485echo X/"$0" |
12486 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12487 /^X\/\(\/\/\)$/{ s//\1/; q; }
12488 /^X\/\(\/\).*/{ s//\1/; q; }
12489 s/.*/./; q'`
12490
12491
12492# PATH needs CR, and LINENO needs CR and PATH.
12493# Avoid depending upon Character Ranges.
12494as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12495as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12496as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12497as_cr_digits='0123456789'
12498as_cr_alnum=$as_cr_Letters$as_cr_digits
12499
12500# The user is always right.
12501if test "${PATH_SEPARATOR+set}" != set; then
12502 echo "#! /bin/sh" >conf$$.sh
12503 echo "exit 0" >>conf$$.sh
12504 chmod +x conf$$.sh
12505 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12506 PATH_SEPARATOR=';'
12507 else
12508 PATH_SEPARATOR=:
12509 fi
12510 rm -f conf$$.sh
12511fi
12512
12513
12514 as_lineno_1=$LINENO
12515 as_lineno_2=$LINENO
12516 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12517 test "x$as_lineno_1" != "x$as_lineno_2" &&
12518 test "x$as_lineno_3" = "x$as_lineno_2" || {
12519 # Find who we are. Look in the path if we contain no path at all
12520 # relative or not.
12521 case $0 in
12522 *[\\/]* ) as_myself=$0 ;;
12523 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12524for as_dir in $PATH
12525do
12526 IFS=$as_save_IFS
12527 test -z "$as_dir" && as_dir=.
12528 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12529done
12530
12531 ;;
12532 esac
12533 # We did not find ourselves, most probably we were run as `sh COMMAND'
12534 # in which case we are not to be found in the path.
12535 if test "x$as_myself" = x; then
12536 as_myself=$0
12537 fi
12538 if test ! -f "$as_myself"; then
12539 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12540echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12541 { (exit 1); exit 1; }; }
12542 fi
12543 case $CONFIG_SHELL in
12544 '')
12545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12546for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12547do
12548 IFS=$as_save_IFS
12549 test -z "$as_dir" && as_dir=.
12550 for as_base in sh bash ksh sh5; do
12551 case $as_dir in
12552 /*)
12553 if ("$as_dir/$as_base" -c '
12554 as_lineno_1=$LINENO
12555 as_lineno_2=$LINENO
12556 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12557 test "x$as_lineno_1" != "x$as_lineno_2" &&
12558 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12559 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12560 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12561 CONFIG_SHELL=$as_dir/$as_base
12562 export CONFIG_SHELL
12563 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12564 fi;;
12565 esac
12566 done
12567done
12568;;
12569 esac
12570
12571 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12572 # uniformly replaced by the line number. The first 'sed' inserts a
12573 # line-number line before each line; the second 'sed' does the real
12574 # work. The second script uses 'N' to pair each line-number line
12575 # with the numbered line, and appends trailing '-' during
12576 # substitution so that $LINENO is not a special case at line end.
12577 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12578 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12579 sed '=' <$as_myself |
12580 sed '
12581 N
12582 s,$,-,
12583 : loop
12584 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12585 t loop
12586 s,-$,,
12587 s,^['$as_cr_digits']*\n,,
12588 ' >$as_me.lineno &&
12589 chmod +x $as_me.lineno ||
12590 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12591echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12592 { (exit 1); exit 1; }; }
12593
12594 # Don't try to exec as it changes $[0], causing all sort of problems
12595 # (the dirname of $[0] is not the place where we might find the
12596 # original and so on. Autoconf is especially sensible to this).
12597 . ./$as_me.lineno
12598 # Exit status is that of the last command.
12599 exit
12600}
12601
12602
12603case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12604 *c*,-n*) ECHO_N= ECHO_C='
12605' ECHO_T=' ' ;;
12606 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12607 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12608esac
12609
12610if expr a : '\(a\)' >/dev/null 2>&1; then
12611 as_expr=expr
12612else
12613 as_expr=false
12614fi
12615
12616rm -f conf$$ conf$$.exe conf$$.file
12617echo >conf$$.file
12618if ln -s conf$$.file conf$$ 2>/dev/null; then
12619 # We could just check for DJGPP; but this test a) works b) is more generic
12620 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12621 if test -f conf$$.exe; then
12622 # Don't use ln at all; we don't have any links
12623 as_ln_s='cp -p'
12624 else
12625 as_ln_s='ln -s'
12626 fi
12627elif ln conf$$.file conf$$ 2>/dev/null; then
12628 as_ln_s=ln
12629else
12630 as_ln_s='cp -p'
12631fi
12632rm -f conf$$ conf$$.exe conf$$.file
12633
12634if mkdir -p . 2>/dev/null; then
12635 as_mkdir_p=:
12636else
12637 test -d ./-p && rmdir ./-p
12638 as_mkdir_p=false
12639fi
12640
12641as_executable_p="test -f"
12642
12643# Sed expression to map a string onto a valid CPP name.
12644as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12645
12646# Sed expression to map a string onto a valid variable name.
12647as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12648
12649
12650# IFS
12651# We need space, tab and new line, in precisely that order.
12652as_nl='
12653'
12654IFS=" $as_nl"
12655
12656# CDPATH.
12657$as_unset CDPATH
12658
12659exec 6>&1
12660
12661# Open the log real soon, to keep \$[0] and so on meaningful, and to
12662# report actual input values of CONFIG_FILES etc. instead of their
12663# values after options handling. Logging --version etc. is OK.
12664exec 5>>config.log
12665{
12666 echo
12667 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12668## Running $as_me. ##
12669_ASBOX
12670} >&5
12671cat >&5 <<_CSEOF
12672
12673This file was extended by $as_me, which was
12674generated by GNU Autoconf 2.59. Invocation command line was
12675
12676 CONFIG_FILES = $CONFIG_FILES
12677 CONFIG_HEADERS = $CONFIG_HEADERS
12678 CONFIG_LINKS = $CONFIG_LINKS
12679 CONFIG_COMMANDS = $CONFIG_COMMANDS
12680 $ $0 $@
12681
12682_CSEOF
12683echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12684echo >&5
12685_ACEOF
12686
12687# Files that config.status was made for.
12688if test -n "$ac_config_files"; then
12689 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12690fi
12691
12692if test -n "$ac_config_headers"; then
12693 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12694fi
12695
12696if test -n "$ac_config_links"; then
12697 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12698fi
12699
12700if test -n "$ac_config_commands"; then
12701 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12702fi
12703
12704cat >>$CONFIG_STATUS <<\_ACEOF
12705
12706ac_cs_usage="\
12707\`$as_me' instantiates files from templates according to the
12708current configuration.
12709
12710Usage: $0 [OPTIONS] [FILE]...
12711
12712 -h, --help print this help, then exit
12713 -V, --version print version number, then exit
12714 -q, --quiet do not print progress messages
12715 -d, --debug don't remove temporary files
12716 --recheck update $as_me by reconfiguring in the same conditions
12717 --file=FILE[:TEMPLATE]
12718 instantiate the configuration file FILE
12719
12720Configuration files:
12721$config_files
12722
12723Report bugs to <bug-autoconf@gnu.org>."
12724_ACEOF
12725
12726cat >>$CONFIG_STATUS <<_ACEOF
12727ac_cs_version="\\
12728config.status
12729configured by $0, generated by GNU Autoconf 2.59,
12730 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12731
12732Copyright (C) 2003 Free Software Foundation, Inc.
12733This config.status script is free software; the Free Software Foundation
12734gives unlimited permission to copy, distribute and modify it."
12735srcdir=$srcdir
12736INSTALL="$INSTALL"
12737_ACEOF
12738
12739cat >>$CONFIG_STATUS <<\_ACEOF
12740# If no file are specified by the user, then we need to provide default
12741# value. By we need to know if files were specified by the user.
12742ac_need_defaults=:
12743while test $# != 0
a0da8069 12744do
c6b750e1
DJ
12745 case $1 in
12746 --*=*)
12747 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12748 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12749 ac_shift=:
12750 ;;
12751 -*)
12752 ac_option=$1
12753 ac_optarg=$2
12754 ac_shift=shift
12755 ;;
12756 *) # This is not an option, so the user has probably given explicit
12757 # arguments.
12758 ac_option=$1
12759 ac_need_defaults=false;;
12760 esac
12761
12762 case $ac_option in
12763 # Handling of the options.
12764_ACEOF
12765cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12766 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12767 ac_cs_recheck=: ;;
12768 --version | --vers* | -V )
12769 echo "$ac_cs_version"; exit 0 ;;
12770 --he | --h)
12771 # Conflict between --help and --header
12772 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12773Try \`$0 --help' for more information." >&5
12774echo "$as_me: error: ambiguous option: $1
12775Try \`$0 --help' for more information." >&2;}
12776 { (exit 1); exit 1; }; };;
12777 --help | --hel | -h )
12778 echo "$ac_cs_usage"; exit 0 ;;
12779 --debug | --d* | -d )
12780 debug=: ;;
12781 --file | --fil | --fi | --f )
12782 $ac_shift
12783 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12784 ac_need_defaults=false;;
12785 --header | --heade | --head | --hea )
12786 $ac_shift
12787 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12788 ac_need_defaults=false;;
12789 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12790 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12791 ac_cs_silent=: ;;
12792
12793 # This is an error.
12794 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12795Try \`$0 --help' for more information." >&5
12796echo "$as_me: error: unrecognized option: $1
12797Try \`$0 --help' for more information." >&2;}
12798 { (exit 1); exit 1; }; } ;;
12799
12800 *) ac_config_targets="$ac_config_targets $1" ;;
12801
376a0e54 12802 esac
c6b750e1 12803 shift
376a0e54
CM
12804done
12805
c6b750e1 12806ac_configure_extra_args=
376a0e54 12807
c6b750e1
DJ
12808if $ac_cs_silent; then
12809 exec 6>/dev/null
12810 ac_configure_extra_args="$ac_configure_extra_args --silent"
12811fi
376a0e54 12812
c6b750e1
DJ
12813_ACEOF
12814cat >>$CONFIG_STATUS <<_ACEOF
12815if \$ac_cs_recheck; then
12816 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12817 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12818fi
12819
12820_ACEOF
12821
12822
12823
12824
12825
12826cat >>$CONFIG_STATUS <<\_ACEOF
12827for ac_config_target in $ac_config_targets
12828do
12829 case "$ac_config_target" in
12830 # Handling of arguments.
12831 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12832 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12833echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12834 { (exit 1); exit 1; }; };;
12835 esac
12836done
12837
12838# If the user did not use the arguments to specify the items to instantiate,
12839# then the envvar interface is used. Set only those that are not.
12840# We use the long form for the default assignment because of an extremely
12841# bizarre bug on SunOS 4.1.3.
12842if $ac_need_defaults; then
12843 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12844fi
12845
12846# Have a temporary directory for convenience. Make it in the build tree
12847# simply because there is no reason to put it here, and in addition,
12848# creating and moving files from /tmp can sometimes cause problems.
12849# Create a temporary directory, and hook for its removal unless debugging.
12850$debug ||
12851{
12852 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12853 trap '{ (exit 1); exit 1; }' 1 2 13 15
12854}
12855
12856# Create a (secure) tmp directory for tmp files.
12857
12858{
12859 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12860 test -n "$tmp" && test -d "$tmp"
12861} ||
12862{
12863 tmp=./confstat$$-$RANDOM
12864 (umask 077 && mkdir $tmp)
12865} ||
12866{
12867 echo "$me: cannot create a temporary directory in ." >&2
12868 { (exit 1); exit 1; }
12869}
12870
12871_ACEOF
12872
12873cat >>$CONFIG_STATUS <<_ACEOF
12874
12875#
12876# CONFIG_FILES section.
12877#
12878
12879# No need to generate the scripts if there are no CONFIG_FILES.
12880# This happens for instance when ./config.status config.h
12881if test -n "\$CONFIG_FILES"; then
12882 # Protect against being on the right side of a sed subst in config.status.
12883 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12884 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12885s,@SHELL@,$SHELL,;t t
12886s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12887s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12888s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12889s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12890s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12891s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12892s,@exec_prefix@,$exec_prefix,;t t
12893s,@prefix@,$prefix,;t t
12894s,@program_transform_name@,$program_transform_name,;t t
12895s,@bindir@,$bindir,;t t
12896s,@sbindir@,$sbindir,;t t
12897s,@libexecdir@,$libexecdir,;t t
12898s,@datadir@,$datadir,;t t
12899s,@sysconfdir@,$sysconfdir,;t t
12900s,@sharedstatedir@,$sharedstatedir,;t t
12901s,@localstatedir@,$localstatedir,;t t
12902s,@libdir@,$libdir,;t t
12903s,@includedir@,$includedir,;t t
12904s,@oldincludedir@,$oldincludedir,;t t
12905s,@infodir@,$infodir,;t t
12906s,@mandir@,$mandir,;t t
12907s,@build_alias@,$build_alias,;t t
12908s,@host_alias@,$host_alias,;t t
12909s,@target_alias@,$target_alias,;t t
12910s,@DEFS@,$DEFS,;t t
12911s,@ECHO_C@,$ECHO_C,;t t
12912s,@ECHO_N@,$ECHO_N,;t t
12913s,@ECHO_T@,$ECHO_T,;t t
12914s,@LIBS@,$LIBS,;t t
5b553f7e 12915s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
c6b750e1
DJ
12916s,@build@,$build,;t t
12917s,@build_cpu@,$build_cpu,;t t
12918s,@build_vendor@,$build_vendor,;t t
12919s,@build_os@,$build_os,;t t
12920s,@build_noncanonical@,$build_noncanonical,;t t
12921s,@host_noncanonical@,$host_noncanonical,;t t
12922s,@target_noncanonical@,$target_noncanonical,;t t
12923s,@host@,$host,;t t
12924s,@host_cpu@,$host_cpu,;t t
12925s,@host_vendor@,$host_vendor,;t t
12926s,@host_os@,$host_os,;t t
12927s,@target@,$target,;t t
12928s,@target_cpu@,$target_cpu,;t t
12929s,@target_vendor@,$target_vendor,;t t
12930s,@target_os@,$target_os,;t t
12931s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12932s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12933s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12934s,@LN@,$LN,;t t
12935s,@LN_S@,$LN_S,;t t
c6b750e1
DJ
12936s,@build_libsubdir@,$build_libsubdir,;t t
12937s,@build_subdir@,$build_subdir,;t t
12938s,@host_subdir@,$host_subdir,;t t
12939s,@target_subdir@,$target_subdir,;t t
12940s,@CC@,$CC,;t t
12941s,@CFLAGS@,$CFLAGS,;t t
12942s,@LDFLAGS@,$LDFLAGS,;t t
12943s,@CPPFLAGS@,$CPPFLAGS,;t t
12944s,@ac_ct_CC@,$ac_ct_CC,;t t
12945s,@EXEEXT@,$EXEEXT,;t t
12946s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12947s,@CXX@,$CXX,;t t
12948s,@CXXFLAGS@,$CXXFLAGS,;t t
12949s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12950s,@GNATBIND@,$GNATBIND,;t t
12951s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12952s,@GNATMAKE@,$GNATMAKE,;t t
12953s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12954s,@do_compare@,$do_compare,;t t
12955s,@gmplibs@,$gmplibs,;t t
12956s,@gmpinc@,$gmpinc,;t t
12957s,@stage1_languages@,$stage1_languages,;t t
12958s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 12959s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
7f6ef0c0
PB
12960s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
12961s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
c6b750e1
DJ
12962s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12963s,@tooldir@,$tooldir,;t t
12964s,@build_tooldir@,$build_tooldir,;t t
12965s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12966s,@GDB_TK@,$GDB_TK,;t t
12967s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12968s,@build_configargs@,$build_configargs,;t t
12969s,@build_configdirs@,$build_configdirs,;t t
12970s,@host_configargs@,$host_configargs,;t t
12971s,@configdirs@,$configdirs,;t t
12972s,@target_configargs@,$target_configargs,;t t
1576798e
PB
12973s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
12974s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
c6b750e1 12975s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
1576798e
PB
12976s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12977s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
12978s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
12979s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
12980s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
12981s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
12982s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
12983s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
12984s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
12985s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
12986s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
12987s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
c6b750e1
DJ
12988s,@config_shell@,$config_shell,;t t
12989s,@YACC@,$YACC,;t t
12990s,@BISON@,$BISON,;t t
12991s,@M4@,$M4,;t t
12992s,@LEX@,$LEX,;t t
12993s,@FLEX@,$FLEX,;t t
12994s,@MAKEINFO@,$MAKEINFO,;t t
12995s,@EXPECT@,$EXPECT,;t t
12996s,@RUNTEST@,$RUNTEST,;t t
12997s,@AR@,$AR,;t t
12998s,@AS@,$AS,;t t
12999s,@DLLTOOL@,$DLLTOOL,;t t
13000s,@LD@,$LD,;t t
13001s,@LIPO@,$LIPO,;t t
13002s,@NM@,$NM,;t t
13003s,@RANLIB@,$RANLIB,;t t
13004s,@STRIP@,$STRIP,;t t
13005s,@WINDRES@,$WINDRES,;t t
0c24b341 13006s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
13007s,@OBJCOPY@,$OBJCOPY,;t t
13008s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1
DJ
13009s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13010s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13011s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13012s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13013s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13014s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13015s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13016s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13017s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13018s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13019s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13020s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13021s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13022s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13023s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 13024s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
13025s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13026s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13027s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13028s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13029s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13030s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13031s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13032s,@MAINT@,$MAINT,;t t
13033s,@stage1_cflags@,$stage1_cflags,;t t
13034s,@stage1_checking@,$stage1_checking,;t t
13035s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13036s,@datarootdir@,$datarootdir,;t t
13037s,@docdir@,$docdir,;t t
a3ca38d2 13038s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
13039s,@htmldir@,$htmldir,;t t
13040s,@LIBOBJS@,$LIBOBJS,;t t
13041s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 13042/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 13043s,@serialization_dependencies@,,;t t
a0da8069 13044/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 13045s,@host_makefile_frag@,,;t t
a0da8069 13046/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 13047s,@target_makefile_frag@,,;t t
a0da8069 13048/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 13049s,@alphaieee_frag@,,;t t
a0da8069 13050/@ospace_frag@/r $ospace_frag
c6b750e1 13051s,@ospace_frag@,,;t t
a0da8069 13052CEOF
252b5132 13053
c6b750e1
DJ
13054_ACEOF
13055
13056 cat >>$CONFIG_STATUS <<\_ACEOF
13057 # Split the substitutions into bite-sized pieces for seds with
13058 # small command number limits, like on Digital OSF/1 and HP-UX.
13059 ac_max_sed_lines=48
13060 ac_sed_frag=1 # Number of current file.
13061 ac_beg=1 # First line for current file.
13062 ac_end=$ac_max_sed_lines # Line after last line for current file.
13063 ac_more_lines=:
13064 ac_sed_cmds=
13065 while $ac_more_lines; do
13066 if test $ac_beg -gt 1; then
13067 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13068 else
13069 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13070 fi
13071 if test ! -s $tmp/subs.frag; then
13072 ac_more_lines=false
a0da8069 13073 else
c6b750e1
DJ
13074 # The purpose of the label and of the branching condition is to
13075 # speed up the sed processing (if there are no `@' at all, there
13076 # is no need to browse any of the substitutions).
13077 # These are the two extra sed commands mentioned above.
13078 (echo ':t
13079 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13080 if test -z "$ac_sed_cmds"; then
13081 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13082 else
13083 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13084 fi
13085 ac_sed_frag=`expr $ac_sed_frag + 1`
13086 ac_beg=$ac_end
13087 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 13088 fi
c6b750e1
DJ
13089 done
13090 if test -z "$ac_sed_cmds"; then
13091 ac_sed_cmds=cat
852e5f18 13092 fi
c6b750e1 13093fi # test -n "$CONFIG_FILES"
cac3d6c4 13094
c6b750e1
DJ
13095_ACEOF
13096cat >>$CONFIG_STATUS <<\_ACEOF
13097for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 13098 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
13099 case $ac_file in
13100 - | *:- | *:-:* ) # input from stdin
13101 cat >$tmp/stdin
13102 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13103 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13104 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13105 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13106 * ) ac_file_in=$ac_file.in ;;
a0da8069 13107 esac
252b5132 13108
c6b750e1
DJ
13109 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13110 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13111$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13112 X"$ac_file" : 'X\(//\)[^/]' \| \
13113 X"$ac_file" : 'X\(//\)$' \| \
13114 X"$ac_file" : 'X\(/\)' \| \
13115 . : '\(.\)' 2>/dev/null ||
13116echo X"$ac_file" |
13117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13118 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13119 /^X\(\/\/\)$/{ s//\1/; q; }
13120 /^X\(\/\).*/{ s//\1/; q; }
13121 s/.*/./; q'`
13122 { if $as_mkdir_p; then
13123 mkdir -p "$ac_dir"
cac3d6c4 13124 else
c6b750e1
DJ
13125 as_dir="$ac_dir"
13126 as_dirs=
13127 while test ! -d "$as_dir"; do
13128 as_dirs="$as_dir $as_dirs"
13129 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13130$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13131 X"$as_dir" : 'X\(//\)[^/]' \| \
13132 X"$as_dir" : 'X\(//\)$' \| \
13133 X"$as_dir" : 'X\(/\)' \| \
13134 . : '\(.\)' 2>/dev/null ||
13135echo X"$as_dir" |
13136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13137 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13138 /^X\(\/\/\)$/{ s//\1/; q; }
13139 /^X\(\/\).*/{ s//\1/; q; }
13140 s/.*/./; q'`
13141 done
13142 test ! -n "$as_dirs" || mkdir $as_dirs
13143 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13144echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13145 { (exit 1); exit 1; }; }; }
13146
13147 ac_builddir=.
252b5132 13148
c6b750e1
DJ
13149if test "$ac_dir" != .; then
13150 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13151 # A "../" for each directory in $ac_dir_suffix.
13152 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13153else
13154 ac_dir_suffix= ac_top_builddir=
13155fi
13156
13157case $srcdir in
13158 .) # No --srcdir option. We are building in place.
13159 ac_srcdir=.
13160 if test -z "$ac_top_builddir"; then
13161 ac_top_srcdir=.
13162 else
13163 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13164 fi ;;
13165 [\\/]* | ?:[\\/]* ) # Absolute path.
13166 ac_srcdir=$srcdir$ac_dir_suffix;
13167 ac_top_srcdir=$srcdir ;;
a0da8069 13168 *) # Relative path.
c6b750e1
DJ
13169 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13170 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13171esac
252b5132 13172
c6b750e1
DJ
13173# Do not use `cd foo && pwd` to compute absolute paths, because
13174# the directories may not exist.
13175case `pwd` in
13176.) ac_abs_builddir="$ac_dir";;
13177*)
13178 case "$ac_dir" in
13179 .) ac_abs_builddir=`pwd`;;
13180 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13181 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13182 esac;;
13183esac
13184case $ac_abs_builddir in
13185.) ac_abs_top_builddir=${ac_top_builddir}.;;
13186*)
13187 case ${ac_top_builddir}. in
13188 .) ac_abs_top_builddir=$ac_abs_builddir;;
13189 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13190 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13191 esac;;
13192esac
13193case $ac_abs_builddir in
13194.) ac_abs_srcdir=$ac_srcdir;;
13195*)
13196 case $ac_srcdir in
13197 .) ac_abs_srcdir=$ac_abs_builddir;;
13198 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13199 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13200 esac;;
13201esac
13202case $ac_abs_builddir in
13203.) ac_abs_top_srcdir=$ac_top_srcdir;;
13204*)
13205 case $ac_top_srcdir in
13206 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13207 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13208 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13209 esac;;
13210esac
252b5132 13211
c6b750e1
DJ
13212
13213 case $INSTALL in
13214 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13215 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13216 esac
252b5132 13217
c6b750e1
DJ
13218 if test x"$ac_file" != x-; then
13219 { echo "$as_me:$LINENO: creating $ac_file" >&5
13220echo "$as_me: creating $ac_file" >&6;}
13221 rm -f "$ac_file"
13222 fi
13223 # Let's still pretend it is `configure' which instantiates (i.e., don't
13224 # use $as_me), people would be surprised to read:
13225 # /* config.h. Generated by config.status. */
13226 if test x"$ac_file" = x-; then
13227 configure_input=
13228 else
13229 configure_input="$ac_file. "
13230 fi
13231 configure_input=$configure_input"Generated from `echo $ac_file_in |
13232 sed 's,.*/,,'` by configure."
13233
13234 # First look for the input files in the build tree, otherwise in the
13235 # src tree.
13236 ac_file_inputs=`IFS=:
13237 for f in $ac_file_in; do
13238 case $f in
13239 -) echo $tmp/stdin ;;
13240 [\\/$]*)
13241 # Absolute (can't be DOS-style, as IFS=:)
13242 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13243echo "$as_me: error: cannot find input file: $f" >&2;}
13244 { (exit 1); exit 1; }; }
13245 echo "$f";;
13246 *) # Relative
13247 if test -f "$f"; then
13248 # Build tree
13249 echo "$f"
13250 elif test -f "$srcdir/$f"; then
13251 # Source tree
13252 echo "$srcdir/$f"
13253 else
13254 # /dev/null tree
13255 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13256echo "$as_me: error: cannot find input file: $f" >&2;}
13257 { (exit 1); exit 1; }; }
13258 fi;;
13259 esac
13260 done` || { (exit 1); exit 1; }
13261_ACEOF
13262cat >>$CONFIG_STATUS <<_ACEOF
13263 sed "$ac_vpsub
13264$extrasub
13265_ACEOF
13266cat >>$CONFIG_STATUS <<\_ACEOF
13267:t
13268/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13269s,@configure_input@,$configure_input,;t t
13270s,@srcdir@,$ac_srcdir,;t t
13271s,@abs_srcdir@,$ac_abs_srcdir,;t t
13272s,@top_srcdir@,$ac_top_srcdir,;t t
13273s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13274s,@builddir@,$ac_builddir,;t t
13275s,@abs_builddir@,$ac_abs_builddir,;t t
13276s,@top_builddir@,$ac_top_builddir,;t t
13277s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13278s,@INSTALL@,$ac_INSTALL,;t t
13279" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13280 rm -f $tmp/stdin
13281 if test x"$ac_file" != x-; then
13282 mv $tmp/out $ac_file
13283 else
13284 cat $tmp/out
13285 rm -f $tmp/out
13286 fi
c148b4cb 13287
c6b750e1
DJ
13288done
13289_ACEOF
c148b4cb 13290
c6b750e1 13291cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13292
c6b750e1
DJ
13293{ (exit 0); exit 0; }
13294_ACEOF
c148b4cb 13295chmod +x $CONFIG_STATUS
c6b750e1
DJ
13296ac_clean_files=$ac_clean_files_save
13297
13298
13299# configure is writing to config.log, and then calls config.status.
13300# config.status does its own redirection, appending to config.log.
13301# Unfortunately, on DOS this fails, as config.log is still kept open
13302# by configure, so config.status won't be able to write to it; its
13303# output is simply discarded. So we exec the FD to /dev/null,
13304# effectively closing config.log, so it can be properly (re)opened and
13305# appended to by config.status. When coming back to configure, we
13306# need to make the FD available again.
13307if test "$no_create" != yes; then
13308 ac_cs_success=:
13309 ac_config_status_args=
13310 test "$silent" = yes &&
13311 ac_config_status_args="$ac_config_status_args --quiet"
13312 exec 5>/dev/null
13313 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13314 exec 5>>config.log
13315 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13316 # would make configure fail if this is the last instruction.
13317 $ac_cs_success || { (exit 1); exit 1; }
13318fi
c148b4cb 13319