2008-11-27 Tristan Gingold <gingold@adacore.com>
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
c6b750e1 3# Generated by GNU Autoconf 2.59.
a0da8069 4#
c6b750e1 5# Copyright (C) 2003 Free Software Foundation, Inc.
a0da8069
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
c6b750e1
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
a0da8069 243
c6b750e1
DJ
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
a0da8069 254ac_default_prefix=/usr/local
c6b750e1
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
7582fb4a 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 GCC_SHLIB_SUBDIR 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 ;;
652dec25 2200 powerpc-*-darwin* | x86_64-*-darwin9*)
9d39db92 2201 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2202 noconfigdirs="$noconfigdirs sim target-rda"
652dec25
TG
2203 ;;
2204 i[3456789]86-*-darwin*)
2205 noconfigdirs="$noconfigdirs ld gas gprof"
2206 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2207 ;;
04d1ab34 2208 *-*-darwin*)
d320aacb 2209 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2210 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2211 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2212 ;;
a0da8069 2213 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2214 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2215 ;;
de0b4a87 2216 *-*-freebsd*)
4b1cb4fe
DD
2217 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2218 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2219 && test -f /usr/local/include/gmp.h; then
2220 with_gmp=/usr/local
2221 fi
2222
2223 # Skip some stuff that's unsupported on some FreeBSD configurations.
2224 case "${target}" in
2225 i*86-*-*) ;;
2226 alpha*-*-*) ;;
2227 *)
54d1c879 2228 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2229 ;;
2230 esac
2231 ;;
f8a495c8
NC
2232 *-*-kaos*)
2233 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2234 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2235 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2236 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2237 noconfigdirs="$noconfigdirs target-libgloss"
2238 ;;
a0da8069
NN
2239 *-*-netbsd*)
2240 # Skip some stuff on all NetBSD configurations.
2241 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2242
2243 # Skip some stuff that's unsupported on some NetBSD configurations.
2244 case "${target}" in
2245 i*86-*-netbsdelf*) ;;
5b474aa8 2246 arm*-*-netbsdelf*) ;;
a0da8069 2247 *)
54d1c879 2248 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2249 ;;
2250 esac
2251 ;;
2a3124ca 2252 *-*-netware*)
54d1c879 2253 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2254 ;;
2255 *-*-rtems*)
54d1c879 2256 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2257 ;;
1587117a
EC
2258 # The tpf target doesn't support gdb yet.
2259 *-*-tpf*)
54d1c879 2260 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2261 ;;
c1968181 2262 *-*-uclinux*)
54d1c879 2263 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2264 ;;
a0da8069 2265 *-*-vxworks*)
54d1c879 2266 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2267 ;;
2268 alpha*-dec-osf*)
2269 # ld works, but does not support shared libraries.
2270 # newlib is not 64 bit ready. I'm not sure about fileutils.
2271 # gas doesn't generate exception information.
2272 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2273 ;;
2274 alpha*-*-*vms*)
54d1c879 2275 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2276 ;;
2277 alpha*-*-linux*)
2278 # newlib is not 64 bit ready
2279 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2280 ;;
a0da8069
NN
2281 alpha*-*-*)
2282 # newlib is not 64 bit ready
54d1c879 2283 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2284 ;;
4a18bd6b 2285 am33_2.0-*-linux*)
54d1c879 2286 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2287 ;;
a0da8069 2288 sh-*-linux*)
54d1c879 2289 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2290 ;;
a0da8069 2291 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2292 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2293 noconfigdirs="$noconfigdirs target-examples"
2294 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2295 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2296 noconfigdirs="$noconfigdirs expect dejagnu"
2297 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2298 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2299 noconfigdirs="$noconfigdirs target-newlib"
2300 case "${host}" in
2301 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2302 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2303 ;;
2304 esac
691bb5a1 2305 libgloss_dir=wince
a0da8069
NN
2306 ;;
2307 arc-*-*)
54d1c879 2308 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2309 ;;
caeba88f 2310 arm-semi-aof )
caeba88f 2311 ;;
a0da8069 2312 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2313 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2314 libgloss_dir=arm
a0da8069 2315 ;;
11b04d1f 2316 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 2317 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 2318 libgloss_dir=arm
a0da8069 2319 ;;
bd70a46f 2320 arm*-*-linux-gnueabi)
6d18b86b 2321 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
2322 case ${with_newlib} in
2323 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2324 esac
691bb5a1 2325 libgloss_dir=arm
bd70a46f 2326 ;;
df4a6958 2327 arm*-*-symbianelf*)
54d1c879 2328 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 2329 libgloss_dir=arm
df4a6958 2330 ;;
a0da8069 2331 arm-*-pe*)
54d1c879 2332 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2333 ;;
a0da8069 2334 thumb-*-coff)
54d1c879 2335 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2336 ;;
2337 thumb-*-elf)
54d1c879 2338 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2339 ;;
a0da8069 2340 thumb-*-pe)
54d1c879 2341 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2342 ;;
2343 arm-*-riscix*)
54d1c879 2344 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2345 ;;
2346 avr-*-*)
266df637 2347 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 2348 ;;
376a0e54 2349 bfin-*-*)
00d89675 2350 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2351 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2352 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2353 fi
2354 ;;
a0da8069 2355 c4x-*-* | tic4x-*-*)
54d1c879 2356 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2357 ;;
2358 c54x*-*-* | tic54x-*-*)
54d1c879 2359 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2360 ;;
52310858
NC
2361 cr16-*-*)
2362 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2363 ;;
c7e66c6d 2364 cris-*-* | crisv32-*-*)
59f7ec45 2365 unsupported_languages="$unsupported_languages java"
c7e66c6d 2366 case "${target}" in
2faa2958 2367 *-*-aout)
096f7d00 2368 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2369 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2370 *-*-elf)
5e818318 2371 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2372 *-*-linux*)
5e818318 2373 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2374 *)
096f7d00 2375 unsupported_languages="$unsupported_languages fortran"
54d1c879 2376 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2377 esac
691bb5a1 2378 libgloss_dir=cris
a0da8069 2379 ;;
3e707e94 2380 crx-*-*)
54d1c879 2381 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2382 ;;
a0da8069 2383 d10v-*-*)
54d1c879 2384 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2385 ;;
2386 d30v-*-*)
54d1c879 2387 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 2388 ;;
691bb5a1
DD
2389 ep9312-*-elf | ep9312-*-coff)
2390 libgloss_dir=arm
2391 ;;
a0da8069 2392 fr30-*-elf*)
54d1c879 2393 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2394 ;;
2395 frv-*-*)
54d1c879 2396 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2397 ;;
2398 h8300*-*-*)
54d1c879 2399 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2400 ;;
2401 h8500-*-*)
54d1c879 2402 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2403 ;;
caeba88f 2404 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2405 ;;
a0da8069
NN
2406 hppa*64*-*-linux* | parisc*64*-*-linux*)
2407 # In this case, it's because the hppa64-linux target is for
2408 # the kernel only at this point and has no libc, and thus no
2409 # headers, crt*.o, etc., all of which are needed by these.
2410 noconfigdirs="$noconfigdirs target-zlib"
2411 ;;
5dcac624
DA
2412 parisc*-*-linux* | hppa*-*-linux*)
2413 ;;
a0da8069 2414 hppa*-*-*elf* | \
a0da8069
NN
2415 hppa*-*-lites* | \
2416 hppa*-*-openbsd* | \
2417 hppa*64*-*-*)
54d1c879 2418 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2419 ;;
2420 hppa*-hp-hpux11*)
2421 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 2422 ;;
691bb5a1
DD
2423 hppa*-*-pro*)
2424 libgloss_dir=pa
2425 ;;
a0da8069
NN
2426 hppa*-*-*)
2427 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2428 # build on HP-UX 10.20.
54d1c879 2429 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2430 ;;
b07c2aad 2431 i960-*-*)
54d1c879 2432 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2433 ;;
a0da8069
NN
2434 ia64*-*-elf*)
2435 # No gdb support yet.
675c6968 2436 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2437 ;;
2438 ia64*-**-hpux*)
2439 # No gdb or ld support yet.
54d1c879 2440 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2441 ;;
caeba88f 2442 i370-*-opened*)
caeba88f 2443 ;;
ec11bdc6 2444 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2445 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2446 libgloss_dir=i386
a0da8069 2447 ;;
ec11bdc6 2448 i[3456789]86-*-linux*)
a0da8069
NN
2449 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2450 # not build java stuff by default.
2451 case "${target}" in
2452 *-*-*libc1*)
54d1c879 2453 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2454 esac
2455
2456 # This section makes it possible to build newlib natively on linux.
2457 # If we are using a cross compiler then don't configure newlib.
2458 if test x${is_cross_compiler} != xno ; then
bba45b8b 2459 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2460 fi
2461 noconfigdirs="$noconfigdirs target-libgloss"
2462 # If we are not using a cross compiler, do configure newlib.
2463 # Note however, that newlib will only be configured in this situation
2464 # if the --with-newlib option has been given, because otherwise
2465 # 'target-newlib' will appear in skipdirs.
2466 ;;
ec11bdc6 2467 i[3456789]86-*-mingw32*)
45055374
CV
2468 target_configdirs="$target_configdirs target-winsup"
2469 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2470 ;;
2d1e8239
NC
2471 x86_64-*-mingw*)
2472 target_configdirs="$target_configdirs target-winsup"
2473 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2474 ;;
a0da8069
NN
2475 *-*-cygwin*)
2476 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2477 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2478 # always build newlib if winsup directory is present.
45055374 2479 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2480 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2481 elif test -d "$srcdir/newlib"; then
45055374 2482 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2483 fi
c6b750e1 2484 ;;
caeba88f
AL
2485 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2486 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2487 ;;
ec11bdc6 2488 i[3456789]86-*-pe)
54d1c879 2489 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2490 ;;
ec11bdc6 2491 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2492 # The linker does not yet know about weak symbols in COFF,
2493 # and is not configured to handle mixed ELF and COFF.
54d1c879 2494 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2495 ;;
ec11bdc6 2496 i[3456789]86-*-sco*)
54d1c879 2497 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2498 ;;
ec11bdc6 2499 i[3456789]86-*-solaris2*)
a0da8069
NN
2500 noconfigdirs="$noconfigdirs target-libgloss"
2501 ;;
ec11bdc6 2502 i[3456789]86-*-sysv4*)
54d1c879 2503 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2504 ;;
ec11bdc6 2505 i[3456789]86-*-beos*)
54d1c879 2506 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2507 ;;
b59bea8a 2508 i[3456789]86-*-rdos*)
2429c060
PB
2509 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2510 ;;
b07c2aad 2511 m32r-*-*)
54d1c879 2512 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2513 ;;
a0da8069 2514 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2515 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 2516 libgloss_dir=m68hc11
a0da8069
NN
2517 ;;
2518 m68k-*-elf*)
54d1c879 2519 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2520 ;;
2521 m68k-*-coff*)
54d1c879 2522 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2523 ;;
691bb5a1
DD
2524 m68*-*-* | fido-*-*)
2525 libgloss_dir=m68k
2526 ;;
a0da8069
NN
2527 mcore-*-pe*)
2528 # The EPOC C++ environment does not support exceptions or rtti,
2529 # and so building libstdc++-v3 tends not to always work.
2530 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2531 ;;
2532 mmix-*-*)
59f7ec45 2533 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2534 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2535 ;;
2536 mn10200-*-*)
54d1c879 2537 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2538 ;;
2539 mn10300-*-*)
54d1c879 2540 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2541 ;;
4970f871 2542 mt-*-*)
cdb9b172
AH
2543 noconfigdirs="$noconfigdirs sim"
2544 ;;
a0da8069
NN
2545 powerpc-*-aix*)
2546 # copied from rs6000-*-* entry
54d1c879 2547 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2548 ;;
2549 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2550 target_configdirs="$target_configdirs target-winsup"
54d1c879 2551 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2552 # always build newlib.
2553 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2554 ;;
2555 # This is temporary until we can link against shared libraries
2556 powerpcle-*-solaris*)
54d1c879 2557 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 2558 libgloss_dir=rs6000
a0da8069
NN
2559 ;;
2560 powerpc-*-beos*)
54d1c879 2561 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2562 ;;
a0da8069 2563 powerpc-*-eabi)
54d1c879 2564 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2565 libgloss_dir=rs6000
caeba88f
AL
2566 ;;
2567 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 2568 libgloss_dir=rs6000
a0da8069 2569 ;;
a0da8069 2570 rs6000-*-lynxos*)
54d1c879 2571 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2572 ;;
2573 rs6000-*-aix*)
54d1c879 2574 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2575 ;;
2576 rs6000-*-*)
54d1c879 2577 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2578 ;;
2579 m68k-apollo-*)
54d1c879 2580 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 2581 ;;
5bd8be13
RS
2582 mips*-sde-elf*)
2583 skipdirs="$skipdirs target-libiberty"
2584 noconfigdirs="$noconfigdirs ${libgcj}"
2585 if test x$with_newlib = xyes; then
2586 noconfigdirs="$noconfigdirs gprof"
2587 fi
2588 libgloss_dir=mips
2589 ;;
a0da8069 2590 mips*-*-irix5*)
54d1c879 2591 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2592 ;;
2593 mips*-*-irix6*)
a0da8069
NN
2594 # Linking libjava exceeds command-line length limits on at least
2595 # IRIX 6.2, but not on IRIX 6.5.
2596 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2597 # <oldham@codesourcery.com>
54d1c879 2598 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2599 ;;
a0da8069 2600 mips*-*-bsd*)
54d1c879 2601 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2602 ;;
a0da8069
NN
2603 mips*-*-linux*)
2604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2605 ;;
2606 mips*-*-*)
54d1c879 2607 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 2608 libgloss_dir=mips
a0da8069
NN
2609 ;;
2610 romp-*-*)
54d1c879 2611 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2612 ;;
dbf85af7 2613 sh-*-* | sh64-*-*)
a0da8069 2614 case "${host}" in
ec11bdc6
DD
2615 i[3456789]86-*-vsta) ;; # don't add gprof back in
2616 i[3456789]86-*-go32*) ;; # don't add gprof back in
2617 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2618 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2619 esac
54d1c879 2620 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2621 ;;
691bb5a1
DD
2622 sparclet-*-aout* | sparc86x-*-*)
2623 libgloss_dir=sparc
2624 ;;
a0da8069 2625 sparc-*-elf*)
54d1c879 2626 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2627 ;;
2628 sparc64-*-elf*)
54d1c879 2629 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2630 libgloss_dir=sparc
a0da8069
NN
2631 ;;
2632 sparclite-*-*)
54d1c879 2633 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2634 libgloss_dir=sparc
a0da8069
NN
2635 ;;
2636 sparc-*-sunos4*)
54d1c879 2637 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2638 if test x${is_cross_compiler} != xno ; then
2639 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2640 else
2641 use_gnu_ld=no
2642 fi
2643 ;;
e3c770b1 2644 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2645 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2646 ;;
a0da8069
NN
2647 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2648 ;;
2839fe5d 2649 spu-*-*)
2839fe5d 2650 ;;
a0da8069 2651 v810-*-*)
54d1c879 2652 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2653 ;;
2654 v850-*-*)
54d1c879 2655 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2656 ;;
2657 v850e-*-*)
54d1c879 2658 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2659 ;;
2660 v850ea-*-*)
54d1c879 2661 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2662 ;;
2663 vax-*-vms)
54d1c879 2664 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2665 ;;
2666 vax-*-*)
54d1c879 2667 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2668 ;;
8b66833e 2669 xtensa*-*-*)
54d1c879 2670 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2671 ;;
a0da8069 2672 ip2k-*-*)
54d1c879 2673 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2674 ;;
de0b4a87 2675 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2676 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2677 ;;
2678 *-*-lynxos*)
54d1c879 2679 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2680 ;;
a0da8069 2681 *-*-*)
54d1c879 2682 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2683 ;;
2684esac
252b5132 2685
a0da8069
NN
2686# If we aren't building newlib, then don't build libgloss, since libgloss
2687# depends upon some newlib header files.
2688case "${noconfigdirs}" in
2689 *target-libgloss*) ;;
2690 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2691esac
2692
a0da8069
NN
2693# Work in distributions that contain no compiler tools, like Autoconf.
2694tentative_cc=""
2695host_makefile_frag=/dev/null
2696if test -d ${srcdir}/config ; then
2697case "${host}" in
2698 m68k-hp-hpux*)
2699 # Avoid "too much defining" errors from HPUX compiler.
2700 tentative_cc="cc -Wp,-H256000"
2701 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2702 # If it's HP/UX ar, this should be harmless.
2703 RANLIB="ar ts"
2704 ;;
2705 m68k-apollo-sysv*)
2706 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2707 ;;
2708 m68k-apollo-bsd*)
2709 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2710 # chokes on bfd, the compiler won't let you assign integers to enums, and
2711 # other problems. Defining CC to gcc is a questionable way to say "don't use
2712 # the apollo compiler" (the preferred version of GCC could be called cc,
2713 # or whatever), but I'm not sure leaving CC as cc is any better...
2714 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2715 # Used to have BISON=yacc.
2716 tentative_cc=gcc
2717 ;;
2718 m88k-dg-dgux*)
2719 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2720 ;;
2721 m88k-harris-cxux*)
2722 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2723 tentative_cc="cc -Xa"
2724 host_makefile_frag="config/mh-cxux"
2725 ;;
2726 m88k-motorola-sysv*)
2727 ;;
2728 mips*-dec-ultrix*)
2729 tentative_cc="cc -Wf,-XNg1000"
2730 host_makefile_frag="config/mh-decstation"
2731 ;;
2732 mips*-nec-sysv4*)
2733 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2734 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2735 host_makefile_frag="config/mh-necv4"
2736 ;;
2737 mips*-sgi-irix4*)
2738 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2739 # environment. Also bump switch table size so that cp-parse will
2740 # compile. Bump string length limit so linker builds.
2741 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2742 ;;
2743 mips*-*-sysv4*)
2744 host_makefile_frag="config/mh-sysv4"
2745 ;;
2746 mips*-*-sysv*)
2747 # This is for a MIPS running RISC/os 4.52C.
2748
2749 # This is needed for GDB, but needs to be in the top-level make because
2750 # if a library is compiled with the bsd headers and gets linked with the
2751 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2752 # a different size).
2753 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2754 # known except to select the sysv environment. Could we use /proc instead?
2755 # These "sysv environments" and "bsd environments" often end up being a pain.
2756 #
2757 # This is not part of CFLAGS because perhaps not all C compilers have this
2758 # option.
2759 tentative_cc="cc -systype sysv"
2760 ;;
2761 i370-ibm-opened*)
2762 tentative_cc="c89"
2763 ;;
ec11bdc6 2764 i[3456789]86-*-sysv5*)
a0da8069
NN
2765 host_makefile_frag="config/mh-sysv5"
2766 ;;
ec11bdc6 2767 i[3456789]86-*-dgux*)
a0da8069
NN
2768 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2769 host_makefile_frag="config/mh-dgux386"
2770 ;;
ec11bdc6 2771 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2772 # The MetaWare compiler will generate a copyright message unless you
2773 # turn it off by adding the -Hnocopyr flag.
2774 tentative_cc="cc -Hnocopyr"
2775 ;;
ec11bdc6 2776 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2777 # for an NCR 3000 (i486/SVR4) system.
2778 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2779 # This compiler not only emits obnoxious copyright messages every time
2780 # you run it, but it chokes and dies on a whole bunch of GNU source
2781 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2782 tentative_cc="/usr/ccs/ATT/cc"
2783 host_makefile_frag="config/mh-ncr3000"
2784 ;;
ec11bdc6 2785 i[3456789]86-*-sco3.2v5*)
a0da8069 2786 ;;
ec11bdc6 2787 i[3456789]86-*-sco*)
a0da8069
NN
2788 # The native C compiler botches some simple uses of const. Unfortunately,
2789 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2790 tentative_cc="cc -Dconst="
2791 host_makefile_frag="config/mh-sco"
2792 ;;
ec11bdc6 2793 i[3456789]86-*-udk*)
a0da8069
NN
2794 host_makefile_frag="config/mh-sysv5"
2795 ;;
ec11bdc6 2796 i[3456789]86-*-solaris2*)
a0da8069
NN
2797 host_makefile_frag="config/mh-sysv4"
2798 ;;
ec11bdc6 2799 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2800 host_makefile_frag="config/mh-djgpp"
2801 ;;
2802 *-cygwin*)
e33b51a6
NC
2803
2804echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2805echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2806echo a >cygwin-cat-check
2807if test `cat cygwin-cat-check` == a ; then
8ade07e9 2808 rm cygwin-cat-check
e33b51a6
NC
2809 echo "$as_me:$LINENO: result: yes" >&5
2810echo "${ECHO_T}yes" >&6
2811else
8ade07e9 2812 rm cygwin-cat-check
e33b51a6
NC
2813 echo "$as_me:$LINENO: result: no" >&5
2814echo "${ECHO_T}no" >&6
2815 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2816 Please either mount the build directory in binary mode or run the following
2817 commands before running any configure script:
2818set -o igncr
2819export SHELLOPTS
2820 " >&5
2821echo "$as_me: error: The cat command does not ignore carriage return characters.
2822 Please either mount the build directory in binary mode or run the following
2823 commands before running any configure script:
2824set -o igncr
2825export SHELLOPTS
2826 " >&2;}
2827 { (exit 1); exit 1; }; }
2828fi
e33b51a6 2829
a0da8069
NN
2830 host_makefile_frag="config/mh-cygwin"
2831 ;;
8a1599ab 2832 *-mingw*)
84e7906e 2833 host_makefile_frag="config/mh-mingw"
2d1e8239 2834 ;;
a0da8069
NN
2835 *-interix*)
2836 host_makefile_frag="config/mh-interix"
2837 ;;
2838 vax-*-ultrix2*)
2839 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2840 tentative_cc=gcc
2841 ;;
2842 *-*-solaris2*)
2843 host_makefile_frag="config/mh-solaris"
2844 ;;
2845 m68k-sun-sunos*)
2846 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2847 # without overflowing the jump tables (-J says to use a 32 bit table)
2848 tentative_cc="cc -J"
2849 ;;
da888c87 2850 hppa*-hp-hpux10*)
a0da8069 2851 tentative_cc="cc -Wp,-H256000"
da888c87 2852 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 2853 ;;
da888c87
PB
2854 hppa*-hp-hpux* | hppa*-*-hiux*)
2855 tentative_cc="cc -Wp,-H256000"
2856 host_makefile_frag="config/mh-pa"
2857 ;;
2858 hppa*-*)
2859 host_makefile_frag="config/mh-pa"
2860 ;;
2861 *-hp-hpux* | *-*-hiux*)
a0da8069
NN
2862 tentative_cc="cc -Wp,-H256000"
2863 ;;
2864 rs6000-*-lynxos*)
2865 # /bin/cc is less than useful for our purposes. Always use GCC
2866 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2867 host_makefile_frag="config/mh-lynxrs6k"
2868 ;;
0df3d27f
PB
2869 powerpc-*-darwin*)
2870 host_makefile_frag="config/mh-ppc-darwin"
2871 ;;
f6d183c0
PB
2872 powerpc-*-aix*)
2873 host_makefile_frag="config/mh-ppc-aix"
2874 ;;
2875 rs6000-*-aix*)
2876 host_makefile_frag="config/mh-ppc-aix"
2877 ;;
a0da8069
NN
2878 *-*-lynxos*)
2879 # /bin/cc is less than useful for our purposes. Always use GCC
2880 tentative_cc="/bin/gcc"
2881 ;;
2882 *-*-sysv4*)
2883 host_makefile_frag="config/mh-sysv4"
2884 ;;
fe69863c
DD
2885 # This is placed last to prevent interfering with the cases above.
2886 i[3456789]86-*-*)
2887 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2888 host_makefile_frag="config/mh-x86omitfp"
2889 ;;
a0da8069
NN
2890esac
2891fi
2892
9e07f89d
NN
2893# If we aren't going to be using gcc, see if we can extract a definition
2894# of CC from the fragment.
2895# Actually, use the 'pre-extracted' version above.
2896if test -z "${CC}" && test "${build}" = "${host}" ; then
2897 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2898 found=
2899 for dir in $PATH; do
2900 test -z "$dir" && dir=.
2901 if test -f $dir/gcc; then
2902 found=yes
2903 break
2904 fi
2905 done
2906 IFS="$save_ifs"
2907 if test -z "${found}" && test -n "${tentative_cc}" ; then
2908 CC=$tentative_cc
2909 fi
2910fi
2911
2912if test "${build}" != "${host}" ; then
1576798e
PB
2913 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2914 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 2915 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
2916 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2917 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2918 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2919 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2920 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2921 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2922 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2923 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2924 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2925else
2926 AR_FOR_BUILD="\$(AR)"
2927 AS_FOR_BUILD="\$(AS)"
512b7dfb 2928 CC_FOR_BUILD="\$(CC)"
1576798e
PB
2929 CXX_FOR_BUILD="\$(CXX)"
2930 GCJ_FOR_BUILD="\$(GCJ)"
2931 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2932 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2933 LD_FOR_BUILD="\$(LD)"
2934 NM_FOR_BUILD="\$(NM)"
2935 RANLIB_FOR_BUILD="\$(RANLIB)"
2936 WINDRES_FOR_BUILD="\$(WINDRES)"
2937 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
2938fi
2939
2940ac_ext=c
c6b750e1
DJ
2941ac_cpp='$CPP $CPPFLAGS'
2942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944ac_compiler_gnu=$ac_cv_c_compiler_gnu
2945if test -n "$ac_tool_prefix"; then
2946 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2947set dummy ${ac_tool_prefix}gcc; ac_word=$2
2948echo "$as_me:$LINENO: checking for $ac_word" >&5
2949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2950if test "${ac_cv_prog_CC+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2952else
2953 if test -n "$CC"; then
2954 ac_cv_prog_CC="$CC" # Let the user override the test.
2955else
2956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957for as_dir in $PATH
2958do
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 break 2
2966 fi
2967done
2968done
2969
2970fi
2971fi
2972CC=$ac_cv_prog_CC
2973if test -n "$CC"; then
2974 echo "$as_me:$LINENO: result: $CC" >&5
2975echo "${ECHO_T}$CC" >&6
2976else
2977 echo "$as_me:$LINENO: result: no" >&5
2978echo "${ECHO_T}no" >&6
2979fi
2980
2981fi
2982if test -z "$ac_cv_prog_CC"; then
2983 ac_ct_CC=$CC
6a9cf61e 2984 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2985set dummy gcc; ac_word=$2
c6b750e1
DJ
2986echo "$as_me:$LINENO: checking for $ac_word" >&5
2987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2988if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990else
2991 if test -n "$ac_ct_CC"; then
2992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2993else
2994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995for as_dir in $PATH
2996do
2997 IFS=$as_save_IFS
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_ac_ct_CC="gcc"
3002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 break 2
3004 fi
3005done
3006done
3007
3008fi
3009fi
3010ac_ct_CC=$ac_cv_prog_ac_ct_CC
3011if test -n "$ac_ct_CC"; then
3012 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3013echo "${ECHO_T}$ac_ct_CC" >&6
3014else
3015 echo "$as_me:$LINENO: result: no" >&5
3016echo "${ECHO_T}no" >&6
3017fi
3018
3019 CC=$ac_ct_CC
3020else
3021 CC="$ac_cv_prog_CC"
3022fi
3023
3024if test -z "$CC"; then
3025 if test -n "$ac_tool_prefix"; then
3026 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3027set dummy ${ac_tool_prefix}cc; ac_word=$2
3028echo "$as_me:$LINENO: checking for $ac_word" >&5
3029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3030if test "${ac_cv_prog_CC+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3032else
3033 if test -n "$CC"; then
3034 ac_cv_prog_CC="$CC" # Let the user override the test.
3035else
c6b750e1
DJ
3036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037for as_dir in $PATH
3038do
3039 IFS=$as_save_IFS
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043 ac_cv_prog_CC="${ac_tool_prefix}cc"
3044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 break 2
3046 fi
3047done
3048done
3049
9e07f89d
NN
3050fi
3051fi
c6b750e1 3052CC=$ac_cv_prog_CC
9e07f89d 3053if test -n "$CC"; then
c6b750e1
DJ
3054 echo "$as_me:$LINENO: result: $CC" >&5
3055echo "${ECHO_T}$CC" >&6
9e07f89d 3056else
c6b750e1
DJ
3057 echo "$as_me:$LINENO: result: no" >&5
3058echo "${ECHO_T}no" >&6
9e07f89d
NN
3059fi
3060
c6b750e1
DJ
3061fi
3062if test -z "$ac_cv_prog_CC"; then
3063 ac_ct_CC=$CC
3064 # Extract the first word of "cc", so it can be a program name with args.
3065set dummy cc; ac_word=$2
3066echo "$as_me:$LINENO: checking for $ac_word" >&5
3067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3068if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070else
3071 if test -n "$ac_ct_CC"; then
3072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3073else
3074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075for as_dir in $PATH
3076do
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_ac_ct_CC="cc"
3082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3084 fi
3085done
3086done
3087
3088fi
3089fi
3090ac_ct_CC=$ac_cv_prog_ac_ct_CC
3091if test -n "$ac_ct_CC"; then
3092 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3093echo "${ECHO_T}$ac_ct_CC" >&6
3094else
3095 echo "$as_me:$LINENO: result: no" >&5
3096echo "${ECHO_T}no" >&6
3097fi
3098
3099 CC=$ac_ct_CC
3100else
3101 CC="$ac_cv_prog_CC"
3102fi
3103
3104fi
9e07f89d
NN
3105if test -z "$CC"; then
3106 # Extract the first word of "cc", so it can be a program name with args.
3107set dummy cc; ac_word=$2
c6b750e1
DJ
3108echo "$as_me:$LINENO: checking for $ac_word" >&5
3109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3110if test "${ac_cv_prog_CC+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3112else
3113 if test -n "$CC"; then
3114 ac_cv_prog_CC="$CC" # Let the user override the test.
3115else
9e07f89d 3116 ac_prog_rejected=no
c6b750e1
DJ
3117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118for as_dir in $PATH
3119do
3120 IFS=$as_save_IFS
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3124 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3125 ac_prog_rejected=yes
3126 continue
3127 fi
3128 ac_cv_prog_CC="cc"
3129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 break 2
3131 fi
3132done
3133done
3134
9e07f89d
NN
3135if test $ac_prog_rejected = yes; then
3136 # We found a bogon in the path, so make sure we never use it.
3137 set dummy $ac_cv_prog_CC
3138 shift
c6b750e1 3139 if test $# != 0; then
9e07f89d
NN
3140 # We chose a different compiler from the bogus one.
3141 # However, it has the same basename, so the bogon will be chosen
3142 # first if we set CC to just the basename; use the full file name.
3143 shift
c6b750e1 3144 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3145 fi
3146fi
3147fi
3148fi
c6b750e1 3149CC=$ac_cv_prog_CC
9e07f89d 3150if test -n "$CC"; then
c6b750e1
DJ
3151 echo "$as_me:$LINENO: result: $CC" >&5
3152echo "${ECHO_T}$CC" >&6
9e07f89d 3153else
c6b750e1
DJ
3154 echo "$as_me:$LINENO: result: no" >&5
3155echo "${ECHO_T}no" >&6
9e07f89d
NN
3156fi
3157
c6b750e1
DJ
3158fi
3159if test -z "$CC"; then
3160 if test -n "$ac_tool_prefix"; then
3161 for ac_prog in cl
3162 do
3163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3164set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3165echo "$as_me:$LINENO: checking for $ac_word" >&5
3166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3167if test "${ac_cv_prog_CC+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3169else
3170 if test -n "$CC"; then
3171 ac_cv_prog_CC="$CC" # Let the user override the test.
3172else
c6b750e1
DJ
3173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174for as_dir in $PATH
3175do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
376a0e54 3183 fi
c6b750e1
DJ
3184done
3185done
cac3d6c4 3186
c6b750e1
DJ
3187fi
3188fi
3189CC=$ac_cv_prog_CC
3190if test -n "$CC"; then
3191 echo "$as_me:$LINENO: result: $CC" >&5
3192echo "${ECHO_T}$CC" >&6
cac3d6c4 3193else
c6b750e1
DJ
3194 echo "$as_me:$LINENO: result: no" >&5
3195echo "${ECHO_T}no" >&6
9e07f89d 3196fi
cac3d6c4 3197
c6b750e1
DJ
3198 test -n "$CC" && break
3199 done
cac3d6c4 3200fi
c6b750e1
DJ
3201if test -z "$CC"; then
3202 ac_ct_CC=$CC
3203 for ac_prog in cl
3204do
3205 # Extract the first word of "$ac_prog", so it can be a program name with args.
3206set dummy $ac_prog; ac_word=$2
3207echo "$as_me:$LINENO: checking for $ac_word" >&5
3208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3209if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3211else
c6b750e1
DJ
3212 if test -n "$ac_ct_CC"; then
3213 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3214else
c6b750e1
DJ
3215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216for as_dir in $PATH
3217do
3218 IFS=$as_save_IFS
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222 ac_cv_prog_ac_ct_CC="$ac_prog"
3223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 break 2
3225 fi
3226done
3227done
3228
cac3d6c4
CM
3229fi
3230fi
c6b750e1
DJ
3231ac_ct_CC=$ac_cv_prog_ac_ct_CC
3232if test -n "$ac_ct_CC"; then
3233 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3234echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3235else
c6b750e1
DJ
3236 echo "$as_me:$LINENO: result: no" >&5
3237echo "${ECHO_T}no" >&6
cac3d6c4 3238fi
376a0e54 3239
c6b750e1
DJ
3240 test -n "$ac_ct_CC" && break
3241done
3242
3243 CC=$ac_ct_CC
3244fi
3245
3246fi
3247
3248
7a283e07
RW
3249test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3250echo "$as_me: error: in \`$ac_pwd':" >&2;}
3251{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
c6b750e1
DJ
3252See \`config.log' for more details." >&5
3253echo "$as_me: error: no acceptable C compiler found in \$PATH
3254See \`config.log' for more details." >&2;}
7a283e07 3255 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3256
3257# Provide some information about the compiler.
3258echo "$as_me:$LINENO:" \
3259 "checking for C compiler version" >&5
3260ac_compiler=`set X $ac_compile; echo $2`
3261{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3262 (eval $ac_compiler --version </dev/null >&5) 2>&5
3263 ac_status=$?
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }
3266{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3267 (eval $ac_compiler -v </dev/null >&5) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }
3271{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3272 (eval $ac_compiler -V </dev/null >&5) 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }
3276
3277cat >conftest.$ac_ext <<_ACEOF
3278/* confdefs.h. */
3279_ACEOF
3280cat confdefs.h >>conftest.$ac_ext
3281cat >>conftest.$ac_ext <<_ACEOF
3282/* end confdefs.h. */
3283
3284int
3285main ()
3286{
3287
3288 ;
3289 return 0;
3290}
3291_ACEOF
3292ac_clean_files_save=$ac_clean_files
3293ac_clean_files="$ac_clean_files a.out a.exe b.out"
3294# Try to create an executable without -o first, disregard a.out.
3295# It will help us diagnose broken compilers, and finding out an intuition
3296# of exeext.
3297echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3298echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3299ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3300if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3301 (eval $ac_link_default) 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; then
3305 # Find the output, starting from the most likely. This scheme is
3306# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3307# resort.
3308
3309# Be careful to initialize this variable, since it used to be cached.
3310# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3311ac_cv_exeext=
3312# b.out is created by i960 compilers.
3313for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3314do
3315 test -f "$ac_file" || continue
3316 case $ac_file in
3317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3318 ;;
3319 conftest.$ac_ext )
3320 # This is the source file.
3321 ;;
3322 [ab].out )
3323 # We found the default executable, but exeext='' is most
3324 # certainly right.
3325 break;;
3326 *.* )
3327 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3328 # FIXME: I believe we export ac_cv_exeext for Libtool,
3329 # but it would be cool to find out if it's true. Does anybody
3330 # maintain Libtool? --akim.
3331 export ac_cv_exeext
3332 break;;
3333 * )
3334 break;;
3335 esac
3336done
3337else
3338 echo "$as_me: failed program was:" >&5
3339sed 's/^/| /' conftest.$ac_ext >&5
3340
7a283e07
RW
3341{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3342echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
3343{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3344See \`config.log' for more details." >&5
3345echo "$as_me: error: C compiler cannot create executables
3346See \`config.log' for more details." >&2;}
7a283e07 3347 { (exit 77); exit 77; }; }; }
c6b750e1
DJ
3348fi
3349
3350ac_exeext=$ac_cv_exeext
3351echo "$as_me:$LINENO: result: $ac_file" >&5
3352echo "${ECHO_T}$ac_file" >&6
3353
3354# Check the compiler produces executables we can run. If not, either
3355# the compiler is broken, or we cross compile.
3356echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3357echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3358# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3359# If not cross compiling, check that we can run a simple program.
3360if test "$cross_compiling" != yes; then
3361 if { ac_try='./$ac_file'
3362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363 (eval $ac_try) 2>&5
3364 ac_status=$?
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; }; then
3367 cross_compiling=no
3368 else
3369 if test "$cross_compiling" = maybe; then
3370 cross_compiling=yes
3371 else
7a283e07
RW
3372 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3373echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
c6b750e1
DJ
3375If you meant to cross compile, use \`--host'.
3376See \`config.log' for more details." >&5
3377echo "$as_me: error: cannot run C compiled programs.
3378If you meant to cross compile, use \`--host'.
3379See \`config.log' for more details." >&2;}
7a283e07 3380 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3381 fi
3382 fi
3383fi
3384echo "$as_me:$LINENO: result: yes" >&5
3385echo "${ECHO_T}yes" >&6
3386
3387rm -f a.out a.exe conftest$ac_cv_exeext b.out
3388ac_clean_files=$ac_clean_files_save
3389# Check the compiler produces executables we can run. If not, either
3390# the compiler is broken, or we cross compile.
3391echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3392echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3393echo "$as_me:$LINENO: result: $cross_compiling" >&5
3394echo "${ECHO_T}$cross_compiling" >&6
3395
3396echo "$as_me:$LINENO: checking for suffix of executables" >&5
3397echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3399 (eval $ac_link) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; then
3403 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3404# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3405# work properly (i.e., refer to `conftest.exe'), while it won't with
3406# `rm'.
3407for ac_file in conftest.exe conftest conftest.*; do
3408 test -f "$ac_file" || continue
3409 case $ac_file in
3410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3411 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3412 export ac_cv_exeext
3413 break;;
3414 * ) break;;
3415 esac
3416done
3417else
7a283e07
RW
3418 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3419echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
c6b750e1
DJ
3421See \`config.log' for more details." >&5
3422echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3423See \`config.log' for more details." >&2;}
7a283e07 3424 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3425fi
3426
3427rm -f conftest$ac_cv_exeext
3428echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3429echo "${ECHO_T}$ac_cv_exeext" >&6
3430
3431rm -f conftest.$ac_ext
3432EXEEXT=$ac_cv_exeext
3433ac_exeext=$EXEEXT
3434echo "$as_me:$LINENO: checking for suffix of object files" >&5
3435echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3436if test "${ac_cv_objext+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438else
3439 cat >conftest.$ac_ext <<_ACEOF
3440/* confdefs.h. */
3441_ACEOF
3442cat confdefs.h >>conftest.$ac_ext
3443cat >>conftest.$ac_ext <<_ACEOF
3444/* end confdefs.h. */
3445
3446int
3447main ()
3448{
3449
3450 ;
3451 return 0;
3452}
3453_ACEOF
3454rm -f conftest.o conftest.obj
3455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3456 (eval $ac_compile) 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; then
3460 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3461 case $ac_file in
3462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3463 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3464 break;;
3465 esac
3466done
cac3d6c4 3467else
c6b750e1
DJ
3468 echo "$as_me: failed program was:" >&5
3469sed 's/^/| /' conftest.$ac_ext >&5
3470
7a283e07
RW
3471{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3472echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
3473{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3474See \`config.log' for more details." >&5
3475echo "$as_me: error: cannot compute suffix of object files: cannot compile
3476See \`config.log' for more details." >&2;}
7a283e07 3477 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3478fi
3479
3480rm -f conftest.$ac_cv_objext conftest.$ac_ext
3481fi
3482echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3483echo "${ECHO_T}$ac_cv_objext" >&6
3484OBJEXT=$ac_cv_objext
3485ac_objext=$OBJEXT
3486echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3487echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3488if test "${ac_cv_c_compiler_gnu+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3490else
3491 cat >conftest.$ac_ext <<_ACEOF
3492/* confdefs.h. */
3493_ACEOF
3494cat confdefs.h >>conftest.$ac_ext
3495cat >>conftest.$ac_ext <<_ACEOF
3496/* end confdefs.h. */
3497
3498int
3499main ()
3500{
3501#ifndef __GNUC__
3502 choke me
3503#endif
3504
3505 ;
3506 return 0;
3507}
3508_ACEOF
3509rm -f conftest.$ac_objext
3510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3511 (eval $ac_compile) 2>conftest.er1
3512 ac_status=$?
3513 grep -v '^ *+' conftest.er1 >conftest.err
3514 rm -f conftest.er1
3515 cat conftest.err >&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } &&
3518 { ac_try='test -z "$ac_c_werror_flag"
3519 || test ! -s conftest.err'
3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 (eval $ac_try) 2>&5
3522 ac_status=$?
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; } &&
3525 { ac_try='test -s conftest.$ac_objext'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 (eval $ac_try) 2>&5
3528 ac_status=$?
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; }; then
3531 ac_compiler_gnu=yes
3532else
3533 echo "$as_me: failed program was:" >&5
3534sed 's/^/| /' conftest.$ac_ext >&5
3535
3536ac_compiler_gnu=no
3537fi
3538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3539ac_cv_c_compiler_gnu=$ac_compiler_gnu
3540
3541fi
3542echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3543echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3544GCC=`test $ac_compiler_gnu = yes && echo yes`
3545ac_test_CFLAGS=${CFLAGS+set}
3546ac_save_CFLAGS=$CFLAGS
3547CFLAGS="-g"
3548echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3549echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3550if test "${ac_cv_prog_cc_g+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3552else
3553 cat >conftest.$ac_ext <<_ACEOF
3554/* confdefs.h. */
3555_ACEOF
3556cat confdefs.h >>conftest.$ac_ext
3557cat >>conftest.$ac_ext <<_ACEOF
3558/* end confdefs.h. */
3559
3560int
3561main ()
3562{
3563
3564 ;
3565 return 0;
3566}
3567_ACEOF
3568rm -f conftest.$ac_objext
3569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3570 (eval $ac_compile) 2>conftest.er1
3571 ac_status=$?
3572 grep -v '^ *+' conftest.er1 >conftest.err
3573 rm -f conftest.er1
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } &&
3577 { ac_try='test -z "$ac_c_werror_flag"
3578 || test ! -s conftest.err'
3579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 (eval $ac_try) 2>&5
3581 ac_status=$?
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; } &&
3584 { ac_try='test -s conftest.$ac_objext'
3585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 (eval $ac_try) 2>&5
3587 ac_status=$?
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }; }; then
9e07f89d
NN
3590 ac_cv_prog_cc_g=yes
3591else
c6b750e1
DJ
3592 echo "$as_me: failed program was:" >&5
3593sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3594
c6b750e1 3595ac_cv_prog_cc_g=no
376a0e54 3596fi
c6b750e1
DJ
3597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3598fi
3599echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3600echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3601if test "$ac_test_CFLAGS" = set; then
c6b750e1 3602 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3603elif test $ac_cv_prog_cc_g = yes; then
3604 if test "$GCC" = yes; then
3605 CFLAGS="-g -O2"
3606 else
3607 CFLAGS="-g"
3608 fi
3609else
3610 if test "$GCC" = yes; then
3611 CFLAGS="-O2"
3612 else
3613 CFLAGS=
3614 fi
3615fi
c6b750e1
DJ
3616echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3617echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3618if test "${ac_cv_prog_cc_stdc+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3620else
3621 ac_cv_prog_cc_stdc=no
3622ac_save_CC=$CC
3623cat >conftest.$ac_ext <<_ACEOF
3624/* confdefs.h. */
3625_ACEOF
3626cat confdefs.h >>conftest.$ac_ext
3627cat >>conftest.$ac_ext <<_ACEOF
3628/* end confdefs.h. */
3629#include <stdarg.h>
3630#include <stdio.h>
3631#include <sys/types.h>
3632#include <sys/stat.h>
3633/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3634struct buf { int x; };
3635FILE * (*rcsopen) (struct buf *, struct stat *, int);
3636static char *e (p, i)
3637 char **p;
3638 int i;
3639{
3640 return p[i];
3641}
3642static char *f (char * (*g) (char **, int), char **p, ...)
3643{
3644 char *s;
3645 va_list v;
3646 va_start (v,p);
3647 s = g (p, va_arg (v,int));
3648 va_end (v);
3649 return s;
3650}
3651
3652/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3653 function prototypes and stuff, but not '\xHH' hex character constants.
3654 These don't provoke an error unfortunately, instead are silently treated
3655 as 'x'. The following induces an error, until -std1 is added to get
3656 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3657 array size at least. It's necessary to write '\x00'==0 to get something
3658 that's true only with -std1. */
3659int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3660
3661int test (int i, double x);
3662struct s1 {int (*f) (int a);};
3663struct s2 {int (*f) (double a);};
3664int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3665int argc;
3666char **argv;
3667int
3668main ()
3669{
3670return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3671 ;
3672 return 0;
3673}
3674_ACEOF
3675# Don't try gcc -ansi; that turns off useful extensions and
3676# breaks some systems' header files.
3677# AIX -qlanglvl=ansi
3678# Ultrix and OSF/1 -std1
3679# HP-UX 10.20 and later -Ae
3680# HP-UX older versions -Aa -D_HPUX_SOURCE
3681# SVR4 -Xc -D__EXTENSIONS__
3682for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3683do
3684 CC="$ac_save_CC $ac_arg"
3685 rm -f conftest.$ac_objext
3686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687 (eval $ac_compile) 2>conftest.er1
3688 ac_status=$?
3689 grep -v '^ *+' conftest.er1 >conftest.err
3690 rm -f conftest.er1
3691 cat conftest.err >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } &&
3694 { ac_try='test -z "$ac_c_werror_flag"
3695 || test ! -s conftest.err'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 (eval $ac_try) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; } &&
3701 { ac_try='test -s conftest.$ac_objext'
3702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 (eval $ac_try) 2>&5
3704 ac_status=$?
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; }; then
3707 ac_cv_prog_cc_stdc=$ac_arg
3708break
3709else
3710 echo "$as_me: failed program was:" >&5
3711sed 's/^/| /' conftest.$ac_ext >&5
3712
3713fi
3714rm -f conftest.err conftest.$ac_objext
3715done
3716rm -f conftest.$ac_ext conftest.$ac_objext
3717CC=$ac_save_CC
3718
3719fi
3720
3721case "x$ac_cv_prog_cc_stdc" in
3722 x|xno)
3723 echo "$as_me:$LINENO: result: none needed" >&5
3724echo "${ECHO_T}none needed" >&6 ;;
3725 *)
3726 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3727echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3728 CC="$CC $ac_cv_prog_cc_stdc" ;;
3729esac
3730
3731# Some people use a C++ compiler to compile C. Since we use `exit',
3732# in C++ we need to declare it. In case someone uses the same compiler
3733# for both compiling C and C++ we need to have the C++ compiler decide
3734# the declaration of exit, since it's the most demanding environment.
3735cat >conftest.$ac_ext <<_ACEOF
3736#ifndef __cplusplus
3737 choke me
3738#endif
3739_ACEOF
3740rm -f conftest.$ac_objext
3741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3742 (eval $ac_compile) 2>conftest.er1
3743 ac_status=$?
3744 grep -v '^ *+' conftest.er1 >conftest.err
3745 rm -f conftest.er1
3746 cat conftest.err >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); } &&
3749 { ac_try='test -z "$ac_c_werror_flag"
3750 || test ! -s conftest.err'
3751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752 (eval $ac_try) 2>&5
3753 ac_status=$?
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); }; } &&
3756 { ac_try='test -s conftest.$ac_objext'
3757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758 (eval $ac_try) 2>&5
3759 ac_status=$?
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); }; }; then
3762 for ac_declaration in \
3763 '' \
3764 'extern "C" void std::exit (int) throw (); using std::exit;' \
3765 'extern "C" void std::exit (int); using std::exit;' \
3766 'extern "C" void exit (int) throw ();' \
3767 'extern "C" void exit (int);' \
3768 'void exit (int);'
3769do
3770 cat >conftest.$ac_ext <<_ACEOF
3771/* confdefs.h. */
3772_ACEOF
3773cat confdefs.h >>conftest.$ac_ext
3774cat >>conftest.$ac_ext <<_ACEOF
3775/* end confdefs.h. */
3776$ac_declaration
3777#include <stdlib.h>
3778int
3779main ()
3780{
3781exit (42);
3782 ;
3783 return 0;
3784}
3785_ACEOF
3786rm -f conftest.$ac_objext
3787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788 (eval $ac_compile) 2>conftest.er1
3789 ac_status=$?
3790 grep -v '^ *+' conftest.er1 >conftest.err
3791 rm -f conftest.er1
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } &&
3795 { ac_try='test -z "$ac_c_werror_flag"
3796 || test ! -s conftest.err'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 (eval $ac_try) 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; } &&
3802 { ac_try='test -s conftest.$ac_objext'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 (eval $ac_try) 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; }; then
3808 :
3809else
3810 echo "$as_me: failed program was:" >&5
3811sed 's/^/| /' conftest.$ac_ext >&5
3812
3813continue
3814fi
3815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3816 cat >conftest.$ac_ext <<_ACEOF
3817/* confdefs.h. */
3818_ACEOF
3819cat confdefs.h >>conftest.$ac_ext
3820cat >>conftest.$ac_ext <<_ACEOF
3821/* end confdefs.h. */
3822$ac_declaration
3823int
3824main ()
3825{
3826exit (42);
3827 ;
3828 return 0;
3829}
3830_ACEOF
3831rm -f conftest.$ac_objext
3832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3833 (eval $ac_compile) 2>conftest.er1
3834 ac_status=$?
3835 grep -v '^ *+' conftest.er1 >conftest.err
3836 rm -f conftest.er1
3837 cat conftest.err >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } &&
3840 { ac_try='test -z "$ac_c_werror_flag"
3841 || test ! -s conftest.err'
3842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 (eval $ac_try) 2>&5
3844 ac_status=$?
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; } &&
3847 { ac_try='test -s conftest.$ac_objext'
3848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 (eval $ac_try) 2>&5
3850 ac_status=$?
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); }; }; then
3853 break
3854else
3855 echo "$as_me: failed program was:" >&5
3856sed 's/^/| /' conftest.$ac_ext >&5
3857
3858fi
3859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3860done
3861rm -f conftest*
3862if test -n "$ac_declaration"; then
3863 echo '#ifdef __cplusplus' >>confdefs.h
3864 echo $ac_declaration >>confdefs.h
3865 echo '#endif' >>confdefs.h
3866fi
3867
3868else
3869 echo "$as_me: failed program was:" >&5
3870sed 's/^/| /' conftest.$ac_ext >&5
3871
3872fi
3873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3874ac_ext=c
3875ac_cpp='$CPP $CPPFLAGS'
3876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3878ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3879
18f6b6ee
PB
3880ac_ext=cc
3881ac_cpp='$CXXCPP $CPPFLAGS'
3882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3885if test -n "$ac_tool_prefix"; then
3886 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3887 do
3888 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3889set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3890echo "$as_me:$LINENO: checking for $ac_word" >&5
3891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3892if test "${ac_cv_prog_CXX+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894else
3895 if test -n "$CXX"; then
3896 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3897else
3898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899for as_dir in $PATH
3900do
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3905 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 break 2
3908 fi
3909done
3910done
512b7dfb 3911
18f6b6ee
PB
3912fi
3913fi
3914CXX=$ac_cv_prog_CXX
3915if test -n "$CXX"; then
3916 echo "$as_me:$LINENO: result: $CXX" >&5
3917echo "${ECHO_T}$CXX" >&6
3918else
3919 echo "$as_me:$LINENO: result: no" >&5
3920echo "${ECHO_T}no" >&6
3921fi
3922
3923 test -n "$CXX" && break
3924 done
3925fi
3926if test -z "$CXX"; then
3927 ac_ct_CXX=$CXX
3928 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3929do
3930 # Extract the first word of "$ac_prog", so it can be a program name with args.
3931set dummy $ac_prog; ac_word=$2
3932echo "$as_me:$LINENO: checking for $ac_word" >&5
3933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3934if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3936else
3937 if test -n "$ac_ct_CXX"; then
3938 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3939else
3940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941for as_dir in $PATH
3942do
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3947 ac_cv_prog_ac_ct_CXX="$ac_prog"
3948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3949 break 2
512b7dfb 3950 fi
18f6b6ee
PB
3951done
3952done
512b7dfb 3953
18f6b6ee
PB
3954fi
3955fi
3956ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3957if test -n "$ac_ct_CXX"; then
3958 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3959echo "${ECHO_T}$ac_ct_CXX" >&6
3960else
3961 echo "$as_me:$LINENO: result: no" >&5
3962echo "${ECHO_T}no" >&6
3963fi
3964
3965 test -n "$ac_ct_CXX" && break
3966done
3967test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3968
3969 CXX=$ac_ct_CXX
3970fi
3971
3972
3973# Provide some information about the compiler.
3974echo "$as_me:$LINENO:" \
3975 "checking for C++ compiler version" >&5
3976ac_compiler=`set X $ac_compile; echo $2`
3977{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3978 (eval $ac_compiler --version </dev/null >&5) 2>&5
3979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }
3982{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3983 (eval $ac_compiler -v </dev/null >&5) 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }
3987{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3988 (eval $ac_compiler -V </dev/null >&5) 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }
3992
3993echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3994echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3995if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3997else
3998 cat >conftest.$ac_ext <<_ACEOF
3999/* confdefs.h. */
4000_ACEOF
4001cat confdefs.h >>conftest.$ac_ext
4002cat >>conftest.$ac_ext <<_ACEOF
4003/* end confdefs.h. */
4004
4005int
4006main ()
4007{
4008#ifndef __GNUC__
4009 choke me
4010#endif
4011
4012 ;
4013 return 0;
4014}
4015_ACEOF
4016rm -f conftest.$ac_objext
4017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018 (eval $ac_compile) 2>conftest.er1
4019 ac_status=$?
4020 grep -v '^ *+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } &&
4025 { ac_try='test -z "$ac_cxx_werror_flag"
4026 || test ! -s conftest.err'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028 (eval $ac_try) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; } &&
4032 { ac_try='test -s conftest.$ac_objext'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4038 ac_compiler_gnu=yes
4039else
4040 echo "$as_me: failed program was:" >&5
4041sed 's/^/| /' conftest.$ac_ext >&5
4042
4043ac_compiler_gnu=no
4044fi
4045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4046ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4047
4048fi
4049echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4050echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4051GXX=`test $ac_compiler_gnu = yes && echo yes`
4052ac_test_CXXFLAGS=${CXXFLAGS+set}
4053ac_save_CXXFLAGS=$CXXFLAGS
4054CXXFLAGS="-g"
4055echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4056echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4057if test "${ac_cv_prog_cxx_g+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4059else
4060 cat >conftest.$ac_ext <<_ACEOF
4061/* confdefs.h. */
4062_ACEOF
4063cat confdefs.h >>conftest.$ac_ext
4064cat >>conftest.$ac_ext <<_ACEOF
4065/* end confdefs.h. */
4066
4067int
4068main ()
4069{
4070
4071 ;
4072 return 0;
4073}
4074_ACEOF
4075rm -f conftest.$ac_objext
4076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4077 (eval $ac_compile) 2>conftest.er1
4078 ac_status=$?
4079 grep -v '^ *+' conftest.er1 >conftest.err
4080 rm -f conftest.er1
4081 cat conftest.err >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } &&
4084 { ac_try='test -z "$ac_cxx_werror_flag"
4085 || test ! -s conftest.err'
4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 (eval $ac_try) 2>&5
4088 ac_status=$?
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; } &&
4091 { ac_try='test -s conftest.$ac_objext'
4092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093 (eval $ac_try) 2>&5
4094 ac_status=$?
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; }; then
4097 ac_cv_prog_cxx_g=yes
4098else
4099 echo "$as_me: failed program was:" >&5
4100sed 's/^/| /' conftest.$ac_ext >&5
4101
4102ac_cv_prog_cxx_g=no
4103fi
4104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4105fi
4106echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4107echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4108if test "$ac_test_CXXFLAGS" = set; then
4109 CXXFLAGS=$ac_save_CXXFLAGS
4110elif test $ac_cv_prog_cxx_g = yes; then
4111 if test "$GXX" = yes; then
4112 CXXFLAGS="-g -O2"
4113 else
4114 CXXFLAGS="-g"
4115 fi
4116else
4117 if test "$GXX" = yes; then
4118 CXXFLAGS="-O2"
4119 else
4120 CXXFLAGS=
4121 fi
4122fi
4123for ac_declaration in \
4124 '' \
4125 'extern "C" void std::exit (int) throw (); using std::exit;' \
4126 'extern "C" void std::exit (int); using std::exit;' \
4127 'extern "C" void exit (int) throw ();' \
4128 'extern "C" void exit (int);' \
4129 'void exit (int);'
4130do
4131 cat >conftest.$ac_ext <<_ACEOF
4132/* confdefs.h. */
4133_ACEOF
4134cat confdefs.h >>conftest.$ac_ext
4135cat >>conftest.$ac_ext <<_ACEOF
4136/* end confdefs.h. */
4137$ac_declaration
4138#include <stdlib.h>
4139int
4140main ()
4141{
4142exit (42);
4143 ;
4144 return 0;
4145}
4146_ACEOF
4147rm -f conftest.$ac_objext
4148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4149 (eval $ac_compile) 2>conftest.er1
4150 ac_status=$?
4151 grep -v '^ *+' conftest.er1 >conftest.err
4152 rm -f conftest.er1
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } &&
4156 { ac_try='test -z "$ac_cxx_werror_flag"
4157 || test ! -s conftest.err'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 (eval $ac_try) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; } &&
4163 { ac_try='test -s conftest.$ac_objext'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 (eval $ac_try) 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 :
4170else
4171 echo "$as_me: failed program was:" >&5
4172sed 's/^/| /' conftest.$ac_ext >&5
4173
4174continue
4175fi
4176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4177 cat >conftest.$ac_ext <<_ACEOF
4178/* confdefs.h. */
4179_ACEOF
4180cat confdefs.h >>conftest.$ac_ext
4181cat >>conftest.$ac_ext <<_ACEOF
4182/* end confdefs.h. */
4183$ac_declaration
4184int
4185main ()
4186{
4187exit (42);
4188 ;
4189 return 0;
4190}
4191_ACEOF
4192rm -f conftest.$ac_objext
4193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4194 (eval $ac_compile) 2>conftest.er1
4195 ac_status=$?
4196 grep -v '^ *+' conftest.er1 >conftest.err
4197 rm -f conftest.er1
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } &&
4201 { ac_try='test -z "$ac_cxx_werror_flag"
4202 || test ! -s conftest.err'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 (eval $ac_try) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; } &&
4208 { ac_try='test -s conftest.$ac_objext'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 (eval $ac_try) 2>&5
4211 ac_status=$?
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; }; then
4214 break
4215else
4216 echo "$as_me: failed program was:" >&5
4217sed 's/^/| /' conftest.$ac_ext >&5
4218
4219fi
4220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4221done
4222rm -f conftest*
4223if test -n "$ac_declaration"; then
4224 echo '#ifdef __cplusplus' >>confdefs.h
4225 echo $ac_declaration >>confdefs.h
4226 echo '#endif' >>confdefs.h
4227fi
4228
4229ac_ext=c
4230ac_cpp='$CPP $CPPFLAGS'
4231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233ac_compiler_gnu=$ac_cv_c_compiler_gnu
4234
4235
4236# We must set the default linker to the linker used by gcc for the correct
4237# operation of libtool. If LD is not defined and we are using gcc, try to
4238# set the LD default to the ld used by gcc.
4239if test -z "$LD"; then
4240 if test "$GCC" = yes; then
4241 case $build in
4242 *-*-mingw*)
4243 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4244 *)
4245 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4246 esac
4247 case $gcc_prog_ld in
4248 # Accept absolute paths.
4249 [\\/]* | [A-Za-z]:[\\/]*)
4250 LD="$gcc_prog_ld" ;;
4251 esac
4252 fi
512b7dfb
PB
4253fi
4254
4255
4256
4257
c6b750e1 4258if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4259 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4260set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4261echo "$as_me:$LINENO: checking for $ac_word" >&5
4262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4263if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4264 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4265else
512b7dfb
PB
4266 if test -n "$GNATBIND"; then
4267 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4268else
c6b750e1
DJ
4269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270for as_dir in $PATH
4271do
4272 IFS=$as_save_IFS
4273 test -z "$as_dir" && as_dir=.
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4276 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 break 2
4279 fi
4280done
4281done
4282
9e07f89d
NN
4283fi
4284fi
512b7dfb
PB
4285GNATBIND=$ac_cv_prog_GNATBIND
4286if test -n "$GNATBIND"; then
4287 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4288echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4289else
c6b750e1
DJ
4290 echo "$as_me:$LINENO: result: no" >&5
4291echo "${ECHO_T}no" >&6
9e07f89d
NN
4292fi
4293
c6b750e1 4294fi
512b7dfb
PB
4295if test -z "$ac_cv_prog_GNATBIND"; then
4296 ac_ct_GNATBIND=$GNATBIND
4297 # Extract the first word of "gnatbind", so it can be a program name with args.
4298set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4299echo "$as_me:$LINENO: checking for $ac_word" >&5
4300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4301if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4302 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4303else
512b7dfb
PB
4304 if test -n "$ac_ct_GNATBIND"; then
4305 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4306else
c6b750e1
DJ
4307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308for as_dir in $PATH
4309do
4310 IFS=$as_save_IFS
4311 test -z "$as_dir" && as_dir=.
4312 for ac_exec_ext in '' $ac_executable_extensions; do
4313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4314 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4316 break 2
4317 fi
4318done
4319done
4320
512b7dfb 4321 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4322fi
4323fi
512b7dfb
PB
4324ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4325if test -n "$ac_ct_GNATBIND"; then
4326 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4327echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4328else
c6b750e1
DJ
4329 echo "$as_me:$LINENO: result: no" >&5
4330echo "${ECHO_T}no" >&6
9e07f89d
NN
4331fi
4332
512b7dfb 4333 GNATBIND=$ac_ct_GNATBIND
24ff9987 4334else
512b7dfb 4335 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4336fi
4337
7df2cd5d 4338if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4339 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4340set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4341echo "$as_me:$LINENO: checking for $ac_word" >&5
4342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4343if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4345else
512b7dfb
PB
4346 if test -n "$GNATMAKE"; then
4347 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4348else
4349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350for as_dir in $PATH
4351do
4352 IFS=$as_save_IFS
4353 test -z "$as_dir" && as_dir=.
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4356 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4358 break 2
4359 fi
4360done
4361done
4362
4363fi
4364fi
512b7dfb
PB
4365GNATMAKE=$ac_cv_prog_GNATMAKE
4366if test -n "$GNATMAKE"; then
4367 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4368echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4369else
4370 echo "$as_me:$LINENO: result: no" >&5
4371echo "${ECHO_T}no" >&6
4372fi
4373
4374fi
512b7dfb
PB
4375if test -z "$ac_cv_prog_GNATMAKE"; then
4376 ac_ct_GNATMAKE=$GNATMAKE
4377 # Extract the first word of "gnatmake", so it can be a program name with args.
4378set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4379echo "$as_me:$LINENO: checking for $ac_word" >&5
4380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4381if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383else
512b7dfb
PB
4384 if test -n "$ac_ct_GNATMAKE"; then
4385 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4386else
4387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388for as_dir in $PATH
4389do
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4394 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 break 2
4397 fi
4398done
4399done
4400
512b7dfb 4401 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4402fi
4403fi
512b7dfb
PB
4404ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4405if test -n "$ac_ct_GNATMAKE"; then
4406 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4407echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4408else
4409 echo "$as_me:$LINENO: result: no" >&5
4410echo "${ECHO_T}no" >&6
4411fi
4412
512b7dfb 4413 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4414else
512b7dfb 4415 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4416fi
4417
c6b750e1
DJ
4418echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4419echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4420if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4422else
4423 cat >conftest.adb <<EOF
4424procedure conftest is begin null; end conftest;
4425EOF
4426acx_cv_cc_gcc_supports_ada=no
4427# There is a bug in old released versions of GCC which causes the
4428# driver to exit successfully when the appropriate language module
4429# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4430# Therefore we must check for the error message as well as an
4431# unsuccessful exit.
b8908782
DD
4432# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4433# given a .adb file, but produce no object file. So we must check
4434# if an object file was really produced to guard against this.
9e07f89d 4435errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4436if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4437 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4438fi
4439rm -f conftest.*
4440fi
c6b750e1
DJ
4441echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4442echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4443
512b7dfb 4444if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4445 have_gnat=yes
4446else
4447 have_gnat=no
4448fi
4449
c6b750e1
DJ
4450echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4451echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4452if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4454else
4455 echo abfoo >t1
4456 echo cdfoo >t2
4457 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4458 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4459 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4460 :
4461 else
4462 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4463 fi
4464 fi
b8908782
DD
4465 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4466 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4467 :
b8908782
DD
4468 else
4469 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4470 fi
4471 fi
4472 rm t1 t2
4473
4474fi
c6b750e1
DJ
4475echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4476echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4477do_compare="$gcc_cv_prog_cmp_skip"
4478
4479
9e07f89d 4480
11b04d1f 4481# Check for GMP and MPFR
4b900473 4482gmplibs="-lmpfr -lgmp"
4b1cb4fe 4483gmpinc=
4b900473
PB
4484have_gmp=no
4485
11b04d1f
DD
4486# Specify a location for mpfr
4487# check for this first so it ends up on the link line before gmp.
c6b750e1 4488
11b04d1f
DD
4489# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4490if test "${with_mpfr_dir+set}" = set; then
4491 withval="$with_mpfr_dir"
c6b750e1
DJ
4492 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4493Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4494echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4495Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4496 { (exit 1); exit 1; }; }
4497fi;
11b04d1f
DD
4498
4499
11b04d1f
DD
4500# Check whether --with-mpfr or --without-mpfr was given.
4501if test "${with_mpfr+set}" = set; then
4502 withval="$with_mpfr"
c6b750e1
DJ
4503
4504fi;
11b04d1f 4505
8a0d8a5c
PB
4506# Check whether --with-mpfr_include or --without-mpfr_include was given.
4507if test "${with_mpfr_include+set}" = set; then
4508 withval="$with_mpfr_include"
c6b750e1
DJ
4509
4510fi;
8a0d8a5c
PB
4511
4512# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4513if test "${with_mpfr_lib+set}" = set; then
4514 withval="$with_mpfr_lib"
8a0d8a5c 4515
c6b750e1 4516fi;
11b04d1f
DD
4517
4518if test "x$with_mpfr" != x; then
4519 gmplibs="-L$with_mpfr/lib $gmplibs"
4520 gmpinc="-I$with_mpfr/include"
4521fi
8a0d8a5c
PB
4522if test "x$with_mpfr_include" != x; then
4523 gmpinc="-I$with_mpfr_include"
4524fi
4525if test "x$with_mpfr_lib" != x; then
4526 gmplibs="-L$with_mpfr_lib $gmplibs"
4527fi
4b900473
PB
4528if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4529 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4530 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4531 # Do not test the mpfr version. Assume that it is sufficient, since
4532 # it is in the source tree, and the library has not been built yet
4533 # but it would be included on the link line in the version check below
4534 # hence making the test fail.
4535 have_gmp=yes
4536fi
11b04d1f 4537
4b1cb4fe 4538# Specify a location for gmp
c6b750e1 4539
4b1cb4fe
DD
4540# Check whether --with-gmp-dir or --without-gmp-dir was given.
4541if test "${with_gmp_dir+set}" = set; then
4542 withval="$with_gmp_dir"
c6b750e1
DJ
4543 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4544Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4545echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4546Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4547 { (exit 1); exit 1; }; }
4548fi;
4b1cb4fe
DD
4549
4550
4b1cb4fe
DD
4551# Check whether --with-gmp or --without-gmp was given.
4552if test "${with_gmp+set}" = set; then
4553 withval="$with_gmp"
c6b750e1
DJ
4554
4555fi;
4b1cb4fe 4556
8a0d8a5c
PB
4557# Check whether --with-gmp_include or --without-gmp_include was given.
4558if test "${with_gmp_include+set}" = set; then
4559 withval="$with_gmp_include"
c6b750e1
DJ
4560
4561fi;
8a0d8a5c
PB
4562
4563# Check whether --with-gmp_lib or --without-gmp_lib was given.
4564if test "${with_gmp_lib+set}" = set; then
4565 withval="$with_gmp_lib"
8a0d8a5c 4566
c6b750e1 4567fi;
8a0d8a5c 4568
4b1cb4fe 4569
11b04d1f
DD
4570if test "x$with_gmp" != x; then
4571 gmplibs="-L$with_gmp/lib $gmplibs"
4572 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4573fi
8a0d8a5c
PB
4574if test "x$with_gmp_include" != x; then
4575 gmpinc="-I$with_gmp_include $gmpinc"
4576fi
4577if test "x$with_gmp_lib" != x; then
4578 gmplibs="-L$with_gmp_lib $gmplibs"
4579fi
4b900473
PB
4580if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4581 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4582 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4583 # Do not test the gmp version. Assume that it is sufficient, since
4584 # it is in the source tree, and the library has not been built yet
4585 # but it would be included on the link line in the version check below
4586 # hence making the test fail.
4587 have_gmp=yes
4588fi
4b1cb4fe 4589
ceb92e78 4590if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4591 have_gmp=yes
4592 saved_CFLAGS="$CFLAGS"
4593 CFLAGS="$CFLAGS $gmpinc"
4594 # Check GMP actually works
c6b750e1
DJ
4595 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4596echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4597
4598cat >conftest.$ac_ext <<_ACEOF
4599/* confdefs.h. */
4600_ACEOF
4601cat confdefs.h >>conftest.$ac_ext
4602cat >>conftest.$ac_ext <<_ACEOF
4603/* end confdefs.h. */
4b1cb4fe 4604#include "gmp.h"
c6b750e1
DJ
4605int
4606main ()
4607{
4b1cb4fe 4608
4b900473
PB
4609 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4610 choke me
4611 #endif
c6b750e1
DJ
4612
4613 ;
4614 return 0;
4615}
4616_ACEOF
4617rm -f conftest.$ac_objext
4618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4619 (eval $ac_compile) 2>conftest.er1
4620 ac_status=$?
4621 grep -v '^ *+' conftest.er1 >conftest.err
4622 rm -f conftest.er1
4623 cat conftest.err >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); } &&
4626 { ac_try='test -z "$ac_c_werror_flag"
4627 || test ! -s conftest.err'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 (eval $ac_try) 2>&5
4630 ac_status=$?
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; } &&
4633 { ac_try='test -s conftest.$ac_objext'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 (eval $ac_try) 2>&5
4636 ac_status=$?
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; }; then
4639 echo "$as_me:$LINENO: result: yes" >&5
4640echo "${ECHO_T}yes" >&6
4641else
4642 echo "$as_me: failed program was:" >&5
4643sed 's/^/| /' conftest.$ac_ext >&5
4644
4645echo "$as_me:$LINENO: result: no" >&5
4646echo "${ECHO_T}no" >&6; have_gmp=no
4647fi
4648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4649
4b900473
PB
4650 if test x"$have_gmp" = xyes; then
4651 saved_LIBS="$LIBS"
4652 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4653 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4654echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4655 cat >conftest.$ac_ext <<_ACEOF
4656/* confdefs.h. */
4657_ACEOF
4658cat confdefs.h >>conftest.$ac_ext
4659cat >>conftest.$ac_ext <<_ACEOF
4660/* end confdefs.h. */
9b134994 4661#include <gmp.h>
4b900473 4662 #include <mpfr.h>
c6b750e1
DJ
4663int
4664main ()
4665{
9b134994 4666
57c53b2b 4667 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4b900473
PB
4668 choke me
4669 #endif
a3ca38d2
DD
4670 mpfr_t n;
4671 mpfr_t x;
4b900473 4672 int t;
a3ca38d2
DD
4673 mpfr_init (n);
4674 mpfr_init (x);
4b900473
PB
4675 mpfr_atan2 (n, n, x, GMP_RNDN);
4676 mpfr_erfc (n, x, GMP_RNDN);
4677 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4678
4679 ;
4680 return 0;
4681}
4682_ACEOF
4683rm -f conftest.$ac_objext conftest$ac_exeext
4684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4685 (eval $ac_link) 2>conftest.er1
4686 ac_status=$?
4687 grep -v '^ *+' conftest.er1 >conftest.err
4688 rm -f conftest.er1
4689 cat conftest.err >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } &&
4692 { ac_try='test -z "$ac_c_werror_flag"
4693 || test ! -s conftest.err'
4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 (eval $ac_try) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; } &&
4699 { ac_try='test -s conftest$ac_exeext'
4700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 (eval $ac_try) 2>&5
4702 ac_status=$?
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); }; }; then
4705 cat >conftest.$ac_ext <<_ACEOF
4706/* confdefs.h. */
4707_ACEOF
4708cat confdefs.h >>conftest.$ac_ext
4709cat >>conftest.$ac_ext <<_ACEOF
4710/* end confdefs.h. */
4b1cb4fe 4711#include <gmp.h>
4b900473 4712 #include <mpfr.h>
c6b750e1
DJ
4713int
4714main ()
4715{
9dbaa842 4716
57c53b2b 4717 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
4b900473
PB
4718 choke me
4719 #endif
4720 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4721
4722 ;
4723 return 0;
4724}
4725_ACEOF
4726rm -f conftest.$ac_objext conftest$ac_exeext
4727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4728 (eval $ac_link) 2>conftest.er1
4729 ac_status=$?
4730 grep -v '^ *+' conftest.er1 >conftest.err
4731 rm -f conftest.er1
4732 cat conftest.err >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); } &&
4735 { ac_try='test -z "$ac_c_werror_flag"
4736 || test ! -s conftest.err'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; } &&
4742 { ac_try='test -s conftest$ac_exeext'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 (eval $ac_try) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; }; then
4748 echo "$as_me:$LINENO: result: yes" >&5
4749echo "${ECHO_T}yes" >&6
4750else
4751 echo "$as_me: failed program was:" >&5
4752sed 's/^/| /' conftest.$ac_ext >&5
4753
4754echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4755echo "${ECHO_T}buggy but acceptable" >&6
4756fi
4757rm -f conftest.err conftest.$ac_objext \
4758 conftest$ac_exeext conftest.$ac_ext
4759else
4760 echo "$as_me: failed program was:" >&5
4761sed 's/^/| /' conftest.$ac_ext >&5
4762
4763echo "$as_me:$LINENO: result: no" >&5
4764echo "${ECHO_T}no" >&6; have_gmp=no
4765fi
4766rm -f conftest.err conftest.$ac_objext \
4767 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4768 LIBS="$saved_LIBS"
4769 fi
4770 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4771
4b900473 4772 if test x$have_gmp != xyes; then
57c53b2b 4773 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
c6b750e1
DJ
4774Try the --with-gmp and/or --with-mpfr options to specify their locations.
4775Copies of these libraries' source code can be found at their respective
4776hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4777See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4778If you obtained GMP and/or MPFR from a vendor distribution package, make
4779sure that you have installed both the libraries and the header files.
4780They may be located in separate packages." >&5
57c53b2b 4781echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
9dbaa842
DD
4782Try the --with-gmp and/or --with-mpfr options to specify their locations.
4783Copies of these libraries' source code can be found at their respective
4784hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4785See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4786If you obtained GMP and/or MPFR from a vendor distribution package, make
4787sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4788They may be located in separate packages." >&2;}
4789 { (exit 1); exit 1; }; }
4b900473 4790 fi
9dbaa842
DD
4791fi
4792
11b04d1f 4793# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4794
4795
4796
947f426e 4797# By default, C is the only stage 1 language.
9b134994 4798stage1_languages=,c,
1d39f329 4799
9e07f89d
NN
4800# Figure out what language subdirectories are present.
4801# Look if the user specified --enable-languages="..."; if not, use
4802# the environment variable $LANGUAGES if defined. $LANGUAGES might
4803# go away some day.
4804# NB: embedded tabs in this IF block -- do not untabify
4805if test -d ${srcdir}/gcc; then
4806 if test x"${enable_languages+set}" != xset; then
4807 if test x"${LANGUAGES+set}" = xset; then
4808 enable_languages="${LANGUAGES}"
4809 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4810 else
4811 enable_languages=all
4812 fi
4813 else
4814 if test x"${enable_languages}" = x ||
4815 test x"${enable_languages}" = xyes;
4816 then
4817 echo configure.in: --enable-languages needs at least one language argument 1>&2
4818 exit 1
4819 fi
4820 fi
4821 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4822
096f7d00
DE
4823 # 'f95' is the old name for the 'fortran' language. We issue a warning
4824 # and make the substitution.
4825 case ,${enable_languages}, in
4826 *,f95,*)
4827 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4828 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4829 ;;
4830 esac
4831
9e07f89d
NN
4832 # First scan to see if an enabled language requires some other language.
4833 # We assume that a given config-lang.in will list all the language
4834 # front ends it requires, even if some are required indirectly.
4835 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4836 case ${lang_frag} in
4837 ..) ;;
4838 # The odd quoting in the next line works around
4839 # an apparent bug in bash 1.12 on linux.
4840 ${srcdir}/gcc/[*]/config-lang.in) ;;
4841 *)
4842 # From the config-lang.in, get $language, $lang_requires
4843 language=
4844 lang_requires=
4845 . ${lang_frag}
4846 for other in ${lang_requires} ; do
4847 case ,${enable_languages}, in
4848 *,$other,*) ;;
4849 *,all,*) ;;
4850 *,$language,*)
4851 echo " \`$other' language required by \`$language'; enabling" 1>&2
4852 enable_languages="${enable_languages},${other}"
4853 ;;
4854 esac
4855 done
4856 ;;
4857 esac
4858 done
4859
9b134994 4860 new_enable_languages=,c,
9e07f89d 4861 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4862 potential_languages=,c,
9e07f89d
NN
4863
4864 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4865 case ${lang_frag} in
4866 ..) ;;
4867 # The odd quoting in the next line works around
4868 # an apparent bug in bash 1.12 on linux.
4869 ${srcdir}/gcc/[*]/config-lang.in) ;;
4870 *)
c6b750e1 4871 # From the config-lang.in, get $language, $target_libs,
1d39f329 4872 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4873 language=
4874 target_libs=
4875 lang_dirs=
64ce424c 4876 subdir_requires=
9b134994
PB
4877 boot_language=no
4878 build_by_default=yes
9e07f89d 4879 . ${lang_frag}
9b134994
PB
4880 if test x${language} = x; then
4881 echo "${lang_frag} doesn't set \$language." 1>&2
4882 exit 1
4883 fi
4884
4885 case ,${enable_languages}, in
4886 *,${language},*)
9e07f89d
NN
4887 # Language was explicitly selected; include it.
4888 add_this_lang=yes
4889 ;;
9b134994
PB
4890 *,all,*)
4891 # 'all' was selected, select it if it is a default language
4892 add_this_lang=${build_by_default}
9e07f89d
NN
4893 ;;
4894 *)
4895 add_this_lang=no
4896 ;;
4897 esac
4b1cb4fe 4898
64ce424c 4899 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4900 for i in $subdir_requires; do
3d3adb43 4901 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4902 case ,${enable_languages}, in
4903 *,${language},*)
4904 # Specifically requested language; tell them.
c6b750e1
DJ
4905 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4906echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4907 { (exit 1); exit 1; }; }
64ce424c
PB
4908 ;;
4909 *)
4910 # Silently disable.
9b134994 4911 add_this_lang=unsupported
64ce424c
PB
4912 ;;
4913 esac
4914 done
4915
9b134994
PB
4916 # Disable Ada if no preexisting GNAT is available.
4917 case ,${enable_languages},:${language}:${have_gnat} in
4918 *,${language},*:ada:no)
4919 # Specifically requested language; tell them.
c6b750e1
DJ
4920 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4921echo "$as_me: error: GNAT is required to build $language" >&2;}
4922 { (exit 1); exit 1; }; }
9b134994
PB
4923 ;;
4924 *:ada:no)
4925 # Silently disable.
4926 add_this_lang=unsupported
4927 ;;
4928 esac
4929
59f7ec45
HPN
4930 # Disable a language that is unsupported by the target.
4931 case " $unsupported_languages " in
4932 *" $language "*)
9b134994 4933 add_this_lang=unsupported
59f7ec45
HPN
4934 ;;
4935 esac
4936
4b1cb4fe 4937 case $add_this_lang in
9b134994 4938 unsupported)
9e07f89d 4939 # Remove language-dependent dirs.
1d39f329
NN
4940 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4941 ;;
9b134994
PB
4942 no)
4943 # Remove language-dependent dirs; still show language as supported.
4944 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4945 potential_languages="${potential_languages}${language},"
4946 ;;
4947 yes)
4948 new_enable_languages="${new_enable_languages}${language},"
4949 potential_languages="${potential_languages}${language},"
1d39f329
NN
4950 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4951 case ${boot_language} in
4952 yes)
4fa63067 4953 # Add to (comma-separated) list of stage 1 languages.
9b134994 4954 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4955 ;;
4956 esac
4957 ;;
9e07f89d
NN
4958 esac
4959 ;;
4960 esac
4961 done
4962
9b134994
PB
4963 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4964if test "${enable_stage1_languages+set}" = set; then
4965 enableval="$enable_stage1_languages"
4966 case ,${enable_stage1_languages}, in
4967 ,no,|,,)
4968 # Set it to something that will have no effect in the loop below
4969 enable_stage1_languages=c ;;
4970 ,yes,)
4971 enable_stage1_languages=`echo $new_enable_languages | \
4972 sed -e "s/^,//" -e "s/,$//" ` ;;
4973 *,all,*)
4974 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4975 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4976 esac
4977
4978 # Add "good" languages from enable_stage1_languages to stage1_languages,
4979 # while "bad" languages go in missing_languages. Leave no duplicates.
4980 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4981 case $potential_languages in
4982 *,$i,*)
4983 case $stage1_languages in
4984 *,$i,*) ;;
4985 *) stage1_languages="$stage1_languages$i," ;;
4986 esac ;;
4987 *)
4988 case $missing_languages in
4989 *,$i,*) ;;
4990 *) missing_languages="$missing_languages$i," ;;
4991 esac ;;
4992 esac
4993 done
c6b750e1 4994fi;
9b134994
PB
4995
4996 # Remove leading/trailing commas that were added for simplicity
4997 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4998 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4999 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5000 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5001
9e07f89d 5002 if test "x$missing_languages" != x; then
c6b750e1 5003 { { echo "$as_me:$LINENO: error:
27258dd4 5004The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
5005Supported languages are: ${potential_languages}" >&5
5006echo "$as_me: error:
5007The following requested languages could not be built: ${missing_languages}
5008Supported languages are: ${potential_languages}" >&2;}
5009 { (exit 1); exit 1; }; }
9e07f89d 5010 fi
9e07f89d
NN
5011 if test "x$new_enable_languages" != "x$enable_languages"; then
5012 echo The following languages will be built: ${new_enable_languages}
9b134994 5013 enable_languages="$new_enable_languages"
9e07f89d 5014 fi
9b134994 5015
c6b750e1 5016
81ec575a 5017 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
5018fi
5019
a6df5a19
PB
5020# Handle --disable-<component> generically.
5021for dir in $configdirs $build_configdirs $target_configdirs ; do
5022 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
5023 varname=`echo $dirname | sed -e s/+/_/g`
5024 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
5025 noconfigdirs="$noconfigdirs $dir"
5026 fi
5027done
5028
4f0ef2d8
CD
5029# Check for Boehm's garbage collector
5030# Check whether --enable-objc-gc or --disable-objc-gc was given.
5031if test "${enable_objc_gc+set}" = set; then
5032 enableval="$enable_objc_gc"
5033 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5034 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
5035 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5036echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5037 { (exit 1); exit 1; }; }
4f0ef2d8
CD
5038 ;;
5039esac
c6b750e1 5040fi;
4f0ef2d8
CD
5041
5042# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
5043case ,${enable_languages},:${enable_objc_gc} in
5044 *,objc,*:yes)
4f0ef2d8
CD
5045 # Keep target-boehm-gc if requested for Objective-C.
5046 ;;
4f0ef2d8 5047 *)
d42c4017
DA
5048 # Otherwise remove target-boehm-gc depending on target-libjava.
5049 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5050 noconfigdirs="$noconfigdirs target-boehm-gc"
5051 fi
4f0ef2d8
CD
5052 ;;
5053esac
5054
caeba88f
AL
5055# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5056# $build_configdirs and $target_configdirs.
9e07f89d
NN
5057# If we have the source for $noconfigdirs entries, add them to $notsupp.
5058
5059notsupp=""
5060for dir in . $skipdirs $noconfigdirs ; do
caeba88f 5061 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
5062 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5063 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5064 if test -r $srcdir/$dirname/configure ; then
5065 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5066 true
5067 else
5068 notsupp="$notsupp $dir"
5069 fi
5070 fi
5071 fi
caeba88f
AL
5072 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5073 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5074 if test -r $srcdir/$dirname/configure ; then
5075 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5076 true
5077 else
5078 notsupp="$notsupp $dir"
5079 fi
5080 fi
5081 fi
9e07f89d
NN
5082 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5083 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5084 if test -r $srcdir/$dirname/configure ; then
5085 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5086 true
5087 else
5088 notsupp="$notsupp $dir"
5089 fi
5090 fi
5091 fi
5092done
5093
5094# Sometimes the tools are distributed with libiberty but with no other
5095# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 5096# Don't let libgcc imply libiberty either.
9e07f89d 5097if test -n "${target_configdirs}" ; then
f86e35b8 5098 libgcc=
9e07f89d
NN
5099 others=
5100 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
5101 if test "$i" = "libgcc"; then
5102 libgcc=target-libgcc
5103 elif test "$i" != "libiberty" ; then
9e07f89d
NN
5104 if test -r $srcdir/$i/configure ; then
5105 others=yes;
5106 break;
5107 fi
5108 fi
5109 done
5110 if test -z "${others}" ; then
f86e35b8 5111 target_configdirs=$libgcc
9e07f89d
NN
5112 fi
5113fi
5114
5115# Quietly strip out all directories which aren't configurable in this tree.
5116# This relies on all configurable subdirectories being autoconfiscated, which
5117# is now the case.
6a9cf61e
PB
5118build_configdirs_all="$build_configdirs"
5119build_configdirs=
5120for i in ${build_configdirs_all} ; do
c6b750e1 5121 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5122 if test -f ${srcdir}/$j/configure ; then
5123 build_configdirs="${build_configdirs} $i"
5124 fi
5125done
5126
9e07f89d
NN
5127configdirs_all="$configdirs"
5128configdirs=
5129for i in ${configdirs_all} ; do
5130 if test -f ${srcdir}/$i/configure ; then
5131 configdirs="${configdirs} $i"
5132 fi
5133done
6a9cf61e 5134
9e07f89d
NN
5135target_configdirs_all="$target_configdirs"
5136target_configdirs=
5137for i in ${target_configdirs_all} ; do
c6b750e1 5138 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5139 if test -f ${srcdir}/$j/configure ; then
5140 target_configdirs="${target_configdirs} $i"
5141 fi
5142done
5143
5144# Produce a warning message for the subdirs we can't configure.
5145# This isn't especially interesting in the Cygnus tree, but in the individual
5146# FSF releases, it's important to let people know when their machine isn't
5147# supported by the one or two programs in a package.
5148
5149if test -n "${notsupp}" && test -z "${norecursion}" ; then
5150 # If $appdirs is non-empty, at least one of those directories must still
5151 # be configured, or we error out. (E.g., if the gas release supports a
5152 # specified target in some subdirs but not the gas subdir, we shouldn't
5153 # pretend that all is well.)
5154 if test -n "$appdirs" ; then
5155 for dir in $appdirs ; do
5156 if test -r $dir/Makefile.in ; then
5157 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5158 appdirs=""
5159 break
5160 fi
6a9cf61e 5161 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5162 appdirs=""
5163 break
5164 fi
5165 fi
5166 done
5167 if test -n "$appdirs" ; then
5168 echo "*** This configuration is not supported by this package." 1>&2
5169 exit 1
5170 fi
5171 fi
5172 # Okay, some application will build, or we don't care to check. Still
5173 # notify of subdirs not getting built.
5174 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5175 echo " ${notsupp}" 1>&2
5176 echo " (Any other directories should still work fine.)" 1>&2
5177fi
5178
5179case "$host" in
5180 *msdosdjgpp*)
5181 enable_gdbtk=no ;;
5182esac
5183
18f6b6ee
PB
5184# To find our prefix, in gcc_cv_tool_prefix.
5185
5186# The user is always right.
5187if test "${PATH_SEPARATOR+set}" != set; then
5188 echo "#! /bin/sh" >conf$$.sh
5189 echo "exit 0" >>conf$$.sh
5190 chmod +x conf$$.sh
5191 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5192 PATH_SEPARATOR=';'
5193 else
5194 PATH_SEPARATOR=:
5195 fi
5196 rm -f conf$$.sh
5197fi
5198
5199
5200
5201if test "x$exec_prefix" = xNONE; then
5202 if test "x$prefix" = xNONE; then
5203 gcc_cv_tool_prefix=$ac_default_prefix
5204 else
5205 gcc_cv_tool_prefix=$prefix
5206 fi
5207else
5208 gcc_cv_tool_prefix=$exec_prefix
5209fi
5210
5211# If there is no compiler in the tree, use the PATH only. In any
5212# case, if there is no compiler in the tree nobody should use
5213# AS_FOR_TARGET and LD_FOR_TARGET.
5214if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5215 gcc_version=`cat $srcdir/gcc/BASE-VER`
5216 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5217 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5218 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5219 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5220 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5221 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5222else
5223 gcc_cv_tool_dirs=
5224fi
5225
5226if test x$build = x$target && test -n "$md_exec_prefix"; then
5227 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5228fi
5229
5230
5231
9e07f89d
NN
5232copy_dirs=
5233
c6b750e1 5234
a19b6204
MM
5235# Check whether --with-build-sysroot or --without-build-sysroot was given.
5236if test "${with_build_sysroot+set}" = set; then
5237 withval="$with_build_sysroot"
5238 if test x"$withval" != x ; then
5239 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5240 fi
5241else
5242 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5243fi;
a19b6204
MM
5244
5245
8a6ee3ab
JM
5246
5247# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5248if test "${with_debug_prefix_map+set}" = set; then
5249 withval="$with_debug_prefix_map"
5250 if test x"$withval" != x; then
5251 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5252 for debug_map in $withval; do
5253 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5254 done
5255 fi
5256else
5257 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5258fi;
5259
5260
7f6ef0c0
PB
5261# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5262# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5263# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5264# We want to ensure that TARGET libraries (which we know are built with
5265# gcc) are built with "-O2 -g", so include those options when setting
5266# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5267if test "x$CFLAGS_FOR_TARGET" = x; then
5268 CFLAGS_FOR_TARGET=$CFLAGS
5269 case " $CFLAGS " in
5270 *" -O2 "*) ;;
5271 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5272 esac
5273 case " $CFLAGS " in
5274 *" -g "* | *" -g3 "*) ;;
5275 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5276 esac
5277fi
5278
5279
5280if test "x$CXXFLAGS_FOR_TARGET" = x; then
5281 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5282 case " $CXXFLAGS " in
5283 *" -O2 "*) ;;
5284 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5285 esac
5286 case " $CXXFLAGS " in
5287 *" -g "* | *" -g3 "*) ;;
5288 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5289 esac
5290fi
5291
5292
9e07f89d
NN
5293# Handle --with-headers=XXX. If the value is not "yes", the contents of
5294# the named directory are copied to $(tooldir)/sys-include.
5295if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5296 if test x${is_cross_compiler} = xno ; then
5297 echo 1>&2 '***' --with-headers is only supported when cross compiling
5298 exit 1
5299 fi
5300 if test x"${with_headers}" != xyes ; then
18f6b6ee 5301 x=${gcc_cv_tool_prefix}
c6b750e1 5302 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5303 fi
5304fi
5305
5306# Handle --with-libs=XXX. If the value is not "yes", the contents of
5307# the name directories are copied to $(tooldir)/lib. Multiple directories
5308# are permitted.
5309if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5310 if test x${is_cross_compiler} = xno ; then
5311 echo 1>&2 '***' --with-libs is only supported when cross compiling
5312 exit 1
5313 fi
5314 if test x"${with_libs}" != xyes ; then
5315 # Copy the libraries in reverse order, so that files in the first named
5316 # library override files in subsequent libraries.
18f6b6ee 5317 x=${gcc_cv_tool_prefix}
9e07f89d 5318 for l in ${with_libs}; do
c6b750e1 5319 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5320 done
5321 fi
5322fi
5323
2429c060
PB
5324# Set with_gnu_as and with_gnu_ld as appropriate.
5325#
5326# This is done by determining whether or not the appropriate directory
5327# is available, and by checking whether or not specific configurations
5328# have requested that this magic not happen.
c6b750e1
DJ
5329#
5330# The command line options always override the explicit settings in
2429c060
PB
5331# configure.in, and the settings in configure.in override this magic.
5332#
c6b750e1 5333# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5334# want to do that, then you should use the --without-gnu-as and
5335# --without-gnu-ld options for the configure script.
5336
5337if test x${use_gnu_as} = x &&
5338 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5339 with_gnu_as=yes
5340 extra_host_args="$extra_host_args --with-gnu-as"
5341fi
5342
5343if test x${use_gnu_ld} = x &&
93f9b408 5344 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
5345 with_gnu_ld=yes
5346 extra_host_args="$extra_host_args --with-gnu-ld"
5347fi
5348
5349# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5350# can detect this case.
5351
5352if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5353 with_newlib=yes
5354 extra_host_args="$extra_host_args --with-newlib"
5355fi
5356
9e07f89d
NN
5357# Handle ${copy_dirs}
5358set fnord ${copy_dirs}
5359shift
5360while test $# != 0 ; do
5361 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5362 :
5363 else
5364 echo Copying $1 to $2
5365
5366 # Use the install script to create the directory and all required
5367 # parent directories.
5368 if test -d $2 ; then
5369 :
5370 else
5371 echo >config.temp
5372 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5373 fi
5374
5375 # Copy the directory, assuming we have tar.
5376 # FIXME: Should we use B in the second tar? Not all systems support it.
5377 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5378
5379 # It is the responsibility of the user to correctly adjust all
5380 # symlinks. If somebody can figure out how to handle them correctly
5381 # here, feel free to add the code.
5382
5383 echo $1 > $2/COPIED
5384 fi
5385 shift; shift
5386done
5387
2429c060
PB
5388# Determine a target-dependent exec_prefix that the installed
5389# gcc will search in. Keep this list sorted by triplet, with
5390# the *-*-osname triplets last.
5391md_exec_prefix=
5392case "${target}" in
5393 alpha*-*-*vms*)
5394 md_exec_prefix=/gnu/lib/gcc-lib
5395 ;;
521ec477 5396 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5397 md_exec_prefix=/dev/env/DJDIR/bin
5398 ;;
521ec477 5399 i[34567]86-*-sco3.2v5*)
2429c060
PB
5400 if test $with_gnu_as = yes; then
5401 md_exec_prefix=/usr/gnu/bin
5402 else
5403 md_exec_prefix=/usr/ccs/bin/elf
5404 fi
5405 ;;
5406
5407 mn10300-*-* | \
5408 powerpc-*-chorusos* | \
5409 powerpc*-*-eabi* | \
5410 powerpc*-*-sysv* | \
5411 powerpc*-*-kaos* | \
5412 s390x-ibm-tpf*)
5413 md_exec_prefix=/usr/ccs/bin
5414 ;;
5415 sparc64-*-elf*)
5416 ;;
5417 v850*-*-*)
5418 md_exec_prefix=/usr/ccs/bin
5419 ;;
8b66833e 5420 xtensa*-*-elf*)
2429c060
PB
5421 ;;
5422
5423 *-*-beos* | \
5424 *-*-elf* | \
5425 *-*-hpux* | \
5426 *-*-netware* | \
5427 *-*-nto-qnx* | \
5428 *-*-rtems* | \
5429 *-*-solaris2* | \
521ec477 5430 *-*-sysv[45]* | \
2429c060
PB
5431 *-*-vxworks* | \
5432 *-wrs-windiss)
5433 md_exec_prefix=/usr/ccs/bin
5434 ;;
5435esac
5436
a0da8069
NN
5437extra_arflags_for_target=
5438extra_nmflags_for_target=
5439extra_ranlibflags_for_target=
5440target_makefile_frag=/dev/null
5441case "${target}" in
4e206d7e
DB
5442 mep*-*-*)
5443 target_makefile_frag="config/mt-mep"
5444 ;;
77d7106f
AM
5445 spu-*-*)
5446 target_makefile_frag="config/mt-spu"
5447 ;;
429acdec
RS
5448 mips*-sde-elf*)
5449 target_makefile_frag="config/mt-sde"
5450 ;;
f3b1e08e
RS
5451 mipsisa*-*-elfoabi*)
5452 target_makefile_frag="config/mt-mips-elfoabi"
5453 ;;
e7c8859c
RS
5454 mips*-*-*linux* | mips*-*-gnu*)
5455 target_makefile_frag="config/mt-mips-gnu"
5456 ;;
2a3124ca 5457 *-*-netware*)
a0da8069
NN
5458 target_makefile_frag="config/mt-netware"
5459 ;;
3d6dfe0f
NN
5460 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5461 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5462 ;;
5463 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5464 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5465 # commands to handle both 32-bit and 64-bit objects. These flags are
5466 # harmless if we're using GNU nm or ar.
5467 extra_arflags_for_target=" -X32_64"
5468 extra_nmflags_for_target=" -B -X32_64"
5469 ;;
5470 *-*-darwin*)
5471 # ranlib from Darwin requires the -c flag to look at common symbols.
5472 extra_ranlibflags_for_target=" -c"
5473 ;;
5474 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5475 target_makefile_frag="config/mt-wince"
5476 ;;
5477esac
5478
5479alphaieee_frag=/dev/null
5480case $target in
5481 alpha*-*-*)
5482 # This just makes sure to use the -mieee option to build target libs.
5483 # This should probably be set individually by each library.
5484 alphaieee_frag="config/mt-alphaieee"
5485 ;;
5486esac
5487
5488# If --enable-target-optspace always use -Os instead of -O2 to build
5489# the target libraries, similarly if it is not specified, use -Os
5490# on selected platforms.
5491ospace_frag=/dev/null
5492case "${enable_target_optspace}:${target}" in
5493 yes:*)
5494 ospace_frag="config/mt-ospace"
5495 ;;
5496 :d30v-*)
5497 ospace_frag="config/mt-d30v"
5498 ;;
5499 :m32r-* | :d10v-* | :fr30-*)
5500 ospace_frag="config/mt-ospace"
5501 ;;
5502 no:* | :*)
5503 ;;
5504 *)
5505 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5506 ;;
5507esac
5508
a0da8069
NN
5509# Default to using --with-stabs for certain targets.
5510if test x${with_stabs} = x ; then
5511 case "${target}" in
e31d1ea3 5512 mips*-*-irix[56]*)
a0da8069
NN
5513 ;;
5514 mips*-*-* | alpha*-*-osf*)
5515 with_stabs=yes;
5516 extra_host_args="${extra_host_args} --with-stabs"
5517 ;;
5518 esac
5519fi
5520
5521# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5522# them automatically.
5523case "${host}" in
c6b750e1 5524 hppa*64*-*-hpux11*)
a0da8069
NN
5525 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5526 ;;
5527esac
5528
a0da8069
NN
5529# Some systems (e.g., one of the i386-aix systems the gas testers are
5530# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5531tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5532build_tooldir=${tooldir}
5533
a0da8069
NN
5534# Create a .gdbinit file which runs the one in srcdir
5535# and tells GDB to look there for source files.
5536
5537if test -r ${srcdir}/.gdbinit ; then
5538 case ${srcdir} in
5539 .) ;;
5540 *) cat > ./.gdbinit <<EOF
5541# ${NO_EDIT}
5542dir ${srcdir}
5543dir .
5544source ${srcdir}/.gdbinit
5545EOF
5546 ;;
5547 esac
5548fi
5549
a0da8069
NN
5550# Make sure that the compiler is able to generate an executable. If it
5551# can't, we are probably in trouble. We don't care whether we can run the
5552# executable--we might be using a cross compiler--we only care whether it
5553# can be created. At this point the main configure script has set CC.
5554we_are_ok=no
5555echo "int main () { return 0; }" > conftest.c
5556${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5557if test $? = 0 ; then
5558 if test -s conftest || test -s conftest.exe ; then
5559 we_are_ok=yes
5560 fi
c6b750e1 5561fi
a0da8069
NN
5562case $we_are_ok in
5563 no)
5564 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5565 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5566 rm -f conftest*
5567 exit 1
5568 ;;
5569esac
5570rm -f conftest*
5571
5572# The Solaris /usr/ucb/cc compiler does not appear to work.
5573case "${host}" in
5574 sparc-sun-solaris2*)
5575 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5576 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5577 could_use=
5578 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5579 if test -d /opt/cygnus/bin ; then
5580 if test "$could_use" = "" ; then
5581 could_use="/opt/cygnus/bin"
5582 else
5583 could_use="$could_use or /opt/cygnus/bin"
5584 fi
5585 fi
5586 if test "$could_use" = "" ; then
5587 echo "Warning: compilation may fail because you're using"
5588 echo "/usr/ucb/cc. You should change your PATH or CC "
5589 echo "variable and rerun configure."
5590 else
5591 echo "Warning: compilation may fail because you're using"
5592 echo "/usr/ucb/cc, when you should use the C compiler from"
5593 echo "$could_use. You should change your"
5594 echo "PATH or CC variable and rerun configure."
5595 fi
5596 fi
5597 ;;
5598esac
5599
3bbd2f8f 5600# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
5601case "${host}" in
5602 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5603 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 5604 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
5605 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5606esac
5607
3bbd2f8f
AL
5608# On systems where the dynamic library environment variable is PATH,
5609if test "$RPATH_ENVVAR" = PATH; then
5610 GCC_SHLIB_SUBDIR=/shlib
5611else
5612 GCC_SHLIB_SUBDIR=
5613fi
5614
a0da8069
NN
5615# Record target_configdirs and the configure arguments for target and
5616# build configuration in Makefile.
5617target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5618build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5619
a0da8069
NN
5620# Determine whether gdb needs tk/tcl or not.
5621# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5622# and in that case we want gdb to be built without tk. Ugh!
5623# In fact I believe gdb is the *only* package directly dependent on tk,
5624# so we should be able to put the 'maybe's in unconditionally and
5625# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5626# 100% sure that that's safe though.
c180f501 5627
675c6968 5628gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5629case "$enable_gdbtk" in
5630 no)
5631 GDB_TK="" ;;
c180f501
AC
5632 yes)
5633 GDB_TK="${gdb_tk}" ;;
a0da8069 5634 *)
c180f501
AC
5635 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5636 # distro. Eventually someone will fix this and move Insight, nee
5637 # gdbtk to a separate directory.
5638 if test -d ${srcdir}/gdb/gdbtk ; then
5639 GDB_TK="${gdb_tk}"
5640 else
5641 GDB_TK=""
5642 fi
5643 ;;
a0da8069 5644esac
907be67c
DJ
5645CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5646INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5647
6bd3dfaa 5648# Strip out unwanted targets.
dd12c3a8
NN
5649
5650# While at that, we remove Makefiles if we were started for recursive
5651# configuration, so that the top-level Makefile reconfigures them,
5652# like we used to do when configure itself was recursive.
dd12c3a8 5653
6bd3dfaa
PB
5654# Loop over modules. $extrasub must be used with care, limiting as
5655# much as possible the usage of range addresses. That's because autoconf
5656# splits the sed script to overcome limits in the number of commands,
5657# and relying on carefully-timed sed passes may turn out to be very hard
5658# to maintain later. In this particular case, you just have to be careful
5659# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5660
319cab08
PB
5661# Check whether --enable-bootstrap or --disable-bootstrap was given.
5662if test "${enable_bootstrap+set}" = set; then
5663 enableval="$enable_bootstrap"
c6b750e1 5664
319cab08 5665else
9cb3fa6f 5666 enable_bootstrap=default
c6b750e1 5667fi;
319cab08 5668
9cb3fa6f
PB
5669# Issue errors and warnings for invalid/strange bootstrap combinations.
5670case "$configdirs" in
5671 *gcc*) have_compiler=yes ;;
5672 *) have_compiler=no ;;
5673esac
5674
5675case "$have_compiler:$host:$target:$enable_bootstrap" in
5676 *:*:*:no) ;;
5677
0aed8855 5678 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5679 # and we are in a native configuration.
5680 yes:$build:$build:default)
0aed8855 5681 enable_bootstrap=yes ;;
9cb3fa6f
PB
5682
5683 *:*:*:default)
5684 enable_bootstrap=no ;;
5685
5686 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5687 yes:$build:$build:yes)
9cb3fa6f
PB
5688 ;;
5689
5690 # Other configurations, but we have a compiler. Assume the user knows
5691 # what he's doing.
80911fe1 5692 yes:*:*:yes)
c6b750e1
DJ
5693 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5694echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5695 ;;
5696
5697 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5698 no:*:*:yes)
c6b750e1
DJ
5699 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5700echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5701 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5702
5703 # Fail if wrong command line
5704 *)
c6b750e1
DJ
5705 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5706echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5707 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5708 ;;
5709esac
5710
5711# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5712case "$enable_bootstrap" in
5713 yes)
498d4a71 5714 bootstrap_suffix=bootstrap ;;
319cab08 5715 no)
498d4a71 5716 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5717esac
5718
6a9cf61e 5719for module in ${build_configdirs} ; do
498d4a71
CF
5720 if test -z "${no_recursion}" \
5721 && test -f ${build_subdir}/${module}/Makefile; then
5722 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5723 rm -f ${build_subdir}/${module}/Makefile
5724 fi
5725 extrasub="$extrasub
5726/^@if build-$module\$/d
5727/^@endif build-$module\$/d
5728/^@if build-$module-$bootstrap_suffix\$/d
5729/^@endif build-$module-$bootstrap_suffix\$/d"
5730done
5731for module in ${configdirs} ; do
80911fe1 5732 if test -z "${no_recursion}"; then
8cf39b1b 5733 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5734 if test -f ${file}; then
5735 echo 1>&2 "*** removing ${file} to force reconfigure"
5736 rm -f ${file}
5737 fi
5738 done
498d4a71
CF
5739 fi
5740 extrasub="$extrasub
5741/^@if $module\$/d
5742/^@endif $module\$/d
5743/^@if $module-$bootstrap_suffix\$/d
5744/^@endif $module-$bootstrap_suffix\$/d"
5745done
5746for module in ${target_configdirs} ; do
5747 if test -z "${no_recursion}" \
5748 && test -f ${target_subdir}/${module}/Makefile; then
5749 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5750 rm -f ${target_subdir}/${module}/Makefile
5751 fi
5752 extrasub="$extrasub
5753/^@if target-$module\$/d
5754/^@endif target-$module\$/d
5755/^@if target-$module-$bootstrap_suffix\$/d
5756/^@endif target-$module-$bootstrap_suffix\$/d"
5757done
5758
6bd3dfaa
PB
5759extrasub="$extrasub
5760/^@if /,/^@endif /d"
a0da8069
NN
5761
5762# Create the serialization dependencies. This uses a temporary file.
5763
e6bfb94a
AO
5764# Check whether --enable-serial-configure or --disable-serial-configure was given.
5765if test "${enable_serial_configure+set}" = set; then
5766 enableval="$enable_serial_configure"
e6bfb94a 5767
c6b750e1 5768fi;
e6bfb94a 5769
1047cb91
DD
5770case ${enable_serial_configure} in
5771 yes)
5772 enable_serial_build_configure=yes
5773 enable_serial_host_configure=yes
5774 enable_serial_target_configure=yes
5775 ;;
5776esac
5777
a0da8069
NN
5778# These force 'configure's to be done one at a time, to avoid problems
5779# with contention over a shared config.cache.
5780rm -f serdep.tmp
e6bfb94a 5781echo '# serdep.tmp' > serdep.tmp
a0da8069 5782olditem=
1047cb91 5783test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5784for item in ${build_configdirs} ; do
5785 case ${olditem} in
5786 "") ;;
e6bfb94a 5787 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5788 esac
5789 olditem=${item}
5790done
5791olditem=
1047cb91 5792test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5793for item in ${configdirs} ; do
5794 case ${olditem} in
5795 "") ;;
e6bfb94a 5796 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5797 esac
5798 olditem=${item}
5799done
5800olditem=
1047cb91 5801test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5802for item in ${target_configdirs} ; do
5803 case ${olditem} in
5804 "") ;;
e6bfb94a 5805 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5806 esac
5807 olditem=${item}
5808done
5809serialization_dependencies=serdep.tmp
5810
5811
e6bfb94a 5812# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5813# target, nonopt, and variable assignments. These are the ones we
5814# might not want to pass down to subconfigures. Also strip
5815# program-prefix, program-suffix, and program-transform-name, so that
5816# we can pass down a consistent program-transform-name.
5817baseargs=
5818keep_next=no
5819skip_next=no
5820eval "set -- $ac_configure_args"
18f6b6ee
PB
5821for ac_arg
5822do
c6b750e1
DJ
5823 if test X"$skip_next" = X"yes"; then
5824 skip_next=no
5825 continue
5826 fi
5827 if test X"$keep_next" = X"yes"; then
5828 case $ac_arg in
5829 *\'*)
5830 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5831 esac
5832 baseargs="$baseargs '$ac_arg'"
5833 keep_next=no
5834 continue
5835 fi
5836
5837 # Handle separated arguments. Based on the logic generated by
5838 # autoconf 2.59.
5839 case $ac_arg in
5840 *=* | --config-cache | -C | -disable-* | --disable-* \
5841 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5842 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5843 | -with-* | --with-* | -without-* | --without-* | --x)
5844 separate_arg=no
5845 ;;
5846 -*)
5847 separate_arg=yes
5848 ;;
5849 *)
5850 separate_arg=no
5851 ;;
5852 esac
5853
5854 case "$ac_arg" in
5855 --no*)
5856 continue
5857 ;;
5858 --c* | \
5859 --sr* | \
5860 --ho* | \
5861 --bu* | \
5862 --t* | \
5863 --program-* | \
5864 -cache_file* | \
5865 -srcdir* | \
5866 -host* | \
5867 -build* | \
5868 -target* | \
5869 -program-prefix* | \
5870 -program-suffix* | \
5871 -program-transform-name* )
5872 skip_next=$separate_arg
5873 continue
5874 ;;
5875 -*)
5876 # An option. Add it.
5877 case $ac_arg in
5878 *\'*)
5879 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5880 esac
5881 baseargs="$baseargs '$ac_arg'"
5882 keep_next=$separate_arg
5883 ;;
5884 *)
5885 # Either a variable assignment, or a nonopt (triplet). Don't
5886 # pass it down; let the Makefile handle this.
5887 continue
5888 ;;
5889 esac
5890done
5891# Remove the initial space we just introduced and, as these will be
5892# expanded by make, quote '$'.
5893baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5894
f27d4f92
DJ
5895# Add in --program-transform-name, after --program-prefix and
5896# --program-suffix have been applied to it. Autoconf has already
5897# doubled dollar signs and backslashes in program_transform_name; we want
5898# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5899# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5900# Also, because we want to override the logic in subdir configure scripts to
5901# choose program_transform_name, replace any s,x,x, with s,y,y,.
5902sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5903${program_transform_name}
5904EOF_SED
5905gcc_transform_name=`cat conftestsed.out`
5906rm -f conftestsed.out
5907baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
5908if test "$silent" = yes; then
5909 baseargs="$baseargs --silent"
5910fi
f27d4f92 5911
a0da8069
NN
5912# For the build-side libraries, we just need to pretend we're native,
5913# and not use the same cache file. Multilibs are neither needed nor
5914# desired.
4b900473 5915build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5916
5917# For host modules, accept cache file option, or specification as blank.
5918case "${cache_file}" in
5919"") # empty
5920 cache_file_option="" ;;
5921/* | [A-Za-z]:[\\/]* ) # absolute path
5922 cache_file_option="--cache-file=${cache_file}" ;;
5923*) # relative path
5924 cache_file_option="--cache-file=../${cache_file}" ;;
5925esac
5926
82252c06
NN
5927# Host dirs don't like to share a cache file either, horribly enough.
5928# This seems to be due to autoconf 2.5x stupidity.
4b900473 5929host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5930
5931target_configargs=${baseargs}
5932
5933# Passing a --with-cross-host argument lets the target libraries know
5934# whether they are being built with a cross-compiler or being built
5935# native. However, it would be better to use other mechanisms to make the
5936# sorts of decisions they want to make on this basis. Please consider
5937# this option to be deprecated. FIXME.
5938if test x${is_cross_compiler} = xyes ; then
c6b750e1 5939 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5940fi
5941
5942# Default to --enable-multilib.
5943if test x${enable_multilib} = x ; then
5944 target_configargs="--enable-multilib ${target_configargs}"
5945fi
5946
5947# Pass --with-newlib if appropriate. Note that target_configdirs has
5948# changed from the earlier setting of with_newlib.
5949if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5950 target_configargs="--with-newlib ${target_configargs}"
5951fi
5952
95036d20
NN
5953# Different target subdirs use different values of certain variables
5954# (notably CXX). Worse, multilibs use *lots* of different values.
5955# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5956# it doesn't automatically accept command-line overrides of them.
5957# This means it's not safe for target subdirs to share a cache file,
5958# which is disgusting, but there you have it. Hopefully this can be
5959# fixed in future. It's still worthwhile to use a cache file for each
5960# directory. I think.
5961
ae380b45
MS
5962# Pass the appropriate --build, --host, --target and --cache-file arguments.
5963# We need to pass --target, as newer autoconf's requires consistency
5964# for target_alias and gcc doesn't manage it consistently.
4b900473 5965target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5966
a0da8069
NN
5967FLAGS_FOR_TARGET=
5968case " $target_configdirs " in
5969 *" newlib "*)
5970 case " $target_configargs " in
5971 *" --with-newlib "*)
5972 case "$target" in
5973 *-cygwin*)
564b43e5 5974 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
5975 esac
5976
5977 # If we're not building GCC, don't discard standard headers.
5978 if test -d ${srcdir}/gcc; then
5979 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5980
5981 if test "${build}" != "${host}"; then
5982 # On Canadian crosses, CC_FOR_TARGET will have already been set
5983 # by `configure', so we won't have an opportunity to add -Bgcc/
5984 # to it. This is right: we don't want to search that directory
5985 # for binaries, but we want the header files in there, so add
5986 # them explicitly.
b00612cc 5987 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5988
5989 # Someone might think of using the pre-installed headers on
5990 # Canadian crosses, in case the installed compiler is not fully
5991 # compatible with the compiler being built. In this case, it
5992 # would be better to flag an error than risking having
5993 # incompatible object files being constructed. We can't
5994 # guarantee that an error will be flagged, but let's hope the
5995 # compiler will do it, when presented with incompatible header
5996 # files.
5997 fi
5998 fi
5999
6000 case "${target}-${is_cross_compiler}" in
ec11bdc6 6001 i[3456789]86-*-linux*-no)
a0da8069
NN
6002 # Here host == target, so we don't need to build gcc,
6003 # so we don't want to discard standard headers.
6004 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6005 ;;
6006 *)
6007 # If we're building newlib, use its generic headers last, but search
6008 # for any libc-related directories first (so make it the last -B
6009 # switch).
6010 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
6011
6012 # If we're building libgloss, find the startup file, simulator library
6013 # and linker script.
6014 case " $target_configdirs " in
6015 *" libgloss "*)
6016 # Look for startup file, simulator library and maybe linker script.
6017 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6018 # Look for libnosys.a in case the target needs it.
6019 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6020 # Most targets have the linker script in the source directory.
6021 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6022 ;;
6023 esac
a0da8069
NN
6024 ;;
6025 esac
6026 ;;
6027 esac
6028 ;;
6029esac
45055374
CV
6030case "$target" in
6031*-mingw*)
6032 # Can't be handled as Cygwin above since Mingw does not use newlib.
6033 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' ;;
6034esac
a0da8069 6035
5fbad20a
DD
6036# Allow the user to override the flags for
6037# our build compiler if desired.
c66487f8
NC
6038if test x"${build}" = x"${host}" ; then
6039 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6040 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6041 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6042fi
5fbad20a 6043
a0da8069
NN
6044# On Canadian crosses, we'll be searching the right directories for
6045# the previously-installed cross compiler, so don't bother to add
6046# flags for directories within the install tree of the compiler
6047# being built; programs in there won't even run.
6048if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6049 # Search for pre-installed headers if nothing else fits.
bba45b8b 6050 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
6051fi
6052
6053if test "x${use_gnu_ld}" = x &&
6054 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6055 # Arrange for us to find uninstalled linker scripts.
b00612cc 6056 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
6057fi
6058
a481dbb7
DD
6059# Search for other target-specific linker scripts and such.
6060case "${target}" in
4e206d7e
DB
6061 mep*)
6062 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6063 ;;
6064esac
6065
a0da8069 6066# Makefile fragments.
3e707e94
PB
6067for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6068do
6069 eval fragval=\$$frag
6070 if test $fragval != /dev/null; then
6071 eval $frag=${srcdir}/$fragval
6072 fi
6073done
a0da8069
NN
6074
6075
6076
6077
6078
6079# Miscellanea: directories, flags, etc.
6080
6081
6082
6083
6084
6085
6086
3bbd2f8f 6087
6a9cf61e 6088# Build module lists & subconfigure args.
a0da8069
NN
6089
6090
6091
be01d343
PB
6092# Host module lists & subconfigure args.
6093
6094
6095
6096# Target module lists & subconfigure args.
6097
6098
6099
6100# Build tools.
6101
6102
6103
1576798e
PB
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
be01d343
PB
6118# Generate default definitions for YACC, M4, LEX and other programs that run
6119# on the build machine. These are used if the Makefile can't locate these
6120# programs in objdir.
6121MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6122
6123for ac_prog in 'bison -y' byacc yacc
6124do
c6b750e1 6125 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6126set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6127echo "$as_me:$LINENO: checking for $ac_word" >&5
6128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6129if test "${ac_cv_prog_YACC+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6131else
6132 if test -n "$YACC"; then
6133 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6134else
c6b750e1
DJ
6135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136for as_dir in $PATH
6137do
6138 IFS=$as_save_IFS
6139 test -z "$as_dir" && as_dir=.
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6142 ac_cv_prog_YACC="$ac_prog"
6143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 break 2
6145 fi
6146done
6147done
6148
be01d343
PB
6149fi
6150fi
c6b750e1 6151YACC=$ac_cv_prog_YACC
be01d343 6152if test -n "$YACC"; then
c6b750e1
DJ
6153 echo "$as_me:$LINENO: result: $YACC" >&5
6154echo "${ECHO_T}$YACC" >&6
be01d343 6155else
c6b750e1
DJ
6156 echo "$as_me:$LINENO: result: no" >&5
6157echo "${ECHO_T}no" >&6
be01d343
PB
6158fi
6159
c6b750e1 6160 test -n "$YACC" && break
be01d343
PB
6161done
6162test -n "$YACC" || YACC="$MISSING bison -y"
6163
6164case " $build_configdirs " in
6165 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6166 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6167esac
6168
6169for ac_prog in bison
6170do
c6b750e1 6171 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6172set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6173echo "$as_me:$LINENO: checking for $ac_word" >&5
6174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6175if test "${ac_cv_prog_BISON+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6177else
6178 if test -n "$BISON"; then
6179 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6180else
c6b750e1
DJ
6181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182for as_dir in $PATH
6183do
6184 IFS=$as_save_IFS
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6188 ac_cv_prog_BISON="$ac_prog"
6189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 break 2
6191 fi
6192done
6193done
6194
be01d343
PB
6195fi
6196fi
c6b750e1 6197BISON=$ac_cv_prog_BISON
be01d343 6198if test -n "$BISON"; then
c6b750e1
DJ
6199 echo "$as_me:$LINENO: result: $BISON" >&5
6200echo "${ECHO_T}$BISON" >&6
be01d343 6201else
c6b750e1
DJ
6202 echo "$as_me:$LINENO: result: no" >&5
6203echo "${ECHO_T}no" >&6
be01d343
PB
6204fi
6205
c6b750e1 6206 test -n "$BISON" && break
be01d343
PB
6207done
6208test -n "$BISON" || BISON="$MISSING bison"
6209
6210case " $build_configdirs " in
6211 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6212esac
6213
6214for ac_prog in gm4 gnum4 m4
6215do
c6b750e1 6216 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6217set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6218echo "$as_me:$LINENO: checking for $ac_word" >&5
6219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6220if test "${ac_cv_prog_M4+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6222else
6223 if test -n "$M4"; then
6224 ac_cv_prog_M4="$M4" # Let the user override the test.
6225else
c6b750e1
DJ
6226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227for as_dir in $PATH
6228do
6229 IFS=$as_save_IFS
6230 test -z "$as_dir" && as_dir=.
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233 ac_cv_prog_M4="$ac_prog"
6234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 break 2
6236 fi
6237done
6238done
6239
be01d343
PB
6240fi
6241fi
c6b750e1 6242M4=$ac_cv_prog_M4
be01d343 6243if test -n "$M4"; then
c6b750e1
DJ
6244 echo "$as_me:$LINENO: result: $M4" >&5
6245echo "${ECHO_T}$M4" >&6
be01d343 6246else
c6b750e1
DJ
6247 echo "$as_me:$LINENO: result: no" >&5
6248echo "${ECHO_T}no" >&6
be01d343
PB
6249fi
6250
c6b750e1 6251 test -n "$M4" && break
be01d343
PB
6252done
6253test -n "$M4" || M4="$MISSING m4"
6254
6255case " $build_configdirs " in
6256 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6257esac
6258
6259for ac_prog in flex lex
6260do
c6b750e1 6261 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6262set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6263echo "$as_me:$LINENO: checking for $ac_word" >&5
6264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6265if test "${ac_cv_prog_LEX+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6267else
6268 if test -n "$LEX"; then
6269 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6270else
c6b750e1
DJ
6271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272for as_dir in $PATH
6273do
6274 IFS=$as_save_IFS
6275 test -z "$as_dir" && as_dir=.
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6278 ac_cv_prog_LEX="$ac_prog"
6279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6280 break 2
6281 fi
6282done
6283done
6284
be01d343
PB
6285fi
6286fi
c6b750e1 6287LEX=$ac_cv_prog_LEX
be01d343 6288if test -n "$LEX"; then
c6b750e1
DJ
6289 echo "$as_me:$LINENO: result: $LEX" >&5
6290echo "${ECHO_T}$LEX" >&6
be01d343 6291else
c6b750e1
DJ
6292 echo "$as_me:$LINENO: result: no" >&5
6293echo "${ECHO_T}no" >&6
be01d343
PB
6294fi
6295
c6b750e1 6296 test -n "$LEX" && break
be01d343
PB
6297done
6298test -n "$LEX" || LEX="$MISSING flex"
6299
6300case " $build_configdirs " in
6301 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6302 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6303esac
6304
6305for ac_prog in flex
6306do
c6b750e1 6307 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6308set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6309echo "$as_me:$LINENO: checking for $ac_word" >&5
6310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6311if test "${ac_cv_prog_FLEX+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6313else
6314 if test -n "$FLEX"; then
6315 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6316else
c6b750e1
DJ
6317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318for as_dir in $PATH
6319do
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6324 ac_cv_prog_FLEX="$ac_prog"
6325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 break 2
6327 fi
6328done
6329done
6330
be01d343
PB
6331fi
6332fi
c6b750e1 6333FLEX=$ac_cv_prog_FLEX
be01d343 6334if test -n "$FLEX"; then
c6b750e1
DJ
6335 echo "$as_me:$LINENO: result: $FLEX" >&5
6336echo "${ECHO_T}$FLEX" >&6
be01d343 6337else
c6b750e1
DJ
6338 echo "$as_me:$LINENO: result: no" >&5
6339echo "${ECHO_T}no" >&6
be01d343
PB
6340fi
6341
c6b750e1 6342 test -n "$FLEX" && break
be01d343
PB
6343done
6344test -n "$FLEX" || FLEX="$MISSING flex"
6345
6346case " $build_configdirs " in
6347 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6348esac
6349
6350for ac_prog in makeinfo
6351do
c6b750e1 6352 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6353set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6354echo "$as_me:$LINENO: checking for $ac_word" >&5
6355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6356if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6358else
6359 if test -n "$MAKEINFO"; then
6360 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6361else
c6b750e1
DJ
6362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363for as_dir in $PATH
6364do
6365 IFS=$as_save_IFS
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6369 ac_cv_prog_MAKEINFO="$ac_prog"
6370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 break 2
6372 fi
6373done
6374done
6375
be01d343
PB
6376fi
6377fi
c6b750e1 6378MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6379if test -n "$MAKEINFO"; then
c6b750e1
DJ
6380 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6381echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6382else
c6b750e1
DJ
6383 echo "$as_me:$LINENO: result: no" >&5
6384echo "${ECHO_T}no" >&6
be01d343
PB
6385fi
6386
c6b750e1 6387 test -n "$MAKEINFO" && break
be01d343
PB
6388done
6389test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6390
6391case " $build_configdirs " in
6392 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6393 *)
6394
625a61cd 6395 # For an installed makeinfo, we require it to be from texinfo 4.6 or
be01d343
PB
6396 # higher, else we use the "missing" dummy.
6397 if ${MAKEINFO} --version \
625a61cd 6398 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
6399 :
6400 else
6401 MAKEINFO="$MISSING makeinfo"
6402 fi
6403 ;;
6404
6405esac
a0da8069 6406
be01d343 6407# FIXME: expect and dejagnu may become build tools?
a0da8069 6408
be01d343
PB
6409for ac_prog in expect
6410do
c6b750e1 6411 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6412set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6413echo "$as_me:$LINENO: checking for $ac_word" >&5
6414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6415if test "${ac_cv_prog_EXPECT+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6417else
6418 if test -n "$EXPECT"; then
6419 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6420else
c6b750e1
DJ
6421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422for as_dir in $PATH
6423do
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428 ac_cv_prog_EXPECT="$ac_prog"
6429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 break 2
6431 fi
6432done
6433done
6434
be01d343
PB
6435fi
6436fi
c6b750e1 6437EXPECT=$ac_cv_prog_EXPECT
be01d343 6438if test -n "$EXPECT"; then
c6b750e1
DJ
6439 echo "$as_me:$LINENO: result: $EXPECT" >&5
6440echo "${ECHO_T}$EXPECT" >&6
be01d343 6441else
c6b750e1
DJ
6442 echo "$as_me:$LINENO: result: no" >&5
6443echo "${ECHO_T}no" >&6
be01d343 6444fi
a0da8069 6445
c6b750e1 6446 test -n "$EXPECT" && break
be01d343
PB
6447done
6448test -n "$EXPECT" || EXPECT="expect"
a0da8069 6449
be01d343
PB
6450case " $configdirs " in
6451 *" expect "*)
6452 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6453 ;;
6454esac
a0da8069 6455
be01d343
PB
6456for ac_prog in runtest
6457do
c6b750e1 6458 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6459set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6460echo "$as_me:$LINENO: checking for $ac_word" >&5
6461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6462if test "${ac_cv_prog_RUNTEST+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6464else
6465 if test -n "$RUNTEST"; then
6466 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6467else
c6b750e1
DJ
6468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469for as_dir in $PATH
6470do
6471 IFS=$as_save_IFS
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475 ac_cv_prog_RUNTEST="$ac_prog"
6476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 break 2
6478 fi
6479done
6480done
6481
be01d343
PB
6482fi
6483fi
c6b750e1 6484RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6485if test -n "$RUNTEST"; then
c6b750e1
DJ
6486 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6487echo "${ECHO_T}$RUNTEST" >&6
be01d343 6488else
c6b750e1
DJ
6489 echo "$as_me:$LINENO: result: no" >&5
6490echo "${ECHO_T}no" >&6
be01d343 6491fi
a0da8069 6492
c6b750e1 6493 test -n "$RUNTEST" && break
be01d343
PB
6494done
6495test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6496
be01d343
PB
6497case " $configdirs " in
6498 *" dejagnu "*)
6b89cc21 6499 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6500 ;;
6501esac
a0da8069
NN
6502
6503
a0da8069 6504# Host tools.
859789af
AC
6505ncn_tool_prefix=
6506test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6507ncn_target_tool_prefix=
6508test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6509
9a819804
AO
6510
6511
6512if test -n "$AR"; then
6513 ac_cv_prog_AR=$AR
6514elif test -n "$ac_cv_prog_AR"; then
6515 AR=$ac_cv_prog_AR
6516fi
6517
6518if test -n "$ac_cv_prog_AR"; then
6519 for ncn_progname in ar; do
6520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6521set dummy ${ncn_progname}; ac_word=$2
6522echo "$as_me:$LINENO: checking for $ac_word" >&5
6523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6524if test "${ac_cv_prog_AR+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526else
6527 if test -n "$AR"; then
6528 ac_cv_prog_AR="$AR" # Let the user override the test.
6529else
6530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531for as_dir in $PATH
6532do
6533 IFS=$as_save_IFS
6534 test -z "$as_dir" && as_dir=.
6535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6537 ac_cv_prog_AR="${ncn_progname}"
6538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 break 2
6540 fi
6541done
6542done
6543
6544fi
6545fi
6546AR=$ac_cv_prog_AR
6547if test -n "$AR"; then
6548 echo "$as_me:$LINENO: result: $AR" >&5
6549echo "${ECHO_T}$AR" >&6
6550else
6551 echo "$as_me:$LINENO: result: no" >&5
6552echo "${ECHO_T}no" >&6
6553fi
6554
6555 done
6556fi
6557
6558for ncn_progname in ar; do
05cbd757
PB
6559 if test -n "$ncn_tool_prefix"; then
6560 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6561set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6562echo "$as_me:$LINENO: checking for $ac_word" >&5
6563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6564if test "${ac_cv_prog_AR+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6566else
6567 if test -n "$AR"; then
6568 ac_cv_prog_AR="$AR" # Let the user override the test.
6569else
c6b750e1
DJ
6570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571for as_dir in $PATH
6572do
6573 IFS=$as_save_IFS
6574 test -z "$as_dir" && as_dir=.
6575 for ac_exec_ext in '' $ac_executable_extensions; do
6576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6577 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6579 break 2
6580 fi
6581done
6582done
6583
859789af
AC
6584fi
6585fi
c6b750e1 6586AR=$ac_cv_prog_AR
859789af 6587if test -n "$AR"; then
c6b750e1
DJ
6588 echo "$as_me:$LINENO: result: $AR" >&5
6589echo "${ECHO_T}$AR" >&6
859789af 6590else
c6b750e1
DJ
6591 echo "$as_me:$LINENO: result: no" >&5
6592echo "${ECHO_T}no" >&6
859789af
AC
6593fi
6594
05cbd757
PB
6595 fi
6596 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6598set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6599echo "$as_me:$LINENO: checking for $ac_word" >&5
6600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6601if test "${ac_cv_prog_AR+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6603else
05cbd757
PB
6604 if test -n "$AR"; then
6605 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6606else
c6b750e1
DJ
6607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608for as_dir in $PATH
6609do
6610 IFS=$as_save_IFS
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6614 ac_cv_prog_AR="${ncn_progname}"
6615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 break 2
6617 fi
6618done
6619done
6620
859789af
AC
6621fi
6622fi
c6b750e1 6623AR=$ac_cv_prog_AR
05cbd757 6624if test -n "$AR"; then
c6b750e1
DJ
6625 echo "$as_me:$LINENO: result: $AR" >&5
6626echo "${ECHO_T}$AR" >&6
859789af 6627else
c6b750e1
DJ
6628 echo "$as_me:$LINENO: result: no" >&5
6629echo "${ECHO_T}no" >&6
859789af 6630fi
c6b750e1 6631
05cbd757
PB
6632 fi
6633 test -n "$ac_cv_prog_AR" && break
6634done
6635
6636if test -z "$ac_cv_prog_AR" ; then
6637 set dummy ar
6638 if test $build = $host ; then
6639 AR="$2"
859789af 6640 else
05cbd757 6641 AR="${ncn_tool_prefix}$2"
859789af 6642 fi
859789af
AC
6643fi
6644
9a819804
AO
6645
6646
6647if test -n "$AS"; then
6648 ac_cv_prog_AS=$AS
6649elif test -n "$ac_cv_prog_AS"; then
6650 AS=$ac_cv_prog_AS
6651fi
6652
6653if test -n "$ac_cv_prog_AS"; then
6654 for ncn_progname in as; do
6655 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6656set dummy ${ncn_progname}; ac_word=$2
6657echo "$as_me:$LINENO: checking for $ac_word" >&5
6658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6659if test "${ac_cv_prog_AS+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6661else
6662 if test -n "$AS"; then
6663 ac_cv_prog_AS="$AS" # Let the user override the test.
6664else
6665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666for as_dir in $PATH
6667do
6668 IFS=$as_save_IFS
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6672 ac_cv_prog_AS="${ncn_progname}"
6673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 break 2
6675 fi
6676done
6677done
6678
6679fi
6680fi
6681AS=$ac_cv_prog_AS
6682if test -n "$AS"; then
6683 echo "$as_me:$LINENO: result: $AS" >&5
6684echo "${ECHO_T}$AS" >&6
6685else
6686 echo "$as_me:$LINENO: result: no" >&5
6687echo "${ECHO_T}no" >&6
6688fi
6689
6690 done
6691fi
6692
6693for ncn_progname in as; do
05cbd757
PB
6694 if test -n "$ncn_tool_prefix"; then
6695 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6696set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6697echo "$as_me:$LINENO: checking for $ac_word" >&5
6698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6699if test "${ac_cv_prog_AS+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6701else
6702 if test -n "$AS"; then
6703 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6704else
6705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706for as_dir in $PATH
6707do
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6712 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6715 fi
6716done
6717done
6718
859789af
AC
6719fi
6720fi
c6b750e1 6721AS=$ac_cv_prog_AS
859789af 6722if test -n "$AS"; then
c6b750e1
DJ
6723 echo "$as_me:$LINENO: result: $AS" >&5
6724echo "${ECHO_T}$AS" >&6
859789af 6725else
c6b750e1
DJ
6726 echo "$as_me:$LINENO: result: no" >&5
6727echo "${ECHO_T}no" >&6
859789af
AC
6728fi
6729
05cbd757
PB
6730 fi
6731 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6732 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6733set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6734echo "$as_me:$LINENO: checking for $ac_word" >&5
6735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6736if test "${ac_cv_prog_AS+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6738else
05cbd757
PB
6739 if test -n "$AS"; then
6740 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6741else
c6b750e1
DJ
6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6749 ac_cv_prog_AS="${ncn_progname}"
6750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6752 fi
6753done
6754done
6755
859789af
AC
6756fi
6757fi
c6b750e1 6758AS=$ac_cv_prog_AS
05cbd757 6759if test -n "$AS"; then
c6b750e1
DJ
6760 echo "$as_me:$LINENO: result: $AS" >&5
6761echo "${ECHO_T}$AS" >&6
859789af 6762else
c6b750e1
DJ
6763 echo "$as_me:$LINENO: result: no" >&5
6764echo "${ECHO_T}no" >&6
859789af 6765fi
c6b750e1 6766
05cbd757
PB
6767 fi
6768 test -n "$ac_cv_prog_AS" && break
6769done
6770
6771if test -z "$ac_cv_prog_AS" ; then
6772 set dummy as
6773 if test $build = $host ; then
6774 AS="$2"
859789af 6775 else
05cbd757 6776 AS="${ncn_tool_prefix}$2"
859789af 6777 fi
859789af
AC
6778fi
6779
9a819804
AO
6780
6781
6782if test -n "$DLLTOOL"; then
6783 ac_cv_prog_DLLTOOL=$DLLTOOL
6784elif test -n "$ac_cv_prog_DLLTOOL"; then
6785 DLLTOOL=$ac_cv_prog_DLLTOOL
6786fi
6787
6788if test -n "$ac_cv_prog_DLLTOOL"; then
6789 for ncn_progname in dlltool; do
6790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6791set dummy ${ncn_progname}; ac_word=$2
6792echo "$as_me:$LINENO: checking for $ac_word" >&5
6793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6794if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796else
6797 if test -n "$DLLTOOL"; then
6798 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6799else
6800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6807 ac_cv_prog_DLLTOOL="${ncn_progname}"
6808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 break 2
6810 fi
6811done
6812done
6813
6814fi
6815fi
6816DLLTOOL=$ac_cv_prog_DLLTOOL
6817if test -n "$DLLTOOL"; then
6818 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6819echo "${ECHO_T}$DLLTOOL" >&6
6820else
6821 echo "$as_me:$LINENO: result: no" >&5
6822echo "${ECHO_T}no" >&6
6823fi
6824
6825 done
6826fi
6827
6828for ncn_progname in dlltool; do
05cbd757
PB
6829 if test -n "$ncn_tool_prefix"; then
6830 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6831set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6832echo "$as_me:$LINENO: checking for $ac_word" >&5
6833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6834if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6836else
6837 if test -n "$DLLTOOL"; then
6838 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6839else
c6b750e1
DJ
6840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841for as_dir in $PATH
6842do
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6847 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 break 2
6850 fi
6851done
6852done
6853
859789af
AC
6854fi
6855fi
c6b750e1 6856DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6857if test -n "$DLLTOOL"; then
c6b750e1
DJ
6858 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6859echo "${ECHO_T}$DLLTOOL" >&6
859789af 6860else
c6b750e1
DJ
6861 echo "$as_me:$LINENO: result: no" >&5
6862echo "${ECHO_T}no" >&6
859789af
AC
6863fi
6864
05cbd757
PB
6865 fi
6866 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6868set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6869echo "$as_me:$LINENO: checking for $ac_word" >&5
6870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6871if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6873else
05cbd757
PB
6874 if test -n "$DLLTOOL"; then
6875 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6876else
c6b750e1
DJ
6877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878for as_dir in $PATH
6879do
6880 IFS=$as_save_IFS
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6884 ac_cv_prog_DLLTOOL="${ncn_progname}"
6885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 break 2
6887 fi
6888done
6889done
6890
859789af
AC
6891fi
6892fi
c6b750e1 6893DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6894if test -n "$DLLTOOL"; then
c6b750e1
DJ
6895 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6896echo "${ECHO_T}$DLLTOOL" >&6
859789af 6897else
c6b750e1
DJ
6898 echo "$as_me:$LINENO: result: no" >&5
6899echo "${ECHO_T}no" >&6
859789af 6900fi
c6b750e1 6901
05cbd757
PB
6902 fi
6903 test -n "$ac_cv_prog_DLLTOOL" && break
6904done
6905
6906if test -z "$ac_cv_prog_DLLTOOL" ; then
6907 set dummy dlltool
6908 if test $build = $host ; then
6909 DLLTOOL="$2"
859789af 6910 else
05cbd757 6911 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6912 fi
859789af
AC
6913fi
6914
9a819804
AO
6915
6916
6917if test -n "$LD"; then
6918 ac_cv_prog_LD=$LD
6919elif test -n "$ac_cv_prog_LD"; then
6920 LD=$ac_cv_prog_LD
6921fi
6922
6923if test -n "$ac_cv_prog_LD"; then
6924 for ncn_progname in ld; do
6925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6926set dummy ${ncn_progname}; ac_word=$2
6927echo "$as_me:$LINENO: checking for $ac_word" >&5
6928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6929if test "${ac_cv_prog_LD+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931else
6932 if test -n "$LD"; then
6933 ac_cv_prog_LD="$LD" # Let the user override the test.
6934else
6935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936for as_dir in $PATH
6937do
6938 IFS=$as_save_IFS
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6942 ac_cv_prog_LD="${ncn_progname}"
6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 break 2
6945 fi
6946done
6947done
6948
6949fi
6950fi
6951LD=$ac_cv_prog_LD
6952if test -n "$LD"; then
6953 echo "$as_me:$LINENO: result: $LD" >&5
6954echo "${ECHO_T}$LD" >&6
6955else
6956 echo "$as_me:$LINENO: result: no" >&5
6957echo "${ECHO_T}no" >&6
6958fi
6959
6960 done
6961fi
6962
6963for ncn_progname in ld; do
05cbd757
PB
6964 if test -n "$ncn_tool_prefix"; then
6965 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6966set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6967echo "$as_me:$LINENO: checking for $ac_word" >&5
6968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6969if test "${ac_cv_prog_LD+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6971else
6972 if test -n "$LD"; then
6973 ac_cv_prog_LD="$LD" # Let the user override the test.
6974else
c6b750e1
DJ
6975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976for as_dir in $PATH
6977do
6978 IFS=$as_save_IFS
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6982 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6984 break 2
6985 fi
6986done
6987done
6988
859789af
AC
6989fi
6990fi
c6b750e1 6991LD=$ac_cv_prog_LD
859789af 6992if test -n "$LD"; then
c6b750e1
DJ
6993 echo "$as_me:$LINENO: result: $LD" >&5
6994echo "${ECHO_T}$LD" >&6
859789af 6995else
c6b750e1
DJ
6996 echo "$as_me:$LINENO: result: no" >&5
6997echo "${ECHO_T}no" >&6
859789af
AC
6998fi
6999
05cbd757
PB
7000 fi
7001 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7003set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7004echo "$as_me:$LINENO: checking for $ac_word" >&5
7005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7006if test "${ac_cv_prog_LD+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7008else
05cbd757
PB
7009 if test -n "$LD"; then
7010 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 7011else
c6b750e1
DJ
7012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013for as_dir in $PATH
7014do
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7019 ac_cv_prog_LD="${ncn_progname}"
7020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 break 2
7022 fi
7023done
7024done
7025
859789af
AC
7026fi
7027fi
c6b750e1 7028LD=$ac_cv_prog_LD
05cbd757 7029if test -n "$LD"; then
c6b750e1
DJ
7030 echo "$as_me:$LINENO: result: $LD" >&5
7031echo "${ECHO_T}$LD" >&6
859789af 7032else
c6b750e1
DJ
7033 echo "$as_me:$LINENO: result: no" >&5
7034echo "${ECHO_T}no" >&6
859789af 7035fi
c6b750e1 7036
05cbd757
PB
7037 fi
7038 test -n "$ac_cv_prog_LD" && break
7039done
7040
7041if test -z "$ac_cv_prog_LD" ; then
7042 set dummy ld
7043 if test $build = $host ; then
7044 LD="$2"
859789af 7045 else
05cbd757 7046 LD="${ncn_tool_prefix}$2"
859789af 7047 fi
859789af
AC
7048fi
7049
9a819804
AO
7050
7051
7052if test -n "$LIPO"; then
7053 ac_cv_prog_LIPO=$LIPO
7054elif test -n "$ac_cv_prog_LIPO"; then
7055 LIPO=$ac_cv_prog_LIPO
7056fi
7057
7058if test -n "$ac_cv_prog_LIPO"; then
7059 for ncn_progname in lipo; do
7060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7061set dummy ${ncn_progname}; ac_word=$2
7062echo "$as_me:$LINENO: checking for $ac_word" >&5
7063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7064if test "${ac_cv_prog_LIPO+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7066else
7067 if test -n "$LIPO"; then
7068 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7069else
7070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071for as_dir in $PATH
7072do
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7077 ac_cv_prog_LIPO="${ncn_progname}"
7078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 break 2
7080 fi
7081done
7082done
7083
7084fi
7085fi
7086LIPO=$ac_cv_prog_LIPO
7087if test -n "$LIPO"; then
7088 echo "$as_me:$LINENO: result: $LIPO" >&5
7089echo "${ECHO_T}$LIPO" >&6
7090else
7091 echo "$as_me:$LINENO: result: no" >&5
7092echo "${ECHO_T}no" >&6
7093fi
7094
7095 done
7096fi
7097
7098for ncn_progname in lipo; do
be01d343
PB
7099 if test -n "$ncn_tool_prefix"; then
7100 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7101set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7102echo "$as_me:$LINENO: checking for $ac_word" >&5
7103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7104if test "${ac_cv_prog_LIPO+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7106else
7107 if test -n "$LIPO"; then
7108 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7109else
c6b750e1
DJ
7110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111for as_dir in $PATH
7112do
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7117 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 break 2
7120 fi
7121done
7122done
7123
be01d343
PB
7124fi
7125fi
c6b750e1 7126LIPO=$ac_cv_prog_LIPO
be01d343 7127if test -n "$LIPO"; then
c6b750e1
DJ
7128 echo "$as_me:$LINENO: result: $LIPO" >&5
7129echo "${ECHO_T}$LIPO" >&6
be01d343 7130else
c6b750e1
DJ
7131 echo "$as_me:$LINENO: result: no" >&5
7132echo "${ECHO_T}no" >&6
be01d343
PB
7133fi
7134
7135 fi
7136 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7138set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7139echo "$as_me:$LINENO: checking for $ac_word" >&5
7140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7141if test "${ac_cv_prog_LIPO+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7143else
7144 if test -n "$LIPO"; then
7145 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7146else
c6b750e1
DJ
7147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148for as_dir in $PATH
7149do
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154 ac_cv_prog_LIPO="${ncn_progname}"
7155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7157 fi
7158done
7159done
7160
be01d343
PB
7161fi
7162fi
c6b750e1 7163LIPO=$ac_cv_prog_LIPO
be01d343 7164if test -n "$LIPO"; then
c6b750e1
DJ
7165 echo "$as_me:$LINENO: result: $LIPO" >&5
7166echo "${ECHO_T}$LIPO" >&6
be01d343 7167else
c6b750e1
DJ
7168 echo "$as_me:$LINENO: result: no" >&5
7169echo "${ECHO_T}no" >&6
be01d343 7170fi
c6b750e1 7171
be01d343
PB
7172 fi
7173 test -n "$ac_cv_prog_LIPO" && break
7174done
7175
7176if test -z "$ac_cv_prog_LIPO" ; then
7177 set dummy lipo
7178 if test $build = $host ; then
7179 LIPO="$2"
7180 else
7181 LIPO="${ncn_tool_prefix}$2"
7182 fi
7183fi
7184
9a819804
AO
7185
7186
7187if test -n "$NM"; then
7188 ac_cv_prog_NM=$NM
7189elif test -n "$ac_cv_prog_NM"; then
7190 NM=$ac_cv_prog_NM
7191fi
7192
7193if test -n "$ac_cv_prog_NM"; then
7194 for ncn_progname in nm; do
7195 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7196set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7197echo "$as_me:$LINENO: checking for $ac_word" >&5
7198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7199if test "${ac_cv_prog_NM+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7201else
7202 if test -n "$NM"; then
7203 ac_cv_prog_NM="$NM" # Let the user override the test.
7204else
c6b750e1
DJ
7205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206for as_dir in $PATH
7207do
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7212 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 break 2
7215 fi
7216done
7217done
7218
859789af
AC
7219fi
7220fi
c6b750e1 7221NM=$ac_cv_prog_NM
859789af 7222if test -n "$NM"; then
c6b750e1
DJ
7223 echo "$as_me:$LINENO: result: $NM" >&5
7224echo "${ECHO_T}$NM" >&6
859789af 7225else
c6b750e1
DJ
7226 echo "$as_me:$LINENO: result: no" >&5
7227echo "${ECHO_T}no" >&6
859789af
AC
7228fi
7229
9a819804
AO
7230 done
7231fi
7232
7233for ncn_progname in nm; do
7234 if test -n "$ncn_tool_prefix"; then
7235 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7236set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7237echo "$as_me:$LINENO: checking for $ac_word" >&5
7238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7239if test "${ac_cv_prog_NM+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7241else
05cbd757
PB
7242 if test -n "$NM"; then
7243 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7244else
c6b750e1
DJ
7245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246for as_dir in $PATH
7247do
7248 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7252 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 break 2
7255 fi
7256done
7257done
7258
859789af
AC
7259fi
7260fi
c6b750e1 7261NM=$ac_cv_prog_NM
05cbd757 7262if test -n "$NM"; then
c6b750e1
DJ
7263 echo "$as_me:$LINENO: result: $NM" >&5
7264echo "${ECHO_T}$NM" >&6
859789af 7265else
c6b750e1
DJ
7266 echo "$as_me:$LINENO: result: no" >&5
7267echo "${ECHO_T}no" >&6
859789af 7268fi
c6b750e1 7269
05cbd757 7270 fi
9a819804
AO
7271 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7273set dummy ${ncn_progname}; ac_word=$2
7274echo "$as_me:$LINENO: checking for $ac_word" >&5
7275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7276if test "${ac_cv_prog_NM+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7278else
7279 if test -n "$NM"; then
7280 ac_cv_prog_NM="$NM" # Let the user override the test.
7281else
7282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283for as_dir in $PATH
7284do
7285 IFS=$as_save_IFS
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7289 ac_cv_prog_NM="${ncn_progname}"
7290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7291 break 2
7292 fi
7293done
7294done
7295
7296fi
7297fi
7298NM=$ac_cv_prog_NM
7299if test -n "$NM"; then
7300 echo "$as_me:$LINENO: result: $NM" >&5
7301echo "${ECHO_T}$NM" >&6
7302else
7303 echo "$as_me:$LINENO: result: no" >&5
7304echo "${ECHO_T}no" >&6
7305fi
7306
7307 fi
7308 test -n "$ac_cv_prog_NM" && break
7309done
7310
7311if test -z "$ac_cv_prog_NM" ; then
7312 set dummy nm
7313 if test $build = $host ; then
7314 NM="$2"
7315 else
7316 NM="${ncn_tool_prefix}$2"
7317 fi
7318fi
7319
7320
7321
7322if test -n "$RANLIB"; then
7323 ac_cv_prog_RANLIB=$RANLIB
7324elif test -n "$ac_cv_prog_RANLIB"; then
7325 RANLIB=$ac_cv_prog_RANLIB
7326fi
7327
7328if test -n "$ac_cv_prog_RANLIB"; then
7329 for ncn_progname in ranlib; do
7330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7331set dummy ${ncn_progname}; ac_word=$2
7332echo "$as_me:$LINENO: checking for $ac_word" >&5
7333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7334if test "${ac_cv_prog_RANLIB+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7336else
7337 if test -n "$RANLIB"; then
7338 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7339else
7340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341for as_dir in $PATH
7342do
7343 IFS=$as_save_IFS
7344 test -z "$as_dir" && as_dir=.
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347 ac_cv_prog_RANLIB="${ncn_progname}"
7348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 break 2
7350 fi
7351done
7352done
7353
7354fi
7355fi
7356RANLIB=$ac_cv_prog_RANLIB
7357if test -n "$RANLIB"; then
7358 echo "$as_me:$LINENO: result: $RANLIB" >&5
7359echo "${ECHO_T}$RANLIB" >&6
7360else
7361 echo "$as_me:$LINENO: result: no" >&5
7362echo "${ECHO_T}no" >&6
7363fi
7364
7365 done
7366fi
859789af 7367
9a819804 7368for ncn_progname in ranlib; do
05cbd757
PB
7369 if test -n "$ncn_tool_prefix"; then
7370 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7371set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7372echo "$as_me:$LINENO: checking for $ac_word" >&5
7373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7374if test "${ac_cv_prog_RANLIB+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7376else
7377 if test -n "$RANLIB"; then
7378 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7379else
c6b750e1
DJ
7380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381for as_dir in $PATH
7382do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7387 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 break 2
7390 fi
7391done
7392done
7393
859789af
AC
7394fi
7395fi
c6b750e1 7396RANLIB=$ac_cv_prog_RANLIB
859789af 7397if test -n "$RANLIB"; then
c6b750e1
DJ
7398 echo "$as_me:$LINENO: result: $RANLIB" >&5
7399echo "${ECHO_T}$RANLIB" >&6
859789af 7400else
c6b750e1
DJ
7401 echo "$as_me:$LINENO: result: no" >&5
7402echo "${ECHO_T}no" >&6
859789af
AC
7403fi
7404
05cbd757
PB
7405 fi
7406 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7408set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7409echo "$as_me:$LINENO: checking for $ac_word" >&5
7410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7411if test "${ac_cv_prog_RANLIB+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7413else
05cbd757
PB
7414 if test -n "$RANLIB"; then
7415 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7416else
c6b750e1
DJ
7417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418for as_dir in $PATH
7419do
7420 IFS=$as_save_IFS
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7424 ac_cv_prog_RANLIB="${ncn_progname}"
7425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 break 2
7427 fi
7428done
7429done
7430
859789af
AC
7431fi
7432fi
c6b750e1 7433RANLIB=$ac_cv_prog_RANLIB
05cbd757 7434if test -n "$RANLIB"; then
c6b750e1
DJ
7435 echo "$as_me:$LINENO: result: $RANLIB" >&5
7436echo "${ECHO_T}$RANLIB" >&6
859789af 7437else
c6b750e1
DJ
7438 echo "$as_me:$LINENO: result: no" >&5
7439echo "${ECHO_T}no" >&6
859789af 7440fi
c6b750e1 7441
859789af 7442 fi
05cbd757
PB
7443 test -n "$ac_cv_prog_RANLIB" && break
7444done
7445
7446if test -z "$ac_cv_prog_RANLIB" ; then
7447 RANLIB=":"
859789af
AC
7448fi
7449
9a819804
AO
7450
7451
7452if test -n "$STRIP"; then
7453 ac_cv_prog_STRIP=$STRIP
7454elif test -n "$ac_cv_prog_STRIP"; then
7455 STRIP=$ac_cv_prog_STRIP
7456fi
7457
7458if test -n "$ac_cv_prog_STRIP"; then
7459 for ncn_progname in strip; do
7460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7461set dummy ${ncn_progname}; ac_word=$2
7462echo "$as_me:$LINENO: checking for $ac_word" >&5
7463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7464if test "${ac_cv_prog_STRIP+set}" = set; then
7465 echo $ECHO_N "(cached) $ECHO_C" >&6
7466else
7467 if test -n "$STRIP"; then
7468 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7469else
7470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471for as_dir in $PATH
7472do
7473 IFS=$as_save_IFS
7474 test -z "$as_dir" && as_dir=.
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477 ac_cv_prog_STRIP="${ncn_progname}"
7478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 break 2
7480 fi
7481done
7482done
7483
7484fi
7485fi
7486STRIP=$ac_cv_prog_STRIP
7487if test -n "$STRIP"; then
7488 echo "$as_me:$LINENO: result: $STRIP" >&5
7489echo "${ECHO_T}$STRIP" >&6
7490else
7491 echo "$as_me:$LINENO: result: no" >&5
7492echo "${ECHO_T}no" >&6
7493fi
7494
7495 done
7496fi
7497
7498for ncn_progname in strip; do
be01d343
PB
7499 if test -n "$ncn_tool_prefix"; then
7500 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7501set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7502echo "$as_me:$LINENO: checking for $ac_word" >&5
7503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7504if test "${ac_cv_prog_STRIP+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7506else
7507 if test -n "$STRIP"; then
7508 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7509else
c6b750e1
DJ
7510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511for as_dir in $PATH
7512do
7513 IFS=$as_save_IFS
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7517 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 break 2
7520 fi
7521done
7522done
7523
be01d343
PB
7524fi
7525fi
c6b750e1 7526STRIP=$ac_cv_prog_STRIP
be01d343 7527if test -n "$STRIP"; then
c6b750e1
DJ
7528 echo "$as_me:$LINENO: result: $STRIP" >&5
7529echo "${ECHO_T}$STRIP" >&6
be01d343 7530else
c6b750e1
DJ
7531 echo "$as_me:$LINENO: result: no" >&5
7532echo "${ECHO_T}no" >&6
be01d343
PB
7533fi
7534
7535 fi
7536 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7537 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7538set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7539echo "$as_me:$LINENO: checking for $ac_word" >&5
7540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7541if test "${ac_cv_prog_STRIP+set}" = set; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7543else
7544 if test -n "$STRIP"; then
7545 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7546else
c6b750e1
DJ
7547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548for as_dir in $PATH
7549do
7550 IFS=$as_save_IFS
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554 ac_cv_prog_STRIP="${ncn_progname}"
7555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 break 2
7557 fi
7558done
7559done
7560
be01d343
PB
7561fi
7562fi
c6b750e1 7563STRIP=$ac_cv_prog_STRIP
be01d343 7564if test -n "$STRIP"; then
c6b750e1
DJ
7565 echo "$as_me:$LINENO: result: $STRIP" >&5
7566echo "${ECHO_T}$STRIP" >&6
be01d343 7567else
c6b750e1
DJ
7568 echo "$as_me:$LINENO: result: no" >&5
7569echo "${ECHO_T}no" >&6
be01d343 7570fi
c6b750e1 7571
be01d343
PB
7572 fi
7573 test -n "$ac_cv_prog_STRIP" && break
7574done
7575
7576if test -z "$ac_cv_prog_STRIP" ; then
7577 STRIP=":"
7578fi
7579
9a819804
AO
7580
7581
7582if test -n "$WINDRES"; then
7583 ac_cv_prog_WINDRES=$WINDRES
7584elif test -n "$ac_cv_prog_WINDRES"; then
7585 WINDRES=$ac_cv_prog_WINDRES
7586fi
7587
7588if test -n "$ac_cv_prog_WINDRES"; then
7589 for ncn_progname in windres; do
7590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7591set dummy ${ncn_progname}; ac_word=$2
7592echo "$as_me:$LINENO: checking for $ac_word" >&5
7593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7594if test "${ac_cv_prog_WINDRES+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7596else
7597 if test -n "$WINDRES"; then
7598 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7599else
7600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601for as_dir in $PATH
7602do
7603 IFS=$as_save_IFS
7604 test -z "$as_dir" && as_dir=.
7605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7607 ac_cv_prog_WINDRES="${ncn_progname}"
7608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 break 2
7610 fi
7611done
7612done
7613
7614fi
7615fi
7616WINDRES=$ac_cv_prog_WINDRES
7617if test -n "$WINDRES"; then
7618 echo "$as_me:$LINENO: result: $WINDRES" >&5
7619echo "${ECHO_T}$WINDRES" >&6
7620else
7621 echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6
7623fi
7624
7625 done
7626fi
7627
7628for ncn_progname in windres; do
05cbd757
PB
7629 if test -n "$ncn_tool_prefix"; then
7630 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7631set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7632echo "$as_me:$LINENO: checking for $ac_word" >&5
7633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7634if test "${ac_cv_prog_WINDRES+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7636else
7637 if test -n "$WINDRES"; then
7638 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7639else
c6b750e1
DJ
7640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641for as_dir in $PATH
7642do
7643 IFS=$as_save_IFS
7644 test -z "$as_dir" && as_dir=.
7645 for ac_exec_ext in '' $ac_executable_extensions; do
7646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7647 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7649 break 2
7650 fi
7651done
7652done
7653
859789af
AC
7654fi
7655fi
c6b750e1 7656WINDRES=$ac_cv_prog_WINDRES
859789af 7657if test -n "$WINDRES"; then
c6b750e1
DJ
7658 echo "$as_me:$LINENO: result: $WINDRES" >&5
7659echo "${ECHO_T}$WINDRES" >&6
859789af 7660else
c6b750e1
DJ
7661 echo "$as_me:$LINENO: result: no" >&5
7662echo "${ECHO_T}no" >&6
859789af
AC
7663fi
7664
05cbd757
PB
7665 fi
7666 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7668set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7669echo "$as_me:$LINENO: checking for $ac_word" >&5
7670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7671if test "${ac_cv_prog_WINDRES+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7673else
05cbd757
PB
7674 if test -n "$WINDRES"; then
7675 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7676else
c6b750e1
DJ
7677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678for as_dir in $PATH
7679do
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7684 ac_cv_prog_WINDRES="${ncn_progname}"
7685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 break 2
7687 fi
7688done
7689done
7690
859789af
AC
7691fi
7692fi
c6b750e1 7693WINDRES=$ac_cv_prog_WINDRES
05cbd757 7694if test -n "$WINDRES"; then
c6b750e1
DJ
7695 echo "$as_me:$LINENO: result: $WINDRES" >&5
7696echo "${ECHO_T}$WINDRES" >&6
859789af 7697else
c6b750e1
DJ
7698 echo "$as_me:$LINENO: result: no" >&5
7699echo "${ECHO_T}no" >&6
859789af 7700fi
c6b750e1 7701
05cbd757
PB
7702 fi
7703 test -n "$ac_cv_prog_WINDRES" && break
7704done
7705
7706if test -z "$ac_cv_prog_WINDRES" ; then
7707 set dummy windres
7708 if test $build = $host ; then
7709 WINDRES="$2"
859789af 7710 else
05cbd757 7711 WINDRES="${ncn_tool_prefix}$2"
859789af 7712 fi
859789af
AC
7713fi
7714
9a819804
AO
7715
7716
0c24b341
NC
7717if test -n "$WINDMC"; then
7718 ac_cv_prog_WINDMC=$WINDMC
7719elif test -n "$ac_cv_prog_WINDMC"; then
7720 WINDMC=$ac_cv_prog_WINDMC
7721fi
7722
7723if test -n "$ac_cv_prog_WINDMC"; then
7724 for ncn_progname in windmc; do
7725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7726set dummy ${ncn_progname}; ac_word=$2
7727echo "$as_me:$LINENO: checking for $ac_word" >&5
7728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7729if test "${ac_cv_prog_WINDMC+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7731else
7732 if test -n "$WINDMC"; then
7733 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7734else
7735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736for as_dir in $PATH
7737do
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7742 ac_cv_prog_WINDMC="${ncn_progname}"
7743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 break 2
7745 fi
7746done
7747done
7748
7749fi
7750fi
7751WINDMC=$ac_cv_prog_WINDMC
7752if test -n "$WINDMC"; then
7753 echo "$as_me:$LINENO: result: $WINDMC" >&5
7754echo "${ECHO_T}$WINDMC" >&6
7755else
7756 echo "$as_me:$LINENO: result: no" >&5
7757echo "${ECHO_T}no" >&6
7758fi
7759
7760 done
7761fi
7762
7763for ncn_progname in windmc; do
7764 if test -n "$ncn_tool_prefix"; then
7765 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7766set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7767echo "$as_me:$LINENO: checking for $ac_word" >&5
7768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7769if test "${ac_cv_prog_WINDMC+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7771else
7772 if test -n "$WINDMC"; then
7773 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7774else
7775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776for as_dir in $PATH
7777do
7778 IFS=$as_save_IFS
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7782 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 break 2
7785 fi
7786done
7787done
7788
7789fi
7790fi
7791WINDMC=$ac_cv_prog_WINDMC
7792if test -n "$WINDMC"; then
7793 echo "$as_me:$LINENO: result: $WINDMC" >&5
7794echo "${ECHO_T}$WINDMC" >&6
7795else
7796 echo "$as_me:$LINENO: result: no" >&5
7797echo "${ECHO_T}no" >&6
7798fi
7799
7800 fi
7801 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7803set dummy ${ncn_progname}; ac_word=$2
7804echo "$as_me:$LINENO: checking for $ac_word" >&5
7805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7806if test "${ac_cv_prog_WINDMC+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7808else
7809 if test -n "$WINDMC"; then
7810 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7811else
7812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813for as_dir in $PATH
7814do
7815 IFS=$as_save_IFS
7816 test -z "$as_dir" && as_dir=.
7817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7819 ac_cv_prog_WINDMC="${ncn_progname}"
7820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7821 break 2
7822 fi
7823done
7824done
7825
7826fi
7827fi
7828WINDMC=$ac_cv_prog_WINDMC
7829if test -n "$WINDMC"; then
7830 echo "$as_me:$LINENO: result: $WINDMC" >&5
7831echo "${ECHO_T}$WINDMC" >&6
7832else
7833 echo "$as_me:$LINENO: result: no" >&5
7834echo "${ECHO_T}no" >&6
7835fi
7836
7837 fi
7838 test -n "$ac_cv_prog_WINDMC" && break
7839done
7840
7841if test -z "$ac_cv_prog_WINDMC" ; then
7842 set dummy windmc
7843 if test $build = $host ; then
7844 WINDMC="$2"
7845 else
7846 WINDMC="${ncn_tool_prefix}$2"
7847 fi
7848fi
7849
7850
7851
9a819804
AO
7852if test -n "$OBJCOPY"; then
7853 ac_cv_prog_OBJCOPY=$OBJCOPY
7854elif test -n "$ac_cv_prog_OBJCOPY"; then
7855 OBJCOPY=$ac_cv_prog_OBJCOPY
7856fi
7857
7858if test -n "$ac_cv_prog_OBJCOPY"; then
7859 for ncn_progname in objcopy; do
7860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7861set dummy ${ncn_progname}; ac_word=$2
7862echo "$as_me:$LINENO: checking for $ac_word" >&5
7863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7864if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7865 echo $ECHO_N "(cached) $ECHO_C" >&6
7866else
7867 if test -n "$OBJCOPY"; then
7868 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7869else
7870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871for as_dir in $PATH
7872do
7873 IFS=$as_save_IFS
7874 test -z "$as_dir" && as_dir=.
7875 for ac_exec_ext in '' $ac_executable_extensions; do
7876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7877 ac_cv_prog_OBJCOPY="${ncn_progname}"
7878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 break 2
7880 fi
7881done
7882done
7883
7884fi
7885fi
7886OBJCOPY=$ac_cv_prog_OBJCOPY
7887if test -n "$OBJCOPY"; then
7888 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7889echo "${ECHO_T}$OBJCOPY" >&6
7890else
7891 echo "$as_me:$LINENO: result: no" >&5
7892echo "${ECHO_T}no" >&6
7893fi
7894
7895 done
7896fi
7897
7898for ncn_progname in objcopy; do
05cbd757
PB
7899 if test -n "$ncn_tool_prefix"; then
7900 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7901set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7902echo "$as_me:$LINENO: checking for $ac_word" >&5
7903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7904if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7906else
7907 if test -n "$OBJCOPY"; then
7908 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7909else
c6b750e1
DJ
7910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911for as_dir in $PATH
7912do
7913 IFS=$as_save_IFS
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7917 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 break 2
7920 fi
7921done
7922done
7923
859789af
AC
7924fi
7925fi
c6b750e1 7926OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7927if test -n "$OBJCOPY"; then
c6b750e1
DJ
7928 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7929echo "${ECHO_T}$OBJCOPY" >&6
859789af 7930else
c6b750e1
DJ
7931 echo "$as_me:$LINENO: result: no" >&5
7932echo "${ECHO_T}no" >&6
859789af
AC
7933fi
7934
05cbd757
PB
7935 fi
7936 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7938set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7939echo "$as_me:$LINENO: checking for $ac_word" >&5
7940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7941if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7943else
05cbd757
PB
7944 if test -n "$OBJCOPY"; then
7945 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7946else
c6b750e1
DJ
7947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948for as_dir in $PATH
7949do
7950 IFS=$as_save_IFS
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7954 ac_cv_prog_OBJCOPY="${ncn_progname}"
7955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 break 2
7957 fi
7958done
7959done
7960
859789af
AC
7961fi
7962fi
c6b750e1 7963OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7964if test -n "$OBJCOPY"; then
c6b750e1
DJ
7965 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7966echo "${ECHO_T}$OBJCOPY" >&6
859789af 7967else
c6b750e1
DJ
7968 echo "$as_me:$LINENO: result: no" >&5
7969echo "${ECHO_T}no" >&6
859789af 7970fi
c6b750e1 7971
05cbd757
PB
7972 fi
7973 test -n "$ac_cv_prog_OBJCOPY" && break
7974done
7975
7976if test -z "$ac_cv_prog_OBJCOPY" ; then
7977 set dummy objcopy
7978 if test $build = $host ; then
7979 OBJCOPY="$2"
859789af 7980 else
05cbd757 7981 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7982 fi
859789af
AC
7983fi
7984
9a819804
AO
7985
7986
7987if test -n "$OBJDUMP"; then
7988 ac_cv_prog_OBJDUMP=$OBJDUMP
7989elif test -n "$ac_cv_prog_OBJDUMP"; then
7990 OBJDUMP=$ac_cv_prog_OBJDUMP
7991fi
7992
7993if test -n "$ac_cv_prog_OBJDUMP"; then
7994 for ncn_progname in objdump; do
7995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7996set dummy ${ncn_progname}; ac_word=$2
7997echo "$as_me:$LINENO: checking for $ac_word" >&5
7998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7999if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8001else
8002 if test -n "$OBJDUMP"; then
8003 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8004else
8005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006for as_dir in $PATH
8007do
8008 IFS=$as_save_IFS
8009 test -z "$as_dir" && as_dir=.
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8012 ac_cv_prog_OBJDUMP="${ncn_progname}"
8013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8014 break 2
8015 fi
8016done
8017done
8018
8019fi
8020fi
8021OBJDUMP=$ac_cv_prog_OBJDUMP
8022if test -n "$OBJDUMP"; then
8023 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8024echo "${ECHO_T}$OBJDUMP" >&6
8025else
8026 echo "$as_me:$LINENO: result: no" >&5
8027echo "${ECHO_T}no" >&6
8028fi
8029
8030 done
8031fi
8032
8033for ncn_progname in objdump; do
05cbd757
PB
8034 if test -n "$ncn_tool_prefix"; then
8035 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8036set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8037echo "$as_me:$LINENO: checking for $ac_word" >&5
8038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8039if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
8041else
8042 if test -n "$OBJDUMP"; then
8043 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8044else
c6b750e1
DJ
8045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046for as_dir in $PATH
8047do
8048 IFS=$as_save_IFS
8049 test -z "$as_dir" && as_dir=.
8050 for ac_exec_ext in '' $ac_executable_extensions; do
8051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8052 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8054 break 2
8055 fi
8056done
8057done
8058
859789af
AC
8059fi
8060fi
c6b750e1 8061OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 8062if test -n "$OBJDUMP"; then
c6b750e1
DJ
8063 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8064echo "${ECHO_T}$OBJDUMP" >&6
859789af 8065else
c6b750e1
DJ
8066 echo "$as_me:$LINENO: result: no" >&5
8067echo "${ECHO_T}no" >&6
859789af
AC
8068fi
8069
05cbd757
PB
8070 fi
8071 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8072 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8073set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8074echo "$as_me:$LINENO: checking for $ac_word" >&5
8075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8076if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8078else
05cbd757
PB
8079 if test -n "$OBJDUMP"; then
8080 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 8081else
c6b750e1
DJ
8082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083for as_dir in $PATH
8084do
8085 IFS=$as_save_IFS
8086 test -z "$as_dir" && as_dir=.
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8089 ac_cv_prog_OBJDUMP="${ncn_progname}"
8090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8091 break 2
8092 fi
8093done
8094done
8095
859789af
AC
8096fi
8097fi
c6b750e1 8098OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 8099if test -n "$OBJDUMP"; then
c6b750e1
DJ
8100 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8101echo "${ECHO_T}$OBJDUMP" >&6
859789af 8102else
c6b750e1
DJ
8103 echo "$as_me:$LINENO: result: no" >&5
8104echo "${ECHO_T}no" >&6
859789af 8105fi
c6b750e1 8106
05cbd757
PB
8107 fi
8108 test -n "$ac_cv_prog_OBJDUMP" && break
8109done
8110
8111if test -z "$ac_cv_prog_OBJDUMP" ; then
8112 set dummy objdump
8113 if test $build = $host ; then
8114 OBJDUMP="$2"
859789af 8115 else
05cbd757 8116 OBJDUMP="${ncn_tool_prefix}$2"
859789af 8117 fi
859789af
AC
8118fi
8119
a0da8069
NN
8120
8121
8122
8123
8124
be01d343 8125# Target tools.
c6b750e1 8126
2429c060
PB
8127# Check whether --with-build-time-tools or --without-build-time-tools was given.
8128if test "${with_build_time_tools+set}" = set; then
8129 withval="$with_build_time_tools"
8130 case x"$withval" in
8131 x/*) ;;
8132 *)
8133 with_build_time_tools=
c6b750e1
DJ
8134 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8135echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
8136 ;;
8137 esac
859789af 8138else
2429c060 8139 with_build_time_tools=
c6b750e1 8140fi;
859789af 8141
9a819804
AO
8142
8143
8144if test -n "$CC_FOR_TARGET"; then
8145 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8146elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8147 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8148fi
8149
8150if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8151 for ncn_progname in cc gcc; do
8152 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8153set dummy ${ncn_progname}; ac_word=$2
8154echo "$as_me:$LINENO: checking for $ac_word" >&5
8155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8156if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
8158else
8159 if test -n "$CC_FOR_TARGET"; then
8160 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8161else
8162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163for as_dir in $PATH
8164do
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8169 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 break 2
8172 fi
8173done
8174done
8175
8176fi
8177fi
8178CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8179if test -n "$CC_FOR_TARGET"; then
8180 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8181echo "${ECHO_T}$CC_FOR_TARGET" >&6
8182else
8183 echo "$as_me:$LINENO: result: no" >&5
8184echo "${ECHO_T}no" >&6
8185fi
8186
8187 done
8188fi
8189
8190if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8191 for ncn_progname in cc gcc; do
c6b750e1
DJ
8192 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8193echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8194 if test -x $with_build_time_tools/${ncn_progname}; then
8195 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8196 echo "$as_me:$LINENO: result: yes" >&5
8197echo "${ECHO_T}yes" >&6
cac3d6c4 8198 break
2429c060 8199 else
c6b750e1
DJ
8200 echo "$as_me:$LINENO: result: no" >&5
8201echo "${ECHO_T}no" >&6
cac3d6c4
CM
8202 fi
8203 done
55db4b87
PB
8204fi
8205
2429c060
PB
8206if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8207 for ncn_progname in cc gcc; do
8208 if test -n "$ncn_target_tool_prefix"; then
8209 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8210set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8211echo "$as_me:$LINENO: checking for $ac_word" >&5
8212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8213if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8215else
8216 if test -n "$CC_FOR_TARGET"; then
8217 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8218else
c6b750e1
DJ
8219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220for as_dir in $PATH
8221do
8222 IFS=$as_save_IFS
8223 test -z "$as_dir" && as_dir=.
8224 for ac_exec_ext in '' $ac_executable_extensions; do
8225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8226 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 break 2
8229 fi
8230done
8231done
8232
55db4b87
PB
8233fi
8234fi
c6b750e1 8235CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8236if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8237 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8238echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8239else
c6b750e1
DJ
8240 echo "$as_me:$LINENO: result: no" >&5
8241echo "${ECHO_T}no" >&6
55db4b87
PB
8242fi
8243
2429c060
PB
8244 fi
8245 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8247set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8248echo "$as_me:$LINENO: checking for $ac_word" >&5
8249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8250if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8252else
05cbd757
PB
8253 if test -n "$CC_FOR_TARGET"; then
8254 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8255else
c6b750e1
DJ
8256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257for as_dir in $PATH
8258do
8259 IFS=$as_save_IFS
8260 test -z "$as_dir" && as_dir=.
8261 for ac_exec_ext in '' $ac_executable_extensions; do
8262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8263 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8265 break 2
8266 fi
8267done
8268done
8269
55db4b87
PB
8270fi
8271fi
c6b750e1 8272CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8273if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8274 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8275echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8276else
c6b750e1
DJ
8277 echo "$as_me:$LINENO: result: no" >&5
8278echo "${ECHO_T}no" >&6
55db4b87 8279fi
c6b750e1 8280
2429c060
PB
8281 fi
8282 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8283 done
8284fi
c6b750e1 8285
05cbd757
PB
8286if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8287 set dummy cc gcc
8288 if test $build = $target ; then
8289 CC_FOR_TARGET="$2"
55db4b87 8290 else
05cbd757 8291 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8292 fi
d3f5afc4
MS
8293else
8294 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8295fi
8296
9a819804
AO
8297
8298
8299if test -n "$CXX_FOR_TARGET"; then
8300 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8301elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8302 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8303fi
8304
8305if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8306 for ncn_progname in c++ g++ cxx gxx; do
8307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8308set dummy ${ncn_progname}; ac_word=$2
8309echo "$as_me:$LINENO: checking for $ac_word" >&5
8310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8311if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8313else
8314 if test -n "$CXX_FOR_TARGET"; then
8315 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8316else
8317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318for as_dir in $PATH
8319do
8320 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8324 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8326 break 2
8327 fi
8328done
8329done
8330
8331fi
8332fi
8333CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8334if test -n "$CXX_FOR_TARGET"; then
8335 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8336echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8337else
8338 echo "$as_me:$LINENO: result: no" >&5
8339echo "${ECHO_T}no" >&6
8340fi
8341
8342 done
8343fi
8344
8345if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8346 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8347 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8348echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8349 if test -x $with_build_time_tools/${ncn_progname}; then
8350 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8351 echo "$as_me:$LINENO: result: yes" >&5
8352echo "${ECHO_T}yes" >&6
2429c060
PB
8353 break
8354 else
c6b750e1
DJ
8355 echo "$as_me:$LINENO: result: no" >&5
8356echo "${ECHO_T}no" >&6
2429c060
PB
8357 fi
8358 done
8359fi
8360
8361if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8362 for ncn_progname in c++ g++ cxx gxx; do
8363 if test -n "$ncn_target_tool_prefix"; then
8364 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8365set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8366echo "$as_me:$LINENO: checking for $ac_word" >&5
8367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8368if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8370else
8371 if test -n "$CXX_FOR_TARGET"; then
8372 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8373else
c6b750e1
DJ
8374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375for as_dir in $PATH
8376do
8377 IFS=$as_save_IFS
8378 test -z "$as_dir" && as_dir=.
8379 for ac_exec_ext in '' $ac_executable_extensions; do
8380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8381 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8383 break 2
8384 fi
8385done
8386done
8387
55db4b87
PB
8388fi
8389fi
c6b750e1 8390CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8391if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8392 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8393echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8394else
c6b750e1
DJ
8395 echo "$as_me:$LINENO: result: no" >&5
8396echo "${ECHO_T}no" >&6
55db4b87
PB
8397fi
8398
2429c060
PB
8399 fi
8400 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8401 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8402set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8403echo "$as_me:$LINENO: checking for $ac_word" >&5
8404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8405if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8407else
05cbd757
PB
8408 if test -n "$CXX_FOR_TARGET"; then
8409 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8410else
c6b750e1
DJ
8411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412for as_dir in $PATH
8413do
8414 IFS=$as_save_IFS
8415 test -z "$as_dir" && as_dir=.
8416 for ac_exec_ext in '' $ac_executable_extensions; do
8417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8418 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8420 break 2
8421 fi
8422done
8423done
8424
55db4b87
PB
8425fi
8426fi
c6b750e1 8427CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8428if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8429 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8430echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8431else
c6b750e1
DJ
8432 echo "$as_me:$LINENO: result: no" >&5
8433echo "${ECHO_T}no" >&6
55db4b87 8434fi
c6b750e1 8435
2429c060
PB
8436 fi
8437 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8438 done
8439fi
c6b750e1 8440
05cbd757
PB
8441if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8442 set dummy c++ g++ cxx gxx
8443 if test $build = $target ; then
8444 CXX_FOR_TARGET="$2"
55db4b87 8445 else
05cbd757 8446 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8447 fi
d3f5afc4
MS
8448else
8449 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8450fi
8451
9a819804
AO
8452
8453
8454if test -n "$GCC_FOR_TARGET"; then
8455 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8456elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8457 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8458fi
8459
8460if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8461 for ncn_progname in gcc; do
8462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8463set dummy ${ncn_progname}; ac_word=$2
8464echo "$as_me:$LINENO: checking for $ac_word" >&5
8465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8466if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8468else
8469 if test -n "$GCC_FOR_TARGET"; then
8470 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8471else
8472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8473for as_dir in $PATH
8474do
8475 IFS=$as_save_IFS
8476 test -z "$as_dir" && as_dir=.
8477 for ac_exec_ext in '' $ac_executable_extensions; do
8478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8479 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8481 break 2
8482 fi
8483done
8484done
8485
8486fi
8487fi
8488GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8489if test -n "$GCC_FOR_TARGET"; then
8490 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8491echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8492else
8493 echo "$as_me:$LINENO: result: no" >&5
8494echo "${ECHO_T}no" >&6
8495fi
8496
8497 done
8498fi
8499
8500if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8501 for ncn_progname in gcc; do
c6b750e1
DJ
8502 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8503echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8504 if test -x $with_build_time_tools/${ncn_progname}; then
8505 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8506 echo "$as_me:$LINENO: result: yes" >&5
8507echo "${ECHO_T}yes" >&6
2429c060
PB
8508 break
8509 else
c6b750e1
DJ
8510 echo "$as_me:$LINENO: result: no" >&5
8511echo "${ECHO_T}no" >&6
2429c060
PB
8512 fi
8513 done
8514fi
8515
8516if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8517 for ncn_progname in gcc; do
8518 if test -n "$ncn_target_tool_prefix"; then
8519 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8520set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8521echo "$as_me:$LINENO: checking for $ac_word" >&5
8522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8523if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8525else
2429c060
PB
8526 if test -n "$GCC_FOR_TARGET"; then
8527 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8528else
c6b750e1
DJ
8529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8530for as_dir in $PATH
8531do
8532 IFS=$as_save_IFS
8533 test -z "$as_dir" && as_dir=.
8534 for ac_exec_ext in '' $ac_executable_extensions; do
8535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8536 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8538 break 2
8539 fi
8540done
8541done
8542
55db4b87
PB
8543fi
8544fi
c6b750e1 8545GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8546if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8547 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8548echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8549else
c6b750e1
DJ
8550 echo "$as_me:$LINENO: result: no" >&5
8551echo "${ECHO_T}no" >&6
55db4b87
PB
8552fi
8553
2429c060
PB
8554 fi
8555 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8556 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8557set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8558echo "$as_me:$LINENO: checking for $ac_word" >&5
8559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8560if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8562else
05cbd757
PB
8563 if test -n "$GCC_FOR_TARGET"; then
8564 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8565else
c6b750e1
DJ
8566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8567for as_dir in $PATH
8568do
8569 IFS=$as_save_IFS
8570 test -z "$as_dir" && as_dir=.
8571 for ac_exec_ext in '' $ac_executable_extensions; do
8572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8573 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8575 break 2
8576 fi
8577done
8578done
8579
55db4b87
PB
8580fi
8581fi
c6b750e1 8582GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8583if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8584 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8585echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8586else
c6b750e1
DJ
8587 echo "$as_me:$LINENO: result: no" >&5
8588echo "${ECHO_T}no" >&6
55db4b87 8589fi
c6b750e1 8590
2429c060
PB
8591 fi
8592 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8593 done
8594fi
c6b750e1 8595
05cbd757
PB
8596if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8597 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8598else
8599 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8600fi
8601
9a819804
AO
8602
8603
8604if test -n "$GCJ_FOR_TARGET"; then
8605 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8606elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8607 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8608fi
8609
8610if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8611 for ncn_progname in gcj; do
8612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8613set dummy ${ncn_progname}; ac_word=$2
8614echo "$as_me:$LINENO: checking for $ac_word" >&5
8615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8616if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8618else
8619 if test -n "$GCJ_FOR_TARGET"; then
8620 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8621else
8622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623for as_dir in $PATH
8624do
8625 IFS=$as_save_IFS
8626 test -z "$as_dir" && as_dir=.
8627 for ac_exec_ext in '' $ac_executable_extensions; do
8628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8629 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8631 break 2
8632 fi
8633done
8634done
8635
8636fi
8637fi
8638GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8639if test -n "$GCJ_FOR_TARGET"; then
8640 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8641echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8642else
8643 echo "$as_me:$LINENO: result: no" >&5
8644echo "${ECHO_T}no" >&6
8645fi
8646
8647 done
8648fi
8649
8650if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8651 for ncn_progname in gcj; do
c6b750e1
DJ
8652 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8653echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8654 if test -x $with_build_time_tools/${ncn_progname}; then
8655 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8656 echo "$as_me:$LINENO: result: yes" >&5
8657echo "${ECHO_T}yes" >&6
2429c060
PB
8658 break
8659 else
c6b750e1
DJ
8660 echo "$as_me:$LINENO: result: no" >&5
8661echo "${ECHO_T}no" >&6
2429c060
PB
8662 fi
8663 done
8664fi
8665
8666if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8667 for ncn_progname in gcj; do
8668 if test -n "$ncn_target_tool_prefix"; then
8669 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8670set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8671echo "$as_me:$LINENO: checking for $ac_word" >&5
8672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8673if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8675else
8676 if test -n "$GCJ_FOR_TARGET"; then
8677 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8678else
c6b750e1
DJ
8679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680for as_dir in $PATH
8681do
8682 IFS=$as_save_IFS
8683 test -z "$as_dir" && as_dir=.
8684 for ac_exec_ext in '' $ac_executable_extensions; do
8685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8686 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8688 break 2
8689 fi
8690done
8691done
8692
55db4b87
PB
8693fi
8694fi
9a819804
AO
8695GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8696if test -n "$GCJ_FOR_TARGET"; then
8697 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8698echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8699else
8700 echo "$as_me:$LINENO: result: no" >&5
8701echo "${ECHO_T}no" >&6
8702fi
8703
8704 fi
8705 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8706 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8707set dummy ${ncn_progname}; ac_word=$2
8708echo "$as_me:$LINENO: checking for $ac_word" >&5
8709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8710if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
8712else
8713 if test -n "$GCJ_FOR_TARGET"; then
8714 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8715else
8716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717for as_dir in $PATH
8718do
8719 IFS=$as_save_IFS
8720 test -z "$as_dir" && as_dir=.
8721 for ac_exec_ext in '' $ac_executable_extensions; do
8722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8723 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8725 break 2
8726 fi
8727done
8728done
8729
8730fi
8731fi
8732GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8733if test -n "$GCJ_FOR_TARGET"; then
8734 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8735echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8736else
8737 echo "$as_me:$LINENO: result: no" >&5
8738echo "${ECHO_T}no" >&6
8739fi
8740
8741 fi
8742 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8743 done
8744fi
8745
8746if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8747 set dummy gcj
8748 if test $build = $target ; then
8749 GCJ_FOR_TARGET="$2"
8750 else
8751 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8752 fi
d3f5afc4
MS
8753else
8754 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8755fi
8756
8757
8758
8759if test -n "$GFORTRAN_FOR_TARGET"; then
8760 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8761elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8762 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8763fi
8764
9a819804
AO
8765if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8766 for ncn_progname in gfortran; do
8767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8768set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8769echo "$as_me:$LINENO: checking for $ac_word" >&5
8770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8771if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8772 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8773else
9a819804
AO
8774 if test -n "$GFORTRAN_FOR_TARGET"; then
8775 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8776else
c6b750e1
DJ
8777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8778for as_dir in $PATH
8779do
8780 IFS=$as_save_IFS
8781 test -z "$as_dir" && as_dir=.
8782 for ac_exec_ext in '' $ac_executable_extensions; do
8783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8784 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8786 break 2
8787 fi
8788done
8789done
8790
55db4b87
PB
8791fi
8792fi
9a819804
AO
8793GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8794if test -n "$GFORTRAN_FOR_TARGET"; then
8795 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8796echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8797else
c6b750e1
DJ
8798 echo "$as_me:$LINENO: result: no" >&5
8799echo "${ECHO_T}no" >&6
55db4b87 8800fi
c6b750e1 8801
2429c060
PB
8802 done
8803fi
c6b750e1 8804
9a819804 8805if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8806 for ncn_progname in gfortran; do
c6b750e1
DJ
8807 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8808echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8809 if test -x $with_build_time_tools/${ncn_progname}; then
8810 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8811 echo "$as_me:$LINENO: result: yes" >&5
8812echo "${ECHO_T}yes" >&6
2429c060
PB
8813 break
8814 else
c6b750e1
DJ
8815 echo "$as_me:$LINENO: result: no" >&5
8816echo "${ECHO_T}no" >&6
2429c060
PB
8817 fi
8818 done
8819fi
8820
8821if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8822 for ncn_progname in gfortran; do
8823 if test -n "$ncn_target_tool_prefix"; then
8824 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8825set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8826echo "$as_me:$LINENO: checking for $ac_word" >&5
8827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8828if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8829 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8830else
8831 if test -n "$GFORTRAN_FOR_TARGET"; then
8832 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8833else
c6b750e1
DJ
8834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835for as_dir in $PATH
8836do
8837 IFS=$as_save_IFS
8838 test -z "$as_dir" && as_dir=.
8839 for ac_exec_ext in '' $ac_executable_extensions; do
8840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8841 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8843 break 2
8844 fi
8845done
8846done
8847
55db4b87
PB
8848fi
8849fi
c6b750e1 8850GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8851if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8852 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8853echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8854else
c6b750e1
DJ
8855 echo "$as_me:$LINENO: result: no" >&5
8856echo "${ECHO_T}no" >&6
55db4b87
PB
8857fi
8858
2429c060
PB
8859 fi
8860 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8862set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8863echo "$as_me:$LINENO: checking for $ac_word" >&5
8864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8865if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8866 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8867else
05cbd757 8868 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8869 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8870else
8871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872for as_dir in $PATH
8873do
8874 IFS=$as_save_IFS
8875 test -z "$as_dir" && as_dir=.
8876 for ac_exec_ext in '' $ac_executable_extensions; do
8877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8878 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8880 break 2
8881 fi
8882done
8883done
8884
55db4b87
PB
8885fi
8886fi
c6b750e1 8887GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8888if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8889 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8890echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8891else
c6b750e1
DJ
8892 echo "$as_me:$LINENO: result: no" >&5
8893echo "${ECHO_T}no" >&6
55db4b87 8894fi
c6b750e1 8895
2429c060
PB
8896 fi
8897 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8898 done
8899fi
c6b750e1 8900
05cbd757
PB
8901if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8902 set dummy gfortran
8903 if test $build = $target ; then
8904 GFORTRAN_FOR_TARGET="$2"
55db4b87 8905 else
05cbd757 8906 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8907 fi
d3f5afc4
MS
8908else
8909 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8910fi
8911
2429c060
PB
8912
8913
2429c060
PB
8914cat > conftest.c << \EOF
8915#ifdef __GNUC__
8916 gcc_yay;
8917#endif
8918EOF
8919if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8920 have_gcc_for_target=yes
859789af 8921else
2429c060
PB
8922 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8923 have_gcc_for_target=no
859789af 8924fi
2429c060
PB
8925rm conftest.c
8926
8927
8928
859789af 8929
2429c060
PB
8930if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8931 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8932 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8933echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8934 if test -x $with_build_time_tools/ar; then
8935 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8936 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8937 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8938echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8939 else
c6b750e1
DJ
8940 echo "$as_me:$LINENO: result: no" >&5
8941echo "${ECHO_T}no" >&6
3a35eeb3 8942 fi
2429c060
PB
8943 elif test $build != $host && test $have_gcc_for_target = yes; then
8944 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8945 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8946 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8947 fi
2429c060 8948fi
c6b750e1 8949if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8950 # Extract the first word of "ar", so it can be a program name with args.
8951set dummy ar; ac_word=$2
c6b750e1
DJ
8952echo "$as_me:$LINENO: checking for $ac_word" >&5
8953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8954if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8955 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8956else
c6b750e1
DJ
8957 case $AR_FOR_TARGET in
8958 [\\/]* | ?:[\\/]*)
2429c060
PB
8959 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8960 ;;
2429c060 8961 *)
c6b750e1
DJ
8962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8963for as_dir in $gcc_cv_tool_dirs
8964do
8965 IFS=$as_save_IFS
8966 test -z "$as_dir" && as_dir=.
8967 for ac_exec_ext in '' $ac_executable_extensions; do
8968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8969 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8971 break 2
8972 fi
8973done
8974done
8975
2429c060
PB
8976 ;;
8977esac
859789af 8978fi
c6b750e1
DJ
8979AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8980
2429c060 8981if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8982 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8983echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8984else
c6b750e1
DJ
8985 echo "$as_me:$LINENO: result: no" >&5
8986echo "${ECHO_T}no" >&6
859789af 8987fi
05cbd757 8988
2429c060
PB
8989fi
8990if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8991
8992
8993if test -n "$AR_FOR_TARGET"; then
8994 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8995elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8996 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8997fi
8998
8999if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9000 for ncn_progname in ar; do
9001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9002set dummy ${ncn_progname}; ac_word=$2
9003echo "$as_me:$LINENO: checking for $ac_word" >&5
9004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9005if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9006 echo $ECHO_N "(cached) $ECHO_C" >&6
9007else
9008 if test -n "$AR_FOR_TARGET"; then
9009 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9010else
9011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9012for as_dir in $PATH
9013do
9014 IFS=$as_save_IFS
9015 test -z "$as_dir" && as_dir=.
9016 for ac_exec_ext in '' $ac_executable_extensions; do
9017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9018 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9020 break 2
9021 fi
9022done
9023done
9024
9025fi
9026fi
9027AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9028if test -n "$AR_FOR_TARGET"; then
9029 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9030echo "${ECHO_T}$AR_FOR_TARGET" >&6
9031else
9032 echo "$as_me:$LINENO: result: no" >&5
9033echo "${ECHO_T}no" >&6
9034fi
9035
9036 done
9037fi
9038
9039if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9040 for ncn_progname in ar; do
c6b750e1
DJ
9041 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9042echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9043 if test -x $with_build_time_tools/${ncn_progname}; then
9044 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9045 echo "$as_me:$LINENO: result: yes" >&5
9046echo "${ECHO_T}yes" >&6
2429c060
PB
9047 break
9048 else
c6b750e1
DJ
9049 echo "$as_me:$LINENO: result: no" >&5
9050echo "${ECHO_T}no" >&6
2429c060
PB
9051 fi
9052 done
859789af
AC
9053fi
9054
2429c060
PB
9055if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9056 for ncn_progname in ar; do
9057 if test -n "$ncn_target_tool_prefix"; then
9058 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9059set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9060echo "$as_me:$LINENO: checking for $ac_word" >&5
9061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9062if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9063 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9064else
2429c060
PB
9065 if test -n "$AR_FOR_TARGET"; then
9066 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 9067else
c6b750e1
DJ
9068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9069for as_dir in $PATH
9070do
9071 IFS=$as_save_IFS
9072 test -z "$as_dir" && as_dir=.
9073 for ac_exec_ext in '' $ac_executable_extensions; do
9074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9075 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9077 break 2
9078 fi
9079done
9080done
9081
7e0f7140
GK
9082fi
9083fi
c6b750e1 9084AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9085if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9086 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9087echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9088else
c6b750e1
DJ
9089 echo "$as_me:$LINENO: result: no" >&5
9090echo "${ECHO_T}no" >&6
7e0f7140
GK
9091fi
9092
2429c060
PB
9093 fi
9094 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9095 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 9096set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9097echo "$as_me:$LINENO: checking for $ac_word" >&5
9098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9099if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9101else
2429c060
PB
9102 if test -n "$AR_FOR_TARGET"; then
9103 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 9104else
c6b750e1
DJ
9105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9106for as_dir in $PATH
9107do
9108 IFS=$as_save_IFS
9109 test -z "$as_dir" && as_dir=.
9110 for ac_exec_ext in '' $ac_executable_extensions; do
9111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9112 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9114 break 2
9115 fi
9116done
9117done
9118
7e0f7140
GK
9119fi
9120fi
c6b750e1 9121AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9122if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9123 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9124echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9125else
c6b750e1
DJ
9126 echo "$as_me:$LINENO: result: no" >&5
9127echo "${ECHO_T}no" >&6
7e0f7140 9128fi
c6b750e1 9129
2429c060
PB
9130 fi
9131 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9132 done
9133fi
c6b750e1 9134
2429c060
PB
9135if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9136 set dummy ar
7e0f7140 9137 if test $build = $target ; then
2429c060 9138 AR_FOR_TARGET="$2"
7e0f7140 9139 else
2429c060 9140 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 9141 fi
d3f5afc4
MS
9142else
9143 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
9144fi
9145
3a35eeb3
PB
9146else
9147 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
9148fi
9149
9150
9151
9152
9153if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9154 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9155 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9156echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9157 if test -x $with_build_time_tools/as; then
9158 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9159 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
9160 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9161echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 9162 else
c6b750e1
DJ
9163 echo "$as_me:$LINENO: result: no" >&5
9164echo "${ECHO_T}no" >&6
3a35eeb3 9165 fi
2429c060
PB
9166 elif test $build != $host && test $have_gcc_for_target = yes; then
9167 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
9168 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9169 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
9170 fi
9171fi
c6b750e1 9172if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9173 # Extract the first word of "as", so it can be a program name with args.
9174set dummy as; ac_word=$2
c6b750e1
DJ
9175echo "$as_me:$LINENO: checking for $ac_word" >&5
9176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9177if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9179else
c6b750e1
DJ
9180 case $AS_FOR_TARGET in
9181 [\\/]* | ?:[\\/]*)
2429c060
PB
9182 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9183 ;;
2429c060 9184 *)
c6b750e1
DJ
9185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9186for as_dir in $gcc_cv_tool_dirs
9187do
9188 IFS=$as_save_IFS
9189 test -z "$as_dir" && as_dir=.
9190 for ac_exec_ext in '' $ac_executable_extensions; do
9191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9192 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9194 break 2
9195 fi
9196done
9197done
9198
2429c060
PB
9199 ;;
9200esac
9201fi
c6b750e1
DJ
9202AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9203
2429c060 9204if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9205 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9206echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9207else
c6b750e1
DJ
9208 echo "$as_me:$LINENO: result: no" >&5
9209echo "${ECHO_T}no" >&6
2429c060
PB
9210fi
9211
9212fi
9213if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9214
9215
9216if test -n "$AS_FOR_TARGET"; then
9217 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9218elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9219 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9220fi
9221
9222if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9223 for ncn_progname in as; do
9224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9225set dummy ${ncn_progname}; ac_word=$2
9226echo "$as_me:$LINENO: checking for $ac_word" >&5
9227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9228if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
9230else
9231 if test -n "$AS_FOR_TARGET"; then
9232 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9233else
9234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9235for as_dir in $PATH
9236do
9237 IFS=$as_save_IFS
9238 test -z "$as_dir" && as_dir=.
9239 for ac_exec_ext in '' $ac_executable_extensions; do
9240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9241 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9243 break 2
9244 fi
9245done
9246done
9247
9248fi
9249fi
9250AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9251if test -n "$AS_FOR_TARGET"; then
9252 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9253echo "${ECHO_T}$AS_FOR_TARGET" >&6
9254else
9255 echo "$as_me:$LINENO: result: no" >&5
9256echo "${ECHO_T}no" >&6
9257fi
9258
9259 done
9260fi
9261
9262if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9263 for ncn_progname in as; do
c6b750e1
DJ
9264 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9265echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9266 if test -x $with_build_time_tools/${ncn_progname}; then
9267 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9268 echo "$as_me:$LINENO: result: yes" >&5
9269echo "${ECHO_T}yes" >&6
2429c060
PB
9270 break
9271 else
c6b750e1
DJ
9272 echo "$as_me:$LINENO: result: no" >&5
9273echo "${ECHO_T}no" >&6
2429c060
PB
9274 fi
9275 done
9276fi
9277
9278if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9279 for ncn_progname in as; do
9280 if test -n "$ncn_target_tool_prefix"; then
9281 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9282set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9283echo "$as_me:$LINENO: checking for $ac_word" >&5
9284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9285if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9286 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9287else
9288 if test -n "$AS_FOR_TARGET"; then
9289 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9290else
c6b750e1
DJ
9291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292for as_dir in $PATH
9293do
9294 IFS=$as_save_IFS
9295 test -z "$as_dir" && as_dir=.
9296 for ac_exec_ext in '' $ac_executable_extensions; do
9297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9298 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9300 break 2
9301 fi
9302done
9303done
9304
2429c060
PB
9305fi
9306fi
c6b750e1 9307AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9308if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9309 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9310echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9311else
c6b750e1
DJ
9312 echo "$as_me:$LINENO: result: no" >&5
9313echo "${ECHO_T}no" >&6
2429c060
PB
9314fi
9315
9316 fi
9317 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9319set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9320echo "$as_me:$LINENO: checking for $ac_word" >&5
9321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9322if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9324else
9325 if test -n "$AS_FOR_TARGET"; then
9326 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9327else
c6b750e1
DJ
9328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9329for as_dir in $PATH
9330do
9331 IFS=$as_save_IFS
9332 test -z "$as_dir" && as_dir=.
9333 for ac_exec_ext in '' $ac_executable_extensions; do
9334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9335 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9337 break 2
9338 fi
9339done
9340done
9341
2429c060
PB
9342fi
9343fi
c6b750e1 9344AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9345if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9346 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9347echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9348else
c6b750e1
DJ
9349 echo "$as_me:$LINENO: result: no" >&5
9350echo "${ECHO_T}no" >&6
2429c060 9351fi
c6b750e1 9352
2429c060
PB
9353 fi
9354 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9355 done
9356fi
c6b750e1 9357
2429c060
PB
9358if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9359 set dummy as
9360 if test $build = $target ; then
9361 AS_FOR_TARGET="$2"
9362 else
9363 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9364 fi
d3f5afc4
MS
9365else
9366 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9367fi
9368
3a35eeb3
PB
9369else
9370 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9371fi
9372
9373
9374
9375
9376if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9377 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9378 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9379echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9380 if test -x $with_build_time_tools/dlltool; then
9381 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9382 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9383 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9384echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9385 else
c6b750e1
DJ
9386 echo "$as_me:$LINENO: result: no" >&5
9387echo "${ECHO_T}no" >&6
3a35eeb3 9388 fi
2429c060
PB
9389 elif test $build != $host && test $have_gcc_for_target = yes; then
9390 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9391 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9392 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9393 fi
9394fi
c6b750e1 9395if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9396 # Extract the first word of "dlltool", so it can be a program name with args.
9397set dummy dlltool; ac_word=$2
c6b750e1
DJ
9398echo "$as_me:$LINENO: checking for $ac_word" >&5
9399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9400if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9402else
c6b750e1
DJ
9403 case $DLLTOOL_FOR_TARGET in
9404 [\\/]* | ?:[\\/]*)
2429c060
PB
9405 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9406 ;;
2429c060 9407 *)
c6b750e1
DJ
9408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9409for as_dir in $gcc_cv_tool_dirs
9410do
9411 IFS=$as_save_IFS
9412 test -z "$as_dir" && as_dir=.
9413 for ac_exec_ext in '' $ac_executable_extensions; do
9414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9415 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9417 break 2
9418 fi
9419done
9420done
9421
2429c060
PB
9422 ;;
9423esac
9424fi
c6b750e1
DJ
9425DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9426
2429c060 9427if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9428 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9429echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9430else
c6b750e1
DJ
9431 echo "$as_me:$LINENO: result: no" >&5
9432echo "${ECHO_T}no" >&6
2429c060
PB
9433fi
9434
9435fi
9436if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9437
9438
9439if test -n "$DLLTOOL_FOR_TARGET"; then
9440 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9441elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9442 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9443fi
9444
9445if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9446 for ncn_progname in dlltool; do
9447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9448set dummy ${ncn_progname}; ac_word=$2
9449echo "$as_me:$LINENO: checking for $ac_word" >&5
9450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9451if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9452 echo $ECHO_N "(cached) $ECHO_C" >&6
9453else
9454 if test -n "$DLLTOOL_FOR_TARGET"; then
9455 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9456else
9457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9458for as_dir in $PATH
9459do
9460 IFS=$as_save_IFS
9461 test -z "$as_dir" && as_dir=.
9462 for ac_exec_ext in '' $ac_executable_extensions; do
9463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9464 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9466 break 2
9467 fi
9468done
9469done
9470
9471fi
9472fi
9473DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9474if test -n "$DLLTOOL_FOR_TARGET"; then
9475 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9476echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9477else
9478 echo "$as_me:$LINENO: result: no" >&5
9479echo "${ECHO_T}no" >&6
9480fi
9481
9482 done
9483fi
9484
9485if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9486 for ncn_progname in dlltool; do
c6b750e1
DJ
9487 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9488echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9489 if test -x $with_build_time_tools/${ncn_progname}; then
9490 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9491 echo "$as_me:$LINENO: result: yes" >&5
9492echo "${ECHO_T}yes" >&6
2429c060
PB
9493 break
9494 else
c6b750e1
DJ
9495 echo "$as_me:$LINENO: result: no" >&5
9496echo "${ECHO_T}no" >&6
2429c060
PB
9497 fi
9498 done
9499fi
9500
9501if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9502 for ncn_progname in dlltool; do
9503 if test -n "$ncn_target_tool_prefix"; then
9504 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9505set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9506echo "$as_me:$LINENO: checking for $ac_word" >&5
9507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9508if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9510else
9511 if test -n "$DLLTOOL_FOR_TARGET"; then
9512 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9513else
c6b750e1
DJ
9514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9515for as_dir in $PATH
9516do
9517 IFS=$as_save_IFS
9518 test -z "$as_dir" && as_dir=.
9519 for ac_exec_ext in '' $ac_executable_extensions; do
9520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9521 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9523 break 2
9524 fi
9525done
9526done
9527
2429c060
PB
9528fi
9529fi
c6b750e1 9530DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9531if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9532 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9533echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9534else
c6b750e1
DJ
9535 echo "$as_me:$LINENO: result: no" >&5
9536echo "${ECHO_T}no" >&6
2429c060
PB
9537fi
9538
9539 fi
9540 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9542set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9543echo "$as_me:$LINENO: checking for $ac_word" >&5
9544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9545if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9547else
9548 if test -n "$DLLTOOL_FOR_TARGET"; then
9549 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9550else
c6b750e1
DJ
9551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9552for as_dir in $PATH
9553do
9554 IFS=$as_save_IFS
9555 test -z "$as_dir" && as_dir=.
9556 for ac_exec_ext in '' $ac_executable_extensions; do
9557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9558 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9560 break 2
9561 fi
9562done
9563done
9564
2429c060
PB
9565fi
9566fi
c6b750e1 9567DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9568if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9569 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9570echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9571else
c6b750e1
DJ
9572 echo "$as_me:$LINENO: result: no" >&5
9573echo "${ECHO_T}no" >&6
2429c060 9574fi
c6b750e1 9575
2429c060
PB
9576 fi
9577 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9578 done
9579fi
c6b750e1 9580
2429c060
PB
9581if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9582 set dummy dlltool
9583 if test $build = $target ; then
9584 DLLTOOL_FOR_TARGET="$2"
9585 else
9586 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9587 fi
d3f5afc4
MS
9588else
9589 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9590fi
9591
3a35eeb3
PB
9592else
9593 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9594fi
9595
9596
9597
9598
9599if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9600 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9601 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9602echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9603 if test -x $with_build_time_tools/ld; then
9604 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9605 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9606 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9607echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9608 else
c6b750e1
DJ
9609 echo "$as_me:$LINENO: result: no" >&5
9610echo "${ECHO_T}no" >&6
3a35eeb3 9611 fi
2429c060
PB
9612 elif test $build != $host && test $have_gcc_for_target = yes; then
9613 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9614 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9615 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9616 fi
9617fi
c6b750e1 9618if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9619 # Extract the first word of "ld", so it can be a program name with args.
9620set dummy ld; ac_word=$2
c6b750e1
DJ
9621echo "$as_me:$LINENO: checking for $ac_word" >&5
9622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9623if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9624 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9625else
c6b750e1
DJ
9626 case $LD_FOR_TARGET in
9627 [\\/]* | ?:[\\/]*)
2429c060
PB
9628 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9629 ;;
2429c060 9630 *)
c6b750e1
DJ
9631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9632for as_dir in $gcc_cv_tool_dirs
9633do
9634 IFS=$as_save_IFS
9635 test -z "$as_dir" && as_dir=.
9636 for ac_exec_ext in '' $ac_executable_extensions; do
9637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9638 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9640 break 2
9641 fi
9642done
9643done
9644
2429c060
PB
9645 ;;
9646esac
9647fi
c6b750e1
DJ
9648LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9649
2429c060 9650if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9651 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9652echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9653else
c6b750e1
DJ
9654 echo "$as_me:$LINENO: result: no" >&5
9655echo "${ECHO_T}no" >&6
2429c060
PB
9656fi
9657
9658fi
9659if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9660
9661
9662if test -n "$LD_FOR_TARGET"; then
9663 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9664elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9665 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9666fi
9667
9668if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9669 for ncn_progname in ld; do
9670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9671set dummy ${ncn_progname}; ac_word=$2
9672echo "$as_me:$LINENO: checking for $ac_word" >&5
9673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9674if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9676else
9677 if test -n "$LD_FOR_TARGET"; then
9678 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9679else
9680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9681for as_dir in $PATH
9682do
9683 IFS=$as_save_IFS
9684 test -z "$as_dir" && as_dir=.
9685 for ac_exec_ext in '' $ac_executable_extensions; do
9686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9687 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9689 break 2
9690 fi
9691done
9692done
9693
9694fi
9695fi
9696LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9697if test -n "$LD_FOR_TARGET"; then
9698 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9699echo "${ECHO_T}$LD_FOR_TARGET" >&6
9700else
9701 echo "$as_me:$LINENO: result: no" >&5
9702echo "${ECHO_T}no" >&6
9703fi
9704
9705 done
9706fi
9707
9708if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9709 for ncn_progname in ld; do
c6b750e1
DJ
9710 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9711echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9712 if test -x $with_build_time_tools/${ncn_progname}; then
9713 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9714 echo "$as_me:$LINENO: result: yes" >&5
9715echo "${ECHO_T}yes" >&6
2429c060
PB
9716 break
9717 else
c6b750e1
DJ
9718 echo "$as_me:$LINENO: result: no" >&5
9719echo "${ECHO_T}no" >&6
2429c060
PB
9720 fi
9721 done
9722fi
9723
9724if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9725 for ncn_progname in ld; do
9726 if test -n "$ncn_target_tool_prefix"; then
9727 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9728set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9729echo "$as_me:$LINENO: checking for $ac_word" >&5
9730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9731if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9733else
9734 if test -n "$LD_FOR_TARGET"; then
9735 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9736else
c6b750e1
DJ
9737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9738for as_dir in $PATH
9739do
9740 IFS=$as_save_IFS
9741 test -z "$as_dir" && as_dir=.
9742 for ac_exec_ext in '' $ac_executable_extensions; do
9743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9744 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9746 break 2
9747 fi
9748done
9749done
9750
2429c060
PB
9751fi
9752fi
c6b750e1 9753LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9754if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9755 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9756echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9757else
c6b750e1
DJ
9758 echo "$as_me:$LINENO: result: no" >&5
9759echo "${ECHO_T}no" >&6
2429c060
PB
9760fi
9761
9762 fi
9763 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9764 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9765set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9766echo "$as_me:$LINENO: checking for $ac_word" >&5
9767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9768if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9769 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9770else
9771 if test -n "$LD_FOR_TARGET"; then
9772 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9773else
c6b750e1
DJ
9774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9775for as_dir in $PATH
9776do
9777 IFS=$as_save_IFS
9778 test -z "$as_dir" && as_dir=.
9779 for ac_exec_ext in '' $ac_executable_extensions; do
9780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9781 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9783 break 2
9784 fi
9785done
9786done
9787
2429c060
PB
9788fi
9789fi
c6b750e1 9790LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9791if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9792 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9793echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9794else
c6b750e1
DJ
9795 echo "$as_me:$LINENO: result: no" >&5
9796echo "${ECHO_T}no" >&6
2429c060 9797fi
c6b750e1 9798
2429c060
PB
9799 fi
9800 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9801 done
9802fi
c6b750e1 9803
2429c060
PB
9804if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9805 set dummy ld
9806 if test $build = $target ; then
9807 LD_FOR_TARGET="$2"
9808 else
9809 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9810 fi
d3f5afc4
MS
9811else
9812 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9813fi
9814
3a35eeb3
PB
9815else
9816 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9817fi
9818
9819
9820
9821
9822if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9823 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9824 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9825echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9826 if test -x $with_build_time_tools/lipo; then
9827 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9828 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9829 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9830echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9831 else
c6b750e1
DJ
9832 echo "$as_me:$LINENO: result: no" >&5
9833echo "${ECHO_T}no" >&6
3a35eeb3 9834 fi
2429c060
PB
9835 elif test $build != $host && test $have_gcc_for_target = yes; then
9836 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9837 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9838 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9839 fi
9840fi
9a819804
AO
9841if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9842 # Extract the first word of "lipo", so it can be a program name with args.
9843set dummy lipo; ac_word=$2
9844echo "$as_me:$LINENO: checking for $ac_word" >&5
9845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9846if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9848else
9849 case $LIPO_FOR_TARGET in
9850 [\\/]* | ?:[\\/]*)
9851 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9852 ;;
9853 *)
9854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9855for as_dir in $gcc_cv_tool_dirs
9856do
9857 IFS=$as_save_IFS
9858 test -z "$as_dir" && as_dir=.
9859 for ac_exec_ext in '' $ac_executable_extensions; do
9860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9861 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9863 break 2
9864 fi
9865done
9866done
9867
9868 ;;
9869esac
9870fi
9871LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9872
9873if test -n "$LIPO_FOR_TARGET"; then
9874 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9875echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9876else
9877 echo "$as_me:$LINENO: result: no" >&5
9878echo "${ECHO_T}no" >&6
9879fi
9880
9881fi
9882if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9883
9884
9885if test -n "$LIPO_FOR_TARGET"; then
9886 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9887elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9888 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9889fi
9890
9891if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9892 for ncn_progname in lipo; do
9893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9894set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9895echo "$as_me:$LINENO: checking for $ac_word" >&5
9896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9897if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9898 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9899else
9a819804
AO
9900 if test -n "$LIPO_FOR_TARGET"; then
9901 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9902else
9903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9904for as_dir in $PATH
c6b750e1
DJ
9905do
9906 IFS=$as_save_IFS
9907 test -z "$as_dir" && as_dir=.
9908 for ac_exec_ext in '' $ac_executable_extensions; do
9909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9910 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9912 break 2
9913 fi
9914done
9915done
9916
2429c060 9917fi
9a819804
AO
9918fi
9919LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9920if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9921 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9922echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9923else
c6b750e1
DJ
9924 echo "$as_me:$LINENO: result: no" >&5
9925echo "${ECHO_T}no" >&6
2429c060
PB
9926fi
9927
9a819804 9928 done
2429c060 9929fi
9a819804
AO
9930
9931if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9932 for ncn_progname in lipo; do
c6b750e1
DJ
9933 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9934echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9935 if test -x $with_build_time_tools/${ncn_progname}; then
9936 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9937 echo "$as_me:$LINENO: result: yes" >&5
9938echo "${ECHO_T}yes" >&6
2429c060
PB
9939 break
9940 else
c6b750e1
DJ
9941 echo "$as_me:$LINENO: result: no" >&5
9942echo "${ECHO_T}no" >&6
2429c060
PB
9943 fi
9944 done
9945fi
9946
9947if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9948 for ncn_progname in lipo; do
9949 if test -n "$ncn_target_tool_prefix"; then
9950 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9951set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9952echo "$as_me:$LINENO: checking for $ac_word" >&5
9953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9954if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9956else
9957 if test -n "$LIPO_FOR_TARGET"; then
9958 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9959else
c6b750e1
DJ
9960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9961for as_dir in $PATH
9962do
9963 IFS=$as_save_IFS
9964 test -z "$as_dir" && as_dir=.
9965 for ac_exec_ext in '' $ac_executable_extensions; do
9966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9967 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9969 break 2
9970 fi
9971done
9972done
9973
2429c060
PB
9974fi
9975fi
c6b750e1 9976LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9977if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9978 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9979echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9980else
c6b750e1
DJ
9981 echo "$as_me:$LINENO: result: no" >&5
9982echo "${ECHO_T}no" >&6
2429c060
PB
9983fi
9984
9985 fi
9986 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9987 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9988set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9989echo "$as_me:$LINENO: checking for $ac_word" >&5
9990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9991if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9993else
9994 if test -n "$LIPO_FOR_TARGET"; then
9995 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9996else
c6b750e1
DJ
9997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9998for as_dir in $PATH
9999do
10000 IFS=$as_save_IFS
10001 test -z "$as_dir" && as_dir=.
10002 for ac_exec_ext in '' $ac_executable_extensions; do
10003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10004 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10006 break 2
10007 fi
10008done
10009done
10010
2429c060
PB
10011fi
10012fi
c6b750e1 10013LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10014if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
10015 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10016echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 10017else
c6b750e1
DJ
10018 echo "$as_me:$LINENO: result: no" >&5
10019echo "${ECHO_T}no" >&6
2429c060 10020fi
c6b750e1 10021
2429c060
PB
10022 fi
10023 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10024 done
10025fi
c6b750e1 10026
2429c060
PB
10027if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10028 set dummy lipo
10029 if test $build = $target ; then
10030 LIPO_FOR_TARGET="$2"
10031 else
10032 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10033 fi
d3f5afc4
MS
10034else
10035 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
10036fi
10037
3a35eeb3
PB
10038else
10039 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
10040fi
10041
10042
10043
10044
10045if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10046 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10047 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10048echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10049 if test -x $with_build_time_tools/nm; then
10050 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10051 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
10052 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10053echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 10054 else
c6b750e1
DJ
10055 echo "$as_me:$LINENO: result: no" >&5
10056echo "${ECHO_T}no" >&6
3a35eeb3 10057 fi
2429c060
PB
10058 elif test $build != $host && test $have_gcc_for_target = yes; then
10059 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
10060 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10061 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
10062 fi
10063fi
c6b750e1 10064if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10065 # Extract the first word of "nm", so it can be a program name with args.
10066set dummy nm; ac_word=$2
c6b750e1
DJ
10067echo "$as_me:$LINENO: checking for $ac_word" >&5
10068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10069if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10071else
c6b750e1
DJ
10072 case $NM_FOR_TARGET in
10073 [\\/]* | ?:[\\/]*)
2429c060
PB
10074 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10075 ;;
2429c060 10076 *)
c6b750e1
DJ
10077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10078for as_dir in $gcc_cv_tool_dirs
10079do
10080 IFS=$as_save_IFS
10081 test -z "$as_dir" && as_dir=.
10082 for ac_exec_ext in '' $ac_executable_extensions; do
10083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10084 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10086 break 2
10087 fi
10088done
10089done
10090
2429c060
PB
10091 ;;
10092esac
10093fi
c6b750e1
DJ
10094NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10095
2429c060 10096if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10097 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10098echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 10099else
c6b750e1
DJ
10100 echo "$as_me:$LINENO: result: no" >&5
10101echo "${ECHO_T}no" >&6
2429c060
PB
10102fi
10103
10104fi
10105if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
10106
10107
10108if test -n "$NM_FOR_TARGET"; then
10109 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10110elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10111 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10112fi
10113
10114if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10115 for ncn_progname in nm; do
10116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10117set dummy ${ncn_progname}; ac_word=$2
10118echo "$as_me:$LINENO: checking for $ac_word" >&5
10119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10120if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10121 echo $ECHO_N "(cached) $ECHO_C" >&6
10122else
10123 if test -n "$NM_FOR_TARGET"; then
10124 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10125else
10126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10127for as_dir in $PATH
10128do
10129 IFS=$as_save_IFS
10130 test -z "$as_dir" && as_dir=.
10131 for ac_exec_ext in '' $ac_executable_extensions; do
10132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10133 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10135 break 2
10136 fi
10137done
10138done
10139
10140fi
10141fi
10142NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10143if test -n "$NM_FOR_TARGET"; then
10144 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10145echo "${ECHO_T}$NM_FOR_TARGET" >&6
10146else
10147 echo "$as_me:$LINENO: result: no" >&5
10148echo "${ECHO_T}no" >&6
10149fi
10150
10151 done
10152fi
10153
10154if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10155 for ncn_progname in nm; do
c6b750e1
DJ
10156 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10157echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10158 if test -x $with_build_time_tools/${ncn_progname}; then
10159 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10160 echo "$as_me:$LINENO: result: yes" >&5
10161echo "${ECHO_T}yes" >&6
2429c060
PB
10162 break
10163 else
c6b750e1
DJ
10164 echo "$as_me:$LINENO: result: no" >&5
10165echo "${ECHO_T}no" >&6
2429c060
PB
10166 fi
10167 done
10168fi
10169
10170if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10171 for ncn_progname in nm; do
10172 if test -n "$ncn_target_tool_prefix"; then
10173 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10174set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10175echo "$as_me:$LINENO: checking for $ac_word" >&5
10176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10177if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10179else
55db4b87
PB
10180 if test -n "$NM_FOR_TARGET"; then
10181 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10182else
c6b750e1
DJ
10183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10184for as_dir in $PATH
10185do
10186 IFS=$as_save_IFS
10187 test -z "$as_dir" && as_dir=.
10188 for ac_exec_ext in '' $ac_executable_extensions; do
10189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10190 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10192 break 2
10193 fi
10194done
10195done
10196
859789af
AC
10197fi
10198fi
c6b750e1 10199NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 10200if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10201 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10202echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10203else
c6b750e1
DJ
10204 echo "$as_me:$LINENO: result: no" >&5
10205echo "${ECHO_T}no" >&6
859789af
AC
10206fi
10207
2429c060
PB
10208 fi
10209 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10210 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10211set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10212echo "$as_me:$LINENO: checking for $ac_word" >&5
10213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10214if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10216else
05cbd757
PB
10217 if test -n "$NM_FOR_TARGET"; then
10218 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10219else
c6b750e1
DJ
10220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10221for as_dir in $PATH
10222do
10223 IFS=$as_save_IFS
10224 test -z "$as_dir" && as_dir=.
10225 for ac_exec_ext in '' $ac_executable_extensions; do
10226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10227 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10229 break 2
10230 fi
10231done
10232done
10233
859789af
AC
10234fi
10235fi
c6b750e1 10236NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10237if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10238 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10239echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10240else
c6b750e1
DJ
10241 echo "$as_me:$LINENO: result: no" >&5
10242echo "${ECHO_T}no" >&6
859789af 10243fi
c6b750e1 10244
2429c060
PB
10245 fi
10246 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10247 done
10248fi
c6b750e1 10249
05cbd757
PB
10250if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10251 set dummy nm
10252 if test $build = $target ; then
10253 NM_FOR_TARGET="$2"
859789af 10254 else
05cbd757 10255 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10256 fi
d3f5afc4
MS
10257else
10258 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10259fi
10260
3a35eeb3
PB
10261else
10262 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10263fi
10264
10265
10266
10267
10268if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10269 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10270 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10271echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10272 if test -x $with_build_time_tools/objdump; then
10273 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10274 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10275 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10276echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10277 else
c6b750e1
DJ
10278 echo "$as_me:$LINENO: result: no" >&5
10279echo "${ECHO_T}no" >&6
3a35eeb3 10280 fi
2429c060
PB
10281 elif test $build != $host && test $have_gcc_for_target = yes; then
10282 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10283 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10284 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10285 fi
10286fi
c6b750e1 10287if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10288 # Extract the first word of "objdump", so it can be a program name with args.
10289set dummy objdump; ac_word=$2
c6b750e1
DJ
10290echo "$as_me:$LINENO: checking for $ac_word" >&5
10291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10292if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10294else
c6b750e1
DJ
10295 case $OBJDUMP_FOR_TARGET in
10296 [\\/]* | ?:[\\/]*)
2429c060
PB
10297 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10298 ;;
2429c060 10299 *)
c6b750e1
DJ
10300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10301for as_dir in $gcc_cv_tool_dirs
10302do
10303 IFS=$as_save_IFS
10304 test -z "$as_dir" && as_dir=.
10305 for ac_exec_ext in '' $ac_executable_extensions; do
10306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10307 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10309 break 2
10310 fi
10311done
10312done
10313
2429c060
PB
10314 ;;
10315esac
10316fi
c6b750e1
DJ
10317OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10318
2429c060 10319if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10320 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10321echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10322else
c6b750e1
DJ
10323 echo "$as_me:$LINENO: result: no" >&5
10324echo "${ECHO_T}no" >&6
2429c060
PB
10325fi
10326
10327fi
10328if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10329
10330
10331if test -n "$OBJDUMP_FOR_TARGET"; then
10332 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10333elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10334 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10335fi
10336
10337if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10338 for ncn_progname in objdump; do
10339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10340set dummy ${ncn_progname}; ac_word=$2
10341echo "$as_me:$LINENO: checking for $ac_word" >&5
10342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10343if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10345else
10346 if test -n "$OBJDUMP_FOR_TARGET"; then
10347 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10348else
10349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350for as_dir in $PATH
10351do
10352 IFS=$as_save_IFS
10353 test -z "$as_dir" && as_dir=.
10354 for ac_exec_ext in '' $ac_executable_extensions; do
10355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10356 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10358 break 2
10359 fi
10360done
10361done
10362
10363fi
10364fi
10365OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10366if test -n "$OBJDUMP_FOR_TARGET"; then
10367 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10368echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10369else
10370 echo "$as_me:$LINENO: result: no" >&5
10371echo "${ECHO_T}no" >&6
10372fi
10373
10374 done
10375fi
10376
10377if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10378 for ncn_progname in objdump; do
c6b750e1
DJ
10379 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10380echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10381 if test -x $with_build_time_tools/${ncn_progname}; then
10382 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10383 echo "$as_me:$LINENO: result: yes" >&5
10384echo "${ECHO_T}yes" >&6
2429c060
PB
10385 break
10386 else
c6b750e1
DJ
10387 echo "$as_me:$LINENO: result: no" >&5
10388echo "${ECHO_T}no" >&6
2429c060
PB
10389 fi
10390 done
10391fi
10392
10393if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10394 for ncn_progname in objdump; do
10395 if test -n "$ncn_target_tool_prefix"; then
10396 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10397set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10398echo "$as_me:$LINENO: checking for $ac_word" >&5
10399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10400if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10402else
10403 if test -n "$OBJDUMP_FOR_TARGET"; then
10404 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10405else
c6b750e1
DJ
10406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10407for as_dir in $PATH
10408do
10409 IFS=$as_save_IFS
10410 test -z "$as_dir" && as_dir=.
10411 for ac_exec_ext in '' $ac_executable_extensions; do
10412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10413 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10415 break 2
10416 fi
10417done
10418done
10419
5ae72758
DJ
10420fi
10421fi
c6b750e1 10422OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10423if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10424 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10425echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10426else
c6b750e1
DJ
10427 echo "$as_me:$LINENO: result: no" >&5
10428echo "${ECHO_T}no" >&6
5ae72758
DJ
10429fi
10430
2429c060
PB
10431 fi
10432 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10434set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10435echo "$as_me:$LINENO: checking for $ac_word" >&5
10436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10437if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10439else
10440 if test -n "$OBJDUMP_FOR_TARGET"; then
10441 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10442else
c6b750e1
DJ
10443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10444for as_dir in $PATH
10445do
10446 IFS=$as_save_IFS
10447 test -z "$as_dir" && as_dir=.
10448 for ac_exec_ext in '' $ac_executable_extensions; do
10449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10450 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10452 break 2
10453 fi
10454done
10455done
10456
5ae72758
DJ
10457fi
10458fi
c6b750e1 10459OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10460if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10461 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10462echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10463else
c6b750e1
DJ
10464 echo "$as_me:$LINENO: result: no" >&5
10465echo "${ECHO_T}no" >&6
5ae72758 10466fi
c6b750e1 10467
2429c060
PB
10468 fi
10469 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10470 done
10471fi
c6b750e1 10472
5ae72758
DJ
10473if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10474 set dummy objdump
10475 if test $build = $target ; then
10476 OBJDUMP_FOR_TARGET="$2"
10477 else
10478 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10479 fi
d3f5afc4
MS
10480else
10481 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10482fi
10483
3a35eeb3
PB
10484else
10485 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10486fi
10487
10488
10489
10490
10491if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10492 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10493 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10494echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10495 if test -x $with_build_time_tools/ranlib; then
10496 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10497 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10498 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10499echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10500 else
c6b750e1
DJ
10501 echo "$as_me:$LINENO: result: no" >&5
10502echo "${ECHO_T}no" >&6
3a35eeb3 10503 fi
2429c060
PB
10504 elif test $build != $host && test $have_gcc_for_target = yes; then
10505 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10506 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10507 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10508 fi
10509fi
c6b750e1 10510if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10511 # Extract the first word of "ranlib", so it can be a program name with args.
10512set dummy ranlib; ac_word=$2
c6b750e1
DJ
10513echo "$as_me:$LINENO: checking for $ac_word" >&5
10514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10515if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10517else
c6b750e1
DJ
10518 case $RANLIB_FOR_TARGET in
10519 [\\/]* | ?:[\\/]*)
2429c060
PB
10520 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10521 ;;
2429c060 10522 *)
c6b750e1
DJ
10523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10524for as_dir in $gcc_cv_tool_dirs
10525do
10526 IFS=$as_save_IFS
10527 test -z "$as_dir" && as_dir=.
10528 for ac_exec_ext in '' $ac_executable_extensions; do
10529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10530 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10532 break 2
10533 fi
10534done
10535done
10536
2429c060
PB
10537 ;;
10538esac
10539fi
c6b750e1
DJ
10540RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10541
2429c060 10542if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10543 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10544echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10545else
c6b750e1
DJ
10546 echo "$as_me:$LINENO: result: no" >&5
10547echo "${ECHO_T}no" >&6
2429c060
PB
10548fi
10549
10550fi
10551if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10552
10553
10554if test -n "$RANLIB_FOR_TARGET"; then
10555 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10556elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10557 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10558fi
10559
10560if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10561 for ncn_progname in ranlib; do
10562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10563set dummy ${ncn_progname}; ac_word=$2
10564echo "$as_me:$LINENO: checking for $ac_word" >&5
10565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10566if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10568else
10569 if test -n "$RANLIB_FOR_TARGET"; then
10570 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10571else
10572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10573for as_dir in $PATH
10574do
10575 IFS=$as_save_IFS
10576 test -z "$as_dir" && as_dir=.
10577 for ac_exec_ext in '' $ac_executable_extensions; do
10578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10579 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10581 break 2
10582 fi
10583done
10584done
10585
10586fi
10587fi
10588RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10589if test -n "$RANLIB_FOR_TARGET"; then
10590 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10591echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10592else
10593 echo "$as_me:$LINENO: result: no" >&5
10594echo "${ECHO_T}no" >&6
10595fi
10596
10597 done
10598fi
10599
10600if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10601 for ncn_progname in ranlib; do
c6b750e1
DJ
10602 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10603echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10604 if test -x $with_build_time_tools/${ncn_progname}; then
10605 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10606 echo "$as_me:$LINENO: result: yes" >&5
10607echo "${ECHO_T}yes" >&6
2429c060
PB
10608 break
10609 else
c6b750e1
DJ
10610 echo "$as_me:$LINENO: result: no" >&5
10611echo "${ECHO_T}no" >&6
2429c060
PB
10612 fi
10613 done
10614fi
10615
10616if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10617 for ncn_progname in ranlib; do
10618 if test -n "$ncn_target_tool_prefix"; then
10619 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10620set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10621echo "$as_me:$LINENO: checking for $ac_word" >&5
10622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10623if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10625else
55db4b87
PB
10626 if test -n "$RANLIB_FOR_TARGET"; then
10627 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10628else
c6b750e1
DJ
10629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10630for as_dir in $PATH
10631do
10632 IFS=$as_save_IFS
10633 test -z "$as_dir" && as_dir=.
10634 for ac_exec_ext in '' $ac_executable_extensions; do
10635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10636 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10638 break 2
10639 fi
10640done
10641done
10642
859789af
AC
10643fi
10644fi
c6b750e1 10645RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10646if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10647 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10648echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10649else
c6b750e1
DJ
10650 echo "$as_me:$LINENO: result: no" >&5
10651echo "${ECHO_T}no" >&6
859789af
AC
10652fi
10653
2429c060
PB
10654 fi
10655 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10657set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10658echo "$as_me:$LINENO: checking for $ac_word" >&5
10659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10660if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10662else
05cbd757
PB
10663 if test -n "$RANLIB_FOR_TARGET"; then
10664 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10665else
c6b750e1
DJ
10666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10667for as_dir in $PATH
10668do
10669 IFS=$as_save_IFS
10670 test -z "$as_dir" && as_dir=.
10671 for ac_exec_ext in '' $ac_executable_extensions; do
10672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10673 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10675 break 2
10676 fi
10677done
10678done
10679
859789af
AC
10680fi
10681fi
c6b750e1 10682RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10683if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10684 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10685echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10686else
c6b750e1
DJ
10687 echo "$as_me:$LINENO: result: no" >&5
10688echo "${ECHO_T}no" >&6
859789af 10689fi
c6b750e1 10690
2429c060
PB
10691 fi
10692 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10693 done
10694fi
c6b750e1 10695
2429c060
PB
10696if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10697 set dummy ranlib
10698 if test $build = $target ; then
10699 RANLIB_FOR_TARGET="$2"
10700 else
10701 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10702 fi
d3f5afc4
MS
10703else
10704 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10705fi
05cbd757 10706
3a35eeb3
PB
10707else
10708 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10709fi
10710
2429c060
PB
10711
10712
10713
10714if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10715 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10716 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10717echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10718 if test -x $with_build_time_tools/strip; then
10719 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10720 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10721 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10722echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10723 else
c6b750e1
DJ
10724 echo "$as_me:$LINENO: result: no" >&5
10725echo "${ECHO_T}no" >&6
3a35eeb3 10726 fi
2429c060
PB
10727 elif test $build != $host && test $have_gcc_for_target = yes; then
10728 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10729 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10730 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10731 fi
10732fi
c6b750e1 10733if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10734 # Extract the first word of "strip", so it can be a program name with args.
10735set dummy strip; ac_word=$2
c6b750e1
DJ
10736echo "$as_me:$LINENO: checking for $ac_word" >&5
10737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10738if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10740else
c6b750e1
DJ
10741 case $STRIP_FOR_TARGET in
10742 [\\/]* | ?:[\\/]*)
2429c060
PB
10743 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10744 ;;
2429c060 10745 *)
c6b750e1
DJ
10746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10747for as_dir in $gcc_cv_tool_dirs
10748do
10749 IFS=$as_save_IFS
10750 test -z "$as_dir" && as_dir=.
10751 for ac_exec_ext in '' $ac_executable_extensions; do
10752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10753 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10755 break 2
10756 fi
10757done
10758done
10759
2429c060
PB
10760 ;;
10761esac
10762fi
c6b750e1
DJ
10763STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10764
2429c060 10765if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10766 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10767echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10768else
c6b750e1
DJ
10769 echo "$as_me:$LINENO: result: no" >&5
10770echo "${ECHO_T}no" >&6
2429c060
PB
10771fi
10772
10773fi
10774if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10775
10776
10777if test -n "$STRIP_FOR_TARGET"; then
10778 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10779elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10780 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10781fi
10782
10783if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10784 for ncn_progname in strip; do
10785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10786set dummy ${ncn_progname}; ac_word=$2
10787echo "$as_me:$LINENO: checking for $ac_word" >&5
10788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10789if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10791else
10792 if test -n "$STRIP_FOR_TARGET"; then
10793 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10794else
10795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796for as_dir in $PATH
10797do
10798 IFS=$as_save_IFS
10799 test -z "$as_dir" && as_dir=.
10800 for ac_exec_ext in '' $ac_executable_extensions; do
10801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10802 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10804 break 2
10805 fi
10806done
10807done
10808
10809fi
10810fi
10811STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10812if test -n "$STRIP_FOR_TARGET"; then
10813 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10814echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10815else
10816 echo "$as_me:$LINENO: result: no" >&5
10817echo "${ECHO_T}no" >&6
10818fi
10819
10820 done
10821fi
10822
10823if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10824 for ncn_progname in strip; do
c6b750e1
DJ
10825 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10826echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10827 if test -x $with_build_time_tools/${ncn_progname}; then
10828 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10829 echo "$as_me:$LINENO: result: yes" >&5
10830echo "${ECHO_T}yes" >&6
2429c060
PB
10831 break
10832 else
c6b750e1
DJ
10833 echo "$as_me:$LINENO: result: no" >&5
10834echo "${ECHO_T}no" >&6
2429c060
PB
10835 fi
10836 done
10837fi
10838
10839if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10840 for ncn_progname in strip; do
10841 if test -n "$ncn_target_tool_prefix"; then
10842 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10843set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10844echo "$as_me:$LINENO: checking for $ac_word" >&5
10845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10846if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10848else
10849 if test -n "$STRIP_FOR_TARGET"; then
10850 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10851else
10852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10853for as_dir in $PATH
10854do
10855 IFS=$as_save_IFS
10856 test -z "$as_dir" && as_dir=.
10857 for ac_exec_ext in '' $ac_executable_extensions; do
10858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10859 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10861 break 2
10862 fi
10863done
10864done
10865
7e0f7140
GK
10866fi
10867fi
c6b750e1 10868STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10869if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10870 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10871echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10872else
c6b750e1
DJ
10873 echo "$as_me:$LINENO: result: no" >&5
10874echo "${ECHO_T}no" >&6
7e0f7140
GK
10875fi
10876
2429c060
PB
10877 fi
10878 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10879 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10880set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10881echo "$as_me:$LINENO: checking for $ac_word" >&5
10882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10883if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10884 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10885else
10886 if test -n "$STRIP_FOR_TARGET"; then
10887 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10888else
c6b750e1
DJ
10889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10890for as_dir in $PATH
10891do
10892 IFS=$as_save_IFS
10893 test -z "$as_dir" && as_dir=.
10894 for ac_exec_ext in '' $ac_executable_extensions; do
10895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10896 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10898 break 2
10899 fi
10900done
10901done
10902
7e0f7140
GK
10903fi
10904fi
c6b750e1 10905STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10906if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10907 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10908echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10909else
c6b750e1
DJ
10910 echo "$as_me:$LINENO: result: no" >&5
10911echo "${ECHO_T}no" >&6
7e0f7140 10912fi
c6b750e1 10913
2429c060
PB
10914 fi
10915 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10916 done
10917fi
c6b750e1 10918
7e0f7140
GK
10919if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10920 set dummy strip
10921 if test $build = $target ; then
10922 STRIP_FOR_TARGET="$2"
10923 else
10924 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10925 fi
d3f5afc4
MS
10926else
10927 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10928fi
10929
3a35eeb3
PB
10930else
10931 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10932fi
10933
10934
10935
10936
10937if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10938 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10939 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10940echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10941 if test -x $with_build_time_tools/windres; then
10942 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10943 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10944 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10945echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10946 else
c6b750e1
DJ
10947 echo "$as_me:$LINENO: result: no" >&5
10948echo "${ECHO_T}no" >&6
3a35eeb3 10949 fi
2429c060
PB
10950 elif test $build != $host && test $have_gcc_for_target = yes; then
10951 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10952 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10953 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10954 fi
10955fi
c6b750e1 10956if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10957 # Extract the first word of "windres", so it can be a program name with args.
10958set dummy windres; ac_word=$2
c6b750e1
DJ
10959echo "$as_me:$LINENO: checking for $ac_word" >&5
10960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10961if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10963else
c6b750e1
DJ
10964 case $WINDRES_FOR_TARGET in
10965 [\\/]* | ?:[\\/]*)
2429c060
PB
10966 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10967 ;;
2429c060 10968 *)
c6b750e1
DJ
10969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10970for as_dir in $gcc_cv_tool_dirs
10971do
10972 IFS=$as_save_IFS
10973 test -z "$as_dir" && as_dir=.
10974 for ac_exec_ext in '' $ac_executable_extensions; do
10975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10976 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10978 break 2
10979 fi
10980done
10981done
10982
2429c060
PB
10983 ;;
10984esac
10985fi
c6b750e1
DJ
10986WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10987
2429c060 10988if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10989 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10990echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10991else
c6b750e1
DJ
10992 echo "$as_me:$LINENO: result: no" >&5
10993echo "${ECHO_T}no" >&6
2429c060
PB
10994fi
10995
10996fi
10997if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10998
10999
11000if test -n "$WINDRES_FOR_TARGET"; then
11001 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11002elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11003 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11004fi
11005
11006if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11007 for ncn_progname in windres; do
11008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11009set dummy ${ncn_progname}; ac_word=$2
11010echo "$as_me:$LINENO: checking for $ac_word" >&5
11011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11012if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11014else
11015 if test -n "$WINDRES_FOR_TARGET"; then
11016 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11017else
11018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11019for as_dir in $PATH
11020do
11021 IFS=$as_save_IFS
11022 test -z "$as_dir" && as_dir=.
11023 for ac_exec_ext in '' $ac_executable_extensions; do
11024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11025 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11027 break 2
11028 fi
11029done
11030done
11031
11032fi
11033fi
11034WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11035if test -n "$WINDRES_FOR_TARGET"; then
11036 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11037echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11038else
11039 echo "$as_me:$LINENO: result: no" >&5
11040echo "${ECHO_T}no" >&6
11041fi
11042
11043 done
11044fi
11045
11046if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11047 for ncn_progname in windres; do
c6b750e1
DJ
11048 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11049echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11050 if test -x $with_build_time_tools/${ncn_progname}; then
11051 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11052 echo "$as_me:$LINENO: result: yes" >&5
11053echo "${ECHO_T}yes" >&6
2429c060
PB
11054 break
11055 else
c6b750e1
DJ
11056 echo "$as_me:$LINENO: result: no" >&5
11057echo "${ECHO_T}no" >&6
2429c060
PB
11058 fi
11059 done
11060fi
11061
11062if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11063 for ncn_progname in windres; do
11064 if test -n "$ncn_target_tool_prefix"; then
11065 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11066set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11067echo "$as_me:$LINENO: checking for $ac_word" >&5
11068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11069if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11071else
55db4b87
PB
11072 if test -n "$WINDRES_FOR_TARGET"; then
11073 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11074else
c6b750e1
DJ
11075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076for as_dir in $PATH
11077do
11078 IFS=$as_save_IFS
11079 test -z "$as_dir" && as_dir=.
11080 for ac_exec_ext in '' $ac_executable_extensions; do
11081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11082 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11084 break 2
11085 fi
11086done
11087done
11088
859789af
AC
11089fi
11090fi
c6b750e1 11091WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 11092if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11093 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11094echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11095else
c6b750e1
DJ
11096 echo "$as_me:$LINENO: result: no" >&5
11097echo "${ECHO_T}no" >&6
859789af
AC
11098fi
11099
2429c060
PB
11100 fi
11101 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11102 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11103set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11104echo "$as_me:$LINENO: checking for $ac_word" >&5
11105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11106if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11107 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11108else
05cbd757
PB
11109 if test -n "$WINDRES_FOR_TARGET"; then
11110 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11111else
c6b750e1
DJ
11112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11113for as_dir in $PATH
11114do
11115 IFS=$as_save_IFS
11116 test -z "$as_dir" && as_dir=.
11117 for ac_exec_ext in '' $ac_executable_extensions; do
11118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11119 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11121 break 2
11122 fi
11123done
11124done
11125
859789af
AC
11126fi
11127fi
c6b750e1 11128WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 11129if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11130 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11131echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11132else
c6b750e1
DJ
11133 echo "$as_me:$LINENO: result: no" >&5
11134echo "${ECHO_T}no" >&6
859789af 11135fi
c6b750e1 11136
2429c060
PB
11137 fi
11138 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11139 done
11140fi
c6b750e1 11141
05cbd757
PB
11142if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11143 set dummy windres
11144 if test $build = $target ; then
11145 WINDRES_FOR_TARGET="$2"
859789af 11146 else
05cbd757 11147 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11148 fi
d3f5afc4
MS
11149else
11150 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
11151fi
11152
3a35eeb3
PB
11153else
11154 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
11155fi
11156
852e5f18 11157
0c24b341
NC
11158
11159
11160if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11161 if test -n "$with_build_time_tools"; then
11162 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11163echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11164 if test -x $with_build_time_tools/windmc; then
11165 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11166 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11167 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11168echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11169 else
11170 echo "$as_me:$LINENO: result: no" >&5
11171echo "${ECHO_T}no" >&6
11172 fi
11173 elif test $build != $host && test $have_gcc_for_target = yes; then
11174 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11175 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11176 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11177 fi
11178fi
11179if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11180 # Extract the first word of "windmc", so it can be a program name with args.
11181set dummy windmc; ac_word=$2
11182echo "$as_me:$LINENO: checking for $ac_word" >&5
11183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11184if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11185 echo $ECHO_N "(cached) $ECHO_C" >&6
11186else
11187 case $WINDMC_FOR_TARGET in
11188 [\\/]* | ?:[\\/]*)
11189 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11190 ;;
11191 *)
11192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193for as_dir in $gcc_cv_tool_dirs
11194do
11195 IFS=$as_save_IFS
11196 test -z "$as_dir" && as_dir=.
11197 for ac_exec_ext in '' $ac_executable_extensions; do
11198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11199 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11201 break 2
11202 fi
11203done
11204done
11205
11206 ;;
11207esac
11208fi
11209WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11210
11211if test -n "$WINDMC_FOR_TARGET"; then
11212 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11213echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11214else
11215 echo "$as_me:$LINENO: result: no" >&5
11216echo "${ECHO_T}no" >&6
11217fi
11218
11219fi
11220if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11221
11222
11223if test -n "$WINDMC_FOR_TARGET"; then
11224 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11225elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11226 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11227fi
11228
11229if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11230 for ncn_progname in windmc; do
11231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11232set dummy ${ncn_progname}; ac_word=$2
11233echo "$as_me:$LINENO: checking for $ac_word" >&5
11234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11235if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11237else
11238 if test -n "$WINDMC_FOR_TARGET"; then
11239 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11240else
11241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11242for as_dir in $PATH
11243do
11244 IFS=$as_save_IFS
11245 test -z "$as_dir" && as_dir=.
11246 for ac_exec_ext in '' $ac_executable_extensions; do
11247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11248 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11250 break 2
11251 fi
11252done
11253done
11254
11255fi
11256fi
11257WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11258if test -n "$WINDMC_FOR_TARGET"; then
11259 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11260echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11261else
11262 echo "$as_me:$LINENO: result: no" >&5
11263echo "${ECHO_T}no" >&6
11264fi
11265
11266 done
11267fi
11268
11269if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11270 for ncn_progname in windmc; do
11271 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11272echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11273 if test -x $with_build_time_tools/${ncn_progname}; then
11274 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11275 echo "$as_me:$LINENO: result: yes" >&5
11276echo "${ECHO_T}yes" >&6
11277 break
11278 else
11279 echo "$as_me:$LINENO: result: no" >&5
11280echo "${ECHO_T}no" >&6
11281 fi
11282 done
11283fi
11284
11285if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11286 for ncn_progname in windmc; do
11287 if test -n "$ncn_target_tool_prefix"; then
11288 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11289set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11290echo "$as_me:$LINENO: checking for $ac_word" >&5
11291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11292if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11293 echo $ECHO_N "(cached) $ECHO_C" >&6
11294else
11295 if test -n "$WINDMC_FOR_TARGET"; then
11296 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11297else
11298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11299for as_dir in $PATH
11300do
11301 IFS=$as_save_IFS
11302 test -z "$as_dir" && as_dir=.
11303 for ac_exec_ext in '' $ac_executable_extensions; do
11304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11305 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11307 break 2
11308 fi
11309done
11310done
11311
11312fi
11313fi
11314WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11315if test -n "$WINDMC_FOR_TARGET"; then
11316 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11317echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11318else
11319 echo "$as_me:$LINENO: result: no" >&5
11320echo "${ECHO_T}no" >&6
11321fi
11322
11323 fi
11324 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11326set dummy ${ncn_progname}; ac_word=$2
11327echo "$as_me:$LINENO: checking for $ac_word" >&5
11328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11329if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11331else
11332 if test -n "$WINDMC_FOR_TARGET"; then
11333 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11334else
11335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11336for as_dir in $PATH
11337do
11338 IFS=$as_save_IFS
11339 test -z "$as_dir" && as_dir=.
11340 for ac_exec_ext in '' $ac_executable_extensions; do
11341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11342 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11344 break 2
11345 fi
11346done
11347done
11348
11349fi
11350fi
11351WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11352if test -n "$WINDMC_FOR_TARGET"; then
11353 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11354echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11355else
11356 echo "$as_me:$LINENO: result: no" >&5
11357echo "${ECHO_T}no" >&6
11358fi
11359
11360 fi
11361 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11362 done
11363fi
11364
11365if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11366 set dummy windmc
11367 if test $build = $target ; then
11368 WINDMC_FOR_TARGET="$2"
11369 else
11370 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11371 fi
11372else
11373 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11374fi
11375
11376else
11377 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11378fi
11379
11380
be01d343
PB
11381RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11382
c6b750e1
DJ
11383echo "$as_me:$LINENO: checking where to find the target ar" >&5
11384echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11385if test "x${build}" != "x${host}" ; then
2429c060
PB
11386 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11387 # We already found the complete path
b8025f34
AS
11388 ac_dir=`dirname $AR_FOR_TARGET`
11389 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11390echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11391 else
11392 # Canadian cross, just use what we found
c6b750e1
DJ
11393 echo "$as_me:$LINENO: result: pre-installed" >&5
11394echo "${ECHO_T}pre-installed" >&6
2429c060 11395 fi
be01d343
PB
11396else
11397 ok=yes
11398 case " ${configdirs} " in
11399 *" binutils "*) ;;
11400 *) ok=no ;;
11401 esac
c6b750e1 11402
be01d343
PB
11403 if test $ok = yes; then
11404 # An in-tree tool is available and we can use it
11405 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11406 echo "$as_me:$LINENO: result: just compiled" >&5
11407echo "${ECHO_T}just compiled" >&6
2429c060
PB
11408 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11409 # We already found the complete path
b8025f34
AS
11410 ac_dir=`dirname $AR_FOR_TARGET`
11411 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11412echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11413 elif test "x$target" = "x$host"; then
11414 # We can use an host tool
11415 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11416 echo "$as_me:$LINENO: result: host tool" >&5
11417echo "${ECHO_T}host tool" >&6
be01d343
PB
11418 else
11419 # We need a cross tool
c6b750e1
DJ
11420 echo "$as_me:$LINENO: result: pre-installed" >&5
11421echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11422 fi
11423fi
4b900473 11424
c6b750e1
DJ
11425echo "$as_me:$LINENO: checking where to find the target as" >&5
11426echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11427if test "x${build}" != "x${host}" ; then
2429c060
PB
11428 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11429 # We already found the complete path
b8025f34
AS
11430 ac_dir=`dirname $AS_FOR_TARGET`
11431 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11432echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11433 else
11434 # Canadian cross, just use what we found
c6b750e1
DJ
11435 echo "$as_me:$LINENO: result: pre-installed" >&5
11436echo "${ECHO_T}pre-installed" >&6
2429c060 11437 fi
be01d343
PB
11438else
11439 ok=yes
11440 case " ${configdirs} " in
11441 *" gas "*) ;;
11442 *) ok=no ;;
11443 esac
c6b750e1 11444
be01d343
PB
11445 if test $ok = yes; then
11446 # An in-tree tool is available and we can use it
11447 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11448 echo "$as_me:$LINENO: result: just compiled" >&5
11449echo "${ECHO_T}just compiled" >&6
2429c060
PB
11450 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11451 # We already found the complete path
b8025f34
AS
11452 ac_dir=`dirname $AS_FOR_TARGET`
11453 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11454echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11455 elif test "x$target" = "x$host"; then
11456 # We can use an host tool
11457 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11458 echo "$as_me:$LINENO: result: host tool" >&5
11459echo "${ECHO_T}host tool" >&6
be01d343
PB
11460 else
11461 # We need a cross tool
c6b750e1
DJ
11462 echo "$as_me:$LINENO: result: pre-installed" >&5
11463echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11464 fi
11465fi
4b900473 11466
c6b750e1
DJ
11467echo "$as_me:$LINENO: checking where to find the target cc" >&5
11468echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11469if test "x${build}" != "x${host}" ; then
2429c060
PB
11470 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11471 # We already found the complete path
b8025f34
AS
11472 ac_dir=`dirname $CC_FOR_TARGET`
11473 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11474echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11475 else
11476 # Canadian cross, just use what we found
c6b750e1
DJ
11477 echo "$as_me:$LINENO: result: pre-installed" >&5
11478echo "${ECHO_T}pre-installed" >&6
2429c060 11479 fi
be01d343
PB
11480else
11481 ok=yes
11482 case " ${configdirs} " in
11483 *" gcc "*) ;;
11484 *) ok=no ;;
11485 esac
c6b750e1 11486
be01d343
PB
11487 if test $ok = yes; then
11488 # An in-tree tool is available and we can use it
11489 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11490 echo "$as_me:$LINENO: result: just compiled" >&5
11491echo "${ECHO_T}just compiled" >&6
2429c060
PB
11492 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11493 # We already found the complete path
b8025f34
AS
11494 ac_dir=`dirname $CC_FOR_TARGET`
11495 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11496echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11497 elif test "x$target" = "x$host"; then
11498 # We can use an host tool
11499 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11500 echo "$as_me:$LINENO: result: host tool" >&5
11501echo "${ECHO_T}host tool" >&6
be01d343
PB
11502 else
11503 # We need a cross tool
c6b750e1
DJ
11504 echo "$as_me:$LINENO: result: pre-installed" >&5
11505echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11506 fi
11507fi
4b900473 11508
c6b750e1
DJ
11509echo "$as_me:$LINENO: checking where to find the target c++" >&5
11510echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11511if test "x${build}" != "x${host}" ; then
2429c060
PB
11512 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11513 # We already found the complete path
b8025f34
AS
11514 ac_dir=`dirname $CXX_FOR_TARGET`
11515 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11516echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11517 else
11518 # Canadian cross, just use what we found
c6b750e1
DJ
11519 echo "$as_me:$LINENO: result: pre-installed" >&5
11520echo "${ECHO_T}pre-installed" >&6
2429c060 11521 fi
be01d343
PB
11522else
11523 ok=yes
11524 case " ${configdirs} " in
11525 *" gcc "*) ;;
11526 *) ok=no ;;
11527 esac
11528 case ,${enable_languages}, in
11529 *,c++,*) ;;
11530 *) ok=no ;;
11531 esac
11532 if test $ok = yes; then
11533 # An in-tree tool is available and we can use it
11534 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
11535 echo "$as_me:$LINENO: result: just compiled" >&5
11536echo "${ECHO_T}just compiled" >&6
2429c060
PB
11537 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11538 # We already found the complete path
b8025f34
AS
11539 ac_dir=`dirname $CXX_FOR_TARGET`
11540 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11541echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11542 elif test "x$target" = "x$host"; then
11543 # We can use an host tool
11544 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11545 echo "$as_me:$LINENO: result: host tool" >&5
11546echo "${ECHO_T}host tool" >&6
be01d343
PB
11547 else
11548 # We need a cross tool
c6b750e1
DJ
11549 echo "$as_me:$LINENO: result: pre-installed" >&5
11550echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11551 fi
11552fi
4b900473 11553
c6b750e1
DJ
11554echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11555echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11556if test "x${build}" != "x${host}" ; then
2429c060
PB
11557 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11558 # We already found the complete path
b8025f34
AS
11559 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11560 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11561echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11562 else
11563 # Canadian cross, just use what we found
c6b750e1
DJ
11564 echo "$as_me:$LINENO: result: pre-installed" >&5
11565echo "${ECHO_T}pre-installed" >&6
2429c060 11566 fi
be01d343
PB
11567else
11568 ok=yes
11569 case " ${configdirs} " in
11570 *" gcc "*) ;;
11571 *) ok=no ;;
11572 esac
11573 case ,${enable_languages}, in
11574 *,c++,*) ;;
11575 *) ok=no ;;
11576 esac
11577 if test $ok = yes; then
11578 # An in-tree tool is available and we can use it
11579 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
11580 echo "$as_me:$LINENO: result: just compiled" >&5
11581echo "${ECHO_T}just compiled" >&6
2429c060
PB
11582 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11583 # We already found the complete path
b8025f34
AS
11584 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11585 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11586echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11587 elif test "x$target" = "x$host"; then
11588 # We can use an host tool
11589 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11590 echo "$as_me:$LINENO: result: host tool" >&5
11591echo "${ECHO_T}host tool" >&6
be01d343
PB
11592 else
11593 # We need a cross tool
c6b750e1
DJ
11594 echo "$as_me:$LINENO: result: pre-installed" >&5
11595echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11596 fi
11597fi
4b900473 11598
c6b750e1
DJ
11599echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11600echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11601if test "x${build}" != "x${host}" ; then
2429c060
PB
11602 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11603 # We already found the complete path
b8025f34
AS
11604 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11605 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11606echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11607 else
11608 # Canadian cross, just use what we found
c6b750e1
DJ
11609 echo "$as_me:$LINENO: result: pre-installed" >&5
11610echo "${ECHO_T}pre-installed" >&6
2429c060 11611 fi
be01d343
PB
11612else
11613 ok=yes
11614 case " ${configdirs} " in
11615 *" binutils "*) ;;
11616 *) ok=no ;;
11617 esac
c6b750e1 11618
be01d343
PB
11619 if test $ok = yes; then
11620 # An in-tree tool is available and we can use it
11621 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11622 echo "$as_me:$LINENO: result: just compiled" >&5
11623echo "${ECHO_T}just compiled" >&6
2429c060
PB
11624 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11625 # We already found the complete path
b8025f34
AS
11626 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11627 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11628echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11629 elif test "x$target" = "x$host"; then
11630 # We can use an host tool
11631 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11632 echo "$as_me:$LINENO: result: host tool" >&5
11633echo "${ECHO_T}host tool" >&6
be01d343
PB
11634 else
11635 # We need a cross tool
c6b750e1
DJ
11636 echo "$as_me:$LINENO: result: pre-installed" >&5
11637echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11638 fi
11639fi
4b900473 11640
c6b750e1
DJ
11641echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11642echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11643if test "x${build}" != "x${host}" ; then
2429c060
PB
11644 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11645 # We already found the complete path
b8025f34
AS
11646 ac_dir=`dirname $GCC_FOR_TARGET`
11647 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11648echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11649 else
11650 # Canadian cross, just use what we found
c6b750e1
DJ
11651 echo "$as_me:$LINENO: result: pre-installed" >&5
11652echo "${ECHO_T}pre-installed" >&6
2429c060 11653 fi
be01d343
PB
11654else
11655 ok=yes
11656 case " ${configdirs} " in
11657 *" gcc "*) ;;
11658 *) ok=no ;;
11659 esac
c6b750e1 11660
be01d343
PB
11661 if test $ok = yes; then
11662 # An in-tree tool is available and we can use it
11663 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11664 echo "$as_me:$LINENO: result: just compiled" >&5
11665echo "${ECHO_T}just compiled" >&6
2429c060
PB
11666 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11667 # We already found the complete path
b8025f34
AS
11668 ac_dir=`dirname $GCC_FOR_TARGET`
11669 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11670echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11671 elif test "x$target" = "x$host"; then
11672 # We can use an host tool
11673 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11674 echo "$as_me:$LINENO: result: host tool" >&5
11675echo "${ECHO_T}host tool" >&6
be01d343
PB
11676 else
11677 # We need a cross tool
c6b750e1
DJ
11678 echo "$as_me:$LINENO: result: pre-installed" >&5
11679echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11680 fi
11681fi
4b900473 11682
c6b750e1
DJ
11683echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11684echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11685if test "x${build}" != "x${host}" ; then
2429c060
PB
11686 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11687 # We already found the complete path
b8025f34
AS
11688 ac_dir=`dirname $GCJ_FOR_TARGET`
11689 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11690echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11691 else
11692 # Canadian cross, just use what we found
c6b750e1
DJ
11693 echo "$as_me:$LINENO: result: pre-installed" >&5
11694echo "${ECHO_T}pre-installed" >&6
2429c060 11695 fi
be01d343
PB
11696else
11697 ok=yes
11698 case " ${configdirs} " in
11699 *" gcc "*) ;;
11700 *) ok=no ;;
11701 esac
11702 case ,${enable_languages}, in
11703 *,java,*) ;;
11704 *) ok=no ;;
11705 esac
11706 if test $ok = yes; then
11707 # An in-tree tool is available and we can use it
11708 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11709 echo "$as_me:$LINENO: result: just compiled" >&5
11710echo "${ECHO_T}just compiled" >&6
2429c060
PB
11711 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11712 # We already found the complete path
b8025f34
AS
11713 ac_dir=`dirname $GCJ_FOR_TARGET`
11714 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11715echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11716 elif test "x$target" = "x$host"; then
11717 # We can use an host tool
11718 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11719 echo "$as_me:$LINENO: result: host tool" >&5
11720echo "${ECHO_T}host tool" >&6
be01d343
PB
11721 else
11722 # We need a cross tool
c6b750e1
DJ
11723 echo "$as_me:$LINENO: result: pre-installed" >&5
11724echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11725 fi
11726fi
4b900473 11727
c6b750e1
DJ
11728echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11729echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11730if test "x${build}" != "x${host}" ; then
2429c060
PB
11731 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11732 # We already found the complete path
b8025f34
AS
11733 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11734 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11735echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11736 else
11737 # Canadian cross, just use what we found
c6b750e1
DJ
11738 echo "$as_me:$LINENO: result: pre-installed" >&5
11739echo "${ECHO_T}pre-installed" >&6
2429c060 11740 fi
be01d343
PB
11741else
11742 ok=yes
11743 case " ${configdirs} " in
11744 *" gcc "*) ;;
11745 *) ok=no ;;
11746 esac
11747 case ,${enable_languages}, in
11748 *,fortran,*) ;;
11749 *) ok=no ;;
11750 esac
11751 if test $ok = yes; then
11752 # An in-tree tool is available and we can use it
11753 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11754 echo "$as_me:$LINENO: result: just compiled" >&5
11755echo "${ECHO_T}just compiled" >&6
2429c060
PB
11756 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11757 # We already found the complete path
b8025f34
AS
11758 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11759 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11760echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11761 elif test "x$target" = "x$host"; then
11762 # We can use an host tool
11763 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11764 echo "$as_me:$LINENO: result: host tool" >&5
11765echo "${ECHO_T}host tool" >&6
be01d343
PB
11766 else
11767 # We need a cross tool
c6b750e1
DJ
11768 echo "$as_me:$LINENO: result: pre-installed" >&5
11769echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11770 fi
11771fi
4b900473 11772
c6b750e1
DJ
11773echo "$as_me:$LINENO: checking where to find the target ld" >&5
11774echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11775if test "x${build}" != "x${host}" ; then
2429c060
PB
11776 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11777 # We already found the complete path
b8025f34
AS
11778 ac_dir=`dirname $LD_FOR_TARGET`
11779 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11780echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11781 else
11782 # Canadian cross, just use what we found
c6b750e1
DJ
11783 echo "$as_me:$LINENO: result: pre-installed" >&5
11784echo "${ECHO_T}pre-installed" >&6
2429c060 11785 fi
be01d343
PB
11786else
11787 ok=yes
11788 case " ${configdirs} " in
11789 *" ld "*) ;;
11790 *) ok=no ;;
11791 esac
c6b750e1 11792
be01d343
PB
11793 if test $ok = yes; then
11794 # An in-tree tool is available and we can use it
11795 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11796 echo "$as_me:$LINENO: result: just compiled" >&5
11797echo "${ECHO_T}just compiled" >&6
2429c060
PB
11798 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11799 # We already found the complete path
b8025f34
AS
11800 ac_dir=`dirname $LD_FOR_TARGET`
11801 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11802echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11803 elif test "x$target" = "x$host"; then
11804 # We can use an host tool
11805 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11806 echo "$as_me:$LINENO: result: host tool" >&5
11807echo "${ECHO_T}host tool" >&6
be01d343
PB
11808 else
11809 # We need a cross tool
c6b750e1
DJ
11810 echo "$as_me:$LINENO: result: pre-installed" >&5
11811echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11812 fi
11813fi
4b900473 11814
c6b750e1
DJ
11815echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11816echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11817if test "x${build}" != "x${host}" ; then
2429c060
PB
11818 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11819 # We already found the complete path
b8025f34
AS
11820 ac_dir=`dirname $LIPO_FOR_TARGET`
11821 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11822echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11823 else
11824 # Canadian cross, just use what we found
c6b750e1
DJ
11825 echo "$as_me:$LINENO: result: pre-installed" >&5
11826echo "${ECHO_T}pre-installed" >&6
2429c060 11827 fi
be01d343 11828else
2429c060
PB
11829 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11830 # We already found the complete path
b8025f34
AS
11831 ac_dir=`dirname $LIPO_FOR_TARGET`
11832 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11833echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11834 elif test "x$target" = "x$host"; then
be01d343
PB
11835 # We can use an host tool
11836 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11837 echo "$as_me:$LINENO: result: host tool" >&5
11838echo "${ECHO_T}host tool" >&6
be01d343
PB
11839 else
11840 # We need a cross tool
c6b750e1
DJ
11841 echo "$as_me:$LINENO: result: pre-installed" >&5
11842echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11843 fi
11844fi
4b900473 11845
c6b750e1
DJ
11846echo "$as_me:$LINENO: checking where to find the target nm" >&5
11847echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11848if test "x${build}" != "x${host}" ; then
2429c060
PB
11849 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11850 # We already found the complete path
b8025f34
AS
11851 ac_dir=`dirname $NM_FOR_TARGET`
11852 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11853echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11854 else
11855 # Canadian cross, just use what we found
c6b750e1
DJ
11856 echo "$as_me:$LINENO: result: pre-installed" >&5
11857echo "${ECHO_T}pre-installed" >&6
2429c060 11858 fi
be01d343
PB
11859else
11860 ok=yes
11861 case " ${configdirs} " in
11862 *" binutils "*) ;;
11863 *) ok=no ;;
11864 esac
c6b750e1 11865
be01d343
PB
11866 if test $ok = yes; then
11867 # An in-tree tool is available and we can use it
11868 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11869 echo "$as_me:$LINENO: result: just compiled" >&5
11870echo "${ECHO_T}just compiled" >&6
2429c060
PB
11871 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11872 # We already found the complete path
b8025f34
AS
11873 ac_dir=`dirname $NM_FOR_TARGET`
11874 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11875echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11876 elif test "x$target" = "x$host"; then
11877 # We can use an host tool
11878 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11879 echo "$as_me:$LINENO: result: host tool" >&5
11880echo "${ECHO_T}host tool" >&6
be01d343
PB
11881 else
11882 # We need a cross tool
c6b750e1
DJ
11883 echo "$as_me:$LINENO: result: pre-installed" >&5
11884echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11885 fi
11886fi
4b900473 11887
c6b750e1
DJ
11888echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11889echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11890if test "x${build}" != "x${host}" ; then
2429c060
PB
11891 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11892 # We already found the complete path
b8025f34
AS
11893 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11894 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11895echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11896 else
11897 # Canadian cross, just use what we found
c6b750e1
DJ
11898 echo "$as_me:$LINENO: result: pre-installed" >&5
11899echo "${ECHO_T}pre-installed" >&6
2429c060 11900 fi
be01d343
PB
11901else
11902 ok=yes
11903 case " ${configdirs} " in
11904 *" binutils "*) ;;
11905 *) ok=no ;;
11906 esac
c6b750e1 11907
be01d343
PB
11908 if test $ok = yes; then
11909 # An in-tree tool is available and we can use it
11910 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11911 echo "$as_me:$LINENO: result: just compiled" >&5
11912echo "${ECHO_T}just compiled" >&6
2429c060
PB
11913 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11914 # We already found the complete path
b8025f34
AS
11915 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11916 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11917echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11918 elif test "x$target" = "x$host"; then
11919 # We can use an host tool
11920 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11921 echo "$as_me:$LINENO: result: host tool" >&5
11922echo "${ECHO_T}host tool" >&6
be01d343
PB
11923 else
11924 # We need a cross tool
c6b750e1
DJ
11925 echo "$as_me:$LINENO: result: pre-installed" >&5
11926echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11927 fi
11928fi
4b900473 11929
c6b750e1
DJ
11930echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11931echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11932if test "x${build}" != "x${host}" ; then
2429c060
PB
11933 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11934 # We already found the complete path
b8025f34
AS
11935 ac_dir=`dirname $RANLIB_FOR_TARGET`
11936 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11937echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11938 else
11939 # Canadian cross, just use what we found
c6b750e1
DJ
11940 echo "$as_me:$LINENO: result: pre-installed" >&5
11941echo "${ECHO_T}pre-installed" >&6
2429c060 11942 fi
be01d343
PB
11943else
11944 ok=yes
11945 case " ${configdirs} " in
11946 *" binutils "*) ;;
11947 *) ok=no ;;
11948 esac
c6b750e1 11949
be01d343
PB
11950 if test $ok = yes; then
11951 # An in-tree tool is available and we can use it
11952 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11953 echo "$as_me:$LINENO: result: just compiled" >&5
11954echo "${ECHO_T}just compiled" >&6
2429c060
PB
11955 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11956 # We already found the complete path
b8025f34
AS
11957 ac_dir=`dirname $RANLIB_FOR_TARGET`
11958 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11959echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11960 elif test "x$target" = "x$host"; then
11961 # We can use an host tool
11962 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11963 echo "$as_me:$LINENO: result: host tool" >&5
11964echo "${ECHO_T}host tool" >&6
be01d343
PB
11965 else
11966 # We need a cross tool
c6b750e1
DJ
11967 echo "$as_me:$LINENO: result: pre-installed" >&5
11968echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11969 fi
11970fi
4b900473 11971
c6b750e1
DJ
11972echo "$as_me:$LINENO: checking where to find the target strip" >&5
11973echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11974if test "x${build}" != "x${host}" ; then
2429c060
PB
11975 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11976 # We already found the complete path
b8025f34
AS
11977 ac_dir=`dirname $STRIP_FOR_TARGET`
11978 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11979echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11980 else
11981 # Canadian cross, just use what we found
c6b750e1
DJ
11982 echo "$as_me:$LINENO: result: pre-installed" >&5
11983echo "${ECHO_T}pre-installed" >&6
2429c060 11984 fi
be01d343
PB
11985else
11986 ok=yes
11987 case " ${configdirs} " in
11988 *" binutils "*) ;;
11989 *) ok=no ;;
11990 esac
c6b750e1 11991
be01d343
PB
11992 if test $ok = yes; then
11993 # An in-tree tool is available and we can use it
11994 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11995 echo "$as_me:$LINENO: result: just compiled" >&5
11996echo "${ECHO_T}just compiled" >&6
2429c060
PB
11997 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11998 # We already found the complete path
b8025f34
AS
11999 ac_dir=`dirname $STRIP_FOR_TARGET`
12000 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12001echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12002 elif test "x$target" = "x$host"; then
12003 # We can use an host tool
12004 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
12005 echo "$as_me:$LINENO: result: host tool" >&5
12006echo "${ECHO_T}host tool" >&6
be01d343
PB
12007 else
12008 # We need a cross tool
c6b750e1
DJ
12009 echo "$as_me:$LINENO: result: pre-installed" >&5
12010echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12011 fi
12012fi
4b900473 12013
c6b750e1
DJ
12014echo "$as_me:$LINENO: checking where to find the target windres" >&5
12015echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 12016if test "x${build}" != "x${host}" ; then
2429c060
PB
12017 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12018 # We already found the complete path
b8025f34
AS
12019 ac_dir=`dirname $WINDRES_FOR_TARGET`
12020 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12021echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12022 else
12023 # Canadian cross, just use what we found
c6b750e1
DJ
12024 echo "$as_me:$LINENO: result: pre-installed" >&5
12025echo "${ECHO_T}pre-installed" >&6
2429c060 12026 fi
be01d343
PB
12027else
12028 ok=yes
12029 case " ${configdirs} " in
12030 *" binutils "*) ;;
12031 *) ok=no ;;
12032 esac
c6b750e1 12033
be01d343
PB
12034 if test $ok = yes; then
12035 # An in-tree tool is available and we can use it
12036 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
12037 echo "$as_me:$LINENO: result: just compiled" >&5
12038echo "${ECHO_T}just compiled" >&6
2429c060
PB
12039 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12040 # We already found the complete path
b8025f34
AS
12041 ac_dir=`dirname $WINDRES_FOR_TARGET`
12042 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12043echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12044 elif test "x$target" = "x$host"; then
12045 # We can use an host tool
12046 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
12047 echo "$as_me:$LINENO: result: host tool" >&5
12048echo "${ECHO_T}host tool" >&6
be01d343
PB
12049 else
12050 # We need a cross tool
c6b750e1
DJ
12051 echo "$as_me:$LINENO: result: pre-installed" >&5
12052echo "${ECHO_T}pre-installed" >&6
be01d343 12053 fi
a0da8069 12054fi
54752a6b 12055
0c24b341
NC
12056echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12057echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12058if test "x${build}" != "x${host}" ; then
12059 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12060 # We already found the complete path
12061 ac_dir=`dirname $WINDMC_FOR_TARGET`
12062 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12063echo "${ECHO_T}pre-installed in $ac_dir" >&6
12064 else
12065 # Canadian cross, just use what we found
12066 echo "$as_me:$LINENO: result: pre-installed" >&5
12067echo "${ECHO_T}pre-installed" >&6
12068 fi
12069else
12070 ok=yes
12071 case " ${configdirs} " in
12072 *" binutils "*) ;;
12073 *) ok=no ;;
12074 esac
12075
12076 if test $ok = yes; then
12077 # An in-tree tool is available and we can use it
12078 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12079 echo "$as_me:$LINENO: result: just compiled" >&5
12080echo "${ECHO_T}just compiled" >&6
12081 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12082 # We already found the complete path
12083 ac_dir=`dirname $WINDMC_FOR_TARGET`
12084 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12085echo "${ECHO_T}pre-installed in $ac_dir" >&6
12086 elif test "x$target" = "x$host"; then
12087 # We can use an host tool
12088 WINDMC_FOR_TARGET='$(WINDMC)'
12089 echo "$as_me:$LINENO: result: host tool" >&5
12090echo "${ECHO_T}host tool" >&6
12091 else
12092 # We need a cross tool
12093 echo "$as_me:$LINENO: result: pre-installed" >&5
12094echo "${ECHO_T}pre-installed" >&6
12095 fi
12096fi
12097
54752a6b
NN
12098
12099
be01d343 12100
4b900473 12101
a0da8069
NN
12102# Certain tools may need extra flags.
12103AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12104RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12105NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12106
be01d343
PB
12107# When building target libraries, except in a Canadian cross, we use
12108# the same toolchain as the compiler we just built.
12109COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12110COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12111COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12112if test $host = $build; then
12113 case " $configdirs " in
12114 *" gcc "*)
12115 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12116 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12117 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12118 ;;
12119 esac
12120fi
12121
12122
12123
12124
12125
c6b750e1
DJ
12126echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12127echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
12128# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12129if test "${enable_maintainer_mode+set}" = set; then
12130 enableval="$enable_maintainer_mode"
12131 USE_MAINTAINER_MODE=$enableval
12132else
12133 USE_MAINTAINER_MODE=no
c6b750e1
DJ
12134fi;
12135echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12136echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
12137
12138
12139if test "$USE_MAINTAINER_MODE" = yes; then
12140 MAINTAINER_MODE_TRUE=
12141 MAINTAINER_MODE_FALSE='#'
12142else
12143 MAINTAINER_MODE_TRUE='#'
12144 MAINTAINER_MODE_FALSE=
c6b750e1 12145fi
3d5e36ae
AO
12146MAINT=$MAINTAINER_MODE_TRUE
12147
1d39f329
NN
12148# ---------------------
12149# GCC bootstrap support
12150# ---------------------
12151
12152# Stage specific cflags for build.
12153stage1_cflags="-g"
12154case $build in
12155 vax-*-*)
12156 case ${GCC} in
12157 yes) stage1_cflags="-g -Wa,-J" ;;
12158 *) stage1_cflags="-g -J" ;;
12159 esac ;;
1d39f329
NN
12160esac
12161
1d89b610
PB
12162# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12163if test "$GCC" = yes; then
12164 saved_CFLAGS="$CFLAGS"
12165
12166 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12167 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
12168 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12169echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12170 cat >conftest.$ac_ext <<_ACEOF
12171/* confdefs.h. */
12172_ACEOF
12173cat confdefs.h >>conftest.$ac_ext
12174cat >>conftest.$ac_ext <<_ACEOF
12175/* end confdefs.h. */
12176
2038f525
PB
12177#if (__GNUC__ < 3) \
12178 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12179 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12180#error http://gcc.gnu.org/PR29382
12181#endif
12182
c6b750e1
DJ
12183int
12184main ()
12185{
12186
12187 ;
12188 return 0;
12189}
12190_ACEOF
12191rm -f conftest.$ac_objext
12192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12193 (eval $ac_compile) 2>conftest.er1
12194 ac_status=$?
12195 grep -v '^ *+' conftest.er1 >conftest.err
12196 rm -f conftest.er1
12197 cat conftest.err >&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try='test -z "$ac_c_werror_flag"
12201 || test ! -s conftest.err'
12202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203 (eval $ac_try) 2>&5
12204 ac_status=$?
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; } &&
12207 { ac_try='test -s conftest.$ac_objext'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; }; then
12213 echo "$as_me:$LINENO: result: yes" >&5
12214echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12215else
12216 echo "$as_me: failed program was:" >&5
12217sed 's/^/| /' conftest.$ac_ext >&5
12218
12219echo "$as_me:$LINENO: result: no" >&5
12220echo "${ECHO_T}no" >&6
12221fi
12222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12223
12224 CFLAGS="$saved_CFLAGS"
12225fi
12226
12227
1d39f329 12228
8a0d8a5c
PB
12229# Enable --enable-checking in stage1 of the compiler.
12230# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12231if test "${enable_stage1_checking+set}" = set; then
12232 enableval="$enable_stage1_checking"
12233 stage1_checking=--enable-checking=${enable_stage1_checking}
12234else
5566c1fa 12235 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12236 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12237else
5566c1fa 12238 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12239fi
c6b750e1 12240fi;
8a0d8a5c
PB
12241
12242
1d39f329 12243# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12244# Check whether --enable-werror or --disable-werror was given.
12245if test "${enable_werror+set}" = set; then
12246 enableval="$enable_werror"
c6b750e1 12247
1d39f329 12248else
a0323144 12249 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12250 enable_werror=yes
79fcd0ec
PB
12251else
12252 enable_werror=no
12253fi
c6b750e1 12254fi;
1a6f2dc7
NN
12255case ${enable_werror} in
12256 yes) stage2_werror_flag="--enable-werror-always" ;;
12257 *) stage2_werror_flag="" ;;
1d39f329
NN
12258esac
12259
12260
108a6f8e 12261# Flags needed to enable html installing and building
c6b750e1 12262
108a6f8e
CD
12263# Check whether --with-datarootdir or --without-datarootdir was given.
12264if test "${with_datarootdir+set}" = set; then
12265 withval="$with_datarootdir"
12266 datarootdir="\${prefix}/${withval}"
12267else
12268 datarootdir="\${prefix}/share"
c6b750e1 12269fi;
108a6f8e
CD
12270
12271
12272# Check whether --with-docdir or --without-docdir was given.
12273if test "${with_docdir+set}" = set; then
12274 withval="$with_docdir"
12275 docdir="\${prefix}/${withval}"
12276else
12277 docdir="\${datarootdir}/doc"
c6b750e1 12278fi;
108a6f8e
CD
12279
12280
a3ca38d2
DD
12281# Check whether --with-pdfdir or --without-pdfdir was given.
12282if test "${with_pdfdir+set}" = set; then
12283 withval="$with_pdfdir"
12284 pdfdir="\${prefix}/${withval}"
12285else
12286 pdfdir="\${docdir}"
12287fi;
12288
12289
108a6f8e
CD
12290# Check whether --with-htmldir or --without-htmldir was given.
12291if test "${with_htmldir+set}" = set; then
12292 withval="$with_htmldir"
12293 htmldir="\${prefix}/${withval}"
12294else
12295 htmldir="\${docdir}"
c6b750e1 12296fi;
108a6f8e
CD
12297
12298
12299
12300
12301
b8025f34 12302
c6b750e1
DJ
12303 ac_config_files="$ac_config_files Makefile"
12304cat >confcache <<\_ACEOF
a0da8069
NN
12305# This file is a shell script that caches the results of configure
12306# tests run on this system so they can be shared between configure
c6b750e1
DJ
12307# scripts and configure runs, see configure's option --config-cache.
12308# It is not useful on other systems. If it contains results you don't
12309# want to keep, you may remove or edit it.
a0da8069 12310#
c6b750e1
DJ
12311# config.status only pays attention to the cache file if you give it
12312# the --recheck option to rerun configure.
a0da8069 12313#
c6b750e1
DJ
12314# `ac_cv_env_foo' variables (set or unset) will be overridden when
12315# loading this file, other *unset* `ac_cv_foo' will be assigned the
12316# following values.
12317
12318_ACEOF
12319
a0da8069
NN
12320# The following way of writing the cache mishandles newlines in values,
12321# but we know of no workaround that is simple, portable, and efficient.
12322# So, don't put newlines in cache variables' values.
12323# Ultrix sh set writes to stderr and can't be redirected directly,
12324# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12325{
12326 (set) 2>&1 |
12327 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12328 *ac_space=\ *)
12329 # `set' does not quote correctly, so add quotes (double-quote
12330 # substitution turns \\\\ into \\, and sed turns \\ into \).
12331 sed -n \
12332 "s/'/'\\\\''/g;
12333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12334 ;;
12335 *)
12336 # `set' quotes correctly as required by POSIX, so do not add quotes.
12337 sed -n \
12338 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12339 ;;
12340 esac;
12341} |
12342 sed '
12343 t clear
12344 : clear
12345 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12346 t end
12347 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12348 : end' >>confcache
12349if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12350 if test -w $cache_file; then
c6b750e1
DJ
12351 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12352 cat confcache >$cache_file
a0da8069
NN
12353 else
12354 echo "not updating unwritable cache $cache_file"
12355 fi
852e5f18 12356fi
a0da8069 12357rm -f confcache
852e5f18 12358
a0da8069
NN
12359test "x$prefix" = xNONE && prefix=$ac_default_prefix
12360# Let make expand exec_prefix.
12361test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12362
c6b750e1
DJ
12363# VPATH may cause trouble with some makes, so we remove $(srcdir),
12364# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12365# trailing colons and then remove the whole line if VPATH becomes empty
12366# (actually we leave an empty line to preserve line numbers).
a0da8069 12367if test "x$srcdir" = x.; then
c6b750e1
DJ
12368 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12369s/:*\$(srcdir):*/:/;
12370s/:*\${srcdir}:*/:/;
12371s/:*@srcdir@:*/:/;
12372s/^\([^=]*=[ ]*\):*/\1/;
12373s/:*$//;
12374s/^[^=]*=[ ]*$//;
12375}'
a0da8069 12376fi
252b5132 12377
a0da8069
NN
12378# Transform confdefs.h into DEFS.
12379# Protect against shell expansion while executing Makefile rules.
12380# Protect against Makefile macro expansion.
c6b750e1
DJ
12381#
12382# If the first sed substitution is executed (which looks for macros that
12383# take arguments), then we branch to the quote section. Otherwise,
12384# look for a macro that doesn't take arguments.
12385cat >confdef2opt.sed <<\_ACEOF
12386t clear
12387: clear
12388s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12389t quote
12390s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12391t quote
12392d
12393: quote
12394s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12395s,\[,\\&,g
12396s,\],\\&,g
12397s,\$,$$,g
12398p
12399_ACEOF
12400# We use echo to avoid assuming a particular line-breaking character.
12401# The extra dot is to prevent the shell from consuming trailing
12402# line-breaks from the sub-command output. A line-break within
12403# single-quotes doesn't work because, if this script is created in a
12404# platform that uses two characters for line-breaks (e.g., DOS), tr
12405# would break.
12406ac_LF_and_DOT=`echo; echo .`
12407DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12408rm -f confdef2opt.sed
12409
12410
12411ac_libobjs=
12412ac_ltlibobjs=
12413for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12414 # 1. Remove the extension, and $U if already installed.
12415 ac_i=`echo "$ac_i" |
12416 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12417 # 2. Add them.
12418 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12419 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12420done
12421LIBOBJS=$ac_libobjs
852e5f18 12422
c6b750e1 12423LTLIBOBJS=$ac_ltlibobjs
376a0e54 12424
cac3d6c4 12425
c6b750e1
DJ
12426
12427: ${CONFIG_STATUS=./config.status}
12428ac_clean_files_save=$ac_clean_files
12429ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12430{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12431echo "$as_me: creating $CONFIG_STATUS" >&6;}
12432cat >$CONFIG_STATUS <<_ACEOF
12433#! $SHELL
12434# Generated by $as_me.
a0da8069 12435# Run this file to recreate the current configuration.
a0da8069 12436# Compiler output produced by configure, useful for debugging
c6b750e1 12437# configure, is in config.log if it exists.
376a0e54 12438
c6b750e1
DJ
12439debug=false
12440ac_cs_recheck=false
12441ac_cs_silent=false
12442SHELL=\${CONFIG_SHELL-$SHELL}
12443_ACEOF
12444
12445cat >>$CONFIG_STATUS <<\_ACEOF
12446## --------------------- ##
12447## M4sh Initialization. ##
12448## --------------------- ##
12449
12450# Be Bourne compatible
12451if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12452 emulate sh
12453 NULLCMD=:
12454 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12455 # is contrary to our usage. Disable this feature.
12456 alias -g '${1+"$@"}'='"$@"'
12457elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12458 set -o posix
12459fi
12460DUALCASE=1; export DUALCASE # for MKS sh
12461
12462# Support unset when possible.
12463if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12464 as_unset=unset
12465else
12466 as_unset=false
12467fi
12468
12469
12470# Work around bugs in pre-3.0 UWIN ksh.
12471$as_unset ENV MAIL MAILPATH
12472PS1='$ '
12473PS2='> '
12474PS4='+ '
12475
12476# NLS nuisances.
12477for as_var in \
12478 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12479 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12480 LC_TELEPHONE LC_TIME
12481do
12482 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12483 eval $as_var=C; export $as_var
12484 else
12485 $as_unset $as_var
12486 fi
12487done
12488
12489# Required to use basename.
12490if expr a : '\(a\)' >/dev/null 2>&1; then
12491 as_expr=expr
12492else
12493 as_expr=false
12494fi
12495
12496if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12497 as_basename=basename
12498else
12499 as_basename=false
12500fi
12501
12502
12503# Name of the executable.
12504as_me=`$as_basename "$0" ||
12505$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12506 X"$0" : 'X\(//\)$' \| \
12507 X"$0" : 'X\(/\)$' \| \
12508 . : '\(.\)' 2>/dev/null ||
12509echo X/"$0" |
12510 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12511 /^X\/\(\/\/\)$/{ s//\1/; q; }
12512 /^X\/\(\/\).*/{ s//\1/; q; }
12513 s/.*/./; q'`
12514
12515
12516# PATH needs CR, and LINENO needs CR and PATH.
12517# Avoid depending upon Character Ranges.
12518as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12519as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12520as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12521as_cr_digits='0123456789'
12522as_cr_alnum=$as_cr_Letters$as_cr_digits
12523
12524# The user is always right.
12525if test "${PATH_SEPARATOR+set}" != set; then
12526 echo "#! /bin/sh" >conf$$.sh
12527 echo "exit 0" >>conf$$.sh
12528 chmod +x conf$$.sh
12529 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12530 PATH_SEPARATOR=';'
12531 else
12532 PATH_SEPARATOR=:
12533 fi
12534 rm -f conf$$.sh
12535fi
12536
12537
12538 as_lineno_1=$LINENO
12539 as_lineno_2=$LINENO
12540 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12541 test "x$as_lineno_1" != "x$as_lineno_2" &&
12542 test "x$as_lineno_3" = "x$as_lineno_2" || {
12543 # Find who we are. Look in the path if we contain no path at all
12544 # relative or not.
12545 case $0 in
12546 *[\\/]* ) as_myself=$0 ;;
12547 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12548for as_dir in $PATH
12549do
12550 IFS=$as_save_IFS
12551 test -z "$as_dir" && as_dir=.
12552 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12553done
12554
12555 ;;
12556 esac
12557 # We did not find ourselves, most probably we were run as `sh COMMAND'
12558 # in which case we are not to be found in the path.
12559 if test "x$as_myself" = x; then
12560 as_myself=$0
12561 fi
12562 if test ! -f "$as_myself"; then
12563 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12564echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12565 { (exit 1); exit 1; }; }
12566 fi
12567 case $CONFIG_SHELL in
12568 '')
12569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12570for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12571do
12572 IFS=$as_save_IFS
12573 test -z "$as_dir" && as_dir=.
12574 for as_base in sh bash ksh sh5; do
12575 case $as_dir in
12576 /*)
12577 if ("$as_dir/$as_base" -c '
12578 as_lineno_1=$LINENO
12579 as_lineno_2=$LINENO
12580 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12581 test "x$as_lineno_1" != "x$as_lineno_2" &&
12582 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12583 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12584 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12585 CONFIG_SHELL=$as_dir/$as_base
12586 export CONFIG_SHELL
12587 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12588 fi;;
12589 esac
12590 done
12591done
12592;;
12593 esac
12594
12595 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12596 # uniformly replaced by the line number. The first 'sed' inserts a
12597 # line-number line before each line; the second 'sed' does the real
12598 # work. The second script uses 'N' to pair each line-number line
12599 # with the numbered line, and appends trailing '-' during
12600 # substitution so that $LINENO is not a special case at line end.
12601 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12602 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12603 sed '=' <$as_myself |
12604 sed '
12605 N
12606 s,$,-,
12607 : loop
12608 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12609 t loop
12610 s,-$,,
12611 s,^['$as_cr_digits']*\n,,
12612 ' >$as_me.lineno &&
12613 chmod +x $as_me.lineno ||
12614 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12615echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12616 { (exit 1); exit 1; }; }
12617
12618 # Don't try to exec as it changes $[0], causing all sort of problems
12619 # (the dirname of $[0] is not the place where we might find the
12620 # original and so on. Autoconf is especially sensible to this).
12621 . ./$as_me.lineno
12622 # Exit status is that of the last command.
12623 exit
12624}
12625
12626
12627case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12628 *c*,-n*) ECHO_N= ECHO_C='
12629' ECHO_T=' ' ;;
12630 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12631 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12632esac
12633
12634if expr a : '\(a\)' >/dev/null 2>&1; then
12635 as_expr=expr
12636else
12637 as_expr=false
12638fi
12639
12640rm -f conf$$ conf$$.exe conf$$.file
12641echo >conf$$.file
12642if ln -s conf$$.file conf$$ 2>/dev/null; then
12643 # We could just check for DJGPP; but this test a) works b) is more generic
12644 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12645 if test -f conf$$.exe; then
12646 # Don't use ln at all; we don't have any links
12647 as_ln_s='cp -p'
12648 else
12649 as_ln_s='ln -s'
12650 fi
12651elif ln conf$$.file conf$$ 2>/dev/null; then
12652 as_ln_s=ln
12653else
12654 as_ln_s='cp -p'
12655fi
12656rm -f conf$$ conf$$.exe conf$$.file
12657
12658if mkdir -p . 2>/dev/null; then
12659 as_mkdir_p=:
12660else
12661 test -d ./-p && rmdir ./-p
12662 as_mkdir_p=false
12663fi
12664
12665as_executable_p="test -f"
12666
12667# Sed expression to map a string onto a valid CPP name.
12668as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12669
12670# Sed expression to map a string onto a valid variable name.
12671as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12672
12673
12674# IFS
12675# We need space, tab and new line, in precisely that order.
12676as_nl='
12677'
12678IFS=" $as_nl"
12679
12680# CDPATH.
12681$as_unset CDPATH
12682
12683exec 6>&1
12684
12685# Open the log real soon, to keep \$[0] and so on meaningful, and to
12686# report actual input values of CONFIG_FILES etc. instead of their
12687# values after options handling. Logging --version etc. is OK.
12688exec 5>>config.log
12689{
12690 echo
12691 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12692## Running $as_me. ##
12693_ASBOX
12694} >&5
12695cat >&5 <<_CSEOF
12696
12697This file was extended by $as_me, which was
12698generated by GNU Autoconf 2.59. Invocation command line was
12699
12700 CONFIG_FILES = $CONFIG_FILES
12701 CONFIG_HEADERS = $CONFIG_HEADERS
12702 CONFIG_LINKS = $CONFIG_LINKS
12703 CONFIG_COMMANDS = $CONFIG_COMMANDS
12704 $ $0 $@
12705
12706_CSEOF
12707echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12708echo >&5
12709_ACEOF
12710
12711# Files that config.status was made for.
12712if test -n "$ac_config_files"; then
12713 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12714fi
12715
12716if test -n "$ac_config_headers"; then
12717 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12718fi
12719
12720if test -n "$ac_config_links"; then
12721 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12722fi
12723
12724if test -n "$ac_config_commands"; then
12725 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12726fi
12727
12728cat >>$CONFIG_STATUS <<\_ACEOF
12729
12730ac_cs_usage="\
12731\`$as_me' instantiates files from templates according to the
12732current configuration.
12733
12734Usage: $0 [OPTIONS] [FILE]...
12735
12736 -h, --help print this help, then exit
12737 -V, --version print version number, then exit
12738 -q, --quiet do not print progress messages
12739 -d, --debug don't remove temporary files
12740 --recheck update $as_me by reconfiguring in the same conditions
12741 --file=FILE[:TEMPLATE]
12742 instantiate the configuration file FILE
12743
12744Configuration files:
12745$config_files
12746
12747Report bugs to <bug-autoconf@gnu.org>."
12748_ACEOF
12749
12750cat >>$CONFIG_STATUS <<_ACEOF
12751ac_cs_version="\\
12752config.status
12753configured by $0, generated by GNU Autoconf 2.59,
12754 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12755
12756Copyright (C) 2003 Free Software Foundation, Inc.
12757This config.status script is free software; the Free Software Foundation
12758gives unlimited permission to copy, distribute and modify it."
12759srcdir=$srcdir
12760INSTALL="$INSTALL"
12761_ACEOF
12762
12763cat >>$CONFIG_STATUS <<\_ACEOF
12764# If no file are specified by the user, then we need to provide default
12765# value. By we need to know if files were specified by the user.
12766ac_need_defaults=:
12767while test $# != 0
a0da8069 12768do
c6b750e1
DJ
12769 case $1 in
12770 --*=*)
12771 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12772 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12773 ac_shift=:
12774 ;;
12775 -*)
12776 ac_option=$1
12777 ac_optarg=$2
12778 ac_shift=shift
12779 ;;
12780 *) # This is not an option, so the user has probably given explicit
12781 # arguments.
12782 ac_option=$1
12783 ac_need_defaults=false;;
12784 esac
12785
12786 case $ac_option in
12787 # Handling of the options.
12788_ACEOF
12789cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12790 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12791 ac_cs_recheck=: ;;
12792 --version | --vers* | -V )
12793 echo "$ac_cs_version"; exit 0 ;;
12794 --he | --h)
12795 # Conflict between --help and --header
12796 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12797Try \`$0 --help' for more information." >&5
12798echo "$as_me: error: ambiguous option: $1
12799Try \`$0 --help' for more information." >&2;}
12800 { (exit 1); exit 1; }; };;
12801 --help | --hel | -h )
12802 echo "$ac_cs_usage"; exit 0 ;;
12803 --debug | --d* | -d )
12804 debug=: ;;
12805 --file | --fil | --fi | --f )
12806 $ac_shift
12807 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12808 ac_need_defaults=false;;
12809 --header | --heade | --head | --hea )
12810 $ac_shift
12811 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12812 ac_need_defaults=false;;
12813 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12814 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12815 ac_cs_silent=: ;;
12816
12817 # This is an error.
12818 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12819Try \`$0 --help' for more information." >&5
12820echo "$as_me: error: unrecognized option: $1
12821Try \`$0 --help' for more information." >&2;}
12822 { (exit 1); exit 1; }; } ;;
12823
12824 *) ac_config_targets="$ac_config_targets $1" ;;
12825
376a0e54 12826 esac
c6b750e1 12827 shift
376a0e54
CM
12828done
12829
c6b750e1 12830ac_configure_extra_args=
376a0e54 12831
c6b750e1
DJ
12832if $ac_cs_silent; then
12833 exec 6>/dev/null
12834 ac_configure_extra_args="$ac_configure_extra_args --silent"
12835fi
376a0e54 12836
c6b750e1
DJ
12837_ACEOF
12838cat >>$CONFIG_STATUS <<_ACEOF
12839if \$ac_cs_recheck; then
12840 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12841 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12842fi
12843
12844_ACEOF
12845
12846
12847
12848
12849
12850cat >>$CONFIG_STATUS <<\_ACEOF
12851for ac_config_target in $ac_config_targets
12852do
12853 case "$ac_config_target" in
12854 # Handling of arguments.
12855 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12856 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12857echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12858 { (exit 1); exit 1; }; };;
12859 esac
12860done
12861
12862# If the user did not use the arguments to specify the items to instantiate,
12863# then the envvar interface is used. Set only those that are not.
12864# We use the long form for the default assignment because of an extremely
12865# bizarre bug on SunOS 4.1.3.
12866if $ac_need_defaults; then
12867 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12868fi
12869
12870# Have a temporary directory for convenience. Make it in the build tree
12871# simply because there is no reason to put it here, and in addition,
12872# creating and moving files from /tmp can sometimes cause problems.
12873# Create a temporary directory, and hook for its removal unless debugging.
12874$debug ||
12875{
12876 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12877 trap '{ (exit 1); exit 1; }' 1 2 13 15
12878}
12879
12880# Create a (secure) tmp directory for tmp files.
12881
12882{
12883 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12884 test -n "$tmp" && test -d "$tmp"
12885} ||
12886{
12887 tmp=./confstat$$-$RANDOM
12888 (umask 077 && mkdir $tmp)
12889} ||
12890{
12891 echo "$me: cannot create a temporary directory in ." >&2
12892 { (exit 1); exit 1; }
12893}
12894
12895_ACEOF
12896
12897cat >>$CONFIG_STATUS <<_ACEOF
12898
12899#
12900# CONFIG_FILES section.
12901#
12902
12903# No need to generate the scripts if there are no CONFIG_FILES.
12904# This happens for instance when ./config.status config.h
12905if test -n "\$CONFIG_FILES"; then
12906 # Protect against being on the right side of a sed subst in config.status.
12907 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12908 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12909s,@SHELL@,$SHELL,;t t
12910s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12911s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12912s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12913s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12914s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12915s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12916s,@exec_prefix@,$exec_prefix,;t t
12917s,@prefix@,$prefix,;t t
12918s,@program_transform_name@,$program_transform_name,;t t
12919s,@bindir@,$bindir,;t t
12920s,@sbindir@,$sbindir,;t t
12921s,@libexecdir@,$libexecdir,;t t
12922s,@datadir@,$datadir,;t t
12923s,@sysconfdir@,$sysconfdir,;t t
12924s,@sharedstatedir@,$sharedstatedir,;t t
12925s,@localstatedir@,$localstatedir,;t t
12926s,@libdir@,$libdir,;t t
12927s,@includedir@,$includedir,;t t
12928s,@oldincludedir@,$oldincludedir,;t t
12929s,@infodir@,$infodir,;t t
12930s,@mandir@,$mandir,;t t
12931s,@build_alias@,$build_alias,;t t
12932s,@host_alias@,$host_alias,;t t
12933s,@target_alias@,$target_alias,;t t
12934s,@DEFS@,$DEFS,;t t
12935s,@ECHO_C@,$ECHO_C,;t t
12936s,@ECHO_N@,$ECHO_N,;t t
12937s,@ECHO_T@,$ECHO_T,;t t
12938s,@LIBS@,$LIBS,;t t
5b553f7e 12939s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
c6b750e1
DJ
12940s,@build@,$build,;t t
12941s,@build_cpu@,$build_cpu,;t t
12942s,@build_vendor@,$build_vendor,;t t
12943s,@build_os@,$build_os,;t t
12944s,@build_noncanonical@,$build_noncanonical,;t t
12945s,@host_noncanonical@,$host_noncanonical,;t t
12946s,@target_noncanonical@,$target_noncanonical,;t t
12947s,@host@,$host,;t t
12948s,@host_cpu@,$host_cpu,;t t
12949s,@host_vendor@,$host_vendor,;t t
12950s,@host_os@,$host_os,;t t
12951s,@target@,$target,;t t
12952s,@target_cpu@,$target_cpu,;t t
12953s,@target_vendor@,$target_vendor,;t t
12954s,@target_os@,$target_os,;t t
12955s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12956s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12957s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12958s,@LN@,$LN,;t t
12959s,@LN_S@,$LN_S,;t t
c6b750e1
DJ
12960s,@build_libsubdir@,$build_libsubdir,;t t
12961s,@build_subdir@,$build_subdir,;t t
12962s,@host_subdir@,$host_subdir,;t t
12963s,@target_subdir@,$target_subdir,;t t
12964s,@CC@,$CC,;t t
12965s,@CFLAGS@,$CFLAGS,;t t
12966s,@LDFLAGS@,$LDFLAGS,;t t
12967s,@CPPFLAGS@,$CPPFLAGS,;t t
12968s,@ac_ct_CC@,$ac_ct_CC,;t t
12969s,@EXEEXT@,$EXEEXT,;t t
12970s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12971s,@CXX@,$CXX,;t t
12972s,@CXXFLAGS@,$CXXFLAGS,;t t
12973s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12974s,@GNATBIND@,$GNATBIND,;t t
12975s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12976s,@GNATMAKE@,$GNATMAKE,;t t
12977s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12978s,@do_compare@,$do_compare,;t t
12979s,@gmplibs@,$gmplibs,;t t
12980s,@gmpinc@,$gmpinc,;t t
12981s,@stage1_languages@,$stage1_languages,;t t
12982s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 12983s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
7f6ef0c0
PB
12984s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
12985s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
c6b750e1 12986s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
3bbd2f8f 12987s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
c6b750e1
DJ
12988s,@tooldir@,$tooldir,;t t
12989s,@build_tooldir@,$build_tooldir,;t t
12990s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12991s,@GDB_TK@,$GDB_TK,;t t
12992s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12993s,@build_configargs@,$build_configargs,;t t
12994s,@build_configdirs@,$build_configdirs,;t t
12995s,@host_configargs@,$host_configargs,;t t
12996s,@configdirs@,$configdirs,;t t
12997s,@target_configargs@,$target_configargs,;t t
1576798e
PB
12998s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
12999s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
c6b750e1 13000s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
1576798e
PB
13001s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
13002s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13003s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13004s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13005s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13006s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13007s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13008s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13009s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13010s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13011s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13012s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
c6b750e1
DJ
13013s,@config_shell@,$config_shell,;t t
13014s,@YACC@,$YACC,;t t
13015s,@BISON@,$BISON,;t t
13016s,@M4@,$M4,;t t
13017s,@LEX@,$LEX,;t t
13018s,@FLEX@,$FLEX,;t t
13019s,@MAKEINFO@,$MAKEINFO,;t t
13020s,@EXPECT@,$EXPECT,;t t
13021s,@RUNTEST@,$RUNTEST,;t t
13022s,@AR@,$AR,;t t
13023s,@AS@,$AS,;t t
13024s,@DLLTOOL@,$DLLTOOL,;t t
13025s,@LD@,$LD,;t t
13026s,@LIPO@,$LIPO,;t t
13027s,@NM@,$NM,;t t
13028s,@RANLIB@,$RANLIB,;t t
13029s,@STRIP@,$STRIP,;t t
13030s,@WINDRES@,$WINDRES,;t t
0c24b341 13031s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
13032s,@OBJCOPY@,$OBJCOPY,;t t
13033s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1
DJ
13034s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13035s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13036s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13037s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13038s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13039s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13040s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13041s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13042s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13043s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13044s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13045s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13046s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13047s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13048s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 13049s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
13050s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13051s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13052s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13053s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13054s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13055s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13056s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13057s,@MAINT@,$MAINT,;t t
13058s,@stage1_cflags@,$stage1_cflags,;t t
13059s,@stage1_checking@,$stage1_checking,;t t
13060s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13061s,@datarootdir@,$datarootdir,;t t
13062s,@docdir@,$docdir,;t t
a3ca38d2 13063s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
13064s,@htmldir@,$htmldir,;t t
13065s,@LIBOBJS@,$LIBOBJS,;t t
13066s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 13067/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 13068s,@serialization_dependencies@,,;t t
a0da8069 13069/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 13070s,@host_makefile_frag@,,;t t
a0da8069 13071/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 13072s,@target_makefile_frag@,,;t t
a0da8069 13073/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 13074s,@alphaieee_frag@,,;t t
a0da8069 13075/@ospace_frag@/r $ospace_frag
c6b750e1 13076s,@ospace_frag@,,;t t
a0da8069 13077CEOF
252b5132 13078
c6b750e1
DJ
13079_ACEOF
13080
13081 cat >>$CONFIG_STATUS <<\_ACEOF
13082 # Split the substitutions into bite-sized pieces for seds with
13083 # small command number limits, like on Digital OSF/1 and HP-UX.
13084 ac_max_sed_lines=48
13085 ac_sed_frag=1 # Number of current file.
13086 ac_beg=1 # First line for current file.
13087 ac_end=$ac_max_sed_lines # Line after last line for current file.
13088 ac_more_lines=:
13089 ac_sed_cmds=
13090 while $ac_more_lines; do
13091 if test $ac_beg -gt 1; then
13092 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13093 else
13094 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13095 fi
13096 if test ! -s $tmp/subs.frag; then
13097 ac_more_lines=false
a0da8069 13098 else
c6b750e1
DJ
13099 # The purpose of the label and of the branching condition is to
13100 # speed up the sed processing (if there are no `@' at all, there
13101 # is no need to browse any of the substitutions).
13102 # These are the two extra sed commands mentioned above.
13103 (echo ':t
13104 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13105 if test -z "$ac_sed_cmds"; then
13106 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13107 else
13108 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13109 fi
13110 ac_sed_frag=`expr $ac_sed_frag + 1`
13111 ac_beg=$ac_end
13112 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 13113 fi
c6b750e1
DJ
13114 done
13115 if test -z "$ac_sed_cmds"; then
13116 ac_sed_cmds=cat
852e5f18 13117 fi
c6b750e1 13118fi # test -n "$CONFIG_FILES"
cac3d6c4 13119
c6b750e1
DJ
13120_ACEOF
13121cat >>$CONFIG_STATUS <<\_ACEOF
13122for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 13123 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
13124 case $ac_file in
13125 - | *:- | *:-:* ) # input from stdin
13126 cat >$tmp/stdin
13127 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13128 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13129 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13130 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13131 * ) ac_file_in=$ac_file.in ;;
a0da8069 13132 esac
252b5132 13133
c6b750e1
DJ
13134 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13135 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13136$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13137 X"$ac_file" : 'X\(//\)[^/]' \| \
13138 X"$ac_file" : 'X\(//\)$' \| \
13139 X"$ac_file" : 'X\(/\)' \| \
13140 . : '\(.\)' 2>/dev/null ||
13141echo X"$ac_file" |
13142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13143 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13144 /^X\(\/\/\)$/{ s//\1/; q; }
13145 /^X\(\/\).*/{ s//\1/; q; }
13146 s/.*/./; q'`
13147 { if $as_mkdir_p; then
13148 mkdir -p "$ac_dir"
cac3d6c4 13149 else
c6b750e1
DJ
13150 as_dir="$ac_dir"
13151 as_dirs=
13152 while test ! -d "$as_dir"; do
13153 as_dirs="$as_dir $as_dirs"
13154 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13155$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13156 X"$as_dir" : 'X\(//\)[^/]' \| \
13157 X"$as_dir" : 'X\(//\)$' \| \
13158 X"$as_dir" : 'X\(/\)' \| \
13159 . : '\(.\)' 2>/dev/null ||
13160echo X"$as_dir" |
13161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13162 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13163 /^X\(\/\/\)$/{ s//\1/; q; }
13164 /^X\(\/\).*/{ s//\1/; q; }
13165 s/.*/./; q'`
13166 done
13167 test ! -n "$as_dirs" || mkdir $as_dirs
13168 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13169echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13170 { (exit 1); exit 1; }; }; }
13171
13172 ac_builddir=.
252b5132 13173
c6b750e1
DJ
13174if test "$ac_dir" != .; then
13175 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13176 # A "../" for each directory in $ac_dir_suffix.
13177 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13178else
13179 ac_dir_suffix= ac_top_builddir=
13180fi
13181
13182case $srcdir in
13183 .) # No --srcdir option. We are building in place.
13184 ac_srcdir=.
13185 if test -z "$ac_top_builddir"; then
13186 ac_top_srcdir=.
13187 else
13188 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13189 fi ;;
13190 [\\/]* | ?:[\\/]* ) # Absolute path.
13191 ac_srcdir=$srcdir$ac_dir_suffix;
13192 ac_top_srcdir=$srcdir ;;
a0da8069 13193 *) # Relative path.
c6b750e1
DJ
13194 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13195 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13196esac
252b5132 13197
c6b750e1
DJ
13198# Do not use `cd foo && pwd` to compute absolute paths, because
13199# the directories may not exist.
13200case `pwd` in
13201.) ac_abs_builddir="$ac_dir";;
13202*)
13203 case "$ac_dir" in
13204 .) ac_abs_builddir=`pwd`;;
13205 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13206 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13207 esac;;
13208esac
13209case $ac_abs_builddir in
13210.) ac_abs_top_builddir=${ac_top_builddir}.;;
13211*)
13212 case ${ac_top_builddir}. in
13213 .) ac_abs_top_builddir=$ac_abs_builddir;;
13214 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13215 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13216 esac;;
13217esac
13218case $ac_abs_builddir in
13219.) ac_abs_srcdir=$ac_srcdir;;
13220*)
13221 case $ac_srcdir in
13222 .) ac_abs_srcdir=$ac_abs_builddir;;
13223 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13224 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13225 esac;;
13226esac
13227case $ac_abs_builddir in
13228.) ac_abs_top_srcdir=$ac_top_srcdir;;
13229*)
13230 case $ac_top_srcdir in
13231 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13232 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13233 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13234 esac;;
13235esac
252b5132 13236
c6b750e1
DJ
13237
13238 case $INSTALL in
13239 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13240 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13241 esac
252b5132 13242
c6b750e1
DJ
13243 if test x"$ac_file" != x-; then
13244 { echo "$as_me:$LINENO: creating $ac_file" >&5
13245echo "$as_me: creating $ac_file" >&6;}
13246 rm -f "$ac_file"
13247 fi
13248 # Let's still pretend it is `configure' which instantiates (i.e., don't
13249 # use $as_me), people would be surprised to read:
13250 # /* config.h. Generated by config.status. */
13251 if test x"$ac_file" = x-; then
13252 configure_input=
13253 else
13254 configure_input="$ac_file. "
13255 fi
13256 configure_input=$configure_input"Generated from `echo $ac_file_in |
13257 sed 's,.*/,,'` by configure."
13258
13259 # First look for the input files in the build tree, otherwise in the
13260 # src tree.
13261 ac_file_inputs=`IFS=:
13262 for f in $ac_file_in; do
13263 case $f in
13264 -) echo $tmp/stdin ;;
13265 [\\/$]*)
13266 # Absolute (can't be DOS-style, as IFS=:)
13267 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13268echo "$as_me: error: cannot find input file: $f" >&2;}
13269 { (exit 1); exit 1; }; }
13270 echo "$f";;
13271 *) # Relative
13272 if test -f "$f"; then
13273 # Build tree
13274 echo "$f"
13275 elif test -f "$srcdir/$f"; then
13276 # Source tree
13277 echo "$srcdir/$f"
13278 else
13279 # /dev/null tree
13280 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13281echo "$as_me: error: cannot find input file: $f" >&2;}
13282 { (exit 1); exit 1; }; }
13283 fi;;
13284 esac
13285 done` || { (exit 1); exit 1; }
13286_ACEOF
13287cat >>$CONFIG_STATUS <<_ACEOF
13288 sed "$ac_vpsub
13289$extrasub
13290_ACEOF
13291cat >>$CONFIG_STATUS <<\_ACEOF
13292:t
13293/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13294s,@configure_input@,$configure_input,;t t
13295s,@srcdir@,$ac_srcdir,;t t
13296s,@abs_srcdir@,$ac_abs_srcdir,;t t
13297s,@top_srcdir@,$ac_top_srcdir,;t t
13298s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13299s,@builddir@,$ac_builddir,;t t
13300s,@abs_builddir@,$ac_abs_builddir,;t t
13301s,@top_builddir@,$ac_top_builddir,;t t
13302s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13303s,@INSTALL@,$ac_INSTALL,;t t
13304" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13305 rm -f $tmp/stdin
13306 if test x"$ac_file" != x-; then
13307 mv $tmp/out $ac_file
13308 else
13309 cat $tmp/out
13310 rm -f $tmp/out
13311 fi
c148b4cb 13312
c6b750e1
DJ
13313done
13314_ACEOF
c148b4cb 13315
c6b750e1 13316cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13317
c6b750e1
DJ
13318{ (exit 0); exit 0; }
13319_ACEOF
c148b4cb 13320chmod +x $CONFIG_STATUS
c6b750e1
DJ
13321ac_clean_files=$ac_clean_files_save
13322
13323
13324# configure is writing to config.log, and then calls config.status.
13325# config.status does its own redirection, appending to config.log.
13326# Unfortunately, on DOS this fails, as config.log is still kept open
13327# by configure, so config.status won't be able to write to it; its
13328# output is simply discarded. So we exec the FD to /dev/null,
13329# effectively closing config.log, so it can be properly (re)opened and
13330# appended to by config.status. When coming back to configure, we
13331# need to make the FD available again.
13332if test "$no_create" != yes; then
13333 ac_cs_success=:
13334 ac_config_status_args=
13335 test "$silent" = yes &&
13336 ac_config_status_args="$ac_config_status_args --quiet"
13337 exec 5>/dev/null
13338 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13339 exec 5>>config.log
13340 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13341 # would make configure fail if this is the last instruction.
13342 $ac_cs_success || { (exit 1); exit 1; }
13343fi
c148b4cb 13344
This page took 1.150879 seconds and 4 git commands to generate.