PR gdb/921
[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"
bb52de30 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 CPPFLAGS_FOR_TARGET LDFLAGS_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 CPPFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
c6b750e1 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
7a283e07 277ac_pwd=`pwd`
a0da8069
NN
278
279# Initialize some variables set by options.
c6b750e1
DJ
280ac_init_help=
281ac_init_version=false
a0da8069
NN
282# The variables have the same names as the options, with
283# dashes changed to underlines.
c6b750e1 284cache_file=/dev/null
a0da8069 285exec_prefix=NONE
a0da8069 286no_create=
a0da8069
NN
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
a0da8069
NN
295verbose=
296x_includes=NONE
297x_libraries=NONE
c6b750e1
DJ
298
299# Installation directory options.
300# These are left unexpanded so users can "make install exec_prefix=/foo"
301# and all the variables that are supposed to be based on exec_prefix
302# by default will actually change.
303# Use braces instead of parens because sh, perl, etc. also accept them.
a0da8069
NN
304bindir='${exec_prefix}/bin'
305sbindir='${exec_prefix}/sbin'
306libexecdir='${exec_prefix}/libexec'
307datadir='${prefix}/share'
308sysconfdir='${prefix}/etc'
309sharedstatedir='${prefix}/com'
310localstatedir='${prefix}/var'
311libdir='${exec_prefix}/lib'
312includedir='${prefix}/include'
313oldincludedir='/usr/include'
314infodir='${prefix}/info'
315mandir='${prefix}/man'
252b5132 316
a0da8069
NN
317ac_prev=
318for ac_option
319do
a0da8069
NN
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
323 ac_prev=
324 continue
325 fi
252b5132 326
c6b750e1 327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
a0da8069
NN
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
c6b750e1 331 case $ac_option in
a0da8069
NN
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 336 bindir=$ac_optarg ;;
a0da8069
NN
337
338 -build | --build | --buil | --bui | --bu)
c6b750e1 339 ac_prev=build_alias ;;
a0da8069 340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 341 build_alias=$ac_optarg ;;
a0da8069
NN
342
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
a0da8069
NN
352
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 ac_prev=datadir ;;
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
c6b750e1 357 datadir=$ac_optarg ;;
a0da8069
NN
358
359 -disable-* | --disable-*)
c6b750e1 360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 361 # Reject names that are not valid shell variable names.
c6b750e1
DJ
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
a0da8069
NN
367
368 -enable-* | --enable-*)
c6b750e1 369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 370 # Reject names that are not valid shell variable names.
c6b750e1
DJ
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
377 *) ac_optarg=yes ;;
378 esac
c6b750e1 379 eval "enable_$ac_feature='$ac_optarg'" ;;
a0da8069
NN
380
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
c6b750e1 388 exec_prefix=$ac_optarg ;;
a0da8069
NN
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
c6b750e1
DJ
394 -help | --help | --hel | --he | -h)
395 ac_init_help=long ;;
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
a0da8069
NN
400
401 -host | --host | --hos | --ho)
c6b750e1 402 ac_prev=host_alias ;;
a0da8069 403 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 404 host_alias=$ac_optarg ;;
a0da8069
NN
405
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 411 includedir=$ac_optarg ;;
a0da8069
NN
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 416 infodir=$ac_optarg ;;
a0da8069
NN
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 421 libdir=$ac_optarg ;;
a0da8069
NN
422
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
c6b750e1 428 libexecdir=$ac_optarg ;;
a0da8069
NN
429
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
c6b750e1 437 localstatedir=$ac_optarg ;;
a0da8069
NN
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 442 mandir=$ac_optarg ;;
a0da8069
NN
443
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
447
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 449 | --no-cr | --no-c | -n)
a0da8069
NN
450 no_create=yes ;;
451
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454 no_recursion=yes ;;
455
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 463 oldincludedir=$ac_optarg ;;
a0da8069
NN
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 468 prefix=$ac_optarg ;;
a0da8069
NN
469
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 475 program_prefix=$ac_optarg ;;
a0da8069
NN
476
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 482 program_suffix=$ac_optarg ;;
a0da8069
NN
483
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 499 program_transform_name=$ac_optarg ;;
a0da8069
NN
500
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
504
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 ac_prev=sbindir ;;
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 | --sbi=* | --sb=*)
c6b750e1 509 sbindir=$ac_optarg ;;
a0da8069
NN
510
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
514 | --sha | --sh)
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 | --sha=* | --sh=*)
c6b750e1 520 sharedstatedir=$ac_optarg ;;
a0da8069
NN
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
c6b750e1 525 site=$ac_optarg ;;
a0da8069
NN
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 530 srcdir=$ac_optarg ;;
a0da8069
NN
531
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 537 sysconfdir=$ac_optarg ;;
a0da8069
NN
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 540 ac_prev=target_alias ;;
a0da8069 541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 542 target_alias=$ac_optarg ;;
a0da8069
NN
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
c6b750e1
DJ
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
a0da8069
NN
549
550 -with-* | --with-*)
c6b750e1 551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 552 # Reject names that are not valid shell variable names.
c6b750e1
DJ
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
a0da8069 556 ac_package=`echo $ac_package| sed 's/-/_/g'`
c6b750e1
DJ
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
559 *) ac_optarg=yes ;;
560 esac
c6b750e1 561 eval "with_$ac_package='$ac_optarg'" ;;
a0da8069
NN
562
563 -without-* | --without-*)
c6b750e1 564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 565 # Reject names that are not valid shell variable names.
c6b750e1
DJ
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
a0da8069
NN
571
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
575
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 581 x_includes=$ac_optarg ;;
a0da8069
NN
582
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 588 x_libraries=$ac_optarg ;;
a0da8069 589
c6b750e1
DJ
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
a0da8069
NN
593 ;;
594
c6b750e1
DJ
595 *=*)
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
603 export $ac_envvar ;;
604
a0da8069 605 *)
c6b750e1
DJ
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
611 ;;
612
613 esac
614done
615
616if test -n "$ac_prev"; then
c6b750e1
DJ
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
a0da8069 620fi
a0da8069 621
c6b750e1
DJ
622# Be sure to have absolute paths.
623for ac_var in exec_prefix prefix
624do
625 eval ac_val=$`echo $ac_var`
626 case $ac_val in
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
630 esac
631done
a0da8069 632
c6b750e1
DJ
633# Be sure to have absolute paths.
634for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
a0da8069 636do
c6b750e1
DJ
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
a0da8069
NN
642 esac
643done
644
c6b750e1
DJ
645# There might be people who depend on the old broken behavior: `$host'
646# used to hold the argument of --host etc.
647# FIXME: To remove some day.
648build=$build_alias
649host=$host_alias
650target=$target_alias
376a0e54 651
c6b750e1
DJ
652# FIXME: To remove some day.
653if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
659 cross_compiling=yes
660 fi
661fi
662
663ac_tool_prefix=
664test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666test "$silent" = yes && exec 6>/dev/null
a0da8069 667
a0da8069
NN
668
669# Find the source files, if location was not specified.
670if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
c6b750e1
DJ
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
679echo X"$0" |
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
a0da8069
NN
685 srcdir=$ac_confdir
686 if test ! -r $srcdir/$ac_unique_file; then
687 srcdir=..
688 fi
689else
690 ac_srcdir_defaulted=no
691fi
692if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
c6b750e1
DJ
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
a0da8069 696 else
c6b750e1
DJ
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
699 fi
700fi
701(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705ac_env_build_alias_set=${build_alias+set}
706ac_env_build_alias_value=$build_alias
707ac_cv_env_build_alias_set=${build_alias+set}
708ac_cv_env_build_alias_value=$build_alias
709ac_env_host_alias_set=${host_alias+set}
710ac_env_host_alias_value=$host_alias
711ac_cv_env_host_alias_set=${host_alias+set}
712ac_cv_env_host_alias_value=$host_alias
713ac_env_target_alias_set=${target_alias+set}
714ac_env_target_alias_value=$target_alias
715ac_cv_env_target_alias_set=${target_alias+set}
716ac_cv_env_target_alias_value=$target_alias
9cc8ae67
PB
717ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
718
c6b750e1
DJ
719ac_env_CC_set=${CC+set}
720ac_env_CC_value=$CC
721ac_cv_env_CC_set=${CC+set}
722ac_cv_env_CC_value=$CC
723ac_env_CFLAGS_set=${CFLAGS+set}
724ac_env_CFLAGS_value=$CFLAGS
725ac_cv_env_CFLAGS_set=${CFLAGS+set}
726ac_cv_env_CFLAGS_value=$CFLAGS
727ac_env_LDFLAGS_set=${LDFLAGS+set}
728ac_env_LDFLAGS_value=$LDFLAGS
729ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
730ac_cv_env_LDFLAGS_value=$LDFLAGS
731ac_env_CPPFLAGS_set=${CPPFLAGS+set}
732ac_env_CPPFLAGS_value=$CPPFLAGS
733ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
734ac_cv_env_CPPFLAGS_value=$CPPFLAGS
18f6b6ee
PB
735ac_env_CXX_set=${CXX+set}
736ac_env_CXX_value=$CXX
737ac_cv_env_CXX_set=${CXX+set}
738ac_cv_env_CXX_value=$CXX
739ac_env_CXXFLAGS_set=${CXXFLAGS+set}
740ac_env_CXXFLAGS_value=$CXXFLAGS
741ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
742ac_cv_env_CXXFLAGS_value=$CXXFLAGS
9a819804
AO
743ac_env_AR_set=${AR+set}
744ac_env_AR_value=$AR
745ac_cv_env_AR_set=${AR+set}
746ac_cv_env_AR_value=$AR
747ac_env_AS_set=${AS+set}
748ac_env_AS_value=$AS
749ac_cv_env_AS_set=${AS+set}
750ac_cv_env_AS_value=$AS
751ac_env_DLLTOOL_set=${DLLTOOL+set}
752ac_env_DLLTOOL_value=$DLLTOOL
753ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
754ac_cv_env_DLLTOOL_value=$DLLTOOL
755ac_env_LD_set=${LD+set}
756ac_env_LD_value=$LD
757ac_cv_env_LD_set=${LD+set}
758ac_cv_env_LD_value=$LD
759ac_env_LIPO_set=${LIPO+set}
760ac_env_LIPO_value=$LIPO
761ac_cv_env_LIPO_set=${LIPO+set}
762ac_cv_env_LIPO_value=$LIPO
763ac_env_NM_set=${NM+set}
764ac_env_NM_value=$NM
765ac_cv_env_NM_set=${NM+set}
766ac_cv_env_NM_value=$NM
767ac_env_RANLIB_set=${RANLIB+set}
768ac_env_RANLIB_value=$RANLIB
769ac_cv_env_RANLIB_set=${RANLIB+set}
770ac_cv_env_RANLIB_value=$RANLIB
771ac_env_STRIP_set=${STRIP+set}
772ac_env_STRIP_value=$STRIP
773ac_cv_env_STRIP_set=${STRIP+set}
774ac_cv_env_STRIP_value=$STRIP
775ac_env_WINDRES_set=${WINDRES+set}
776ac_env_WINDRES_value=$WINDRES
777ac_cv_env_WINDRES_set=${WINDRES+set}
778ac_cv_env_WINDRES_value=$WINDRES
0c24b341
NC
779ac_env_WINDMC_set=${WINDMC+set}
780ac_env_WINDMC_value=$WINDMC
781ac_cv_env_WINDMC_set=${WINDMC+set}
782ac_cv_env_WINDMC_value=$WINDMC
9a819804
AO
783ac_env_OBJCOPY_set=${OBJCOPY+set}
784ac_env_OBJCOPY_value=$OBJCOPY
785ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
786ac_cv_env_OBJCOPY_value=$OBJCOPY
787ac_env_OBJDUMP_set=${OBJDUMP+set}
788ac_env_OBJDUMP_value=$OBJDUMP
789ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
790ac_cv_env_OBJDUMP_value=$OBJDUMP
791ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
792ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
793ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
794ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
795ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
796ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
797ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
798ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
799ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
800ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
801ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
802ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
803ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
804ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
805ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
806ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
807ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
808ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
809ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
810ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
811ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
812ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
813ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
814ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
815ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
816ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
817ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
818ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
819ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
820ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
821ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
822ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
823ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
824ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
825ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
826ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
827ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
828ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
829ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
830ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
831ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
832ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
833ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
834ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
835ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
836ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
837ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
838ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
839ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
840ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
841ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
842ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
843ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
844ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
845ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
846ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
847ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
848ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
849ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
850ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
0c24b341
NC
851ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
852ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
853ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
854ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
c6b750e1
DJ
855
856#
857# Report the --help message.
858#
859if test "$ac_init_help" = "long"; then
860 # Omit some internal or obsolete options to make the list less imposing.
861 # This message is too long to be a string in the A/UX 3.1 sh.
862 cat <<_ACEOF
863\`configure' configures this package to adapt to many kinds of systems.
864
865Usage: $0 [OPTION]... [VAR=VALUE]...
866
867To assign environment variables (e.g., CC, CFLAGS...), specify them as
868VAR=VALUE. See below for descriptions of some of the useful variables.
869
870Defaults for the options are specified in brackets.
871
872Configuration:
873 -h, --help display this help and exit
874 --help=short display options specific to this package
875 --help=recursive display the short help of all the included packages
876 -V, --version display version information and exit
877 -q, --quiet, --silent do not print \`checking...' messages
878 --cache-file=FILE cache test results in FILE [disabled]
879 -C, --config-cache alias for \`--cache-file=config.cache'
880 -n, --no-create do not create output files
881 --srcdir=DIR find the sources in DIR [configure dir or \`..']
882
883_ACEOF
884
885 cat <<_ACEOF
886Installation directories:
887 --prefix=PREFIX install architecture-independent files in PREFIX
888 [$ac_default_prefix]
889 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
890 [PREFIX]
891
892By default, \`make install' will install all the files in
893\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
894an installation prefix other than \`$ac_default_prefix' using \`--prefix',
895for instance \`--prefix=\$HOME'.
896
897For better control, use the options below.
898
899Fine tuning of the installation directories:
900 --bindir=DIR user executables [EPREFIX/bin]
901 --sbindir=DIR system admin executables [EPREFIX/sbin]
902 --libexecdir=DIR program executables [EPREFIX/libexec]
903 --datadir=DIR read-only architecture-independent data [PREFIX/share]
904 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
905 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
906 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
907 --libdir=DIR object code libraries [EPREFIX/lib]
908 --includedir=DIR C header files [PREFIX/include]
909 --oldincludedir=DIR C header files for non-gcc [/usr/include]
910 --infodir=DIR info documentation [PREFIX/info]
911 --mandir=DIR man documentation [PREFIX/man]
912_ACEOF
913
914 cat <<\_ACEOF
915
916Program names:
917 --program-prefix=PREFIX prepend PREFIX to installed program names
918 --program-suffix=SUFFIX append SUFFIX to installed program names
919 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
920
921System types:
922 --build=BUILD configure for building on BUILD [guessed]
923 --host=HOST cross-compile to build programs to run on HOST [BUILD]
924 --target=TARGET configure for building compilers for TARGET [HOST]
925_ACEOF
a0da8069 926fi
a0da8069 927
c6b750e1
DJ
928if test -n "$ac_init_help"; then
929
930 cat <<\_ACEOF
931
932Optional Features:
933 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
934 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
93f9b408 935 --enable-gold use gold instead of ld
521ec477
DD
936 --enable-libada build libada directory
937 --enable-libssp build libssp directory
938 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 939 stage1. Mostly useful for compiler development.
521ec477
DD
940 --enable-objc-gc enable use of Boehm's garbage collector with the
941 GNU Objective-C runtime
942 --enable-bootstrap enable bootstrapping [yes if native build]
943 --enable-serial-[{host,target,build}-]configure
944 force sequential configuration of
c6b750e1 945 sub-packages for the host, target or build
521ec477 946 machine, or all sub-packages
c6b750e1
DJ
947 --enable-maintainer-mode enable make rules and dependencies not useful
948 (and sometimes confusing) to the casual installer
521ec477
DD
949 --enable-stage1-checking[=all] choose additional checking for stage1
950 of the compiler
c6b750e1
DJ
951 --enable-werror enable -Werror in bootstrap stage2 and later
952
953Optional Packages:
954 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
955 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
956 --with-build-libsubdir=DIR Directory where to find libraries for build system
521ec477
DD
957 --with-mpfr-dir=PATH this option has been REMOVED
958 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
959 Equivalent to --with-mpfr-include=PATH/include
960 plus --with-mpfr-lib=PATH/lib
961 --with-mpfr-include=PATH
521ec477
DD
962 specify directory for installed MPFR include files
963 --with-mpfr-lib=PATH specify directory for the installed MPFR library
964 --with-gmp-dir=PATH this option has been REMOVED
965 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
966 Equivalent to --with-gmp-include=PATH/include
967 plus --with-gmp-lib=PATH/lib
521ec477
DD
968 --with-gmp-include=PATH specify directory for installed GMP include files
969 --with-gmp-lib=PATH specify directory for the installed GMP library
970 --with-build-sysroot=SYSROOT
c6b750e1 971 use sysroot as the system root during the build
8a6ee3ab
JM
972 --with-debug-prefix-map='A=B C=D ...'
973 map A to B, C to D ... in debug information
521ec477 974 --with-build-time-tools=PATH
c6b750e1 975 use given path to find target tools during the build
521ec477
DD
976 --with-datarootdir use datarootdir as the data root directory.
977 --with-docdir install documentation in this directory.
978 --with-pdfdir install pdf in this directory.
979 --with-htmldir install html in this directory.
c6b750e1
DJ
980
981Some influential environment variables:
982 CC C compiler command
983 CFLAGS C compiler flags
984 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
985 nonstandard directory <lib dir>
986 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
987 headers in a nonstandard directory <include dir>
18f6b6ee
PB
988 CXX C++ compiler command
989 CXXFLAGS C++ compiler flags
9a819804
AO
990 AR AR for the host
991 AS AS for the host
992 DLLTOOL DLLTOOL for the host
993 LD LD for the host
994 LIPO LIPO for the host
995 NM NM for the host
996 RANLIB RANLIB for the host
997 STRIP STRIP for the host
998 WINDRES WINDRES for the host
0c24b341 999 WINDMC WINDMC for the host
9a819804
AO
1000 OBJCOPY OBJCOPY for the host
1001 OBJDUMP OBJDUMP for the host
1002 CC_FOR_TARGET
1003 CC for the target
1004 CXX_FOR_TARGET
1005 CXX for the target
1006 GCC_FOR_TARGET
1007 GCC for the target
1008 GCJ_FOR_TARGET
1009 GCJ for the target
1010 GFORTRAN_FOR_TARGET
1011 GFORTRAN for the target
1012 AR_FOR_TARGET
1013 AR for the target
1014 AS_FOR_TARGET
1015 AS for the target
1016 DLLTOOL_FOR_TARGET
1017 DLLTOOL for the target
1018 LD_FOR_TARGET
1019 LD for the target
1020 LIPO_FOR_TARGET
1021 LIPO for the target
1022 NM_FOR_TARGET
1023 NM for the target
1024 OBJDUMP_FOR_TARGET
1025 OBJDUMP for the target
1026 RANLIB_FOR_TARGET
1027 RANLIB for the target
1028 STRIP_FOR_TARGET
1029 STRIP for the target
1030 WINDRES_FOR_TARGET
1031 WINDRES for the target
0c24b341
NC
1032 WINDMC_FOR_TARGET
1033 WINDMC for the target
c6b750e1
DJ
1034
1035Use these variables to override the choices made by `configure' or to help
1036it to find libraries and programs with nonstandard names/locations.
1037
1038_ACEOF
1039fi
1040
1041if test "$ac_init_help" = "recursive"; then
1042 # If there are subdirs, report their specific --help.
1043 ac_popdir=`pwd`
1044 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1045 test -d $ac_dir || continue
1046 ac_builddir=.
1047
1048if test "$ac_dir" != .; then
1049 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1050 # A "../" for each directory in $ac_dir_suffix.
1051 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1052else
1053 ac_dir_suffix= ac_top_builddir=
1054fi
1055
1056case $srcdir in
1057 .) # No --srcdir option. We are building in place.
1058 ac_srcdir=.
1059 if test -z "$ac_top_builddir"; then
1060 ac_top_srcdir=.
1061 else
1062 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1063 fi ;;
1064 [\\/]* | ?:[\\/]* ) # Absolute path.
1065 ac_srcdir=$srcdir$ac_dir_suffix;
1066 ac_top_srcdir=$srcdir ;;
1067 *) # Relative path.
1068 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1069 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1070esac
1071
1072# Do not use `cd foo && pwd` to compute absolute paths, because
1073# the directories may not exist.
1074case `pwd` in
1075.) ac_abs_builddir="$ac_dir";;
1076*)
1077 case "$ac_dir" in
1078 .) ac_abs_builddir=`pwd`;;
1079 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1080 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1081 esac;;
1082esac
1083case $ac_abs_builddir in
1084.) ac_abs_top_builddir=${ac_top_builddir}.;;
1085*)
1086 case ${ac_top_builddir}. in
1087 .) ac_abs_top_builddir=$ac_abs_builddir;;
1088 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1089 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1090 esac;;
1091esac
1092case $ac_abs_builddir in
1093.) ac_abs_srcdir=$ac_srcdir;;
1094*)
1095 case $ac_srcdir in
1096 .) ac_abs_srcdir=$ac_abs_builddir;;
1097 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1098 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1099 esac;;
1100esac
1101case $ac_abs_builddir in
1102.) ac_abs_top_srcdir=$ac_top_srcdir;;
1103*)
1104 case $ac_top_srcdir in
1105 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1106 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1107 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1108 esac;;
1109esac
1110
1111 cd $ac_dir
1112 # Check for guested configure; otherwise get Cygnus style configure.
1113 if test -f $ac_srcdir/configure.gnu; then
1114 echo
1115 $SHELL $ac_srcdir/configure.gnu --help=recursive
1116 elif test -f $ac_srcdir/configure; then
1117 echo
1118 $SHELL $ac_srcdir/configure --help=recursive
1119 elif test -f $ac_srcdir/configure.ac ||
1120 test -f $ac_srcdir/configure.in; then
1121 echo
1122 $ac_configure --help
1123 else
1124 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1125 fi
1126 cd $ac_popdir
1127 done
1128fi
1129
1130test -n "$ac_init_help" && exit 0
1131if $ac_init_version; then
1132 cat <<\_ACEOF
1133
1134Copyright (C) 2003 Free Software Foundation, Inc.
1135This configure script is free software; the Free Software Foundation
1136gives unlimited permission to copy, distribute and modify it.
1137_ACEOF
1138 exit 0
1139fi
1140exec 5>config.log
1141cat >&5 <<_ACEOF
1142This file contains any messages produced by compilers while
1143running configure, to aid debugging if configure makes a mistake.
1144
1145It was created by $as_me, which was
1146generated by GNU Autoconf 2.59. Invocation command line was
1147
1148 $ $0 $@
1149
1150_ACEOF
1151{
1152cat <<_ASUNAME
1153## --------- ##
1154## Platform. ##
1155## --------- ##
1156
1157hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1158uname -m = `(uname -m) 2>/dev/null || echo unknown`
1159uname -r = `(uname -r) 2>/dev/null || echo unknown`
1160uname -s = `(uname -s) 2>/dev/null || echo unknown`
1161uname -v = `(uname -v) 2>/dev/null || echo unknown`
1162
1163/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1164/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1165
1166/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1167/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1168/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1169hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1170/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1171/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1172/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1173
1174_ASUNAME
1175
1176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1177for as_dir in $PATH
1178do
1179 IFS=$as_save_IFS
1180 test -z "$as_dir" && as_dir=.
1181 echo "PATH: $as_dir"
1182done
1183
1184} >&5
1185
1186cat >&5 <<_ACEOF
1187
1188
1189## ----------- ##
1190## Core tests. ##
1191## ----------- ##
1192
1193_ACEOF
1194
1195
1196# Keep a trace of the command line.
1197# Strip out --no-create and --no-recursion so they do not pile up.
1198# Strip out --silent because we don't want to record it for future runs.
1199# Also quote any args containing shell meta-characters.
1200# Make two passes to allow for proper duplicate-argument suppression.
1201ac_configure_args=
1202ac_configure_args0=
1203ac_configure_args1=
1204ac_sep=
1205ac_must_keep_next=false
1206for ac_pass in 1 2
1207do
1208 for ac_arg
1209 do
1210 case $ac_arg in
1211 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213 | -silent | --silent | --silen | --sile | --sil)
1214 continue ;;
1215 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1216 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1217 esac
1218 case $ac_pass in
1219 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1220 2)
1221 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1222 if test $ac_must_keep_next = true; then
1223 ac_must_keep_next=false # Got value, back to normal.
1224 else
1225 case $ac_arg in
1226 *=* | --config-cache | -C | -disable-* | --disable-* \
1227 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1228 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1229 | -with-* | --with-* | -without-* | --without-* | --x)
1230 case "$ac_configure_args0 " in
1231 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1232 esac
1233 ;;
1234 -* ) ac_must_keep_next=true ;;
1235 esac
1236 fi
1237 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1238 # Get rid of the leading space.
1239 ac_sep=" "
1240 ;;
1241 esac
1242 done
1243done
1244$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1245$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1246
1247# When interrupted or exit'd, cleanup temporary files, and complete
1248# config.log. We remove comments because anyway the quotes in there
1249# would cause problems or look ugly.
1250# WARNING: Be sure not to use single quotes in there, as some shells,
1251# such as our DU 5.0 friend, will then `close' the trap.
1252trap 'exit_status=$?
1253 # Save into config.log some information that might help in debugging.
1254 {
1255 echo
1256
1257 cat <<\_ASBOX
1258## ---------------- ##
1259## Cache variables. ##
1260## ---------------- ##
1261_ASBOX
1262 echo
1263 # The following way of writing the cache mishandles newlines in values,
1264{
1265 (set) 2>&1 |
1266 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1267 *ac_space=\ *)
1268 sed -n \
1269 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1271 ;;
1272 *)
1273 sed -n \
1274 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1275 ;;
1276 esac;
1277}
1278 echo
1279
1280 cat <<\_ASBOX
1281## ----------------- ##
1282## Output variables. ##
1283## ----------------- ##
1284_ASBOX
1285 echo
1286 for ac_var in $ac_subst_vars
1287 do
1288 eval ac_val=$`echo $ac_var`
1289 echo "$ac_var='"'"'$ac_val'"'"'"
1290 done | sort
1291 echo
1292
1293 if test -n "$ac_subst_files"; then
1294 cat <<\_ASBOX
1295## ------------- ##
1296## Output files. ##
1297## ------------- ##
1298_ASBOX
1299 echo
1300 for ac_var in $ac_subst_files
1301 do
1302 eval ac_val=$`echo $ac_var`
1303 echo "$ac_var='"'"'$ac_val'"'"'"
1304 done | sort
1305 echo
1306 fi
1307
1308 if test -s confdefs.h; then
1309 cat <<\_ASBOX
1310## ----------- ##
1311## confdefs.h. ##
1312## ----------- ##
1313_ASBOX
1314 echo
1315 sed "/^$/d" confdefs.h | sort
1316 echo
1317 fi
1318 test "$ac_signal" != 0 &&
1319 echo "$as_me: caught signal $ac_signal"
1320 echo "$as_me: exit $exit_status"
1321 } >&5
1322 rm -f core *.core &&
1323 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1324 exit $exit_status
1325 ' 0
1326for ac_signal in 1 2 13 15; do
1327 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1328done
1329ac_signal=0
1330
1331# confdefs.h avoids OS command line length limits that DEFS can exceed.
1332rm -rf conftest* confdefs.h
1333# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1334echo >confdefs.h
1335
1336# Predefined preprocessor variables.
1337
1338cat >>confdefs.h <<_ACEOF
1339#define PACKAGE_NAME "$PACKAGE_NAME"
1340_ACEOF
1341
1342
1343cat >>confdefs.h <<_ACEOF
1344#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1345_ACEOF
1346
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_VERSION "$PACKAGE_VERSION"
1350_ACEOF
1351
1352
1353cat >>confdefs.h <<_ACEOF
1354#define PACKAGE_STRING "$PACKAGE_STRING"
1355_ACEOF
1356
1357
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1360_ACEOF
1361
1362
1363# Let the site file select an alternate cache file if it wants to.
a0da8069 1364# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1365if test -z "$CONFIG_SITE"; then
1366 if test "x$prefix" != xNONE; then
1367 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1368 else
1369 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1370 fi
1371fi
1372for ac_site_file in $CONFIG_SITE; do
1373 if test -r "$ac_site_file"; then
c6b750e1
DJ
1374 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1375echo "$as_me: loading site script $ac_site_file" >&6;}
1376 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1377 . "$ac_site_file"
1378 fi
1379done
1380
1381if test -r "$cache_file"; then
c6b750e1
DJ
1382 # Some versions of bash will fail to source /dev/null (special
1383 # files actually), so we avoid doing that.
1384 if test -f "$cache_file"; then
1385 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1386echo "$as_me: loading cache $cache_file" >&6;}
1387 case $cache_file in
1388 [\\/]* | ?:[\\/]* ) . $cache_file;;
1389 *) . ./$cache_file;;
1390 esac
1391 fi
a0da8069 1392else
c6b750e1
DJ
1393 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1394echo "$as_me: creating cache $cache_file" >&6;}
1395 >$cache_file
1396fi
1397
1398# Check that the precious variables saved in the cache have kept the same
1399# value.
1400ac_cache_corrupted=false
1401for ac_var in `(set) 2>&1 |
1402 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1403 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1404 eval ac_new_set=\$ac_env_${ac_var}_set
1405 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1406 eval ac_new_val="\$ac_env_${ac_var}_value"
1407 case $ac_old_set,$ac_new_set in
1408 set,)
1409 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1410echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1411 ac_cache_corrupted=: ;;
1412 ,set)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,);;
1417 *)
1418 if test "x$ac_old_val" != "x$ac_new_val"; then
266df637
PB
1419 # differences in whitespace do not lead to failure.
1420 ac_old_val_w=`echo x $ac_old_val`
1421 ac_new_val_w=`echo x $ac_new_val`
1422 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
c6b750e1 1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
266df637
PB
1425 ac_cache_corrupted=:
1426 else
1427 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1428echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1429 eval $ac_var=\$ac_old_val
1430 fi
1431 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1432echo "$as_me: former value: \`$ac_old_val'" >&2;}
1433 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1434echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
1435 fi;;
1436 esac
1437 # Pass precious variables to config.status.
1438 if test "$ac_new_set" = set; then
1439 case $ac_new_val in
1440 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1441 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1442 *) ac_arg=$ac_var=$ac_new_val ;;
1443 esac
1444 case " $ac_configure_args " in
1445 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1446 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1447 esac
1448 fi
1449done
1450if $ac_cache_corrupted; then
7a283e07
RW
1451 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1452echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
1453 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1454echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1455 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1456echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1457 { (exit 1); exit 1; }; }
a0da8069
NN
1458fi
1459
1460ac_ext=c
a0da8069 1461ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464ac_compiler_gnu=$ac_cv_c_compiler_gnu
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
a0da8069
NN
1478
1479
75778ec4 1480
c6b750e1 1481
7a283e07
RW
1482
1483
1484
c6b750e1
DJ
1485
1486
1487
5b553f7e
RW
1488
1489progname=$0
1490# if PWD already has a value, it is probably wrong.
1491if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1492
1493# Export original configure arguments for use by sub-configures.
1494# Quote arguments with shell meta charatcers.
1495TOPLEVEL_CONFIGURE_ARGUMENTS=
1496set -- "$progname" "$@"
1497for ac_arg
1498do
1499 case "$ac_arg" in
1500 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1501 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1502 # if the argument is of the form -foo=baz, quote the baz part only
1503 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1504 *) ;;
1505 esac
1506 # Add the quoted argument to the list.
1507 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1508done
1509if test "$silent" = yes; then
1510 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1511fi
1512# Remove the initial space we just introduced and, as these will be
1513# expanded by make, quote '$'.
1514TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1515
c6b750e1
DJ
1516
1517# Find the build, host, and target systems.
a0da8069 1518ac_aux_dir=
315b3b02 1519for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1520 if test -f $ac_dir/install-sh; then
1521 ac_aux_dir=$ac_dir
1522 ac_install_sh="$ac_aux_dir/install-sh -c"
1523 break
1524 elif test -f $ac_dir/install.sh; then
1525 ac_aux_dir=$ac_dir
1526 ac_install_sh="$ac_aux_dir/install.sh -c"
1527 break
c6b750e1
DJ
1528 elif test -f $ac_dir/shtool; then
1529 ac_aux_dir=$ac_dir
1530 ac_install_sh="$ac_aux_dir/shtool install -c"
1531 break
a0da8069
NN
1532 fi
1533done
1534if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1535 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1536echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1537 { (exit 1); exit 1; }; }
a0da8069 1538fi
c6b750e1
DJ
1539ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1540ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1541ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1542
c6b750e1
DJ
1543# Make sure we can run config.sub.
1544$ac_config_sub sun4 >/dev/null 2>&1 ||
1545 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1546echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1547 { (exit 1); exit 1; }; }
1548
1549echo "$as_me:$LINENO: checking build system type" >&5
1550echo $ECHO_N "checking build system type... $ECHO_C" >&6
1551if test "${ac_cv_build+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1553else
1554 ac_cv_build_alias=$build_alias
1555test -z "$ac_cv_build_alias" &&
1556 ac_cv_build_alias=`$ac_config_guess`
1557test -z "$ac_cv_build_alias" &&
1558 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1559echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1560 { (exit 1); exit 1; }; }
1561ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1562 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1563echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1564 { (exit 1); exit 1; }; }
1565
1566fi
1567echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1568echo "${ECHO_T}$ac_cv_build" >&6
1569build=$ac_cv_build
1570build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1571build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1572build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1573
a0da8069 1574
c6b750e1
DJ
1575 case ${build_alias} in
1576 "") build_noncanonical=${build} ;;
1577 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1578esac
1579
1580
cac3d6c4 1581
c6b750e1
DJ
1582 case ${host_alias} in
1583 "") host_noncanonical=${build_noncanonical} ;;
1584 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1585esac
1586
cac3d6c4 1587
c6b750e1
DJ
1588
1589 case ${target_alias} in
1590 "") target_noncanonical=${host_noncanonical} ;;
1591 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1592esac
1593
cac3d6c4 1594
c6b750e1
DJ
1595
1596
1597test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1598 test "$program_prefix$program_suffix$program_transform_name" = \
1599 NONENONEs,x,x, &&
c6b750e1 1600 program_transform_name=s,y,y,
cac3d6c4 1601
c6b750e1
DJ
1602echo "$as_me:$LINENO: checking host system type" >&5
1603echo $ECHO_N "checking host system type... $ECHO_C" >&6
1604if test "${ac_cv_host+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1606else
c6b750e1
DJ
1607 ac_cv_host_alias=$host_alias
1608test -z "$ac_cv_host_alias" &&
1609 ac_cv_host_alias=$ac_cv_build_alias
1610ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1611 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1612echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1613 { (exit 1); exit 1; }; }
1614
1615fi
1616echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1617echo "${ECHO_T}$ac_cv_host" >&6
1618host=$ac_cv_host
1619host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1620host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1621host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1622
1623
1624echo "$as_me:$LINENO: checking target system type" >&5
1625echo $ECHO_N "checking target system type... $ECHO_C" >&6
1626if test "${ac_cv_target+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628else
1629 ac_cv_target_alias=$target_alias
1630test "x$ac_cv_target_alias" = "x" &&
1631 ac_cv_target_alias=$ac_cv_host_alias
1632ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1633 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1634echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1635 { (exit 1); exit 1; }; }
1636
cac3d6c4 1637fi
c6b750e1
DJ
1638echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1639echo "${ECHO_T}$ac_cv_target" >&6
1640target=$ac_cv_target
1641target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1642target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1643target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1644
1645
1646# The aliases save the names the user supplied, while $host etc.
1647# will get canonicalized.
1648test -n "$target_alias" &&
1649 test "$program_prefix$program_suffix$program_transform_name" = \
1650 NONENONEs,x,x, &&
1651 program_prefix=${target_alias}-
a0da8069 1652test "$program_prefix" != NONE &&
c6b750e1 1653 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1654# Use a double $ so make ignores it.
1655test "$program_suffix" != NONE &&
c6b750e1
DJ
1656 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1657# Double any \ or $. echo might interpret backslashes.
1658# By default was `s,x,x', remove it if useless.
1659cat <<\_ACEOF >conftest.sed
1660s/[\\$]/&&/g;s/;s,x,x,$//
1661_ACEOF
1662program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1663rm conftest.sed
cac3d6c4 1664
a0da8069
NN
1665
1666
e5c3f801
NN
1667# Get 'install' or 'install-sh' and its variants.
1668# Find a good install program. We prefer a C program (faster),
1669# so one script is as good as another. But avoid the broken or
1670# incompatible versions:
1671# SysV /etc/install, /usr/sbin/install
1672# SunOS /usr/etc/install
1673# IRIX /sbin/install
1674# AIX /bin/install
c6b750e1 1675# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1676# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1677# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1678# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1679# OS/2's system install, which has a completely different semantic
e5c3f801 1680# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 1681# Reject install programs that cannot install multiple files.
c6b750e1
DJ
1682echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1683echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1684if test -z "$INSTALL"; then
c6b750e1
DJ
1685if test "${ac_cv_path_install+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1687else
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689for as_dir in $PATH
1690do
1691 IFS=$as_save_IFS
1692 test -z "$as_dir" && as_dir=.
1693 # Account for people who put trailing slashes in PATH elements.
1694case $as_dir/ in
1695 ./ | .// | /cC/* | \
1696 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1697 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1698 /usr/ucb/* ) ;;
1699 *)
1700 # OSF1 and SCO ODT 3.0 have their own names for install.
1701 # Don't use installbsd from OSF since it installs stuff as root
1702 # by default.
1703 for ac_prog in ginstall scoinst install; do
1704 for ac_exec_ext in '' $ac_executable_extensions; do
1705 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1706 if test $ac_prog = install &&
c6b750e1 1707 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1708 # AIX install. It has an incompatible calling convention.
1709 :
c6b750e1
DJ
1710 elif test $ac_prog = install &&
1711 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1712 # program-specific install script used by HP pwplus--don't use.
1713 :
e5c3f801 1714 else
58c85be7
RW
1715 rm -rf conftest.one conftest.two conftest.dir
1716 echo one > conftest.one
1717 echo two > conftest.two
1718 mkdir conftest.dir
1719 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1720 test -s conftest.one && test -s conftest.two &&
1721 test -s conftest.dir/conftest.one &&
1722 test -s conftest.dir/conftest.two
1723 then
1724 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1725 break 3
1726 fi
e5c3f801
NN
1727 fi
1728 fi
1729 done
c6b750e1
DJ
1730 done
1731 ;;
1732esac
1733done
1734
58c85be7 1735rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
1736
1737fi
1738 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1739 INSTALL=$ac_cv_path_install
e5c3f801 1740 else
58c85be7
RW
1741 # As a last resort, use the slow shell script. Don't cache a
1742 # value for INSTALL within a source directory, because that will
e5c3f801 1743 # break other packages using the cache if that directory is
58c85be7 1744 # removed, or if the value is a relative name.
c6b750e1 1745 INSTALL=$ac_install_sh
e5c3f801
NN
1746 fi
1747fi
c6b750e1
DJ
1748echo "$as_me:$LINENO: result: $INSTALL" >&5
1749echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1750
1751# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1752# It thinks the first close brace ends the variable substitution.
1753test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1754
c6b750e1 1755test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1756
1757test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1758
c6b750e1
DJ
1759echo "$as_me:$LINENO: checking whether ln works" >&5
1760echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1761if test "${acx_cv_prog_LN+set}" = set; then
1762 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1763else
1764 rm -f conftestdata_t
1765echo >conftestdata_f
1766if ln conftestdata_f conftestdata_t 2>/dev/null
1767then
1768 acx_cv_prog_LN=ln
1769else
1770 acx_cv_prog_LN=no
1771fi
1772rm -f conftestdata_f conftestdata_t
1773
1774fi
1775if test $acx_cv_prog_LN = no; then
1776 LN="cp"
c6b750e1
DJ
1777 echo "$as_me:$LINENO: result: no, using $LN" >&5
1778echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1779else
1780 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1781 echo "$as_me:$LINENO: result: yes" >&5
1782echo "${ECHO_T}yes" >&6
656fdd47
PB
1783fi
1784
c6b750e1
DJ
1785echo "$as_me:$LINENO: checking whether ln -s works" >&5
1786echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1787LN_S=$as_ln_s
1788if test "$LN_S" = "ln -s"; then
1789 echo "$as_me:$LINENO: result: yes" >&5
1790echo "${ECHO_T}yes" >&6
cac3d6c4 1791else
c6b750e1
DJ
1792 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1793echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1794fi
1795
e5c3f801 1796
252b5132 1797### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1798### If we are on Windows, search for the shell. This will permit people
1799### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1800### without also having to set CONFIG_SHELL. This code will work when
1801### using bash, which sets OSTYPE.
1802case "${OSTYPE}" in
1803*win32*)
a0da8069
NN
1804 if test x${CONFIG_SHELL} = x ; then
1805 if test ! -f /bin/sh ; then
1806 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1807 CONFIG_SHELL=${SHELL}
1808 export CONFIG_SHELL
1809 else
1810 for prog in sh sh.exe bash bash.exe; do
1811 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1812 for dir in $PATH; do
1813 test -z "$dir" && dir=.
1814 if test -f $dir/$prog; then
1815 CONFIG_SHELL=$dir/$prog
1816 export CONFIG_SHELL
1817 break
1818 fi
1819 done
1820 IFS="$save_ifs"
1821 test -n "${CONFIG_SHELL}" && break
1822 done
1823 fi
1824 fi
1825 fi
1826 ;;
1827esac
1828
1829config_shell=${CONFIG_SHELL-/bin/sh}
1830
a0da8069 1831moveifchange=${srcdir}/move-if-change
252b5132 1832
0fdbe983
DJ
1833srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1834
1835# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1836# a relative path.
1837if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1838 INSTALL="${srcpwd}/install-sh -c"
1839fi
1840
a0da8069
NN
1841# Set srcdir to "." if that's what it is.
1842# This is important for multilib support.
1843pwd=`${PWDCMD-pwd}`
a0da8069
NN
1844if test "${pwd}" = "${srcpwd}" ; then
1845 srcdir=.
252b5132
RH
1846fi
1847
a0da8069 1848topsrcdir=$srcpwd
252b5132 1849
a0da8069 1850extra_host_args=
afefada0 1851
a0da8069
NN
1852### To add a new directory to the tree, first choose whether it is a target
1853### or a host dependent tool. Then put it into the appropriate list
1854### (library or tools, host or target), doing a dependency sort.
252b5132 1855
c6b750e1 1856# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1857# configdirs, or target_configdirs; see the serialization section below.
252b5132 1858
c6b750e1
DJ
1859# Dependency sorting is only needed when *configuration* must be done in
1860# a particular order. In all cases a dependency should be specified in
a0da8069 1861# the Makefile, whether or not it's implicitly specified here.
252b5132 1862
a0da8069
NN
1863# Double entries in build_configdirs, configdirs, or target_configdirs may
1864# cause circular dependencies and break everything horribly.
252b5132 1865
6a9cf61e
PB
1866# these library is used by various programs built for the build
1867# environment
1868#
1869build_libs="build-libiberty"
1870
1871# these tools are built for the build environment
ee025550 1872build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1873
a0da8069
NN
1874# these libraries are used by various programs built for the host environment
1875#
4b900473 1876host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
a0da8069 1877
a0da8069
NN
1878# these tools are built for the host environment
1879# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1880# know that we are building the simulator.
1881# binutils, gas and ld appear in that order because it makes sense to run
1882# "make check" in that particular order.
93f9b408 1883# If --enable-gold is used, "gold" will replace "ld".
b00612cc 1884host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
a0da8069
NN
1885
1886# libgcj represents the runtime libraries only used by gcj.
1887libgcj="target-libffi \
a0da8069
NN
1888 target-zlib \
1889 target-qthreads \
1890 target-libjava"
1891
1892# these libraries are built for the target environment, and are built after
1893# the host libraries and the host tools (which may be a cross compiler)
1894#
b1299c4e
DJ
1895target_libraries="target-libgcc \
1896 target-libiberty \
a0da8069
NN
1897 target-libgloss \
1898 target-newlib \
cff87f51 1899 target-libgomp \
b9459e83 1900 target-libstdc++-v3 \
4b1cb4fe 1901 target-libmudflap \
bb780410 1902 target-libssp \
4b1cb4fe 1903 target-libgfortran \
4f0ef2d8 1904 target-boehm-gc \
83326456 1905 ${libgcj} \
a2592b1b 1906 target-libobjc \
cff87f51 1907 target-libada"
a0da8069 1908
9c14acb8
NN
1909# these tools are built using the target libraries, and are intended to
1910# run only in the target environment
a0da8069 1911#
9c14acb8 1912# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1913# list belongs in this list. those programs are also very likely
1914# candidates for the "native_only" list which follows
1915#
a3dd767d 1916target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1917
a0da8069 1918################################################################################
252b5132 1919
a0da8069
NN
1920## All tools belong in one of the four categories, and are assigned above
1921## We assign ${configdirs} this way to remove all embedded newlines. This
1922## is important because configure will choke if they ever get through.
1923## ${configdirs} is directories we build using the host tools.
1924## ${target_configdirs} is directories we build using the target tools.
a0da8069 1925configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1926target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1927build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1928
9cc8ae67
PB
1929
1930
a0da8069 1931################################################################################
252b5132 1932
a0da8069 1933srcname="gnu development package"
252b5132 1934
a0da8069
NN
1935# This gets set non-empty for some net releases of packages.
1936appdirs=""
252b5132 1937
a0da8069
NN
1938# Define is_cross_compiler to save on calls to 'test'.
1939is_cross_compiler=
1940if test x"${host}" = x"${target}" ; then
1941 is_cross_compiler=no
252b5132 1942else
a0da8069 1943 is_cross_compiler=yes
c6b750e1 1944fi
252b5132 1945
9175bfc0 1946# Find the build and target subdir names.
dd12c3a8 1947
66a79c16
DJ
1948# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1949# have matching libraries, they should use host libraries: Makefile.tpl
1950# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1951# However, they still use the build modules, because the corresponding
1952# host modules (e.g. bison) are only built for the host when bootstrap
1953# finishes. So:
1954# - build_subdir is where we find build modules, and never changes.
1955# - build_libsubdir is where we find build libraries, and can be overridden.
1956
1957# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1958build_subdir="build-${build_noncanonical}"
c6b750e1 1959
66a79c16
DJ
1960# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1961if test "${with_build_libsubdir+set}" = set; then
1962 withval="$with_build_libsubdir"
1963 build_libsubdir="$withval"
1964else
1965 build_libsubdir="$build_subdir"
c6b750e1 1966fi;
b00612cc
PB
1967# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1968if ( test $srcdir = . && test -d gcc ) \
1969 || test -d $srcdir/../host-${host_noncanonical}; then
1970 host_subdir="host-${host_noncanonical}"
1971else
1972 host_subdir=.
1973fi
dd12c3a8
NN
1974# No prefix.
1975target_subdir=${target_noncanonical}
c6b750e1 1976
252b5132 1977
a0da8069
NN
1978# Skipdirs are removed silently.
1979skipdirs=
1980# Noconfigdirs are removed loudly.
1981noconfigdirs=""
252b5132 1982
a0da8069
NN
1983use_gnu_ld=
1984# Make sure we don't let GNU ld be added if we didn't want it.
1985if test x$with_gnu_ld = xno ; then
1986 use_gnu_ld=no
93f9b408 1987 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
1988fi
1989
a0da8069
NN
1990use_gnu_as=
1991# Make sure we don't let GNU as be added if we didn't want it.
1992if test x$with_gnu_as = xno ; then
1993 use_gnu_as=no
1994 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1995fi
1996
c6b750e1 1997# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1998# it's not even worth trying to configure, much less build, that tool.
252b5132 1999
a0da8069
NN
2000case ${with_x} in
2001 yes | "") ;; # the default value for this tree is that X11 is available
2002 no)
675c6968 2003 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2004 # We won't be able to build gdbtk without X.
c6b750e1 2005 enable_gdbtk=no
a0da8069
NN
2006 ;;
2007 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2008esac
252b5132 2009
a0da8069 2010# Some tools are only suitable for building in a "native" situation.
c6b750e1 2011# Remove these if host!=target.
701628f5 2012native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
252b5132 2013
a0da8069
NN
2014# Similarly, some are only suitable for cross toolchains.
2015# Remove these if host=target.
2016cross_only="target-libgloss target-newlib target-opcodes"
2017
2018case $is_cross_compiler in
2019 no) skipdirs="${skipdirs} ${cross_only}" ;;
2020 yes) skipdirs="${skipdirs} ${native_only}" ;;
2021esac
252b5132 2022
a0da8069
NN
2023# If both --with-headers and --with-libs are specified, default to
2024# --without-newlib.
32be62b5
RS
2025if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2026 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2027 if test x"${with_newlib}" = x ; then
2028 with_newlib=no
2029 fi
252b5132
RH
2030fi
2031
a0da8069
NN
2032# Recognize --with-newlib/--without-newlib.
2033case ${with_newlib} in
2034 no) skipdirs="${skipdirs} target-newlib" ;;
2035 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2036esac
252b5132 2037
93f9b408
ILT
2038# Handle --enable-gold.
2039
2040# Check whether --enable-gold or --disable-gold was given.
2041if test "${enable_gold+set}" = set; then
2042 enableval="$enable_gold"
2043 ENABLE_GOLD=$enableval
2044else
2045 ENABLE_GOLD=no
2046fi;
2047if test "${ENABLE_GOLD}" = "yes"; then
2048 # Check for ELF target.
2049 is_elf=no
2050 case "${target}" in
2051 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2052 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2053 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*)
2054 case "${target}" in
2055 *-*-linux*aout* | *-*-linux*oldld*)
2056 ;;
2057 *)
2058 is_elf=yes
2059 ;;
2060 esac
2061 esac
2062
2063 if test "$is_elf" = "yes"; then
2064 # Check for target supported by gold.
2065 case "${target}" in
310213e8 2066 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-*)
93f9b408
ILT
2067 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2068 ;;
2069 esac
2070 fi
2071fi
2072
a0da8069 2073# Configure extra directories which are host specific
252b5132 2074
a0da8069
NN
2075case "${host}" in
2076 *-cygwin*)
2077 configdirs="$configdirs libtermcap" ;;
2078esac
252b5132 2079
59f7ec45
HPN
2080# A target can indicate whether a language isn't supported for some reason.
2081# Only spaces may be used in this macro; not newlines or tabs.
2082unsupported_languages=
2083
c6b750e1 2084# Remove more programs from consideration, based on the host or
a0da8069
NN
2085# target this usually means that a port of the program doesn't
2086# exist yet.
252b5132 2087
a0da8069
NN
2088case "${host}" in
2089 hppa*64*-*-*)
2090 noconfigdirs="$noconfigdirs byacc"
2091 ;;
ec11bdc6 2092 i[3456789]86-*-vsta)
675c6968 2093 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2094 ;;
ec11bdc6 2095 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2096 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2097 ;;
2d1e8239
NC
2098 x86_64-*-mingw*)
2099 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2100 ;;
ec11bdc6 2101 i[3456789]86-*-mingw32*)
675c6968 2102 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2103 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2104 ;;
ec11bdc6 2105 i[3456789]86-*-beos*)
675c6968 2106 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2107 ;;
a0da8069 2108 *-*-cygwin*)
a92834c8 2109 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2110 ;;
2111 *-*-netbsd*)
a92834c8 2112 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2113 ;;
2114 ppc*-*-pe)
675c6968 2115 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2116 ;;
2117 powerpc-*-beos*)
675c6968 2118 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2119 ;;
a0da8069 2120esac
252b5132 2121
4b1cb4fe 2122
a2592b1b
DD
2123# Check whether --enable-libada or --disable-libada was given.
2124if test "${enable_libada+set}" = set; then
2125 enableval="$enable_libada"
2126 ENABLE_LIBADA=$enableval
2127else
2128 ENABLE_LIBADA=yes
c6b750e1 2129fi;
a2592b1b 2130if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2131 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2132fi
2133
5f128533
KH
2134# Check whether --enable-libssp or --disable-libssp was given.
2135if test "${enable_libssp+set}" = set; then
2136 enableval="$enable_libssp"
2137 ENABLE_LIBSSP=$enableval
2138else
2139 ENABLE_LIBSSP=yes
c6b750e1 2140fi;
5f128533 2141
a0da8069
NN
2142# Save it here so that, even in case of --enable-libgcj, if the Java
2143# front-end isn't enabled, we still get libgcj disabled.
2144libgcj_saved=$libgcj
2145case $enable_libgcj in
2146yes)
2147 # If we reset it here, it won't get added to noconfigdirs in the
2148 # target-specific build rules, so it will be forcibly enabled
2149 # (unless the Java language itself isn't enabled).
2150 libgcj=
2151 ;;
2152no)
2153 # Make sure we get it printed in the list of not supported target libs.
2154 noconfigdirs="$noconfigdirs ${libgcj}"
2155 ;;
2156esac
252b5132 2157
4b1cb4fe 2158
a6df5a19
PB
2159# Disable libmudflap on some systems.
2160if test x$enable_libmudflap = x ; then
3e707e94 2161 case "${target}" in
0ebe98fb 2162 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
3d6dfe0f 2163 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2164 ;;
2165 *-*-freebsd*)
2166 # Enable libmudflap by default in FreeBSD.
2167 ;;
2168 *)
2169 # Disable it by default everywhere else.
2170 noconfigdirs="$noconfigdirs target-libmudflap"
2171 ;;
2172 esac
a6df5a19 2173fi
4b1cb4fe 2174
a6df5a19
PB
2175# Disable libgomp on non POSIX hosted systems.
2176if test x$enable_libgomp = x ; then
b3ded179
PB
2177 # Enable libgomp by default on hosted POSIX systems.
2178 case "${target}" in
2179 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2180 ;;
2181 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2182 ;;
64ce424c 2183 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2184 ;;
2185 *-*-darwin* | *-*-aix*)
2186 ;;
2187 *)
2188 noconfigdirs="$noconfigdirs target-libgomp"
2189 ;;
2190 esac
a6df5a19 2191fi
b3ded179 2192
691bb5a1
DD
2193# Default libgloss CPU subdirectory.
2194libgloss_dir="$target_cpu"
4b1cb4fe 2195
a0da8069
NN
2196case "${target}" in
2197 *-*-chorusos)
54d1c879 2198 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2199 ;;
c9b68031 2200 powerpc-*-darwin* | i[3456789]86-*-darwin* | x86_64-*-darwin9*)
9d39db92 2201 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2202 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2203 ;;
04d1ab34 2204 *-*-darwin*)
d320aacb 2205 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2206 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2207 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2208 ;;
a0da8069 2209 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2210 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2211 ;;
de0b4a87 2212 *-*-freebsd*)
4b1cb4fe
DD
2213 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2214 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2215 && test -f /usr/local/include/gmp.h; then
2216 with_gmp=/usr/local
2217 fi
2218
2219 # Skip some stuff that's unsupported on some FreeBSD configurations.
2220 case "${target}" in
2221 i*86-*-*) ;;
2222 alpha*-*-*) ;;
2223 *)
54d1c879 2224 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2225 ;;
2226 esac
2227 ;;
f8a495c8
NC
2228 *-*-kaos*)
2229 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2230 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2231 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2232 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2233 noconfigdirs="$noconfigdirs target-libgloss"
2234 ;;
a0da8069
NN
2235 *-*-netbsd*)
2236 # Skip some stuff on all NetBSD configurations.
2237 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2238
2239 # Skip some stuff that's unsupported on some NetBSD configurations.
2240 case "${target}" in
2241 i*86-*-netbsdelf*) ;;
5b474aa8 2242 arm*-*-netbsdelf*) ;;
a0da8069 2243 *)
54d1c879 2244 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2245 ;;
2246 esac
2247 ;;
2a3124ca 2248 *-*-netware*)
54d1c879 2249 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2250 ;;
2251 *-*-rtems*)
54d1c879 2252 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2253 ;;
1587117a
EC
2254 # The tpf target doesn't support gdb yet.
2255 *-*-tpf*)
54d1c879 2256 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2257 ;;
c1968181 2258 *-*-uclinux*)
54d1c879 2259 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2260 ;;
a0da8069 2261 *-*-vxworks*)
54d1c879 2262 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2263 ;;
2264 alpha*-dec-osf*)
2265 # ld works, but does not support shared libraries.
2266 # newlib is not 64 bit ready. I'm not sure about fileutils.
2267 # gas doesn't generate exception information.
2268 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2269 ;;
2270 alpha*-*-*vms*)
54d1c879 2271 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2272 ;;
2273 alpha*-*-linux*)
2274 # newlib is not 64 bit ready
2275 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2276 ;;
a0da8069
NN
2277 alpha*-*-*)
2278 # newlib is not 64 bit ready
54d1c879 2279 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2280 ;;
4a18bd6b 2281 am33_2.0-*-linux*)
54d1c879 2282 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2283 ;;
a0da8069 2284 sh-*-linux*)
54d1c879 2285 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2286 ;;
a0da8069 2287 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2288 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2289 noconfigdirs="$noconfigdirs target-examples"
2290 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2291 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2292 noconfigdirs="$noconfigdirs expect dejagnu"
2293 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2294 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2295 noconfigdirs="$noconfigdirs target-newlib"
2296 case "${host}" in
2297 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2298 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2299 ;;
2300 esac
691bb5a1 2301 libgloss_dir=wince
a0da8069
NN
2302 ;;
2303 arc-*-*)
54d1c879 2304 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2305 ;;
caeba88f 2306 arm-semi-aof )
caeba88f 2307 ;;
a0da8069 2308 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2309 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2310 libgloss_dir=arm
a0da8069 2311 ;;
11b04d1f 2312 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 2313 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 2314 libgloss_dir=arm
a0da8069 2315 ;;
bd70a46f 2316 arm*-*-linux-gnueabi)
6d18b86b 2317 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
2318 case ${with_newlib} in
2319 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2320 esac
691bb5a1 2321 libgloss_dir=arm
bd70a46f 2322 ;;
df4a6958 2323 arm*-*-symbianelf*)
54d1c879 2324 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 2325 libgloss_dir=arm
df4a6958 2326 ;;
a0da8069 2327 arm-*-pe*)
54d1c879 2328 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2329 ;;
a0da8069 2330 thumb-*-coff)
54d1c879 2331 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2332 ;;
2333 thumb-*-elf)
54d1c879 2334 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2335 ;;
a0da8069 2336 thumb-*-pe)
54d1c879 2337 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2338 ;;
2339 arm-*-riscix*)
54d1c879 2340 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2341 ;;
2342 avr-*-*)
266df637 2343 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 2344 ;;
376a0e54 2345 bfin-*-*)
00d89675 2346 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2347 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2348 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2349 fi
2350 ;;
a0da8069 2351 c4x-*-* | tic4x-*-*)
54d1c879 2352 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2353 ;;
2354 c54x*-*-* | tic54x-*-*)
54d1c879 2355 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2356 ;;
52310858
NC
2357 cr16-*-*)
2358 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2359 ;;
c7e66c6d 2360 cris-*-* | crisv32-*-*)
59f7ec45 2361 unsupported_languages="$unsupported_languages java"
c7e66c6d 2362 case "${target}" in
2faa2958 2363 *-*-aout)
096f7d00 2364 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2365 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2366 *-*-elf)
5e818318 2367 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2368 *-*-linux*)
5e818318 2369 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2370 *)
096f7d00 2371 unsupported_languages="$unsupported_languages fortran"
54d1c879 2372 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2373 esac
691bb5a1 2374 libgloss_dir=cris
a0da8069 2375 ;;
3e707e94 2376 crx-*-*)
54d1c879 2377 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2378 ;;
a0da8069 2379 d10v-*-*)
54d1c879 2380 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2381 ;;
2382 d30v-*-*)
54d1c879 2383 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 2384 ;;
691bb5a1
DD
2385 ep9312-*-elf | ep9312-*-coff)
2386 libgloss_dir=arm
2387 ;;
a0da8069 2388 fr30-*-elf*)
54d1c879 2389 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2390 ;;
2391 frv-*-*)
54d1c879 2392 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2393 ;;
2394 h8300*-*-*)
54d1c879 2395 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2396 ;;
2397 h8500-*-*)
54d1c879 2398 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2399 ;;
caeba88f 2400 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2401 ;;
a0da8069
NN
2402 hppa*64*-*-linux* | parisc*64*-*-linux*)
2403 # In this case, it's because the hppa64-linux target is for
2404 # the kernel only at this point and has no libc, and thus no
2405 # headers, crt*.o, etc., all of which are needed by these.
2406 noconfigdirs="$noconfigdirs target-zlib"
2407 ;;
5dcac624
DA
2408 parisc*-*-linux* | hppa*-*-linux*)
2409 ;;
a0da8069 2410 hppa*-*-*elf* | \
a0da8069
NN
2411 hppa*-*-lites* | \
2412 hppa*-*-openbsd* | \
2413 hppa*64*-*-*)
54d1c879 2414 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2415 ;;
2416 hppa*-hp-hpux11*)
2417 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 2418 ;;
691bb5a1
DD
2419 hppa*-*-pro*)
2420 libgloss_dir=pa
2421 ;;
a0da8069
NN
2422 hppa*-*-*)
2423 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2424 # build on HP-UX 10.20.
54d1c879 2425 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2426 ;;
b07c2aad 2427 i960-*-*)
54d1c879 2428 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2429 ;;
a0da8069
NN
2430 ia64*-*-elf*)
2431 # No gdb support yet.
675c6968 2432 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2433 ;;
2434 ia64*-**-hpux*)
2435 # No gdb or ld support yet.
54d1c879 2436 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2437 ;;
caeba88f 2438 i370-*-opened*)
caeba88f 2439 ;;
ec11bdc6 2440 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2441 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2442 libgloss_dir=i386
a0da8069 2443 ;;
ec11bdc6 2444 i[3456789]86-*-linux*)
a0da8069
NN
2445 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2446 # not build java stuff by default.
2447 case "${target}" in
2448 *-*-*libc1*)
54d1c879 2449 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2450 esac
2451
2452 # This section makes it possible to build newlib natively on linux.
2453 # If we are using a cross compiler then don't configure newlib.
2454 if test x${is_cross_compiler} != xno ; then
bba45b8b 2455 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2456 fi
2457 noconfigdirs="$noconfigdirs target-libgloss"
2458 # If we are not using a cross compiler, do configure newlib.
2459 # Note however, that newlib will only be configured in this situation
2460 # if the --with-newlib option has been given, because otherwise
2461 # 'target-newlib' will appear in skipdirs.
2462 ;;
ec11bdc6 2463 i[3456789]86-*-mingw32*)
45055374
CV
2464 target_configdirs="$target_configdirs target-winsup"
2465 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2466 ;;
2d1e8239
NC
2467 x86_64-*-mingw*)
2468 target_configdirs="$target_configdirs target-winsup"
2469 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2470 ;;
a0da8069
NN
2471 *-*-cygwin*)
2472 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2473 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2474 # always build newlib if winsup directory is present.
45055374 2475 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2476 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2477 elif test -d "$srcdir/newlib"; then
45055374 2478 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2479 fi
c6b750e1 2480 ;;
caeba88f
AL
2481 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2482 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2483 ;;
ec11bdc6 2484 i[3456789]86-*-pe)
54d1c879 2485 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2486 ;;
ec11bdc6 2487 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2488 # The linker does not yet know about weak symbols in COFF,
2489 # and is not configured to handle mixed ELF and COFF.
54d1c879 2490 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2491 ;;
ec11bdc6 2492 i[3456789]86-*-sco*)
54d1c879 2493 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2494 ;;
ec11bdc6 2495 i[3456789]86-*-solaris2*)
a0da8069
NN
2496 noconfigdirs="$noconfigdirs target-libgloss"
2497 ;;
ec11bdc6 2498 i[3456789]86-*-sysv4*)
54d1c879 2499 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2500 ;;
ec11bdc6 2501 i[3456789]86-*-beos*)
54d1c879 2502 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2503 ;;
b59bea8a 2504 i[3456789]86-*-rdos*)
2429c060
PB
2505 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2506 ;;
b07c2aad 2507 m32r-*-*)
54d1c879 2508 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2509 ;;
a0da8069 2510 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2511 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 2512 libgloss_dir=m68hc11
a0da8069
NN
2513 ;;
2514 m68k-*-elf*)
54d1c879 2515 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2516 ;;
2517 m68k-*-coff*)
54d1c879 2518 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2519 ;;
691bb5a1
DD
2520 m68*-*-* | fido-*-*)
2521 libgloss_dir=m68k
2522 ;;
a0da8069
NN
2523 mcore-*-pe*)
2524 # The EPOC C++ environment does not support exceptions or rtti,
2525 # and so building libstdc++-v3 tends not to always work.
2526 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2527 ;;
2528 mmix-*-*)
59f7ec45 2529 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2530 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2531 ;;
2532 mn10200-*-*)
54d1c879 2533 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2534 ;;
2535 mn10300-*-*)
54d1c879 2536 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2537 ;;
4970f871 2538 mt-*-*)
cdb9b172
AH
2539 noconfigdirs="$noconfigdirs sim"
2540 ;;
a0da8069
NN
2541 powerpc-*-aix*)
2542 # copied from rs6000-*-* entry
54d1c879 2543 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2544 ;;
2545 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2546 target_configdirs="$target_configdirs target-winsup"
54d1c879 2547 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2548 # always build newlib.
2549 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2550 ;;
2551 # This is temporary until we can link against shared libraries
2552 powerpcle-*-solaris*)
54d1c879 2553 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 2554 libgloss_dir=rs6000
a0da8069
NN
2555 ;;
2556 powerpc-*-beos*)
54d1c879 2557 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2558 ;;
a0da8069 2559 powerpc-*-eabi)
54d1c879 2560 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2561 libgloss_dir=rs6000
caeba88f
AL
2562 ;;
2563 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 2564 libgloss_dir=rs6000
a0da8069 2565 ;;
a0da8069 2566 rs6000-*-lynxos*)
54d1c879 2567 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2568 ;;
2569 rs6000-*-aix*)
54d1c879 2570 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2571 ;;
2572 rs6000-*-*)
54d1c879 2573 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2574 ;;
2575 m68k-apollo-*)
54d1c879 2576 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 2577 ;;
5bd8be13
RS
2578 mips*-sde-elf*)
2579 skipdirs="$skipdirs target-libiberty"
2580 noconfigdirs="$noconfigdirs ${libgcj}"
2581 if test x$with_newlib = xyes; then
2582 noconfigdirs="$noconfigdirs gprof"
2583 fi
2584 libgloss_dir=mips
2585 ;;
a0da8069 2586 mips*-*-irix5*)
54d1c879 2587 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2588 ;;
2589 mips*-*-irix6*)
a0da8069
NN
2590 # Linking libjava exceeds command-line length limits on at least
2591 # IRIX 6.2, but not on IRIX 6.5.
2592 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2593 # <oldham@codesourcery.com>
54d1c879 2594 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2595 ;;
a0da8069 2596 mips*-*-bsd*)
54d1c879 2597 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2598 ;;
a0da8069
NN
2599 mips*-*-linux*)
2600 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2601 ;;
2602 mips*-*-*)
54d1c879 2603 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 2604 libgloss_dir=mips
a0da8069
NN
2605 ;;
2606 romp-*-*)
54d1c879 2607 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2608 ;;
dbf85af7 2609 sh-*-* | sh64-*-*)
a0da8069 2610 case "${host}" in
ec11bdc6
DD
2611 i[3456789]86-*-vsta) ;; # don't add gprof back in
2612 i[3456789]86-*-go32*) ;; # don't add gprof back in
2613 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2614 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2615 esac
54d1c879 2616 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2617 ;;
691bb5a1
DD
2618 sparclet-*-aout* | sparc86x-*-*)
2619 libgloss_dir=sparc
2620 ;;
a0da8069 2621 sparc-*-elf*)
54d1c879 2622 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2623 ;;
2624 sparc64-*-elf*)
54d1c879 2625 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2626 libgloss_dir=sparc
a0da8069
NN
2627 ;;
2628 sparclite-*-*)
54d1c879 2629 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2630 libgloss_dir=sparc
a0da8069
NN
2631 ;;
2632 sparc-*-sunos4*)
54d1c879 2633 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2634 if test x${is_cross_compiler} != xno ; then
2635 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2636 else
2637 use_gnu_ld=no
2638 fi
2639 ;;
e3c770b1 2640 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2641 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2642 ;;
a0da8069
NN
2643 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2644 ;;
2839fe5d
BE
2645 spu-*-*)
2646 skipdirs="target-libssp"
2647 ;;
a0da8069 2648 v810-*-*)
54d1c879 2649 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2650 ;;
2651 v850-*-*)
54d1c879 2652 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2653 ;;
2654 v850e-*-*)
54d1c879 2655 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2656 ;;
2657 v850ea-*-*)
54d1c879 2658 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2659 ;;
2660 vax-*-vms)
54d1c879 2661 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2662 ;;
2663 vax-*-*)
54d1c879 2664 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2665 ;;
8b66833e 2666 xtensa*-*-*)
54d1c879 2667 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2668 ;;
a0da8069 2669 ip2k-*-*)
54d1c879 2670 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2671 ;;
de0b4a87 2672 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2673 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2674 ;;
2675 *-*-lynxos*)
54d1c879 2676 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2677 ;;
a0da8069 2678 *-*-*)
54d1c879 2679 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2680 ;;
2681esac
252b5132 2682
a0da8069
NN
2683# If we aren't building newlib, then don't build libgloss, since libgloss
2684# depends upon some newlib header files.
2685case "${noconfigdirs}" in
2686 *target-libgloss*) ;;
2687 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2688esac
2689
a0da8069
NN
2690# Work in distributions that contain no compiler tools, like Autoconf.
2691tentative_cc=""
2692host_makefile_frag=/dev/null
2693if test -d ${srcdir}/config ; then
2694case "${host}" in
2695 m68k-hp-hpux*)
2696 # Avoid "too much defining" errors from HPUX compiler.
2697 tentative_cc="cc -Wp,-H256000"
2698 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2699 # If it's HP/UX ar, this should be harmless.
2700 RANLIB="ar ts"
2701 ;;
2702 m68k-apollo-sysv*)
2703 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2704 ;;
2705 m68k-apollo-bsd*)
2706 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2707 # chokes on bfd, the compiler won't let you assign integers to enums, and
2708 # other problems. Defining CC to gcc is a questionable way to say "don't use
2709 # the apollo compiler" (the preferred version of GCC could be called cc,
2710 # or whatever), but I'm not sure leaving CC as cc is any better...
2711 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2712 # Used to have BISON=yacc.
2713 tentative_cc=gcc
2714 ;;
2715 m88k-dg-dgux*)
2716 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2717 ;;
2718 m88k-harris-cxux*)
2719 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2720 tentative_cc="cc -Xa"
2721 host_makefile_frag="config/mh-cxux"
2722 ;;
2723 m88k-motorola-sysv*)
2724 ;;
2725 mips*-dec-ultrix*)
2726 tentative_cc="cc -Wf,-XNg1000"
2727 host_makefile_frag="config/mh-decstation"
2728 ;;
2729 mips*-nec-sysv4*)
2730 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2731 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2732 host_makefile_frag="config/mh-necv4"
2733 ;;
2734 mips*-sgi-irix4*)
2735 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2736 # environment. Also bump switch table size so that cp-parse will
2737 # compile. Bump string length limit so linker builds.
2738 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2739 ;;
2740 mips*-*-sysv4*)
2741 host_makefile_frag="config/mh-sysv4"
2742 ;;
2743 mips*-*-sysv*)
2744 # This is for a MIPS running RISC/os 4.52C.
2745
2746 # This is needed for GDB, but needs to be in the top-level make because
2747 # if a library is compiled with the bsd headers and gets linked with the
2748 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2749 # a different size).
2750 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2751 # known except to select the sysv environment. Could we use /proc instead?
2752 # These "sysv environments" and "bsd environments" often end up being a pain.
2753 #
2754 # This is not part of CFLAGS because perhaps not all C compilers have this
2755 # option.
2756 tentative_cc="cc -systype sysv"
2757 ;;
2758 i370-ibm-opened*)
2759 tentative_cc="c89"
2760 ;;
ec11bdc6 2761 i[3456789]86-*-sysv5*)
a0da8069
NN
2762 host_makefile_frag="config/mh-sysv5"
2763 ;;
ec11bdc6 2764 i[3456789]86-*-dgux*)
a0da8069
NN
2765 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2766 host_makefile_frag="config/mh-dgux386"
2767 ;;
ec11bdc6 2768 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2769 # The MetaWare compiler will generate a copyright message unless you
2770 # turn it off by adding the -Hnocopyr flag.
2771 tentative_cc="cc -Hnocopyr"
2772 ;;
ec11bdc6 2773 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2774 # for an NCR 3000 (i486/SVR4) system.
2775 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2776 # This compiler not only emits obnoxious copyright messages every time
2777 # you run it, but it chokes and dies on a whole bunch of GNU source
2778 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2779 tentative_cc="/usr/ccs/ATT/cc"
2780 host_makefile_frag="config/mh-ncr3000"
2781 ;;
ec11bdc6 2782 i[3456789]86-*-sco3.2v5*)
a0da8069 2783 ;;
ec11bdc6 2784 i[3456789]86-*-sco*)
a0da8069
NN
2785 # The native C compiler botches some simple uses of const. Unfortunately,
2786 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2787 tentative_cc="cc -Dconst="
2788 host_makefile_frag="config/mh-sco"
2789 ;;
ec11bdc6 2790 i[3456789]86-*-udk*)
a0da8069
NN
2791 host_makefile_frag="config/mh-sysv5"
2792 ;;
ec11bdc6 2793 i[3456789]86-*-solaris2*)
a0da8069
NN
2794 host_makefile_frag="config/mh-sysv4"
2795 ;;
ec11bdc6 2796 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2797 host_makefile_frag="config/mh-djgpp"
2798 ;;
2799 *-cygwin*)
e33b51a6
NC
2800
2801echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2802echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2803echo a >cygwin-cat-check
2804if test `cat cygwin-cat-check` == a ; then
8ade07e9 2805 rm cygwin-cat-check
e33b51a6
NC
2806 echo "$as_me:$LINENO: result: yes" >&5
2807echo "${ECHO_T}yes" >&6
2808else
8ade07e9 2809 rm cygwin-cat-check
e33b51a6
NC
2810 echo "$as_me:$LINENO: result: no" >&5
2811echo "${ECHO_T}no" >&6
2812 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2813 Please either mount the build directory in binary mode or run the following
2814 commands before running any configure script:
2815set -o igncr
2816export SHELLOPTS
2817 " >&5
2818echo "$as_me: error: The cat command does not ignore carriage return characters.
2819 Please either mount the build directory in binary mode or run the following
2820 commands before running any configure script:
2821set -o igncr
2822export SHELLOPTS
2823 " >&2;}
2824 { (exit 1); exit 1; }; }
2825fi
e33b51a6 2826
a0da8069
NN
2827 host_makefile_frag="config/mh-cygwin"
2828 ;;
8a1599ab 2829 *-mingw*)
84e7906e 2830 host_makefile_frag="config/mh-mingw"
2d1e8239 2831 ;;
a0da8069
NN
2832 *-interix*)
2833 host_makefile_frag="config/mh-interix"
2834 ;;
2835 vax-*-ultrix2*)
2836 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2837 tentative_cc=gcc
2838 ;;
2839 *-*-solaris2*)
2840 host_makefile_frag="config/mh-solaris"
2841 ;;
2842 m68k-sun-sunos*)
2843 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2844 # without overflowing the jump tables (-J says to use a 32 bit table)
2845 tentative_cc="cc -J"
2846 ;;
da888c87 2847 hppa*-hp-hpux10*)
a0da8069 2848 tentative_cc="cc -Wp,-H256000"
da888c87 2849 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 2850 ;;
da888c87
PB
2851 hppa*-hp-hpux* | hppa*-*-hiux*)
2852 tentative_cc="cc -Wp,-H256000"
2853 host_makefile_frag="config/mh-pa"
2854 ;;
2855 hppa*-*)
2856 host_makefile_frag="config/mh-pa"
2857 ;;
2858 *-hp-hpux* | *-*-hiux*)
a0da8069
NN
2859 tentative_cc="cc -Wp,-H256000"
2860 ;;
2861 rs6000-*-lynxos*)
2862 # /bin/cc is less than useful for our purposes. Always use GCC
2863 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2864 host_makefile_frag="config/mh-lynxrs6k"
2865 ;;
0df3d27f
PB
2866 powerpc-*-darwin*)
2867 host_makefile_frag="config/mh-ppc-darwin"
2868 ;;
f6d183c0
PB
2869 powerpc-*-aix*)
2870 host_makefile_frag="config/mh-ppc-aix"
2871 ;;
2872 rs6000-*-aix*)
2873 host_makefile_frag="config/mh-ppc-aix"
2874 ;;
a0da8069
NN
2875 *-*-lynxos*)
2876 # /bin/cc is less than useful for our purposes. Always use GCC
2877 tentative_cc="/bin/gcc"
2878 ;;
2879 *-*-sysv4*)
2880 host_makefile_frag="config/mh-sysv4"
2881 ;;
fe69863c
DD
2882 # This is placed last to prevent interfering with the cases above.
2883 i[3456789]86-*-*)
2884 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2885 host_makefile_frag="config/mh-x86omitfp"
2886 ;;
a0da8069
NN
2887esac
2888fi
2889
9e07f89d
NN
2890# If we aren't going to be using gcc, see if we can extract a definition
2891# of CC from the fragment.
2892# Actually, use the 'pre-extracted' version above.
2893if test -z "${CC}" && test "${build}" = "${host}" ; then
2894 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2895 found=
2896 for dir in $PATH; do
2897 test -z "$dir" && dir=.
2898 if test -f $dir/gcc; then
2899 found=yes
2900 break
2901 fi
2902 done
2903 IFS="$save_ifs"
2904 if test -z "${found}" && test -n "${tentative_cc}" ; then
2905 CC=$tentative_cc
2906 fi
2907fi
2908
2909if test "${build}" != "${host}" ; then
1576798e
PB
2910 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2911 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 2912 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
2913 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2914 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2915 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2916 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2917 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2918 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2919 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2920 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2921 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2922else
2923 AR_FOR_BUILD="\$(AR)"
2924 AS_FOR_BUILD="\$(AS)"
512b7dfb 2925 CC_FOR_BUILD="\$(CC)"
1576798e
PB
2926 CXX_FOR_BUILD="\$(CXX)"
2927 GCJ_FOR_BUILD="\$(GCJ)"
2928 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2929 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2930 LD_FOR_BUILD="\$(LD)"
2931 NM_FOR_BUILD="\$(NM)"
2932 RANLIB_FOR_BUILD="\$(RANLIB)"
2933 WINDRES_FOR_BUILD="\$(WINDRES)"
2934 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
2935fi
2936
2937ac_ext=c
c6b750e1
DJ
2938ac_cpp='$CPP $CPPFLAGS'
2939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941ac_compiler_gnu=$ac_cv_c_compiler_gnu
2942if test -n "$ac_tool_prefix"; then
2943 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2944set dummy ${ac_tool_prefix}gcc; ac_word=$2
2945echo "$as_me:$LINENO: checking for $ac_word" >&5
2946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2947if test "${ac_cv_prog_CC+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2949else
2950 if test -n "$CC"; then
2951 ac_cv_prog_CC="$CC" # Let the user override the test.
2952else
2953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954for as_dir in $PATH
2955do
2956 IFS=$as_save_IFS
2957 test -z "$as_dir" && as_dir=.
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2960 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 break 2
2963 fi
2964done
2965done
2966
2967fi
2968fi
2969CC=$ac_cv_prog_CC
2970if test -n "$CC"; then
2971 echo "$as_me:$LINENO: result: $CC" >&5
2972echo "${ECHO_T}$CC" >&6
2973else
2974 echo "$as_me:$LINENO: result: no" >&5
2975echo "${ECHO_T}no" >&6
2976fi
2977
2978fi
2979if test -z "$ac_cv_prog_CC"; then
2980 ac_ct_CC=$CC
6a9cf61e 2981 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2982set dummy gcc; ac_word=$2
c6b750e1
DJ
2983echo "$as_me:$LINENO: checking for $ac_word" >&5
2984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2985if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2987else
2988 if test -n "$ac_ct_CC"; then
2989 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2990else
2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992for as_dir in $PATH
2993do
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998 ac_cv_prog_ac_ct_CC="gcc"
2999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 break 2
3001 fi
3002done
3003done
3004
3005fi
3006fi
3007ac_ct_CC=$ac_cv_prog_ac_ct_CC
3008if test -n "$ac_ct_CC"; then
3009 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3010echo "${ECHO_T}$ac_ct_CC" >&6
3011else
3012 echo "$as_me:$LINENO: result: no" >&5
3013echo "${ECHO_T}no" >&6
3014fi
3015
3016 CC=$ac_ct_CC
3017else
3018 CC="$ac_cv_prog_CC"
3019fi
3020
3021if test -z "$CC"; then
3022 if test -n "$ac_tool_prefix"; then
3023 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3024set dummy ${ac_tool_prefix}cc; ac_word=$2
3025echo "$as_me:$LINENO: checking for $ac_word" >&5
3026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3027if test "${ac_cv_prog_CC+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3029else
3030 if test -n "$CC"; then
3031 ac_cv_prog_CC="$CC" # Let the user override the test.
3032else
c6b750e1
DJ
3033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034for as_dir in $PATH
3035do
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_CC="${ac_tool_prefix}cc"
3041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3043 fi
3044done
3045done
3046
9e07f89d
NN
3047fi
3048fi
c6b750e1 3049CC=$ac_cv_prog_CC
9e07f89d 3050if test -n "$CC"; then
c6b750e1
DJ
3051 echo "$as_me:$LINENO: result: $CC" >&5
3052echo "${ECHO_T}$CC" >&6
9e07f89d 3053else
c6b750e1
DJ
3054 echo "$as_me:$LINENO: result: no" >&5
3055echo "${ECHO_T}no" >&6
9e07f89d
NN
3056fi
3057
c6b750e1
DJ
3058fi
3059if test -z "$ac_cv_prog_CC"; then
3060 ac_ct_CC=$CC
3061 # Extract the first word of "cc", so it can be a program name with args.
3062set dummy cc; ac_word=$2
3063echo "$as_me:$LINENO: checking for $ac_word" >&5
3064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3065if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067else
3068 if test -n "$ac_ct_CC"; then
3069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3070else
3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072for as_dir in $PATH
3073do
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_ac_ct_CC="cc"
3079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3081 fi
3082done
3083done
3084
3085fi
3086fi
3087ac_ct_CC=$ac_cv_prog_ac_ct_CC
3088if test -n "$ac_ct_CC"; then
3089 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3090echo "${ECHO_T}$ac_ct_CC" >&6
3091else
3092 echo "$as_me:$LINENO: result: no" >&5
3093echo "${ECHO_T}no" >&6
3094fi
3095
3096 CC=$ac_ct_CC
3097else
3098 CC="$ac_cv_prog_CC"
3099fi
3100
3101fi
9e07f89d
NN
3102if test -z "$CC"; then
3103 # Extract the first word of "cc", so it can be a program name with args.
3104set dummy cc; ac_word=$2
c6b750e1
DJ
3105echo "$as_me:$LINENO: checking for $ac_word" >&5
3106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3107if test "${ac_cv_prog_CC+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3109else
3110 if test -n "$CC"; then
3111 ac_cv_prog_CC="$CC" # Let the user override the test.
3112else
9e07f89d 3113 ac_prog_rejected=no
c6b750e1
DJ
3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115for as_dir in $PATH
3116do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3122 ac_prog_rejected=yes
3123 continue
3124 fi
3125 ac_cv_prog_CC="cc"
3126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
3128 fi
3129done
3130done
3131
9e07f89d
NN
3132if test $ac_prog_rejected = yes; then
3133 # We found a bogon in the path, so make sure we never use it.
3134 set dummy $ac_cv_prog_CC
3135 shift
c6b750e1 3136 if test $# != 0; then
9e07f89d
NN
3137 # We chose a different compiler from the bogus one.
3138 # However, it has the same basename, so the bogon will be chosen
3139 # first if we set CC to just the basename; use the full file name.
3140 shift
c6b750e1 3141 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3142 fi
3143fi
3144fi
3145fi
c6b750e1 3146CC=$ac_cv_prog_CC
9e07f89d 3147if test -n "$CC"; then
c6b750e1
DJ
3148 echo "$as_me:$LINENO: result: $CC" >&5
3149echo "${ECHO_T}$CC" >&6
9e07f89d 3150else
c6b750e1
DJ
3151 echo "$as_me:$LINENO: result: no" >&5
3152echo "${ECHO_T}no" >&6
9e07f89d
NN
3153fi
3154
c6b750e1
DJ
3155fi
3156if test -z "$CC"; then
3157 if test -n "$ac_tool_prefix"; then
3158 for ac_prog in cl
3159 do
3160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3161set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3162echo "$as_me:$LINENO: checking for $ac_word" >&5
3163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3164if test "${ac_cv_prog_CC+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3166else
3167 if test -n "$CC"; then
3168 ac_cv_prog_CC="$CC" # Let the user override the test.
3169else
c6b750e1
DJ
3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171for as_dir in $PATH
3172do
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
376a0e54 3180 fi
c6b750e1
DJ
3181done
3182done
cac3d6c4 3183
c6b750e1
DJ
3184fi
3185fi
3186CC=$ac_cv_prog_CC
3187if test -n "$CC"; then
3188 echo "$as_me:$LINENO: result: $CC" >&5
3189echo "${ECHO_T}$CC" >&6
cac3d6c4 3190else
c6b750e1
DJ
3191 echo "$as_me:$LINENO: result: no" >&5
3192echo "${ECHO_T}no" >&6
9e07f89d 3193fi
cac3d6c4 3194
c6b750e1
DJ
3195 test -n "$CC" && break
3196 done
cac3d6c4 3197fi
c6b750e1
DJ
3198if test -z "$CC"; then
3199 ac_ct_CC=$CC
3200 for ac_prog in cl
3201do
3202 # Extract the first word of "$ac_prog", so it can be a program name with args.
3203set dummy $ac_prog; ac_word=$2
3204echo "$as_me:$LINENO: checking for $ac_word" >&5
3205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3206if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3208else
c6b750e1
DJ
3209 if test -n "$ac_ct_CC"; then
3210 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3211else
c6b750e1
DJ
3212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213for as_dir in $PATH
3214do
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219 ac_cv_prog_ac_ct_CC="$ac_prog"
3220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 break 2
3222 fi
3223done
3224done
3225
cac3d6c4
CM
3226fi
3227fi
c6b750e1
DJ
3228ac_ct_CC=$ac_cv_prog_ac_ct_CC
3229if test -n "$ac_ct_CC"; then
3230 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3231echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3232else
c6b750e1
DJ
3233 echo "$as_me:$LINENO: result: no" >&5
3234echo "${ECHO_T}no" >&6
cac3d6c4 3235fi
376a0e54 3236
c6b750e1
DJ
3237 test -n "$ac_ct_CC" && break
3238done
3239
3240 CC=$ac_ct_CC
3241fi
3242
3243fi
3244
3245
7a283e07
RW
3246test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3247echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
c6b750e1
DJ
3249See \`config.log' for more details." >&5
3250echo "$as_me: error: no acceptable C compiler found in \$PATH
3251See \`config.log' for more details." >&2;}
7a283e07 3252 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3253
3254# Provide some information about the compiler.
3255echo "$as_me:$LINENO:" \
3256 "checking for C compiler version" >&5
3257ac_compiler=`set X $ac_compile; echo $2`
3258{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3259 (eval $ac_compiler --version </dev/null >&5) 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }
3263{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3264 (eval $ac_compiler -v </dev/null >&5) 2>&5
3265 ac_status=$?
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }
3268{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3269 (eval $ac_compiler -V </dev/null >&5) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }
3273
3274cat >conftest.$ac_ext <<_ACEOF
3275/* confdefs.h. */
3276_ACEOF
3277cat confdefs.h >>conftest.$ac_ext
3278cat >>conftest.$ac_ext <<_ACEOF
3279/* end confdefs.h. */
3280
3281int
3282main ()
3283{
3284
3285 ;
3286 return 0;
3287}
3288_ACEOF
3289ac_clean_files_save=$ac_clean_files
3290ac_clean_files="$ac_clean_files a.out a.exe b.out"
3291# Try to create an executable without -o first, disregard a.out.
3292# It will help us diagnose broken compilers, and finding out an intuition
3293# of exeext.
3294echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3295echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3296ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3297if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3298 (eval $ac_link_default) 2>&5
3299 ac_status=$?
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }; then
3302 # Find the output, starting from the most likely. This scheme is
3303# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3304# resort.
3305
3306# Be careful to initialize this variable, since it used to be cached.
3307# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3308ac_cv_exeext=
3309# b.out is created by i960 compilers.
3310for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3311do
3312 test -f "$ac_file" || continue
3313 case $ac_file in
3314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3315 ;;
3316 conftest.$ac_ext )
3317 # This is the source file.
3318 ;;
3319 [ab].out )
3320 # We found the default executable, but exeext='' is most
3321 # certainly right.
3322 break;;
3323 *.* )
3324 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3325 # FIXME: I believe we export ac_cv_exeext for Libtool,
3326 # but it would be cool to find out if it's true. Does anybody
3327 # maintain Libtool? --akim.
3328 export ac_cv_exeext
3329 break;;
3330 * )
3331 break;;
3332 esac
3333done
3334else
3335 echo "$as_me: failed program was:" >&5
3336sed 's/^/| /' conftest.$ac_ext >&5
3337
7a283e07
RW
3338{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3339echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
3340{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3341See \`config.log' for more details." >&5
3342echo "$as_me: error: C compiler cannot create executables
3343See \`config.log' for more details." >&2;}
7a283e07 3344 { (exit 77); exit 77; }; }; }
c6b750e1
DJ
3345fi
3346
3347ac_exeext=$ac_cv_exeext
3348echo "$as_me:$LINENO: result: $ac_file" >&5
3349echo "${ECHO_T}$ac_file" >&6
3350
3351# Check the compiler produces executables we can run. If not, either
3352# the compiler is broken, or we cross compile.
3353echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3354echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3355# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3356# If not cross compiling, check that we can run a simple program.
3357if test "$cross_compiling" != yes; then
3358 if { ac_try='./$ac_file'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 (eval $ac_try) 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 cross_compiling=no
3365 else
3366 if test "$cross_compiling" = maybe; then
3367 cross_compiling=yes
3368 else
7a283e07
RW
3369 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3370echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
c6b750e1
DJ
3372If you meant to cross compile, use \`--host'.
3373See \`config.log' for more details." >&5
3374echo "$as_me: error: cannot run C compiled programs.
3375If you meant to cross compile, use \`--host'.
3376See \`config.log' for more details." >&2;}
7a283e07 3377 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3378 fi
3379 fi
3380fi
3381echo "$as_me:$LINENO: result: yes" >&5
3382echo "${ECHO_T}yes" >&6
3383
3384rm -f a.out a.exe conftest$ac_cv_exeext b.out
3385ac_clean_files=$ac_clean_files_save
3386# Check the compiler produces executables we can run. If not, either
3387# the compiler is broken, or we cross compile.
3388echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3389echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3390echo "$as_me:$LINENO: result: $cross_compiling" >&5
3391echo "${ECHO_T}$cross_compiling" >&6
3392
3393echo "$as_me:$LINENO: checking for suffix of executables" >&5
3394echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3396 (eval $ac_link) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; then
3400 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3401# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3402# work properly (i.e., refer to `conftest.exe'), while it won't with
3403# `rm'.
3404for ac_file in conftest.exe conftest conftest.*; do
3405 test -f "$ac_file" || continue
3406 case $ac_file in
3407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3408 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3409 export ac_cv_exeext
3410 break;;
3411 * ) break;;
3412 esac
3413done
3414else
7a283e07
RW
3415 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3416echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
c6b750e1
DJ
3418See \`config.log' for more details." >&5
3419echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3420See \`config.log' for more details." >&2;}
7a283e07 3421 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3422fi
3423
3424rm -f conftest$ac_cv_exeext
3425echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3426echo "${ECHO_T}$ac_cv_exeext" >&6
3427
3428rm -f conftest.$ac_ext
3429EXEEXT=$ac_cv_exeext
3430ac_exeext=$EXEEXT
3431echo "$as_me:$LINENO: checking for suffix of object files" >&5
3432echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3433if test "${ac_cv_objext+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3435else
3436 cat >conftest.$ac_ext <<_ACEOF
3437/* confdefs.h. */
3438_ACEOF
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
3441/* end confdefs.h. */
3442
3443int
3444main ()
3445{
3446
3447 ;
3448 return 0;
3449}
3450_ACEOF
3451rm -f conftest.o conftest.obj
3452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3453 (eval $ac_compile) 2>&5
3454 ac_status=$?
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; then
3457 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3458 case $ac_file in
3459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3460 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3461 break;;
3462 esac
3463done
cac3d6c4 3464else
c6b750e1
DJ
3465 echo "$as_me: failed program was:" >&5
3466sed 's/^/| /' conftest.$ac_ext >&5
3467
7a283e07
RW
3468{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3469echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
3470{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3471See \`config.log' for more details." >&5
3472echo "$as_me: error: cannot compute suffix of object files: cannot compile
3473See \`config.log' for more details." >&2;}
7a283e07 3474 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3475fi
3476
3477rm -f conftest.$ac_cv_objext conftest.$ac_ext
3478fi
3479echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3480echo "${ECHO_T}$ac_cv_objext" >&6
3481OBJEXT=$ac_cv_objext
3482ac_objext=$OBJEXT
3483echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3484echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3485if test "${ac_cv_c_compiler_gnu+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3487else
3488 cat >conftest.$ac_ext <<_ACEOF
3489/* confdefs.h. */
3490_ACEOF
3491cat confdefs.h >>conftest.$ac_ext
3492cat >>conftest.$ac_ext <<_ACEOF
3493/* end confdefs.h. */
3494
3495int
3496main ()
3497{
3498#ifndef __GNUC__
3499 choke me
3500#endif
3501
3502 ;
3503 return 0;
3504}
3505_ACEOF
3506rm -f conftest.$ac_objext
3507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508 (eval $ac_compile) 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
3515 { ac_try='test -z "$ac_c_werror_flag"
3516 || test ! -s conftest.err'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 (eval $ac_try) 2>&5
3519 ac_status=$?
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; } &&
3522 { ac_try='test -s conftest.$ac_objext'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; }; then
3528 ac_compiler_gnu=yes
3529else
3530 echo "$as_me: failed program was:" >&5
3531sed 's/^/| /' conftest.$ac_ext >&5
3532
3533ac_compiler_gnu=no
3534fi
3535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3536ac_cv_c_compiler_gnu=$ac_compiler_gnu
3537
3538fi
3539echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3540echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3541GCC=`test $ac_compiler_gnu = yes && echo yes`
3542ac_test_CFLAGS=${CFLAGS+set}
3543ac_save_CFLAGS=$CFLAGS
3544CFLAGS="-g"
3545echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3546echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3547if test "${ac_cv_prog_cc_g+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549else
3550 cat >conftest.$ac_ext <<_ACEOF
3551/* confdefs.h. */
3552_ACEOF
3553cat confdefs.h >>conftest.$ac_ext
3554cat >>conftest.$ac_ext <<_ACEOF
3555/* end confdefs.h. */
3556
3557int
3558main ()
3559{
3560
3561 ;
3562 return 0;
3563}
3564_ACEOF
3565rm -f conftest.$ac_objext
3566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3567 (eval $ac_compile) 2>conftest.er1
3568 ac_status=$?
3569 grep -v '^ *+' conftest.er1 >conftest.err
3570 rm -f conftest.er1
3571 cat conftest.err >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } &&
3574 { ac_try='test -z "$ac_c_werror_flag"
3575 || test ! -s conftest.err'
3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 (eval $ac_try) 2>&5
3578 ac_status=$?
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; } &&
3581 { ac_try='test -s conftest.$ac_objext'
3582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 (eval $ac_try) 2>&5
3584 ac_status=$?
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; }; then
9e07f89d
NN
3587 ac_cv_prog_cc_g=yes
3588else
c6b750e1
DJ
3589 echo "$as_me: failed program was:" >&5
3590sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3591
c6b750e1 3592ac_cv_prog_cc_g=no
376a0e54 3593fi
c6b750e1
DJ
3594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3595fi
3596echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3597echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3598if test "$ac_test_CFLAGS" = set; then
c6b750e1 3599 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3600elif test $ac_cv_prog_cc_g = yes; then
3601 if test "$GCC" = yes; then
3602 CFLAGS="-g -O2"
3603 else
3604 CFLAGS="-g"
3605 fi
3606else
3607 if test "$GCC" = yes; then
3608 CFLAGS="-O2"
3609 else
3610 CFLAGS=
3611 fi
3612fi
c6b750e1
DJ
3613echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3614echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3615if test "${ac_cv_prog_cc_stdc+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3617else
3618 ac_cv_prog_cc_stdc=no
3619ac_save_CC=$CC
3620cat >conftest.$ac_ext <<_ACEOF
3621/* confdefs.h. */
3622_ACEOF
3623cat confdefs.h >>conftest.$ac_ext
3624cat >>conftest.$ac_ext <<_ACEOF
3625/* end confdefs.h. */
3626#include <stdarg.h>
3627#include <stdio.h>
3628#include <sys/types.h>
3629#include <sys/stat.h>
3630/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3631struct buf { int x; };
3632FILE * (*rcsopen) (struct buf *, struct stat *, int);
3633static char *e (p, i)
3634 char **p;
3635 int i;
3636{
3637 return p[i];
3638}
3639static char *f (char * (*g) (char **, int), char **p, ...)
3640{
3641 char *s;
3642 va_list v;
3643 va_start (v,p);
3644 s = g (p, va_arg (v,int));
3645 va_end (v);
3646 return s;
3647}
3648
3649/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3650 function prototypes and stuff, but not '\xHH' hex character constants.
3651 These don't provoke an error unfortunately, instead are silently treated
3652 as 'x'. The following induces an error, until -std1 is added to get
3653 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3654 array size at least. It's necessary to write '\x00'==0 to get something
3655 that's true only with -std1. */
3656int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3657
3658int test (int i, double x);
3659struct s1 {int (*f) (int a);};
3660struct s2 {int (*f) (double a);};
3661int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3662int argc;
3663char **argv;
3664int
3665main ()
3666{
3667return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3668 ;
3669 return 0;
3670}
3671_ACEOF
3672# Don't try gcc -ansi; that turns off useful extensions and
3673# breaks some systems' header files.
3674# AIX -qlanglvl=ansi
3675# Ultrix and OSF/1 -std1
3676# HP-UX 10.20 and later -Ae
3677# HP-UX older versions -Aa -D_HPUX_SOURCE
3678# SVR4 -Xc -D__EXTENSIONS__
3679for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3680do
3681 CC="$ac_save_CC $ac_arg"
3682 rm -f conftest.$ac_objext
3683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3684 (eval $ac_compile) 2>conftest.er1
3685 ac_status=$?
3686 grep -v '^ *+' conftest.er1 >conftest.err
3687 rm -f conftest.er1
3688 cat conftest.err >&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } &&
3691 { ac_try='test -z "$ac_c_werror_flag"
3692 || test ! -s conftest.err'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; } &&
3698 { ac_try='test -s conftest.$ac_objext'
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700 (eval $ac_try) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3704 ac_cv_prog_cc_stdc=$ac_arg
3705break
3706else
3707 echo "$as_me: failed program was:" >&5
3708sed 's/^/| /' conftest.$ac_ext >&5
3709
3710fi
3711rm -f conftest.err conftest.$ac_objext
3712done
3713rm -f conftest.$ac_ext conftest.$ac_objext
3714CC=$ac_save_CC
3715
3716fi
3717
3718case "x$ac_cv_prog_cc_stdc" in
3719 x|xno)
3720 echo "$as_me:$LINENO: result: none needed" >&5
3721echo "${ECHO_T}none needed" >&6 ;;
3722 *)
3723 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3724echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3725 CC="$CC $ac_cv_prog_cc_stdc" ;;
3726esac
3727
3728# Some people use a C++ compiler to compile C. Since we use `exit',
3729# in C++ we need to declare it. In case someone uses the same compiler
3730# for both compiling C and C++ we need to have the C++ compiler decide
3731# the declaration of exit, since it's the most demanding environment.
3732cat >conftest.$ac_ext <<_ACEOF
3733#ifndef __cplusplus
3734 choke me
3735#endif
3736_ACEOF
3737rm -f conftest.$ac_objext
3738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3739 (eval $ac_compile) 2>conftest.er1
3740 ac_status=$?
3741 grep -v '^ *+' conftest.er1 >conftest.err
3742 rm -f conftest.er1
3743 cat conftest.err >&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); } &&
3746 { ac_try='test -z "$ac_c_werror_flag"
3747 || test ! -s conftest.err'
3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 (eval $ac_try) 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; } &&
3753 { ac_try='test -s conftest.$ac_objext'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 (eval $ac_try) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; }; then
3759 for ac_declaration in \
3760 '' \
3761 'extern "C" void std::exit (int) throw (); using std::exit;' \
3762 'extern "C" void std::exit (int); using std::exit;' \
3763 'extern "C" void exit (int) throw ();' \
3764 'extern "C" void exit (int);' \
3765 'void exit (int);'
3766do
3767 cat >conftest.$ac_ext <<_ACEOF
3768/* confdefs.h. */
3769_ACEOF
3770cat confdefs.h >>conftest.$ac_ext
3771cat >>conftest.$ac_ext <<_ACEOF
3772/* end confdefs.h. */
3773$ac_declaration
3774#include <stdlib.h>
3775int
3776main ()
3777{
3778exit (42);
3779 ;
3780 return 0;
3781}
3782_ACEOF
3783rm -f conftest.$ac_objext
3784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3785 (eval $ac_compile) 2>conftest.er1
3786 ac_status=$?
3787 grep -v '^ *+' conftest.er1 >conftest.err
3788 rm -f conftest.er1
3789 cat conftest.err >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } &&
3792 { ac_try='test -z "$ac_c_werror_flag"
3793 || test ! -s conftest.err'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 (eval $ac_try) 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; } &&
3799 { ac_try='test -s conftest.$ac_objext'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 (eval $ac_try) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; }; then
3805 :
3806else
3807 echo "$as_me: failed program was:" >&5
3808sed 's/^/| /' conftest.$ac_ext >&5
3809
3810continue
3811fi
3812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3813 cat >conftest.$ac_ext <<_ACEOF
3814/* confdefs.h. */
3815_ACEOF
3816cat confdefs.h >>conftest.$ac_ext
3817cat >>conftest.$ac_ext <<_ACEOF
3818/* end confdefs.h. */
3819$ac_declaration
3820int
3821main ()
3822{
3823exit (42);
3824 ;
3825 return 0;
3826}
3827_ACEOF
3828rm -f conftest.$ac_objext
3829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3830 (eval $ac_compile) 2>conftest.er1
3831 ac_status=$?
3832 grep -v '^ *+' conftest.er1 >conftest.err
3833 rm -f conftest.er1
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } &&
3837 { ac_try='test -z "$ac_c_werror_flag"
3838 || test ! -s conftest.err'
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 (eval $ac_try) 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try='test -s conftest.$ac_objext'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 (eval $ac_try) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3850 break
3851else
3852 echo "$as_me: failed program was:" >&5
3853sed 's/^/| /' conftest.$ac_ext >&5
3854
3855fi
3856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3857done
3858rm -f conftest*
3859if test -n "$ac_declaration"; then
3860 echo '#ifdef __cplusplus' >>confdefs.h
3861 echo $ac_declaration >>confdefs.h
3862 echo '#endif' >>confdefs.h
3863fi
3864
3865else
3866 echo "$as_me: failed program was:" >&5
3867sed 's/^/| /' conftest.$ac_ext >&5
3868
3869fi
3870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3871ac_ext=c
3872ac_cpp='$CPP $CPPFLAGS'
3873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3876
18f6b6ee
PB
3877ac_ext=cc
3878ac_cpp='$CXXCPP $CPPFLAGS'
3879ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3882if test -n "$ac_tool_prefix"; then
3883 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3884 do
3885 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3886set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3887echo "$as_me:$LINENO: checking for $ac_word" >&5
3888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3889if test "${ac_cv_prog_CXX+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3891else
3892 if test -n "$CXX"; then
3893 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3894else
3895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896for as_dir in $PATH
3897do
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3905 fi
3906done
3907done
512b7dfb 3908
18f6b6ee
PB
3909fi
3910fi
3911CXX=$ac_cv_prog_CXX
3912if test -n "$CXX"; then
3913 echo "$as_me:$LINENO: result: $CXX" >&5
3914echo "${ECHO_T}$CXX" >&6
3915else
3916 echo "$as_me:$LINENO: result: no" >&5
3917echo "${ECHO_T}no" >&6
3918fi
3919
3920 test -n "$CXX" && break
3921 done
3922fi
3923if test -z "$CXX"; then
3924 ac_ct_CXX=$CXX
3925 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3926do
3927 # Extract the first word of "$ac_prog", so it can be a program name with args.
3928set dummy $ac_prog; ac_word=$2
3929echo "$as_me:$LINENO: checking for $ac_word" >&5
3930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3931if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933else
3934 if test -n "$ac_ct_CXX"; then
3935 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3936else
3937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938for as_dir in $PATH
3939do
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3944 ac_cv_prog_ac_ct_CXX="$ac_prog"
3945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 break 2
512b7dfb 3947 fi
18f6b6ee
PB
3948done
3949done
512b7dfb 3950
18f6b6ee
PB
3951fi
3952fi
3953ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3954if test -n "$ac_ct_CXX"; then
3955 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3956echo "${ECHO_T}$ac_ct_CXX" >&6
3957else
3958 echo "$as_me:$LINENO: result: no" >&5
3959echo "${ECHO_T}no" >&6
3960fi
3961
3962 test -n "$ac_ct_CXX" && break
3963done
3964test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3965
3966 CXX=$ac_ct_CXX
3967fi
3968
3969
3970# Provide some information about the compiler.
3971echo "$as_me:$LINENO:" \
3972 "checking for C++ compiler version" >&5
3973ac_compiler=`set X $ac_compile; echo $2`
3974{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3975 (eval $ac_compiler --version </dev/null >&5) 2>&5
3976 ac_status=$?
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }
3979{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3980 (eval $ac_compiler -v </dev/null >&5) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }
3984{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3985 (eval $ac_compiler -V </dev/null >&5) 2>&5
3986 ac_status=$?
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); }
3989
3990echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3991echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3992if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3994else
3995 cat >conftest.$ac_ext <<_ACEOF
3996/* confdefs.h. */
3997_ACEOF
3998cat confdefs.h >>conftest.$ac_ext
3999cat >>conftest.$ac_ext <<_ACEOF
4000/* end confdefs.h. */
4001
4002int
4003main ()
4004{
4005#ifndef __GNUC__
4006 choke me
4007#endif
4008
4009 ;
4010 return 0;
4011}
4012_ACEOF
4013rm -f conftest.$ac_objext
4014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4015 (eval $ac_compile) 2>conftest.er1
4016 ac_status=$?
4017 grep -v '^ *+' conftest.er1 >conftest.err
4018 rm -f conftest.er1
4019 cat conftest.err >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } &&
4022 { ac_try='test -z "$ac_cxx_werror_flag"
4023 || test ! -s conftest.err'
4024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025 (eval $ac_try) 2>&5
4026 ac_status=$?
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); }; } &&
4029 { ac_try='test -s conftest.$ac_objext'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 (eval $ac_try) 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; }; then
4035 ac_compiler_gnu=yes
4036else
4037 echo "$as_me: failed program was:" >&5
4038sed 's/^/| /' conftest.$ac_ext >&5
4039
4040ac_compiler_gnu=no
4041fi
4042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4043ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4044
4045fi
4046echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4047echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4048GXX=`test $ac_compiler_gnu = yes && echo yes`
4049ac_test_CXXFLAGS=${CXXFLAGS+set}
4050ac_save_CXXFLAGS=$CXXFLAGS
4051CXXFLAGS="-g"
4052echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4053echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4054if test "${ac_cv_prog_cxx_g+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4056else
4057 cat >conftest.$ac_ext <<_ACEOF
4058/* confdefs.h. */
4059_ACEOF
4060cat confdefs.h >>conftest.$ac_ext
4061cat >>conftest.$ac_ext <<_ACEOF
4062/* end confdefs.h. */
4063
4064int
4065main ()
4066{
4067
4068 ;
4069 return 0;
4070}
4071_ACEOF
4072rm -f conftest.$ac_objext
4073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4074 (eval $ac_compile) 2>conftest.er1
4075 ac_status=$?
4076 grep -v '^ *+' conftest.er1 >conftest.err
4077 rm -f conftest.er1
4078 cat conftest.err >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } &&
4081 { ac_try='test -z "$ac_cxx_werror_flag"
4082 || test ! -s conftest.err'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 (eval $ac_try) 2>&5
4085 ac_status=$?
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; } &&
4088 { ac_try='test -s conftest.$ac_objext'
4089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090 (eval $ac_try) 2>&5
4091 ac_status=$?
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }; }; then
4094 ac_cv_prog_cxx_g=yes
4095else
4096 echo "$as_me: failed program was:" >&5
4097sed 's/^/| /' conftest.$ac_ext >&5
4098
4099ac_cv_prog_cxx_g=no
4100fi
4101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4102fi
4103echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4104echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4105if test "$ac_test_CXXFLAGS" = set; then
4106 CXXFLAGS=$ac_save_CXXFLAGS
4107elif test $ac_cv_prog_cxx_g = yes; then
4108 if test "$GXX" = yes; then
4109 CXXFLAGS="-g -O2"
4110 else
4111 CXXFLAGS="-g"
4112 fi
4113else
4114 if test "$GXX" = yes; then
4115 CXXFLAGS="-O2"
4116 else
4117 CXXFLAGS=
4118 fi
4119fi
4120for ac_declaration in \
4121 '' \
4122 'extern "C" void std::exit (int) throw (); using std::exit;' \
4123 'extern "C" void std::exit (int); using std::exit;' \
4124 'extern "C" void exit (int) throw ();' \
4125 'extern "C" void exit (int);' \
4126 'void exit (int);'
4127do
4128 cat >conftest.$ac_ext <<_ACEOF
4129/* confdefs.h. */
4130_ACEOF
4131cat confdefs.h >>conftest.$ac_ext
4132cat >>conftest.$ac_ext <<_ACEOF
4133/* end confdefs.h. */
4134$ac_declaration
4135#include <stdlib.h>
4136int
4137main ()
4138{
4139exit (42);
4140 ;
4141 return 0;
4142}
4143_ACEOF
4144rm -f conftest.$ac_objext
4145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4146 (eval $ac_compile) 2>conftest.er1
4147 ac_status=$?
4148 grep -v '^ *+' conftest.er1 >conftest.err
4149 rm -f conftest.er1
4150 cat conftest.err >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } &&
4153 { ac_try='test -z "$ac_cxx_werror_flag"
4154 || test ! -s conftest.err'
4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 (eval $ac_try) 2>&5
4157 ac_status=$?
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; } &&
4160 { ac_try='test -s conftest.$ac_objext'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 (eval $ac_try) 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
4166 :
4167else
4168 echo "$as_me: failed program was:" >&5
4169sed 's/^/| /' conftest.$ac_ext >&5
4170
4171continue
4172fi
4173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4174 cat >conftest.$ac_ext <<_ACEOF
4175/* confdefs.h. */
4176_ACEOF
4177cat confdefs.h >>conftest.$ac_ext
4178cat >>conftest.$ac_ext <<_ACEOF
4179/* end confdefs.h. */
4180$ac_declaration
4181int
4182main ()
4183{
4184exit (42);
4185 ;
4186 return 0;
4187}
4188_ACEOF
4189rm -f conftest.$ac_objext
4190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4191 (eval $ac_compile) 2>conftest.er1
4192 ac_status=$?
4193 grep -v '^ *+' conftest.er1 >conftest.err
4194 rm -f conftest.er1
4195 cat conftest.err >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } &&
4198 { ac_try='test -z "$ac_cxx_werror_flag"
4199 || test ! -s conftest.err'
4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201 (eval $ac_try) 2>&5
4202 ac_status=$?
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; } &&
4205 { ac_try='test -s conftest.$ac_objext'
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 (eval $ac_try) 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
4211 break
4212else
4213 echo "$as_me: failed program was:" >&5
4214sed 's/^/| /' conftest.$ac_ext >&5
4215
4216fi
4217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4218done
4219rm -f conftest*
4220if test -n "$ac_declaration"; then
4221 echo '#ifdef __cplusplus' >>confdefs.h
4222 echo $ac_declaration >>confdefs.h
4223 echo '#endif' >>confdefs.h
4224fi
4225
4226ac_ext=c
4227ac_cpp='$CPP $CPPFLAGS'
4228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4230ac_compiler_gnu=$ac_cv_c_compiler_gnu
4231
4232
4233# We must set the default linker to the linker used by gcc for the correct
4234# operation of libtool. If LD is not defined and we are using gcc, try to
4235# set the LD default to the ld used by gcc.
4236if test -z "$LD"; then
4237 if test "$GCC" = yes; then
4238 case $build in
4239 *-*-mingw*)
4240 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4241 *)
4242 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4243 esac
4244 case $gcc_prog_ld in
4245 # Accept absolute paths.
4246 [\\/]* | [A-Za-z]:[\\/]*)
4247 LD="$gcc_prog_ld" ;;
4248 esac
4249 fi
512b7dfb
PB
4250fi
4251
4252
4253
4254
c6b750e1 4255if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4256 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4257set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4258echo "$as_me:$LINENO: checking for $ac_word" >&5
4259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4260if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4261 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4262else
512b7dfb
PB
4263 if test -n "$GNATBIND"; then
4264 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4265else
c6b750e1
DJ
4266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH
4268do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4273 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4276 fi
4277done
4278done
4279
9e07f89d
NN
4280fi
4281fi
512b7dfb
PB
4282GNATBIND=$ac_cv_prog_GNATBIND
4283if test -n "$GNATBIND"; then
4284 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4285echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4286else
c6b750e1
DJ
4287 echo "$as_me:$LINENO: result: no" >&5
4288echo "${ECHO_T}no" >&6
9e07f89d
NN
4289fi
4290
c6b750e1 4291fi
512b7dfb
PB
4292if test -z "$ac_cv_prog_GNATBIND"; then
4293 ac_ct_GNATBIND=$GNATBIND
4294 # Extract the first word of "gnatbind", so it can be a program name with args.
4295set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4296echo "$as_me:$LINENO: checking for $ac_word" >&5
4297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4298if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4299 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4300else
512b7dfb
PB
4301 if test -n "$ac_ct_GNATBIND"; then
4302 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4303else
c6b750e1
DJ
4304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305for as_dir in $PATH
4306do
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4311 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 break 2
4314 fi
4315done
4316done
4317
512b7dfb 4318 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4319fi
4320fi
512b7dfb
PB
4321ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4322if test -n "$ac_ct_GNATBIND"; then
4323 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4324echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4325else
c6b750e1
DJ
4326 echo "$as_me:$LINENO: result: no" >&5
4327echo "${ECHO_T}no" >&6
9e07f89d
NN
4328fi
4329
512b7dfb 4330 GNATBIND=$ac_ct_GNATBIND
24ff9987 4331else
512b7dfb 4332 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4333fi
4334
7df2cd5d 4335if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4336 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4337set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4338echo "$as_me:$LINENO: checking for $ac_word" >&5
4339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4340if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4342else
512b7dfb
PB
4343 if test -n "$GNATMAKE"; then
4344 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4345else
4346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347for as_dir in $PATH
4348do
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4353 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 break 2
4356 fi
4357done
4358done
4359
4360fi
4361fi
512b7dfb
PB
4362GNATMAKE=$ac_cv_prog_GNATMAKE
4363if test -n "$GNATMAKE"; then
4364 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4365echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4366else
4367 echo "$as_me:$LINENO: result: no" >&5
4368echo "${ECHO_T}no" >&6
4369fi
4370
4371fi
512b7dfb
PB
4372if test -z "$ac_cv_prog_GNATMAKE"; then
4373 ac_ct_GNATMAKE=$GNATMAKE
4374 # Extract the first word of "gnatmake", so it can be a program name with args.
4375set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4376echo "$as_me:$LINENO: checking for $ac_word" >&5
4377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4378if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4380else
512b7dfb
PB
4381 if test -n "$ac_ct_GNATMAKE"; then
4382 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4383else
4384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385for as_dir in $PATH
4386do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4391 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4393 break 2
4394 fi
4395done
4396done
4397
512b7dfb 4398 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4399fi
4400fi
512b7dfb
PB
4401ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4402if test -n "$ac_ct_GNATMAKE"; then
4403 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4404echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4405else
4406 echo "$as_me:$LINENO: result: no" >&5
4407echo "${ECHO_T}no" >&6
4408fi
4409
512b7dfb 4410 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4411else
512b7dfb 4412 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4413fi
4414
c6b750e1
DJ
4415echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4416echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4417if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4419else
4420 cat >conftest.adb <<EOF
4421procedure conftest is begin null; end conftest;
4422EOF
4423acx_cv_cc_gcc_supports_ada=no
4424# There is a bug in old released versions of GCC which causes the
4425# driver to exit successfully when the appropriate language module
4426# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4427# Therefore we must check for the error message as well as an
4428# unsuccessful exit.
b8908782
DD
4429# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4430# given a .adb file, but produce no object file. So we must check
4431# if an object file was really produced to guard against this.
9e07f89d 4432errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4433if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4434 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4435fi
4436rm -f conftest.*
4437fi
c6b750e1
DJ
4438echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4439echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4440
512b7dfb 4441if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4442 have_gnat=yes
4443else
4444 have_gnat=no
4445fi
4446
c6b750e1
DJ
4447echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4448echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4449if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4451else
4452 echo abfoo >t1
4453 echo cdfoo >t2
4454 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4455 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4456 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4457 :
4458 else
4459 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4460 fi
4461 fi
b8908782
DD
4462 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4463 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4464 :
b8908782
DD
4465 else
4466 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4467 fi
4468 fi
4469 rm t1 t2
4470
4471fi
c6b750e1
DJ
4472echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4473echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4474do_compare="$gcc_cv_prog_cmp_skip"
4475
4476
9e07f89d 4477
11b04d1f 4478# Check for GMP and MPFR
4b900473 4479gmplibs="-lmpfr -lgmp"
4b1cb4fe 4480gmpinc=
4b900473
PB
4481have_gmp=no
4482
11b04d1f
DD
4483# Specify a location for mpfr
4484# check for this first so it ends up on the link line before gmp.
c6b750e1 4485
11b04d1f
DD
4486# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4487if test "${with_mpfr_dir+set}" = set; then
4488 withval="$with_mpfr_dir"
c6b750e1
DJ
4489 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4490Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4491echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4492Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4493 { (exit 1); exit 1; }; }
4494fi;
11b04d1f
DD
4495
4496
11b04d1f
DD
4497# Check whether --with-mpfr or --without-mpfr was given.
4498if test "${with_mpfr+set}" = set; then
4499 withval="$with_mpfr"
c6b750e1
DJ
4500
4501fi;
11b04d1f 4502
8a0d8a5c
PB
4503# Check whether --with-mpfr_include or --without-mpfr_include was given.
4504if test "${with_mpfr_include+set}" = set; then
4505 withval="$with_mpfr_include"
c6b750e1
DJ
4506
4507fi;
8a0d8a5c
PB
4508
4509# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4510if test "${with_mpfr_lib+set}" = set; then
4511 withval="$with_mpfr_lib"
8a0d8a5c 4512
c6b750e1 4513fi;
11b04d1f
DD
4514
4515if test "x$with_mpfr" != x; then
4516 gmplibs="-L$with_mpfr/lib $gmplibs"
4517 gmpinc="-I$with_mpfr/include"
4518fi
8a0d8a5c
PB
4519if test "x$with_mpfr_include" != x; then
4520 gmpinc="-I$with_mpfr_include"
4521fi
4522if test "x$with_mpfr_lib" != x; then
4523 gmplibs="-L$with_mpfr_lib $gmplibs"
4524fi
4b900473
PB
4525if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4526 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4527 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4528 # Do not test the mpfr version. Assume that it is sufficient, since
4529 # it is in the source tree, and the library has not been built yet
4530 # but it would be included on the link line in the version check below
4531 # hence making the test fail.
4532 have_gmp=yes
4533fi
11b04d1f 4534
4b1cb4fe 4535# Specify a location for gmp
c6b750e1 4536
4b1cb4fe
DD
4537# Check whether --with-gmp-dir or --without-gmp-dir was given.
4538if test "${with_gmp_dir+set}" = set; then
4539 withval="$with_gmp_dir"
c6b750e1
DJ
4540 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4541Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4542echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4543Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4544 { (exit 1); exit 1; }; }
4545fi;
4b1cb4fe
DD
4546
4547
4b1cb4fe
DD
4548# Check whether --with-gmp or --without-gmp was given.
4549if test "${with_gmp+set}" = set; then
4550 withval="$with_gmp"
c6b750e1
DJ
4551
4552fi;
4b1cb4fe 4553
8a0d8a5c
PB
4554# Check whether --with-gmp_include or --without-gmp_include was given.
4555if test "${with_gmp_include+set}" = set; then
4556 withval="$with_gmp_include"
c6b750e1
DJ
4557
4558fi;
8a0d8a5c
PB
4559
4560# Check whether --with-gmp_lib or --without-gmp_lib was given.
4561if test "${with_gmp_lib+set}" = set; then
4562 withval="$with_gmp_lib"
8a0d8a5c 4563
c6b750e1 4564fi;
8a0d8a5c 4565
4b1cb4fe 4566
11b04d1f
DD
4567if test "x$with_gmp" != x; then
4568 gmplibs="-L$with_gmp/lib $gmplibs"
4569 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4570fi
8a0d8a5c
PB
4571if test "x$with_gmp_include" != x; then
4572 gmpinc="-I$with_gmp_include $gmpinc"
4573fi
4574if test "x$with_gmp_lib" != x; then
4575 gmplibs="-L$with_gmp_lib $gmplibs"
4576fi
4b900473
PB
4577if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4578 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4579 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4580 # Do not test the gmp version. Assume that it is sufficient, since
4581 # it is in the source tree, and the library has not been built yet
4582 # but it would be included on the link line in the version check below
4583 # hence making the test fail.
4584 have_gmp=yes
4585fi
4b1cb4fe 4586
ceb92e78 4587if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4588 have_gmp=yes
4589 saved_CFLAGS="$CFLAGS"
4590 CFLAGS="$CFLAGS $gmpinc"
4591 # Check GMP actually works
c6b750e1
DJ
4592 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4593echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4594
4595cat >conftest.$ac_ext <<_ACEOF
4596/* confdefs.h. */
4597_ACEOF
4598cat confdefs.h >>conftest.$ac_ext
4599cat >>conftest.$ac_ext <<_ACEOF
4600/* end confdefs.h. */
4b1cb4fe 4601#include "gmp.h"
c6b750e1
DJ
4602int
4603main ()
4604{
4b1cb4fe 4605
4b900473
PB
4606 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4607 choke me
4608 #endif
c6b750e1
DJ
4609
4610 ;
4611 return 0;
4612}
4613_ACEOF
4614rm -f conftest.$ac_objext
4615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616 (eval $ac_compile) 2>conftest.er1
4617 ac_status=$?
4618 grep -v '^ *+' conftest.er1 >conftest.err
4619 rm -f conftest.er1
4620 cat conftest.err >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } &&
4623 { ac_try='test -z "$ac_c_werror_flag"
4624 || test ! -s conftest.err'
4625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 (eval $ac_try) 2>&5
4627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; } &&
4630 { ac_try='test -s conftest.$ac_objext'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 (eval $ac_try) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
4636 echo "$as_me:$LINENO: result: yes" >&5
4637echo "${ECHO_T}yes" >&6
4638else
4639 echo "$as_me: failed program was:" >&5
4640sed 's/^/| /' conftest.$ac_ext >&5
4641
4642echo "$as_me:$LINENO: result: no" >&5
4643echo "${ECHO_T}no" >&6; have_gmp=no
4644fi
4645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4646
4b900473
PB
4647 if test x"$have_gmp" = xyes; then
4648 saved_LIBS="$LIBS"
4649 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4650 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4651echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4652 cat >conftest.$ac_ext <<_ACEOF
4653/* confdefs.h. */
4654_ACEOF
4655cat confdefs.h >>conftest.$ac_ext
4656cat >>conftest.$ac_ext <<_ACEOF
4657/* end confdefs.h. */
9b134994 4658#include <gmp.h>
4b900473 4659 #include <mpfr.h>
c6b750e1
DJ
4660int
4661main ()
4662{
9b134994 4663
57c53b2b 4664 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4b900473
PB
4665 choke me
4666 #endif
a3ca38d2
DD
4667 mpfr_t n;
4668 mpfr_t x;
4b900473 4669 int t;
a3ca38d2
DD
4670 mpfr_init (n);
4671 mpfr_init (x);
4b900473
PB
4672 mpfr_atan2 (n, n, x, GMP_RNDN);
4673 mpfr_erfc (n, x, GMP_RNDN);
4674 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4675
4676 ;
4677 return 0;
4678}
4679_ACEOF
4680rm -f conftest.$ac_objext conftest$ac_exeext
4681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4682 (eval $ac_link) 2>conftest.er1
4683 ac_status=$?
4684 grep -v '^ *+' conftest.er1 >conftest.err
4685 rm -f conftest.er1
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } &&
4689 { ac_try='test -z "$ac_c_werror_flag"
4690 || test ! -s conftest.err'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 (eval $ac_try) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; } &&
4696 { ac_try='test -s conftest$ac_exeext'
4697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 (eval $ac_try) 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; }; then
4702 cat >conftest.$ac_ext <<_ACEOF
4703/* confdefs.h. */
4704_ACEOF
4705cat confdefs.h >>conftest.$ac_ext
4706cat >>conftest.$ac_ext <<_ACEOF
4707/* end confdefs.h. */
4b1cb4fe 4708#include <gmp.h>
4b900473 4709 #include <mpfr.h>
c6b750e1
DJ
4710int
4711main ()
4712{
9dbaa842 4713
57c53b2b 4714 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
4b900473
PB
4715 choke me
4716 #endif
4717 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4718
4719 ;
4720 return 0;
4721}
4722_ACEOF
4723rm -f conftest.$ac_objext conftest$ac_exeext
4724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4725 (eval $ac_link) 2>conftest.er1
4726 ac_status=$?
4727 grep -v '^ *+' conftest.er1 >conftest.err
4728 rm -f conftest.er1
4729 cat conftest.err >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } &&
4732 { ac_try='test -z "$ac_c_werror_flag"
4733 || test ! -s conftest.err'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 (eval $ac_try) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; } &&
4739 { ac_try='test -s conftest$ac_exeext'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 (eval $ac_try) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4745 echo "$as_me:$LINENO: result: yes" >&5
4746echo "${ECHO_T}yes" >&6
4747else
4748 echo "$as_me: failed program was:" >&5
4749sed 's/^/| /' conftest.$ac_ext >&5
4750
4751echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4752echo "${ECHO_T}buggy but acceptable" >&6
4753fi
4754rm -f conftest.err conftest.$ac_objext \
4755 conftest$ac_exeext conftest.$ac_ext
4756else
4757 echo "$as_me: failed program was:" >&5
4758sed 's/^/| /' conftest.$ac_ext >&5
4759
4760echo "$as_me:$LINENO: result: no" >&5
4761echo "${ECHO_T}no" >&6; have_gmp=no
4762fi
4763rm -f conftest.err conftest.$ac_objext \
4764 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4765 LIBS="$saved_LIBS"
4766 fi
4767 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4768
4b900473 4769 if test x$have_gmp != xyes; then
57c53b2b 4770 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
c6b750e1
DJ
4771Try the --with-gmp and/or --with-mpfr options to specify their locations.
4772Copies of these libraries' source code can be found at their respective
4773hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4774See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4775If you obtained GMP and/or MPFR from a vendor distribution package, make
4776sure that you have installed both the libraries and the header files.
4777They may be located in separate packages." >&5
57c53b2b 4778echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
9dbaa842
DD
4779Try the --with-gmp and/or --with-mpfr options to specify their locations.
4780Copies of these libraries' source code can be found at their respective
4781hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4782See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4783If you obtained GMP and/or MPFR from a vendor distribution package, make
4784sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4785They may be located in separate packages." >&2;}
4786 { (exit 1); exit 1; }; }
4b900473 4787 fi
9dbaa842
DD
4788fi
4789
11b04d1f 4790# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4791
4792
4793
947f426e 4794# By default, C is the only stage 1 language.
9b134994 4795stage1_languages=,c,
1d39f329 4796
9e07f89d
NN
4797# Figure out what language subdirectories are present.
4798# Look if the user specified --enable-languages="..."; if not, use
4799# the environment variable $LANGUAGES if defined. $LANGUAGES might
4800# go away some day.
4801# NB: embedded tabs in this IF block -- do not untabify
4802if test -d ${srcdir}/gcc; then
4803 if test x"${enable_languages+set}" != xset; then
4804 if test x"${LANGUAGES+set}" = xset; then
4805 enable_languages="${LANGUAGES}"
4806 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4807 else
4808 enable_languages=all
4809 fi
4810 else
4811 if test x"${enable_languages}" = x ||
4812 test x"${enable_languages}" = xyes;
4813 then
4814 echo configure.in: --enable-languages needs at least one language argument 1>&2
4815 exit 1
4816 fi
4817 fi
4818 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4819
096f7d00
DE
4820 # 'f95' is the old name for the 'fortran' language. We issue a warning
4821 # and make the substitution.
4822 case ,${enable_languages}, in
4823 *,f95,*)
4824 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4825 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4826 ;;
4827 esac
4828
9e07f89d
NN
4829 # First scan to see if an enabled language requires some other language.
4830 # We assume that a given config-lang.in will list all the language
4831 # front ends it requires, even if some are required indirectly.
4832 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4833 case ${lang_frag} in
4834 ..) ;;
4835 # The odd quoting in the next line works around
4836 # an apparent bug in bash 1.12 on linux.
4837 ${srcdir}/gcc/[*]/config-lang.in) ;;
4838 *)
4839 # From the config-lang.in, get $language, $lang_requires
4840 language=
4841 lang_requires=
4842 . ${lang_frag}
4843 for other in ${lang_requires} ; do
4844 case ,${enable_languages}, in
4845 *,$other,*) ;;
4846 *,all,*) ;;
4847 *,$language,*)
4848 echo " \`$other' language required by \`$language'; enabling" 1>&2
4849 enable_languages="${enable_languages},${other}"
4850 ;;
4851 esac
4852 done
4853 ;;
4854 esac
4855 done
4856
9b134994 4857 new_enable_languages=,c,
9e07f89d 4858 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4859 potential_languages=,c,
9e07f89d
NN
4860
4861 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4862 case ${lang_frag} in
4863 ..) ;;
4864 # The odd quoting in the next line works around
4865 # an apparent bug in bash 1.12 on linux.
4866 ${srcdir}/gcc/[*]/config-lang.in) ;;
4867 *)
c6b750e1 4868 # From the config-lang.in, get $language, $target_libs,
1d39f329 4869 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4870 language=
4871 target_libs=
4872 lang_dirs=
64ce424c 4873 subdir_requires=
9b134994
PB
4874 boot_language=no
4875 build_by_default=yes
9e07f89d 4876 . ${lang_frag}
9b134994
PB
4877 if test x${language} = x; then
4878 echo "${lang_frag} doesn't set \$language." 1>&2
4879 exit 1
4880 fi
4881
4882 case ,${enable_languages}, in
4883 *,${language},*)
9e07f89d
NN
4884 # Language was explicitly selected; include it.
4885 add_this_lang=yes
4886 ;;
9b134994
PB
4887 *,all,*)
4888 # 'all' was selected, select it if it is a default language
4889 add_this_lang=${build_by_default}
9e07f89d
NN
4890 ;;
4891 *)
4892 add_this_lang=no
4893 ;;
4894 esac
4b1cb4fe 4895
64ce424c 4896 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4897 for i in $subdir_requires; do
3d3adb43 4898 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4899 case ,${enable_languages}, in
4900 *,${language},*)
4901 # Specifically requested language; tell them.
c6b750e1
DJ
4902 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4903echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4904 { (exit 1); exit 1; }; }
64ce424c
PB
4905 ;;
4906 *)
4907 # Silently disable.
9b134994 4908 add_this_lang=unsupported
64ce424c
PB
4909 ;;
4910 esac
4911 done
4912
9b134994
PB
4913 # Disable Ada if no preexisting GNAT is available.
4914 case ,${enable_languages},:${language}:${have_gnat} in
4915 *,${language},*:ada:no)
4916 # Specifically requested language; tell them.
c6b750e1
DJ
4917 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4918echo "$as_me: error: GNAT is required to build $language" >&2;}
4919 { (exit 1); exit 1; }; }
9b134994
PB
4920 ;;
4921 *:ada:no)
4922 # Silently disable.
4923 add_this_lang=unsupported
4924 ;;
4925 esac
4926
59f7ec45
HPN
4927 # Disable a language that is unsupported by the target.
4928 case " $unsupported_languages " in
4929 *" $language "*)
9b134994 4930 add_this_lang=unsupported
59f7ec45
HPN
4931 ;;
4932 esac
4933
4b1cb4fe 4934 case $add_this_lang in
9b134994 4935 unsupported)
9e07f89d 4936 # Remove language-dependent dirs.
1d39f329
NN
4937 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4938 ;;
9b134994
PB
4939 no)
4940 # Remove language-dependent dirs; still show language as supported.
4941 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4942 potential_languages="${potential_languages}${language},"
4943 ;;
4944 yes)
4945 new_enable_languages="${new_enable_languages}${language},"
4946 potential_languages="${potential_languages}${language},"
1d39f329
NN
4947 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4948 case ${boot_language} in
4949 yes)
4fa63067 4950 # Add to (comma-separated) list of stage 1 languages.
9b134994 4951 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4952 ;;
4953 esac
4954 ;;
9e07f89d
NN
4955 esac
4956 ;;
4957 esac
4958 done
4959
9b134994
PB
4960 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4961if test "${enable_stage1_languages+set}" = set; then
4962 enableval="$enable_stage1_languages"
4963 case ,${enable_stage1_languages}, in
4964 ,no,|,,)
4965 # Set it to something that will have no effect in the loop below
4966 enable_stage1_languages=c ;;
4967 ,yes,)
4968 enable_stage1_languages=`echo $new_enable_languages | \
4969 sed -e "s/^,//" -e "s/,$//" ` ;;
4970 *,all,*)
4971 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4972 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4973 esac
4974
4975 # Add "good" languages from enable_stage1_languages to stage1_languages,
4976 # while "bad" languages go in missing_languages. Leave no duplicates.
4977 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4978 case $potential_languages in
4979 *,$i,*)
4980 case $stage1_languages in
4981 *,$i,*) ;;
4982 *) stage1_languages="$stage1_languages$i," ;;
4983 esac ;;
4984 *)
4985 case $missing_languages in
4986 *,$i,*) ;;
4987 *) missing_languages="$missing_languages$i," ;;
4988 esac ;;
4989 esac
4990 done
c6b750e1 4991fi;
9b134994
PB
4992
4993 # Remove leading/trailing commas that were added for simplicity
4994 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4995 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4996 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4997 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4998
9e07f89d 4999 if test "x$missing_languages" != x; then
c6b750e1 5000 { { echo "$as_me:$LINENO: error:
27258dd4 5001The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
5002Supported languages are: ${potential_languages}" >&5
5003echo "$as_me: error:
5004The following requested languages could not be built: ${missing_languages}
5005Supported languages are: ${potential_languages}" >&2;}
5006 { (exit 1); exit 1; }; }
9e07f89d 5007 fi
9e07f89d
NN
5008 if test "x$new_enable_languages" != "x$enable_languages"; then
5009 echo The following languages will be built: ${new_enable_languages}
9b134994 5010 enable_languages="$new_enable_languages"
9e07f89d 5011 fi
9b134994 5012
c6b750e1 5013
81ec575a 5014 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
5015fi
5016
a6df5a19
PB
5017# Handle --disable-<component> generically.
5018for dir in $configdirs $build_configdirs $target_configdirs ; do
5019 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
5020 varname=`echo $dirname | sed -e s/+/_/g`
5021 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
5022 noconfigdirs="$noconfigdirs $dir"
5023 fi
5024done
5025
4f0ef2d8
CD
5026# Check for Boehm's garbage collector
5027# Check whether --enable-objc-gc or --disable-objc-gc was given.
5028if test "${enable_objc_gc+set}" = set; then
5029 enableval="$enable_objc_gc"
5030 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5031 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
5032 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5033echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5034 { (exit 1); exit 1; }; }
4f0ef2d8
CD
5035 ;;
5036esac
c6b750e1 5037fi;
4f0ef2d8
CD
5038
5039# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
5040case ,${enable_languages},:${enable_objc_gc} in
5041 *,objc,*:yes)
4f0ef2d8
CD
5042 # Keep target-boehm-gc if requested for Objective-C.
5043 ;;
4f0ef2d8 5044 *)
d42c4017
DA
5045 # Otherwise remove target-boehm-gc depending on target-libjava.
5046 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5047 noconfigdirs="$noconfigdirs target-boehm-gc"
5048 fi
4f0ef2d8
CD
5049 ;;
5050esac
5051
caeba88f
AL
5052# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5053# $build_configdirs and $target_configdirs.
9e07f89d
NN
5054# If we have the source for $noconfigdirs entries, add them to $notsupp.
5055
5056notsupp=""
5057for dir in . $skipdirs $noconfigdirs ; do
caeba88f 5058 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
5059 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5060 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5061 if test -r $srcdir/$dirname/configure ; then
5062 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5063 true
5064 else
5065 notsupp="$notsupp $dir"
5066 fi
5067 fi
5068 fi
caeba88f
AL
5069 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5070 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5071 if test -r $srcdir/$dirname/configure ; then
5072 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5073 true
5074 else
5075 notsupp="$notsupp $dir"
5076 fi
5077 fi
5078 fi
9e07f89d
NN
5079 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5080 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5081 if test -r $srcdir/$dirname/configure ; then
5082 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5083 true
5084 else
5085 notsupp="$notsupp $dir"
5086 fi
5087 fi
5088 fi
5089done
5090
5091# Sometimes the tools are distributed with libiberty but with no other
5092# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 5093# Don't let libgcc imply libiberty either.
9e07f89d 5094if test -n "${target_configdirs}" ; then
f86e35b8 5095 libgcc=
9e07f89d
NN
5096 others=
5097 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
5098 if test "$i" = "libgcc"; then
5099 libgcc=target-libgcc
5100 elif test "$i" != "libiberty" ; then
9e07f89d
NN
5101 if test -r $srcdir/$i/configure ; then
5102 others=yes;
5103 break;
5104 fi
5105 fi
5106 done
5107 if test -z "${others}" ; then
f86e35b8 5108 target_configdirs=$libgcc
9e07f89d
NN
5109 fi
5110fi
5111
5112# Quietly strip out all directories which aren't configurable in this tree.
5113# This relies on all configurable subdirectories being autoconfiscated, which
5114# is now the case.
6a9cf61e
PB
5115build_configdirs_all="$build_configdirs"
5116build_configdirs=
5117for i in ${build_configdirs_all} ; do
c6b750e1 5118 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5119 if test -f ${srcdir}/$j/configure ; then
5120 build_configdirs="${build_configdirs} $i"
5121 fi
5122done
5123
9e07f89d
NN
5124configdirs_all="$configdirs"
5125configdirs=
5126for i in ${configdirs_all} ; do
5127 if test -f ${srcdir}/$i/configure ; then
5128 configdirs="${configdirs} $i"
5129 fi
5130done
6a9cf61e 5131
9e07f89d
NN
5132target_configdirs_all="$target_configdirs"
5133target_configdirs=
5134for i in ${target_configdirs_all} ; do
c6b750e1 5135 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5136 if test -f ${srcdir}/$j/configure ; then
5137 target_configdirs="${target_configdirs} $i"
5138 fi
5139done
5140
5141# Produce a warning message for the subdirs we can't configure.
5142# This isn't especially interesting in the Cygnus tree, but in the individual
5143# FSF releases, it's important to let people know when their machine isn't
5144# supported by the one or two programs in a package.
5145
5146if test -n "${notsupp}" && test -z "${norecursion}" ; then
5147 # If $appdirs is non-empty, at least one of those directories must still
5148 # be configured, or we error out. (E.g., if the gas release supports a
5149 # specified target in some subdirs but not the gas subdir, we shouldn't
5150 # pretend that all is well.)
5151 if test -n "$appdirs" ; then
5152 for dir in $appdirs ; do
5153 if test -r $dir/Makefile.in ; then
5154 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5155 appdirs=""
5156 break
5157 fi
6a9cf61e 5158 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5159 appdirs=""
5160 break
5161 fi
5162 fi
5163 done
5164 if test -n "$appdirs" ; then
5165 echo "*** This configuration is not supported by this package." 1>&2
5166 exit 1
5167 fi
5168 fi
5169 # Okay, some application will build, or we don't care to check. Still
5170 # notify of subdirs not getting built.
5171 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5172 echo " ${notsupp}" 1>&2
5173 echo " (Any other directories should still work fine.)" 1>&2
5174fi
5175
5176case "$host" in
5177 *msdosdjgpp*)
5178 enable_gdbtk=no ;;
5179esac
5180
18f6b6ee
PB
5181# To find our prefix, in gcc_cv_tool_prefix.
5182
5183# The user is always right.
5184if test "${PATH_SEPARATOR+set}" != set; then
5185 echo "#! /bin/sh" >conf$$.sh
5186 echo "exit 0" >>conf$$.sh
5187 chmod +x conf$$.sh
5188 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5189 PATH_SEPARATOR=';'
5190 else
5191 PATH_SEPARATOR=:
5192 fi
5193 rm -f conf$$.sh
5194fi
5195
5196
5197
5198if test "x$exec_prefix" = xNONE; then
5199 if test "x$prefix" = xNONE; then
5200 gcc_cv_tool_prefix=$ac_default_prefix
5201 else
5202 gcc_cv_tool_prefix=$prefix
5203 fi
5204else
5205 gcc_cv_tool_prefix=$exec_prefix
5206fi
5207
5208# If there is no compiler in the tree, use the PATH only. In any
5209# case, if there is no compiler in the tree nobody should use
5210# AS_FOR_TARGET and LD_FOR_TARGET.
5211if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5212 gcc_version=`cat $srcdir/gcc/BASE-VER`
5213 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5214 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5215 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5216 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5217 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5218 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5219else
5220 gcc_cv_tool_dirs=
5221fi
5222
5223if test x$build = x$target && test -n "$md_exec_prefix"; then
5224 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5225fi
5226
5227
5228
9e07f89d
NN
5229copy_dirs=
5230
c6b750e1 5231
a19b6204
MM
5232# Check whether --with-build-sysroot or --without-build-sysroot was given.
5233if test "${with_build_sysroot+set}" = set; then
5234 withval="$with_build_sysroot"
5235 if test x"$withval" != x ; then
5236 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5237 fi
5238else
5239 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5240fi;
a19b6204
MM
5241
5242
8a6ee3ab
JM
5243
5244# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5245if test "${with_debug_prefix_map+set}" = set; then
5246 withval="$with_debug_prefix_map"
5247 if test x"$withval" != x; then
5248 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5249 for debug_map in $withval; do
5250 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5251 done
5252 fi
5253else
5254 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5255fi;
5256
5257
7f6ef0c0
PB
5258# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5259# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5260# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5261# We want to ensure that TARGET libraries (which we know are built with
5262# gcc) are built with "-O2 -g", so include those options when setting
5263# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5264if test "x$CFLAGS_FOR_TARGET" = x; then
5265 CFLAGS_FOR_TARGET=$CFLAGS
5266 case " $CFLAGS " in
5267 *" -O2 "*) ;;
5268 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5269 esac
5270 case " $CFLAGS " in
5271 *" -g "* | *" -g3 "*) ;;
5272 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5273 esac
5274fi
5275
5276
5277if test "x$CXXFLAGS_FOR_TARGET" = x; then
5278 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5279 case " $CXXFLAGS " in
5280 *" -O2 "*) ;;
5281 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5282 esac
5283 case " $CXXFLAGS " in
5284 *" -g "* | *" -g3 "*) ;;
5285 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5286 esac
5287fi
5288
5289
bb52de30
DJ
5290# Other target tools.
5291CPPFLAGS_FOR_TARGET=${CPPFLAGS_FOR_TARGET-${CPPFLAGS}}
5292
5293LDFLAGS_FOR_TARGET=${LDFLAGS_FOR_TARGET-${LDFLAGS}}
5294
5295
9e07f89d
NN
5296# Handle --with-headers=XXX. If the value is not "yes", the contents of
5297# the named directory are copied to $(tooldir)/sys-include.
5298if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5299 if test x${is_cross_compiler} = xno ; then
5300 echo 1>&2 '***' --with-headers is only supported when cross compiling
5301 exit 1
5302 fi
5303 if test x"${with_headers}" != xyes ; then
18f6b6ee 5304 x=${gcc_cv_tool_prefix}
c6b750e1 5305 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5306 fi
5307fi
5308
5309# Handle --with-libs=XXX. If the value is not "yes", the contents of
5310# the name directories are copied to $(tooldir)/lib. Multiple directories
5311# are permitted.
5312if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5313 if test x${is_cross_compiler} = xno ; then
5314 echo 1>&2 '***' --with-libs is only supported when cross compiling
5315 exit 1
5316 fi
5317 if test x"${with_libs}" != xyes ; then
5318 # Copy the libraries in reverse order, so that files in the first named
5319 # library override files in subsequent libraries.
18f6b6ee 5320 x=${gcc_cv_tool_prefix}
9e07f89d 5321 for l in ${with_libs}; do
c6b750e1 5322 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5323 done
5324 fi
5325fi
5326
2429c060
PB
5327# Set with_gnu_as and with_gnu_ld as appropriate.
5328#
5329# This is done by determining whether or not the appropriate directory
5330# is available, and by checking whether or not specific configurations
5331# have requested that this magic not happen.
c6b750e1
DJ
5332#
5333# The command line options always override the explicit settings in
2429c060
PB
5334# configure.in, and the settings in configure.in override this magic.
5335#
c6b750e1 5336# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5337# want to do that, then you should use the --without-gnu-as and
5338# --without-gnu-ld options for the configure script.
5339
5340if test x${use_gnu_as} = x &&
5341 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5342 with_gnu_as=yes
5343 extra_host_args="$extra_host_args --with-gnu-as"
5344fi
5345
5346if test x${use_gnu_ld} = x &&
93f9b408 5347 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
5348 with_gnu_ld=yes
5349 extra_host_args="$extra_host_args --with-gnu-ld"
5350fi
5351
5352# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5353# can detect this case.
5354
5355if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5356 with_newlib=yes
5357 extra_host_args="$extra_host_args --with-newlib"
5358fi
5359
9e07f89d
NN
5360# Handle ${copy_dirs}
5361set fnord ${copy_dirs}
5362shift
5363while test $# != 0 ; do
5364 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5365 :
5366 else
5367 echo Copying $1 to $2
5368
5369 # Use the install script to create the directory and all required
5370 # parent directories.
5371 if test -d $2 ; then
5372 :
5373 else
5374 echo >config.temp
5375 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5376 fi
5377
5378 # Copy the directory, assuming we have tar.
5379 # FIXME: Should we use B in the second tar? Not all systems support it.
5380 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5381
5382 # It is the responsibility of the user to correctly adjust all
5383 # symlinks. If somebody can figure out how to handle them correctly
5384 # here, feel free to add the code.
5385
5386 echo $1 > $2/COPIED
5387 fi
5388 shift; shift
5389done
5390
2429c060
PB
5391# Determine a target-dependent exec_prefix that the installed
5392# gcc will search in. Keep this list sorted by triplet, with
5393# the *-*-osname triplets last.
5394md_exec_prefix=
5395case "${target}" in
5396 alpha*-*-*vms*)
5397 md_exec_prefix=/gnu/lib/gcc-lib
5398 ;;
521ec477 5399 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5400 md_exec_prefix=/dev/env/DJDIR/bin
5401 ;;
521ec477 5402 i[34567]86-*-sco3.2v5*)
2429c060
PB
5403 if test $with_gnu_as = yes; then
5404 md_exec_prefix=/usr/gnu/bin
5405 else
5406 md_exec_prefix=/usr/ccs/bin/elf
5407 fi
5408 ;;
5409
5410 mn10300-*-* | \
5411 powerpc-*-chorusos* | \
5412 powerpc*-*-eabi* | \
5413 powerpc*-*-sysv* | \
5414 powerpc*-*-kaos* | \
5415 s390x-ibm-tpf*)
5416 md_exec_prefix=/usr/ccs/bin
5417 ;;
5418 sparc64-*-elf*)
5419 ;;
5420 v850*-*-*)
5421 md_exec_prefix=/usr/ccs/bin
5422 ;;
8b66833e 5423 xtensa*-*-elf*)
2429c060
PB
5424 ;;
5425
5426 *-*-beos* | \
5427 *-*-elf* | \
5428 *-*-hpux* | \
5429 *-*-netware* | \
5430 *-*-nto-qnx* | \
5431 *-*-rtems* | \
5432 *-*-solaris2* | \
521ec477 5433 *-*-sysv[45]* | \
2429c060
PB
5434 *-*-vxworks* | \
5435 *-wrs-windiss)
5436 md_exec_prefix=/usr/ccs/bin
5437 ;;
5438esac
5439
a0da8069
NN
5440extra_arflags_for_target=
5441extra_nmflags_for_target=
5442extra_ranlibflags_for_target=
5443target_makefile_frag=/dev/null
5444case "${target}" in
4e206d7e
DB
5445 mep*-*-*)
5446 target_makefile_frag="config/mt-mep"
5447 ;;
77d7106f
AM
5448 spu-*-*)
5449 target_makefile_frag="config/mt-spu"
5450 ;;
429acdec
RS
5451 mips*-sde-elf*)
5452 target_makefile_frag="config/mt-sde"
5453 ;;
f3b1e08e
RS
5454 mipsisa*-*-elfoabi*)
5455 target_makefile_frag="config/mt-mips-elfoabi"
5456 ;;
e7c8859c
RS
5457 mips*-*-*linux* | mips*-*-gnu*)
5458 target_makefile_frag="config/mt-mips-gnu"
5459 ;;
2a3124ca 5460 *-*-netware*)
a0da8069
NN
5461 target_makefile_frag="config/mt-netware"
5462 ;;
3d6dfe0f
NN
5463 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5464 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5465 ;;
5466 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5467 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5468 # commands to handle both 32-bit and 64-bit objects. These flags are
5469 # harmless if we're using GNU nm or ar.
5470 extra_arflags_for_target=" -X32_64"
5471 extra_nmflags_for_target=" -B -X32_64"
5472 ;;
5473 *-*-darwin*)
5474 # ranlib from Darwin requires the -c flag to look at common symbols.
5475 extra_ranlibflags_for_target=" -c"
5476 ;;
5477 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5478 target_makefile_frag="config/mt-wince"
5479 ;;
5480esac
5481
5482alphaieee_frag=/dev/null
5483case $target in
5484 alpha*-*-*)
5485 # This just makes sure to use the -mieee option to build target libs.
5486 # This should probably be set individually by each library.
5487 alphaieee_frag="config/mt-alphaieee"
5488 ;;
5489esac
5490
5491# If --enable-target-optspace always use -Os instead of -O2 to build
5492# the target libraries, similarly if it is not specified, use -Os
5493# on selected platforms.
5494ospace_frag=/dev/null
5495case "${enable_target_optspace}:${target}" in
5496 yes:*)
5497 ospace_frag="config/mt-ospace"
5498 ;;
5499 :d30v-*)
5500 ospace_frag="config/mt-d30v"
5501 ;;
5502 :m32r-* | :d10v-* | :fr30-*)
5503 ospace_frag="config/mt-ospace"
5504 ;;
5505 no:* | :*)
5506 ;;
5507 *)
5508 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5509 ;;
5510esac
5511
a0da8069
NN
5512# Default to using --with-stabs for certain targets.
5513if test x${with_stabs} = x ; then
5514 case "${target}" in
e31d1ea3 5515 mips*-*-irix[56]*)
a0da8069
NN
5516 ;;
5517 mips*-*-* | alpha*-*-osf*)
5518 with_stabs=yes;
5519 extra_host_args="${extra_host_args} --with-stabs"
5520 ;;
5521 esac
5522fi
5523
5524# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5525# them automatically.
5526case "${host}" in
c6b750e1 5527 hppa*64*-*-hpux11*)
a0da8069
NN
5528 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5529 ;;
5530esac
5531
a0da8069
NN
5532# Some systems (e.g., one of the i386-aix systems the gas testers are
5533# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5534tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5535build_tooldir=${tooldir}
5536
a0da8069
NN
5537# Create a .gdbinit file which runs the one in srcdir
5538# and tells GDB to look there for source files.
5539
5540if test -r ${srcdir}/.gdbinit ; then
5541 case ${srcdir} in
5542 .) ;;
5543 *) cat > ./.gdbinit <<EOF
5544# ${NO_EDIT}
5545dir ${srcdir}
5546dir .
5547source ${srcdir}/.gdbinit
5548EOF
5549 ;;
5550 esac
5551fi
5552
a0da8069
NN
5553# Make sure that the compiler is able to generate an executable. If it
5554# can't, we are probably in trouble. We don't care whether we can run the
5555# executable--we might be using a cross compiler--we only care whether it
5556# can be created. At this point the main configure script has set CC.
5557we_are_ok=no
5558echo "int main () { return 0; }" > conftest.c
5559${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5560if test $? = 0 ; then
5561 if test -s conftest || test -s conftest.exe ; then
5562 we_are_ok=yes
5563 fi
c6b750e1 5564fi
a0da8069
NN
5565case $we_are_ok in
5566 no)
5567 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5568 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5569 rm -f conftest*
5570 exit 1
5571 ;;
5572esac
5573rm -f conftest*
5574
5575# The Solaris /usr/ucb/cc compiler does not appear to work.
5576case "${host}" in
5577 sparc-sun-solaris2*)
5578 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5579 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5580 could_use=
5581 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5582 if test -d /opt/cygnus/bin ; then
5583 if test "$could_use" = "" ; then
5584 could_use="/opt/cygnus/bin"
5585 else
5586 could_use="$could_use or /opt/cygnus/bin"
5587 fi
5588 fi
5589 if test "$could_use" = "" ; then
5590 echo "Warning: compilation may fail because you're using"
5591 echo "/usr/ucb/cc. You should change your PATH or CC "
5592 echo "variable and rerun configure."
5593 else
5594 echo "Warning: compilation may fail because you're using"
5595 echo "/usr/ucb/cc, when you should use the C compiler from"
5596 echo "$could_use. You should change your"
5597 echo "PATH or CC variable and rerun configure."
5598 fi
5599 fi
5600 ;;
5601esac
5602
3bbd2f8f 5603# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
5604case "${host}" in
5605 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5606 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 5607 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
5608 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5609esac
5610
3bbd2f8f
AL
5611# On systems where the dynamic library environment variable is PATH,
5612if test "$RPATH_ENVVAR" = PATH; then
5613 GCC_SHLIB_SUBDIR=/shlib
5614else
5615 GCC_SHLIB_SUBDIR=
5616fi
5617
a0da8069
NN
5618# Record target_configdirs and the configure arguments for target and
5619# build configuration in Makefile.
5620target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5621build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5622
a0da8069
NN
5623# Determine whether gdb needs tk/tcl or not.
5624# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5625# and in that case we want gdb to be built without tk. Ugh!
5626# In fact I believe gdb is the *only* package directly dependent on tk,
5627# so we should be able to put the 'maybe's in unconditionally and
5628# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5629# 100% sure that that's safe though.
c180f501 5630
675c6968 5631gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5632case "$enable_gdbtk" in
5633 no)
5634 GDB_TK="" ;;
c180f501
AC
5635 yes)
5636 GDB_TK="${gdb_tk}" ;;
a0da8069 5637 *)
c180f501
AC
5638 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5639 # distro. Eventually someone will fix this and move Insight, nee
5640 # gdbtk to a separate directory.
5641 if test -d ${srcdir}/gdb/gdbtk ; then
5642 GDB_TK="${gdb_tk}"
5643 else
5644 GDB_TK=""
5645 fi
5646 ;;
a0da8069 5647esac
907be67c
DJ
5648CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5649INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5650
6bd3dfaa 5651# Strip out unwanted targets.
dd12c3a8
NN
5652
5653# While at that, we remove Makefiles if we were started for recursive
5654# configuration, so that the top-level Makefile reconfigures them,
5655# like we used to do when configure itself was recursive.
dd12c3a8 5656
6bd3dfaa
PB
5657# Loop over modules. $extrasub must be used with care, limiting as
5658# much as possible the usage of range addresses. That's because autoconf
5659# splits the sed script to overcome limits in the number of commands,
5660# and relying on carefully-timed sed passes may turn out to be very hard
5661# to maintain later. In this particular case, you just have to be careful
5662# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5663
319cab08
PB
5664# Check whether --enable-bootstrap or --disable-bootstrap was given.
5665if test "${enable_bootstrap+set}" = set; then
5666 enableval="$enable_bootstrap"
c6b750e1 5667
319cab08 5668else
9cb3fa6f 5669 enable_bootstrap=default
c6b750e1 5670fi;
319cab08 5671
9cb3fa6f
PB
5672# Issue errors and warnings for invalid/strange bootstrap combinations.
5673case "$configdirs" in
5674 *gcc*) have_compiler=yes ;;
5675 *) have_compiler=no ;;
5676esac
5677
5678case "$have_compiler:$host:$target:$enable_bootstrap" in
5679 *:*:*:no) ;;
5680
0aed8855 5681 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5682 # and we are in a native configuration.
5683 yes:$build:$build:default)
0aed8855 5684 enable_bootstrap=yes ;;
9cb3fa6f
PB
5685
5686 *:*:*:default)
5687 enable_bootstrap=no ;;
5688
5689 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5690 yes:$build:$build:yes)
9cb3fa6f
PB
5691 ;;
5692
5693 # Other configurations, but we have a compiler. Assume the user knows
5694 # what he's doing.
80911fe1 5695 yes:*:*:yes)
c6b750e1
DJ
5696 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5697echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5698 ;;
5699
5700 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5701 no:*:*:yes)
c6b750e1
DJ
5702 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5703echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5704 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5705
5706 # Fail if wrong command line
5707 *)
c6b750e1
DJ
5708 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5709echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5710 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5711 ;;
5712esac
5713
5714# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5715case "$enable_bootstrap" in
5716 yes)
498d4a71 5717 bootstrap_suffix=bootstrap ;;
319cab08 5718 no)
498d4a71 5719 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5720esac
5721
6a9cf61e 5722for module in ${build_configdirs} ; do
498d4a71
CF
5723 if test -z "${no_recursion}" \
5724 && test -f ${build_subdir}/${module}/Makefile; then
5725 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5726 rm -f ${build_subdir}/${module}/Makefile
5727 fi
5728 extrasub="$extrasub
5729/^@if build-$module\$/d
5730/^@endif build-$module\$/d
5731/^@if build-$module-$bootstrap_suffix\$/d
5732/^@endif build-$module-$bootstrap_suffix\$/d"
5733done
5734for module in ${configdirs} ; do
80911fe1 5735 if test -z "${no_recursion}"; then
8cf39b1b 5736 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5737 if test -f ${file}; then
5738 echo 1>&2 "*** removing ${file} to force reconfigure"
5739 rm -f ${file}
5740 fi
5741 done
498d4a71
CF
5742 fi
5743 extrasub="$extrasub
5744/^@if $module\$/d
5745/^@endif $module\$/d
5746/^@if $module-$bootstrap_suffix\$/d
5747/^@endif $module-$bootstrap_suffix\$/d"
5748done
5749for module in ${target_configdirs} ; do
5750 if test -z "${no_recursion}" \
5751 && test -f ${target_subdir}/${module}/Makefile; then
5752 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5753 rm -f ${target_subdir}/${module}/Makefile
5754 fi
5755 extrasub="$extrasub
5756/^@if target-$module\$/d
5757/^@endif target-$module\$/d
5758/^@if target-$module-$bootstrap_suffix\$/d
5759/^@endif target-$module-$bootstrap_suffix\$/d"
5760done
5761
6bd3dfaa
PB
5762extrasub="$extrasub
5763/^@if /,/^@endif /d"
a0da8069
NN
5764
5765# Create the serialization dependencies. This uses a temporary file.
5766
e6bfb94a
AO
5767# Check whether --enable-serial-configure or --disable-serial-configure was given.
5768if test "${enable_serial_configure+set}" = set; then
5769 enableval="$enable_serial_configure"
e6bfb94a 5770
c6b750e1 5771fi;
e6bfb94a 5772
1047cb91
DD
5773case ${enable_serial_configure} in
5774 yes)
5775 enable_serial_build_configure=yes
5776 enable_serial_host_configure=yes
5777 enable_serial_target_configure=yes
5778 ;;
5779esac
5780
a0da8069
NN
5781# These force 'configure's to be done one at a time, to avoid problems
5782# with contention over a shared config.cache.
5783rm -f serdep.tmp
e6bfb94a 5784echo '# serdep.tmp' > serdep.tmp
a0da8069 5785olditem=
1047cb91 5786test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5787for item in ${build_configdirs} ; do
5788 case ${olditem} in
5789 "") ;;
e6bfb94a 5790 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5791 esac
5792 olditem=${item}
5793done
5794olditem=
1047cb91 5795test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5796for item in ${configdirs} ; do
5797 case ${olditem} in
5798 "") ;;
e6bfb94a 5799 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5800 esac
5801 olditem=${item}
5802done
5803olditem=
1047cb91 5804test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5805for item in ${target_configdirs} ; do
5806 case ${olditem} in
5807 "") ;;
e6bfb94a 5808 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5809 esac
5810 olditem=${item}
5811done
5812serialization_dependencies=serdep.tmp
5813
5814
e6bfb94a 5815# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5816# target, nonopt, and variable assignments. These are the ones we
5817# might not want to pass down to subconfigures. Also strip
5818# program-prefix, program-suffix, and program-transform-name, so that
5819# we can pass down a consistent program-transform-name.
5820baseargs=
5821keep_next=no
5822skip_next=no
5823eval "set -- $ac_configure_args"
18f6b6ee
PB
5824for ac_arg
5825do
c6b750e1
DJ
5826 if test X"$skip_next" = X"yes"; then
5827 skip_next=no
5828 continue
5829 fi
5830 if test X"$keep_next" = X"yes"; then
5831 case $ac_arg in
5832 *\'*)
5833 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5834 esac
5835 baseargs="$baseargs '$ac_arg'"
5836 keep_next=no
5837 continue
5838 fi
5839
5840 # Handle separated arguments. Based on the logic generated by
5841 # autoconf 2.59.
5842 case $ac_arg in
5843 *=* | --config-cache | -C | -disable-* | --disable-* \
5844 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5845 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5846 | -with-* | --with-* | -without-* | --without-* | --x)
5847 separate_arg=no
5848 ;;
5849 -*)
5850 separate_arg=yes
5851 ;;
5852 *)
5853 separate_arg=no
5854 ;;
5855 esac
5856
5857 case "$ac_arg" in
5858 --no*)
5859 continue
5860 ;;
5861 --c* | \
5862 --sr* | \
5863 --ho* | \
5864 --bu* | \
5865 --t* | \
5866 --program-* | \
5867 -cache_file* | \
5868 -srcdir* | \
5869 -host* | \
5870 -build* | \
5871 -target* | \
5872 -program-prefix* | \
5873 -program-suffix* | \
5874 -program-transform-name* )
5875 skip_next=$separate_arg
5876 continue
5877 ;;
5878 -*)
5879 # An option. Add it.
5880 case $ac_arg in
5881 *\'*)
5882 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5883 esac
5884 baseargs="$baseargs '$ac_arg'"
5885 keep_next=$separate_arg
5886 ;;
5887 *)
5888 # Either a variable assignment, or a nonopt (triplet). Don't
5889 # pass it down; let the Makefile handle this.
5890 continue
5891 ;;
5892 esac
5893done
5894# Remove the initial space we just introduced and, as these will be
5895# expanded by make, quote '$'.
5896baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5897
f27d4f92
DJ
5898# Add in --program-transform-name, after --program-prefix and
5899# --program-suffix have been applied to it. Autoconf has already
5900# doubled dollar signs and backslashes in program_transform_name; we want
5901# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5902# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5903# Also, because we want to override the logic in subdir configure scripts to
5904# choose program_transform_name, replace any s,x,x, with s,y,y,.
5905sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5906${program_transform_name}
5907EOF_SED
5908gcc_transform_name=`cat conftestsed.out`
5909rm -f conftestsed.out
5910baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
5911if test "$silent" = yes; then
5912 baseargs="$baseargs --silent"
5913fi
f27d4f92 5914
a0da8069
NN
5915# For the build-side libraries, we just need to pretend we're native,
5916# and not use the same cache file. Multilibs are neither needed nor
5917# desired.
4b900473 5918build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5919
5920# For host modules, accept cache file option, or specification as blank.
5921case "${cache_file}" in
5922"") # empty
5923 cache_file_option="" ;;
5924/* | [A-Za-z]:[\\/]* ) # absolute path
5925 cache_file_option="--cache-file=${cache_file}" ;;
5926*) # relative path
5927 cache_file_option="--cache-file=../${cache_file}" ;;
5928esac
5929
82252c06
NN
5930# Host dirs don't like to share a cache file either, horribly enough.
5931# This seems to be due to autoconf 2.5x stupidity.
4b900473 5932host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5933
5934target_configargs=${baseargs}
5935
5936# Passing a --with-cross-host argument lets the target libraries know
5937# whether they are being built with a cross-compiler or being built
5938# native. However, it would be better to use other mechanisms to make the
5939# sorts of decisions they want to make on this basis. Please consider
5940# this option to be deprecated. FIXME.
5941if test x${is_cross_compiler} = xyes ; then
c6b750e1 5942 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5943fi
5944
5945# Default to --enable-multilib.
5946if test x${enable_multilib} = x ; then
5947 target_configargs="--enable-multilib ${target_configargs}"
5948fi
5949
5950# Pass --with-newlib if appropriate. Note that target_configdirs has
5951# changed from the earlier setting of with_newlib.
5952if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5953 target_configargs="--with-newlib ${target_configargs}"
5954fi
5955
95036d20
NN
5956# Different target subdirs use different values of certain variables
5957# (notably CXX). Worse, multilibs use *lots* of different values.
5958# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5959# it doesn't automatically accept command-line overrides of them.
5960# This means it's not safe for target subdirs to share a cache file,
5961# which is disgusting, but there you have it. Hopefully this can be
5962# fixed in future. It's still worthwhile to use a cache file for each
5963# directory. I think.
5964
ae380b45
MS
5965# Pass the appropriate --build, --host, --target and --cache-file arguments.
5966# We need to pass --target, as newer autoconf's requires consistency
5967# for target_alias and gcc doesn't manage it consistently.
4b900473 5968target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5969
a0da8069
NN
5970FLAGS_FOR_TARGET=
5971case " $target_configdirs " in
5972 *" newlib "*)
5973 case " $target_configargs " in
5974 *" --with-newlib "*)
5975 case "$target" in
5976 *-cygwin*)
564b43e5 5977 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
5978 esac
5979
5980 # If we're not building GCC, don't discard standard headers.
5981 if test -d ${srcdir}/gcc; then
5982 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5983
5984 if test "${build}" != "${host}"; then
5985 # On Canadian crosses, CC_FOR_TARGET will have already been set
5986 # by `configure', so we won't have an opportunity to add -Bgcc/
5987 # to it. This is right: we don't want to search that directory
5988 # for binaries, but we want the header files in there, so add
5989 # them explicitly.
b00612cc 5990 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5991
5992 # Someone might think of using the pre-installed headers on
5993 # Canadian crosses, in case the installed compiler is not fully
5994 # compatible with the compiler being built. In this case, it
5995 # would be better to flag an error than risking having
5996 # incompatible object files being constructed. We can't
5997 # guarantee that an error will be flagged, but let's hope the
5998 # compiler will do it, when presented with incompatible header
5999 # files.
6000 fi
6001 fi
6002
6003 case "${target}-${is_cross_compiler}" in
ec11bdc6 6004 i[3456789]86-*-linux*-no)
a0da8069
NN
6005 # Here host == target, so we don't need to build gcc,
6006 # so we don't want to discard standard headers.
6007 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6008 ;;
6009 *)
6010 # If we're building newlib, use its generic headers last, but search
6011 # for any libc-related directories first (so make it the last -B
6012 # switch).
6013 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
6014
6015 # If we're building libgloss, find the startup file, simulator library
6016 # and linker script.
6017 case " $target_configdirs " in
6018 *" libgloss "*)
6019 # Look for startup file, simulator library and maybe linker script.
6020 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6021 # Look for libnosys.a in case the target needs it.
6022 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6023 # Most targets have the linker script in the source directory.
6024 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6025 ;;
6026 esac
a0da8069
NN
6027 ;;
6028 esac
6029 ;;
6030 esac
6031 ;;
6032esac
45055374
CV
6033case "$target" in
6034*-mingw*)
6035 # Can't be handled as Cygwin above since Mingw does not use newlib.
6036 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' ;;
6037esac
a0da8069 6038
5fbad20a
DD
6039# Allow the user to override the flags for
6040# our build compiler if desired.
c66487f8
NC
6041if test x"${build}" = x"${host}" ; then
6042 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
bb52de30 6043 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
c66487f8
NC
6044 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6045 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6046fi
5fbad20a 6047
a0da8069
NN
6048# On Canadian crosses, we'll be searching the right directories for
6049# the previously-installed cross compiler, so don't bother to add
6050# flags for directories within the install tree of the compiler
6051# being built; programs in there won't even run.
6052if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6053 # Search for pre-installed headers if nothing else fits.
bba45b8b 6054 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
6055fi
6056
6057if test "x${use_gnu_ld}" = x &&
6058 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6059 # Arrange for us to find uninstalled linker scripts.
b00612cc 6060 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
6061fi
6062
a481dbb7
DD
6063# Search for other target-specific linker scripts and such.
6064case "${target}" in
4e206d7e
DB
6065 mep*)
6066 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6067 ;;
6068esac
6069
a0da8069 6070# Makefile fragments.
3e707e94
PB
6071for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6072do
6073 eval fragval=\$$frag
6074 if test $fragval != /dev/null; then
6075 eval $frag=${srcdir}/$fragval
6076 fi
6077done
a0da8069
NN
6078
6079
6080
6081
6082
6083# Miscellanea: directories, flags, etc.
6084
6085
6086
6087
6088
6089
6090
3bbd2f8f 6091
6a9cf61e 6092# Build module lists & subconfigure args.
a0da8069
NN
6093
6094
6095
be01d343
PB
6096# Host module lists & subconfigure args.
6097
6098
6099
6100# Target module lists & subconfigure args.
6101
6102
6103
6104# Build tools.
6105
6106
6107
1576798e
PB
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
bb52de30 6122
be01d343
PB
6123# Generate default definitions for YACC, M4, LEX and other programs that run
6124# on the build machine. These are used if the Makefile can't locate these
6125# programs in objdir.
6126MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6127
6128for ac_prog in 'bison -y' byacc yacc
6129do
c6b750e1 6130 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6131set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6132echo "$as_me:$LINENO: checking for $ac_word" >&5
6133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6134if test "${ac_cv_prog_YACC+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6136else
6137 if test -n "$YACC"; then
6138 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6139else
c6b750e1
DJ
6140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141for as_dir in $PATH
6142do
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6147 ac_cv_prog_YACC="$ac_prog"
6148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 break 2
6150 fi
6151done
6152done
6153
be01d343
PB
6154fi
6155fi
c6b750e1 6156YACC=$ac_cv_prog_YACC
be01d343 6157if test -n "$YACC"; then
c6b750e1
DJ
6158 echo "$as_me:$LINENO: result: $YACC" >&5
6159echo "${ECHO_T}$YACC" >&6
be01d343 6160else
c6b750e1
DJ
6161 echo "$as_me:$LINENO: result: no" >&5
6162echo "${ECHO_T}no" >&6
be01d343
PB
6163fi
6164
c6b750e1 6165 test -n "$YACC" && break
be01d343
PB
6166done
6167test -n "$YACC" || YACC="$MISSING bison -y"
6168
6169case " $build_configdirs " in
6170 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6171 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6172esac
6173
6174for ac_prog in bison
6175do
c6b750e1 6176 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6177set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6178echo "$as_me:$LINENO: checking for $ac_word" >&5
6179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6180if test "${ac_cv_prog_BISON+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6182else
6183 if test -n "$BISON"; then
6184 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6185else
c6b750e1
DJ
6186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187for as_dir in $PATH
6188do
6189 IFS=$as_save_IFS
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6193 ac_cv_prog_BISON="$ac_prog"
6194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6195 break 2
6196 fi
6197done
6198done
6199
be01d343
PB
6200fi
6201fi
c6b750e1 6202BISON=$ac_cv_prog_BISON
be01d343 6203if test -n "$BISON"; then
c6b750e1
DJ
6204 echo "$as_me:$LINENO: result: $BISON" >&5
6205echo "${ECHO_T}$BISON" >&6
be01d343 6206else
c6b750e1
DJ
6207 echo "$as_me:$LINENO: result: no" >&5
6208echo "${ECHO_T}no" >&6
be01d343
PB
6209fi
6210
c6b750e1 6211 test -n "$BISON" && break
be01d343
PB
6212done
6213test -n "$BISON" || BISON="$MISSING bison"
6214
6215case " $build_configdirs " in
6216 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6217esac
6218
6219for ac_prog in gm4 gnum4 m4
6220do
c6b750e1 6221 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6222set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6223echo "$as_me:$LINENO: checking for $ac_word" >&5
6224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6225if test "${ac_cv_prog_M4+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6227else
6228 if test -n "$M4"; then
6229 ac_cv_prog_M4="$M4" # Let the user override the test.
6230else
c6b750e1
DJ
6231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232for as_dir in $PATH
6233do
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6238 ac_cv_prog_M4="$ac_prog"
6239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 break 2
6241 fi
6242done
6243done
6244
be01d343
PB
6245fi
6246fi
c6b750e1 6247M4=$ac_cv_prog_M4
be01d343 6248if test -n "$M4"; then
c6b750e1
DJ
6249 echo "$as_me:$LINENO: result: $M4" >&5
6250echo "${ECHO_T}$M4" >&6
be01d343 6251else
c6b750e1
DJ
6252 echo "$as_me:$LINENO: result: no" >&5
6253echo "${ECHO_T}no" >&6
be01d343
PB
6254fi
6255
c6b750e1 6256 test -n "$M4" && break
be01d343
PB
6257done
6258test -n "$M4" || M4="$MISSING m4"
6259
6260case " $build_configdirs " in
6261 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6262esac
6263
6264for ac_prog in flex lex
6265do
c6b750e1 6266 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6267set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6268echo "$as_me:$LINENO: checking for $ac_word" >&5
6269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6270if test "${ac_cv_prog_LEX+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6272else
6273 if test -n "$LEX"; then
6274 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6275else
c6b750e1
DJ
6276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277for as_dir in $PATH
6278do
6279 IFS=$as_save_IFS
6280 test -z "$as_dir" && as_dir=.
6281 for ac_exec_ext in '' $ac_executable_extensions; do
6282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6283 ac_cv_prog_LEX="$ac_prog"
6284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6285 break 2
6286 fi
6287done
6288done
6289
be01d343
PB
6290fi
6291fi
c6b750e1 6292LEX=$ac_cv_prog_LEX
be01d343 6293if test -n "$LEX"; then
c6b750e1
DJ
6294 echo "$as_me:$LINENO: result: $LEX" >&5
6295echo "${ECHO_T}$LEX" >&6
be01d343 6296else
c6b750e1
DJ
6297 echo "$as_me:$LINENO: result: no" >&5
6298echo "${ECHO_T}no" >&6
be01d343
PB
6299fi
6300
c6b750e1 6301 test -n "$LEX" && break
be01d343
PB
6302done
6303test -n "$LEX" || LEX="$MISSING flex"
6304
6305case " $build_configdirs " in
6306 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6307 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6308esac
6309
6310for ac_prog in flex
6311do
c6b750e1 6312 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6313set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6314echo "$as_me:$LINENO: checking for $ac_word" >&5
6315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6316if test "${ac_cv_prog_FLEX+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6318else
6319 if test -n "$FLEX"; then
6320 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6321else
c6b750e1
DJ
6322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323for as_dir in $PATH
6324do
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6329 ac_cv_prog_FLEX="$ac_prog"
6330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 break 2
6332 fi
6333done
6334done
6335
be01d343
PB
6336fi
6337fi
c6b750e1 6338FLEX=$ac_cv_prog_FLEX
be01d343 6339if test -n "$FLEX"; then
c6b750e1
DJ
6340 echo "$as_me:$LINENO: result: $FLEX" >&5
6341echo "${ECHO_T}$FLEX" >&6
be01d343 6342else
c6b750e1
DJ
6343 echo "$as_me:$LINENO: result: no" >&5
6344echo "${ECHO_T}no" >&6
be01d343
PB
6345fi
6346
c6b750e1 6347 test -n "$FLEX" && break
be01d343
PB
6348done
6349test -n "$FLEX" || FLEX="$MISSING flex"
6350
6351case " $build_configdirs " in
6352 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6353esac
6354
6355for ac_prog in makeinfo
6356do
c6b750e1 6357 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6358set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6359echo "$as_me:$LINENO: checking for $ac_word" >&5
6360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6361if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6363else
6364 if test -n "$MAKEINFO"; then
6365 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6366else
c6b750e1
DJ
6367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368for as_dir in $PATH
6369do
6370 IFS=$as_save_IFS
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6374 ac_cv_prog_MAKEINFO="$ac_prog"
6375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 break 2
6377 fi
6378done
6379done
6380
be01d343
PB
6381fi
6382fi
c6b750e1 6383MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6384if test -n "$MAKEINFO"; then
c6b750e1
DJ
6385 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6386echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6387else
c6b750e1
DJ
6388 echo "$as_me:$LINENO: result: no" >&5
6389echo "${ECHO_T}no" >&6
be01d343
PB
6390fi
6391
c6b750e1 6392 test -n "$MAKEINFO" && break
be01d343
PB
6393done
6394test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6395
6396case " $build_configdirs " in
6397 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6398 *)
6399
625a61cd 6400 # For an installed makeinfo, we require it to be from texinfo 4.6 or
be01d343
PB
6401 # higher, else we use the "missing" dummy.
6402 if ${MAKEINFO} --version \
625a61cd 6403 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
6404 :
6405 else
6406 MAKEINFO="$MISSING makeinfo"
6407 fi
6408 ;;
6409
6410esac
a0da8069 6411
be01d343 6412# FIXME: expect and dejagnu may become build tools?
a0da8069 6413
be01d343
PB
6414for ac_prog in expect
6415do
c6b750e1 6416 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6417set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6418echo "$as_me:$LINENO: checking for $ac_word" >&5
6419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6420if test "${ac_cv_prog_EXPECT+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6422else
6423 if test -n "$EXPECT"; then
6424 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6425else
c6b750e1
DJ
6426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427for as_dir in $PATH
6428do
6429 IFS=$as_save_IFS
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6433 ac_cv_prog_EXPECT="$ac_prog"
6434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 break 2
6436 fi
6437done
6438done
6439
be01d343
PB
6440fi
6441fi
c6b750e1 6442EXPECT=$ac_cv_prog_EXPECT
be01d343 6443if test -n "$EXPECT"; then
c6b750e1
DJ
6444 echo "$as_me:$LINENO: result: $EXPECT" >&5
6445echo "${ECHO_T}$EXPECT" >&6
be01d343 6446else
c6b750e1
DJ
6447 echo "$as_me:$LINENO: result: no" >&5
6448echo "${ECHO_T}no" >&6
be01d343 6449fi
a0da8069 6450
c6b750e1 6451 test -n "$EXPECT" && break
be01d343
PB
6452done
6453test -n "$EXPECT" || EXPECT="expect"
a0da8069 6454
be01d343
PB
6455case " $configdirs " in
6456 *" expect "*)
6457 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6458 ;;
6459esac
a0da8069 6460
be01d343
PB
6461for ac_prog in runtest
6462do
c6b750e1 6463 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6464set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6465echo "$as_me:$LINENO: checking for $ac_word" >&5
6466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6467if test "${ac_cv_prog_RUNTEST+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6469else
6470 if test -n "$RUNTEST"; then
6471 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6472else
c6b750e1
DJ
6473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474for as_dir in $PATH
6475do
6476 IFS=$as_save_IFS
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6480 ac_cv_prog_RUNTEST="$ac_prog"
6481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 break 2
6483 fi
6484done
6485done
6486
be01d343
PB
6487fi
6488fi
c6b750e1 6489RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6490if test -n "$RUNTEST"; then
c6b750e1
DJ
6491 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6492echo "${ECHO_T}$RUNTEST" >&6
be01d343 6493else
c6b750e1
DJ
6494 echo "$as_me:$LINENO: result: no" >&5
6495echo "${ECHO_T}no" >&6
be01d343 6496fi
a0da8069 6497
c6b750e1 6498 test -n "$RUNTEST" && break
be01d343
PB
6499done
6500test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6501
be01d343
PB
6502case " $configdirs " in
6503 *" dejagnu "*)
6b89cc21 6504 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6505 ;;
6506esac
a0da8069
NN
6507
6508
a0da8069 6509# Host tools.
859789af
AC
6510ncn_tool_prefix=
6511test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6512ncn_target_tool_prefix=
6513test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6514
9a819804
AO
6515
6516
6517if test -n "$AR"; then
6518 ac_cv_prog_AR=$AR
6519elif test -n "$ac_cv_prog_AR"; then
6520 AR=$ac_cv_prog_AR
6521fi
6522
6523if test -n "$ac_cv_prog_AR"; then
6524 for ncn_progname in ar; do
6525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6526set dummy ${ncn_progname}; ac_word=$2
6527echo "$as_me:$LINENO: checking for $ac_word" >&5
6528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6529if test "${ac_cv_prog_AR+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6531else
6532 if test -n "$AR"; then
6533 ac_cv_prog_AR="$AR" # Let the user override the test.
6534else
6535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536for as_dir in $PATH
6537do
6538 IFS=$as_save_IFS
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6542 ac_cv_prog_AR="${ncn_progname}"
6543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 break 2
6545 fi
6546done
6547done
6548
6549fi
6550fi
6551AR=$ac_cv_prog_AR
6552if test -n "$AR"; then
6553 echo "$as_me:$LINENO: result: $AR" >&5
6554echo "${ECHO_T}$AR" >&6
6555else
6556 echo "$as_me:$LINENO: result: no" >&5
6557echo "${ECHO_T}no" >&6
6558fi
6559
6560 done
6561fi
6562
6563for ncn_progname in ar; do
05cbd757
PB
6564 if test -n "$ncn_tool_prefix"; then
6565 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6566set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6567echo "$as_me:$LINENO: checking for $ac_word" >&5
6568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6569if test "${ac_cv_prog_AR+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6571else
6572 if test -n "$AR"; then
6573 ac_cv_prog_AR="$AR" # Let the user override the test.
6574else
c6b750e1
DJ
6575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576for as_dir in $PATH
6577do
6578 IFS=$as_save_IFS
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6582 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 break 2
6585 fi
6586done
6587done
6588
859789af
AC
6589fi
6590fi
c6b750e1 6591AR=$ac_cv_prog_AR
859789af 6592if test -n "$AR"; then
c6b750e1
DJ
6593 echo "$as_me:$LINENO: result: $AR" >&5
6594echo "${ECHO_T}$AR" >&6
859789af 6595else
c6b750e1
DJ
6596 echo "$as_me:$LINENO: result: no" >&5
6597echo "${ECHO_T}no" >&6
859789af
AC
6598fi
6599
05cbd757
PB
6600 fi
6601 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6603set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6604echo "$as_me:$LINENO: checking for $ac_word" >&5
6605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6606if test "${ac_cv_prog_AR+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6608else
05cbd757
PB
6609 if test -n "$AR"; then
6610 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6611else
c6b750e1
DJ
6612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613for as_dir in $PATH
6614do
6615 IFS=$as_save_IFS
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6619 ac_cv_prog_AR="${ncn_progname}"
6620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 break 2
6622 fi
6623done
6624done
6625
859789af
AC
6626fi
6627fi
c6b750e1 6628AR=$ac_cv_prog_AR
05cbd757 6629if test -n "$AR"; then
c6b750e1
DJ
6630 echo "$as_me:$LINENO: result: $AR" >&5
6631echo "${ECHO_T}$AR" >&6
859789af 6632else
c6b750e1
DJ
6633 echo "$as_me:$LINENO: result: no" >&5
6634echo "${ECHO_T}no" >&6
859789af 6635fi
c6b750e1 6636
05cbd757
PB
6637 fi
6638 test -n "$ac_cv_prog_AR" && break
6639done
6640
6641if test -z "$ac_cv_prog_AR" ; then
6642 set dummy ar
6643 if test $build = $host ; then
6644 AR="$2"
859789af 6645 else
05cbd757 6646 AR="${ncn_tool_prefix}$2"
859789af 6647 fi
859789af
AC
6648fi
6649
9a819804
AO
6650
6651
6652if test -n "$AS"; then
6653 ac_cv_prog_AS=$AS
6654elif test -n "$ac_cv_prog_AS"; then
6655 AS=$ac_cv_prog_AS
6656fi
6657
6658if test -n "$ac_cv_prog_AS"; then
6659 for ncn_progname in as; do
6660 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6661set dummy ${ncn_progname}; ac_word=$2
6662echo "$as_me:$LINENO: checking for $ac_word" >&5
6663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6664if test "${ac_cv_prog_AS+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6666else
6667 if test -n "$AS"; then
6668 ac_cv_prog_AS="$AS" # Let the user override the test.
6669else
6670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671for as_dir in $PATH
6672do
6673 IFS=$as_save_IFS
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6677 ac_cv_prog_AS="${ncn_progname}"
6678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 break 2
6680 fi
6681done
6682done
6683
6684fi
6685fi
6686AS=$ac_cv_prog_AS
6687if test -n "$AS"; then
6688 echo "$as_me:$LINENO: result: $AS" >&5
6689echo "${ECHO_T}$AS" >&6
6690else
6691 echo "$as_me:$LINENO: result: no" >&5
6692echo "${ECHO_T}no" >&6
6693fi
6694
6695 done
6696fi
6697
6698for ncn_progname in as; do
05cbd757
PB
6699 if test -n "$ncn_tool_prefix"; then
6700 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6701set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6702echo "$as_me:$LINENO: checking for $ac_word" >&5
6703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6704if test "${ac_cv_prog_AS+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6706else
6707 if test -n "$AS"; then
6708 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6709else
6710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711for as_dir in $PATH
6712do
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6717 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 break 2
6720 fi
6721done
6722done
6723
859789af
AC
6724fi
6725fi
c6b750e1 6726AS=$ac_cv_prog_AS
859789af 6727if test -n "$AS"; then
c6b750e1
DJ
6728 echo "$as_me:$LINENO: result: $AS" >&5
6729echo "${ECHO_T}$AS" >&6
859789af 6730else
c6b750e1
DJ
6731 echo "$as_me:$LINENO: result: no" >&5
6732echo "${ECHO_T}no" >&6
859789af
AC
6733fi
6734
05cbd757
PB
6735 fi
6736 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6738set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6739echo "$as_me:$LINENO: checking for $ac_word" >&5
6740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6741if test "${ac_cv_prog_AS+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6743else
05cbd757
PB
6744 if test -n "$AS"; then
6745 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6746else
c6b750e1
DJ
6747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748for as_dir in $PATH
6749do
6750 IFS=$as_save_IFS
6751 test -z "$as_dir" && as_dir=.
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6754 ac_cv_prog_AS="${ncn_progname}"
6755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 break 2
6757 fi
6758done
6759done
6760
859789af
AC
6761fi
6762fi
c6b750e1 6763AS=$ac_cv_prog_AS
05cbd757 6764if test -n "$AS"; then
c6b750e1
DJ
6765 echo "$as_me:$LINENO: result: $AS" >&5
6766echo "${ECHO_T}$AS" >&6
859789af 6767else
c6b750e1
DJ
6768 echo "$as_me:$LINENO: result: no" >&5
6769echo "${ECHO_T}no" >&6
859789af 6770fi
c6b750e1 6771
05cbd757
PB
6772 fi
6773 test -n "$ac_cv_prog_AS" && break
6774done
6775
6776if test -z "$ac_cv_prog_AS" ; then
6777 set dummy as
6778 if test $build = $host ; then
6779 AS="$2"
859789af 6780 else
05cbd757 6781 AS="${ncn_tool_prefix}$2"
859789af 6782 fi
859789af
AC
6783fi
6784
9a819804
AO
6785
6786
6787if test -n "$DLLTOOL"; then
6788 ac_cv_prog_DLLTOOL=$DLLTOOL
6789elif test -n "$ac_cv_prog_DLLTOOL"; then
6790 DLLTOOL=$ac_cv_prog_DLLTOOL
6791fi
6792
6793if test -n "$ac_cv_prog_DLLTOOL"; then
6794 for ncn_progname in dlltool; do
6795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6796set dummy ${ncn_progname}; ac_word=$2
6797echo "$as_me:$LINENO: checking for $ac_word" >&5
6798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6799if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6801else
6802 if test -n "$DLLTOOL"; then
6803 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6804else
6805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806for as_dir in $PATH
6807do
6808 IFS=$as_save_IFS
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6812 ac_cv_prog_DLLTOOL="${ncn_progname}"
6813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 break 2
6815 fi
6816done
6817done
6818
6819fi
6820fi
6821DLLTOOL=$ac_cv_prog_DLLTOOL
6822if test -n "$DLLTOOL"; then
6823 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6824echo "${ECHO_T}$DLLTOOL" >&6
6825else
6826 echo "$as_me:$LINENO: result: no" >&5
6827echo "${ECHO_T}no" >&6
6828fi
6829
6830 done
6831fi
6832
6833for ncn_progname in dlltool; do
05cbd757
PB
6834 if test -n "$ncn_tool_prefix"; then
6835 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6836set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6837echo "$as_me:$LINENO: checking for $ac_word" >&5
6838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6839if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6840 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6841else
6842 if test -n "$DLLTOOL"; then
6843 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6844else
c6b750e1
DJ
6845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846for as_dir in $PATH
6847do
6848 IFS=$as_save_IFS
6849 test -z "$as_dir" && as_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6852 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 break 2
6855 fi
6856done
6857done
6858
859789af
AC
6859fi
6860fi
c6b750e1 6861DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6862if test -n "$DLLTOOL"; then
c6b750e1
DJ
6863 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6864echo "${ECHO_T}$DLLTOOL" >&6
859789af 6865else
c6b750e1
DJ
6866 echo "$as_me:$LINENO: result: no" >&5
6867echo "${ECHO_T}no" >&6
859789af
AC
6868fi
6869
05cbd757
PB
6870 fi
6871 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6872 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6873set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6874echo "$as_me:$LINENO: checking for $ac_word" >&5
6875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6876if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6878else
05cbd757
PB
6879 if test -n "$DLLTOOL"; then
6880 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6881else
c6b750e1
DJ
6882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH
6884do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6889 ac_cv_prog_DLLTOOL="${ncn_progname}"
6890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6892 fi
6893done
6894done
6895
859789af
AC
6896fi
6897fi
c6b750e1 6898DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6899if test -n "$DLLTOOL"; then
c6b750e1
DJ
6900 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6901echo "${ECHO_T}$DLLTOOL" >&6
859789af 6902else
c6b750e1
DJ
6903 echo "$as_me:$LINENO: result: no" >&5
6904echo "${ECHO_T}no" >&6
859789af 6905fi
c6b750e1 6906
05cbd757
PB
6907 fi
6908 test -n "$ac_cv_prog_DLLTOOL" && break
6909done
6910
6911if test -z "$ac_cv_prog_DLLTOOL" ; then
6912 set dummy dlltool
6913 if test $build = $host ; then
6914 DLLTOOL="$2"
859789af 6915 else
05cbd757 6916 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6917 fi
859789af
AC
6918fi
6919
9a819804
AO
6920
6921
6922if test -n "$LD"; then
6923 ac_cv_prog_LD=$LD
6924elif test -n "$ac_cv_prog_LD"; then
6925 LD=$ac_cv_prog_LD
6926fi
6927
6928if test -n "$ac_cv_prog_LD"; then
6929 for ncn_progname in ld; do
6930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6931set dummy ${ncn_progname}; ac_word=$2
6932echo "$as_me:$LINENO: checking for $ac_word" >&5
6933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6934if test "${ac_cv_prog_LD+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
6936else
6937 if test -n "$LD"; then
6938 ac_cv_prog_LD="$LD" # Let the user override the test.
6939else
6940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941for as_dir in $PATH
6942do
6943 IFS=$as_save_IFS
6944 test -z "$as_dir" && as_dir=.
6945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6947 ac_cv_prog_LD="${ncn_progname}"
6948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6949 break 2
6950 fi
6951done
6952done
6953
6954fi
6955fi
6956LD=$ac_cv_prog_LD
6957if test -n "$LD"; then
6958 echo "$as_me:$LINENO: result: $LD" >&5
6959echo "${ECHO_T}$LD" >&6
6960else
6961 echo "$as_me:$LINENO: result: no" >&5
6962echo "${ECHO_T}no" >&6
6963fi
6964
6965 done
6966fi
6967
6968for ncn_progname in ld; do
05cbd757
PB
6969 if test -n "$ncn_tool_prefix"; then
6970 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6971set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6972echo "$as_me:$LINENO: checking for $ac_word" >&5
6973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6974if test "${ac_cv_prog_LD+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6976else
6977 if test -n "$LD"; then
6978 ac_cv_prog_LD="$LD" # Let the user override the test.
6979else
c6b750e1
DJ
6980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981for as_dir in $PATH
6982do
6983 IFS=$as_save_IFS
6984 test -z "$as_dir" && as_dir=.
6985 for ac_exec_ext in '' $ac_executable_extensions; do
6986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6987 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6989 break 2
6990 fi
6991done
6992done
6993
859789af
AC
6994fi
6995fi
c6b750e1 6996LD=$ac_cv_prog_LD
859789af 6997if test -n "$LD"; then
c6b750e1
DJ
6998 echo "$as_me:$LINENO: result: $LD" >&5
6999echo "${ECHO_T}$LD" >&6
859789af 7000else
c6b750e1
DJ
7001 echo "$as_me:$LINENO: result: no" >&5
7002echo "${ECHO_T}no" >&6
859789af
AC
7003fi
7004
05cbd757
PB
7005 fi
7006 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7008set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7009echo "$as_me:$LINENO: checking for $ac_word" >&5
7010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7011if test "${ac_cv_prog_LD+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7013else
05cbd757
PB
7014 if test -n "$LD"; then
7015 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 7016else
c6b750e1
DJ
7017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018for as_dir in $PATH
7019do
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7024 ac_cv_prog_LD="${ncn_progname}"
7025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 break 2
7027 fi
7028done
7029done
7030
859789af
AC
7031fi
7032fi
c6b750e1 7033LD=$ac_cv_prog_LD
05cbd757 7034if test -n "$LD"; then
c6b750e1
DJ
7035 echo "$as_me:$LINENO: result: $LD" >&5
7036echo "${ECHO_T}$LD" >&6
859789af 7037else
c6b750e1
DJ
7038 echo "$as_me:$LINENO: result: no" >&5
7039echo "${ECHO_T}no" >&6
859789af 7040fi
c6b750e1 7041
05cbd757
PB
7042 fi
7043 test -n "$ac_cv_prog_LD" && break
7044done
7045
7046if test -z "$ac_cv_prog_LD" ; then
7047 set dummy ld
7048 if test $build = $host ; then
7049 LD="$2"
859789af 7050 else
05cbd757 7051 LD="${ncn_tool_prefix}$2"
859789af 7052 fi
859789af
AC
7053fi
7054
9a819804
AO
7055
7056
7057if test -n "$LIPO"; then
7058 ac_cv_prog_LIPO=$LIPO
7059elif test -n "$ac_cv_prog_LIPO"; then
7060 LIPO=$ac_cv_prog_LIPO
7061fi
7062
7063if test -n "$ac_cv_prog_LIPO"; then
7064 for ncn_progname in lipo; do
7065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7066set dummy ${ncn_progname}; ac_word=$2
7067echo "$as_me:$LINENO: checking for $ac_word" >&5
7068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7069if test "${ac_cv_prog_LIPO+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7071else
7072 if test -n "$LIPO"; then
7073 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7074else
7075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076for as_dir in $PATH
7077do
7078 IFS=$as_save_IFS
7079 test -z "$as_dir" && as_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082 ac_cv_prog_LIPO="${ncn_progname}"
7083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7084 break 2
7085 fi
7086done
7087done
7088
7089fi
7090fi
7091LIPO=$ac_cv_prog_LIPO
7092if test -n "$LIPO"; then
7093 echo "$as_me:$LINENO: result: $LIPO" >&5
7094echo "${ECHO_T}$LIPO" >&6
7095else
7096 echo "$as_me:$LINENO: result: no" >&5
7097echo "${ECHO_T}no" >&6
7098fi
7099
7100 done
7101fi
7102
7103for ncn_progname in lipo; do
be01d343
PB
7104 if test -n "$ncn_tool_prefix"; then
7105 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7106set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7107echo "$as_me:$LINENO: checking for $ac_word" >&5
7108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7109if test "${ac_cv_prog_LIPO+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7111else
7112 if test -n "$LIPO"; then
7113 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7114else
c6b750e1
DJ
7115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116for as_dir in $PATH
7117do
7118 IFS=$as_save_IFS
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7122 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 break 2
7125 fi
7126done
7127done
7128
be01d343
PB
7129fi
7130fi
c6b750e1 7131LIPO=$ac_cv_prog_LIPO
be01d343 7132if test -n "$LIPO"; then
c6b750e1
DJ
7133 echo "$as_me:$LINENO: result: $LIPO" >&5
7134echo "${ECHO_T}$LIPO" >&6
be01d343 7135else
c6b750e1
DJ
7136 echo "$as_me:$LINENO: result: no" >&5
7137echo "${ECHO_T}no" >&6
be01d343
PB
7138fi
7139
7140 fi
7141 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7143set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7144echo "$as_me:$LINENO: checking for $ac_word" >&5
7145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7146if test "${ac_cv_prog_LIPO+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7148else
7149 if test -n "$LIPO"; then
7150 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7151else
c6b750e1
DJ
7152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153for as_dir in $PATH
7154do
7155 IFS=$as_save_IFS
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7159 ac_cv_prog_LIPO="${ncn_progname}"
7160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 break 2
7162 fi
7163done
7164done
7165
be01d343
PB
7166fi
7167fi
c6b750e1 7168LIPO=$ac_cv_prog_LIPO
be01d343 7169if test -n "$LIPO"; then
c6b750e1
DJ
7170 echo "$as_me:$LINENO: result: $LIPO" >&5
7171echo "${ECHO_T}$LIPO" >&6
be01d343 7172else
c6b750e1
DJ
7173 echo "$as_me:$LINENO: result: no" >&5
7174echo "${ECHO_T}no" >&6
be01d343 7175fi
c6b750e1 7176
be01d343
PB
7177 fi
7178 test -n "$ac_cv_prog_LIPO" && break
7179done
7180
7181if test -z "$ac_cv_prog_LIPO" ; then
7182 set dummy lipo
7183 if test $build = $host ; then
7184 LIPO="$2"
7185 else
7186 LIPO="${ncn_tool_prefix}$2"
7187 fi
7188fi
7189
9a819804
AO
7190
7191
7192if test -n "$NM"; then
7193 ac_cv_prog_NM=$NM
7194elif test -n "$ac_cv_prog_NM"; then
7195 NM=$ac_cv_prog_NM
7196fi
7197
7198if test -n "$ac_cv_prog_NM"; then
7199 for ncn_progname in nm; do
7200 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7201set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7202echo "$as_me:$LINENO: checking for $ac_word" >&5
7203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7204if test "${ac_cv_prog_NM+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7206else
7207 if test -n "$NM"; then
7208 ac_cv_prog_NM="$NM" # Let the user override the test.
7209else
c6b750e1
DJ
7210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211for as_dir in $PATH
7212do
7213 IFS=$as_save_IFS
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7217 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 break 2
7220 fi
7221done
7222done
7223
859789af
AC
7224fi
7225fi
c6b750e1 7226NM=$ac_cv_prog_NM
859789af 7227if test -n "$NM"; then
c6b750e1
DJ
7228 echo "$as_me:$LINENO: result: $NM" >&5
7229echo "${ECHO_T}$NM" >&6
859789af 7230else
c6b750e1
DJ
7231 echo "$as_me:$LINENO: result: no" >&5
7232echo "${ECHO_T}no" >&6
859789af
AC
7233fi
7234
9a819804
AO
7235 done
7236fi
7237
7238for ncn_progname in nm; do
7239 if test -n "$ncn_tool_prefix"; then
7240 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7241set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7242echo "$as_me:$LINENO: checking for $ac_word" >&5
7243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7244if test "${ac_cv_prog_NM+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7246else
05cbd757
PB
7247 if test -n "$NM"; then
7248 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7249else
c6b750e1
DJ
7250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251for as_dir in $PATH
7252do
7253 IFS=$as_save_IFS
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7257 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 break 2
7260 fi
7261done
7262done
7263
859789af
AC
7264fi
7265fi
c6b750e1 7266NM=$ac_cv_prog_NM
05cbd757 7267if test -n "$NM"; then
c6b750e1
DJ
7268 echo "$as_me:$LINENO: result: $NM" >&5
7269echo "${ECHO_T}$NM" >&6
859789af 7270else
c6b750e1
DJ
7271 echo "$as_me:$LINENO: result: no" >&5
7272echo "${ECHO_T}no" >&6
859789af 7273fi
c6b750e1 7274
05cbd757 7275 fi
9a819804
AO
7276 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7278set dummy ${ncn_progname}; ac_word=$2
7279echo "$as_me:$LINENO: checking for $ac_word" >&5
7280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7281if test "${ac_cv_prog_NM+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7283else
7284 if test -n "$NM"; then
7285 ac_cv_prog_NM="$NM" # Let the user override the test.
7286else
7287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288for as_dir in $PATH
7289do
7290 IFS=$as_save_IFS
7291 test -z "$as_dir" && as_dir=.
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7294 ac_cv_prog_NM="${ncn_progname}"
7295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7296 break 2
7297 fi
7298done
7299done
7300
7301fi
7302fi
7303NM=$ac_cv_prog_NM
7304if test -n "$NM"; then
7305 echo "$as_me:$LINENO: result: $NM" >&5
7306echo "${ECHO_T}$NM" >&6
7307else
7308 echo "$as_me:$LINENO: result: no" >&5
7309echo "${ECHO_T}no" >&6
7310fi
7311
7312 fi
7313 test -n "$ac_cv_prog_NM" && break
7314done
7315
7316if test -z "$ac_cv_prog_NM" ; then
7317 set dummy nm
7318 if test $build = $host ; then
7319 NM="$2"
7320 else
7321 NM="${ncn_tool_prefix}$2"
7322 fi
7323fi
7324
7325
7326
7327if test -n "$RANLIB"; then
7328 ac_cv_prog_RANLIB=$RANLIB
7329elif test -n "$ac_cv_prog_RANLIB"; then
7330 RANLIB=$ac_cv_prog_RANLIB
7331fi
7332
7333if test -n "$ac_cv_prog_RANLIB"; then
7334 for ncn_progname in ranlib; do
7335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7336set dummy ${ncn_progname}; ac_word=$2
7337echo "$as_me:$LINENO: checking for $ac_word" >&5
7338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7339if test "${ac_cv_prog_RANLIB+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7341else
7342 if test -n "$RANLIB"; then
7343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7344else
7345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346for as_dir in $PATH
7347do
7348 IFS=$as_save_IFS
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7352 ac_cv_prog_RANLIB="${ncn_progname}"
7353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 break 2
7355 fi
7356done
7357done
7358
7359fi
7360fi
7361RANLIB=$ac_cv_prog_RANLIB
7362if test -n "$RANLIB"; then
7363 echo "$as_me:$LINENO: result: $RANLIB" >&5
7364echo "${ECHO_T}$RANLIB" >&6
7365else
7366 echo "$as_me:$LINENO: result: no" >&5
7367echo "${ECHO_T}no" >&6
7368fi
7369
7370 done
7371fi
859789af 7372
9a819804 7373for ncn_progname in ranlib; do
05cbd757
PB
7374 if test -n "$ncn_tool_prefix"; then
7375 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7376set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7377echo "$as_me:$LINENO: checking for $ac_word" >&5
7378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7379if test "${ac_cv_prog_RANLIB+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7381else
7382 if test -n "$RANLIB"; then
7383 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7384else
c6b750e1
DJ
7385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386for as_dir in $PATH
7387do
7388 IFS=$as_save_IFS
7389 test -z "$as_dir" && as_dir=.
7390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7392 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 break 2
7395 fi
7396done
7397done
7398
859789af
AC
7399fi
7400fi
c6b750e1 7401RANLIB=$ac_cv_prog_RANLIB
859789af 7402if test -n "$RANLIB"; then
c6b750e1
DJ
7403 echo "$as_me:$LINENO: result: $RANLIB" >&5
7404echo "${ECHO_T}$RANLIB" >&6
859789af 7405else
c6b750e1
DJ
7406 echo "$as_me:$LINENO: result: no" >&5
7407echo "${ECHO_T}no" >&6
859789af
AC
7408fi
7409
05cbd757
PB
7410 fi
7411 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7413set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7414echo "$as_me:$LINENO: checking for $ac_word" >&5
7415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7416if test "${ac_cv_prog_RANLIB+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7418else
05cbd757
PB
7419 if test -n "$RANLIB"; then
7420 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7421else
c6b750e1
DJ
7422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423for as_dir in $PATH
7424do
7425 IFS=$as_save_IFS
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7429 ac_cv_prog_RANLIB="${ncn_progname}"
7430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 break 2
7432 fi
7433done
7434done
7435
859789af
AC
7436fi
7437fi
c6b750e1 7438RANLIB=$ac_cv_prog_RANLIB
05cbd757 7439if test -n "$RANLIB"; then
c6b750e1
DJ
7440 echo "$as_me:$LINENO: result: $RANLIB" >&5
7441echo "${ECHO_T}$RANLIB" >&6
859789af 7442else
c6b750e1
DJ
7443 echo "$as_me:$LINENO: result: no" >&5
7444echo "${ECHO_T}no" >&6
859789af 7445fi
c6b750e1 7446
859789af 7447 fi
05cbd757
PB
7448 test -n "$ac_cv_prog_RANLIB" && break
7449done
7450
7451if test -z "$ac_cv_prog_RANLIB" ; then
7452 RANLIB=":"
859789af
AC
7453fi
7454
9a819804
AO
7455
7456
7457if test -n "$STRIP"; then
7458 ac_cv_prog_STRIP=$STRIP
7459elif test -n "$ac_cv_prog_STRIP"; then
7460 STRIP=$ac_cv_prog_STRIP
7461fi
7462
7463if test -n "$ac_cv_prog_STRIP"; then
7464 for ncn_progname in strip; do
7465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7466set dummy ${ncn_progname}; ac_word=$2
7467echo "$as_me:$LINENO: checking for $ac_word" >&5
7468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7469if test "${ac_cv_prog_STRIP+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7471else
7472 if test -n "$STRIP"; then
7473 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7474else
7475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476for as_dir in $PATH
7477do
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482 ac_cv_prog_STRIP="${ncn_progname}"
7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7485 fi
7486done
7487done
7488
7489fi
7490fi
7491STRIP=$ac_cv_prog_STRIP
7492if test -n "$STRIP"; then
7493 echo "$as_me:$LINENO: result: $STRIP" >&5
7494echo "${ECHO_T}$STRIP" >&6
7495else
7496 echo "$as_me:$LINENO: result: no" >&5
7497echo "${ECHO_T}no" >&6
7498fi
7499
7500 done
7501fi
7502
7503for ncn_progname in strip; do
be01d343
PB
7504 if test -n "$ncn_tool_prefix"; then
7505 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7506set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7507echo "$as_me:$LINENO: checking for $ac_word" >&5
7508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7509if test "${ac_cv_prog_STRIP+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7511else
7512 if test -n "$STRIP"; then
7513 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7514else
c6b750e1
DJ
7515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516for as_dir in $PATH
7517do
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7522 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 break 2
7525 fi
7526done
7527done
7528
be01d343
PB
7529fi
7530fi
c6b750e1 7531STRIP=$ac_cv_prog_STRIP
be01d343 7532if test -n "$STRIP"; then
c6b750e1
DJ
7533 echo "$as_me:$LINENO: result: $STRIP" >&5
7534echo "${ECHO_T}$STRIP" >&6
be01d343 7535else
c6b750e1
DJ
7536 echo "$as_me:$LINENO: result: no" >&5
7537echo "${ECHO_T}no" >&6
be01d343
PB
7538fi
7539
7540 fi
7541 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7542 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7543set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7544echo "$as_me:$LINENO: checking for $ac_word" >&5
7545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7546if test "${ac_cv_prog_STRIP+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7548else
7549 if test -n "$STRIP"; then
7550 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7551else
c6b750e1
DJ
7552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553for as_dir in $PATH
7554do
7555 IFS=$as_save_IFS
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559 ac_cv_prog_STRIP="${ncn_progname}"
7560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 break 2
7562 fi
7563done
7564done
7565
be01d343
PB
7566fi
7567fi
c6b750e1 7568STRIP=$ac_cv_prog_STRIP
be01d343 7569if test -n "$STRIP"; then
c6b750e1
DJ
7570 echo "$as_me:$LINENO: result: $STRIP" >&5
7571echo "${ECHO_T}$STRIP" >&6
be01d343 7572else
c6b750e1
DJ
7573 echo "$as_me:$LINENO: result: no" >&5
7574echo "${ECHO_T}no" >&6
be01d343 7575fi
c6b750e1 7576
be01d343
PB
7577 fi
7578 test -n "$ac_cv_prog_STRIP" && break
7579done
7580
7581if test -z "$ac_cv_prog_STRIP" ; then
7582 STRIP=":"
7583fi
7584
9a819804
AO
7585
7586
7587if test -n "$WINDRES"; then
7588 ac_cv_prog_WINDRES=$WINDRES
7589elif test -n "$ac_cv_prog_WINDRES"; then
7590 WINDRES=$ac_cv_prog_WINDRES
7591fi
7592
7593if test -n "$ac_cv_prog_WINDRES"; then
7594 for ncn_progname in windres; do
7595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7596set dummy ${ncn_progname}; ac_word=$2
7597echo "$as_me:$LINENO: checking for $ac_word" >&5
7598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7599if test "${ac_cv_prog_WINDRES+set}" = set; then
7600 echo $ECHO_N "(cached) $ECHO_C" >&6
7601else
7602 if test -n "$WINDRES"; then
7603 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7604else
7605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606for as_dir in $PATH
7607do
7608 IFS=$as_save_IFS
7609 test -z "$as_dir" && as_dir=.
7610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7612 ac_cv_prog_WINDRES="${ncn_progname}"
7613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7614 break 2
7615 fi
7616done
7617done
7618
7619fi
7620fi
7621WINDRES=$ac_cv_prog_WINDRES
7622if test -n "$WINDRES"; then
7623 echo "$as_me:$LINENO: result: $WINDRES" >&5
7624echo "${ECHO_T}$WINDRES" >&6
7625else
7626 echo "$as_me:$LINENO: result: no" >&5
7627echo "${ECHO_T}no" >&6
7628fi
7629
7630 done
7631fi
7632
7633for ncn_progname in windres; do
05cbd757
PB
7634 if test -n "$ncn_tool_prefix"; then
7635 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7636set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7637echo "$as_me:$LINENO: checking for $ac_word" >&5
7638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7639if test "${ac_cv_prog_WINDRES+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7641else
7642 if test -n "$WINDRES"; then
7643 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7644else
c6b750e1
DJ
7645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646for as_dir in $PATH
7647do
7648 IFS=$as_save_IFS
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 break 2
7655 fi
7656done
7657done
7658
859789af
AC
7659fi
7660fi
c6b750e1 7661WINDRES=$ac_cv_prog_WINDRES
859789af 7662if test -n "$WINDRES"; then
c6b750e1
DJ
7663 echo "$as_me:$LINENO: result: $WINDRES" >&5
7664echo "${ECHO_T}$WINDRES" >&6
859789af 7665else
c6b750e1
DJ
7666 echo "$as_me:$LINENO: result: no" >&5
7667echo "${ECHO_T}no" >&6
859789af
AC
7668fi
7669
05cbd757
PB
7670 fi
7671 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7672 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7673set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7674echo "$as_me:$LINENO: checking for $ac_word" >&5
7675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7676if test "${ac_cv_prog_WINDRES+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7678else
05cbd757
PB
7679 if test -n "$WINDRES"; then
7680 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7681else
c6b750e1
DJ
7682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683for as_dir in $PATH
7684do
7685 IFS=$as_save_IFS
7686 test -z "$as_dir" && as_dir=.
7687 for ac_exec_ext in '' $ac_executable_extensions; do
7688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7689 ac_cv_prog_WINDRES="${ncn_progname}"
7690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 break 2
7692 fi
7693done
7694done
7695
859789af
AC
7696fi
7697fi
c6b750e1 7698WINDRES=$ac_cv_prog_WINDRES
05cbd757 7699if test -n "$WINDRES"; then
c6b750e1
DJ
7700 echo "$as_me:$LINENO: result: $WINDRES" >&5
7701echo "${ECHO_T}$WINDRES" >&6
859789af 7702else
c6b750e1
DJ
7703 echo "$as_me:$LINENO: result: no" >&5
7704echo "${ECHO_T}no" >&6
859789af 7705fi
c6b750e1 7706
05cbd757
PB
7707 fi
7708 test -n "$ac_cv_prog_WINDRES" && break
7709done
7710
7711if test -z "$ac_cv_prog_WINDRES" ; then
7712 set dummy windres
7713 if test $build = $host ; then
7714 WINDRES="$2"
859789af 7715 else
05cbd757 7716 WINDRES="${ncn_tool_prefix}$2"
859789af 7717 fi
859789af
AC
7718fi
7719
9a819804
AO
7720
7721
0c24b341
NC
7722if test -n "$WINDMC"; then
7723 ac_cv_prog_WINDMC=$WINDMC
7724elif test -n "$ac_cv_prog_WINDMC"; then
7725 WINDMC=$ac_cv_prog_WINDMC
7726fi
7727
7728if test -n "$ac_cv_prog_WINDMC"; then
7729 for ncn_progname in windmc; do
7730 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7731set dummy ${ncn_progname}; ac_word=$2
7732echo "$as_me:$LINENO: checking for $ac_word" >&5
7733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7734if test "${ac_cv_prog_WINDMC+set}" = set; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7736else
7737 if test -n "$WINDMC"; then
7738 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7739else
7740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741for as_dir in $PATH
7742do
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7747 ac_cv_prog_WINDMC="${ncn_progname}"
7748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7749 break 2
7750 fi
7751done
7752done
7753
7754fi
7755fi
7756WINDMC=$ac_cv_prog_WINDMC
7757if test -n "$WINDMC"; then
7758 echo "$as_me:$LINENO: result: $WINDMC" >&5
7759echo "${ECHO_T}$WINDMC" >&6
7760else
7761 echo "$as_me:$LINENO: result: no" >&5
7762echo "${ECHO_T}no" >&6
7763fi
7764
7765 done
7766fi
7767
7768for ncn_progname in windmc; do
7769 if test -n "$ncn_tool_prefix"; then
7770 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7771set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7772echo "$as_me:$LINENO: checking for $ac_word" >&5
7773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7774if test "${ac_cv_prog_WINDMC+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7776else
7777 if test -n "$WINDMC"; then
7778 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7779else
7780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781for as_dir in $PATH
7782do
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7787 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 break 2
7790 fi
7791done
7792done
7793
7794fi
7795fi
7796WINDMC=$ac_cv_prog_WINDMC
7797if test -n "$WINDMC"; then
7798 echo "$as_me:$LINENO: result: $WINDMC" >&5
7799echo "${ECHO_T}$WINDMC" >&6
7800else
7801 echo "$as_me:$LINENO: result: no" >&5
7802echo "${ECHO_T}no" >&6
7803fi
7804
7805 fi
7806 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7807 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7808set dummy ${ncn_progname}; ac_word=$2
7809echo "$as_me:$LINENO: checking for $ac_word" >&5
7810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7811if test "${ac_cv_prog_WINDMC+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7813else
7814 if test -n "$WINDMC"; then
7815 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7816else
7817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818for as_dir in $PATH
7819do
7820 IFS=$as_save_IFS
7821 test -z "$as_dir" && as_dir=.
7822 for ac_exec_ext in '' $ac_executable_extensions; do
7823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7824 ac_cv_prog_WINDMC="${ncn_progname}"
7825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7826 break 2
7827 fi
7828done
7829done
7830
7831fi
7832fi
7833WINDMC=$ac_cv_prog_WINDMC
7834if test -n "$WINDMC"; then
7835 echo "$as_me:$LINENO: result: $WINDMC" >&5
7836echo "${ECHO_T}$WINDMC" >&6
7837else
7838 echo "$as_me:$LINENO: result: no" >&5
7839echo "${ECHO_T}no" >&6
7840fi
7841
7842 fi
7843 test -n "$ac_cv_prog_WINDMC" && break
7844done
7845
7846if test -z "$ac_cv_prog_WINDMC" ; then
7847 set dummy windmc
7848 if test $build = $host ; then
7849 WINDMC="$2"
7850 else
7851 WINDMC="${ncn_tool_prefix}$2"
7852 fi
7853fi
7854
7855
7856
9a819804
AO
7857if test -n "$OBJCOPY"; then
7858 ac_cv_prog_OBJCOPY=$OBJCOPY
7859elif test -n "$ac_cv_prog_OBJCOPY"; then
7860 OBJCOPY=$ac_cv_prog_OBJCOPY
7861fi
7862
7863if test -n "$ac_cv_prog_OBJCOPY"; then
7864 for ncn_progname in objcopy; do
7865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7866set dummy ${ncn_progname}; ac_word=$2
7867echo "$as_me:$LINENO: checking for $ac_word" >&5
7868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7869if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7871else
7872 if test -n "$OBJCOPY"; then
7873 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7874else
7875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876for as_dir in $PATH
7877do
7878 IFS=$as_save_IFS
7879 test -z "$as_dir" && as_dir=.
7880 for ac_exec_ext in '' $ac_executable_extensions; do
7881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7882 ac_cv_prog_OBJCOPY="${ncn_progname}"
7883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 break 2
7885 fi
7886done
7887done
7888
7889fi
7890fi
7891OBJCOPY=$ac_cv_prog_OBJCOPY
7892if test -n "$OBJCOPY"; then
7893 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7894echo "${ECHO_T}$OBJCOPY" >&6
7895else
7896 echo "$as_me:$LINENO: result: no" >&5
7897echo "${ECHO_T}no" >&6
7898fi
7899
7900 done
7901fi
7902
7903for ncn_progname in objcopy; do
05cbd757
PB
7904 if test -n "$ncn_tool_prefix"; then
7905 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7906set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7907echo "$as_me:$LINENO: checking for $ac_word" >&5
7908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7909if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7911else
7912 if test -n "$OBJCOPY"; then
7913 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7914else
c6b750e1
DJ
7915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916for as_dir in $PATH
7917do
7918 IFS=$as_save_IFS
7919 test -z "$as_dir" && as_dir=.
7920 for ac_exec_ext in '' $ac_executable_extensions; do
7921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7922 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7924 break 2
7925 fi
7926done
7927done
7928
859789af
AC
7929fi
7930fi
c6b750e1 7931OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7932if test -n "$OBJCOPY"; then
c6b750e1
DJ
7933 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7934echo "${ECHO_T}$OBJCOPY" >&6
859789af 7935else
c6b750e1
DJ
7936 echo "$as_me:$LINENO: result: no" >&5
7937echo "${ECHO_T}no" >&6
859789af
AC
7938fi
7939
05cbd757
PB
7940 fi
7941 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7942 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7943set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7944echo "$as_me:$LINENO: checking for $ac_word" >&5
7945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7946if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7948else
05cbd757
PB
7949 if test -n "$OBJCOPY"; then
7950 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7951else
c6b750e1
DJ
7952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953for as_dir in $PATH
7954do
7955 IFS=$as_save_IFS
7956 test -z "$as_dir" && as_dir=.
7957 for ac_exec_ext in '' $ac_executable_extensions; do
7958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7959 ac_cv_prog_OBJCOPY="${ncn_progname}"
7960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7961 break 2
7962 fi
7963done
7964done
7965
859789af
AC
7966fi
7967fi
c6b750e1 7968OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7969if test -n "$OBJCOPY"; then
c6b750e1
DJ
7970 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7971echo "${ECHO_T}$OBJCOPY" >&6
859789af 7972else
c6b750e1
DJ
7973 echo "$as_me:$LINENO: result: no" >&5
7974echo "${ECHO_T}no" >&6
859789af 7975fi
c6b750e1 7976
05cbd757
PB
7977 fi
7978 test -n "$ac_cv_prog_OBJCOPY" && break
7979done
7980
7981if test -z "$ac_cv_prog_OBJCOPY" ; then
7982 set dummy objcopy
7983 if test $build = $host ; then
7984 OBJCOPY="$2"
859789af 7985 else
05cbd757 7986 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7987 fi
859789af
AC
7988fi
7989
9a819804
AO
7990
7991
7992if test -n "$OBJDUMP"; then
7993 ac_cv_prog_OBJDUMP=$OBJDUMP
7994elif test -n "$ac_cv_prog_OBJDUMP"; then
7995 OBJDUMP=$ac_cv_prog_OBJDUMP
7996fi
7997
7998if test -n "$ac_cv_prog_OBJDUMP"; then
7999 for ncn_progname in objdump; do
8000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8001set dummy ${ncn_progname}; ac_word=$2
8002echo "$as_me:$LINENO: checking for $ac_word" >&5
8003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8004if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8006else
8007 if test -n "$OBJDUMP"; then
8008 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8009else
8010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011for as_dir in $PATH
8012do
8013 IFS=$as_save_IFS
8014 test -z "$as_dir" && as_dir=.
8015 for ac_exec_ext in '' $ac_executable_extensions; do
8016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8017 ac_cv_prog_OBJDUMP="${ncn_progname}"
8018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8019 break 2
8020 fi
8021done
8022done
8023
8024fi
8025fi
8026OBJDUMP=$ac_cv_prog_OBJDUMP
8027if test -n "$OBJDUMP"; then
8028 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8029echo "${ECHO_T}$OBJDUMP" >&6
8030else
8031 echo "$as_me:$LINENO: result: no" >&5
8032echo "${ECHO_T}no" >&6
8033fi
8034
8035 done
8036fi
8037
8038for ncn_progname in objdump; do
05cbd757
PB
8039 if test -n "$ncn_tool_prefix"; then
8040 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8041set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8042echo "$as_me:$LINENO: checking for $ac_word" >&5
8043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8044if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
8046else
8047 if test -n "$OBJDUMP"; then
8048 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8049else
c6b750e1
DJ
8050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051for as_dir in $PATH
8052do
8053 IFS=$as_save_IFS
8054 test -z "$as_dir" && as_dir=.
8055 for ac_exec_ext in '' $ac_executable_extensions; do
8056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8057 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 break 2
8060 fi
8061done
8062done
8063
859789af
AC
8064fi
8065fi
c6b750e1 8066OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 8067if test -n "$OBJDUMP"; then
c6b750e1
DJ
8068 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8069echo "${ECHO_T}$OBJDUMP" >&6
859789af 8070else
c6b750e1
DJ
8071 echo "$as_me:$LINENO: result: no" >&5
8072echo "${ECHO_T}no" >&6
859789af
AC
8073fi
8074
05cbd757
PB
8075 fi
8076 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8077 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8078set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8079echo "$as_me:$LINENO: checking for $ac_word" >&5
8080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8081if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8083else
05cbd757
PB
8084 if test -n "$OBJDUMP"; then
8085 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 8086else
c6b750e1
DJ
8087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088for as_dir in $PATH
8089do
8090 IFS=$as_save_IFS
8091 test -z "$as_dir" && as_dir=.
8092 for ac_exec_ext in '' $ac_executable_extensions; do
8093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8094 ac_cv_prog_OBJDUMP="${ncn_progname}"
8095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8096 break 2
8097 fi
8098done
8099done
8100
859789af
AC
8101fi
8102fi
c6b750e1 8103OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 8104if test -n "$OBJDUMP"; then
c6b750e1
DJ
8105 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8106echo "${ECHO_T}$OBJDUMP" >&6
859789af 8107else
c6b750e1
DJ
8108 echo "$as_me:$LINENO: result: no" >&5
8109echo "${ECHO_T}no" >&6
859789af 8110fi
c6b750e1 8111
05cbd757
PB
8112 fi
8113 test -n "$ac_cv_prog_OBJDUMP" && break
8114done
8115
8116if test -z "$ac_cv_prog_OBJDUMP" ; then
8117 set dummy objdump
8118 if test $build = $host ; then
8119 OBJDUMP="$2"
859789af 8120 else
05cbd757 8121 OBJDUMP="${ncn_tool_prefix}$2"
859789af 8122 fi
859789af
AC
8123fi
8124
a0da8069
NN
8125
8126
8127
8128
8129
be01d343 8130# Target tools.
c6b750e1 8131
2429c060
PB
8132# Check whether --with-build-time-tools or --without-build-time-tools was given.
8133if test "${with_build_time_tools+set}" = set; then
8134 withval="$with_build_time_tools"
8135 case x"$withval" in
8136 x/*) ;;
8137 *)
8138 with_build_time_tools=
c6b750e1
DJ
8139 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8140echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
8141 ;;
8142 esac
859789af 8143else
2429c060 8144 with_build_time_tools=
c6b750e1 8145fi;
859789af 8146
9a819804
AO
8147
8148
8149if test -n "$CC_FOR_TARGET"; then
8150 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8151elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8152 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8153fi
8154
8155if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8156 for ncn_progname in cc gcc; do
8157 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8158set dummy ${ncn_progname}; ac_word=$2
8159echo "$as_me:$LINENO: checking for $ac_word" >&5
8160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8161if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8163else
8164 if test -n "$CC_FOR_TARGET"; then
8165 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8166else
8167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168for as_dir in $PATH
8169do
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8174 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 break 2
8177 fi
8178done
8179done
8180
8181fi
8182fi
8183CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8184if test -n "$CC_FOR_TARGET"; then
8185 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8186echo "${ECHO_T}$CC_FOR_TARGET" >&6
8187else
8188 echo "$as_me:$LINENO: result: no" >&5
8189echo "${ECHO_T}no" >&6
8190fi
8191
8192 done
8193fi
8194
8195if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8196 for ncn_progname in cc gcc; do
c6b750e1
DJ
8197 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8198echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8199 if test -x $with_build_time_tools/${ncn_progname}; then
8200 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8201 echo "$as_me:$LINENO: result: yes" >&5
8202echo "${ECHO_T}yes" >&6
cac3d6c4 8203 break
2429c060 8204 else
c6b750e1
DJ
8205 echo "$as_me:$LINENO: result: no" >&5
8206echo "${ECHO_T}no" >&6
cac3d6c4
CM
8207 fi
8208 done
55db4b87
PB
8209fi
8210
2429c060
PB
8211if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8212 for ncn_progname in cc gcc; do
8213 if test -n "$ncn_target_tool_prefix"; then
8214 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8215set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8216echo "$as_me:$LINENO: checking for $ac_word" >&5
8217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8218if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8220else
8221 if test -n "$CC_FOR_TARGET"; then
8222 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8223else
c6b750e1
DJ
8224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225for as_dir in $PATH
8226do
8227 IFS=$as_save_IFS
8228 test -z "$as_dir" && as_dir=.
8229 for ac_exec_ext in '' $ac_executable_extensions; do
8230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8231 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8233 break 2
8234 fi
8235done
8236done
8237
55db4b87
PB
8238fi
8239fi
c6b750e1 8240CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8241if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8242 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8243echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8244else
c6b750e1
DJ
8245 echo "$as_me:$LINENO: result: no" >&5
8246echo "${ECHO_T}no" >&6
55db4b87
PB
8247fi
8248
2429c060
PB
8249 fi
8250 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8251 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8252set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8253echo "$as_me:$LINENO: checking for $ac_word" >&5
8254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8255if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8257else
05cbd757
PB
8258 if test -n "$CC_FOR_TARGET"; then
8259 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8260else
c6b750e1
DJ
8261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8262for as_dir in $PATH
8263do
8264 IFS=$as_save_IFS
8265 test -z "$as_dir" && as_dir=.
8266 for ac_exec_ext in '' $ac_executable_extensions; do
8267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8268 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8270 break 2
8271 fi
8272done
8273done
8274
55db4b87
PB
8275fi
8276fi
c6b750e1 8277CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8278if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8279 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8280echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8281else
c6b750e1
DJ
8282 echo "$as_me:$LINENO: result: no" >&5
8283echo "${ECHO_T}no" >&6
55db4b87 8284fi
c6b750e1 8285
2429c060
PB
8286 fi
8287 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8288 done
8289fi
c6b750e1 8290
05cbd757
PB
8291if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8292 set dummy cc gcc
8293 if test $build = $target ; then
8294 CC_FOR_TARGET="$2"
55db4b87 8295 else
05cbd757 8296 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8297 fi
d3f5afc4
MS
8298else
8299 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8300fi
8301
9a819804
AO
8302
8303
8304if test -n "$CXX_FOR_TARGET"; then
8305 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8306elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8307 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8308fi
8309
8310if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8311 for ncn_progname in c++ g++ cxx gxx; do
8312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8313set dummy ${ncn_progname}; ac_word=$2
8314echo "$as_me:$LINENO: checking for $ac_word" >&5
8315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8316if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8318else
8319 if test -n "$CXX_FOR_TARGET"; then
8320 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8321else
8322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323for as_dir in $PATH
8324do
8325 IFS=$as_save_IFS
8326 test -z "$as_dir" && as_dir=.
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8329 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8331 break 2
8332 fi
8333done
8334done
8335
8336fi
8337fi
8338CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8339if test -n "$CXX_FOR_TARGET"; then
8340 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8341echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8342else
8343 echo "$as_me:$LINENO: result: no" >&5
8344echo "${ECHO_T}no" >&6
8345fi
8346
8347 done
8348fi
8349
8350if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8351 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8352 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8353echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8354 if test -x $with_build_time_tools/${ncn_progname}; then
8355 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8356 echo "$as_me:$LINENO: result: yes" >&5
8357echo "${ECHO_T}yes" >&6
2429c060
PB
8358 break
8359 else
c6b750e1
DJ
8360 echo "$as_me:$LINENO: result: no" >&5
8361echo "${ECHO_T}no" >&6
2429c060
PB
8362 fi
8363 done
8364fi
8365
8366if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8367 for ncn_progname in c++ g++ cxx gxx; do
8368 if test -n "$ncn_target_tool_prefix"; then
8369 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8370set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8371echo "$as_me:$LINENO: checking for $ac_word" >&5
8372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8373if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8375else
8376 if test -n "$CXX_FOR_TARGET"; then
8377 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8378else
c6b750e1
DJ
8379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380for as_dir in $PATH
8381do
8382 IFS=$as_save_IFS
8383 test -z "$as_dir" && as_dir=.
8384 for ac_exec_ext in '' $ac_executable_extensions; do
8385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8386 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8388 break 2
8389 fi
8390done
8391done
8392
55db4b87
PB
8393fi
8394fi
c6b750e1 8395CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8396if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8397 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8398echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8399else
c6b750e1
DJ
8400 echo "$as_me:$LINENO: result: no" >&5
8401echo "${ECHO_T}no" >&6
55db4b87
PB
8402fi
8403
2429c060
PB
8404 fi
8405 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8406 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8407set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8408echo "$as_me:$LINENO: checking for $ac_word" >&5
8409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8410if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8412else
05cbd757
PB
8413 if test -n "$CXX_FOR_TARGET"; then
8414 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8415else
c6b750e1
DJ
8416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417for as_dir in $PATH
8418do
8419 IFS=$as_save_IFS
8420 test -z "$as_dir" && as_dir=.
8421 for ac_exec_ext in '' $ac_executable_extensions; do
8422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8423 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8425 break 2
8426 fi
8427done
8428done
8429
55db4b87
PB
8430fi
8431fi
c6b750e1 8432CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8433if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8434 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8435echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8436else
c6b750e1
DJ
8437 echo "$as_me:$LINENO: result: no" >&5
8438echo "${ECHO_T}no" >&6
55db4b87 8439fi
c6b750e1 8440
2429c060
PB
8441 fi
8442 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8443 done
8444fi
c6b750e1 8445
05cbd757
PB
8446if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8447 set dummy c++ g++ cxx gxx
8448 if test $build = $target ; then
8449 CXX_FOR_TARGET="$2"
55db4b87 8450 else
05cbd757 8451 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8452 fi
d3f5afc4
MS
8453else
8454 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8455fi
8456
9a819804
AO
8457
8458
8459if test -n "$GCC_FOR_TARGET"; then
8460 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8461elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8462 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8463fi
8464
8465if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8466 for ncn_progname in gcc; do
8467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8468set dummy ${ncn_progname}; ac_word=$2
8469echo "$as_me:$LINENO: checking for $ac_word" >&5
8470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8471if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8473else
8474 if test -n "$GCC_FOR_TARGET"; then
8475 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8476else
8477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8478for as_dir in $PATH
8479do
8480 IFS=$as_save_IFS
8481 test -z "$as_dir" && as_dir=.
8482 for ac_exec_ext in '' $ac_executable_extensions; do
8483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8484 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8486 break 2
8487 fi
8488done
8489done
8490
8491fi
8492fi
8493GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8494if test -n "$GCC_FOR_TARGET"; then
8495 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8496echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8497else
8498 echo "$as_me:$LINENO: result: no" >&5
8499echo "${ECHO_T}no" >&6
8500fi
8501
8502 done
8503fi
8504
8505if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8506 for ncn_progname in gcc; do
c6b750e1
DJ
8507 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8508echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8509 if test -x $with_build_time_tools/${ncn_progname}; then
8510 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8511 echo "$as_me:$LINENO: result: yes" >&5
8512echo "${ECHO_T}yes" >&6
2429c060
PB
8513 break
8514 else
c6b750e1
DJ
8515 echo "$as_me:$LINENO: result: no" >&5
8516echo "${ECHO_T}no" >&6
2429c060
PB
8517 fi
8518 done
8519fi
8520
8521if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8522 for ncn_progname in gcc; do
8523 if test -n "$ncn_target_tool_prefix"; then
8524 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8525set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8526echo "$as_me:$LINENO: checking for $ac_word" >&5
8527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8528if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8530else
2429c060
PB
8531 if test -n "$GCC_FOR_TARGET"; then
8532 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8533else
c6b750e1
DJ
8534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535for as_dir in $PATH
8536do
8537 IFS=$as_save_IFS
8538 test -z "$as_dir" && as_dir=.
8539 for ac_exec_ext in '' $ac_executable_extensions; do
8540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8541 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8543 break 2
8544 fi
8545done
8546done
8547
55db4b87
PB
8548fi
8549fi
c6b750e1 8550GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8551if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8552 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8553echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8554else
c6b750e1
DJ
8555 echo "$as_me:$LINENO: result: no" >&5
8556echo "${ECHO_T}no" >&6
55db4b87
PB
8557fi
8558
2429c060
PB
8559 fi
8560 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8561 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8562set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8563echo "$as_me:$LINENO: checking for $ac_word" >&5
8564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8565if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8566 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8567else
05cbd757
PB
8568 if test -n "$GCC_FOR_TARGET"; then
8569 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8570else
c6b750e1
DJ
8571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8572for as_dir in $PATH
8573do
8574 IFS=$as_save_IFS
8575 test -z "$as_dir" && as_dir=.
8576 for ac_exec_ext in '' $ac_executable_extensions; do
8577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8578 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8580 break 2
8581 fi
8582done
8583done
8584
55db4b87
PB
8585fi
8586fi
c6b750e1 8587GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8588if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8589 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8590echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8591else
c6b750e1
DJ
8592 echo "$as_me:$LINENO: result: no" >&5
8593echo "${ECHO_T}no" >&6
55db4b87 8594fi
c6b750e1 8595
2429c060
PB
8596 fi
8597 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8598 done
8599fi
c6b750e1 8600
05cbd757
PB
8601if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8602 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8603else
8604 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8605fi
8606
9a819804
AO
8607
8608
8609if test -n "$GCJ_FOR_TARGET"; then
8610 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8611elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8612 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8613fi
8614
8615if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8616 for ncn_progname in gcj; do
8617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8618set dummy ${ncn_progname}; ac_word=$2
8619echo "$as_me:$LINENO: checking for $ac_word" >&5
8620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8621if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8623else
8624 if test -n "$GCJ_FOR_TARGET"; then
8625 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8626else
8627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628for as_dir in $PATH
8629do
8630 IFS=$as_save_IFS
8631 test -z "$as_dir" && as_dir=.
8632 for ac_exec_ext in '' $ac_executable_extensions; do
8633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8634 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8636 break 2
8637 fi
8638done
8639done
8640
8641fi
8642fi
8643GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8644if test -n "$GCJ_FOR_TARGET"; then
8645 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8646echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8647else
8648 echo "$as_me:$LINENO: result: no" >&5
8649echo "${ECHO_T}no" >&6
8650fi
8651
8652 done
8653fi
8654
8655if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8656 for ncn_progname in gcj; do
c6b750e1
DJ
8657 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8658echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8659 if test -x $with_build_time_tools/${ncn_progname}; then
8660 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8661 echo "$as_me:$LINENO: result: yes" >&5
8662echo "${ECHO_T}yes" >&6
2429c060
PB
8663 break
8664 else
c6b750e1
DJ
8665 echo "$as_me:$LINENO: result: no" >&5
8666echo "${ECHO_T}no" >&6
2429c060
PB
8667 fi
8668 done
8669fi
8670
8671if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8672 for ncn_progname in gcj; do
8673 if test -n "$ncn_target_tool_prefix"; then
8674 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8675set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8676echo "$as_me:$LINENO: checking for $ac_word" >&5
8677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8678if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8680else
8681 if test -n "$GCJ_FOR_TARGET"; then
8682 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8683else
c6b750e1
DJ
8684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8685for as_dir in $PATH
8686do
8687 IFS=$as_save_IFS
8688 test -z "$as_dir" && as_dir=.
8689 for ac_exec_ext in '' $ac_executable_extensions; do
8690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8691 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8693 break 2
8694 fi
8695done
8696done
8697
55db4b87
PB
8698fi
8699fi
9a819804
AO
8700GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8701if test -n "$GCJ_FOR_TARGET"; then
8702 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8703echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8704else
8705 echo "$as_me:$LINENO: result: no" >&5
8706echo "${ECHO_T}no" >&6
8707fi
8708
8709 fi
8710 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8711 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8712set dummy ${ncn_progname}; ac_word=$2
8713echo "$as_me:$LINENO: checking for $ac_word" >&5
8714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8715if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8716 echo $ECHO_N "(cached) $ECHO_C" >&6
8717else
8718 if test -n "$GCJ_FOR_TARGET"; then
8719 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8720else
8721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8722for as_dir in $PATH
8723do
8724 IFS=$as_save_IFS
8725 test -z "$as_dir" && as_dir=.
8726 for ac_exec_ext in '' $ac_executable_extensions; do
8727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8728 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8730 break 2
8731 fi
8732done
8733done
8734
8735fi
8736fi
8737GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8738if test -n "$GCJ_FOR_TARGET"; then
8739 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8740echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8741else
8742 echo "$as_me:$LINENO: result: no" >&5
8743echo "${ECHO_T}no" >&6
8744fi
8745
8746 fi
8747 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8748 done
8749fi
8750
8751if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8752 set dummy gcj
8753 if test $build = $target ; then
8754 GCJ_FOR_TARGET="$2"
8755 else
8756 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8757 fi
d3f5afc4
MS
8758else
8759 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8760fi
8761
8762
8763
8764if test -n "$GFORTRAN_FOR_TARGET"; then
8765 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8766elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8767 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8768fi
8769
9a819804
AO
8770if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8771 for ncn_progname in gfortran; do
8772 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8773set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8774echo "$as_me:$LINENO: checking for $ac_word" >&5
8775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8776if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8777 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8778else
9a819804
AO
8779 if test -n "$GFORTRAN_FOR_TARGET"; then
8780 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8781else
c6b750e1
DJ
8782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783for as_dir in $PATH
8784do
8785 IFS=$as_save_IFS
8786 test -z "$as_dir" && as_dir=.
8787 for ac_exec_ext in '' $ac_executable_extensions; do
8788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8789 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8791 break 2
8792 fi
8793done
8794done
8795
55db4b87
PB
8796fi
8797fi
9a819804
AO
8798GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8799if test -n "$GFORTRAN_FOR_TARGET"; then
8800 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8801echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8802else
c6b750e1
DJ
8803 echo "$as_me:$LINENO: result: no" >&5
8804echo "${ECHO_T}no" >&6
55db4b87 8805fi
c6b750e1 8806
2429c060
PB
8807 done
8808fi
c6b750e1 8809
9a819804 8810if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8811 for ncn_progname in gfortran; do
c6b750e1
DJ
8812 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8813echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8814 if test -x $with_build_time_tools/${ncn_progname}; then
8815 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8816 echo "$as_me:$LINENO: result: yes" >&5
8817echo "${ECHO_T}yes" >&6
2429c060
PB
8818 break
8819 else
c6b750e1
DJ
8820 echo "$as_me:$LINENO: result: no" >&5
8821echo "${ECHO_T}no" >&6
2429c060
PB
8822 fi
8823 done
8824fi
8825
8826if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8827 for ncn_progname in gfortran; do
8828 if test -n "$ncn_target_tool_prefix"; then
8829 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8830set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8831echo "$as_me:$LINENO: checking for $ac_word" >&5
8832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8833if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8835else
8836 if test -n "$GFORTRAN_FOR_TARGET"; then
8837 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8838else
c6b750e1
DJ
8839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8840for as_dir in $PATH
8841do
8842 IFS=$as_save_IFS
8843 test -z "$as_dir" && as_dir=.
8844 for ac_exec_ext in '' $ac_executable_extensions; do
8845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8846 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8848 break 2
8849 fi
8850done
8851done
8852
55db4b87
PB
8853fi
8854fi
c6b750e1 8855GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8856if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8857 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8858echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8859else
c6b750e1
DJ
8860 echo "$as_me:$LINENO: result: no" >&5
8861echo "${ECHO_T}no" >&6
55db4b87
PB
8862fi
8863
2429c060
PB
8864 fi
8865 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8867set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8868echo "$as_me:$LINENO: checking for $ac_word" >&5
8869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8870if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8871 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8872else
05cbd757 8873 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8874 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8875else
8876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877for as_dir in $PATH
8878do
8879 IFS=$as_save_IFS
8880 test -z "$as_dir" && as_dir=.
8881 for ac_exec_ext in '' $ac_executable_extensions; do
8882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8883 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8885 break 2
8886 fi
8887done
8888done
8889
55db4b87
PB
8890fi
8891fi
c6b750e1 8892GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8893if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8894 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8895echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8896else
c6b750e1
DJ
8897 echo "$as_me:$LINENO: result: no" >&5
8898echo "${ECHO_T}no" >&6
55db4b87 8899fi
c6b750e1 8900
2429c060
PB
8901 fi
8902 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8903 done
8904fi
c6b750e1 8905
05cbd757
PB
8906if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8907 set dummy gfortran
8908 if test $build = $target ; then
8909 GFORTRAN_FOR_TARGET="$2"
55db4b87 8910 else
05cbd757 8911 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8912 fi
d3f5afc4
MS
8913else
8914 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8915fi
8916
2429c060
PB
8917
8918
2429c060
PB
8919cat > conftest.c << \EOF
8920#ifdef __GNUC__
8921 gcc_yay;
8922#endif
8923EOF
8924if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8925 have_gcc_for_target=yes
859789af 8926else
2429c060
PB
8927 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8928 have_gcc_for_target=no
859789af 8929fi
2429c060
PB
8930rm conftest.c
8931
8932
8933
859789af 8934
2429c060
PB
8935if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8936 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8937 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8938echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8939 if test -x $with_build_time_tools/ar; then
8940 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8941 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8942 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8943echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8944 else
c6b750e1
DJ
8945 echo "$as_me:$LINENO: result: no" >&5
8946echo "${ECHO_T}no" >&6
3a35eeb3 8947 fi
2429c060
PB
8948 elif test $build != $host && test $have_gcc_for_target = yes; then
8949 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8950 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8951 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8952 fi
2429c060 8953fi
c6b750e1 8954if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8955 # Extract the first word of "ar", so it can be a program name with args.
8956set dummy ar; ac_word=$2
c6b750e1
DJ
8957echo "$as_me:$LINENO: checking for $ac_word" >&5
8958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8959if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8960 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8961else
c6b750e1
DJ
8962 case $AR_FOR_TARGET in
8963 [\\/]* | ?:[\\/]*)
2429c060
PB
8964 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8965 ;;
2429c060 8966 *)
c6b750e1
DJ
8967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8968for as_dir in $gcc_cv_tool_dirs
8969do
8970 IFS=$as_save_IFS
8971 test -z "$as_dir" && as_dir=.
8972 for ac_exec_ext in '' $ac_executable_extensions; do
8973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8974 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8976 break 2
8977 fi
8978done
8979done
8980
2429c060
PB
8981 ;;
8982esac
859789af 8983fi
c6b750e1
DJ
8984AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8985
2429c060 8986if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8987 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8988echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8989else
c6b750e1
DJ
8990 echo "$as_me:$LINENO: result: no" >&5
8991echo "${ECHO_T}no" >&6
859789af 8992fi
05cbd757 8993
2429c060
PB
8994fi
8995if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8996
8997
8998if test -n "$AR_FOR_TARGET"; then
8999 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9000elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9001 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9002fi
9003
9004if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9005 for ncn_progname in ar; do
9006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9007set dummy ${ncn_progname}; ac_word=$2
9008echo "$as_me:$LINENO: checking for $ac_word" >&5
9009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9010if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9012else
9013 if test -n "$AR_FOR_TARGET"; then
9014 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9015else
9016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9017for as_dir in $PATH
9018do
9019 IFS=$as_save_IFS
9020 test -z "$as_dir" && as_dir=.
9021 for ac_exec_ext in '' $ac_executable_extensions; do
9022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9023 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9025 break 2
9026 fi
9027done
9028done
9029
9030fi
9031fi
9032AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9033if test -n "$AR_FOR_TARGET"; then
9034 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9035echo "${ECHO_T}$AR_FOR_TARGET" >&6
9036else
9037 echo "$as_me:$LINENO: result: no" >&5
9038echo "${ECHO_T}no" >&6
9039fi
9040
9041 done
9042fi
9043
9044if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9045 for ncn_progname in ar; do
c6b750e1
DJ
9046 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9047echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9048 if test -x $with_build_time_tools/${ncn_progname}; then
9049 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9050 echo "$as_me:$LINENO: result: yes" >&5
9051echo "${ECHO_T}yes" >&6
2429c060
PB
9052 break
9053 else
c6b750e1
DJ
9054 echo "$as_me:$LINENO: result: no" >&5
9055echo "${ECHO_T}no" >&6
2429c060
PB
9056 fi
9057 done
859789af
AC
9058fi
9059
2429c060
PB
9060if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9061 for ncn_progname in ar; do
9062 if test -n "$ncn_target_tool_prefix"; then
9063 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9064set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9065echo "$as_me:$LINENO: checking for $ac_word" >&5
9066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9067if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9068 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9069else
2429c060
PB
9070 if test -n "$AR_FOR_TARGET"; then
9071 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 9072else
c6b750e1
DJ
9073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9074for as_dir in $PATH
9075do
9076 IFS=$as_save_IFS
9077 test -z "$as_dir" && as_dir=.
9078 for ac_exec_ext in '' $ac_executable_extensions; do
9079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9080 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9082 break 2
9083 fi
9084done
9085done
9086
7e0f7140
GK
9087fi
9088fi
c6b750e1 9089AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9090if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9091 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9092echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9093else
c6b750e1
DJ
9094 echo "$as_me:$LINENO: result: no" >&5
9095echo "${ECHO_T}no" >&6
7e0f7140
GK
9096fi
9097
2429c060
PB
9098 fi
9099 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 9101set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9102echo "$as_me:$LINENO: checking for $ac_word" >&5
9103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9104if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9105 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9106else
2429c060
PB
9107 if test -n "$AR_FOR_TARGET"; then
9108 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 9109else
c6b750e1
DJ
9110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111for as_dir in $PATH
9112do
9113 IFS=$as_save_IFS
9114 test -z "$as_dir" && as_dir=.
9115 for ac_exec_ext in '' $ac_executable_extensions; do
9116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9117 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9119 break 2
9120 fi
9121done
9122done
9123
7e0f7140
GK
9124fi
9125fi
c6b750e1 9126AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9127if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9128 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9129echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9130else
c6b750e1
DJ
9131 echo "$as_me:$LINENO: result: no" >&5
9132echo "${ECHO_T}no" >&6
7e0f7140 9133fi
c6b750e1 9134
2429c060
PB
9135 fi
9136 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9137 done
9138fi
c6b750e1 9139
2429c060
PB
9140if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9141 set dummy ar
7e0f7140 9142 if test $build = $target ; then
2429c060 9143 AR_FOR_TARGET="$2"
7e0f7140 9144 else
2429c060 9145 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 9146 fi
d3f5afc4
MS
9147else
9148 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
9149fi
9150
3a35eeb3
PB
9151else
9152 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
9153fi
9154
9155
9156
9157
9158if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9159 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9160 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9161echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9162 if test -x $with_build_time_tools/as; then
9163 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9164 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
9165 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9166echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 9167 else
c6b750e1
DJ
9168 echo "$as_me:$LINENO: result: no" >&5
9169echo "${ECHO_T}no" >&6
3a35eeb3 9170 fi
2429c060
PB
9171 elif test $build != $host && test $have_gcc_for_target = yes; then
9172 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
9173 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9174 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
9175 fi
9176fi
c6b750e1 9177if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9178 # Extract the first word of "as", so it can be a program name with args.
9179set dummy as; ac_word=$2
c6b750e1
DJ
9180echo "$as_me:$LINENO: checking for $ac_word" >&5
9181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9182if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9184else
c6b750e1
DJ
9185 case $AS_FOR_TARGET in
9186 [\\/]* | ?:[\\/]*)
2429c060
PB
9187 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9188 ;;
2429c060 9189 *)
c6b750e1
DJ
9190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9191for as_dir in $gcc_cv_tool_dirs
9192do
9193 IFS=$as_save_IFS
9194 test -z "$as_dir" && as_dir=.
9195 for ac_exec_ext in '' $ac_executable_extensions; do
9196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9197 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9199 break 2
9200 fi
9201done
9202done
9203
2429c060
PB
9204 ;;
9205esac
9206fi
c6b750e1
DJ
9207AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9208
2429c060 9209if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9210 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9211echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9212else
c6b750e1
DJ
9213 echo "$as_me:$LINENO: result: no" >&5
9214echo "${ECHO_T}no" >&6
2429c060
PB
9215fi
9216
9217fi
9218if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9219
9220
9221if test -n "$AS_FOR_TARGET"; then
9222 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9223elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9224 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9225fi
9226
9227if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9228 for ncn_progname in as; do
9229 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9230set dummy ${ncn_progname}; ac_word=$2
9231echo "$as_me:$LINENO: checking for $ac_word" >&5
9232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9233if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9235else
9236 if test -n "$AS_FOR_TARGET"; then
9237 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9238else
9239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9240for as_dir in $PATH
9241do
9242 IFS=$as_save_IFS
9243 test -z "$as_dir" && as_dir=.
9244 for ac_exec_ext in '' $ac_executable_extensions; do
9245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9246 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9248 break 2
9249 fi
9250done
9251done
9252
9253fi
9254fi
9255AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9256if test -n "$AS_FOR_TARGET"; then
9257 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9258echo "${ECHO_T}$AS_FOR_TARGET" >&6
9259else
9260 echo "$as_me:$LINENO: result: no" >&5
9261echo "${ECHO_T}no" >&6
9262fi
9263
9264 done
9265fi
9266
9267if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9268 for ncn_progname in as; do
c6b750e1
DJ
9269 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9270echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9271 if test -x $with_build_time_tools/${ncn_progname}; then
9272 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9273 echo "$as_me:$LINENO: result: yes" >&5
9274echo "${ECHO_T}yes" >&6
2429c060
PB
9275 break
9276 else
c6b750e1
DJ
9277 echo "$as_me:$LINENO: result: no" >&5
9278echo "${ECHO_T}no" >&6
2429c060
PB
9279 fi
9280 done
9281fi
9282
9283if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9284 for ncn_progname in as; do
9285 if test -n "$ncn_target_tool_prefix"; then
9286 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9287set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9288echo "$as_me:$LINENO: checking for $ac_word" >&5
9289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9290if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9292else
9293 if test -n "$AS_FOR_TARGET"; then
9294 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9295else
c6b750e1
DJ
9296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9297for as_dir in $PATH
9298do
9299 IFS=$as_save_IFS
9300 test -z "$as_dir" && as_dir=.
9301 for ac_exec_ext in '' $ac_executable_extensions; do
9302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9303 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9305 break 2
9306 fi
9307done
9308done
9309
2429c060
PB
9310fi
9311fi
c6b750e1 9312AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9313if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9314 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9315echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9316else
c6b750e1
DJ
9317 echo "$as_me:$LINENO: result: no" >&5
9318echo "${ECHO_T}no" >&6
2429c060
PB
9319fi
9320
9321 fi
9322 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9323 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9324set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9325echo "$as_me:$LINENO: checking for $ac_word" >&5
9326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9327if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9329else
9330 if test -n "$AS_FOR_TARGET"; then
9331 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9332else
c6b750e1
DJ
9333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9334for as_dir in $PATH
9335do
9336 IFS=$as_save_IFS
9337 test -z "$as_dir" && as_dir=.
9338 for ac_exec_ext in '' $ac_executable_extensions; do
9339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9340 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9342 break 2
9343 fi
9344done
9345done
9346
2429c060
PB
9347fi
9348fi
c6b750e1 9349AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9350if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9351 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9352echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9353else
c6b750e1
DJ
9354 echo "$as_me:$LINENO: result: no" >&5
9355echo "${ECHO_T}no" >&6
2429c060 9356fi
c6b750e1 9357
2429c060
PB
9358 fi
9359 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9360 done
9361fi
c6b750e1 9362
2429c060
PB
9363if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9364 set dummy as
9365 if test $build = $target ; then
9366 AS_FOR_TARGET="$2"
9367 else
9368 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9369 fi
d3f5afc4
MS
9370else
9371 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9372fi
9373
3a35eeb3
PB
9374else
9375 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9376fi
9377
9378
9379
9380
9381if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9382 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9383 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9384echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9385 if test -x $with_build_time_tools/dlltool; then
9386 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9387 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9388 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9389echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9390 else
c6b750e1
DJ
9391 echo "$as_me:$LINENO: result: no" >&5
9392echo "${ECHO_T}no" >&6
3a35eeb3 9393 fi
2429c060
PB
9394 elif test $build != $host && test $have_gcc_for_target = yes; then
9395 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9396 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9397 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9398 fi
9399fi
c6b750e1 9400if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9401 # Extract the first word of "dlltool", so it can be a program name with args.
9402set dummy dlltool; ac_word=$2
c6b750e1
DJ
9403echo "$as_me:$LINENO: checking for $ac_word" >&5
9404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9405if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9406 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9407else
c6b750e1
DJ
9408 case $DLLTOOL_FOR_TARGET in
9409 [\\/]* | ?:[\\/]*)
2429c060
PB
9410 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9411 ;;
2429c060 9412 *)
c6b750e1
DJ
9413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9414for as_dir in $gcc_cv_tool_dirs
9415do
9416 IFS=$as_save_IFS
9417 test -z "$as_dir" && as_dir=.
9418 for ac_exec_ext in '' $ac_executable_extensions; do
9419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9420 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9422 break 2
9423 fi
9424done
9425done
9426
2429c060
PB
9427 ;;
9428esac
9429fi
c6b750e1
DJ
9430DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9431
2429c060 9432if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9433 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9434echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9435else
c6b750e1
DJ
9436 echo "$as_me:$LINENO: result: no" >&5
9437echo "${ECHO_T}no" >&6
2429c060
PB
9438fi
9439
9440fi
9441if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9442
9443
9444if test -n "$DLLTOOL_FOR_TARGET"; then
9445 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9446elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9447 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9448fi
9449
9450if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9451 for ncn_progname in dlltool; do
9452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9453set dummy ${ncn_progname}; ac_word=$2
9454echo "$as_me:$LINENO: checking for $ac_word" >&5
9455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9456if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9457 echo $ECHO_N "(cached) $ECHO_C" >&6
9458else
9459 if test -n "$DLLTOOL_FOR_TARGET"; then
9460 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9461else
9462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9463for as_dir in $PATH
9464do
9465 IFS=$as_save_IFS
9466 test -z "$as_dir" && as_dir=.
9467 for ac_exec_ext in '' $ac_executable_extensions; do
9468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9469 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9471 break 2
9472 fi
9473done
9474done
9475
9476fi
9477fi
9478DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9479if test -n "$DLLTOOL_FOR_TARGET"; then
9480 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9481echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9482else
9483 echo "$as_me:$LINENO: result: no" >&5
9484echo "${ECHO_T}no" >&6
9485fi
9486
9487 done
9488fi
9489
9490if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9491 for ncn_progname in dlltool; do
c6b750e1
DJ
9492 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9493echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9494 if test -x $with_build_time_tools/${ncn_progname}; then
9495 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9496 echo "$as_me:$LINENO: result: yes" >&5
9497echo "${ECHO_T}yes" >&6
2429c060
PB
9498 break
9499 else
c6b750e1
DJ
9500 echo "$as_me:$LINENO: result: no" >&5
9501echo "${ECHO_T}no" >&6
2429c060
PB
9502 fi
9503 done
9504fi
9505
9506if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9507 for ncn_progname in dlltool; do
9508 if test -n "$ncn_target_tool_prefix"; then
9509 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9510set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9511echo "$as_me:$LINENO: checking for $ac_word" >&5
9512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9513if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9515else
9516 if test -n "$DLLTOOL_FOR_TARGET"; then
9517 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9518else
c6b750e1
DJ
9519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9520for as_dir in $PATH
9521do
9522 IFS=$as_save_IFS
9523 test -z "$as_dir" && as_dir=.
9524 for ac_exec_ext in '' $ac_executable_extensions; do
9525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9526 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9528 break 2
9529 fi
9530done
9531done
9532
2429c060
PB
9533fi
9534fi
c6b750e1 9535DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9536if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9537 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9538echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9539else
c6b750e1
DJ
9540 echo "$as_me:$LINENO: result: no" >&5
9541echo "${ECHO_T}no" >&6
2429c060
PB
9542fi
9543
9544 fi
9545 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9547set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9548echo "$as_me:$LINENO: checking for $ac_word" >&5
9549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9550if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9552else
9553 if test -n "$DLLTOOL_FOR_TARGET"; then
9554 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9555else
c6b750e1
DJ
9556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557for as_dir in $PATH
9558do
9559 IFS=$as_save_IFS
9560 test -z "$as_dir" && as_dir=.
9561 for ac_exec_ext in '' $ac_executable_extensions; do
9562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9563 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9565 break 2
9566 fi
9567done
9568done
9569
2429c060
PB
9570fi
9571fi
c6b750e1 9572DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9573if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9574 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9575echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9576else
c6b750e1
DJ
9577 echo "$as_me:$LINENO: result: no" >&5
9578echo "${ECHO_T}no" >&6
2429c060 9579fi
c6b750e1 9580
2429c060
PB
9581 fi
9582 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9583 done
9584fi
c6b750e1 9585
2429c060
PB
9586if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9587 set dummy dlltool
9588 if test $build = $target ; then
9589 DLLTOOL_FOR_TARGET="$2"
9590 else
9591 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9592 fi
d3f5afc4
MS
9593else
9594 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9595fi
9596
3a35eeb3
PB
9597else
9598 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9599fi
9600
9601
9602
9603
9604if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9605 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9606 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9607echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9608 if test -x $with_build_time_tools/ld; then
9609 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9610 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9611 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9612echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9613 else
c6b750e1
DJ
9614 echo "$as_me:$LINENO: result: no" >&5
9615echo "${ECHO_T}no" >&6
3a35eeb3 9616 fi
2429c060
PB
9617 elif test $build != $host && test $have_gcc_for_target = yes; then
9618 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9619 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9620 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9621 fi
9622fi
c6b750e1 9623if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9624 # Extract the first word of "ld", so it can be a program name with args.
9625set dummy ld; ac_word=$2
c6b750e1
DJ
9626echo "$as_me:$LINENO: checking for $ac_word" >&5
9627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9628if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9630else
c6b750e1
DJ
9631 case $LD_FOR_TARGET in
9632 [\\/]* | ?:[\\/]*)
2429c060
PB
9633 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9634 ;;
2429c060 9635 *)
c6b750e1
DJ
9636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9637for as_dir in $gcc_cv_tool_dirs
9638do
9639 IFS=$as_save_IFS
9640 test -z "$as_dir" && as_dir=.
9641 for ac_exec_ext in '' $ac_executable_extensions; do
9642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9643 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9645 break 2
9646 fi
9647done
9648done
9649
2429c060
PB
9650 ;;
9651esac
9652fi
c6b750e1
DJ
9653LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9654
2429c060 9655if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9656 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9657echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9658else
c6b750e1
DJ
9659 echo "$as_me:$LINENO: result: no" >&5
9660echo "${ECHO_T}no" >&6
2429c060
PB
9661fi
9662
9663fi
9664if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9665
9666
9667if test -n "$LD_FOR_TARGET"; then
9668 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9669elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9670 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9671fi
9672
9673if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9674 for ncn_progname in ld; do
9675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9676set dummy ${ncn_progname}; ac_word=$2
9677echo "$as_me:$LINENO: checking for $ac_word" >&5
9678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9679if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9680 echo $ECHO_N "(cached) $ECHO_C" >&6
9681else
9682 if test -n "$LD_FOR_TARGET"; then
9683 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9684else
9685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9686for as_dir in $PATH
9687do
9688 IFS=$as_save_IFS
9689 test -z "$as_dir" && as_dir=.
9690 for ac_exec_ext in '' $ac_executable_extensions; do
9691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9692 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9694 break 2
9695 fi
9696done
9697done
9698
9699fi
9700fi
9701LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9702if test -n "$LD_FOR_TARGET"; then
9703 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9704echo "${ECHO_T}$LD_FOR_TARGET" >&6
9705else
9706 echo "$as_me:$LINENO: result: no" >&5
9707echo "${ECHO_T}no" >&6
9708fi
9709
9710 done
9711fi
9712
9713if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9714 for ncn_progname in ld; do
c6b750e1
DJ
9715 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9716echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9717 if test -x $with_build_time_tools/${ncn_progname}; then
9718 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9719 echo "$as_me:$LINENO: result: yes" >&5
9720echo "${ECHO_T}yes" >&6
2429c060
PB
9721 break
9722 else
c6b750e1
DJ
9723 echo "$as_me:$LINENO: result: no" >&5
9724echo "${ECHO_T}no" >&6
2429c060
PB
9725 fi
9726 done
9727fi
9728
9729if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9730 for ncn_progname in ld; do
9731 if test -n "$ncn_target_tool_prefix"; then
9732 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9733set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9734echo "$as_me:$LINENO: checking for $ac_word" >&5
9735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9736if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9737 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9738else
9739 if test -n "$LD_FOR_TARGET"; then
9740 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9741else
c6b750e1
DJ
9742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9743for as_dir in $PATH
9744do
9745 IFS=$as_save_IFS
9746 test -z "$as_dir" && as_dir=.
9747 for ac_exec_ext in '' $ac_executable_extensions; do
9748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9749 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9751 break 2
9752 fi
9753done
9754done
9755
2429c060
PB
9756fi
9757fi
c6b750e1 9758LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9759if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9760 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9761echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9762else
c6b750e1
DJ
9763 echo "$as_me:$LINENO: result: no" >&5
9764echo "${ECHO_T}no" >&6
2429c060
PB
9765fi
9766
9767 fi
9768 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9769 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9770set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9771echo "$as_me:$LINENO: checking for $ac_word" >&5
9772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9773if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9774 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9775else
9776 if test -n "$LD_FOR_TARGET"; then
9777 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9778else
c6b750e1
DJ
9779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9780for as_dir in $PATH
9781do
9782 IFS=$as_save_IFS
9783 test -z "$as_dir" && as_dir=.
9784 for ac_exec_ext in '' $ac_executable_extensions; do
9785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9786 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9788 break 2
9789 fi
9790done
9791done
9792
2429c060
PB
9793fi
9794fi
c6b750e1 9795LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9796if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9797 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9798echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9799else
c6b750e1
DJ
9800 echo "$as_me:$LINENO: result: no" >&5
9801echo "${ECHO_T}no" >&6
2429c060 9802fi
c6b750e1 9803
2429c060
PB
9804 fi
9805 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9806 done
9807fi
c6b750e1 9808
2429c060
PB
9809if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9810 set dummy ld
9811 if test $build = $target ; then
9812 LD_FOR_TARGET="$2"
9813 else
9814 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9815 fi
d3f5afc4
MS
9816else
9817 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9818fi
9819
3a35eeb3
PB
9820else
9821 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9822fi
9823
9824
9825
9826
9827if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9828 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9829 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9830echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9831 if test -x $with_build_time_tools/lipo; then
9832 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9833 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9834 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9835echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9836 else
c6b750e1
DJ
9837 echo "$as_me:$LINENO: result: no" >&5
9838echo "${ECHO_T}no" >&6
3a35eeb3 9839 fi
2429c060
PB
9840 elif test $build != $host && test $have_gcc_for_target = yes; then
9841 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9842 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9843 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9844 fi
9845fi
9a819804
AO
9846if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9847 # Extract the first word of "lipo", so it can be a program name with args.
9848set dummy lipo; ac_word=$2
9849echo "$as_me:$LINENO: checking for $ac_word" >&5
9850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9851if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9852 echo $ECHO_N "(cached) $ECHO_C" >&6
9853else
9854 case $LIPO_FOR_TARGET in
9855 [\\/]* | ?:[\\/]*)
9856 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9857 ;;
9858 *)
9859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9860for as_dir in $gcc_cv_tool_dirs
9861do
9862 IFS=$as_save_IFS
9863 test -z "$as_dir" && as_dir=.
9864 for ac_exec_ext in '' $ac_executable_extensions; do
9865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9866 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9868 break 2
9869 fi
9870done
9871done
9872
9873 ;;
9874esac
9875fi
9876LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9877
9878if test -n "$LIPO_FOR_TARGET"; then
9879 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9880echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9881else
9882 echo "$as_me:$LINENO: result: no" >&5
9883echo "${ECHO_T}no" >&6
9884fi
9885
9886fi
9887if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9888
9889
9890if test -n "$LIPO_FOR_TARGET"; then
9891 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9892elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9893 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9894fi
9895
9896if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9897 for ncn_progname in lipo; do
9898 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9899set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9900echo "$as_me:$LINENO: checking for $ac_word" >&5
9901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9902if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9903 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9904else
9a819804
AO
9905 if test -n "$LIPO_FOR_TARGET"; then
9906 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9907else
9908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9909for as_dir in $PATH
c6b750e1
DJ
9910do
9911 IFS=$as_save_IFS
9912 test -z "$as_dir" && as_dir=.
9913 for ac_exec_ext in '' $ac_executable_extensions; do
9914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9915 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9917 break 2
9918 fi
9919done
9920done
9921
2429c060 9922fi
9a819804
AO
9923fi
9924LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9925if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9926 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9927echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9928else
c6b750e1
DJ
9929 echo "$as_me:$LINENO: result: no" >&5
9930echo "${ECHO_T}no" >&6
2429c060
PB
9931fi
9932
9a819804 9933 done
2429c060 9934fi
9a819804
AO
9935
9936if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9937 for ncn_progname in lipo; do
c6b750e1
DJ
9938 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9939echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9940 if test -x $with_build_time_tools/${ncn_progname}; then
9941 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9942 echo "$as_me:$LINENO: result: yes" >&5
9943echo "${ECHO_T}yes" >&6
2429c060
PB
9944 break
9945 else
c6b750e1
DJ
9946 echo "$as_me:$LINENO: result: no" >&5
9947echo "${ECHO_T}no" >&6
2429c060
PB
9948 fi
9949 done
9950fi
9951
9952if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9953 for ncn_progname in lipo; do
9954 if test -n "$ncn_target_tool_prefix"; then
9955 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9956set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9957echo "$as_me:$LINENO: checking for $ac_word" >&5
9958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9959if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9961else
9962 if test -n "$LIPO_FOR_TARGET"; then
9963 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9964else
c6b750e1
DJ
9965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966for as_dir in $PATH
9967do
9968 IFS=$as_save_IFS
9969 test -z "$as_dir" && as_dir=.
9970 for ac_exec_ext in '' $ac_executable_extensions; do
9971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9972 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9974 break 2
9975 fi
9976done
9977done
9978
2429c060
PB
9979fi
9980fi
c6b750e1 9981LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9982if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9983 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9984echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9985else
c6b750e1
DJ
9986 echo "$as_me:$LINENO: result: no" >&5
9987echo "${ECHO_T}no" >&6
2429c060
PB
9988fi
9989
9990 fi
9991 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9993set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9994echo "$as_me:$LINENO: checking for $ac_word" >&5
9995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9996if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9998else
9999 if test -n "$LIPO_FOR_TARGET"; then
10000 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10001else
c6b750e1
DJ
10002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003for as_dir in $PATH
10004do
10005 IFS=$as_save_IFS
10006 test -z "$as_dir" && as_dir=.
10007 for ac_exec_ext in '' $ac_executable_extensions; do
10008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10009 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10011 break 2
10012 fi
10013done
10014done
10015
2429c060
PB
10016fi
10017fi
c6b750e1 10018LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10019if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
10020 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10021echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 10022else
c6b750e1
DJ
10023 echo "$as_me:$LINENO: result: no" >&5
10024echo "${ECHO_T}no" >&6
2429c060 10025fi
c6b750e1 10026
2429c060
PB
10027 fi
10028 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10029 done
10030fi
c6b750e1 10031
2429c060
PB
10032if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10033 set dummy lipo
10034 if test $build = $target ; then
10035 LIPO_FOR_TARGET="$2"
10036 else
10037 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10038 fi
d3f5afc4
MS
10039else
10040 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
10041fi
10042
3a35eeb3
PB
10043else
10044 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
10045fi
10046
10047
10048
10049
10050if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10051 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10052 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10053echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10054 if test -x $with_build_time_tools/nm; then
10055 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10056 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
10057 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10058echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 10059 else
c6b750e1
DJ
10060 echo "$as_me:$LINENO: result: no" >&5
10061echo "${ECHO_T}no" >&6
3a35eeb3 10062 fi
2429c060
PB
10063 elif test $build != $host && test $have_gcc_for_target = yes; then
10064 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
10065 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10066 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
10067 fi
10068fi
c6b750e1 10069if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10070 # Extract the first word of "nm", so it can be a program name with args.
10071set dummy nm; ac_word=$2
c6b750e1
DJ
10072echo "$as_me:$LINENO: checking for $ac_word" >&5
10073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10074if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10076else
c6b750e1
DJ
10077 case $NM_FOR_TARGET in
10078 [\\/]* | ?:[\\/]*)
2429c060
PB
10079 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10080 ;;
2429c060 10081 *)
c6b750e1
DJ
10082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10083for as_dir in $gcc_cv_tool_dirs
10084do
10085 IFS=$as_save_IFS
10086 test -z "$as_dir" && as_dir=.
10087 for ac_exec_ext in '' $ac_executable_extensions; do
10088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10089 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10091 break 2
10092 fi
10093done
10094done
10095
2429c060
PB
10096 ;;
10097esac
10098fi
c6b750e1
DJ
10099NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10100
2429c060 10101if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10102 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10103echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 10104else
c6b750e1
DJ
10105 echo "$as_me:$LINENO: result: no" >&5
10106echo "${ECHO_T}no" >&6
2429c060
PB
10107fi
10108
10109fi
10110if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
10111
10112
10113if test -n "$NM_FOR_TARGET"; then
10114 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10115elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10116 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10117fi
10118
10119if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10120 for ncn_progname in nm; do
10121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10122set dummy ${ncn_progname}; ac_word=$2
10123echo "$as_me:$LINENO: checking for $ac_word" >&5
10124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10125if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10126 echo $ECHO_N "(cached) $ECHO_C" >&6
10127else
10128 if test -n "$NM_FOR_TARGET"; then
10129 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10130else
10131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10132for as_dir in $PATH
10133do
10134 IFS=$as_save_IFS
10135 test -z "$as_dir" && as_dir=.
10136 for ac_exec_ext in '' $ac_executable_extensions; do
10137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10138 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10140 break 2
10141 fi
10142done
10143done
10144
10145fi
10146fi
10147NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10148if test -n "$NM_FOR_TARGET"; then
10149 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10150echo "${ECHO_T}$NM_FOR_TARGET" >&6
10151else
10152 echo "$as_me:$LINENO: result: no" >&5
10153echo "${ECHO_T}no" >&6
10154fi
10155
10156 done
10157fi
10158
10159if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10160 for ncn_progname in nm; do
c6b750e1
DJ
10161 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10162echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10163 if test -x $with_build_time_tools/${ncn_progname}; then
10164 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10165 echo "$as_me:$LINENO: result: yes" >&5
10166echo "${ECHO_T}yes" >&6
2429c060
PB
10167 break
10168 else
c6b750e1
DJ
10169 echo "$as_me:$LINENO: result: no" >&5
10170echo "${ECHO_T}no" >&6
2429c060
PB
10171 fi
10172 done
10173fi
10174
10175if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10176 for ncn_progname in nm; do
10177 if test -n "$ncn_target_tool_prefix"; then
10178 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10179set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10180echo "$as_me:$LINENO: checking for $ac_word" >&5
10181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10182if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10183 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10184else
55db4b87
PB
10185 if test -n "$NM_FOR_TARGET"; then
10186 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10187else
c6b750e1
DJ
10188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10189for as_dir in $PATH
10190do
10191 IFS=$as_save_IFS
10192 test -z "$as_dir" && as_dir=.
10193 for ac_exec_ext in '' $ac_executable_extensions; do
10194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10195 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10197 break 2
10198 fi
10199done
10200done
10201
859789af
AC
10202fi
10203fi
c6b750e1 10204NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 10205if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10206 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10207echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10208else
c6b750e1
DJ
10209 echo "$as_me:$LINENO: result: no" >&5
10210echo "${ECHO_T}no" >&6
859789af
AC
10211fi
10212
2429c060
PB
10213 fi
10214 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10216set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10217echo "$as_me:$LINENO: checking for $ac_word" >&5
10218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10219if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10221else
05cbd757
PB
10222 if test -n "$NM_FOR_TARGET"; then
10223 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10224else
c6b750e1
DJ
10225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10226for as_dir in $PATH
10227do
10228 IFS=$as_save_IFS
10229 test -z "$as_dir" && as_dir=.
10230 for ac_exec_ext in '' $ac_executable_extensions; do
10231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10232 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10234 break 2
10235 fi
10236done
10237done
10238
859789af
AC
10239fi
10240fi
c6b750e1 10241NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10242if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10243 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10244echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10245else
c6b750e1
DJ
10246 echo "$as_me:$LINENO: result: no" >&5
10247echo "${ECHO_T}no" >&6
859789af 10248fi
c6b750e1 10249
2429c060
PB
10250 fi
10251 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10252 done
10253fi
c6b750e1 10254
05cbd757
PB
10255if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10256 set dummy nm
10257 if test $build = $target ; then
10258 NM_FOR_TARGET="$2"
859789af 10259 else
05cbd757 10260 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10261 fi
d3f5afc4
MS
10262else
10263 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10264fi
10265
3a35eeb3
PB
10266else
10267 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10268fi
10269
10270
10271
10272
10273if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10274 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10275 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10276echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10277 if test -x $with_build_time_tools/objdump; then
10278 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10279 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10280 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10281echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10282 else
c6b750e1
DJ
10283 echo "$as_me:$LINENO: result: no" >&5
10284echo "${ECHO_T}no" >&6
3a35eeb3 10285 fi
2429c060
PB
10286 elif test $build != $host && test $have_gcc_for_target = yes; then
10287 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10288 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10289 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10290 fi
10291fi
c6b750e1 10292if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10293 # Extract the first word of "objdump", so it can be a program name with args.
10294set dummy objdump; ac_word=$2
c6b750e1
DJ
10295echo "$as_me:$LINENO: checking for $ac_word" >&5
10296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10297if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10299else
c6b750e1
DJ
10300 case $OBJDUMP_FOR_TARGET in
10301 [\\/]* | ?:[\\/]*)
2429c060
PB
10302 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10303 ;;
2429c060 10304 *)
c6b750e1
DJ
10305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10306for as_dir in $gcc_cv_tool_dirs
10307do
10308 IFS=$as_save_IFS
10309 test -z "$as_dir" && as_dir=.
10310 for ac_exec_ext in '' $ac_executable_extensions; do
10311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10312 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10314 break 2
10315 fi
10316done
10317done
10318
2429c060
PB
10319 ;;
10320esac
10321fi
c6b750e1
DJ
10322OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10323
2429c060 10324if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10325 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10326echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10327else
c6b750e1
DJ
10328 echo "$as_me:$LINENO: result: no" >&5
10329echo "${ECHO_T}no" >&6
2429c060
PB
10330fi
10331
10332fi
10333if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10334
10335
10336if test -n "$OBJDUMP_FOR_TARGET"; then
10337 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10338elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10339 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10340fi
10341
10342if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10343 for ncn_progname in objdump; do
10344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10345set dummy ${ncn_progname}; ac_word=$2
10346echo "$as_me:$LINENO: checking for $ac_word" >&5
10347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10348if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350else
10351 if test -n "$OBJDUMP_FOR_TARGET"; then
10352 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10353else
10354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355for as_dir in $PATH
10356do
10357 IFS=$as_save_IFS
10358 test -z "$as_dir" && as_dir=.
10359 for ac_exec_ext in '' $ac_executable_extensions; do
10360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10361 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10363 break 2
10364 fi
10365done
10366done
10367
10368fi
10369fi
10370OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10371if test -n "$OBJDUMP_FOR_TARGET"; then
10372 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10373echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10374else
10375 echo "$as_me:$LINENO: result: no" >&5
10376echo "${ECHO_T}no" >&6
10377fi
10378
10379 done
10380fi
10381
10382if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10383 for ncn_progname in objdump; do
c6b750e1
DJ
10384 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10385echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10386 if test -x $with_build_time_tools/${ncn_progname}; then
10387 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10388 echo "$as_me:$LINENO: result: yes" >&5
10389echo "${ECHO_T}yes" >&6
2429c060
PB
10390 break
10391 else
c6b750e1
DJ
10392 echo "$as_me:$LINENO: result: no" >&5
10393echo "${ECHO_T}no" >&6
2429c060
PB
10394 fi
10395 done
10396fi
10397
10398if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10399 for ncn_progname in objdump; do
10400 if test -n "$ncn_target_tool_prefix"; then
10401 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10402set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10403echo "$as_me:$LINENO: checking for $ac_word" >&5
10404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10405if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10406 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10407else
10408 if test -n "$OBJDUMP_FOR_TARGET"; then
10409 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10410else
c6b750e1
DJ
10411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10412for as_dir in $PATH
10413do
10414 IFS=$as_save_IFS
10415 test -z "$as_dir" && as_dir=.
10416 for ac_exec_ext in '' $ac_executable_extensions; do
10417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10418 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10420 break 2
10421 fi
10422done
10423done
10424
5ae72758
DJ
10425fi
10426fi
c6b750e1 10427OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10428if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10429 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10430echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10431else
c6b750e1
DJ
10432 echo "$as_me:$LINENO: result: no" >&5
10433echo "${ECHO_T}no" >&6
5ae72758
DJ
10434fi
10435
2429c060
PB
10436 fi
10437 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10438 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10439set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10440echo "$as_me:$LINENO: checking for $ac_word" >&5
10441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10442if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10444else
10445 if test -n "$OBJDUMP_FOR_TARGET"; then
10446 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10447else
c6b750e1
DJ
10448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449for as_dir in $PATH
10450do
10451 IFS=$as_save_IFS
10452 test -z "$as_dir" && as_dir=.
10453 for ac_exec_ext in '' $ac_executable_extensions; do
10454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10455 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10457 break 2
10458 fi
10459done
10460done
10461
5ae72758
DJ
10462fi
10463fi
c6b750e1 10464OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10465if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10466 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10467echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10468else
c6b750e1
DJ
10469 echo "$as_me:$LINENO: result: no" >&5
10470echo "${ECHO_T}no" >&6
5ae72758 10471fi
c6b750e1 10472
2429c060
PB
10473 fi
10474 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10475 done
10476fi
c6b750e1 10477
5ae72758
DJ
10478if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10479 set dummy objdump
10480 if test $build = $target ; then
10481 OBJDUMP_FOR_TARGET="$2"
10482 else
10483 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10484 fi
d3f5afc4
MS
10485else
10486 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10487fi
10488
3a35eeb3
PB
10489else
10490 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10491fi
10492
10493
10494
10495
10496if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10497 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10498 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10499echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10500 if test -x $with_build_time_tools/ranlib; then
10501 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10502 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10503 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10504echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10505 else
c6b750e1
DJ
10506 echo "$as_me:$LINENO: result: no" >&5
10507echo "${ECHO_T}no" >&6
3a35eeb3 10508 fi
2429c060
PB
10509 elif test $build != $host && test $have_gcc_for_target = yes; then
10510 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10511 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10512 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10513 fi
10514fi
c6b750e1 10515if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10516 # Extract the first word of "ranlib", so it can be a program name with args.
10517set dummy ranlib; ac_word=$2
c6b750e1
DJ
10518echo "$as_me:$LINENO: checking for $ac_word" >&5
10519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10520if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10521 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10522else
c6b750e1
DJ
10523 case $RANLIB_FOR_TARGET in
10524 [\\/]* | ?:[\\/]*)
2429c060
PB
10525 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10526 ;;
2429c060 10527 *)
c6b750e1
DJ
10528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10529for as_dir in $gcc_cv_tool_dirs
10530do
10531 IFS=$as_save_IFS
10532 test -z "$as_dir" && as_dir=.
10533 for ac_exec_ext in '' $ac_executable_extensions; do
10534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10535 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10537 break 2
10538 fi
10539done
10540done
10541
2429c060
PB
10542 ;;
10543esac
10544fi
c6b750e1
DJ
10545RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10546
2429c060 10547if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10548 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10549echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10550else
c6b750e1
DJ
10551 echo "$as_me:$LINENO: result: no" >&5
10552echo "${ECHO_T}no" >&6
2429c060
PB
10553fi
10554
10555fi
10556if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10557
10558
10559if test -n "$RANLIB_FOR_TARGET"; then
10560 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10561elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10562 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10563fi
10564
10565if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10566 for ncn_progname in ranlib; do
10567 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10568set dummy ${ncn_progname}; ac_word=$2
10569echo "$as_me:$LINENO: checking for $ac_word" >&5
10570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10571if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10573else
10574 if test -n "$RANLIB_FOR_TARGET"; then
10575 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10576else
10577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10578for as_dir in $PATH
10579do
10580 IFS=$as_save_IFS
10581 test -z "$as_dir" && as_dir=.
10582 for ac_exec_ext in '' $ac_executable_extensions; do
10583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10584 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10586 break 2
10587 fi
10588done
10589done
10590
10591fi
10592fi
10593RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10594if test -n "$RANLIB_FOR_TARGET"; then
10595 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10596echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10597else
10598 echo "$as_me:$LINENO: result: no" >&5
10599echo "${ECHO_T}no" >&6
10600fi
10601
10602 done
10603fi
10604
10605if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10606 for ncn_progname in ranlib; do
c6b750e1
DJ
10607 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10608echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10609 if test -x $with_build_time_tools/${ncn_progname}; then
10610 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10611 echo "$as_me:$LINENO: result: yes" >&5
10612echo "${ECHO_T}yes" >&6
2429c060
PB
10613 break
10614 else
c6b750e1
DJ
10615 echo "$as_me:$LINENO: result: no" >&5
10616echo "${ECHO_T}no" >&6
2429c060
PB
10617 fi
10618 done
10619fi
10620
10621if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10622 for ncn_progname in ranlib; do
10623 if test -n "$ncn_target_tool_prefix"; then
10624 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10625set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10626echo "$as_me:$LINENO: checking for $ac_word" >&5
10627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10628if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10629 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10630else
55db4b87
PB
10631 if test -n "$RANLIB_FOR_TARGET"; then
10632 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10633else
c6b750e1
DJ
10634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10635for as_dir in $PATH
10636do
10637 IFS=$as_save_IFS
10638 test -z "$as_dir" && as_dir=.
10639 for ac_exec_ext in '' $ac_executable_extensions; do
10640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10641 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10643 break 2
10644 fi
10645done
10646done
10647
859789af
AC
10648fi
10649fi
c6b750e1 10650RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10651if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10652 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10653echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10654else
c6b750e1
DJ
10655 echo "$as_me:$LINENO: result: no" >&5
10656echo "${ECHO_T}no" >&6
859789af
AC
10657fi
10658
2429c060
PB
10659 fi
10660 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10662set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10663echo "$as_me:$LINENO: checking for $ac_word" >&5
10664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10665if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10666 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10667else
05cbd757
PB
10668 if test -n "$RANLIB_FOR_TARGET"; then
10669 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10670else
c6b750e1
DJ
10671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672for as_dir in $PATH
10673do
10674 IFS=$as_save_IFS
10675 test -z "$as_dir" && as_dir=.
10676 for ac_exec_ext in '' $ac_executable_extensions; do
10677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10678 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10680 break 2
10681 fi
10682done
10683done
10684
859789af
AC
10685fi
10686fi
c6b750e1 10687RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10688if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10689 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10690echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10691else
c6b750e1
DJ
10692 echo "$as_me:$LINENO: result: no" >&5
10693echo "${ECHO_T}no" >&6
859789af 10694fi
c6b750e1 10695
2429c060
PB
10696 fi
10697 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10698 done
10699fi
c6b750e1 10700
2429c060
PB
10701if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10702 set dummy ranlib
10703 if test $build = $target ; then
10704 RANLIB_FOR_TARGET="$2"
10705 else
10706 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10707 fi
d3f5afc4
MS
10708else
10709 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10710fi
05cbd757 10711
3a35eeb3
PB
10712else
10713 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10714fi
10715
2429c060
PB
10716
10717
10718
10719if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10720 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10721 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10722echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10723 if test -x $with_build_time_tools/strip; then
10724 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10725 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10726 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10727echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10728 else
c6b750e1
DJ
10729 echo "$as_me:$LINENO: result: no" >&5
10730echo "${ECHO_T}no" >&6
3a35eeb3 10731 fi
2429c060
PB
10732 elif test $build != $host && test $have_gcc_for_target = yes; then
10733 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10734 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10735 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10736 fi
10737fi
c6b750e1 10738if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10739 # Extract the first word of "strip", so it can be a program name with args.
10740set dummy strip; ac_word=$2
c6b750e1
DJ
10741echo "$as_me:$LINENO: checking for $ac_word" >&5
10742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10743if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10745else
c6b750e1
DJ
10746 case $STRIP_FOR_TARGET in
10747 [\\/]* | ?:[\\/]*)
2429c060
PB
10748 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10749 ;;
2429c060 10750 *)
c6b750e1
DJ
10751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10752for as_dir in $gcc_cv_tool_dirs
10753do
10754 IFS=$as_save_IFS
10755 test -z "$as_dir" && as_dir=.
10756 for ac_exec_ext in '' $ac_executable_extensions; do
10757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10758 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10760 break 2
10761 fi
10762done
10763done
10764
2429c060
PB
10765 ;;
10766esac
10767fi
c6b750e1
DJ
10768STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10769
2429c060 10770if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10771 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10772echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10773else
c6b750e1
DJ
10774 echo "$as_me:$LINENO: result: no" >&5
10775echo "${ECHO_T}no" >&6
2429c060
PB
10776fi
10777
10778fi
10779if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10780
10781
10782if test -n "$STRIP_FOR_TARGET"; then
10783 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10784elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10785 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10786fi
10787
10788if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10789 for ncn_progname in strip; do
10790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10791set dummy ${ncn_progname}; ac_word=$2
10792echo "$as_me:$LINENO: checking for $ac_word" >&5
10793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10794if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10796else
10797 if test -n "$STRIP_FOR_TARGET"; then
10798 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10799else
10800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801for as_dir in $PATH
10802do
10803 IFS=$as_save_IFS
10804 test -z "$as_dir" && as_dir=.
10805 for ac_exec_ext in '' $ac_executable_extensions; do
10806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10807 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10809 break 2
10810 fi
10811done
10812done
10813
10814fi
10815fi
10816STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10817if test -n "$STRIP_FOR_TARGET"; then
10818 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10819echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10820else
10821 echo "$as_me:$LINENO: result: no" >&5
10822echo "${ECHO_T}no" >&6
10823fi
10824
10825 done
10826fi
10827
10828if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10829 for ncn_progname in strip; do
c6b750e1
DJ
10830 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10831echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10832 if test -x $with_build_time_tools/${ncn_progname}; then
10833 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10834 echo "$as_me:$LINENO: result: yes" >&5
10835echo "${ECHO_T}yes" >&6
2429c060
PB
10836 break
10837 else
c6b750e1
DJ
10838 echo "$as_me:$LINENO: result: no" >&5
10839echo "${ECHO_T}no" >&6
2429c060
PB
10840 fi
10841 done
10842fi
10843
10844if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10845 for ncn_progname in strip; do
10846 if test -n "$ncn_target_tool_prefix"; then
10847 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10848set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10849echo "$as_me:$LINENO: checking for $ac_word" >&5
10850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10851if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10853else
10854 if test -n "$STRIP_FOR_TARGET"; then
10855 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10856else
10857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10858for as_dir in $PATH
10859do
10860 IFS=$as_save_IFS
10861 test -z "$as_dir" && as_dir=.
10862 for ac_exec_ext in '' $ac_executable_extensions; do
10863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10864 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10866 break 2
10867 fi
10868done
10869done
10870
7e0f7140
GK
10871fi
10872fi
c6b750e1 10873STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10874if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10875 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10876echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10877else
c6b750e1
DJ
10878 echo "$as_me:$LINENO: result: no" >&5
10879echo "${ECHO_T}no" >&6
7e0f7140
GK
10880fi
10881
2429c060
PB
10882 fi
10883 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10884 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10885set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10886echo "$as_me:$LINENO: checking for $ac_word" >&5
10887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10888if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10890else
10891 if test -n "$STRIP_FOR_TARGET"; then
10892 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10893else
c6b750e1
DJ
10894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10895for as_dir in $PATH
10896do
10897 IFS=$as_save_IFS
10898 test -z "$as_dir" && as_dir=.
10899 for ac_exec_ext in '' $ac_executable_extensions; do
10900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10901 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10903 break 2
10904 fi
10905done
10906done
10907
7e0f7140
GK
10908fi
10909fi
c6b750e1 10910STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10911if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10912 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10913echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10914else
c6b750e1
DJ
10915 echo "$as_me:$LINENO: result: no" >&5
10916echo "${ECHO_T}no" >&6
7e0f7140 10917fi
c6b750e1 10918
2429c060
PB
10919 fi
10920 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10921 done
10922fi
c6b750e1 10923
7e0f7140
GK
10924if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10925 set dummy strip
10926 if test $build = $target ; then
10927 STRIP_FOR_TARGET="$2"
10928 else
10929 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10930 fi
d3f5afc4
MS
10931else
10932 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10933fi
10934
3a35eeb3
PB
10935else
10936 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10937fi
10938
10939
10940
10941
10942if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10943 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10944 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10945echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10946 if test -x $with_build_time_tools/windres; then
10947 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10948 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10949 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10950echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10951 else
c6b750e1
DJ
10952 echo "$as_me:$LINENO: result: no" >&5
10953echo "${ECHO_T}no" >&6
3a35eeb3 10954 fi
2429c060
PB
10955 elif test $build != $host && test $have_gcc_for_target = yes; then
10956 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10957 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10958 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10959 fi
10960fi
c6b750e1 10961if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10962 # Extract the first word of "windres", so it can be a program name with args.
10963set dummy windres; ac_word=$2
c6b750e1
DJ
10964echo "$as_me:$LINENO: checking for $ac_word" >&5
10965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10966if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10968else
c6b750e1
DJ
10969 case $WINDRES_FOR_TARGET in
10970 [\\/]* | ?:[\\/]*)
2429c060
PB
10971 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10972 ;;
2429c060 10973 *)
c6b750e1
DJ
10974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975for as_dir in $gcc_cv_tool_dirs
10976do
10977 IFS=$as_save_IFS
10978 test -z "$as_dir" && as_dir=.
10979 for ac_exec_ext in '' $ac_executable_extensions; do
10980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10981 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10983 break 2
10984 fi
10985done
10986done
10987
2429c060
PB
10988 ;;
10989esac
10990fi
c6b750e1
DJ
10991WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10992
2429c060 10993if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10994 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10995echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10996else
c6b750e1
DJ
10997 echo "$as_me:$LINENO: result: no" >&5
10998echo "${ECHO_T}no" >&6
2429c060
PB
10999fi
11000
11001fi
11002if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
11003
11004
11005if test -n "$WINDRES_FOR_TARGET"; then
11006 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11007elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11008 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11009fi
11010
11011if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11012 for ncn_progname in windres; do
11013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11014set dummy ${ncn_progname}; ac_word=$2
11015echo "$as_me:$LINENO: checking for $ac_word" >&5
11016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11017if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
11019else
11020 if test -n "$WINDRES_FOR_TARGET"; then
11021 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11022else
11023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11024for as_dir in $PATH
11025do
11026 IFS=$as_save_IFS
11027 test -z "$as_dir" && as_dir=.
11028 for ac_exec_ext in '' $ac_executable_extensions; do
11029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11030 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11032 break 2
11033 fi
11034done
11035done
11036
11037fi
11038fi
11039WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11040if test -n "$WINDRES_FOR_TARGET"; then
11041 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11042echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11043else
11044 echo "$as_me:$LINENO: result: no" >&5
11045echo "${ECHO_T}no" >&6
11046fi
11047
11048 done
11049fi
11050
11051if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11052 for ncn_progname in windres; do
c6b750e1
DJ
11053 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11054echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11055 if test -x $with_build_time_tools/${ncn_progname}; then
11056 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11057 echo "$as_me:$LINENO: result: yes" >&5
11058echo "${ECHO_T}yes" >&6
2429c060
PB
11059 break
11060 else
c6b750e1
DJ
11061 echo "$as_me:$LINENO: result: no" >&5
11062echo "${ECHO_T}no" >&6
2429c060
PB
11063 fi
11064 done
11065fi
11066
11067if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11068 for ncn_progname in windres; do
11069 if test -n "$ncn_target_tool_prefix"; then
11070 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11071set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11072echo "$as_me:$LINENO: checking for $ac_word" >&5
11073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11074if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11076else
55db4b87
PB
11077 if test -n "$WINDRES_FOR_TARGET"; then
11078 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11079else
c6b750e1
DJ
11080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11081for as_dir in $PATH
11082do
11083 IFS=$as_save_IFS
11084 test -z "$as_dir" && as_dir=.
11085 for ac_exec_ext in '' $ac_executable_extensions; do
11086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11087 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11089 break 2
11090 fi
11091done
11092done
11093
859789af
AC
11094fi
11095fi
c6b750e1 11096WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 11097if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11098 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11099echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11100else
c6b750e1
DJ
11101 echo "$as_me:$LINENO: result: no" >&5
11102echo "${ECHO_T}no" >&6
859789af
AC
11103fi
11104
2429c060
PB
11105 fi
11106 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11108set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11109echo "$as_me:$LINENO: checking for $ac_word" >&5
11110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11111if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11112 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11113else
05cbd757
PB
11114 if test -n "$WINDRES_FOR_TARGET"; then
11115 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11116else
c6b750e1
DJ
11117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11118for as_dir in $PATH
11119do
11120 IFS=$as_save_IFS
11121 test -z "$as_dir" && as_dir=.
11122 for ac_exec_ext in '' $ac_executable_extensions; do
11123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11124 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11126 break 2
11127 fi
11128done
11129done
11130
859789af
AC
11131fi
11132fi
c6b750e1 11133WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 11134if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11135 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11136echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11137else
c6b750e1
DJ
11138 echo "$as_me:$LINENO: result: no" >&5
11139echo "${ECHO_T}no" >&6
859789af 11140fi
c6b750e1 11141
2429c060
PB
11142 fi
11143 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11144 done
11145fi
c6b750e1 11146
05cbd757
PB
11147if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11148 set dummy windres
11149 if test $build = $target ; then
11150 WINDRES_FOR_TARGET="$2"
859789af 11151 else
05cbd757 11152 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11153 fi
d3f5afc4
MS
11154else
11155 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
11156fi
11157
3a35eeb3
PB
11158else
11159 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
11160fi
11161
852e5f18 11162
0c24b341
NC
11163
11164
11165if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11166 if test -n "$with_build_time_tools"; then
11167 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11168echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11169 if test -x $with_build_time_tools/windmc; then
11170 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11171 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11172 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11173echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11174 else
11175 echo "$as_me:$LINENO: result: no" >&5
11176echo "${ECHO_T}no" >&6
11177 fi
11178 elif test $build != $host && test $have_gcc_for_target = yes; then
11179 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11180 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11181 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11182 fi
11183fi
11184if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11185 # Extract the first word of "windmc", so it can be a program name with args.
11186set dummy windmc; ac_word=$2
11187echo "$as_me:$LINENO: checking for $ac_word" >&5
11188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11189if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11191else
11192 case $WINDMC_FOR_TARGET in
11193 [\\/]* | ?:[\\/]*)
11194 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11195 ;;
11196 *)
11197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198for as_dir in $gcc_cv_tool_dirs
11199do
11200 IFS=$as_save_IFS
11201 test -z "$as_dir" && as_dir=.
11202 for ac_exec_ext in '' $ac_executable_extensions; do
11203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11204 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11206 break 2
11207 fi
11208done
11209done
11210
11211 ;;
11212esac
11213fi
11214WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11215
11216if test -n "$WINDMC_FOR_TARGET"; then
11217 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11218echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11219else
11220 echo "$as_me:$LINENO: result: no" >&5
11221echo "${ECHO_T}no" >&6
11222fi
11223
11224fi
11225if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11226
11227
11228if test -n "$WINDMC_FOR_TARGET"; then
11229 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11230elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11231 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11232fi
11233
11234if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11235 for ncn_progname in windmc; do
11236 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11237set dummy ${ncn_progname}; ac_word=$2
11238echo "$as_me:$LINENO: checking for $ac_word" >&5
11239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11240if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11242else
11243 if test -n "$WINDMC_FOR_TARGET"; then
11244 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11245else
11246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11247for as_dir in $PATH
11248do
11249 IFS=$as_save_IFS
11250 test -z "$as_dir" && as_dir=.
11251 for ac_exec_ext in '' $ac_executable_extensions; do
11252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11253 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11255 break 2
11256 fi
11257done
11258done
11259
11260fi
11261fi
11262WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11263if test -n "$WINDMC_FOR_TARGET"; then
11264 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11265echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11266else
11267 echo "$as_me:$LINENO: result: no" >&5
11268echo "${ECHO_T}no" >&6
11269fi
11270
11271 done
11272fi
11273
11274if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11275 for ncn_progname in windmc; do
11276 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11277echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11278 if test -x $with_build_time_tools/${ncn_progname}; then
11279 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11280 echo "$as_me:$LINENO: result: yes" >&5
11281echo "${ECHO_T}yes" >&6
11282 break
11283 else
11284 echo "$as_me:$LINENO: result: no" >&5
11285echo "${ECHO_T}no" >&6
11286 fi
11287 done
11288fi
11289
11290if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11291 for ncn_progname in windmc; do
11292 if test -n "$ncn_target_tool_prefix"; then
11293 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11294set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11295echo "$as_me:$LINENO: checking for $ac_word" >&5
11296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11297if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11299else
11300 if test -n "$WINDMC_FOR_TARGET"; then
11301 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11302else
11303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304for as_dir in $PATH
11305do
11306 IFS=$as_save_IFS
11307 test -z "$as_dir" && as_dir=.
11308 for ac_exec_ext in '' $ac_executable_extensions; do
11309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11310 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11312 break 2
11313 fi
11314done
11315done
11316
11317fi
11318fi
11319WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11320if test -n "$WINDMC_FOR_TARGET"; then
11321 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11322echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11323else
11324 echo "$as_me:$LINENO: result: no" >&5
11325echo "${ECHO_T}no" >&6
11326fi
11327
11328 fi
11329 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11331set dummy ${ncn_progname}; ac_word=$2
11332echo "$as_me:$LINENO: checking for $ac_word" >&5
11333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11334if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11335 echo $ECHO_N "(cached) $ECHO_C" >&6
11336else
11337 if test -n "$WINDMC_FOR_TARGET"; then
11338 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11339else
11340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11341for as_dir in $PATH
11342do
11343 IFS=$as_save_IFS
11344 test -z "$as_dir" && as_dir=.
11345 for ac_exec_ext in '' $ac_executable_extensions; do
11346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11347 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11349 break 2
11350 fi
11351done
11352done
11353
11354fi
11355fi
11356WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11357if test -n "$WINDMC_FOR_TARGET"; then
11358 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11359echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11360else
11361 echo "$as_me:$LINENO: result: no" >&5
11362echo "${ECHO_T}no" >&6
11363fi
11364
11365 fi
11366 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11367 done
11368fi
11369
11370if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11371 set dummy windmc
11372 if test $build = $target ; then
11373 WINDMC_FOR_TARGET="$2"
11374 else
11375 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11376 fi
11377else
11378 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11379fi
11380
11381else
11382 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11383fi
11384
11385
be01d343
PB
11386RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11387
c6b750e1
DJ
11388echo "$as_me:$LINENO: checking where to find the target ar" >&5
11389echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11390if test "x${build}" != "x${host}" ; then
2429c060
PB
11391 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11392 # We already found the complete path
b8025f34
AS
11393 ac_dir=`dirname $AR_FOR_TARGET`
11394 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11395echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11396 else
11397 # Canadian cross, just use what we found
c6b750e1
DJ
11398 echo "$as_me:$LINENO: result: pre-installed" >&5
11399echo "${ECHO_T}pre-installed" >&6
2429c060 11400 fi
be01d343
PB
11401else
11402 ok=yes
11403 case " ${configdirs} " in
11404 *" binutils "*) ;;
11405 *) ok=no ;;
11406 esac
c6b750e1 11407
be01d343
PB
11408 if test $ok = yes; then
11409 # An in-tree tool is available and we can use it
11410 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11411 echo "$as_me:$LINENO: result: just compiled" >&5
11412echo "${ECHO_T}just compiled" >&6
2429c060
PB
11413 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11414 # We already found the complete path
b8025f34
AS
11415 ac_dir=`dirname $AR_FOR_TARGET`
11416 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11417echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11418 elif test "x$target" = "x$host"; then
11419 # We can use an host tool
11420 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11421 echo "$as_me:$LINENO: result: host tool" >&5
11422echo "${ECHO_T}host tool" >&6
be01d343
PB
11423 else
11424 # We need a cross tool
c6b750e1
DJ
11425 echo "$as_me:$LINENO: result: pre-installed" >&5
11426echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11427 fi
11428fi
4b900473 11429
c6b750e1
DJ
11430echo "$as_me:$LINENO: checking where to find the target as" >&5
11431echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11432if test "x${build}" != "x${host}" ; then
2429c060
PB
11433 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11434 # We already found the complete path
b8025f34
AS
11435 ac_dir=`dirname $AS_FOR_TARGET`
11436 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11437echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11438 else
11439 # Canadian cross, just use what we found
c6b750e1
DJ
11440 echo "$as_me:$LINENO: result: pre-installed" >&5
11441echo "${ECHO_T}pre-installed" >&6
2429c060 11442 fi
be01d343
PB
11443else
11444 ok=yes
11445 case " ${configdirs} " in
11446 *" gas "*) ;;
11447 *) ok=no ;;
11448 esac
c6b750e1 11449
be01d343
PB
11450 if test $ok = yes; then
11451 # An in-tree tool is available and we can use it
11452 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11453 echo "$as_me:$LINENO: result: just compiled" >&5
11454echo "${ECHO_T}just compiled" >&6
2429c060
PB
11455 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11456 # We already found the complete path
b8025f34
AS
11457 ac_dir=`dirname $AS_FOR_TARGET`
11458 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11459echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11460 elif test "x$target" = "x$host"; then
11461 # We can use an host tool
11462 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11463 echo "$as_me:$LINENO: result: host tool" >&5
11464echo "${ECHO_T}host tool" >&6
be01d343
PB
11465 else
11466 # We need a cross tool
c6b750e1
DJ
11467 echo "$as_me:$LINENO: result: pre-installed" >&5
11468echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11469 fi
11470fi
4b900473 11471
c6b750e1
DJ
11472echo "$as_me:$LINENO: checking where to find the target cc" >&5
11473echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11474if test "x${build}" != "x${host}" ; then
2429c060
PB
11475 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11476 # We already found the complete path
b8025f34
AS
11477 ac_dir=`dirname $CC_FOR_TARGET`
11478 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11479echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11480 else
11481 # Canadian cross, just use what we found
c6b750e1
DJ
11482 echo "$as_me:$LINENO: result: pre-installed" >&5
11483echo "${ECHO_T}pre-installed" >&6
2429c060 11484 fi
be01d343
PB
11485else
11486 ok=yes
11487 case " ${configdirs} " in
11488 *" gcc "*) ;;
11489 *) ok=no ;;
11490 esac
c6b750e1 11491
be01d343
PB
11492 if test $ok = yes; then
11493 # An in-tree tool is available and we can use it
11494 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11495 echo "$as_me:$LINENO: result: just compiled" >&5
11496echo "${ECHO_T}just compiled" >&6
2429c060
PB
11497 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11498 # We already found the complete path
b8025f34
AS
11499 ac_dir=`dirname $CC_FOR_TARGET`
11500 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11501echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11502 elif test "x$target" = "x$host"; then
11503 # We can use an host tool
11504 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11505 echo "$as_me:$LINENO: result: host tool" >&5
11506echo "${ECHO_T}host tool" >&6
be01d343
PB
11507 else
11508 # We need a cross tool
c6b750e1
DJ
11509 echo "$as_me:$LINENO: result: pre-installed" >&5
11510echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11511 fi
11512fi
4b900473 11513
c6b750e1
DJ
11514echo "$as_me:$LINENO: checking where to find the target c++" >&5
11515echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11516if test "x${build}" != "x${host}" ; then
2429c060
PB
11517 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11518 # We already found the complete path
b8025f34
AS
11519 ac_dir=`dirname $CXX_FOR_TARGET`
11520 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11521echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11522 else
11523 # Canadian cross, just use what we found
c6b750e1
DJ
11524 echo "$as_me:$LINENO: result: pre-installed" >&5
11525echo "${ECHO_T}pre-installed" >&6
2429c060 11526 fi
be01d343
PB
11527else
11528 ok=yes
11529 case " ${configdirs} " in
11530 *" gcc "*) ;;
11531 *) ok=no ;;
11532 esac
11533 case ,${enable_languages}, in
11534 *,c++,*) ;;
11535 *) ok=no ;;
11536 esac
11537 if test $ok = yes; then
11538 # An in-tree tool is available and we can use it
11539 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
11540 echo "$as_me:$LINENO: result: just compiled" >&5
11541echo "${ECHO_T}just compiled" >&6
2429c060
PB
11542 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11543 # We already found the complete path
b8025f34
AS
11544 ac_dir=`dirname $CXX_FOR_TARGET`
11545 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11546echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11547 elif test "x$target" = "x$host"; then
11548 # We can use an host tool
11549 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11550 echo "$as_me:$LINENO: result: host tool" >&5
11551echo "${ECHO_T}host tool" >&6
be01d343
PB
11552 else
11553 # We need a cross tool
c6b750e1
DJ
11554 echo "$as_me:$LINENO: result: pre-installed" >&5
11555echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11556 fi
11557fi
4b900473 11558
c6b750e1
DJ
11559echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11560echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11561if test "x${build}" != "x${host}" ; then
2429c060
PB
11562 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11563 # We already found the complete path
b8025f34
AS
11564 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11565 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11566echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11567 else
11568 # Canadian cross, just use what we found
c6b750e1
DJ
11569 echo "$as_me:$LINENO: result: pre-installed" >&5
11570echo "${ECHO_T}pre-installed" >&6
2429c060 11571 fi
be01d343
PB
11572else
11573 ok=yes
11574 case " ${configdirs} " in
11575 *" gcc "*) ;;
11576 *) ok=no ;;
11577 esac
11578 case ,${enable_languages}, in
11579 *,c++,*) ;;
11580 *) ok=no ;;
11581 esac
11582 if test $ok = yes; then
11583 # An in-tree tool is available and we can use it
11584 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
11585 echo "$as_me:$LINENO: result: just compiled" >&5
11586echo "${ECHO_T}just compiled" >&6
2429c060
PB
11587 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11588 # We already found the complete path
b8025f34
AS
11589 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11590 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11591echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11592 elif test "x$target" = "x$host"; then
11593 # We can use an host tool
11594 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11595 echo "$as_me:$LINENO: result: host tool" >&5
11596echo "${ECHO_T}host tool" >&6
be01d343
PB
11597 else
11598 # We need a cross tool
c6b750e1
DJ
11599 echo "$as_me:$LINENO: result: pre-installed" >&5
11600echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11601 fi
11602fi
4b900473 11603
c6b750e1
DJ
11604echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11605echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11606if test "x${build}" != "x${host}" ; then
2429c060
PB
11607 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11608 # We already found the complete path
b8025f34
AS
11609 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11610 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11611echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11612 else
11613 # Canadian cross, just use what we found
c6b750e1
DJ
11614 echo "$as_me:$LINENO: result: pre-installed" >&5
11615echo "${ECHO_T}pre-installed" >&6
2429c060 11616 fi
be01d343
PB
11617else
11618 ok=yes
11619 case " ${configdirs} " in
11620 *" binutils "*) ;;
11621 *) ok=no ;;
11622 esac
c6b750e1 11623
be01d343
PB
11624 if test $ok = yes; then
11625 # An in-tree tool is available and we can use it
11626 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11627 echo "$as_me:$LINENO: result: just compiled" >&5
11628echo "${ECHO_T}just compiled" >&6
2429c060
PB
11629 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11630 # We already found the complete path
b8025f34
AS
11631 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11632 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11633echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11634 elif test "x$target" = "x$host"; then
11635 # We can use an host tool
11636 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11637 echo "$as_me:$LINENO: result: host tool" >&5
11638echo "${ECHO_T}host tool" >&6
be01d343
PB
11639 else
11640 # We need a cross tool
c6b750e1
DJ
11641 echo "$as_me:$LINENO: result: pre-installed" >&5
11642echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11643 fi
11644fi
4b900473 11645
c6b750e1
DJ
11646echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11647echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11648if test "x${build}" != "x${host}" ; then
2429c060
PB
11649 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11650 # We already found the complete path
b8025f34
AS
11651 ac_dir=`dirname $GCC_FOR_TARGET`
11652 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11653echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11654 else
11655 # Canadian cross, just use what we found
c6b750e1
DJ
11656 echo "$as_me:$LINENO: result: pre-installed" >&5
11657echo "${ECHO_T}pre-installed" >&6
2429c060 11658 fi
be01d343
PB
11659else
11660 ok=yes
11661 case " ${configdirs} " in
11662 *" gcc "*) ;;
11663 *) ok=no ;;
11664 esac
c6b750e1 11665
be01d343
PB
11666 if test $ok = yes; then
11667 # An in-tree tool is available and we can use it
11668 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11669 echo "$as_me:$LINENO: result: just compiled" >&5
11670echo "${ECHO_T}just compiled" >&6
2429c060
PB
11671 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11672 # We already found the complete path
b8025f34
AS
11673 ac_dir=`dirname $GCC_FOR_TARGET`
11674 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11675echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11676 elif test "x$target" = "x$host"; then
11677 # We can use an host tool
11678 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11679 echo "$as_me:$LINENO: result: host tool" >&5
11680echo "${ECHO_T}host tool" >&6
be01d343
PB
11681 else
11682 # We need a cross tool
c6b750e1
DJ
11683 echo "$as_me:$LINENO: result: pre-installed" >&5
11684echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11685 fi
11686fi
4b900473 11687
c6b750e1
DJ
11688echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11689echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11690if test "x${build}" != "x${host}" ; then
2429c060
PB
11691 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11692 # We already found the complete path
b8025f34
AS
11693 ac_dir=`dirname $GCJ_FOR_TARGET`
11694 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11695echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11696 else
11697 # Canadian cross, just use what we found
c6b750e1
DJ
11698 echo "$as_me:$LINENO: result: pre-installed" >&5
11699echo "${ECHO_T}pre-installed" >&6
2429c060 11700 fi
be01d343
PB
11701else
11702 ok=yes
11703 case " ${configdirs} " in
11704 *" gcc "*) ;;
11705 *) ok=no ;;
11706 esac
11707 case ,${enable_languages}, in
11708 *,java,*) ;;
11709 *) ok=no ;;
11710 esac
11711 if test $ok = yes; then
11712 # An in-tree tool is available and we can use it
11713 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11714 echo "$as_me:$LINENO: result: just compiled" >&5
11715echo "${ECHO_T}just compiled" >&6
2429c060
PB
11716 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11717 # We already found the complete path
b8025f34
AS
11718 ac_dir=`dirname $GCJ_FOR_TARGET`
11719 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11720echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11721 elif test "x$target" = "x$host"; then
11722 # We can use an host tool
11723 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11724 echo "$as_me:$LINENO: result: host tool" >&5
11725echo "${ECHO_T}host tool" >&6
be01d343
PB
11726 else
11727 # We need a cross tool
c6b750e1
DJ
11728 echo "$as_me:$LINENO: result: pre-installed" >&5
11729echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11730 fi
11731fi
4b900473 11732
c6b750e1
DJ
11733echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11734echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11735if test "x${build}" != "x${host}" ; then
2429c060
PB
11736 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11737 # We already found the complete path
b8025f34
AS
11738 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11739 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11740echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11741 else
11742 # Canadian cross, just use what we found
c6b750e1
DJ
11743 echo "$as_me:$LINENO: result: pre-installed" >&5
11744echo "${ECHO_T}pre-installed" >&6
2429c060 11745 fi
be01d343
PB
11746else
11747 ok=yes
11748 case " ${configdirs} " in
11749 *" gcc "*) ;;
11750 *) ok=no ;;
11751 esac
11752 case ,${enable_languages}, in
11753 *,fortran,*) ;;
11754 *) ok=no ;;
11755 esac
11756 if test $ok = yes; then
11757 # An in-tree tool is available and we can use it
11758 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11759 echo "$as_me:$LINENO: result: just compiled" >&5
11760echo "${ECHO_T}just compiled" >&6
2429c060
PB
11761 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11762 # We already found the complete path
b8025f34
AS
11763 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11764 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11765echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11766 elif test "x$target" = "x$host"; then
11767 # We can use an host tool
11768 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11769 echo "$as_me:$LINENO: result: host tool" >&5
11770echo "${ECHO_T}host tool" >&6
be01d343
PB
11771 else
11772 # We need a cross tool
c6b750e1
DJ
11773 echo "$as_me:$LINENO: result: pre-installed" >&5
11774echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11775 fi
11776fi
4b900473 11777
c6b750e1
DJ
11778echo "$as_me:$LINENO: checking where to find the target ld" >&5
11779echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11780if test "x${build}" != "x${host}" ; then
2429c060
PB
11781 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11782 # We already found the complete path
b8025f34
AS
11783 ac_dir=`dirname $LD_FOR_TARGET`
11784 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11785echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11786 else
11787 # Canadian cross, just use what we found
c6b750e1
DJ
11788 echo "$as_me:$LINENO: result: pre-installed" >&5
11789echo "${ECHO_T}pre-installed" >&6
2429c060 11790 fi
be01d343
PB
11791else
11792 ok=yes
11793 case " ${configdirs} " in
11794 *" ld "*) ;;
11795 *) ok=no ;;
11796 esac
c6b750e1 11797
be01d343
PB
11798 if test $ok = yes; then
11799 # An in-tree tool is available and we can use it
11800 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11801 echo "$as_me:$LINENO: result: just compiled" >&5
11802echo "${ECHO_T}just compiled" >&6
2429c060
PB
11803 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11804 # We already found the complete path
b8025f34
AS
11805 ac_dir=`dirname $LD_FOR_TARGET`
11806 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11807echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11808 elif test "x$target" = "x$host"; then
11809 # We can use an host tool
11810 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11811 echo "$as_me:$LINENO: result: host tool" >&5
11812echo "${ECHO_T}host tool" >&6
be01d343
PB
11813 else
11814 # We need a cross tool
c6b750e1
DJ
11815 echo "$as_me:$LINENO: result: pre-installed" >&5
11816echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11817 fi
11818fi
4b900473 11819
c6b750e1
DJ
11820echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11821echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11822if test "x${build}" != "x${host}" ; then
2429c060
PB
11823 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11824 # We already found the complete path
b8025f34
AS
11825 ac_dir=`dirname $LIPO_FOR_TARGET`
11826 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11827echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11828 else
11829 # Canadian cross, just use what we found
c6b750e1
DJ
11830 echo "$as_me:$LINENO: result: pre-installed" >&5
11831echo "${ECHO_T}pre-installed" >&6
2429c060 11832 fi
be01d343 11833else
2429c060
PB
11834 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11835 # We already found the complete path
b8025f34
AS
11836 ac_dir=`dirname $LIPO_FOR_TARGET`
11837 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11838echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11839 elif test "x$target" = "x$host"; then
be01d343
PB
11840 # We can use an host tool
11841 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11842 echo "$as_me:$LINENO: result: host tool" >&5
11843echo "${ECHO_T}host tool" >&6
be01d343
PB
11844 else
11845 # We need a cross tool
c6b750e1
DJ
11846 echo "$as_me:$LINENO: result: pre-installed" >&5
11847echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11848 fi
11849fi
4b900473 11850
c6b750e1
DJ
11851echo "$as_me:$LINENO: checking where to find the target nm" >&5
11852echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11853if test "x${build}" != "x${host}" ; then
2429c060
PB
11854 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11855 # We already found the complete path
b8025f34
AS
11856 ac_dir=`dirname $NM_FOR_TARGET`
11857 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11858echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11859 else
11860 # Canadian cross, just use what we found
c6b750e1
DJ
11861 echo "$as_me:$LINENO: result: pre-installed" >&5
11862echo "${ECHO_T}pre-installed" >&6
2429c060 11863 fi
be01d343
PB
11864else
11865 ok=yes
11866 case " ${configdirs} " in
11867 *" binutils "*) ;;
11868 *) ok=no ;;
11869 esac
c6b750e1 11870
be01d343
PB
11871 if test $ok = yes; then
11872 # An in-tree tool is available and we can use it
11873 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11874 echo "$as_me:$LINENO: result: just compiled" >&5
11875echo "${ECHO_T}just compiled" >&6
2429c060
PB
11876 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11877 # We already found the complete path
b8025f34
AS
11878 ac_dir=`dirname $NM_FOR_TARGET`
11879 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11880echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11881 elif test "x$target" = "x$host"; then
11882 # We can use an host tool
11883 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11884 echo "$as_me:$LINENO: result: host tool" >&5
11885echo "${ECHO_T}host tool" >&6
be01d343
PB
11886 else
11887 # We need a cross tool
c6b750e1
DJ
11888 echo "$as_me:$LINENO: result: pre-installed" >&5
11889echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11890 fi
11891fi
4b900473 11892
c6b750e1
DJ
11893echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11894echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11895if test "x${build}" != "x${host}" ; then
2429c060
PB
11896 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11897 # We already found the complete path
b8025f34
AS
11898 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11899 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11900echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11901 else
11902 # Canadian cross, just use what we found
c6b750e1
DJ
11903 echo "$as_me:$LINENO: result: pre-installed" >&5
11904echo "${ECHO_T}pre-installed" >&6
2429c060 11905 fi
be01d343
PB
11906else
11907 ok=yes
11908 case " ${configdirs} " in
11909 *" binutils "*) ;;
11910 *) ok=no ;;
11911 esac
c6b750e1 11912
be01d343
PB
11913 if test $ok = yes; then
11914 # An in-tree tool is available and we can use it
11915 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11916 echo "$as_me:$LINENO: result: just compiled" >&5
11917echo "${ECHO_T}just compiled" >&6
2429c060
PB
11918 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11919 # We already found the complete path
b8025f34
AS
11920 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11921 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11922echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11923 elif test "x$target" = "x$host"; then
11924 # We can use an host tool
11925 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11926 echo "$as_me:$LINENO: result: host tool" >&5
11927echo "${ECHO_T}host tool" >&6
be01d343
PB
11928 else
11929 # We need a cross tool
c6b750e1
DJ
11930 echo "$as_me:$LINENO: result: pre-installed" >&5
11931echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11932 fi
11933fi
4b900473 11934
c6b750e1
DJ
11935echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11936echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11937if test "x${build}" != "x${host}" ; then
2429c060
PB
11938 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11939 # We already found the complete path
b8025f34
AS
11940 ac_dir=`dirname $RANLIB_FOR_TARGET`
11941 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11942echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11943 else
11944 # Canadian cross, just use what we found
c6b750e1
DJ
11945 echo "$as_me:$LINENO: result: pre-installed" >&5
11946echo "${ECHO_T}pre-installed" >&6
2429c060 11947 fi
be01d343
PB
11948else
11949 ok=yes
11950 case " ${configdirs} " in
11951 *" binutils "*) ;;
11952 *) ok=no ;;
11953 esac
c6b750e1 11954
be01d343
PB
11955 if test $ok = yes; then
11956 # An in-tree tool is available and we can use it
11957 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11958 echo "$as_me:$LINENO: result: just compiled" >&5
11959echo "${ECHO_T}just compiled" >&6
2429c060
PB
11960 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11961 # We already found the complete path
b8025f34
AS
11962 ac_dir=`dirname $RANLIB_FOR_TARGET`
11963 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11964echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11965 elif test "x$target" = "x$host"; then
11966 # We can use an host tool
11967 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11968 echo "$as_me:$LINENO: result: host tool" >&5
11969echo "${ECHO_T}host tool" >&6
be01d343
PB
11970 else
11971 # We need a cross tool
c6b750e1
DJ
11972 echo "$as_me:$LINENO: result: pre-installed" >&5
11973echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11974 fi
11975fi
4b900473 11976
c6b750e1
DJ
11977echo "$as_me:$LINENO: checking where to find the target strip" >&5
11978echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11979if test "x${build}" != "x${host}" ; then
2429c060
PB
11980 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11981 # We already found the complete path
b8025f34
AS
11982 ac_dir=`dirname $STRIP_FOR_TARGET`
11983 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11984echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11985 else
11986 # Canadian cross, just use what we found
c6b750e1
DJ
11987 echo "$as_me:$LINENO: result: pre-installed" >&5
11988echo "${ECHO_T}pre-installed" >&6
2429c060 11989 fi
be01d343
PB
11990else
11991 ok=yes
11992 case " ${configdirs} " in
11993 *" binutils "*) ;;
11994 *) ok=no ;;
11995 esac
c6b750e1 11996
be01d343
PB
11997 if test $ok = yes; then
11998 # An in-tree tool is available and we can use it
11999 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
12000 echo "$as_me:$LINENO: result: just compiled" >&5
12001echo "${ECHO_T}just compiled" >&6
2429c060
PB
12002 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12003 # We already found the complete path
b8025f34
AS
12004 ac_dir=`dirname $STRIP_FOR_TARGET`
12005 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12006echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12007 elif test "x$target" = "x$host"; then
12008 # We can use an host tool
12009 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
12010 echo "$as_me:$LINENO: result: host tool" >&5
12011echo "${ECHO_T}host tool" >&6
be01d343
PB
12012 else
12013 # We need a cross tool
c6b750e1
DJ
12014 echo "$as_me:$LINENO: result: pre-installed" >&5
12015echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12016 fi
12017fi
4b900473 12018
c6b750e1
DJ
12019echo "$as_me:$LINENO: checking where to find the target windres" >&5
12020echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 12021if test "x${build}" != "x${host}" ; then
2429c060
PB
12022 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12023 # We already found the complete path
b8025f34
AS
12024 ac_dir=`dirname $WINDRES_FOR_TARGET`
12025 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12026echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12027 else
12028 # Canadian cross, just use what we found
c6b750e1
DJ
12029 echo "$as_me:$LINENO: result: pre-installed" >&5
12030echo "${ECHO_T}pre-installed" >&6
2429c060 12031 fi
be01d343
PB
12032else
12033 ok=yes
12034 case " ${configdirs} " in
12035 *" binutils "*) ;;
12036 *) ok=no ;;
12037 esac
c6b750e1 12038
be01d343
PB
12039 if test $ok = yes; then
12040 # An in-tree tool is available and we can use it
12041 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
12042 echo "$as_me:$LINENO: result: just compiled" >&5
12043echo "${ECHO_T}just compiled" >&6
2429c060
PB
12044 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12045 # We already found the complete path
b8025f34
AS
12046 ac_dir=`dirname $WINDRES_FOR_TARGET`
12047 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12048echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12049 elif test "x$target" = "x$host"; then
12050 # We can use an host tool
12051 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
12052 echo "$as_me:$LINENO: result: host tool" >&5
12053echo "${ECHO_T}host tool" >&6
be01d343
PB
12054 else
12055 # We need a cross tool
c6b750e1
DJ
12056 echo "$as_me:$LINENO: result: pre-installed" >&5
12057echo "${ECHO_T}pre-installed" >&6
be01d343 12058 fi
a0da8069 12059fi
54752a6b 12060
0c24b341
NC
12061echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12062echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12063if test "x${build}" != "x${host}" ; then
12064 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12065 # We already found the complete path
12066 ac_dir=`dirname $WINDMC_FOR_TARGET`
12067 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12068echo "${ECHO_T}pre-installed in $ac_dir" >&6
12069 else
12070 # Canadian cross, just use what we found
12071 echo "$as_me:$LINENO: result: pre-installed" >&5
12072echo "${ECHO_T}pre-installed" >&6
12073 fi
12074else
12075 ok=yes
12076 case " ${configdirs} " in
12077 *" binutils "*) ;;
12078 *) ok=no ;;
12079 esac
12080
12081 if test $ok = yes; then
12082 # An in-tree tool is available and we can use it
12083 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12084 echo "$as_me:$LINENO: result: just compiled" >&5
12085echo "${ECHO_T}just compiled" >&6
12086 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12087 # We already found the complete path
12088 ac_dir=`dirname $WINDMC_FOR_TARGET`
12089 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12090echo "${ECHO_T}pre-installed in $ac_dir" >&6
12091 elif test "x$target" = "x$host"; then
12092 # We can use an host tool
12093 WINDMC_FOR_TARGET='$(WINDMC)'
12094 echo "$as_me:$LINENO: result: host tool" >&5
12095echo "${ECHO_T}host tool" >&6
12096 else
12097 # We need a cross tool
12098 echo "$as_me:$LINENO: result: pre-installed" >&5
12099echo "${ECHO_T}pre-installed" >&6
12100 fi
12101fi
12102
54752a6b
NN
12103
12104
be01d343 12105
4b900473 12106
a0da8069
NN
12107# Certain tools may need extra flags.
12108AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12109RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12110NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12111
be01d343
PB
12112# When building target libraries, except in a Canadian cross, we use
12113# the same toolchain as the compiler we just built.
12114COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12115COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12116COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12117if test $host = $build; then
12118 case " $configdirs " in
12119 *" gcc "*)
12120 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12121 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12122 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12123 ;;
12124 esac
12125fi
12126
12127
12128
12129
12130
c6b750e1
DJ
12131echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12132echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
12133# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12134if test "${enable_maintainer_mode+set}" = set; then
12135 enableval="$enable_maintainer_mode"
12136 USE_MAINTAINER_MODE=$enableval
12137else
12138 USE_MAINTAINER_MODE=no
c6b750e1
DJ
12139fi;
12140echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12141echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
12142
12143
12144if test "$USE_MAINTAINER_MODE" = yes; then
12145 MAINTAINER_MODE_TRUE=
12146 MAINTAINER_MODE_FALSE='#'
12147else
12148 MAINTAINER_MODE_TRUE='#'
12149 MAINTAINER_MODE_FALSE=
c6b750e1 12150fi
3d5e36ae
AO
12151MAINT=$MAINTAINER_MODE_TRUE
12152
1d39f329
NN
12153# ---------------------
12154# GCC bootstrap support
12155# ---------------------
12156
12157# Stage specific cflags for build.
12158stage1_cflags="-g"
12159case $build in
12160 vax-*-*)
12161 case ${GCC} in
12162 yes) stage1_cflags="-g -Wa,-J" ;;
12163 *) stage1_cflags="-g -J" ;;
12164 esac ;;
1d39f329
NN
12165esac
12166
1d89b610
PB
12167# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12168if test "$GCC" = yes; then
12169 saved_CFLAGS="$CFLAGS"
12170
12171 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12172 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
12173 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12174echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12175 cat >conftest.$ac_ext <<_ACEOF
12176/* confdefs.h. */
12177_ACEOF
12178cat confdefs.h >>conftest.$ac_ext
12179cat >>conftest.$ac_ext <<_ACEOF
12180/* end confdefs.h. */
12181
2038f525
PB
12182#if (__GNUC__ < 3) \
12183 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12184 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12185#error http://gcc.gnu.org/PR29382
12186#endif
12187
c6b750e1
DJ
12188int
12189main ()
12190{
12191
12192 ;
12193 return 0;
12194}
12195_ACEOF
12196rm -f conftest.$ac_objext
12197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12198 (eval $ac_compile) 2>conftest.er1
12199 ac_status=$?
12200 grep -v '^ *+' conftest.er1 >conftest.err
12201 rm -f conftest.er1
12202 cat conftest.err >&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } &&
12205 { ac_try='test -z "$ac_c_werror_flag"
12206 || test ! -s conftest.err'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12209 ac_status=$?
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; } &&
12212 { ac_try='test -s conftest.$ac_objext'
12213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214 (eval $ac_try) 2>&5
12215 ac_status=$?
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; }; then
12218 echo "$as_me:$LINENO: result: yes" >&5
12219echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12220else
12221 echo "$as_me: failed program was:" >&5
12222sed 's/^/| /' conftest.$ac_ext >&5
12223
12224echo "$as_me:$LINENO: result: no" >&5
12225echo "${ECHO_T}no" >&6
12226fi
12227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12228
12229 CFLAGS="$saved_CFLAGS"
12230fi
12231
12232
1d39f329 12233
8a0d8a5c
PB
12234# Enable --enable-checking in stage1 of the compiler.
12235# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12236if test "${enable_stage1_checking+set}" = set; then
12237 enableval="$enable_stage1_checking"
12238 stage1_checking=--enable-checking=${enable_stage1_checking}
12239else
5566c1fa 12240 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12241 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12242else
5566c1fa 12243 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12244fi
c6b750e1 12245fi;
8a0d8a5c
PB
12246
12247
1d39f329 12248# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12249# Check whether --enable-werror or --disable-werror was given.
12250if test "${enable_werror+set}" = set; then
12251 enableval="$enable_werror"
c6b750e1 12252
1d39f329 12253else
a0323144 12254 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12255 enable_werror=yes
79fcd0ec
PB
12256else
12257 enable_werror=no
12258fi
c6b750e1 12259fi;
1a6f2dc7
NN
12260case ${enable_werror} in
12261 yes) stage2_werror_flag="--enable-werror-always" ;;
12262 *) stage2_werror_flag="" ;;
1d39f329
NN
12263esac
12264
12265
108a6f8e 12266# Flags needed to enable html installing and building
c6b750e1 12267
108a6f8e
CD
12268# Check whether --with-datarootdir or --without-datarootdir was given.
12269if test "${with_datarootdir+set}" = set; then
12270 withval="$with_datarootdir"
12271 datarootdir="\${prefix}/${withval}"
12272else
12273 datarootdir="\${prefix}/share"
c6b750e1 12274fi;
108a6f8e
CD
12275
12276
12277# Check whether --with-docdir or --without-docdir was given.
12278if test "${with_docdir+set}" = set; then
12279 withval="$with_docdir"
12280 docdir="\${prefix}/${withval}"
12281else
12282 docdir="\${datarootdir}/doc"
c6b750e1 12283fi;
108a6f8e
CD
12284
12285
a3ca38d2
DD
12286# Check whether --with-pdfdir or --without-pdfdir was given.
12287if test "${with_pdfdir+set}" = set; then
12288 withval="$with_pdfdir"
12289 pdfdir="\${prefix}/${withval}"
12290else
12291 pdfdir="\${docdir}"
12292fi;
12293
12294
108a6f8e
CD
12295# Check whether --with-htmldir or --without-htmldir was given.
12296if test "${with_htmldir+set}" = set; then
12297 withval="$with_htmldir"
12298 htmldir="\${prefix}/${withval}"
12299else
12300 htmldir="\${docdir}"
c6b750e1 12301fi;
108a6f8e
CD
12302
12303
12304
12305
12306
b8025f34 12307
c6b750e1
DJ
12308 ac_config_files="$ac_config_files Makefile"
12309cat >confcache <<\_ACEOF
a0da8069
NN
12310# This file is a shell script that caches the results of configure
12311# tests run on this system so they can be shared between configure
c6b750e1
DJ
12312# scripts and configure runs, see configure's option --config-cache.
12313# It is not useful on other systems. If it contains results you don't
12314# want to keep, you may remove or edit it.
a0da8069 12315#
c6b750e1
DJ
12316# config.status only pays attention to the cache file if you give it
12317# the --recheck option to rerun configure.
a0da8069 12318#
c6b750e1
DJ
12319# `ac_cv_env_foo' variables (set or unset) will be overridden when
12320# loading this file, other *unset* `ac_cv_foo' will be assigned the
12321# following values.
12322
12323_ACEOF
12324
a0da8069
NN
12325# The following way of writing the cache mishandles newlines in values,
12326# but we know of no workaround that is simple, portable, and efficient.
12327# So, don't put newlines in cache variables' values.
12328# Ultrix sh set writes to stderr and can't be redirected directly,
12329# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12330{
12331 (set) 2>&1 |
12332 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12333 *ac_space=\ *)
12334 # `set' does not quote correctly, so add quotes (double-quote
12335 # substitution turns \\\\ into \\, and sed turns \\ into \).
12336 sed -n \
12337 "s/'/'\\\\''/g;
12338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12339 ;;
12340 *)
12341 # `set' quotes correctly as required by POSIX, so do not add quotes.
12342 sed -n \
12343 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12344 ;;
12345 esac;
12346} |
12347 sed '
12348 t clear
12349 : clear
12350 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12351 t end
12352 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12353 : end' >>confcache
12354if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12355 if test -w $cache_file; then
c6b750e1
DJ
12356 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12357 cat confcache >$cache_file
a0da8069
NN
12358 else
12359 echo "not updating unwritable cache $cache_file"
12360 fi
852e5f18 12361fi
a0da8069 12362rm -f confcache
852e5f18 12363
a0da8069
NN
12364test "x$prefix" = xNONE && prefix=$ac_default_prefix
12365# Let make expand exec_prefix.
12366test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12367
c6b750e1
DJ
12368# VPATH may cause trouble with some makes, so we remove $(srcdir),
12369# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12370# trailing colons and then remove the whole line if VPATH becomes empty
12371# (actually we leave an empty line to preserve line numbers).
a0da8069 12372if test "x$srcdir" = x.; then
c6b750e1
DJ
12373 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12374s/:*\$(srcdir):*/:/;
12375s/:*\${srcdir}:*/:/;
12376s/:*@srcdir@:*/:/;
12377s/^\([^=]*=[ ]*\):*/\1/;
12378s/:*$//;
12379s/^[^=]*=[ ]*$//;
12380}'
a0da8069 12381fi
252b5132 12382
a0da8069
NN
12383# Transform confdefs.h into DEFS.
12384# Protect against shell expansion while executing Makefile rules.
12385# Protect against Makefile macro expansion.
c6b750e1
DJ
12386#
12387# If the first sed substitution is executed (which looks for macros that
12388# take arguments), then we branch to the quote section. Otherwise,
12389# look for a macro that doesn't take arguments.
12390cat >confdef2opt.sed <<\_ACEOF
12391t clear
12392: clear
12393s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12394t quote
12395s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12396t quote
12397d
12398: quote
12399s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12400s,\[,\\&,g
12401s,\],\\&,g
12402s,\$,$$,g
12403p
12404_ACEOF
12405# We use echo to avoid assuming a particular line-breaking character.
12406# The extra dot is to prevent the shell from consuming trailing
12407# line-breaks from the sub-command output. A line-break within
12408# single-quotes doesn't work because, if this script is created in a
12409# platform that uses two characters for line-breaks (e.g., DOS), tr
12410# would break.
12411ac_LF_and_DOT=`echo; echo .`
12412DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12413rm -f confdef2opt.sed
12414
12415
12416ac_libobjs=
12417ac_ltlibobjs=
12418for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12419 # 1. Remove the extension, and $U if already installed.
12420 ac_i=`echo "$ac_i" |
12421 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12422 # 2. Add them.
12423 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12424 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12425done
12426LIBOBJS=$ac_libobjs
852e5f18 12427
c6b750e1 12428LTLIBOBJS=$ac_ltlibobjs
376a0e54 12429
cac3d6c4 12430
c6b750e1
DJ
12431
12432: ${CONFIG_STATUS=./config.status}
12433ac_clean_files_save=$ac_clean_files
12434ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12435{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12436echo "$as_me: creating $CONFIG_STATUS" >&6;}
12437cat >$CONFIG_STATUS <<_ACEOF
12438#! $SHELL
12439# Generated by $as_me.
a0da8069 12440# Run this file to recreate the current configuration.
a0da8069 12441# Compiler output produced by configure, useful for debugging
c6b750e1 12442# configure, is in config.log if it exists.
376a0e54 12443
c6b750e1
DJ
12444debug=false
12445ac_cs_recheck=false
12446ac_cs_silent=false
12447SHELL=\${CONFIG_SHELL-$SHELL}
12448_ACEOF
12449
12450cat >>$CONFIG_STATUS <<\_ACEOF
12451## --------------------- ##
12452## M4sh Initialization. ##
12453## --------------------- ##
12454
12455# Be Bourne compatible
12456if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12457 emulate sh
12458 NULLCMD=:
12459 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12460 # is contrary to our usage. Disable this feature.
12461 alias -g '${1+"$@"}'='"$@"'
12462elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12463 set -o posix
12464fi
12465DUALCASE=1; export DUALCASE # for MKS sh
12466
12467# Support unset when possible.
12468if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12469 as_unset=unset
12470else
12471 as_unset=false
12472fi
12473
12474
12475# Work around bugs in pre-3.0 UWIN ksh.
12476$as_unset ENV MAIL MAILPATH
12477PS1='$ '
12478PS2='> '
12479PS4='+ '
12480
12481# NLS nuisances.
12482for as_var in \
12483 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12484 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12485 LC_TELEPHONE LC_TIME
12486do
12487 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12488 eval $as_var=C; export $as_var
12489 else
12490 $as_unset $as_var
12491 fi
12492done
12493
12494# Required to use basename.
12495if expr a : '\(a\)' >/dev/null 2>&1; then
12496 as_expr=expr
12497else
12498 as_expr=false
12499fi
12500
12501if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12502 as_basename=basename
12503else
12504 as_basename=false
12505fi
12506
12507
12508# Name of the executable.
12509as_me=`$as_basename "$0" ||
12510$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12511 X"$0" : 'X\(//\)$' \| \
12512 X"$0" : 'X\(/\)$' \| \
12513 . : '\(.\)' 2>/dev/null ||
12514echo X/"$0" |
12515 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12516 /^X\/\(\/\/\)$/{ s//\1/; q; }
12517 /^X\/\(\/\).*/{ s//\1/; q; }
12518 s/.*/./; q'`
12519
12520
12521# PATH needs CR, and LINENO needs CR and PATH.
12522# Avoid depending upon Character Ranges.
12523as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12524as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12525as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12526as_cr_digits='0123456789'
12527as_cr_alnum=$as_cr_Letters$as_cr_digits
12528
12529# The user is always right.
12530if test "${PATH_SEPARATOR+set}" != set; then
12531 echo "#! /bin/sh" >conf$$.sh
12532 echo "exit 0" >>conf$$.sh
12533 chmod +x conf$$.sh
12534 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12535 PATH_SEPARATOR=';'
12536 else
12537 PATH_SEPARATOR=:
12538 fi
12539 rm -f conf$$.sh
12540fi
12541
12542
12543 as_lineno_1=$LINENO
12544 as_lineno_2=$LINENO
12545 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12546 test "x$as_lineno_1" != "x$as_lineno_2" &&
12547 test "x$as_lineno_3" = "x$as_lineno_2" || {
12548 # Find who we are. Look in the path if we contain no path at all
12549 # relative or not.
12550 case $0 in
12551 *[\\/]* ) as_myself=$0 ;;
12552 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12553for as_dir in $PATH
12554do
12555 IFS=$as_save_IFS
12556 test -z "$as_dir" && as_dir=.
12557 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12558done
12559
12560 ;;
12561 esac
12562 # We did not find ourselves, most probably we were run as `sh COMMAND'
12563 # in which case we are not to be found in the path.
12564 if test "x$as_myself" = x; then
12565 as_myself=$0
12566 fi
12567 if test ! -f "$as_myself"; then
12568 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12569echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12570 { (exit 1); exit 1; }; }
12571 fi
12572 case $CONFIG_SHELL in
12573 '')
12574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12575for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12576do
12577 IFS=$as_save_IFS
12578 test -z "$as_dir" && as_dir=.
12579 for as_base in sh bash ksh sh5; do
12580 case $as_dir in
12581 /*)
12582 if ("$as_dir/$as_base" -c '
12583 as_lineno_1=$LINENO
12584 as_lineno_2=$LINENO
12585 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12586 test "x$as_lineno_1" != "x$as_lineno_2" &&
12587 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12588 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12589 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12590 CONFIG_SHELL=$as_dir/$as_base
12591 export CONFIG_SHELL
12592 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12593 fi;;
12594 esac
12595 done
12596done
12597;;
12598 esac
12599
12600 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12601 # uniformly replaced by the line number. The first 'sed' inserts a
12602 # line-number line before each line; the second 'sed' does the real
12603 # work. The second script uses 'N' to pair each line-number line
12604 # with the numbered line, and appends trailing '-' during
12605 # substitution so that $LINENO is not a special case at line end.
12606 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12607 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12608 sed '=' <$as_myself |
12609 sed '
12610 N
12611 s,$,-,
12612 : loop
12613 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12614 t loop
12615 s,-$,,
12616 s,^['$as_cr_digits']*\n,,
12617 ' >$as_me.lineno &&
12618 chmod +x $as_me.lineno ||
12619 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12620echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12621 { (exit 1); exit 1; }; }
12622
12623 # Don't try to exec as it changes $[0], causing all sort of problems
12624 # (the dirname of $[0] is not the place where we might find the
12625 # original and so on. Autoconf is especially sensible to this).
12626 . ./$as_me.lineno
12627 # Exit status is that of the last command.
12628 exit
12629}
12630
12631
12632case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12633 *c*,-n*) ECHO_N= ECHO_C='
12634' ECHO_T=' ' ;;
12635 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12636 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12637esac
12638
12639if expr a : '\(a\)' >/dev/null 2>&1; then
12640 as_expr=expr
12641else
12642 as_expr=false
12643fi
12644
12645rm -f conf$$ conf$$.exe conf$$.file
12646echo >conf$$.file
12647if ln -s conf$$.file conf$$ 2>/dev/null; then
12648 # We could just check for DJGPP; but this test a) works b) is more generic
12649 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12650 if test -f conf$$.exe; then
12651 # Don't use ln at all; we don't have any links
12652 as_ln_s='cp -p'
12653 else
12654 as_ln_s='ln -s'
12655 fi
12656elif ln conf$$.file conf$$ 2>/dev/null; then
12657 as_ln_s=ln
12658else
12659 as_ln_s='cp -p'
12660fi
12661rm -f conf$$ conf$$.exe conf$$.file
12662
12663if mkdir -p . 2>/dev/null; then
12664 as_mkdir_p=:
12665else
12666 test -d ./-p && rmdir ./-p
12667 as_mkdir_p=false
12668fi
12669
12670as_executable_p="test -f"
12671
12672# Sed expression to map a string onto a valid CPP name.
12673as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12674
12675# Sed expression to map a string onto a valid variable name.
12676as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12677
12678
12679# IFS
12680# We need space, tab and new line, in precisely that order.
12681as_nl='
12682'
12683IFS=" $as_nl"
12684
12685# CDPATH.
12686$as_unset CDPATH
12687
12688exec 6>&1
12689
12690# Open the log real soon, to keep \$[0] and so on meaningful, and to
12691# report actual input values of CONFIG_FILES etc. instead of their
12692# values after options handling. Logging --version etc. is OK.
12693exec 5>>config.log
12694{
12695 echo
12696 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12697## Running $as_me. ##
12698_ASBOX
12699} >&5
12700cat >&5 <<_CSEOF
12701
12702This file was extended by $as_me, which was
12703generated by GNU Autoconf 2.59. Invocation command line was
12704
12705 CONFIG_FILES = $CONFIG_FILES
12706 CONFIG_HEADERS = $CONFIG_HEADERS
12707 CONFIG_LINKS = $CONFIG_LINKS
12708 CONFIG_COMMANDS = $CONFIG_COMMANDS
12709 $ $0 $@
12710
12711_CSEOF
12712echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12713echo >&5
12714_ACEOF
12715
12716# Files that config.status was made for.
12717if test -n "$ac_config_files"; then
12718 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12719fi
12720
12721if test -n "$ac_config_headers"; then
12722 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12723fi
12724
12725if test -n "$ac_config_links"; then
12726 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12727fi
12728
12729if test -n "$ac_config_commands"; then
12730 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12731fi
12732
12733cat >>$CONFIG_STATUS <<\_ACEOF
12734
12735ac_cs_usage="\
12736\`$as_me' instantiates files from templates according to the
12737current configuration.
12738
12739Usage: $0 [OPTIONS] [FILE]...
12740
12741 -h, --help print this help, then exit
12742 -V, --version print version number, then exit
12743 -q, --quiet do not print progress messages
12744 -d, --debug don't remove temporary files
12745 --recheck update $as_me by reconfiguring in the same conditions
12746 --file=FILE[:TEMPLATE]
12747 instantiate the configuration file FILE
12748
12749Configuration files:
12750$config_files
12751
12752Report bugs to <bug-autoconf@gnu.org>."
12753_ACEOF
12754
12755cat >>$CONFIG_STATUS <<_ACEOF
12756ac_cs_version="\\
12757config.status
12758configured by $0, generated by GNU Autoconf 2.59,
12759 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12760
12761Copyright (C) 2003 Free Software Foundation, Inc.
12762This config.status script is free software; the Free Software Foundation
12763gives unlimited permission to copy, distribute and modify it."
12764srcdir=$srcdir
12765INSTALL="$INSTALL"
12766_ACEOF
12767
12768cat >>$CONFIG_STATUS <<\_ACEOF
12769# If no file are specified by the user, then we need to provide default
12770# value. By we need to know if files were specified by the user.
12771ac_need_defaults=:
12772while test $# != 0
a0da8069 12773do
c6b750e1
DJ
12774 case $1 in
12775 --*=*)
12776 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12777 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12778 ac_shift=:
12779 ;;
12780 -*)
12781 ac_option=$1
12782 ac_optarg=$2
12783 ac_shift=shift
12784 ;;
12785 *) # This is not an option, so the user has probably given explicit
12786 # arguments.
12787 ac_option=$1
12788 ac_need_defaults=false;;
12789 esac
12790
12791 case $ac_option in
12792 # Handling of the options.
12793_ACEOF
12794cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12795 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12796 ac_cs_recheck=: ;;
12797 --version | --vers* | -V )
12798 echo "$ac_cs_version"; exit 0 ;;
12799 --he | --h)
12800 # Conflict between --help and --header
12801 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12802Try \`$0 --help' for more information." >&5
12803echo "$as_me: error: ambiguous option: $1
12804Try \`$0 --help' for more information." >&2;}
12805 { (exit 1); exit 1; }; };;
12806 --help | --hel | -h )
12807 echo "$ac_cs_usage"; exit 0 ;;
12808 --debug | --d* | -d )
12809 debug=: ;;
12810 --file | --fil | --fi | --f )
12811 $ac_shift
12812 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12813 ac_need_defaults=false;;
12814 --header | --heade | --head | --hea )
12815 $ac_shift
12816 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12817 ac_need_defaults=false;;
12818 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12819 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12820 ac_cs_silent=: ;;
12821
12822 # This is an error.
12823 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12824Try \`$0 --help' for more information." >&5
12825echo "$as_me: error: unrecognized option: $1
12826Try \`$0 --help' for more information." >&2;}
12827 { (exit 1); exit 1; }; } ;;
12828
12829 *) ac_config_targets="$ac_config_targets $1" ;;
12830
376a0e54 12831 esac
c6b750e1 12832 shift
376a0e54
CM
12833done
12834
c6b750e1 12835ac_configure_extra_args=
376a0e54 12836
c6b750e1
DJ
12837if $ac_cs_silent; then
12838 exec 6>/dev/null
12839 ac_configure_extra_args="$ac_configure_extra_args --silent"
12840fi
376a0e54 12841
c6b750e1
DJ
12842_ACEOF
12843cat >>$CONFIG_STATUS <<_ACEOF
12844if \$ac_cs_recheck; then
12845 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12846 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12847fi
12848
12849_ACEOF
12850
12851
12852
12853
12854
12855cat >>$CONFIG_STATUS <<\_ACEOF
12856for ac_config_target in $ac_config_targets
12857do
12858 case "$ac_config_target" in
12859 # Handling of arguments.
12860 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12861 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12862echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12863 { (exit 1); exit 1; }; };;
12864 esac
12865done
12866
12867# If the user did not use the arguments to specify the items to instantiate,
12868# then the envvar interface is used. Set only those that are not.
12869# We use the long form for the default assignment because of an extremely
12870# bizarre bug on SunOS 4.1.3.
12871if $ac_need_defaults; then
12872 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12873fi
12874
12875# Have a temporary directory for convenience. Make it in the build tree
12876# simply because there is no reason to put it here, and in addition,
12877# creating and moving files from /tmp can sometimes cause problems.
12878# Create a temporary directory, and hook for its removal unless debugging.
12879$debug ||
12880{
12881 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12882 trap '{ (exit 1); exit 1; }' 1 2 13 15
12883}
12884
12885# Create a (secure) tmp directory for tmp files.
12886
12887{
12888 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12889 test -n "$tmp" && test -d "$tmp"
12890} ||
12891{
12892 tmp=./confstat$$-$RANDOM
12893 (umask 077 && mkdir $tmp)
12894} ||
12895{
12896 echo "$me: cannot create a temporary directory in ." >&2
12897 { (exit 1); exit 1; }
12898}
12899
12900_ACEOF
12901
12902cat >>$CONFIG_STATUS <<_ACEOF
12903
12904#
12905# CONFIG_FILES section.
12906#
12907
12908# No need to generate the scripts if there are no CONFIG_FILES.
12909# This happens for instance when ./config.status config.h
12910if test -n "\$CONFIG_FILES"; then
12911 # Protect against being on the right side of a sed subst in config.status.
12912 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12913 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12914s,@SHELL@,$SHELL,;t t
12915s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12916s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12917s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12918s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12919s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12920s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12921s,@exec_prefix@,$exec_prefix,;t t
12922s,@prefix@,$prefix,;t t
12923s,@program_transform_name@,$program_transform_name,;t t
12924s,@bindir@,$bindir,;t t
12925s,@sbindir@,$sbindir,;t t
12926s,@libexecdir@,$libexecdir,;t t
12927s,@datadir@,$datadir,;t t
12928s,@sysconfdir@,$sysconfdir,;t t
12929s,@sharedstatedir@,$sharedstatedir,;t t
12930s,@localstatedir@,$localstatedir,;t t
12931s,@libdir@,$libdir,;t t
12932s,@includedir@,$includedir,;t t
12933s,@oldincludedir@,$oldincludedir,;t t
12934s,@infodir@,$infodir,;t t
12935s,@mandir@,$mandir,;t t
12936s,@build_alias@,$build_alias,;t t
12937s,@host_alias@,$host_alias,;t t
12938s,@target_alias@,$target_alias,;t t
12939s,@DEFS@,$DEFS,;t t
12940s,@ECHO_C@,$ECHO_C,;t t
12941s,@ECHO_N@,$ECHO_N,;t t
12942s,@ECHO_T@,$ECHO_T,;t t
12943s,@LIBS@,$LIBS,;t t
5b553f7e 12944s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
c6b750e1
DJ
12945s,@build@,$build,;t t
12946s,@build_cpu@,$build_cpu,;t t
12947s,@build_vendor@,$build_vendor,;t t
12948s,@build_os@,$build_os,;t t
12949s,@build_noncanonical@,$build_noncanonical,;t t
12950s,@host_noncanonical@,$host_noncanonical,;t t
12951s,@target_noncanonical@,$target_noncanonical,;t t
12952s,@host@,$host,;t t
12953s,@host_cpu@,$host_cpu,;t t
12954s,@host_vendor@,$host_vendor,;t t
12955s,@host_os@,$host_os,;t t
12956s,@target@,$target,;t t
12957s,@target_cpu@,$target_cpu,;t t
12958s,@target_vendor@,$target_vendor,;t t
12959s,@target_os@,$target_os,;t t
12960s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12961s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12962s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12963s,@LN@,$LN,;t t
12964s,@LN_S@,$LN_S,;t t
c6b750e1
DJ
12965s,@build_libsubdir@,$build_libsubdir,;t t
12966s,@build_subdir@,$build_subdir,;t t
12967s,@host_subdir@,$host_subdir,;t t
12968s,@target_subdir@,$target_subdir,;t t
12969s,@CC@,$CC,;t t
12970s,@CFLAGS@,$CFLAGS,;t t
12971s,@LDFLAGS@,$LDFLAGS,;t t
12972s,@CPPFLAGS@,$CPPFLAGS,;t t
12973s,@ac_ct_CC@,$ac_ct_CC,;t t
12974s,@EXEEXT@,$EXEEXT,;t t
12975s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12976s,@CXX@,$CXX,;t t
12977s,@CXXFLAGS@,$CXXFLAGS,;t t
12978s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12979s,@GNATBIND@,$GNATBIND,;t t
12980s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12981s,@GNATMAKE@,$GNATMAKE,;t t
12982s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12983s,@do_compare@,$do_compare,;t t
12984s,@gmplibs@,$gmplibs,;t t
12985s,@gmpinc@,$gmpinc,;t t
12986s,@stage1_languages@,$stage1_languages,;t t
12987s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 12988s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
7f6ef0c0
PB
12989s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
12990s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
bb52de30
DJ
12991s,@CPPFLAGS_FOR_TARGET@,$CPPFLAGS_FOR_TARGET,;t t
12992s,@LDFLAGS_FOR_TARGET@,$LDFLAGS_FOR_TARGET,;t t
c6b750e1 12993s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
3bbd2f8f 12994s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
c6b750e1
DJ
12995s,@tooldir@,$tooldir,;t t
12996s,@build_tooldir@,$build_tooldir,;t t
12997s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12998s,@GDB_TK@,$GDB_TK,;t t
12999s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
13000s,@build_configargs@,$build_configargs,;t t
13001s,@build_configdirs@,$build_configdirs,;t t
13002s,@host_configargs@,$host_configargs,;t t
13003s,@configdirs@,$configdirs,;t t
13004s,@target_configargs@,$target_configargs,;t t
1576798e
PB
13005s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
13006s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
c6b750e1 13007s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
1576798e 13008s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
bb52de30 13009s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
1576798e
PB
13010s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13011s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13012s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13013s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13014s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13015s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13016s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13017s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13018s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13019s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13020s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
c6b750e1
DJ
13021s,@config_shell@,$config_shell,;t t
13022s,@YACC@,$YACC,;t t
13023s,@BISON@,$BISON,;t t
13024s,@M4@,$M4,;t t
13025s,@LEX@,$LEX,;t t
13026s,@FLEX@,$FLEX,;t t
13027s,@MAKEINFO@,$MAKEINFO,;t t
13028s,@EXPECT@,$EXPECT,;t t
13029s,@RUNTEST@,$RUNTEST,;t t
13030s,@AR@,$AR,;t t
13031s,@AS@,$AS,;t t
13032s,@DLLTOOL@,$DLLTOOL,;t t
13033s,@LD@,$LD,;t t
13034s,@LIPO@,$LIPO,;t t
13035s,@NM@,$NM,;t t
13036s,@RANLIB@,$RANLIB,;t t
13037s,@STRIP@,$STRIP,;t t
13038s,@WINDRES@,$WINDRES,;t t
0c24b341 13039s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
13040s,@OBJCOPY@,$OBJCOPY,;t t
13041s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1
DJ
13042s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13043s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13044s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13045s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13046s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13047s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13048s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13049s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13050s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13051s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13052s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13053s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13054s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13055s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13056s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 13057s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
13058s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13059s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13060s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13061s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13062s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13063s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13064s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13065s,@MAINT@,$MAINT,;t t
13066s,@stage1_cflags@,$stage1_cflags,;t t
13067s,@stage1_checking@,$stage1_checking,;t t
13068s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13069s,@datarootdir@,$datarootdir,;t t
13070s,@docdir@,$docdir,;t t
a3ca38d2 13071s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
13072s,@htmldir@,$htmldir,;t t
13073s,@LIBOBJS@,$LIBOBJS,;t t
13074s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 13075/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 13076s,@serialization_dependencies@,,;t t
a0da8069 13077/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 13078s,@host_makefile_frag@,,;t t
a0da8069 13079/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 13080s,@target_makefile_frag@,,;t t
a0da8069 13081/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 13082s,@alphaieee_frag@,,;t t
a0da8069 13083/@ospace_frag@/r $ospace_frag
c6b750e1 13084s,@ospace_frag@,,;t t
a0da8069 13085CEOF
252b5132 13086
c6b750e1
DJ
13087_ACEOF
13088
13089 cat >>$CONFIG_STATUS <<\_ACEOF
13090 # Split the substitutions into bite-sized pieces for seds with
13091 # small command number limits, like on Digital OSF/1 and HP-UX.
13092 ac_max_sed_lines=48
13093 ac_sed_frag=1 # Number of current file.
13094 ac_beg=1 # First line for current file.
13095 ac_end=$ac_max_sed_lines # Line after last line for current file.
13096 ac_more_lines=:
13097 ac_sed_cmds=
13098 while $ac_more_lines; do
13099 if test $ac_beg -gt 1; then
13100 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13101 else
13102 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13103 fi
13104 if test ! -s $tmp/subs.frag; then
13105 ac_more_lines=false
a0da8069 13106 else
c6b750e1
DJ
13107 # The purpose of the label and of the branching condition is to
13108 # speed up the sed processing (if there are no `@' at all, there
13109 # is no need to browse any of the substitutions).
13110 # These are the two extra sed commands mentioned above.
13111 (echo ':t
13112 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13113 if test -z "$ac_sed_cmds"; then
13114 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13115 else
13116 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13117 fi
13118 ac_sed_frag=`expr $ac_sed_frag + 1`
13119 ac_beg=$ac_end
13120 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 13121 fi
c6b750e1
DJ
13122 done
13123 if test -z "$ac_sed_cmds"; then
13124 ac_sed_cmds=cat
852e5f18 13125 fi
c6b750e1 13126fi # test -n "$CONFIG_FILES"
cac3d6c4 13127
c6b750e1
DJ
13128_ACEOF
13129cat >>$CONFIG_STATUS <<\_ACEOF
13130for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 13131 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
13132 case $ac_file in
13133 - | *:- | *:-:* ) # input from stdin
13134 cat >$tmp/stdin
13135 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13136 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13137 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13138 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13139 * ) ac_file_in=$ac_file.in ;;
a0da8069 13140 esac
252b5132 13141
c6b750e1
DJ
13142 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13143 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13144$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13145 X"$ac_file" : 'X\(//\)[^/]' \| \
13146 X"$ac_file" : 'X\(//\)$' \| \
13147 X"$ac_file" : 'X\(/\)' \| \
13148 . : '\(.\)' 2>/dev/null ||
13149echo X"$ac_file" |
13150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13151 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13152 /^X\(\/\/\)$/{ s//\1/; q; }
13153 /^X\(\/\).*/{ s//\1/; q; }
13154 s/.*/./; q'`
13155 { if $as_mkdir_p; then
13156 mkdir -p "$ac_dir"
cac3d6c4 13157 else
c6b750e1
DJ
13158 as_dir="$ac_dir"
13159 as_dirs=
13160 while test ! -d "$as_dir"; do
13161 as_dirs="$as_dir $as_dirs"
13162 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13163$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13164 X"$as_dir" : 'X\(//\)[^/]' \| \
13165 X"$as_dir" : 'X\(//\)$' \| \
13166 X"$as_dir" : 'X\(/\)' \| \
13167 . : '\(.\)' 2>/dev/null ||
13168echo X"$as_dir" |
13169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13170 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13171 /^X\(\/\/\)$/{ s//\1/; q; }
13172 /^X\(\/\).*/{ s//\1/; q; }
13173 s/.*/./; q'`
13174 done
13175 test ! -n "$as_dirs" || mkdir $as_dirs
13176 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13177echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13178 { (exit 1); exit 1; }; }; }
13179
13180 ac_builddir=.
252b5132 13181
c6b750e1
DJ
13182if test "$ac_dir" != .; then
13183 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13184 # A "../" for each directory in $ac_dir_suffix.
13185 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13186else
13187 ac_dir_suffix= ac_top_builddir=
13188fi
13189
13190case $srcdir in
13191 .) # No --srcdir option. We are building in place.
13192 ac_srcdir=.
13193 if test -z "$ac_top_builddir"; then
13194 ac_top_srcdir=.
13195 else
13196 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13197 fi ;;
13198 [\\/]* | ?:[\\/]* ) # Absolute path.
13199 ac_srcdir=$srcdir$ac_dir_suffix;
13200 ac_top_srcdir=$srcdir ;;
a0da8069 13201 *) # Relative path.
c6b750e1
DJ
13202 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13203 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13204esac
252b5132 13205
c6b750e1
DJ
13206# Do not use `cd foo && pwd` to compute absolute paths, because
13207# the directories may not exist.
13208case `pwd` in
13209.) ac_abs_builddir="$ac_dir";;
13210*)
13211 case "$ac_dir" in
13212 .) ac_abs_builddir=`pwd`;;
13213 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13214 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13215 esac;;
13216esac
13217case $ac_abs_builddir in
13218.) ac_abs_top_builddir=${ac_top_builddir}.;;
13219*)
13220 case ${ac_top_builddir}. in
13221 .) ac_abs_top_builddir=$ac_abs_builddir;;
13222 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13223 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13224 esac;;
13225esac
13226case $ac_abs_builddir in
13227.) ac_abs_srcdir=$ac_srcdir;;
13228*)
13229 case $ac_srcdir in
13230 .) ac_abs_srcdir=$ac_abs_builddir;;
13231 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13232 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13233 esac;;
13234esac
13235case $ac_abs_builddir in
13236.) ac_abs_top_srcdir=$ac_top_srcdir;;
13237*)
13238 case $ac_top_srcdir in
13239 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13240 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13241 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13242 esac;;
13243esac
252b5132 13244
c6b750e1
DJ
13245
13246 case $INSTALL in
13247 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13248 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13249 esac
252b5132 13250
c6b750e1
DJ
13251 if test x"$ac_file" != x-; then
13252 { echo "$as_me:$LINENO: creating $ac_file" >&5
13253echo "$as_me: creating $ac_file" >&6;}
13254 rm -f "$ac_file"
13255 fi
13256 # Let's still pretend it is `configure' which instantiates (i.e., don't
13257 # use $as_me), people would be surprised to read:
13258 # /* config.h. Generated by config.status. */
13259 if test x"$ac_file" = x-; then
13260 configure_input=
13261 else
13262 configure_input="$ac_file. "
13263 fi
13264 configure_input=$configure_input"Generated from `echo $ac_file_in |
13265 sed 's,.*/,,'` by configure."
13266
13267 # First look for the input files in the build tree, otherwise in the
13268 # src tree.
13269 ac_file_inputs=`IFS=:
13270 for f in $ac_file_in; do
13271 case $f in
13272 -) echo $tmp/stdin ;;
13273 [\\/$]*)
13274 # Absolute (can't be DOS-style, as IFS=:)
13275 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13276echo "$as_me: error: cannot find input file: $f" >&2;}
13277 { (exit 1); exit 1; }; }
13278 echo "$f";;
13279 *) # Relative
13280 if test -f "$f"; then
13281 # Build tree
13282 echo "$f"
13283 elif test -f "$srcdir/$f"; then
13284 # Source tree
13285 echo "$srcdir/$f"
13286 else
13287 # /dev/null tree
13288 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13289echo "$as_me: error: cannot find input file: $f" >&2;}
13290 { (exit 1); exit 1; }; }
13291 fi;;
13292 esac
13293 done` || { (exit 1); exit 1; }
13294_ACEOF
13295cat >>$CONFIG_STATUS <<_ACEOF
13296 sed "$ac_vpsub
13297$extrasub
13298_ACEOF
13299cat >>$CONFIG_STATUS <<\_ACEOF
13300:t
13301/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13302s,@configure_input@,$configure_input,;t t
13303s,@srcdir@,$ac_srcdir,;t t
13304s,@abs_srcdir@,$ac_abs_srcdir,;t t
13305s,@top_srcdir@,$ac_top_srcdir,;t t
13306s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13307s,@builddir@,$ac_builddir,;t t
13308s,@abs_builddir@,$ac_abs_builddir,;t t
13309s,@top_builddir@,$ac_top_builddir,;t t
13310s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13311s,@INSTALL@,$ac_INSTALL,;t t
13312" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13313 rm -f $tmp/stdin
13314 if test x"$ac_file" != x-; then
13315 mv $tmp/out $ac_file
13316 else
13317 cat $tmp/out
13318 rm -f $tmp/out
13319 fi
c148b4cb 13320
c6b750e1
DJ
13321done
13322_ACEOF
c148b4cb 13323
c6b750e1 13324cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13325
c6b750e1
DJ
13326{ (exit 0); exit 0; }
13327_ACEOF
c148b4cb 13328chmod +x $CONFIG_STATUS
c6b750e1
DJ
13329ac_clean_files=$ac_clean_files_save
13330
13331
13332# configure is writing to config.log, and then calls config.status.
13333# config.status does its own redirection, appending to config.log.
13334# Unfortunately, on DOS this fails, as config.log is still kept open
13335# by configure, so config.status won't be able to write to it; its
13336# output is simply discarded. So we exec the FD to /dev/null,
13337# effectively closing config.log, so it can be properly (re)opened and
13338# appended to by config.status. When coming back to configure, we
13339# need to make the FD available again.
13340if test "$no_create" != yes; then
13341 ac_cs_success=:
13342 ac_config_status_args=
13343 test "$silent" = yes &&
13344 ac_config_status_args="$ac_config_status_args --quiet"
13345 exec 5>/dev/null
13346 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13347 exec 5>>config.log
13348 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13349 # would make configure fail if this is the last instruction.
13350 $ac_cs_success || { (exit 1); exit 1; }
13351fi
c148b4cb 13352
This page took 1.35487 seconds and 4 git commands to generate.