2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
[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"
1576798e 275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
c6b750e1 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
a0da8069
NN
277
278# Initialize some variables set by options.
c6b750e1
DJ
279ac_init_help=
280ac_init_version=false
a0da8069
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
c6b750e1 283cache_file=/dev/null
a0da8069 284exec_prefix=NONE
a0da8069 285no_create=
a0da8069
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
a0da8069
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
c6b750e1
DJ
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
a0da8069
NN
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
252b5132 315
a0da8069
NN
316ac_prev=
317for ac_option
318do
a0da8069
NN
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
324 fi
252b5132 325
c6b750e1 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
a0da8069
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
c6b750e1 330 case $ac_option in
a0da8069
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 335 bindir=$ac_optarg ;;
a0da8069
NN
336
337 -build | --build | --buil | --bui | --bu)
c6b750e1 338 ac_prev=build_alias ;;
a0da8069 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 340 build_alias=$ac_optarg ;;
a0da8069
NN
341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
a0da8069
NN
351
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
c6b750e1 356 datadir=$ac_optarg ;;
a0da8069
NN
357
358 -disable-* | --disable-*)
c6b750e1 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 360 # Reject names that are not valid shell variable names.
c6b750e1
DJ
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
a0da8069
NN
366
367 -enable-* | --enable-*)
c6b750e1 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 369 # Reject names that are not valid shell variable names.
c6b750e1
DJ
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
376 *) ac_optarg=yes ;;
377 esac
c6b750e1 378 eval "enable_$ac_feature='$ac_optarg'" ;;
a0da8069
NN
379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
c6b750e1 387 exec_prefix=$ac_optarg ;;
a0da8069
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
c6b750e1
DJ
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
a0da8069
NN
399
400 -host | --host | --hos | --ho)
c6b750e1 401 ac_prev=host_alias ;;
a0da8069 402 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 403 host_alias=$ac_optarg ;;
a0da8069
NN
404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 410 includedir=$ac_optarg ;;
a0da8069
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 415 infodir=$ac_optarg ;;
a0da8069
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 420 libdir=$ac_optarg ;;
a0da8069
NN
421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
c6b750e1 427 libexecdir=$ac_optarg ;;
a0da8069
NN
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
c6b750e1 436 localstatedir=$ac_optarg ;;
a0da8069
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 441 mandir=$ac_optarg ;;
a0da8069
NN
442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 448 | --no-cr | --no-c | -n)
a0da8069
NN
449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 462 oldincludedir=$ac_optarg ;;
a0da8069
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 467 prefix=$ac_optarg ;;
a0da8069
NN
468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 474 program_prefix=$ac_optarg ;;
a0da8069
NN
475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 481 program_suffix=$ac_optarg ;;
a0da8069
NN
482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 498 program_transform_name=$ac_optarg ;;
a0da8069
NN
499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
c6b750e1 508 sbindir=$ac_optarg ;;
a0da8069
NN
509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
c6b750e1 519 sharedstatedir=$ac_optarg ;;
a0da8069
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
c6b750e1 524 site=$ac_optarg ;;
a0da8069
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 529 srcdir=$ac_optarg ;;
a0da8069
NN
530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 536 sysconfdir=$ac_optarg ;;
a0da8069
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 539 ac_prev=target_alias ;;
a0da8069 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 541 target_alias=$ac_optarg ;;
a0da8069
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
c6b750e1
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
a0da8069
NN
548
549 -with-* | --with-*)
c6b750e1 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 551 # Reject names that are not valid shell variable names.
c6b750e1
DJ
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
a0da8069 555 ac_package=`echo $ac_package| sed 's/-/_/g'`
c6b750e1
DJ
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
558 *) ac_optarg=yes ;;
559 esac
c6b750e1 560 eval "with_$ac_package='$ac_optarg'" ;;
a0da8069
NN
561
562 -without-* | --without-*)
c6b750e1 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 564 # Reject names that are not valid shell variable names.
c6b750e1
DJ
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
a0da8069
NN
570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 580 x_includes=$ac_optarg ;;
a0da8069
NN
581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 587 x_libraries=$ac_optarg ;;
a0da8069 588
c6b750e1
DJ
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
a0da8069
NN
592 ;;
593
c6b750e1
DJ
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
603
a0da8069 604 *)
c6b750e1
DJ
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
c6b750e1
DJ
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
a0da8069 619fi
a0da8069 620
c6b750e1
DJ
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
623do
624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630done
a0da8069 631
c6b750e1
DJ
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
a0da8069 635do
c6b750e1
DJ
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
a0da8069
NN
641 esac
642done
643
c6b750e1
DJ
644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
376a0e54 650
c6b750e1
DJ
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
a0da8069 666
a0da8069
NN
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
c6b750e1
DJ
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
a0da8069
NN
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
c6b750e1
DJ
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
a0da8069 695 else
c6b750e1
DJ
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
698 fi
699fi
700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716ac_env_CC_set=${CC+set}
717ac_env_CC_value=$CC
718ac_cv_env_CC_set=${CC+set}
719ac_cv_env_CC_value=$CC
720ac_env_CFLAGS_set=${CFLAGS+set}
721ac_env_CFLAGS_value=$CFLAGS
722ac_cv_env_CFLAGS_set=${CFLAGS+set}
723ac_cv_env_CFLAGS_value=$CFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
18f6b6ee
PB
732ac_env_CXX_set=${CXX+set}
733ac_env_CXX_value=$CXX
734ac_cv_env_CXX_set=${CXX+set}
735ac_cv_env_CXX_value=$CXX
736ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737ac_env_CXXFLAGS_value=$CXXFLAGS
738ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_cv_env_CXXFLAGS_value=$CXXFLAGS
9a819804
AO
740ac_env_AR_set=${AR+set}
741ac_env_AR_value=$AR
742ac_cv_env_AR_set=${AR+set}
743ac_cv_env_AR_value=$AR
744ac_env_AS_set=${AS+set}
745ac_env_AS_value=$AS
746ac_cv_env_AS_set=${AS+set}
747ac_cv_env_AS_value=$AS
748ac_env_DLLTOOL_set=${DLLTOOL+set}
749ac_env_DLLTOOL_value=$DLLTOOL
750ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
751ac_cv_env_DLLTOOL_value=$DLLTOOL
752ac_env_LD_set=${LD+set}
753ac_env_LD_value=$LD
754ac_cv_env_LD_set=${LD+set}
755ac_cv_env_LD_value=$LD
756ac_env_LIPO_set=${LIPO+set}
757ac_env_LIPO_value=$LIPO
758ac_cv_env_LIPO_set=${LIPO+set}
759ac_cv_env_LIPO_value=$LIPO
760ac_env_NM_set=${NM+set}
761ac_env_NM_value=$NM
762ac_cv_env_NM_set=${NM+set}
763ac_cv_env_NM_value=$NM
764ac_env_RANLIB_set=${RANLIB+set}
765ac_env_RANLIB_value=$RANLIB
766ac_cv_env_RANLIB_set=${RANLIB+set}
767ac_cv_env_RANLIB_value=$RANLIB
768ac_env_STRIP_set=${STRIP+set}
769ac_env_STRIP_value=$STRIP
770ac_cv_env_STRIP_set=${STRIP+set}
771ac_cv_env_STRIP_value=$STRIP
772ac_env_WINDRES_set=${WINDRES+set}
773ac_env_WINDRES_value=$WINDRES
774ac_cv_env_WINDRES_set=${WINDRES+set}
775ac_cv_env_WINDRES_value=$WINDRES
0c24b341
NC
776ac_env_WINDMC_set=${WINDMC+set}
777ac_env_WINDMC_value=$WINDMC
778ac_cv_env_WINDMC_set=${WINDMC+set}
779ac_cv_env_WINDMC_value=$WINDMC
9a819804
AO
780ac_env_OBJCOPY_set=${OBJCOPY+set}
781ac_env_OBJCOPY_value=$OBJCOPY
782ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
783ac_cv_env_OBJCOPY_value=$OBJCOPY
784ac_env_OBJDUMP_set=${OBJDUMP+set}
785ac_env_OBJDUMP_value=$OBJDUMP
786ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
787ac_cv_env_OBJDUMP_value=$OBJDUMP
788ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
789ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
790ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
791ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
792ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
793ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
794ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
795ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
796ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
797ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
798ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
799ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
800ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
801ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
802ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
803ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
804ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
805ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
806ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
807ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
808ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
809ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
810ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
811ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
812ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
813ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
814ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
815ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
816ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
817ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
818ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
819ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
820ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
821ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
822ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
823ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
824ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
825ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
826ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
827ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
828ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
829ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
830ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
831ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
832ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
833ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
834ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
835ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
836ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
837ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
838ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
839ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
840ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
841ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
842ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
843ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
844ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
845ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
846ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
847ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
0c24b341
NC
848ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
849ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
850ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
851ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
c6b750e1
DJ
852
853#
854# Report the --help message.
855#
856if test "$ac_init_help" = "long"; then
857 # Omit some internal or obsolete options to make the list less imposing.
858 # This message is too long to be a string in the A/UX 3.1 sh.
859 cat <<_ACEOF
860\`configure' configures this package to adapt to many kinds of systems.
861
862Usage: $0 [OPTION]... [VAR=VALUE]...
863
864To assign environment variables (e.g., CC, CFLAGS...), specify them as
865VAR=VALUE. See below for descriptions of some of the useful variables.
866
867Defaults for the options are specified in brackets.
868
869Configuration:
870 -h, --help display this help and exit
871 --help=short display options specific to this package
872 --help=recursive display the short help of all the included packages
873 -V, --version display version information and exit
874 -q, --quiet, --silent do not print \`checking...' messages
875 --cache-file=FILE cache test results in FILE [disabled]
876 -C, --config-cache alias for \`--cache-file=config.cache'
877 -n, --no-create do not create output files
878 --srcdir=DIR find the sources in DIR [configure dir or \`..']
879
880_ACEOF
881
882 cat <<_ACEOF
883Installation directories:
884 --prefix=PREFIX install architecture-independent files in PREFIX
885 [$ac_default_prefix]
886 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
887 [PREFIX]
888
889By default, \`make install' will install all the files in
890\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
891an installation prefix other than \`$ac_default_prefix' using \`--prefix',
892for instance \`--prefix=\$HOME'.
893
894For better control, use the options below.
895
896Fine tuning of the installation directories:
897 --bindir=DIR user executables [EPREFIX/bin]
898 --sbindir=DIR system admin executables [EPREFIX/sbin]
899 --libexecdir=DIR program executables [EPREFIX/libexec]
900 --datadir=DIR read-only architecture-independent data [PREFIX/share]
901 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
902 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
903 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
904 --libdir=DIR object code libraries [EPREFIX/lib]
905 --includedir=DIR C header files [PREFIX/include]
906 --oldincludedir=DIR C header files for non-gcc [/usr/include]
907 --infodir=DIR info documentation [PREFIX/info]
908 --mandir=DIR man documentation [PREFIX/man]
909_ACEOF
910
911 cat <<\_ACEOF
912
913Program names:
914 --program-prefix=PREFIX prepend PREFIX to installed program names
915 --program-suffix=SUFFIX append SUFFIX to installed program names
916 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
917
918System types:
919 --build=BUILD configure for building on BUILD [guessed]
920 --host=HOST cross-compile to build programs to run on HOST [BUILD]
921 --target=TARGET configure for building compilers for TARGET [HOST]
922_ACEOF
a0da8069 923fi
a0da8069 924
c6b750e1
DJ
925if test -n "$ac_init_help"; then
926
927 cat <<\_ACEOF
928
929Optional Features:
930 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
931 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
521ec477
DD
932 --enable-libada build libada directory
933 --enable-libssp build libssp directory
934 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 935 stage1. Mostly useful for compiler development.
521ec477
DD
936 --enable-objc-gc enable use of Boehm's garbage collector with the
937 GNU Objective-C runtime
938 --enable-bootstrap enable bootstrapping [yes if native build]
939 --enable-serial-[{host,target,build}-]configure
940 force sequential configuration of
c6b750e1 941 sub-packages for the host, target or build
521ec477 942 machine, or all sub-packages
c6b750e1
DJ
943 --enable-maintainer-mode enable make rules and dependencies not useful
944 (and sometimes confusing) to the casual installer
521ec477
DD
945 --enable-stage1-checking[=all] choose additional checking for stage1
946 of the compiler
c6b750e1
DJ
947 --enable-werror enable -Werror in bootstrap stage2 and later
948
949Optional Packages:
950 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
951 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
952 --with-build-libsubdir=DIR Directory where to find libraries for build system
521ec477
DD
953 --with-mpfr-dir=PATH this option has been REMOVED
954 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
955 Equivalent to --with-mpfr-include=PATH/include
956 plus --with-mpfr-lib=PATH/lib
957 --with-mpfr-include=PATH
521ec477
DD
958 specify directory for installed MPFR include files
959 --with-mpfr-lib=PATH specify directory for the installed MPFR library
960 --with-gmp-dir=PATH this option has been REMOVED
961 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
962 Equivalent to --with-gmp-include=PATH/include
963 plus --with-gmp-lib=PATH/lib
521ec477
DD
964 --with-gmp-include=PATH specify directory for installed GMP include files
965 --with-gmp-lib=PATH specify directory for the installed GMP library
966 --with-build-sysroot=SYSROOT
c6b750e1 967 use sysroot as the system root during the build
8a6ee3ab
JM
968 --with-debug-prefix-map='A=B C=D ...'
969 map A to B, C to D ... in debug information
521ec477 970 --with-build-time-tools=PATH
c6b750e1 971 use given path to find target tools during the build
521ec477
DD
972 --with-datarootdir use datarootdir as the data root directory.
973 --with-docdir install documentation in this directory.
974 --with-pdfdir install pdf in this directory.
975 --with-htmldir install html in this directory.
c6b750e1
DJ
976
977Some influential environment variables:
978 CC C compiler command
979 CFLAGS C compiler flags
980 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
981 nonstandard directory <lib dir>
982 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
983 headers in a nonstandard directory <include dir>
18f6b6ee
PB
984 CXX C++ compiler command
985 CXXFLAGS C++ compiler flags
9a819804
AO
986 AR AR for the host
987 AS AS for the host
988 DLLTOOL DLLTOOL for the host
989 LD LD for the host
990 LIPO LIPO for the host
991 NM NM for the host
992 RANLIB RANLIB for the host
993 STRIP STRIP for the host
994 WINDRES WINDRES for the host
0c24b341 995 WINDMC WINDMC for the host
9a819804
AO
996 OBJCOPY OBJCOPY for the host
997 OBJDUMP OBJDUMP for the host
998 CC_FOR_TARGET
999 CC for the target
1000 CXX_FOR_TARGET
1001 CXX for the target
1002 GCC_FOR_TARGET
1003 GCC for the target
1004 GCJ_FOR_TARGET
1005 GCJ for the target
1006 GFORTRAN_FOR_TARGET
1007 GFORTRAN for the target
1008 AR_FOR_TARGET
1009 AR for the target
1010 AS_FOR_TARGET
1011 AS for the target
1012 DLLTOOL_FOR_TARGET
1013 DLLTOOL for the target
1014 LD_FOR_TARGET
1015 LD for the target
1016 LIPO_FOR_TARGET
1017 LIPO for the target
1018 NM_FOR_TARGET
1019 NM for the target
1020 OBJDUMP_FOR_TARGET
1021 OBJDUMP for the target
1022 RANLIB_FOR_TARGET
1023 RANLIB for the target
1024 STRIP_FOR_TARGET
1025 STRIP for the target
1026 WINDRES_FOR_TARGET
1027 WINDRES for the target
0c24b341
NC
1028 WINDMC_FOR_TARGET
1029 WINDMC for the target
c6b750e1
DJ
1030
1031Use these variables to override the choices made by `configure' or to help
1032it to find libraries and programs with nonstandard names/locations.
1033
1034_ACEOF
1035fi
1036
1037if test "$ac_init_help" = "recursive"; then
1038 # If there are subdirs, report their specific --help.
1039 ac_popdir=`pwd`
1040 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1041 test -d $ac_dir || continue
1042 ac_builddir=.
1043
1044if test "$ac_dir" != .; then
1045 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1046 # A "../" for each directory in $ac_dir_suffix.
1047 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1048else
1049 ac_dir_suffix= ac_top_builddir=
1050fi
1051
1052case $srcdir in
1053 .) # No --srcdir option. We are building in place.
1054 ac_srcdir=.
1055 if test -z "$ac_top_builddir"; then
1056 ac_top_srcdir=.
1057 else
1058 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1059 fi ;;
1060 [\\/]* | ?:[\\/]* ) # Absolute path.
1061 ac_srcdir=$srcdir$ac_dir_suffix;
1062 ac_top_srcdir=$srcdir ;;
1063 *) # Relative path.
1064 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1065 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1066esac
1067
1068# Do not use `cd foo && pwd` to compute absolute paths, because
1069# the directories may not exist.
1070case `pwd` in
1071.) ac_abs_builddir="$ac_dir";;
1072*)
1073 case "$ac_dir" in
1074 .) ac_abs_builddir=`pwd`;;
1075 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1076 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1077 esac;;
1078esac
1079case $ac_abs_builddir in
1080.) ac_abs_top_builddir=${ac_top_builddir}.;;
1081*)
1082 case ${ac_top_builddir}. in
1083 .) ac_abs_top_builddir=$ac_abs_builddir;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1085 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1086 esac;;
1087esac
1088case $ac_abs_builddir in
1089.) ac_abs_srcdir=$ac_srcdir;;
1090*)
1091 case $ac_srcdir in
1092 .) ac_abs_srcdir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1094 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1095 esac;;
1096esac
1097case $ac_abs_builddir in
1098.) ac_abs_top_srcdir=$ac_top_srcdir;;
1099*)
1100 case $ac_top_srcdir in
1101 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1103 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1104 esac;;
1105esac
1106
1107 cd $ac_dir
1108 # Check for guested configure; otherwise get Cygnus style configure.
1109 if test -f $ac_srcdir/configure.gnu; then
1110 echo
1111 $SHELL $ac_srcdir/configure.gnu --help=recursive
1112 elif test -f $ac_srcdir/configure; then
1113 echo
1114 $SHELL $ac_srcdir/configure --help=recursive
1115 elif test -f $ac_srcdir/configure.ac ||
1116 test -f $ac_srcdir/configure.in; then
1117 echo
1118 $ac_configure --help
1119 else
1120 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1121 fi
1122 cd $ac_popdir
1123 done
1124fi
1125
1126test -n "$ac_init_help" && exit 0
1127if $ac_init_version; then
1128 cat <<\_ACEOF
1129
1130Copyright (C) 2003 Free Software Foundation, Inc.
1131This configure script is free software; the Free Software Foundation
1132gives unlimited permission to copy, distribute and modify it.
1133_ACEOF
1134 exit 0
1135fi
1136exec 5>config.log
1137cat >&5 <<_ACEOF
1138This file contains any messages produced by compilers while
1139running configure, to aid debugging if configure makes a mistake.
1140
1141It was created by $as_me, which was
1142generated by GNU Autoconf 2.59. Invocation command line was
1143
1144 $ $0 $@
1145
1146_ACEOF
1147{
1148cat <<_ASUNAME
1149## --------- ##
1150## Platform. ##
1151## --------- ##
1152
1153hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1154uname -m = `(uname -m) 2>/dev/null || echo unknown`
1155uname -r = `(uname -r) 2>/dev/null || echo unknown`
1156uname -s = `(uname -s) 2>/dev/null || echo unknown`
1157uname -v = `(uname -v) 2>/dev/null || echo unknown`
1158
1159/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1160/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1161
1162/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1163/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1164/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1165hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1166/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1167/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1168/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1169
1170_ASUNAME
1171
1172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1173for as_dir in $PATH
1174do
1175 IFS=$as_save_IFS
1176 test -z "$as_dir" && as_dir=.
1177 echo "PATH: $as_dir"
1178done
1179
1180} >&5
1181
1182cat >&5 <<_ACEOF
1183
1184
1185## ----------- ##
1186## Core tests. ##
1187## ----------- ##
1188
1189_ACEOF
1190
1191
1192# Keep a trace of the command line.
1193# Strip out --no-create and --no-recursion so they do not pile up.
1194# Strip out --silent because we don't want to record it for future runs.
1195# Also quote any args containing shell meta-characters.
1196# Make two passes to allow for proper duplicate-argument suppression.
1197ac_configure_args=
1198ac_configure_args0=
1199ac_configure_args1=
1200ac_sep=
1201ac_must_keep_next=false
1202for ac_pass in 1 2
1203do
1204 for ac_arg
1205 do
1206 case $ac_arg in
1207 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 continue ;;
1211 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1212 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1213 esac
1214 case $ac_pass in
1215 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1216 2)
1217 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1218 if test $ac_must_keep_next = true; then
1219 ac_must_keep_next=false # Got value, back to normal.
1220 else
1221 case $ac_arg in
1222 *=* | --config-cache | -C | -disable-* | --disable-* \
1223 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1224 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1225 | -with-* | --with-* | -without-* | --without-* | --x)
1226 case "$ac_configure_args0 " in
1227 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1228 esac
1229 ;;
1230 -* ) ac_must_keep_next=true ;;
1231 esac
1232 fi
1233 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1234 # Get rid of the leading space.
1235 ac_sep=" "
1236 ;;
1237 esac
1238 done
1239done
1240$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1241$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1242
1243# When interrupted or exit'd, cleanup temporary files, and complete
1244# config.log. We remove comments because anyway the quotes in there
1245# would cause problems or look ugly.
1246# WARNING: Be sure not to use single quotes in there, as some shells,
1247# such as our DU 5.0 friend, will then `close' the trap.
1248trap 'exit_status=$?
1249 # Save into config.log some information that might help in debugging.
1250 {
1251 echo
1252
1253 cat <<\_ASBOX
1254## ---------------- ##
1255## Cache variables. ##
1256## ---------------- ##
1257_ASBOX
1258 echo
1259 # The following way of writing the cache mishandles newlines in values,
1260{
1261 (set) 2>&1 |
1262 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1263 *ac_space=\ *)
1264 sed -n \
1265 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1267 ;;
1268 *)
1269 sed -n \
1270 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1271 ;;
1272 esac;
1273}
1274 echo
1275
1276 cat <<\_ASBOX
1277## ----------------- ##
1278## Output variables. ##
1279## ----------------- ##
1280_ASBOX
1281 echo
1282 for ac_var in $ac_subst_vars
1283 do
1284 eval ac_val=$`echo $ac_var`
1285 echo "$ac_var='"'"'$ac_val'"'"'"
1286 done | sort
1287 echo
1288
1289 if test -n "$ac_subst_files"; then
1290 cat <<\_ASBOX
1291## ------------- ##
1292## Output files. ##
1293## ------------- ##
1294_ASBOX
1295 echo
1296 for ac_var in $ac_subst_files
1297 do
1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
1300 done | sort
1301 echo
1302 fi
1303
1304 if test -s confdefs.h; then
1305 cat <<\_ASBOX
1306## ----------- ##
1307## confdefs.h. ##
1308## ----------- ##
1309_ASBOX
1310 echo
1311 sed "/^$/d" confdefs.h | sort
1312 echo
1313 fi
1314 test "$ac_signal" != 0 &&
1315 echo "$as_me: caught signal $ac_signal"
1316 echo "$as_me: exit $exit_status"
1317 } >&5
1318 rm -f core *.core &&
1319 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1320 exit $exit_status
1321 ' 0
1322for ac_signal in 1 2 13 15; do
1323 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1324done
1325ac_signal=0
1326
1327# confdefs.h avoids OS command line length limits that DEFS can exceed.
1328rm -rf conftest* confdefs.h
1329# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1330echo >confdefs.h
1331
1332# Predefined preprocessor variables.
1333
1334cat >>confdefs.h <<_ACEOF
1335#define PACKAGE_NAME "$PACKAGE_NAME"
1336_ACEOF
1337
1338
1339cat >>confdefs.h <<_ACEOF
1340#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1341_ACEOF
1342
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_VERSION "$PACKAGE_VERSION"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_STRING "$PACKAGE_STRING"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1356_ACEOF
1357
1358
1359# Let the site file select an alternate cache file if it wants to.
a0da8069 1360# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1361if test -z "$CONFIG_SITE"; then
1362 if test "x$prefix" != xNONE; then
1363 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1364 else
1365 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1366 fi
1367fi
1368for ac_site_file in $CONFIG_SITE; do
1369 if test -r "$ac_site_file"; then
c6b750e1
DJ
1370 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1371echo "$as_me: loading site script $ac_site_file" >&6;}
1372 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1373 . "$ac_site_file"
1374 fi
1375done
1376
1377if test -r "$cache_file"; then
c6b750e1
DJ
1378 # Some versions of bash will fail to source /dev/null (special
1379 # files actually), so we avoid doing that.
1380 if test -f "$cache_file"; then
1381 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1382echo "$as_me: loading cache $cache_file" >&6;}
1383 case $cache_file in
1384 [\\/]* | ?:[\\/]* ) . $cache_file;;
1385 *) . ./$cache_file;;
1386 esac
1387 fi
a0da8069 1388else
c6b750e1
DJ
1389 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1390echo "$as_me: creating cache $cache_file" >&6;}
1391 >$cache_file
1392fi
1393
1394# Check that the precious variables saved in the cache have kept the same
1395# value.
1396ac_cache_corrupted=false
1397for ac_var in `(set) 2>&1 |
1398 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1400 eval ac_new_set=\$ac_env_${ac_var}_set
1401 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1402 eval ac_new_val="\$ac_env_${ac_var}_value"
1403 case $ac_old_set,$ac_new_set in
1404 set,)
1405 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1406echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1407 ac_cache_corrupted=: ;;
1408 ,set)
1409 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1410echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1411 ac_cache_corrupted=: ;;
1412 ,);;
1413 *)
1414 if test "x$ac_old_val" != "x$ac_new_val"; then
1415 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1416echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1417 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1418echo "$as_me: former value: $ac_old_val" >&2;}
1419 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1420echo "$as_me: current value: $ac_new_val" >&2;}
1421 ac_cache_corrupted=:
1422 fi;;
1423 esac
1424 # Pass precious variables to config.status.
1425 if test "$ac_new_set" = set; then
1426 case $ac_new_val in
1427 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1428 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1429 *) ac_arg=$ac_var=$ac_new_val ;;
1430 esac
1431 case " $ac_configure_args " in
1432 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1433 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1434 esac
1435 fi
1436done
1437if $ac_cache_corrupted; then
1438 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1439echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1440 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1441echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1442 { (exit 1); exit 1; }; }
a0da8069
NN
1443fi
1444
1445ac_ext=c
a0da8069 1446ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1449ac_compiler_gnu=$ac_cv_c_compiler_gnu
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
a0da8069
NN
1463
1464
75778ec4 1465
c6b750e1
DJ
1466
1467
1468
1469
1470
1471# Find the build, host, and target systems.
a0da8069 1472ac_aux_dir=
315b3b02 1473for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1474 if test -f $ac_dir/install-sh; then
1475 ac_aux_dir=$ac_dir
1476 ac_install_sh="$ac_aux_dir/install-sh -c"
1477 break
1478 elif test -f $ac_dir/install.sh; then
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install.sh -c"
1481 break
c6b750e1
DJ
1482 elif test -f $ac_dir/shtool; then
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 break
a0da8069
NN
1486 fi
1487done
1488if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1491 { (exit 1); exit 1; }; }
a0da8069 1492fi
c6b750e1
DJ
1493ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1496
c6b750e1
DJ
1497# Make sure we can run config.sub.
1498$ac_config_sub sun4 >/dev/null 2>&1 ||
1499 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1501 { (exit 1); exit 1; }; }
1502
1503echo "$as_me:$LINENO: checking build system type" >&5
1504echo $ECHO_N "checking build system type... $ECHO_C" >&6
1505if test "${ac_cv_build+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507else
1508 ac_cv_build_alias=$build_alias
1509test -z "$ac_cv_build_alias" &&
1510 ac_cv_build_alias=`$ac_config_guess`
1511test -z "$ac_cv_build_alias" &&
1512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514 { (exit 1); exit 1; }; }
1515ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1518 { (exit 1); exit 1; }; }
1519
1520fi
1521echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522echo "${ECHO_T}$ac_cv_build" >&6
1523build=$ac_cv_build
1524build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1527
a0da8069 1528
c6b750e1
DJ
1529 case ${build_alias} in
1530 "") build_noncanonical=${build} ;;
1531 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1532esac
1533
1534
cac3d6c4 1535
c6b750e1
DJ
1536 case ${host_alias} in
1537 "") host_noncanonical=${build_noncanonical} ;;
1538 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1539esac
1540
cac3d6c4 1541
c6b750e1
DJ
1542
1543 case ${target_alias} in
1544 "") target_noncanonical=${host_noncanonical} ;;
1545 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1546esac
1547
cac3d6c4 1548
c6b750e1
DJ
1549
1550
1551test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1552 test "$program_prefix$program_suffix$program_transform_name" = \
1553 NONENONEs,x,x, &&
c6b750e1 1554 program_transform_name=s,y,y,
cac3d6c4 1555
c6b750e1
DJ
1556echo "$as_me:$LINENO: checking host system type" >&5
1557echo $ECHO_N "checking host system type... $ECHO_C" >&6
1558if test "${ac_cv_host+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1560else
c6b750e1
DJ
1561 ac_cv_host_alias=$host_alias
1562test -z "$ac_cv_host_alias" &&
1563 ac_cv_host_alias=$ac_cv_build_alias
1564ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1565 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1566echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1567 { (exit 1); exit 1; }; }
1568
1569fi
1570echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1571echo "${ECHO_T}$ac_cv_host" >&6
1572host=$ac_cv_host
1573host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576
1577
1578echo "$as_me:$LINENO: checking target system type" >&5
1579echo $ECHO_N "checking target system type... $ECHO_C" >&6
1580if test "${ac_cv_target+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1582else
1583 ac_cv_target_alias=$target_alias
1584test "x$ac_cv_target_alias" = "x" &&
1585 ac_cv_target_alias=$ac_cv_host_alias
1586ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1588echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1590
cac3d6c4 1591fi
c6b750e1
DJ
1592echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1593echo "${ECHO_T}$ac_cv_target" >&6
1594target=$ac_cv_target
1595target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1598
1599
1600# The aliases save the names the user supplied, while $host etc.
1601# will get canonicalized.
1602test -n "$target_alias" &&
1603 test "$program_prefix$program_suffix$program_transform_name" = \
1604 NONENONEs,x,x, &&
1605 program_prefix=${target_alias}-
a0da8069 1606test "$program_prefix" != NONE &&
c6b750e1 1607 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1608# Use a double $ so make ignores it.
1609test "$program_suffix" != NONE &&
c6b750e1
DJ
1610 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1611# Double any \ or $. echo might interpret backslashes.
1612# By default was `s,x,x', remove it if useless.
1613cat <<\_ACEOF >conftest.sed
1614s/[\\$]/&&/g;s/;s,x,x,$//
1615_ACEOF
1616program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1617rm conftest.sed
cac3d6c4 1618
a0da8069
NN
1619
1620
e5c3f801
NN
1621# Get 'install' or 'install-sh' and its variants.
1622# Find a good install program. We prefer a C program (faster),
1623# so one script is as good as another. But avoid the broken or
1624# incompatible versions:
1625# SysV /etc/install, /usr/sbin/install
1626# SunOS /usr/etc/install
1627# IRIX /sbin/install
1628# AIX /bin/install
c6b750e1 1629# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1630# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1631# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1632# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1633# OS/2's system install, which has a completely different semantic
e5c3f801 1634# ./install, which can be erroneously created by make from ./install.sh.
c6b750e1
DJ
1635echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1636echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1637if test -z "$INSTALL"; then
c6b750e1
DJ
1638if test "${ac_cv_path_install+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 # Account for people who put trailing slashes in PATH elements.
1647case $as_dir/ in
1648 ./ | .// | /cC/* | \
1649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1650 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1651 /usr/ucb/* ) ;;
1652 *)
1653 # OSF1 and SCO ODT 3.0 have their own names for install.
1654 # Don't use installbsd from OSF since it installs stuff as root
1655 # by default.
1656 for ac_prog in ginstall scoinst install; do
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1659 if test $ac_prog = install &&
c6b750e1 1660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1661 # AIX install. It has an incompatible calling convention.
1662 :
c6b750e1
DJ
1663 elif test $ac_prog = install &&
1664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1665 # program-specific install script used by HP pwplus--don't use.
1666 :
e5c3f801 1667 else
c6b750e1
DJ
1668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1669 break 3
e5c3f801
NN
1670 fi
1671 fi
1672 done
c6b750e1
DJ
1673 done
1674 ;;
1675esac
1676done
1677
e5c3f801
NN
1678
1679fi
1680 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1681 INSTALL=$ac_cv_path_install
e5c3f801
NN
1682 else
1683 # As a last resort, use the slow shell script. We don't cache a
1684 # path for INSTALL within a source directory, because that will
1685 # break other packages using the cache if that directory is
1686 # removed, or if the path is relative.
c6b750e1 1687 INSTALL=$ac_install_sh
e5c3f801
NN
1688 fi
1689fi
c6b750e1
DJ
1690echo "$as_me:$LINENO: result: $INSTALL" >&5
1691echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1692
1693# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1694# It thinks the first close brace ends the variable substitution.
1695test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1696
c6b750e1 1697test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1698
1699test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1700
c6b750e1
DJ
1701echo "$as_me:$LINENO: checking whether ln works" >&5
1702echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1703if test "${acx_cv_prog_LN+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1705else
1706 rm -f conftestdata_t
1707echo >conftestdata_f
1708if ln conftestdata_f conftestdata_t 2>/dev/null
1709then
1710 acx_cv_prog_LN=ln
1711else
1712 acx_cv_prog_LN=no
1713fi
1714rm -f conftestdata_f conftestdata_t
1715
1716fi
1717if test $acx_cv_prog_LN = no; then
1718 LN="cp"
c6b750e1
DJ
1719 echo "$as_me:$LINENO: result: no, using $LN" >&5
1720echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1721else
1722 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1723 echo "$as_me:$LINENO: result: yes" >&5
1724echo "${ECHO_T}yes" >&6
656fdd47
PB
1725fi
1726
c6b750e1
DJ
1727echo "$as_me:$LINENO: checking whether ln -s works" >&5
1728echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1729LN_S=$as_ln_s
1730if test "$LN_S" = "ln -s"; then
1731 echo "$as_me:$LINENO: result: yes" >&5
1732echo "${ECHO_T}yes" >&6
cac3d6c4 1733else
c6b750e1
DJ
1734 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1735echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1736fi
1737
e5c3f801 1738
252b5132 1739### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1740### If we are on Windows, search for the shell. This will permit people
1741### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1742### without also having to set CONFIG_SHELL. This code will work when
1743### using bash, which sets OSTYPE.
1744case "${OSTYPE}" in
1745*win32*)
a0da8069
NN
1746 if test x${CONFIG_SHELL} = x ; then
1747 if test ! -f /bin/sh ; then
1748 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1749 CONFIG_SHELL=${SHELL}
1750 export CONFIG_SHELL
1751 else
1752 for prog in sh sh.exe bash bash.exe; do
1753 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1754 for dir in $PATH; do
1755 test -z "$dir" && dir=.
1756 if test -f $dir/$prog; then
1757 CONFIG_SHELL=$dir/$prog
1758 export CONFIG_SHELL
1759 break
1760 fi
1761 done
1762 IFS="$save_ifs"
1763 test -n "${CONFIG_SHELL}" && break
1764 done
1765 fi
1766 fi
1767 fi
1768 ;;
1769esac
1770
1771config_shell=${CONFIG_SHELL-/bin/sh}
1772
252b5132
RH
1773progname=$0
1774# if PWD already has a value, it is probably wrong.
a0da8069 1775if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
252b5132 1776
92f01d61
JM
1777# Export original configure arguments for use by sub-configures.
1778# Quote arguments with shell meta charatcers.
1779TOPLEVEL_CONFIGURE_ARGUMENTS=
1780set -- "$progname" "$@"
a4708fba
JM
1781for ac_arg
1782do
92f01d61 1783 case "$ac_arg" in
ffa8bd48 1784 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
92f01d61
JM
1785 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1786 # if the argument is of the form -foo=baz, quote the baz part only
1787 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1788 *) ;;
1789 esac
1790 # Add the quoted argument to the list.
1791 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1792done
2444379b
BE
1793if test "$silent" = yes; then
1794 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1795fi
92f01d61
JM
1796# Remove the initial space we just introduced and, as these will be
1797# expanded by make, quote '$'.
1798TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
586c0873 1799
75205f78 1800
a0da8069 1801moveifchange=${srcdir}/move-if-change
252b5132 1802
0fdbe983
DJ
1803srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1804
1805# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1806# a relative path.
1807if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1808 INSTALL="${srcpwd}/install-sh -c"
1809fi
1810
a0da8069
NN
1811# Set srcdir to "." if that's what it is.
1812# This is important for multilib support.
1813pwd=`${PWDCMD-pwd}`
a0da8069
NN
1814if test "${pwd}" = "${srcpwd}" ; then
1815 srcdir=.
252b5132
RH
1816fi
1817
a0da8069 1818topsrcdir=$srcpwd
252b5132 1819
a0da8069 1820extra_host_args=
afefada0 1821
a0da8069
NN
1822### To add a new directory to the tree, first choose whether it is a target
1823### or a host dependent tool. Then put it into the appropriate list
1824### (library or tools, host or target), doing a dependency sort.
252b5132 1825
c6b750e1 1826# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1827# configdirs, or target_configdirs; see the serialization section below.
252b5132 1828
c6b750e1
DJ
1829# Dependency sorting is only needed when *configuration* must be done in
1830# a particular order. In all cases a dependency should be specified in
a0da8069 1831# the Makefile, whether or not it's implicitly specified here.
252b5132 1832
a0da8069
NN
1833# Double entries in build_configdirs, configdirs, or target_configdirs may
1834# cause circular dependencies and break everything horribly.
252b5132 1835
6a9cf61e
PB
1836# these library is used by various programs built for the build
1837# environment
1838#
1839build_libs="build-libiberty"
1840
1841# these tools are built for the build environment
ee025550 1842build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1843
a0da8069
NN
1844# these libraries are used by various programs built for the host environment
1845#
4b900473 1846host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
a0da8069 1847
a0da8069
NN
1848# these tools are built for the host environment
1849# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1850# know that we are building the simulator.
1851# binutils, gas and ld appear in that order because it makes sense to run
1852# "make check" in that particular order.
b00612cc 1853host_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
1854
1855# libgcj represents the runtime libraries only used by gcj.
1856libgcj="target-libffi \
a0da8069
NN
1857 target-zlib \
1858 target-qthreads \
1859 target-libjava"
1860
1861# these libraries are built for the target environment, and are built after
1862# the host libraries and the host tools (which may be a cross compiler)
1863#
b1299c4e
DJ
1864target_libraries="target-libgcc \
1865 target-libiberty \
a0da8069
NN
1866 target-libgloss \
1867 target-newlib \
cff87f51 1868 target-libgomp \
b9459e83 1869 target-libstdc++-v3 \
4b1cb4fe 1870 target-libmudflap \
bb780410 1871 target-libssp \
4b1cb4fe 1872 target-libgfortran \
4f0ef2d8 1873 target-boehm-gc \
83326456 1874 ${libgcj} \
a2592b1b 1875 target-libobjc \
cff87f51 1876 target-libada"
a0da8069 1877
9c14acb8
NN
1878# these tools are built using the target libraries, and are intended to
1879# run only in the target environment
a0da8069 1880#
9c14acb8 1881# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1882# list belongs in this list. those programs are also very likely
1883# candidates for the "native_only" list which follows
1884#
a3dd767d 1885target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1886
a0da8069 1887################################################################################
252b5132 1888
a0da8069
NN
1889## All tools belong in one of the four categories, and are assigned above
1890## We assign ${configdirs} this way to remove all embedded newlines. This
1891## is important because configure will choke if they ever get through.
1892## ${configdirs} is directories we build using the host tools.
1893## ${target_configdirs} is directories we build using the target tools.
a0da8069 1894configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1895target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1896build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1897
a0da8069 1898################################################################################
252b5132 1899
a0da8069 1900srcname="gnu development package"
252b5132 1901
a0da8069
NN
1902# This gets set non-empty for some net releases of packages.
1903appdirs=""
252b5132 1904
a0da8069
NN
1905# Define is_cross_compiler to save on calls to 'test'.
1906is_cross_compiler=
1907if test x"${host}" = x"${target}" ; then
1908 is_cross_compiler=no
252b5132 1909else
a0da8069 1910 is_cross_compiler=yes
c6b750e1 1911fi
252b5132 1912
9175bfc0 1913# Find the build and target subdir names.
dd12c3a8 1914
66a79c16
DJ
1915# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1916# have matching libraries, they should use host libraries: Makefile.tpl
1917# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1918# However, they still use the build modules, because the corresponding
1919# host modules (e.g. bison) are only built for the host when bootstrap
1920# finishes. So:
1921# - build_subdir is where we find build modules, and never changes.
1922# - build_libsubdir is where we find build libraries, and can be overridden.
1923
1924# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1925build_subdir="build-${build_noncanonical}"
c6b750e1 1926
66a79c16
DJ
1927# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1928if test "${with_build_libsubdir+set}" = set; then
1929 withval="$with_build_libsubdir"
1930 build_libsubdir="$withval"
1931else
1932 build_libsubdir="$build_subdir"
c6b750e1 1933fi;
b00612cc
PB
1934# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1935if ( test $srcdir = . && test -d gcc ) \
1936 || test -d $srcdir/../host-${host_noncanonical}; then
1937 host_subdir="host-${host_noncanonical}"
1938else
1939 host_subdir=.
1940fi
dd12c3a8
NN
1941# No prefix.
1942target_subdir=${target_noncanonical}
c6b750e1 1943
252b5132 1944
a0da8069
NN
1945# Skipdirs are removed silently.
1946skipdirs=
1947# Noconfigdirs are removed loudly.
1948noconfigdirs=""
252b5132 1949
a0da8069
NN
1950use_gnu_ld=
1951# Make sure we don't let GNU ld be added if we didn't want it.
1952if test x$with_gnu_ld = xno ; then
1953 use_gnu_ld=no
1954 noconfigdirs="$noconfigdirs ld"
252b5132
RH
1955fi
1956
a0da8069
NN
1957use_gnu_as=
1958# Make sure we don't let GNU as be added if we didn't want it.
1959if test x$with_gnu_as = xno ; then
1960 use_gnu_as=no
1961 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1962fi
1963
c6b750e1 1964# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1965# it's not even worth trying to configure, much less build, that tool.
252b5132 1966
a0da8069
NN
1967case ${with_x} in
1968 yes | "") ;; # the default value for this tree is that X11 is available
1969 no)
675c6968 1970 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 1971 # We won't be able to build gdbtk without X.
c6b750e1 1972 enable_gdbtk=no
a0da8069
NN
1973 ;;
1974 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1975esac
252b5132 1976
a0da8069 1977# Some tools are only suitable for building in a "native" situation.
c6b750e1 1978# Remove these if host!=target.
701628f5 1979native_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 1980
a0da8069
NN
1981# Similarly, some are only suitable for cross toolchains.
1982# Remove these if host=target.
1983cross_only="target-libgloss target-newlib target-opcodes"
1984
1985case $is_cross_compiler in
1986 no) skipdirs="${skipdirs} ${cross_only}" ;;
1987 yes) skipdirs="${skipdirs} ${native_only}" ;;
1988esac
252b5132 1989
a0da8069
NN
1990# If both --with-headers and --with-libs are specified, default to
1991# --without-newlib.
32be62b5
RS
1992if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1993 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
1994 if test x"${with_newlib}" = x ; then
1995 with_newlib=no
1996 fi
252b5132
RH
1997fi
1998
a0da8069
NN
1999# Recognize --with-newlib/--without-newlib.
2000case ${with_newlib} in
2001 no) skipdirs="${skipdirs} target-newlib" ;;
2002 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2003esac
252b5132 2004
a0da8069 2005# Configure extra directories which are host specific
252b5132 2006
a0da8069
NN
2007case "${host}" in
2008 *-cygwin*)
2009 configdirs="$configdirs libtermcap" ;;
2010esac
252b5132 2011
59f7ec45
HPN
2012# A target can indicate whether a language isn't supported for some reason.
2013# Only spaces may be used in this macro; not newlines or tabs.
2014unsupported_languages=
2015
c6b750e1 2016# Remove more programs from consideration, based on the host or
a0da8069
NN
2017# target this usually means that a port of the program doesn't
2018# exist yet.
252b5132 2019
a0da8069
NN
2020case "${host}" in
2021 hppa*64*-*-*)
2022 noconfigdirs="$noconfigdirs byacc"
2023 ;;
ec11bdc6 2024 i[3456789]86-*-vsta)
675c6968 2025 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2026 ;;
ec11bdc6 2027 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2028 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2029 ;;
2d1e8239
NC
2030 x86_64-*-mingw*)
2031 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2032 ;;
ec11bdc6 2033 i[3456789]86-*-mingw32*)
675c6968 2034 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2035 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2036 ;;
ec11bdc6 2037 i[3456789]86-*-beos*)
675c6968 2038 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2039 ;;
a0da8069 2040 *-*-cygwin*)
a92834c8 2041 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2042 ;;
2043 *-*-netbsd*)
a92834c8 2044 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2045 ;;
2046 ppc*-*-pe)
675c6968 2047 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2048 ;;
2049 powerpc-*-beos*)
675c6968 2050 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2051 ;;
a0da8069 2052esac
252b5132 2053
4b1cb4fe 2054
a2592b1b
DD
2055# Check whether --enable-libada or --disable-libada was given.
2056if test "${enable_libada+set}" = set; then
2057 enableval="$enable_libada"
2058 ENABLE_LIBADA=$enableval
2059else
2060 ENABLE_LIBADA=yes
c6b750e1 2061fi;
a2592b1b 2062if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2063 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2064fi
2065
5f128533
KH
2066# Check whether --enable-libssp or --disable-libssp was given.
2067if test "${enable_libssp+set}" = set; then
2068 enableval="$enable_libssp"
2069 ENABLE_LIBSSP=$enableval
2070else
2071 ENABLE_LIBSSP=yes
c6b750e1 2072fi;
5f128533 2073
a0da8069
NN
2074# Save it here so that, even in case of --enable-libgcj, if the Java
2075# front-end isn't enabled, we still get libgcj disabled.
2076libgcj_saved=$libgcj
2077case $enable_libgcj in
2078yes)
2079 # If we reset it here, it won't get added to noconfigdirs in the
2080 # target-specific build rules, so it will be forcibly enabled
2081 # (unless the Java language itself isn't enabled).
2082 libgcj=
2083 ;;
2084no)
2085 # Make sure we get it printed in the list of not supported target libs.
2086 noconfigdirs="$noconfigdirs ${libgcj}"
2087 ;;
2088esac
252b5132 2089
4b1cb4fe 2090
a6df5a19
PB
2091# Disable libmudflap on some systems.
2092if test x$enable_libmudflap = x ; then
3e707e94 2093 case "${target}" in
0ebe98fb 2094 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
3d6dfe0f 2095 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2096 ;;
2097 *-*-freebsd*)
2098 # Enable libmudflap by default in FreeBSD.
2099 ;;
2100 *)
2101 # Disable it by default everywhere else.
2102 noconfigdirs="$noconfigdirs target-libmudflap"
2103 ;;
2104 esac
a6df5a19 2105fi
4b1cb4fe 2106
a6df5a19
PB
2107# Disable libgomp on non POSIX hosted systems.
2108if test x$enable_libgomp = x ; then
b3ded179
PB
2109 # Enable libgomp by default on hosted POSIX systems.
2110 case "${target}" in
2111 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2112 ;;
2113 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2114 ;;
64ce424c 2115 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2116 ;;
2117 *-*-darwin* | *-*-aix*)
2118 ;;
2119 *)
2120 noconfigdirs="$noconfigdirs target-libgomp"
2121 ;;
2122 esac
a6df5a19 2123fi
b3ded179 2124
691bb5a1
DD
2125# Default libgloss CPU subdirectory.
2126libgloss_dir="$target_cpu"
4b1cb4fe 2127
a0da8069
NN
2128case "${target}" in
2129 *-*-chorusos)
54d1c879 2130 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2131 ;;
790c0838 2132 powerpc-*-darwin* | i[3456789]86-*-darwin*)
b3f16a9b 2133 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 2134 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2135 ;;
04d1ab34 2136 *-*-darwin*)
d320aacb 2137 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2138 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2139 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2140 ;;
a0da8069 2141 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2142 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2143 ;;
de0b4a87 2144 *-*-freebsd*)
4b1cb4fe
DD
2145 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2146 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2147 && test -f /usr/local/include/gmp.h; then
2148 with_gmp=/usr/local
2149 fi
2150
2151 # Skip some stuff that's unsupported on some FreeBSD configurations.
2152 case "${target}" in
2153 i*86-*-*) ;;
2154 alpha*-*-*) ;;
2155 *)
54d1c879 2156 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2157 ;;
2158 esac
2159 ;;
f8a495c8
NC
2160 *-*-kaos*)
2161 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2162 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2163 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2164 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2165 noconfigdirs="$noconfigdirs target-libgloss"
2166 ;;
a0da8069
NN
2167 *-*-netbsd*)
2168 # Skip some stuff on all NetBSD configurations.
2169 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2170
2171 # Skip some stuff that's unsupported on some NetBSD configurations.
2172 case "${target}" in
2173 i*86-*-netbsdelf*) ;;
5b474aa8 2174 arm*-*-netbsdelf*) ;;
a0da8069 2175 *)
54d1c879 2176 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2177 ;;
2178 esac
2179 ;;
2a3124ca 2180 *-*-netware*)
54d1c879 2181 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2182 ;;
2183 *-*-rtems*)
54d1c879 2184 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2185 ;;
1587117a
EC
2186 # The tpf target doesn't support gdb yet.
2187 *-*-tpf*)
54d1c879 2188 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2189 ;;
c1968181 2190 *-*-uclinux*)
54d1c879 2191 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2192 ;;
a0da8069 2193 *-*-vxworks*)
54d1c879 2194 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2195 ;;
2196 alpha*-dec-osf*)
2197 # ld works, but does not support shared libraries.
2198 # newlib is not 64 bit ready. I'm not sure about fileutils.
2199 # gas doesn't generate exception information.
2200 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2201 ;;
2202 alpha*-*-*vms*)
54d1c879 2203 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2204 ;;
2205 alpha*-*-linux*)
2206 # newlib is not 64 bit ready
2207 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2208 ;;
a0da8069
NN
2209 alpha*-*-*)
2210 # newlib is not 64 bit ready
54d1c879 2211 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2212 ;;
4a18bd6b 2213 am33_2.0-*-linux*)
54d1c879 2214 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2215 ;;
a0da8069 2216 sh-*-linux*)
54d1c879 2217 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2218 ;;
a0da8069 2219 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2220 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2221 noconfigdirs="$noconfigdirs target-examples"
2222 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2223 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2224 noconfigdirs="$noconfigdirs expect dejagnu"
2225 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2226 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2227 noconfigdirs="$noconfigdirs target-newlib"
2228 case "${host}" in
2229 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2230 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2231 ;;
2232 esac
691bb5a1 2233 libgloss_dir=wince
a0da8069
NN
2234 ;;
2235 arc-*-*)
54d1c879 2236 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2237 ;;
caeba88f 2238 arm-semi-aof )
caeba88f 2239 ;;
a0da8069 2240 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2241 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2242 libgloss_dir=arm
a0da8069 2243 ;;
11b04d1f 2244 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 2245 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 2246 libgloss_dir=arm
a0da8069 2247 ;;
bd70a46f 2248 arm*-*-linux-gnueabi)
6d18b86b
AH
2249 noconfigdirs="$noconfigdirs target-qthreads"
2250 noconfigdirs="$noconfigdirs target-libobjc"
a5b3b4dd
DD
2251 case ${with_newlib} in
2252 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2253 esac
691bb5a1 2254 libgloss_dir=arm
bd70a46f 2255 ;;
df4a6958 2256 arm*-*-symbianelf*)
54d1c879 2257 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 2258 libgloss_dir=arm
df4a6958 2259 ;;
a0da8069 2260 arm-*-pe*)
54d1c879 2261 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2262 ;;
a0da8069 2263 thumb-*-coff)
54d1c879 2264 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2265 ;;
2266 thumb-*-elf)
54d1c879 2267 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2268 ;;
a0da8069 2269 thumb-*-pe)
54d1c879 2270 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2271 ;;
2272 arm-*-riscix*)
54d1c879 2273 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2274 ;;
2275 avr-*-*)
54d1c879 2276 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2277 ;;
376a0e54 2278 bfin-*-*)
00d89675 2279 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2280 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2281 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2282 fi
2283 ;;
a0da8069 2284 c4x-*-* | tic4x-*-*)
54d1c879 2285 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2286 ;;
2287 c54x*-*-* | tic54x-*-*)
54d1c879 2288 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2289 ;;
c7e66c6d 2290 cris-*-* | crisv32-*-*)
59f7ec45 2291 unsupported_languages="$unsupported_languages java"
c7e66c6d 2292 case "${target}" in
2faa2958 2293 *-*-aout)
096f7d00 2294 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2295 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2296 *-*-elf)
096f7d00 2297 unsupported_languages="$unsupported_languages fortran"
5e818318 2298 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2299 *-*-linux*)
5e818318 2300 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2301 *)
096f7d00 2302 unsupported_languages="$unsupported_languages fortran"
54d1c879 2303 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2304 esac
691bb5a1 2305 libgloss_dir=cris
a0da8069 2306 ;;
3e707e94 2307 crx-*-*)
54d1c879 2308 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2309 ;;
a0da8069 2310 d10v-*-*)
54d1c879 2311 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2312 ;;
2313 d30v-*-*)
54d1c879 2314 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 2315 ;;
691bb5a1
DD
2316 ep9312-*-elf | ep9312-*-coff)
2317 libgloss_dir=arm
2318 ;;
a0da8069 2319 fr30-*-elf*)
54d1c879 2320 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2321 ;;
2322 frv-*-*)
54d1c879 2323 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2324 ;;
2325 h8300*-*-*)
54d1c879 2326 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2327 ;;
2328 h8500-*-*)
54d1c879 2329 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2330 ;;
caeba88f 2331 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2332 ;;
a0da8069
NN
2333 hppa*64*-*-linux* | parisc*64*-*-linux*)
2334 # In this case, it's because the hppa64-linux target is for
2335 # the kernel only at this point and has no libc, and thus no
2336 # headers, crt*.o, etc., all of which are needed by these.
2337 noconfigdirs="$noconfigdirs target-zlib"
2338 ;;
5dcac624
DA
2339 parisc*-*-linux* | hppa*-*-linux*)
2340 ;;
a0da8069 2341 hppa*-*-*elf* | \
a0da8069
NN
2342 hppa*-*-lites* | \
2343 hppa*-*-openbsd* | \
2344 hppa*64*-*-*)
54d1c879 2345 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2346 ;;
2347 hppa*-hp-hpux11*)
2348 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 2349 ;;
691bb5a1
DD
2350 hppa*-*-pro*)
2351 libgloss_dir=pa
2352 ;;
a0da8069
NN
2353 hppa*-*-*)
2354 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2355 # build on HP-UX 10.20.
54d1c879 2356 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2357 ;;
b07c2aad 2358 i960-*-*)
54d1c879 2359 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2360 ;;
a0da8069
NN
2361 ia64*-*-elf*)
2362 # No gdb support yet.
675c6968 2363 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2364 ;;
2365 ia64*-**-hpux*)
2366 # No gdb or ld support yet.
54d1c879 2367 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2368 ;;
caeba88f 2369 i370-*-opened*)
caeba88f 2370 ;;
ec11bdc6 2371 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2372 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2373 libgloss_dir=i386
a0da8069 2374 ;;
ec11bdc6 2375 i[3456789]86-*-linux*)
a0da8069
NN
2376 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2377 # not build java stuff by default.
2378 case "${target}" in
2379 *-*-*libc1*)
54d1c879 2380 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2381 esac
2382
2383 # This section makes it possible to build newlib natively on linux.
2384 # If we are using a cross compiler then don't configure newlib.
2385 if test x${is_cross_compiler} != xno ; then
bba45b8b 2386 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2387 fi
2388 noconfigdirs="$noconfigdirs target-libgloss"
2389 # If we are not using a cross compiler, do configure newlib.
2390 # Note however, that newlib will only be configured in this situation
2391 # if the --with-newlib option has been given, because otherwise
2392 # 'target-newlib' will appear in skipdirs.
2393 ;;
ec11bdc6 2394 i[3456789]86-*-mingw32*)
45055374
CV
2395 target_configdirs="$target_configdirs target-winsup"
2396 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2397 ;;
2d1e8239
NC
2398 x86_64-*-mingw*)
2399 target_configdirs="$target_configdirs target-winsup"
2400 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2401 ;;
a0da8069
NN
2402 *-*-cygwin*)
2403 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2404 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2405 # always build newlib if winsup directory is present.
45055374 2406 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2407 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2408 elif test -d "$srcdir/newlib"; then
45055374 2409 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2410 fi
c6b750e1 2411 ;;
caeba88f
AL
2412 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2413 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2414 ;;
ec11bdc6 2415 i[3456789]86-*-pe)
54d1c879 2416 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2417 ;;
ec11bdc6 2418 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2419 # The linker does not yet know about weak symbols in COFF,
2420 # and is not configured to handle mixed ELF and COFF.
54d1c879 2421 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2422 ;;
ec11bdc6 2423 i[3456789]86-*-sco*)
54d1c879 2424 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2425 ;;
ec11bdc6 2426 i[3456789]86-*-solaris2*)
a0da8069
NN
2427 noconfigdirs="$noconfigdirs target-libgloss"
2428 ;;
ec11bdc6 2429 i[3456789]86-*-sysv4*)
54d1c879 2430 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2431 ;;
ec11bdc6 2432 i[3456789]86-*-beos*)
54d1c879 2433 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2434 ;;
b59bea8a 2435 i[3456789]86-*-rdos*)
2429c060
PB
2436 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2437 ;;
b07c2aad 2438 m32r-*-*)
54d1c879 2439 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2440 ;;
a0da8069 2441 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2442 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 2443 libgloss_dir=m68hc11
a0da8069
NN
2444 ;;
2445 m68k-*-elf*)
54d1c879 2446 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2447 ;;
2448 m68k-*-coff*)
54d1c879 2449 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2450 ;;
691bb5a1
DD
2451 m68*-*-* | fido-*-*)
2452 libgloss_dir=m68k
2453 ;;
a0da8069
NN
2454 mcore-*-pe*)
2455 # The EPOC C++ environment does not support exceptions or rtti,
2456 # and so building libstdc++-v3 tends not to always work.
2457 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2458 ;;
2459 mmix-*-*)
59f7ec45 2460 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2461 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2462 ;;
2463 mn10200-*-*)
54d1c879 2464 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2465 ;;
2466 mn10300-*-*)
54d1c879 2467 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2468 ;;
4970f871 2469 mt-*-*)
cdb9b172
AH
2470 noconfigdirs="$noconfigdirs sim"
2471 ;;
a0da8069
NN
2472 powerpc-*-aix*)
2473 # copied from rs6000-*-* entry
54d1c879 2474 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2475 ;;
2476 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2477 target_configdirs="$target_configdirs target-winsup"
54d1c879 2478 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2479 # always build newlib.
2480 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2481 ;;
2482 # This is temporary until we can link against shared libraries
2483 powerpcle-*-solaris*)
54d1c879 2484 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 2485 libgloss_dir=rs6000
a0da8069
NN
2486 ;;
2487 powerpc-*-beos*)
54d1c879 2488 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2489 ;;
a0da8069 2490 powerpc-*-eabi)
54d1c879 2491 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2492 libgloss_dir=rs6000
caeba88f
AL
2493 ;;
2494 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 2495 libgloss_dir=rs6000
a0da8069 2496 ;;
a0da8069 2497 rs6000-*-lynxos*)
54d1c879 2498 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2499 ;;
2500 rs6000-*-aix*)
54d1c879 2501 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2502 ;;
2503 rs6000-*-*)
54d1c879 2504 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2505 ;;
2506 m68k-apollo-*)
54d1c879 2507 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 2508 ;;
5bd8be13
RS
2509 mips*-sde-elf*)
2510 skipdirs="$skipdirs target-libiberty"
2511 noconfigdirs="$noconfigdirs ${libgcj}"
2512 if test x$with_newlib = xyes; then
2513 noconfigdirs="$noconfigdirs gprof"
2514 fi
2515 libgloss_dir=mips
2516 ;;
a0da8069 2517 mips*-*-irix5*)
54d1c879 2518 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2519 ;;
2520 mips*-*-irix6*)
a0da8069
NN
2521 # Linking libjava exceeds command-line length limits on at least
2522 # IRIX 6.2, but not on IRIX 6.5.
2523 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2524 # <oldham@codesourcery.com>
54d1c879 2525 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2526 ;;
a0da8069 2527 mips*-*-bsd*)
54d1c879 2528 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2529 ;;
a0da8069
NN
2530 mips*-*-linux*)
2531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2532 ;;
2533 mips*-*-*)
54d1c879 2534 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 2535 libgloss_dir=mips
a0da8069
NN
2536 ;;
2537 romp-*-*)
54d1c879 2538 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2539 ;;
dbf85af7 2540 sh-*-* | sh64-*-*)
a0da8069 2541 case "${host}" in
ec11bdc6
DD
2542 i[3456789]86-*-vsta) ;; # don't add gprof back in
2543 i[3456789]86-*-go32*) ;; # don't add gprof back in
2544 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2545 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2546 esac
54d1c879 2547 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2548 ;;
691bb5a1
DD
2549 sparclet-*-aout* | sparc86x-*-*)
2550 libgloss_dir=sparc
2551 ;;
a0da8069 2552 sparc-*-elf*)
54d1c879 2553 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2554 ;;
2555 sparc64-*-elf*)
54d1c879 2556 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2557 libgloss_dir=sparc
a0da8069
NN
2558 ;;
2559 sparclite-*-*)
54d1c879 2560 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2561 libgloss_dir=sparc
a0da8069
NN
2562 ;;
2563 sparc-*-sunos4*)
54d1c879 2564 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2565 if test x${is_cross_compiler} != xno ; then
2566 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2567 else
2568 use_gnu_ld=no
2569 fi
2570 ;;
e3c770b1 2571 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2572 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2573 ;;
a0da8069
NN
2574 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2575 ;;
2839fe5d
BE
2576 spu-*-*)
2577 skipdirs="target-libssp"
2578 ;;
a0da8069 2579 v810-*-*)
54d1c879 2580 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2581 ;;
2582 v850-*-*)
54d1c879 2583 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2584 ;;
2585 v850e-*-*)
54d1c879 2586 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2587 ;;
2588 v850ea-*-*)
54d1c879 2589 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2590 ;;
2591 vax-*-vms)
54d1c879 2592 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2593 ;;
2594 vax-*-*)
54d1c879 2595 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2596 ;;
fbd1054d 2597 xtensa-*-*)
54d1c879 2598 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2599 ;;
a0da8069 2600 ip2k-*-*)
54d1c879 2601 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2602 ;;
de0b4a87 2603 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2605 ;;
2606 *-*-lynxos*)
54d1c879 2607 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2608 ;;
a0da8069 2609 *-*-*)
54d1c879 2610 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2611 ;;
2612esac
252b5132 2613
a0da8069
NN
2614# If we aren't building newlib, then don't build libgloss, since libgloss
2615# depends upon some newlib header files.
2616case "${noconfigdirs}" in
2617 *target-libgloss*) ;;
2618 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2619esac
2620
a0da8069
NN
2621# Work in distributions that contain no compiler tools, like Autoconf.
2622tentative_cc=""
2623host_makefile_frag=/dev/null
2624if test -d ${srcdir}/config ; then
2625case "${host}" in
2626 m68k-hp-hpux*)
2627 # Avoid "too much defining" errors from HPUX compiler.
2628 tentative_cc="cc -Wp,-H256000"
2629 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2630 # If it's HP/UX ar, this should be harmless.
2631 RANLIB="ar ts"
2632 ;;
2633 m68k-apollo-sysv*)
2634 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2635 ;;
2636 m68k-apollo-bsd*)
2637 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2638 # chokes on bfd, the compiler won't let you assign integers to enums, and
2639 # other problems. Defining CC to gcc is a questionable way to say "don't use
2640 # the apollo compiler" (the preferred version of GCC could be called cc,
2641 # or whatever), but I'm not sure leaving CC as cc is any better...
2642 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2643 # Used to have BISON=yacc.
2644 tentative_cc=gcc
2645 ;;
2646 m88k-dg-dgux*)
2647 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2648 ;;
2649 m88k-harris-cxux*)
2650 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2651 tentative_cc="cc -Xa"
2652 host_makefile_frag="config/mh-cxux"
2653 ;;
2654 m88k-motorola-sysv*)
2655 ;;
2656 mips*-dec-ultrix*)
2657 tentative_cc="cc -Wf,-XNg1000"
2658 host_makefile_frag="config/mh-decstation"
2659 ;;
2660 mips*-nec-sysv4*)
2661 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2662 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2663 host_makefile_frag="config/mh-necv4"
2664 ;;
2665 mips*-sgi-irix4*)
2666 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2667 # environment. Also bump switch table size so that cp-parse will
2668 # compile. Bump string length limit so linker builds.
2669 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2670 ;;
2671 mips*-*-sysv4*)
2672 host_makefile_frag="config/mh-sysv4"
2673 ;;
2674 mips*-*-sysv*)
2675 # This is for a MIPS running RISC/os 4.52C.
2676
2677 # This is needed for GDB, but needs to be in the top-level make because
2678 # if a library is compiled with the bsd headers and gets linked with the
2679 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2680 # a different size).
2681 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2682 # known except to select the sysv environment. Could we use /proc instead?
2683 # These "sysv environments" and "bsd environments" often end up being a pain.
2684 #
2685 # This is not part of CFLAGS because perhaps not all C compilers have this
2686 # option.
2687 tentative_cc="cc -systype sysv"
2688 ;;
2689 i370-ibm-opened*)
2690 tentative_cc="c89"
2691 ;;
ec11bdc6 2692 i[3456789]86-*-sysv5*)
a0da8069
NN
2693 host_makefile_frag="config/mh-sysv5"
2694 ;;
ec11bdc6 2695 i[3456789]86-*-dgux*)
a0da8069
NN
2696 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2697 host_makefile_frag="config/mh-dgux386"
2698 ;;
ec11bdc6 2699 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2700 # The MetaWare compiler will generate a copyright message unless you
2701 # turn it off by adding the -Hnocopyr flag.
2702 tentative_cc="cc -Hnocopyr"
2703 ;;
ec11bdc6 2704 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2705 # for an NCR 3000 (i486/SVR4) system.
2706 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2707 # This compiler not only emits obnoxious copyright messages every time
2708 # you run it, but it chokes and dies on a whole bunch of GNU source
2709 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2710 tentative_cc="/usr/ccs/ATT/cc"
2711 host_makefile_frag="config/mh-ncr3000"
2712 ;;
ec11bdc6 2713 i[3456789]86-*-sco3.2v5*)
a0da8069 2714 ;;
ec11bdc6 2715 i[3456789]86-*-sco*)
a0da8069
NN
2716 # The native C compiler botches some simple uses of const. Unfortunately,
2717 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2718 tentative_cc="cc -Dconst="
2719 host_makefile_frag="config/mh-sco"
2720 ;;
ec11bdc6 2721 i[3456789]86-*-udk*)
a0da8069
NN
2722 host_makefile_frag="config/mh-sysv5"
2723 ;;
ec11bdc6 2724 i[3456789]86-*-solaris2*)
a0da8069
NN
2725 host_makefile_frag="config/mh-sysv4"
2726 ;;
ec11bdc6 2727 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2728 host_makefile_frag="config/mh-djgpp"
2729 ;;
2730 *-cygwin*)
2731 host_makefile_frag="config/mh-cygwin"
2732 ;;
2733 *-mingw32*)
84e7906e 2734 host_makefile_frag="config/mh-mingw"
a0da8069 2735 ;;
2d1e8239 2736 *-mingw64*)
84e7906e 2737 host_makefile_frag="config/mh-mingw"
2d1e8239 2738 ;;
a0da8069
NN
2739 *-interix*)
2740 host_makefile_frag="config/mh-interix"
2741 ;;
2742 vax-*-ultrix2*)
2743 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2744 tentative_cc=gcc
2745 ;;
2746 *-*-solaris2*)
2747 host_makefile_frag="config/mh-solaris"
2748 ;;
2749 m68k-sun-sunos*)
2750 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2751 # without overflowing the jump tables (-J says to use a 32 bit table)
2752 tentative_cc="cc -J"
2753 ;;
2754 *-hp-hpux*)
2755 tentative_cc="cc -Wp,-H256000"
2756 ;;
2757 *-*-hiux*)
2758 tentative_cc="cc -Wp,-H256000"
2759 ;;
2760 rs6000-*-lynxos*)
2761 # /bin/cc is less than useful for our purposes. Always use GCC
2762 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2763 host_makefile_frag="config/mh-lynxrs6k"
2764 ;;
0df3d27f
PB
2765 powerpc-*-darwin*)
2766 host_makefile_frag="config/mh-ppc-darwin"
2767 ;;
f6d183c0
PB
2768 powerpc-*-aix*)
2769 host_makefile_frag="config/mh-ppc-aix"
2770 ;;
2771 rs6000-*-aix*)
2772 host_makefile_frag="config/mh-ppc-aix"
2773 ;;
a0da8069
NN
2774 *-*-lynxos*)
2775 # /bin/cc is less than useful for our purposes. Always use GCC
2776 tentative_cc="/bin/gcc"
2777 ;;
2778 *-*-sysv4*)
2779 host_makefile_frag="config/mh-sysv4"
2780 ;;
fe69863c
DD
2781 # This is placed last to prevent interfering with the cases above.
2782 i[3456789]86-*-*)
2783 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2784 host_makefile_frag="config/mh-x86omitfp"
2785 ;;
a0da8069
NN
2786esac
2787fi
2788
9e07f89d
NN
2789# If we aren't going to be using gcc, see if we can extract a definition
2790# of CC from the fragment.
2791# Actually, use the 'pre-extracted' version above.
2792if test -z "${CC}" && test "${build}" = "${host}" ; then
2793 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2794 found=
2795 for dir in $PATH; do
2796 test -z "$dir" && dir=.
2797 if test -f $dir/gcc; then
2798 found=yes
2799 break
2800 fi
2801 done
2802 IFS="$save_ifs"
2803 if test -z "${found}" && test -n "${tentative_cc}" ; then
2804 CC=$tentative_cc
2805 fi
2806fi
2807
2808if test "${build}" != "${host}" ; then
1576798e
PB
2809 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2810 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 2811 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
2812 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2813 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2814 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2815 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2816 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2817 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2818 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2819 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2820 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2821else
2822 AR_FOR_BUILD="\$(AR)"
2823 AS_FOR_BUILD="\$(AS)"
512b7dfb 2824 CC_FOR_BUILD="\$(CC)"
1576798e
PB
2825 CXX_FOR_BUILD="\$(CXX)"
2826 GCJ_FOR_BUILD="\$(GCJ)"
2827 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2828 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2829 LD_FOR_BUILD="\$(LD)"
2830 NM_FOR_BUILD="\$(NM)"
2831 RANLIB_FOR_BUILD="\$(RANLIB)"
2832 WINDRES_FOR_BUILD="\$(WINDRES)"
2833 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
2834fi
2835
2836ac_ext=c
c6b750e1
DJ
2837ac_cpp='$CPP $CPPFLAGS'
2838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2840ac_compiler_gnu=$ac_cv_c_compiler_gnu
2841if test -n "$ac_tool_prefix"; then
2842 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2843set dummy ${ac_tool_prefix}gcc; ac_word=$2
2844echo "$as_me:$LINENO: checking for $ac_word" >&5
2845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846if test "${ac_cv_prog_CC+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848else
2849 if test -n "$CC"; then
2850 ac_cv_prog_CC="$CC" # Let the user override the test.
2851else
2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863done
2864done
2865
2866fi
2867fi
2868CC=$ac_cv_prog_CC
2869if test -n "$CC"; then
2870 echo "$as_me:$LINENO: result: $CC" >&5
2871echo "${ECHO_T}$CC" >&6
2872else
2873 echo "$as_me:$LINENO: result: no" >&5
2874echo "${ECHO_T}no" >&6
2875fi
2876
2877fi
2878if test -z "$ac_cv_prog_CC"; then
2879 ac_ct_CC=$CC
6a9cf61e 2880 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2881set dummy gcc; ac_word=$2
c6b750e1
DJ
2882echo "$as_me:$LINENO: checking for $ac_word" >&5
2883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2884if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2886else
2887 if test -n "$ac_ct_CC"; then
2888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2889else
2890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891for as_dir in $PATH
2892do
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2897 ac_cv_prog_ac_ct_CC="gcc"
2898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2900 fi
2901done
2902done
2903
2904fi
2905fi
2906ac_ct_CC=$ac_cv_prog_ac_ct_CC
2907if test -n "$ac_ct_CC"; then
2908 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2909echo "${ECHO_T}$ac_ct_CC" >&6
2910else
2911 echo "$as_me:$LINENO: result: no" >&5
2912echo "${ECHO_T}no" >&6
2913fi
2914
2915 CC=$ac_ct_CC
2916else
2917 CC="$ac_cv_prog_CC"
2918fi
2919
2920if test -z "$CC"; then
2921 if test -n "$ac_tool_prefix"; then
2922 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2923set dummy ${ac_tool_prefix}cc; ac_word=$2
2924echo "$as_me:$LINENO: checking for $ac_word" >&5
2925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2926if test "${ac_cv_prog_CC+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2928else
2929 if test -n "$CC"; then
2930 ac_cv_prog_CC="$CC" # Let the user override the test.
2931else
c6b750e1
DJ
2932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933for as_dir in $PATH
2934do
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2939 ac_cv_prog_CC="${ac_tool_prefix}cc"
2940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2942 fi
2943done
2944done
2945
9e07f89d
NN
2946fi
2947fi
c6b750e1 2948CC=$ac_cv_prog_CC
9e07f89d 2949if test -n "$CC"; then
c6b750e1
DJ
2950 echo "$as_me:$LINENO: result: $CC" >&5
2951echo "${ECHO_T}$CC" >&6
9e07f89d 2952else
c6b750e1
DJ
2953 echo "$as_me:$LINENO: result: no" >&5
2954echo "${ECHO_T}no" >&6
9e07f89d
NN
2955fi
2956
c6b750e1
DJ
2957fi
2958if test -z "$ac_cv_prog_CC"; then
2959 ac_ct_CC=$CC
2960 # Extract the first word of "cc", so it can be a program name with args.
2961set dummy cc; ac_word=$2
2962echo "$as_me:$LINENO: checking for $ac_word" >&5
2963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2964if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2966else
2967 if test -n "$ac_ct_CC"; then
2968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2969else
2970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971for as_dir in $PATH
2972do
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2977 ac_cv_prog_ac_ct_CC="cc"
2978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
2980 fi
2981done
2982done
2983
2984fi
2985fi
2986ac_ct_CC=$ac_cv_prog_ac_ct_CC
2987if test -n "$ac_ct_CC"; then
2988 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2989echo "${ECHO_T}$ac_ct_CC" >&6
2990else
2991 echo "$as_me:$LINENO: result: no" >&5
2992echo "${ECHO_T}no" >&6
2993fi
2994
2995 CC=$ac_ct_CC
2996else
2997 CC="$ac_cv_prog_CC"
2998fi
2999
3000fi
9e07f89d
NN
3001if test -z "$CC"; then
3002 # Extract the first word of "cc", so it can be a program name with args.
3003set dummy cc; ac_word=$2
c6b750e1
DJ
3004echo "$as_me:$LINENO: checking for $ac_word" >&5
3005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3006if test "${ac_cv_prog_CC+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3008else
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3011else
9e07f89d 3012 ac_prog_rejected=no
c6b750e1
DJ
3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014for as_dir in $PATH
3015do
3016 IFS=$as_save_IFS
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3021 ac_prog_rejected=yes
3022 continue
3023 fi
3024 ac_cv_prog_CC="cc"
3025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3027 fi
3028done
3029done
3030
9e07f89d
NN
3031if test $ac_prog_rejected = yes; then
3032 # We found a bogon in the path, so make sure we never use it.
3033 set dummy $ac_cv_prog_CC
3034 shift
c6b750e1 3035 if test $# != 0; then
9e07f89d
NN
3036 # We chose a different compiler from the bogus one.
3037 # However, it has the same basename, so the bogon will be chosen
3038 # first if we set CC to just the basename; use the full file name.
3039 shift
c6b750e1 3040 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3041 fi
3042fi
3043fi
3044fi
c6b750e1 3045CC=$ac_cv_prog_CC
9e07f89d 3046if test -n "$CC"; then
c6b750e1
DJ
3047 echo "$as_me:$LINENO: result: $CC" >&5
3048echo "${ECHO_T}$CC" >&6
9e07f89d 3049else
c6b750e1
DJ
3050 echo "$as_me:$LINENO: result: no" >&5
3051echo "${ECHO_T}no" >&6
9e07f89d
NN
3052fi
3053
c6b750e1
DJ
3054fi
3055if test -z "$CC"; then
3056 if test -n "$ac_tool_prefix"; then
3057 for ac_prog in cl
3058 do
3059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3060set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3061echo "$as_me:$LINENO: checking for $ac_word" >&5
3062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3063if test "${ac_cv_prog_CC+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3065else
3066 if test -n "$CC"; then
3067 ac_cv_prog_CC="$CC" # Let the user override the test.
3068else
c6b750e1
DJ
3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070for as_dir in $PATH
3071do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
376a0e54 3079 fi
c6b750e1
DJ
3080done
3081done
cac3d6c4 3082
c6b750e1
DJ
3083fi
3084fi
3085CC=$ac_cv_prog_CC
3086if test -n "$CC"; then
3087 echo "$as_me:$LINENO: result: $CC" >&5
3088echo "${ECHO_T}$CC" >&6
cac3d6c4 3089else
c6b750e1
DJ
3090 echo "$as_me:$LINENO: result: no" >&5
3091echo "${ECHO_T}no" >&6
9e07f89d 3092fi
cac3d6c4 3093
c6b750e1
DJ
3094 test -n "$CC" && break
3095 done
cac3d6c4 3096fi
c6b750e1
DJ
3097if test -z "$CC"; then
3098 ac_ct_CC=$CC
3099 for ac_prog in cl
3100do
3101 # Extract the first word of "$ac_prog", so it can be a program name with args.
3102set dummy $ac_prog; ac_word=$2
3103echo "$as_me:$LINENO: checking for $ac_word" >&5
3104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3105if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3107else
c6b750e1
DJ
3108 if test -n "$ac_ct_CC"; then
3109 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3110else
c6b750e1
DJ
3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112for as_dir in $PATH
3113do
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118 ac_cv_prog_ac_ct_CC="$ac_prog"
3119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 break 2
3121 fi
3122done
3123done
3124
cac3d6c4
CM
3125fi
3126fi
c6b750e1
DJ
3127ac_ct_CC=$ac_cv_prog_ac_ct_CC
3128if test -n "$ac_ct_CC"; then
3129 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3130echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3131else
c6b750e1
DJ
3132 echo "$as_me:$LINENO: result: no" >&5
3133echo "${ECHO_T}no" >&6
cac3d6c4 3134fi
376a0e54 3135
c6b750e1
DJ
3136 test -n "$ac_ct_CC" && break
3137done
3138
3139 CC=$ac_ct_CC
3140fi
3141
3142fi
3143
3144
3145test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3146See \`config.log' for more details." >&5
3147echo "$as_me: error: no acceptable C compiler found in \$PATH
3148See \`config.log' for more details." >&2;}
3149 { (exit 1); exit 1; }; }
3150
3151# Provide some information about the compiler.
3152echo "$as_me:$LINENO:" \
3153 "checking for C compiler version" >&5
3154ac_compiler=`set X $ac_compile; echo $2`
3155{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3156 (eval $ac_compiler --version </dev/null >&5) 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }
3160{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3161 (eval $ac_compiler -v </dev/null >&5) 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }
3165{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3166 (eval $ac_compiler -V </dev/null >&5) 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }
3170
3171cat >conftest.$ac_ext <<_ACEOF
3172/* confdefs.h. */
3173_ACEOF
3174cat confdefs.h >>conftest.$ac_ext
3175cat >>conftest.$ac_ext <<_ACEOF
3176/* end confdefs.h. */
3177
3178int
3179main ()
3180{
3181
3182 ;
3183 return 0;
3184}
3185_ACEOF
3186ac_clean_files_save=$ac_clean_files
3187ac_clean_files="$ac_clean_files a.out a.exe b.out"
3188# Try to create an executable without -o first, disregard a.out.
3189# It will help us diagnose broken compilers, and finding out an intuition
3190# of exeext.
3191echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3192echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3193ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3194if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3195 (eval $ac_link_default) 2>&5
3196 ac_status=$?
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; then
3199 # Find the output, starting from the most likely. This scheme is
3200# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3201# resort.
3202
3203# Be careful to initialize this variable, since it used to be cached.
3204# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3205ac_cv_exeext=
3206# b.out is created by i960 compilers.
3207for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3208do
3209 test -f "$ac_file" || continue
3210 case $ac_file in
3211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3212 ;;
3213 conftest.$ac_ext )
3214 # This is the source file.
3215 ;;
3216 [ab].out )
3217 # We found the default executable, but exeext='' is most
3218 # certainly right.
3219 break;;
3220 *.* )
3221 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3222 # FIXME: I believe we export ac_cv_exeext for Libtool,
3223 # but it would be cool to find out if it's true. Does anybody
3224 # maintain Libtool? --akim.
3225 export ac_cv_exeext
3226 break;;
3227 * )
3228 break;;
3229 esac
3230done
3231else
3232 echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3236See \`config.log' for more details." >&5
3237echo "$as_me: error: C compiler cannot create executables
3238See \`config.log' for more details." >&2;}
3239 { (exit 77); exit 77; }; }
3240fi
3241
3242ac_exeext=$ac_cv_exeext
3243echo "$as_me:$LINENO: result: $ac_file" >&5
3244echo "${ECHO_T}$ac_file" >&6
3245
3246# Check the compiler produces executables we can run. If not, either
3247# the compiler is broken, or we cross compile.
3248echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3249echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3250# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3251# If not cross compiling, check that we can run a simple program.
3252if test "$cross_compiling" != yes; then
3253 if { ac_try='./$ac_file'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 cross_compiling=no
3260 else
3261 if test "$cross_compiling" = maybe; then
3262 cross_compiling=yes
3263 else
3264 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3265If you meant to cross compile, use \`--host'.
3266See \`config.log' for more details." >&5
3267echo "$as_me: error: cannot run C compiled programs.
3268If you meant to cross compile, use \`--host'.
3269See \`config.log' for more details." >&2;}
3270 { (exit 1); exit 1; }; }
3271 fi
3272 fi
3273fi
3274echo "$as_me:$LINENO: result: yes" >&5
3275echo "${ECHO_T}yes" >&6
3276
3277rm -f a.out a.exe conftest$ac_cv_exeext b.out
3278ac_clean_files=$ac_clean_files_save
3279# Check the compiler produces executables we can run. If not, either
3280# the compiler is broken, or we cross compile.
3281echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3282echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3283echo "$as_me:$LINENO: result: $cross_compiling" >&5
3284echo "${ECHO_T}$cross_compiling" >&6
3285
3286echo "$as_me:$LINENO: checking for suffix of executables" >&5
3287echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3289 (eval $ac_link) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; then
3293 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3294# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3295# work properly (i.e., refer to `conftest.exe'), while it won't with
3296# `rm'.
3297for ac_file in conftest.exe conftest conftest.*; do
3298 test -f "$ac_file" || continue
3299 case $ac_file in
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3301 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3302 export ac_cv_exeext
3303 break;;
3304 * ) break;;
3305 esac
3306done
3307else
3308 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3309See \`config.log' for more details." >&5
3310echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3311See \`config.log' for more details." >&2;}
3312 { (exit 1); exit 1; }; }
3313fi
3314
3315rm -f conftest$ac_cv_exeext
3316echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3317echo "${ECHO_T}$ac_cv_exeext" >&6
3318
3319rm -f conftest.$ac_ext
3320EXEEXT=$ac_cv_exeext
3321ac_exeext=$EXEEXT
3322echo "$as_me:$LINENO: checking for suffix of object files" >&5
3323echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3324if test "${ac_cv_objext+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3326else
3327 cat >conftest.$ac_ext <<_ACEOF
3328/* confdefs.h. */
3329_ACEOF
3330cat confdefs.h >>conftest.$ac_ext
3331cat >>conftest.$ac_ext <<_ACEOF
3332/* end confdefs.h. */
3333
3334int
3335main ()
3336{
3337
3338 ;
3339 return 0;
3340}
3341_ACEOF
3342rm -f conftest.o conftest.obj
3343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3344 (eval $ac_compile) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; then
3348 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3349 case $ac_file in
3350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3351 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3352 break;;
3353 esac
3354done
cac3d6c4 3355else
c6b750e1
DJ
3356 echo "$as_me: failed program was:" >&5
3357sed 's/^/| /' conftest.$ac_ext >&5
3358
3359{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3360See \`config.log' for more details." >&5
3361echo "$as_me: error: cannot compute suffix of object files: cannot compile
3362See \`config.log' for more details." >&2;}
3363 { (exit 1); exit 1; }; }
3364fi
3365
3366rm -f conftest.$ac_cv_objext conftest.$ac_ext
3367fi
3368echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3369echo "${ECHO_T}$ac_cv_objext" >&6
3370OBJEXT=$ac_cv_objext
3371ac_objext=$OBJEXT
3372echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3373echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3374if test "${ac_cv_c_compiler_gnu+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376else
3377 cat >conftest.$ac_ext <<_ACEOF
3378/* confdefs.h. */
3379_ACEOF
3380cat confdefs.h >>conftest.$ac_ext
3381cat >>conftest.$ac_ext <<_ACEOF
3382/* end confdefs.h. */
3383
3384int
3385main ()
3386{
3387#ifndef __GNUC__
3388 choke me
3389#endif
3390
3391 ;
3392 return 0;
3393}
3394_ACEOF
3395rm -f conftest.$ac_objext
3396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
3398 ac_status=$?
3399 grep -v '^ *+' conftest.er1 >conftest.err
3400 rm -f conftest.er1
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try='test -z "$ac_c_werror_flag"
3405 || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 (eval $ac_try) 2>&5
3414 ac_status=$?
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3417 ac_compiler_gnu=yes
3418else
3419 echo "$as_me: failed program was:" >&5
3420sed 's/^/| /' conftest.$ac_ext >&5
3421
3422ac_compiler_gnu=no
3423fi
3424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3425ac_cv_c_compiler_gnu=$ac_compiler_gnu
3426
3427fi
3428echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3429echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3430GCC=`test $ac_compiler_gnu = yes && echo yes`
3431ac_test_CFLAGS=${CFLAGS+set}
3432ac_save_CFLAGS=$CFLAGS
3433CFLAGS="-g"
3434echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3435echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3436if test "${ac_cv_prog_cc_g+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438else
3439 cat >conftest.$ac_ext <<_ACEOF
3440/* confdefs.h. */
3441_ACEOF
3442cat confdefs.h >>conftest.$ac_ext
3443cat >>conftest.$ac_ext <<_ACEOF
3444/* end confdefs.h. */
3445
3446int
3447main ()
3448{
3449
3450 ;
3451 return 0;
3452}
3453_ACEOF
3454rm -f conftest.$ac_objext
3455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3456 (eval $ac_compile) 2>conftest.er1
3457 ac_status=$?
3458 grep -v '^ *+' conftest.er1 >conftest.err
3459 rm -f conftest.er1
3460 cat conftest.err >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); } &&
3463 { ac_try='test -z "$ac_c_werror_flag"
3464 || test ! -s conftest.err'
3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466 (eval $ac_try) 2>&5
3467 ac_status=$?
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; } &&
3470 { ac_try='test -s conftest.$ac_objext'
3471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 (eval $ac_try) 2>&5
3473 ac_status=$?
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; }; then
9e07f89d
NN
3476 ac_cv_prog_cc_g=yes
3477else
c6b750e1
DJ
3478 echo "$as_me: failed program was:" >&5
3479sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3480
c6b750e1 3481ac_cv_prog_cc_g=no
376a0e54 3482fi
c6b750e1
DJ
3483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3484fi
3485echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3486echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3487if test "$ac_test_CFLAGS" = set; then
c6b750e1 3488 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3489elif test $ac_cv_prog_cc_g = yes; then
3490 if test "$GCC" = yes; then
3491 CFLAGS="-g -O2"
3492 else
3493 CFLAGS="-g"
3494 fi
3495else
3496 if test "$GCC" = yes; then
3497 CFLAGS="-O2"
3498 else
3499 CFLAGS=
3500 fi
3501fi
c6b750e1
DJ
3502echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3503echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3504if test "${ac_cv_prog_cc_stdc+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506else
3507 ac_cv_prog_cc_stdc=no
3508ac_save_CC=$CC
3509cat >conftest.$ac_ext <<_ACEOF
3510/* confdefs.h. */
3511_ACEOF
3512cat confdefs.h >>conftest.$ac_ext
3513cat >>conftest.$ac_ext <<_ACEOF
3514/* end confdefs.h. */
3515#include <stdarg.h>
3516#include <stdio.h>
3517#include <sys/types.h>
3518#include <sys/stat.h>
3519/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3520struct buf { int x; };
3521FILE * (*rcsopen) (struct buf *, struct stat *, int);
3522static char *e (p, i)
3523 char **p;
3524 int i;
3525{
3526 return p[i];
3527}
3528static char *f (char * (*g) (char **, int), char **p, ...)
3529{
3530 char *s;
3531 va_list v;
3532 va_start (v,p);
3533 s = g (p, va_arg (v,int));
3534 va_end (v);
3535 return s;
3536}
3537
3538/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3539 function prototypes and stuff, but not '\xHH' hex character constants.
3540 These don't provoke an error unfortunately, instead are silently treated
3541 as 'x'. The following induces an error, until -std1 is added to get
3542 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3543 array size at least. It's necessary to write '\x00'==0 to get something
3544 that's true only with -std1. */
3545int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3546
3547int test (int i, double x);
3548struct s1 {int (*f) (int a);};
3549struct s2 {int (*f) (double a);};
3550int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3551int argc;
3552char **argv;
3553int
3554main ()
3555{
3556return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3557 ;
3558 return 0;
3559}
3560_ACEOF
3561# Don't try gcc -ansi; that turns off useful extensions and
3562# breaks some systems' header files.
3563# AIX -qlanglvl=ansi
3564# Ultrix and OSF/1 -std1
3565# HP-UX 10.20 and later -Ae
3566# HP-UX older versions -Aa -D_HPUX_SOURCE
3567# SVR4 -Xc -D__EXTENSIONS__
3568for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3569do
3570 CC="$ac_save_CC $ac_arg"
3571 rm -f conftest.$ac_objext
3572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3573 (eval $ac_compile) 2>conftest.er1
3574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } &&
3580 { ac_try='test -z "$ac_c_werror_flag"
3581 || test ! -s conftest.err'
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); }; } &&
3587 { ac_try='test -s conftest.$ac_objext'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 (eval $ac_try) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; }; then
3593 ac_cv_prog_cc_stdc=$ac_arg
3594break
3595else
3596 echo "$as_me: failed program was:" >&5
3597sed 's/^/| /' conftest.$ac_ext >&5
3598
3599fi
3600rm -f conftest.err conftest.$ac_objext
3601done
3602rm -f conftest.$ac_ext conftest.$ac_objext
3603CC=$ac_save_CC
3604
3605fi
3606
3607case "x$ac_cv_prog_cc_stdc" in
3608 x|xno)
3609 echo "$as_me:$LINENO: result: none needed" >&5
3610echo "${ECHO_T}none needed" >&6 ;;
3611 *)
3612 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3613echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3614 CC="$CC $ac_cv_prog_cc_stdc" ;;
3615esac
3616
3617# Some people use a C++ compiler to compile C. Since we use `exit',
3618# in C++ we need to declare it. In case someone uses the same compiler
3619# for both compiling C and C++ we need to have the C++ compiler decide
3620# the declaration of exit, since it's the most demanding environment.
3621cat >conftest.$ac_ext <<_ACEOF
3622#ifndef __cplusplus
3623 choke me
3624#endif
3625_ACEOF
3626rm -f conftest.$ac_objext
3627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3628 (eval $ac_compile) 2>conftest.er1
3629 ac_status=$?
3630 grep -v '^ *+' conftest.er1 >conftest.err
3631 rm -f conftest.er1
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } &&
3635 { ac_try='test -z "$ac_c_werror_flag"
3636 || test ! -s conftest.err'
3637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 (eval $ac_try) 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; } &&
3642 { ac_try='test -s conftest.$ac_objext'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 (eval $ac_try) 2>&5
3645 ac_status=$?
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3648 for ac_declaration in \
3649 '' \
3650 'extern "C" void std::exit (int) throw (); using std::exit;' \
3651 'extern "C" void std::exit (int); using std::exit;' \
3652 'extern "C" void exit (int) throw ();' \
3653 'extern "C" void exit (int);' \
3654 'void exit (int);'
3655do
3656 cat >conftest.$ac_ext <<_ACEOF
3657/* confdefs.h. */
3658_ACEOF
3659cat confdefs.h >>conftest.$ac_ext
3660cat >>conftest.$ac_ext <<_ACEOF
3661/* end confdefs.h. */
3662$ac_declaration
3663#include <stdlib.h>
3664int
3665main ()
3666{
3667exit (42);
3668 ;
3669 return 0;
3670}
3671_ACEOF
3672rm -f conftest.$ac_objext
3673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3674 (eval $ac_compile) 2>conftest.er1
3675 ac_status=$?
3676 grep -v '^ *+' conftest.er1 >conftest.err
3677 rm -f conftest.er1
3678 cat conftest.err >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); } &&
3681 { ac_try='test -z "$ac_c_werror_flag"
3682 || test ! -s conftest.err'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 (eval $ac_try) 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; } &&
3688 { ac_try='test -s conftest.$ac_objext'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 (eval $ac_try) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 :
3695else
3696 echo "$as_me: failed program was:" >&5
3697sed 's/^/| /' conftest.$ac_ext >&5
3698
3699continue
3700fi
3701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3702 cat >conftest.$ac_ext <<_ACEOF
3703/* confdefs.h. */
3704_ACEOF
3705cat confdefs.h >>conftest.$ac_ext
3706cat >>conftest.$ac_ext <<_ACEOF
3707/* end confdefs.h. */
3708$ac_declaration
3709int
3710main ()
3711{
3712exit (42);
3713 ;
3714 return 0;
3715}
3716_ACEOF
3717rm -f conftest.$ac_objext
3718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3719 (eval $ac_compile) 2>conftest.er1
3720 ac_status=$?
3721 grep -v '^ *+' conftest.er1 >conftest.err
3722 rm -f conftest.er1
3723 cat conftest.err >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } &&
3726 { ac_try='test -z "$ac_c_werror_flag"
3727 || test ! -s conftest.err'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 (eval $ac_try) 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; } &&
3733 { ac_try='test -s conftest.$ac_objext'
3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 (eval $ac_try) 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; }; then
3739 break
3740else
3741 echo "$as_me: failed program was:" >&5
3742sed 's/^/| /' conftest.$ac_ext >&5
3743
3744fi
3745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3746done
3747rm -f conftest*
3748if test -n "$ac_declaration"; then
3749 echo '#ifdef __cplusplus' >>confdefs.h
3750 echo $ac_declaration >>confdefs.h
3751 echo '#endif' >>confdefs.h
3752fi
3753
3754else
3755 echo "$as_me: failed program was:" >&5
3756sed 's/^/| /' conftest.$ac_ext >&5
3757
3758fi
3759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3760ac_ext=c
3761ac_cpp='$CPP $CPPFLAGS'
3762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3765
18f6b6ee
PB
3766ac_ext=cc
3767ac_cpp='$CXXCPP $CPPFLAGS'
3768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3771if test -n "$ac_tool_prefix"; then
3772 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3773 do
3774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3775set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3776echo "$as_me:$LINENO: checking for $ac_word" >&5
3777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3778if test "${ac_cv_prog_CXX+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3780else
3781 if test -n "$CXX"; then
3782 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3783else
3784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785for as_dir in $PATH
3786do
3787 IFS=$as_save_IFS
3788 test -z "$as_dir" && as_dir=.
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3791 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3793 break 2
3794 fi
3795done
3796done
512b7dfb 3797
18f6b6ee
PB
3798fi
3799fi
3800CXX=$ac_cv_prog_CXX
3801if test -n "$CXX"; then
3802 echo "$as_me:$LINENO: result: $CXX" >&5
3803echo "${ECHO_T}$CXX" >&6
3804else
3805 echo "$as_me:$LINENO: result: no" >&5
3806echo "${ECHO_T}no" >&6
3807fi
3808
3809 test -n "$CXX" && break
3810 done
3811fi
3812if test -z "$CXX"; then
3813 ac_ct_CXX=$CXX
3814 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3815do
3816 # Extract the first word of "$ac_prog", so it can be a program name with args.
3817set dummy $ac_prog; ac_word=$2
3818echo "$as_me:$LINENO: checking for $ac_word" >&5
3819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3820if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3822else
3823 if test -n "$ac_ct_CXX"; then
3824 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3825else
3826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827for as_dir in $PATH
3828do
3829 IFS=$as_save_IFS
3830 test -z "$as_dir" && as_dir=.
3831 for ac_exec_ext in '' $ac_executable_extensions; do
3832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3833 ac_cv_prog_ac_ct_CXX="$ac_prog"
3834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3835 break 2
512b7dfb 3836 fi
18f6b6ee
PB
3837done
3838done
512b7dfb 3839
18f6b6ee
PB
3840fi
3841fi
3842ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3843if test -n "$ac_ct_CXX"; then
3844 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3845echo "${ECHO_T}$ac_ct_CXX" >&6
3846else
3847 echo "$as_me:$LINENO: result: no" >&5
3848echo "${ECHO_T}no" >&6
3849fi
3850
3851 test -n "$ac_ct_CXX" && break
3852done
3853test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3854
3855 CXX=$ac_ct_CXX
3856fi
3857
3858
3859# Provide some information about the compiler.
3860echo "$as_me:$LINENO:" \
3861 "checking for C++ compiler version" >&5
3862ac_compiler=`set X $ac_compile; echo $2`
3863{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3864 (eval $ac_compiler --version </dev/null >&5) 2>&5
3865 ac_status=$?
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }
3868{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3869 (eval $ac_compiler -v </dev/null >&5) 2>&5
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }
3873{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3874 (eval $ac_compiler -V </dev/null >&5) 2>&5
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }
3878
3879echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3880echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3881if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883else
3884 cat >conftest.$ac_ext <<_ACEOF
3885/* confdefs.h. */
3886_ACEOF
3887cat confdefs.h >>conftest.$ac_ext
3888cat >>conftest.$ac_ext <<_ACEOF
3889/* end confdefs.h. */
3890
3891int
3892main ()
3893{
3894#ifndef __GNUC__
3895 choke me
3896#endif
3897
3898 ;
3899 return 0;
3900}
3901_ACEOF
3902rm -f conftest.$ac_objext
3903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3904 (eval $ac_compile) 2>conftest.er1
3905 ac_status=$?
3906 grep -v '^ *+' conftest.er1 >conftest.err
3907 rm -f conftest.er1
3908 cat conftest.err >&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } &&
3911 { ac_try='test -z "$ac_cxx_werror_flag"
3912 || test ! -s conftest.err'
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 (eval $ac_try) 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; } &&
3918 { ac_try='test -s conftest.$ac_objext'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
3924 ac_compiler_gnu=yes
3925else
3926 echo "$as_me: failed program was:" >&5
3927sed 's/^/| /' conftest.$ac_ext >&5
3928
3929ac_compiler_gnu=no
3930fi
3931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3932ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3933
3934fi
3935echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3936echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3937GXX=`test $ac_compiler_gnu = yes && echo yes`
3938ac_test_CXXFLAGS=${CXXFLAGS+set}
3939ac_save_CXXFLAGS=$CXXFLAGS
3940CXXFLAGS="-g"
3941echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3942echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3943if test "${ac_cv_prog_cxx_g+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945else
3946 cat >conftest.$ac_ext <<_ACEOF
3947/* confdefs.h. */
3948_ACEOF
3949cat confdefs.h >>conftest.$ac_ext
3950cat >>conftest.$ac_ext <<_ACEOF
3951/* end confdefs.h. */
3952
3953int
3954main ()
3955{
3956
3957 ;
3958 return 0;
3959}
3960_ACEOF
3961rm -f conftest.$ac_objext
3962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3963 (eval $ac_compile) 2>conftest.er1
3964 ac_status=$?
3965 grep -v '^ *+' conftest.er1 >conftest.err
3966 rm -f conftest.er1
3967 cat conftest.err >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } &&
3970 { ac_try='test -z "$ac_cxx_werror_flag"
3971 || test ! -s conftest.err'
3972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973 (eval $ac_try) 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; } &&
3977 { ac_try='test -s conftest.$ac_objext'
3978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979 (eval $ac_try) 2>&5
3980 ac_status=$?
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); }; }; then
3983 ac_cv_prog_cxx_g=yes
3984else
3985 echo "$as_me: failed program was:" >&5
3986sed 's/^/| /' conftest.$ac_ext >&5
3987
3988ac_cv_prog_cxx_g=no
3989fi
3990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3991fi
3992echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3993echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3994if test "$ac_test_CXXFLAGS" = set; then
3995 CXXFLAGS=$ac_save_CXXFLAGS
3996elif test $ac_cv_prog_cxx_g = yes; then
3997 if test "$GXX" = yes; then
3998 CXXFLAGS="-g -O2"
3999 else
4000 CXXFLAGS="-g"
4001 fi
4002else
4003 if test "$GXX" = yes; then
4004 CXXFLAGS="-O2"
4005 else
4006 CXXFLAGS=
4007 fi
4008fi
4009for ac_declaration in \
4010 '' \
4011 'extern "C" void std::exit (int) throw (); using std::exit;' \
4012 'extern "C" void std::exit (int); using std::exit;' \
4013 'extern "C" void exit (int) throw ();' \
4014 'extern "C" void exit (int);' \
4015 'void exit (int);'
4016do
4017 cat >conftest.$ac_ext <<_ACEOF
4018/* confdefs.h. */
4019_ACEOF
4020cat confdefs.h >>conftest.$ac_ext
4021cat >>conftest.$ac_ext <<_ACEOF
4022/* end confdefs.h. */
4023$ac_declaration
4024#include <stdlib.h>
4025int
4026main ()
4027{
4028exit (42);
4029 ;
4030 return 0;
4031}
4032_ACEOF
4033rm -f conftest.$ac_objext
4034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035 (eval $ac_compile) 2>conftest.er1
4036 ac_status=$?
4037 grep -v '^ *+' conftest.er1 >conftest.err
4038 rm -f conftest.er1
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -z "$ac_cxx_werror_flag"
4043 || test ! -s conftest.err'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 (eval $ac_try) 2>&5
4046 ac_status=$?
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; } &&
4049 { ac_try='test -s conftest.$ac_objext'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 (eval $ac_try) 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; }; then
4055 :
4056else
4057 echo "$as_me: failed program was:" >&5
4058sed 's/^/| /' conftest.$ac_ext >&5
4059
4060continue
4061fi
4062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4063 cat >conftest.$ac_ext <<_ACEOF
4064/* confdefs.h. */
4065_ACEOF
4066cat confdefs.h >>conftest.$ac_ext
4067cat >>conftest.$ac_ext <<_ACEOF
4068/* end confdefs.h. */
4069$ac_declaration
4070int
4071main ()
4072{
4073exit (42);
4074 ;
4075 return 0;
4076}
4077_ACEOF
4078rm -f conftest.$ac_objext
4079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4080 (eval $ac_compile) 2>conftest.er1
4081 ac_status=$?
4082 grep -v '^ *+' conftest.er1 >conftest.err
4083 rm -f conftest.er1
4084 cat conftest.err >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } &&
4087 { ac_try='test -z "$ac_cxx_werror_flag"
4088 || test ! -s conftest.err'
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); }; } &&
4094 { ac_try='test -s conftest.$ac_objext'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096 (eval $ac_try) 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; }; then
4100 break
4101else
4102 echo "$as_me: failed program was:" >&5
4103sed 's/^/| /' conftest.$ac_ext >&5
4104
4105fi
4106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4107done
4108rm -f conftest*
4109if test -n "$ac_declaration"; then
4110 echo '#ifdef __cplusplus' >>confdefs.h
4111 echo $ac_declaration >>confdefs.h
4112 echo '#endif' >>confdefs.h
4113fi
4114
4115ac_ext=c
4116ac_cpp='$CPP $CPPFLAGS'
4117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120
4121
4122# We must set the default linker to the linker used by gcc for the correct
4123# operation of libtool. If LD is not defined and we are using gcc, try to
4124# set the LD default to the ld used by gcc.
4125if test -z "$LD"; then
4126 if test "$GCC" = yes; then
4127 case $build in
4128 *-*-mingw*)
4129 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4130 *)
4131 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4132 esac
4133 case $gcc_prog_ld in
4134 # Accept absolute paths.
4135 [\\/]* | [A-Za-z]:[\\/]*)
4136 LD="$gcc_prog_ld" ;;
4137 esac
4138 fi
512b7dfb
PB
4139fi
4140
4141
4142
4143
c6b750e1 4144if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4145 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4146set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4147echo "$as_me:$LINENO: checking for $ac_word" >&5
4148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4149if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4150 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4151else
512b7dfb
PB
4152 if test -n "$GNATBIND"; then
4153 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4154else
c6b750e1
DJ
4155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156for as_dir in $PATH
4157do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4162 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4165 fi
4166done
4167done
4168
9e07f89d
NN
4169fi
4170fi
512b7dfb
PB
4171GNATBIND=$ac_cv_prog_GNATBIND
4172if test -n "$GNATBIND"; then
4173 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4174echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4175else
c6b750e1
DJ
4176 echo "$as_me:$LINENO: result: no" >&5
4177echo "${ECHO_T}no" >&6
9e07f89d
NN
4178fi
4179
c6b750e1 4180fi
512b7dfb
PB
4181if test -z "$ac_cv_prog_GNATBIND"; then
4182 ac_ct_GNATBIND=$GNATBIND
4183 # Extract the first word of "gnatbind", so it can be a program name with args.
4184set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4185echo "$as_me:$LINENO: checking for $ac_word" >&5
4186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4187if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4188 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4189else
512b7dfb
PB
4190 if test -n "$ac_ct_GNATBIND"; then
4191 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4192else
c6b750e1
DJ
4193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194for as_dir in $PATH
4195do
4196 IFS=$as_save_IFS
4197 test -z "$as_dir" && as_dir=.
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4200 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4202 break 2
4203 fi
4204done
4205done
4206
512b7dfb 4207 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4208fi
4209fi
512b7dfb
PB
4210ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4211if test -n "$ac_ct_GNATBIND"; then
4212 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4213echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4214else
c6b750e1
DJ
4215 echo "$as_me:$LINENO: result: no" >&5
4216echo "${ECHO_T}no" >&6
9e07f89d
NN
4217fi
4218
512b7dfb 4219 GNATBIND=$ac_ct_GNATBIND
24ff9987 4220else
512b7dfb 4221 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4222fi
4223
7df2cd5d 4224if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4225 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4226set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4227echo "$as_me:$LINENO: checking for $ac_word" >&5
4228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4229if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4231else
512b7dfb
PB
4232 if test -n "$GNATMAKE"; then
4233 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4234else
4235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH
4237do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4242 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4245 fi
4246done
4247done
4248
4249fi
4250fi
512b7dfb
PB
4251GNATMAKE=$ac_cv_prog_GNATMAKE
4252if test -n "$GNATMAKE"; then
4253 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4254echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4255else
4256 echo "$as_me:$LINENO: result: no" >&5
4257echo "${ECHO_T}no" >&6
4258fi
4259
4260fi
512b7dfb
PB
4261if test -z "$ac_cv_prog_GNATMAKE"; then
4262 ac_ct_GNATMAKE=$GNATMAKE
4263 # Extract the first word of "gnatmake", so it can be a program name with args.
4264set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4265echo "$as_me:$LINENO: checking for $ac_word" >&5
4266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4267if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4269else
512b7dfb
PB
4270 if test -n "$ac_ct_GNATMAKE"; then
4271 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4272else
4273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH
4275do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4280 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 break 2
4283 fi
4284done
4285done
4286
512b7dfb 4287 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4288fi
4289fi
512b7dfb
PB
4290ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4291if test -n "$ac_ct_GNATMAKE"; then
4292 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4293echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4294else
4295 echo "$as_me:$LINENO: result: no" >&5
4296echo "${ECHO_T}no" >&6
4297fi
4298
512b7dfb 4299 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4300else
512b7dfb 4301 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4302fi
4303
c6b750e1
DJ
4304echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4305echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4306if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4308else
4309 cat >conftest.adb <<EOF
4310procedure conftest is begin null; end conftest;
4311EOF
4312acx_cv_cc_gcc_supports_ada=no
4313# There is a bug in old released versions of GCC which causes the
4314# driver to exit successfully when the appropriate language module
4315# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4316# Therefore we must check for the error message as well as an
4317# unsuccessful exit.
b8908782
DD
4318# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4319# given a .adb file, but produce no object file. So we must check
4320# if an object file was really produced to guard against this.
9e07f89d 4321errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4322if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4323 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4324fi
4325rm -f conftest.*
4326fi
c6b750e1
DJ
4327echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4328echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4329
512b7dfb 4330if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4331 have_gnat=yes
4332else
4333 have_gnat=no
4334fi
4335
c6b750e1
DJ
4336echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4337echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4338if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4340else
4341 echo abfoo >t1
4342 echo cdfoo >t2
4343 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4344 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4345 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4346 :
4347 else
4348 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4349 fi
4350 fi
b8908782
DD
4351 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4352 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4353 :
b8908782
DD
4354 else
4355 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4356 fi
4357 fi
4358 rm t1 t2
4359
4360fi
c6b750e1
DJ
4361echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4362echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4363do_compare="$gcc_cv_prog_cmp_skip"
4364
4365
9e07f89d 4366
11b04d1f 4367# Check for GMP and MPFR
4b900473 4368gmplibs="-lmpfr -lgmp"
4b1cb4fe 4369gmpinc=
4b900473
PB
4370have_gmp=no
4371
11b04d1f
DD
4372# Specify a location for mpfr
4373# check for this first so it ends up on the link line before gmp.
c6b750e1 4374
11b04d1f
DD
4375# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4376if test "${with_mpfr_dir+set}" = set; then
4377 withval="$with_mpfr_dir"
c6b750e1
DJ
4378 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4379Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4380echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4381Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4382 { (exit 1); exit 1; }; }
4383fi;
11b04d1f
DD
4384
4385
11b04d1f
DD
4386# Check whether --with-mpfr or --without-mpfr was given.
4387if test "${with_mpfr+set}" = set; then
4388 withval="$with_mpfr"
c6b750e1
DJ
4389
4390fi;
11b04d1f 4391
8a0d8a5c
PB
4392# Check whether --with-mpfr_include or --without-mpfr_include was given.
4393if test "${with_mpfr_include+set}" = set; then
4394 withval="$with_mpfr_include"
c6b750e1
DJ
4395
4396fi;
8a0d8a5c
PB
4397
4398# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4399if test "${with_mpfr_lib+set}" = set; then
4400 withval="$with_mpfr_lib"
8a0d8a5c 4401
c6b750e1 4402fi;
11b04d1f
DD
4403
4404if test "x$with_mpfr" != x; then
4405 gmplibs="-L$with_mpfr/lib $gmplibs"
4406 gmpinc="-I$with_mpfr/include"
4407fi
8a0d8a5c
PB
4408if test "x$with_mpfr_include" != x; then
4409 gmpinc="-I$with_mpfr_include"
4410fi
4411if test "x$with_mpfr_lib" != x; then
4412 gmplibs="-L$with_mpfr_lib $gmplibs"
4413fi
4b900473
PB
4414if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4415 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4416 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4417 # Do not test the mpfr version. Assume that it is sufficient, since
4418 # it is in the source tree, and the library has not been built yet
4419 # but it would be included on the link line in the version check below
4420 # hence making the test fail.
4421 have_gmp=yes
4422fi
11b04d1f 4423
4b1cb4fe 4424# Specify a location for gmp
c6b750e1 4425
4b1cb4fe
DD
4426# Check whether --with-gmp-dir or --without-gmp-dir was given.
4427if test "${with_gmp_dir+set}" = set; then
4428 withval="$with_gmp_dir"
c6b750e1
DJ
4429 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4430Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4431echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4432Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4433 { (exit 1); exit 1; }; }
4434fi;
4b1cb4fe
DD
4435
4436
4b1cb4fe
DD
4437# Check whether --with-gmp or --without-gmp was given.
4438if test "${with_gmp+set}" = set; then
4439 withval="$with_gmp"
c6b750e1
DJ
4440
4441fi;
4b1cb4fe 4442
8a0d8a5c
PB
4443# Check whether --with-gmp_include or --without-gmp_include was given.
4444if test "${with_gmp_include+set}" = set; then
4445 withval="$with_gmp_include"
c6b750e1
DJ
4446
4447fi;
8a0d8a5c
PB
4448
4449# Check whether --with-gmp_lib or --without-gmp_lib was given.
4450if test "${with_gmp_lib+set}" = set; then
4451 withval="$with_gmp_lib"
8a0d8a5c 4452
c6b750e1 4453fi;
8a0d8a5c 4454
4b1cb4fe 4455
11b04d1f
DD
4456if test "x$with_gmp" != x; then
4457 gmplibs="-L$with_gmp/lib $gmplibs"
4458 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4459fi
8a0d8a5c
PB
4460if test "x$with_gmp_include" != x; then
4461 gmpinc="-I$with_gmp_include $gmpinc"
4462fi
4463if test "x$with_gmp_lib" != x; then
4464 gmplibs="-L$with_gmp_lib $gmplibs"
4465fi
4b900473
PB
4466if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4467 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4468 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4469 # Do not test the gmp version. Assume that it is sufficient, since
4470 # it is in the source tree, and the library has not been built yet
4471 # but it would be included on the link line in the version check below
4472 # hence making the test fail.
4473 have_gmp=yes
4474fi
4b1cb4fe 4475
ceb92e78 4476if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4477 have_gmp=yes
4478 saved_CFLAGS="$CFLAGS"
4479 CFLAGS="$CFLAGS $gmpinc"
4480 # Check GMP actually works
c6b750e1
DJ
4481 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4482echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4483
4484cat >conftest.$ac_ext <<_ACEOF
4485/* confdefs.h. */
4486_ACEOF
4487cat confdefs.h >>conftest.$ac_ext
4488cat >>conftest.$ac_ext <<_ACEOF
4489/* end confdefs.h. */
4b1cb4fe 4490#include "gmp.h"
c6b750e1
DJ
4491int
4492main ()
4493{
4b1cb4fe 4494
4b900473
PB
4495 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4496 choke me
4497 #endif
c6b750e1
DJ
4498
4499 ;
4500 return 0;
4501}
4502_ACEOF
4503rm -f conftest.$ac_objext
4504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4505 (eval $ac_compile) 2>conftest.er1
4506 ac_status=$?
4507 grep -v '^ *+' conftest.er1 >conftest.err
4508 rm -f conftest.er1
4509 cat conftest.err >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } &&
4512 { ac_try='test -z "$ac_c_werror_flag"
4513 || test ! -s conftest.err'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 (eval $ac_try) 2>&5
4516 ac_status=$?
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; } &&
4519 { ac_try='test -s conftest.$ac_objext'
4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 (eval $ac_try) 2>&5
4522 ac_status=$?
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; }; then
4525 echo "$as_me:$LINENO: result: yes" >&5
4526echo "${ECHO_T}yes" >&6
4527else
4528 echo "$as_me: failed program was:" >&5
4529sed 's/^/| /' conftest.$ac_ext >&5
4530
4531echo "$as_me:$LINENO: result: no" >&5
4532echo "${ECHO_T}no" >&6; have_gmp=no
4533fi
4534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4535
4b900473
PB
4536 if test x"$have_gmp" = xyes; then
4537 saved_LIBS="$LIBS"
4538 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4539 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4540echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4541 cat >conftest.$ac_ext <<_ACEOF
4542/* confdefs.h. */
4543_ACEOF
4544cat confdefs.h >>conftest.$ac_ext
4545cat >>conftest.$ac_ext <<_ACEOF
4546/* end confdefs.h. */
9b134994 4547#include <gmp.h>
4b900473 4548 #include <mpfr.h>
c6b750e1
DJ
4549int
4550main ()
4551{
9b134994 4552
4b900473
PB
4553 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4554 choke me
4555 #endif
a3ca38d2
DD
4556 mpfr_t n;
4557 mpfr_t x;
4b900473 4558 int t;
a3ca38d2
DD
4559 mpfr_init (n);
4560 mpfr_init (x);
4b900473
PB
4561 mpfr_atan2 (n, n, x, GMP_RNDN);
4562 mpfr_erfc (n, x, GMP_RNDN);
4563 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4564
4565 ;
4566 return 0;
4567}
4568_ACEOF
4569rm -f conftest.$ac_objext conftest$ac_exeext
4570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4571 (eval $ac_link) 2>conftest.er1
4572 ac_status=$?
4573 grep -v '^ *+' conftest.er1 >conftest.err
4574 rm -f conftest.er1
4575 cat conftest.err >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } &&
4578 { ac_try='test -z "$ac_c_werror_flag"
4579 || test ! -s conftest.err'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 (eval $ac_try) 2>&5
4582 ac_status=$?
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; } &&
4585 { ac_try='test -s conftest$ac_exeext'
4586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587 (eval $ac_try) 2>&5
4588 ac_status=$?
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); }; }; then
4591 cat >conftest.$ac_ext <<_ACEOF
4592/* confdefs.h. */
4593_ACEOF
4594cat confdefs.h >>conftest.$ac_ext
4595cat >>conftest.$ac_ext <<_ACEOF
4596/* end confdefs.h. */
4b1cb4fe 4597#include <gmp.h>
4b900473 4598 #include <mpfr.h>
c6b750e1
DJ
4599int
4600main ()
4601{
9dbaa842 4602
4b900473
PB
4603 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4604 choke me
4605 #endif
4606 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4607
4608 ;
4609 return 0;
4610}
4611_ACEOF
4612rm -f conftest.$ac_objext conftest$ac_exeext
4613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4614 (eval $ac_link) 2>conftest.er1
4615 ac_status=$?
4616 grep -v '^ *+' conftest.er1 >conftest.err
4617 rm -f conftest.er1
4618 cat conftest.err >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } &&
4621 { ac_try='test -z "$ac_c_werror_flag"
4622 || test ! -s conftest.err'
4623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 (eval $ac_try) 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; } &&
4628 { ac_try='test -s conftest$ac_exeext'
4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 (eval $ac_try) 2>&5
4631 ac_status=$?
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
4634 echo "$as_me:$LINENO: result: yes" >&5
4635echo "${ECHO_T}yes" >&6
4636else
4637 echo "$as_me: failed program was:" >&5
4638sed 's/^/| /' conftest.$ac_ext >&5
4639
4640echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4641echo "${ECHO_T}buggy but acceptable" >&6
4642fi
4643rm -f conftest.err conftest.$ac_objext \
4644 conftest$ac_exeext conftest.$ac_ext
4645else
4646 echo "$as_me: failed program was:" >&5
4647sed 's/^/| /' conftest.$ac_ext >&5
4648
4649echo "$as_me:$LINENO: result: no" >&5
4650echo "${ECHO_T}no" >&6; have_gmp=no
4651fi
4652rm -f conftest.err conftest.$ac_objext \
4653 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4654 LIBS="$saved_LIBS"
4655 fi
4656 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4657
4b900473 4658 if test x$have_gmp != xyes; then
c6b750e1
DJ
4659 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4660Try the --with-gmp and/or --with-mpfr options to specify their locations.
4661Copies of these libraries' source code can be found at their respective
4662hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4663See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4664If you obtained GMP and/or MPFR from a vendor distribution package, make
4665sure that you have installed both the libraries and the header files.
4666They may be located in separate packages." >&5
4667echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
9dbaa842
DD
4668Try the --with-gmp and/or --with-mpfr options to specify their locations.
4669Copies of these libraries' source code can be found at their respective
4670hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4671See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4672If you obtained GMP and/or MPFR from a vendor distribution package, make
4673sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4674They may be located in separate packages." >&2;}
4675 { (exit 1); exit 1; }; }
4b900473 4676 fi
9dbaa842
DD
4677fi
4678
11b04d1f 4679# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4680
4681
4682
947f426e 4683# By default, C is the only stage 1 language.
9b134994 4684stage1_languages=,c,
1d39f329 4685
9e07f89d
NN
4686# Figure out what language subdirectories are present.
4687# Look if the user specified --enable-languages="..."; if not, use
4688# the environment variable $LANGUAGES if defined. $LANGUAGES might
4689# go away some day.
4690# NB: embedded tabs in this IF block -- do not untabify
4691if test -d ${srcdir}/gcc; then
4692 if test x"${enable_languages+set}" != xset; then
4693 if test x"${LANGUAGES+set}" = xset; then
4694 enable_languages="${LANGUAGES}"
4695 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4696 else
4697 enable_languages=all
4698 fi
4699 else
4700 if test x"${enable_languages}" = x ||
4701 test x"${enable_languages}" = xyes;
4702 then
4703 echo configure.in: --enable-languages needs at least one language argument 1>&2
4704 exit 1
4705 fi
4706 fi
4707 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4708
096f7d00
DE
4709 # 'f95' is the old name for the 'fortran' language. We issue a warning
4710 # and make the substitution.
4711 case ,${enable_languages}, in
4712 *,f95,*)
4713 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4714 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4715 ;;
4716 esac
4717
9e07f89d
NN
4718 # First scan to see if an enabled language requires some other language.
4719 # We assume that a given config-lang.in will list all the language
4720 # front ends it requires, even if some are required indirectly.
4721 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4722 case ${lang_frag} in
4723 ..) ;;
4724 # The odd quoting in the next line works around
4725 # an apparent bug in bash 1.12 on linux.
4726 ${srcdir}/gcc/[*]/config-lang.in) ;;
4727 *)
4728 # From the config-lang.in, get $language, $lang_requires
4729 language=
4730 lang_requires=
4731 . ${lang_frag}
4732 for other in ${lang_requires} ; do
4733 case ,${enable_languages}, in
4734 *,$other,*) ;;
4735 *,all,*) ;;
4736 *,$language,*)
4737 echo " \`$other' language required by \`$language'; enabling" 1>&2
4738 enable_languages="${enable_languages},${other}"
4739 ;;
4740 esac
4741 done
4742 ;;
4743 esac
4744 done
4745
9b134994 4746 new_enable_languages=,c,
9e07f89d 4747 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4748 potential_languages=,c,
9e07f89d
NN
4749
4750 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4751 case ${lang_frag} in
4752 ..) ;;
4753 # The odd quoting in the next line works around
4754 # an apparent bug in bash 1.12 on linux.
4755 ${srcdir}/gcc/[*]/config-lang.in) ;;
4756 *)
c6b750e1 4757 # From the config-lang.in, get $language, $target_libs,
1d39f329 4758 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4759 language=
4760 target_libs=
4761 lang_dirs=
64ce424c 4762 subdir_requires=
9b134994
PB
4763 boot_language=no
4764 build_by_default=yes
9e07f89d 4765 . ${lang_frag}
9b134994
PB
4766 if test x${language} = x; then
4767 echo "${lang_frag} doesn't set \$language." 1>&2
4768 exit 1
4769 fi
4770
4771 case ,${enable_languages}, in
4772 *,${language},*)
9e07f89d
NN
4773 # Language was explicitly selected; include it.
4774 add_this_lang=yes
4775 ;;
9b134994
PB
4776 *,all,*)
4777 # 'all' was selected, select it if it is a default language
4778 add_this_lang=${build_by_default}
9e07f89d
NN
4779 ;;
4780 *)
4781 add_this_lang=no
4782 ;;
4783 esac
4b1cb4fe 4784
64ce424c 4785 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4786 for i in $subdir_requires; do
3d3adb43 4787 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4788 case ,${enable_languages}, in
4789 *,${language},*)
4790 # Specifically requested language; tell them.
c6b750e1
DJ
4791 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4792echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4793 { (exit 1); exit 1; }; }
64ce424c
PB
4794 ;;
4795 *)
4796 # Silently disable.
9b134994 4797 add_this_lang=unsupported
64ce424c
PB
4798 ;;
4799 esac
4800 done
4801
9b134994
PB
4802 # Disable Ada if no preexisting GNAT is available.
4803 case ,${enable_languages},:${language}:${have_gnat} in
4804 *,${language},*:ada:no)
4805 # Specifically requested language; tell them.
c6b750e1
DJ
4806 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4807echo "$as_me: error: GNAT is required to build $language" >&2;}
4808 { (exit 1); exit 1; }; }
9b134994
PB
4809 ;;
4810 *:ada:no)
4811 # Silently disable.
4812 add_this_lang=unsupported
4813 ;;
4814 esac
4815
59f7ec45
HPN
4816 # Disable a language that is unsupported by the target.
4817 case " $unsupported_languages " in
4818 *" $language "*)
9b134994 4819 add_this_lang=unsupported
59f7ec45
HPN
4820 ;;
4821 esac
4822
4b1cb4fe 4823 case $add_this_lang in
9b134994 4824 unsupported)
9e07f89d 4825 # Remove language-dependent dirs.
1d39f329
NN
4826 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4827 ;;
9b134994
PB
4828 no)
4829 # Remove language-dependent dirs; still show language as supported.
4830 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4831 potential_languages="${potential_languages}${language},"
4832 ;;
4833 yes)
4834 new_enable_languages="${new_enable_languages}${language},"
4835 potential_languages="${potential_languages}${language},"
1d39f329
NN
4836 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4837 case ${boot_language} in
4838 yes)
4fa63067 4839 # Add to (comma-separated) list of stage 1 languages.
9b134994 4840 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4841 ;;
4842 esac
4843 ;;
9e07f89d
NN
4844 esac
4845 ;;
4846 esac
4847 done
4848
9b134994
PB
4849 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4850if test "${enable_stage1_languages+set}" = set; then
4851 enableval="$enable_stage1_languages"
4852 case ,${enable_stage1_languages}, in
4853 ,no,|,,)
4854 # Set it to something that will have no effect in the loop below
4855 enable_stage1_languages=c ;;
4856 ,yes,)
4857 enable_stage1_languages=`echo $new_enable_languages | \
4858 sed -e "s/^,//" -e "s/,$//" ` ;;
4859 *,all,*)
4860 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4861 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4862 esac
4863
4864 # Add "good" languages from enable_stage1_languages to stage1_languages,
4865 # while "bad" languages go in missing_languages. Leave no duplicates.
4866 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4867 case $potential_languages in
4868 *,$i,*)
4869 case $stage1_languages in
4870 *,$i,*) ;;
4871 *) stage1_languages="$stage1_languages$i," ;;
4872 esac ;;
4873 *)
4874 case $missing_languages in
4875 *,$i,*) ;;
4876 *) missing_languages="$missing_languages$i," ;;
4877 esac ;;
4878 esac
4879 done
c6b750e1 4880fi;
9b134994
PB
4881
4882 # Remove leading/trailing commas that were added for simplicity
4883 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4884 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4885 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4886 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4887
9e07f89d 4888 if test "x$missing_languages" != x; then
c6b750e1 4889 { { echo "$as_me:$LINENO: error:
27258dd4 4890The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4891Supported languages are: ${potential_languages}" >&5
4892echo "$as_me: error:
4893The following requested languages could not be built: ${missing_languages}
4894Supported languages are: ${potential_languages}" >&2;}
4895 { (exit 1); exit 1; }; }
9e07f89d 4896 fi
9e07f89d
NN
4897 if test "x$new_enable_languages" != "x$enable_languages"; then
4898 echo The following languages will be built: ${new_enable_languages}
9b134994 4899 enable_languages="$new_enable_languages"
9e07f89d 4900 fi
9b134994 4901
c6b750e1 4902
81ec575a 4903 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
4904fi
4905
a6df5a19
PB
4906# Handle --disable-<component> generically.
4907for dir in $configdirs $build_configdirs $target_configdirs ; do
4908 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4909 if eval test x\${enable_${dirname}} "=" xno ; then
4910 noconfigdirs="$noconfigdirs $dir"
4911 fi
4912done
4913
4f0ef2d8
CD
4914# Check for Boehm's garbage collector
4915# Check whether --enable-objc-gc or --disable-objc-gc was given.
4916if test "${enable_objc_gc+set}" = set; then
4917 enableval="$enable_objc_gc"
4918 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4919 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
4920 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4921echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4922 { (exit 1); exit 1; }; }
4f0ef2d8
CD
4923 ;;
4924esac
c6b750e1 4925fi;
4f0ef2d8
CD
4926
4927# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
4928case ,${enable_languages},:${enable_objc_gc} in
4929 *,objc,*:yes)
4f0ef2d8
CD
4930 # Keep target-boehm-gc if requested for Objective-C.
4931 ;;
4f0ef2d8 4932 *)
d42c4017
DA
4933 # Otherwise remove target-boehm-gc depending on target-libjava.
4934 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4935 noconfigdirs="$noconfigdirs target-boehm-gc"
4936 fi
4f0ef2d8
CD
4937 ;;
4938esac
4939
caeba88f
AL
4940# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4941# $build_configdirs and $target_configdirs.
9e07f89d
NN
4942# If we have the source for $noconfigdirs entries, add them to $notsupp.
4943
4944notsupp=""
4945for dir in . $skipdirs $noconfigdirs ; do
caeba88f 4946 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
4947 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4948 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4949 if test -r $srcdir/$dirname/configure ; then
4950 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4951 true
4952 else
4953 notsupp="$notsupp $dir"
4954 fi
4955 fi
4956 fi
caeba88f
AL
4957 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4958 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4959 if test -r $srcdir/$dirname/configure ; then
4960 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4961 true
4962 else
4963 notsupp="$notsupp $dir"
4964 fi
4965 fi
4966 fi
9e07f89d
NN
4967 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4968 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4969 if test -r $srcdir/$dirname/configure ; then
4970 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4971 true
4972 else
4973 notsupp="$notsupp $dir"
4974 fi
4975 fi
4976 fi
4977done
4978
4979# Sometimes the tools are distributed with libiberty but with no other
4980# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 4981# Don't let libgcc imply libiberty either.
9e07f89d 4982if test -n "${target_configdirs}" ; then
f86e35b8 4983 libgcc=
9e07f89d
NN
4984 others=
4985 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
4986 if test "$i" = "libgcc"; then
4987 libgcc=target-libgcc
4988 elif test "$i" != "libiberty" ; then
9e07f89d
NN
4989 if test -r $srcdir/$i/configure ; then
4990 others=yes;
4991 break;
4992 fi
4993 fi
4994 done
4995 if test -z "${others}" ; then
f86e35b8 4996 target_configdirs=$libgcc
9e07f89d
NN
4997 fi
4998fi
4999
5000# Quietly strip out all directories which aren't configurable in this tree.
5001# This relies on all configurable subdirectories being autoconfiscated, which
5002# is now the case.
6a9cf61e
PB
5003build_configdirs_all="$build_configdirs"
5004build_configdirs=
5005for i in ${build_configdirs_all} ; do
c6b750e1 5006 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5007 if test -f ${srcdir}/$j/configure ; then
5008 build_configdirs="${build_configdirs} $i"
5009 fi
5010done
5011
9e07f89d
NN
5012configdirs_all="$configdirs"
5013configdirs=
5014for i in ${configdirs_all} ; do
5015 if test -f ${srcdir}/$i/configure ; then
5016 configdirs="${configdirs} $i"
5017 fi
5018done
6a9cf61e 5019
9e07f89d
NN
5020target_configdirs_all="$target_configdirs"
5021target_configdirs=
5022for i in ${target_configdirs_all} ; do
c6b750e1 5023 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5024 if test -f ${srcdir}/$j/configure ; then
5025 target_configdirs="${target_configdirs} $i"
5026 fi
5027done
5028
5029# Produce a warning message for the subdirs we can't configure.
5030# This isn't especially interesting in the Cygnus tree, but in the individual
5031# FSF releases, it's important to let people know when their machine isn't
5032# supported by the one or two programs in a package.
5033
5034if test -n "${notsupp}" && test -z "${norecursion}" ; then
5035 # If $appdirs is non-empty, at least one of those directories must still
5036 # be configured, or we error out. (E.g., if the gas release supports a
5037 # specified target in some subdirs but not the gas subdir, we shouldn't
5038 # pretend that all is well.)
5039 if test -n "$appdirs" ; then
5040 for dir in $appdirs ; do
5041 if test -r $dir/Makefile.in ; then
5042 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5043 appdirs=""
5044 break
5045 fi
6a9cf61e 5046 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5047 appdirs=""
5048 break
5049 fi
5050 fi
5051 done
5052 if test -n "$appdirs" ; then
5053 echo "*** This configuration is not supported by this package." 1>&2
5054 exit 1
5055 fi
5056 fi
5057 # Okay, some application will build, or we don't care to check. Still
5058 # notify of subdirs not getting built.
5059 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5060 echo " ${notsupp}" 1>&2
5061 echo " (Any other directories should still work fine.)" 1>&2
5062fi
5063
5064case "$host" in
5065 *msdosdjgpp*)
5066 enable_gdbtk=no ;;
5067esac
5068
18f6b6ee
PB
5069# To find our prefix, in gcc_cv_tool_prefix.
5070
5071# The user is always right.
5072if test "${PATH_SEPARATOR+set}" != set; then
5073 echo "#! /bin/sh" >conf$$.sh
5074 echo "exit 0" >>conf$$.sh
5075 chmod +x conf$$.sh
5076 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5077 PATH_SEPARATOR=';'
5078 else
5079 PATH_SEPARATOR=:
5080 fi
5081 rm -f conf$$.sh
5082fi
5083
5084
5085
5086if test "x$exec_prefix" = xNONE; then
5087 if test "x$prefix" = xNONE; then
5088 gcc_cv_tool_prefix=$ac_default_prefix
5089 else
5090 gcc_cv_tool_prefix=$prefix
5091 fi
5092else
5093 gcc_cv_tool_prefix=$exec_prefix
5094fi
5095
5096# If there is no compiler in the tree, use the PATH only. In any
5097# case, if there is no compiler in the tree nobody should use
5098# AS_FOR_TARGET and LD_FOR_TARGET.
5099if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5100 gcc_version=`cat $srcdir/gcc/BASE-VER`
5101 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5102 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5103 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5104 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5105 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5106 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5107else
5108 gcc_cv_tool_dirs=
5109fi
5110
5111if test x$build = x$target && test -n "$md_exec_prefix"; then
5112 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5113fi
5114
5115
5116
9e07f89d
NN
5117copy_dirs=
5118
c6b750e1 5119
a19b6204
MM
5120# Check whether --with-build-sysroot or --without-build-sysroot was given.
5121if test "${with_build_sysroot+set}" = set; then
5122 withval="$with_build_sysroot"
5123 if test x"$withval" != x ; then
5124 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5125 fi
5126else
5127 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5128fi;
a19b6204
MM
5129
5130
8a6ee3ab
JM
5131
5132# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5133if test "${with_debug_prefix_map+set}" = set; then
5134 withval="$with_debug_prefix_map"
5135 if test x"$withval" != x; then
5136 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5137 for debug_map in $withval; do
5138 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5139 done
5140 fi
5141else
5142 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5143fi;
5144
5145
9e07f89d
NN
5146# Handle --with-headers=XXX. If the value is not "yes", the contents of
5147# the named directory are copied to $(tooldir)/sys-include.
5148if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5149 if test x${is_cross_compiler} = xno ; then
5150 echo 1>&2 '***' --with-headers is only supported when cross compiling
5151 exit 1
5152 fi
5153 if test x"${with_headers}" != xyes ; then
18f6b6ee 5154 x=${gcc_cv_tool_prefix}
c6b750e1 5155 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5156 fi
5157fi
5158
5159# Handle --with-libs=XXX. If the value is not "yes", the contents of
5160# the name directories are copied to $(tooldir)/lib. Multiple directories
5161# are permitted.
5162if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5163 if test x${is_cross_compiler} = xno ; then
5164 echo 1>&2 '***' --with-libs is only supported when cross compiling
5165 exit 1
5166 fi
5167 if test x"${with_libs}" != xyes ; then
5168 # Copy the libraries in reverse order, so that files in the first named
5169 # library override files in subsequent libraries.
18f6b6ee 5170 x=${gcc_cv_tool_prefix}
9e07f89d 5171 for l in ${with_libs}; do
c6b750e1 5172 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5173 done
5174 fi
5175fi
5176
2429c060
PB
5177# Set with_gnu_as and with_gnu_ld as appropriate.
5178#
5179# This is done by determining whether or not the appropriate directory
5180# is available, and by checking whether or not specific configurations
5181# have requested that this magic not happen.
c6b750e1
DJ
5182#
5183# The command line options always override the explicit settings in
2429c060
PB
5184# configure.in, and the settings in configure.in override this magic.
5185#
c6b750e1 5186# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5187# want to do that, then you should use the --without-gnu-as and
5188# --without-gnu-ld options for the configure script.
5189
5190if test x${use_gnu_as} = x &&
5191 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5192 with_gnu_as=yes
5193 extra_host_args="$extra_host_args --with-gnu-as"
5194fi
5195
5196if test x${use_gnu_ld} = x &&
5197 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5198 with_gnu_ld=yes
5199 extra_host_args="$extra_host_args --with-gnu-ld"
5200fi
5201
5202# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5203# can detect this case.
5204
5205if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5206 with_newlib=yes
5207 extra_host_args="$extra_host_args --with-newlib"
5208fi
5209
9e07f89d
NN
5210# Handle ${copy_dirs}
5211set fnord ${copy_dirs}
5212shift
5213while test $# != 0 ; do
5214 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5215 :
5216 else
5217 echo Copying $1 to $2
5218
5219 # Use the install script to create the directory and all required
5220 # parent directories.
5221 if test -d $2 ; then
5222 :
5223 else
5224 echo >config.temp
5225 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5226 fi
5227
5228 # Copy the directory, assuming we have tar.
5229 # FIXME: Should we use B in the second tar? Not all systems support it.
5230 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5231
5232 # It is the responsibility of the user to correctly adjust all
5233 # symlinks. If somebody can figure out how to handle them correctly
5234 # here, feel free to add the code.
5235
5236 echo $1 > $2/COPIED
5237 fi
5238 shift; shift
5239done
5240
2429c060
PB
5241# Determine a target-dependent exec_prefix that the installed
5242# gcc will search in. Keep this list sorted by triplet, with
5243# the *-*-osname triplets last.
5244md_exec_prefix=
5245case "${target}" in
5246 alpha*-*-*vms*)
5247 md_exec_prefix=/gnu/lib/gcc-lib
5248 ;;
521ec477 5249 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5250 md_exec_prefix=/dev/env/DJDIR/bin
5251 ;;
521ec477 5252 i[34567]86-*-sco3.2v5*)
2429c060
PB
5253 if test $with_gnu_as = yes; then
5254 md_exec_prefix=/usr/gnu/bin
5255 else
5256 md_exec_prefix=/usr/ccs/bin/elf
5257 fi
5258 ;;
5259
5260 mn10300-*-* | \
5261 powerpc-*-chorusos* | \
5262 powerpc*-*-eabi* | \
5263 powerpc*-*-sysv* | \
5264 powerpc*-*-kaos* | \
5265 s390x-ibm-tpf*)
5266 md_exec_prefix=/usr/ccs/bin
5267 ;;
5268 sparc64-*-elf*)
5269 ;;
5270 v850*-*-*)
5271 md_exec_prefix=/usr/ccs/bin
5272 ;;
5273 xtensa-*-elf*)
5274 ;;
5275
5276 *-*-beos* | \
5277 *-*-elf* | \
5278 *-*-hpux* | \
5279 *-*-netware* | \
5280 *-*-nto-qnx* | \
5281 *-*-rtems* | \
5282 *-*-solaris2* | \
521ec477 5283 *-*-sysv[45]* | \
2429c060
PB
5284 *-*-vxworks* | \
5285 *-wrs-windiss)
5286 md_exec_prefix=/usr/ccs/bin
5287 ;;
5288esac
5289
a0da8069
NN
5290extra_arflags_for_target=
5291extra_nmflags_for_target=
5292extra_ranlibflags_for_target=
5293target_makefile_frag=/dev/null
5294case "${target}" in
4e206d7e
DB
5295 mep*-*-*)
5296 target_makefile_frag="config/mt-mep"
5297 ;;
77d7106f
AM
5298 spu-*-*)
5299 target_makefile_frag="config/mt-spu"
5300 ;;
429acdec
RS
5301 mips*-sde-elf*)
5302 target_makefile_frag="config/mt-sde"
5303 ;;
f3b1e08e
RS
5304 mipsisa*-*-elfoabi*)
5305 target_makefile_frag="config/mt-mips-elfoabi"
5306 ;;
2a3124ca 5307 *-*-netware*)
a0da8069
NN
5308 target_makefile_frag="config/mt-netware"
5309 ;;
3d6dfe0f
NN
5310 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5311 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5312 ;;
5313 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5314 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5315 # commands to handle both 32-bit and 64-bit objects. These flags are
5316 # harmless if we're using GNU nm or ar.
5317 extra_arflags_for_target=" -X32_64"
5318 extra_nmflags_for_target=" -B -X32_64"
5319 ;;
5320 *-*-darwin*)
5321 # ranlib from Darwin requires the -c flag to look at common symbols.
5322 extra_ranlibflags_for_target=" -c"
5323 ;;
5324 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5325 target_makefile_frag="config/mt-wince"
5326 ;;
5327esac
5328
5329alphaieee_frag=/dev/null
5330case $target in
5331 alpha*-*-*)
5332 # This just makes sure to use the -mieee option to build target libs.
5333 # This should probably be set individually by each library.
5334 alphaieee_frag="config/mt-alphaieee"
5335 ;;
5336esac
5337
5338# If --enable-target-optspace always use -Os instead of -O2 to build
5339# the target libraries, similarly if it is not specified, use -Os
5340# on selected platforms.
5341ospace_frag=/dev/null
5342case "${enable_target_optspace}:${target}" in
5343 yes:*)
5344 ospace_frag="config/mt-ospace"
5345 ;;
5346 :d30v-*)
5347 ospace_frag="config/mt-d30v"
5348 ;;
5349 :m32r-* | :d10v-* | :fr30-*)
5350 ospace_frag="config/mt-ospace"
5351 ;;
5352 no:* | :*)
5353 ;;
5354 *)
5355 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5356 ;;
5357esac
5358
a0da8069
NN
5359# Default to using --with-stabs for certain targets.
5360if test x${with_stabs} = x ; then
5361 case "${target}" in
e31d1ea3 5362 mips*-*-irix[56]*)
a0da8069
NN
5363 ;;
5364 mips*-*-* | alpha*-*-osf*)
5365 with_stabs=yes;
5366 extra_host_args="${extra_host_args} --with-stabs"
5367 ;;
5368 esac
5369fi
5370
5371# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5372# them automatically.
5373case "${host}" in
c6b750e1 5374 hppa*64*-*-hpux11*)
a0da8069
NN
5375 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5376 ;;
5377esac
5378
a0da8069
NN
5379# Some systems (e.g., one of the i386-aix systems the gas testers are
5380# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5381tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5382build_tooldir=${tooldir}
5383
a0da8069
NN
5384# Create a .gdbinit file which runs the one in srcdir
5385# and tells GDB to look there for source files.
5386
5387if test -r ${srcdir}/.gdbinit ; then
5388 case ${srcdir} in
5389 .) ;;
5390 *) cat > ./.gdbinit <<EOF
5391# ${NO_EDIT}
5392dir ${srcdir}
5393dir .
5394source ${srcdir}/.gdbinit
5395EOF
5396 ;;
5397 esac
5398fi
5399
a0da8069
NN
5400# Make sure that the compiler is able to generate an executable. If it
5401# can't, we are probably in trouble. We don't care whether we can run the
5402# executable--we might be using a cross compiler--we only care whether it
5403# can be created. At this point the main configure script has set CC.
5404we_are_ok=no
5405echo "int main () { return 0; }" > conftest.c
5406${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5407if test $? = 0 ; then
5408 if test -s conftest || test -s conftest.exe ; then
5409 we_are_ok=yes
5410 fi
c6b750e1 5411fi
a0da8069
NN
5412case $we_are_ok in
5413 no)
5414 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5415 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5416 rm -f conftest*
5417 exit 1
5418 ;;
5419esac
5420rm -f conftest*
5421
5422# The Solaris /usr/ucb/cc compiler does not appear to work.
5423case "${host}" in
5424 sparc-sun-solaris2*)
5425 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5426 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5427 could_use=
5428 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5429 if test -d /opt/cygnus/bin ; then
5430 if test "$could_use" = "" ; then
5431 could_use="/opt/cygnus/bin"
5432 else
5433 could_use="$could_use or /opt/cygnus/bin"
5434 fi
5435 fi
5436 if test "$could_use" = "" ; then
5437 echo "Warning: compilation may fail because you're using"
5438 echo "/usr/ucb/cc. You should change your PATH or CC "
5439 echo "variable and rerun configure."
5440 else
5441 echo "Warning: compilation may fail because you're using"
5442 echo "/usr/ucb/cc, when you should use the C compiler from"
5443 echo "$could_use. You should change your"
5444 echo "PATH or CC variable and rerun configure."
5445 fi
5446 fi
5447 ;;
5448esac
5449
a0da8069
NN
5450case "${host}" in
5451 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5452 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5453 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5454esac
5455
5456# Record target_configdirs and the configure arguments for target and
5457# build configuration in Makefile.
5458target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5459build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5460
a0da8069
NN
5461# Determine whether gdb needs tk/tcl or not.
5462# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5463# and in that case we want gdb to be built without tk. Ugh!
5464# In fact I believe gdb is the *only* package directly dependent on tk,
5465# so we should be able to put the 'maybe's in unconditionally and
5466# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5467# 100% sure that that's safe though.
c180f501 5468
675c6968 5469gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5470case "$enable_gdbtk" in
5471 no)
5472 GDB_TK="" ;;
c180f501
AC
5473 yes)
5474 GDB_TK="${gdb_tk}" ;;
a0da8069 5475 *)
c180f501
AC
5476 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5477 # distro. Eventually someone will fix this and move Insight, nee
5478 # gdbtk to a separate directory.
5479 if test -d ${srcdir}/gdb/gdbtk ; then
5480 GDB_TK="${gdb_tk}"
5481 else
5482 GDB_TK=""
5483 fi
5484 ;;
a0da8069 5485esac
907be67c
DJ
5486CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5487INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5488
6bd3dfaa 5489# Strip out unwanted targets.
dd12c3a8
NN
5490
5491# While at that, we remove Makefiles if we were started for recursive
5492# configuration, so that the top-level Makefile reconfigures them,
5493# like we used to do when configure itself was recursive.
dd12c3a8 5494
6bd3dfaa
PB
5495# Loop over modules. $extrasub must be used with care, limiting as
5496# much as possible the usage of range addresses. That's because autoconf
5497# splits the sed script to overcome limits in the number of commands,
5498# and relying on carefully-timed sed passes may turn out to be very hard
5499# to maintain later. In this particular case, you just have to be careful
5500# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5501
319cab08
PB
5502# Check whether --enable-bootstrap or --disable-bootstrap was given.
5503if test "${enable_bootstrap+set}" = set; then
5504 enableval="$enable_bootstrap"
c6b750e1 5505
319cab08 5506else
9cb3fa6f 5507 enable_bootstrap=default
c6b750e1 5508fi;
319cab08 5509
9cb3fa6f
PB
5510# Issue errors and warnings for invalid/strange bootstrap combinations.
5511case "$configdirs" in
5512 *gcc*) have_compiler=yes ;;
5513 *) have_compiler=no ;;
5514esac
5515
5516case "$have_compiler:$host:$target:$enable_bootstrap" in
5517 *:*:*:no) ;;
5518
0aed8855 5519 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5520 # and we are in a native configuration.
5521 yes:$build:$build:default)
0aed8855 5522 enable_bootstrap=yes ;;
9cb3fa6f
PB
5523
5524 *:*:*:default)
5525 enable_bootstrap=no ;;
5526
5527 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5528 yes:$build:$build:yes)
9cb3fa6f
PB
5529 ;;
5530
5531 # Other configurations, but we have a compiler. Assume the user knows
5532 # what he's doing.
80911fe1 5533 yes:*:*:yes)
c6b750e1
DJ
5534 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5535echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5536 ;;
5537
5538 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5539 no:*:*:yes)
c6b750e1
DJ
5540 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5541echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5542 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5543
5544 # Fail if wrong command line
5545 *)
c6b750e1
DJ
5546 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5547echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5548 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5549 ;;
5550esac
5551
5552# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5553case "$enable_bootstrap" in
5554 yes)
498d4a71 5555 bootstrap_suffix=bootstrap ;;
319cab08 5556 no)
498d4a71 5557 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5558esac
5559
6a9cf61e 5560for module in ${build_configdirs} ; do
498d4a71
CF
5561 if test -z "${no_recursion}" \
5562 && test -f ${build_subdir}/${module}/Makefile; then
5563 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5564 rm -f ${build_subdir}/${module}/Makefile
5565 fi
5566 extrasub="$extrasub
5567/^@if build-$module\$/d
5568/^@endif build-$module\$/d
5569/^@if build-$module-$bootstrap_suffix\$/d
5570/^@endif build-$module-$bootstrap_suffix\$/d"
5571done
5572for module in ${configdirs} ; do
80911fe1 5573 if test -z "${no_recursion}"; then
8cf39b1b 5574 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5575 if test -f ${file}; then
5576 echo 1>&2 "*** removing ${file} to force reconfigure"
5577 rm -f ${file}
5578 fi
5579 done
498d4a71
CF
5580 fi
5581 extrasub="$extrasub
5582/^@if $module\$/d
5583/^@endif $module\$/d
5584/^@if $module-$bootstrap_suffix\$/d
5585/^@endif $module-$bootstrap_suffix\$/d"
5586done
5587for module in ${target_configdirs} ; do
5588 if test -z "${no_recursion}" \
5589 && test -f ${target_subdir}/${module}/Makefile; then
5590 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5591 rm -f ${target_subdir}/${module}/Makefile
5592 fi
5593 extrasub="$extrasub
5594/^@if target-$module\$/d
5595/^@endif target-$module\$/d
5596/^@if target-$module-$bootstrap_suffix\$/d
5597/^@endif target-$module-$bootstrap_suffix\$/d"
5598done
5599
6bd3dfaa
PB
5600extrasub="$extrasub
5601/^@if /,/^@endif /d"
a0da8069
NN
5602
5603# Create the serialization dependencies. This uses a temporary file.
5604
e6bfb94a
AO
5605# Check whether --enable-serial-configure or --disable-serial-configure was given.
5606if test "${enable_serial_configure+set}" = set; then
5607 enableval="$enable_serial_configure"
e6bfb94a 5608
c6b750e1 5609fi;
e6bfb94a 5610
1047cb91
DD
5611case ${enable_serial_configure} in
5612 yes)
5613 enable_serial_build_configure=yes
5614 enable_serial_host_configure=yes
5615 enable_serial_target_configure=yes
5616 ;;
5617esac
5618
a0da8069
NN
5619# These force 'configure's to be done one at a time, to avoid problems
5620# with contention over a shared config.cache.
5621rm -f serdep.tmp
e6bfb94a 5622echo '# serdep.tmp' > serdep.tmp
a0da8069 5623olditem=
1047cb91 5624test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5625for item in ${build_configdirs} ; do
5626 case ${olditem} in
5627 "") ;;
e6bfb94a 5628 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5629 esac
5630 olditem=${item}
5631done
5632olditem=
1047cb91 5633test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5634for item in ${configdirs} ; do
5635 case ${olditem} in
5636 "") ;;
e6bfb94a 5637 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5638 esac
5639 olditem=${item}
5640done
5641olditem=
1047cb91 5642test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5643for item in ${target_configdirs} ; do
5644 case ${olditem} in
5645 "") ;;
e6bfb94a 5646 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5647 esac
5648 olditem=${item}
5649done
5650serialization_dependencies=serdep.tmp
5651
5652
e6bfb94a 5653# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5654# target, nonopt, and variable assignments. These are the ones we
5655# might not want to pass down to subconfigures. Also strip
5656# program-prefix, program-suffix, and program-transform-name, so that
5657# we can pass down a consistent program-transform-name.
5658baseargs=
5659keep_next=no
5660skip_next=no
5661eval "set -- $ac_configure_args"
18f6b6ee
PB
5662for ac_arg
5663do
c6b750e1
DJ
5664 if test X"$skip_next" = X"yes"; then
5665 skip_next=no
5666 continue
5667 fi
5668 if test X"$keep_next" = X"yes"; then
5669 case $ac_arg in
5670 *\'*)
5671 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5672 esac
5673 baseargs="$baseargs '$ac_arg'"
5674 keep_next=no
5675 continue
5676 fi
5677
5678 # Handle separated arguments. Based on the logic generated by
5679 # autoconf 2.59.
5680 case $ac_arg in
5681 *=* | --config-cache | -C | -disable-* | --disable-* \
5682 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5683 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5684 | -with-* | --with-* | -without-* | --without-* | --x)
5685 separate_arg=no
5686 ;;
5687 -*)
5688 separate_arg=yes
5689 ;;
5690 *)
5691 separate_arg=no
5692 ;;
5693 esac
5694
5695 case "$ac_arg" in
5696 --no*)
5697 continue
5698 ;;
5699 --c* | \
5700 --sr* | \
5701 --ho* | \
5702 --bu* | \
5703 --t* | \
5704 --program-* | \
5705 -cache_file* | \
5706 -srcdir* | \
5707 -host* | \
5708 -build* | \
5709 -target* | \
5710 -program-prefix* | \
5711 -program-suffix* | \
5712 -program-transform-name* )
5713 skip_next=$separate_arg
5714 continue
5715 ;;
5716 -*)
5717 # An option. Add it.
5718 case $ac_arg in
5719 *\'*)
5720 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5721 esac
5722 baseargs="$baseargs '$ac_arg'"
5723 keep_next=$separate_arg
5724 ;;
5725 *)
5726 # Either a variable assignment, or a nonopt (triplet). Don't
5727 # pass it down; let the Makefile handle this.
5728 continue
5729 ;;
5730 esac
5731done
5732# Remove the initial space we just introduced and, as these will be
5733# expanded by make, quote '$'.
5734baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5735
f27d4f92
DJ
5736# Add in --program-transform-name, after --program-prefix and
5737# --program-suffix have been applied to it. Autoconf has already
5738# doubled dollar signs and backslashes in program_transform_name; we want
5739# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5740# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5741# Also, because we want to override the logic in subdir configure scripts to
5742# choose program_transform_name, replace any s,x,x, with s,y,y,.
5743sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5744${program_transform_name}
5745EOF_SED
5746gcc_transform_name=`cat conftestsed.out`
5747rm -f conftestsed.out
5748baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
5749if test "$silent" = yes; then
5750 baseargs="$baseargs --silent"
5751fi
f27d4f92 5752
a0da8069
NN
5753# For the build-side libraries, we just need to pretend we're native,
5754# and not use the same cache file. Multilibs are neither needed nor
5755# desired.
4b900473 5756build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5757
5758# For host modules, accept cache file option, or specification as blank.
5759case "${cache_file}" in
5760"") # empty
5761 cache_file_option="" ;;
5762/* | [A-Za-z]:[\\/]* ) # absolute path
5763 cache_file_option="--cache-file=${cache_file}" ;;
5764*) # relative path
5765 cache_file_option="--cache-file=../${cache_file}" ;;
5766esac
5767
82252c06
NN
5768# Host dirs don't like to share a cache file either, horribly enough.
5769# This seems to be due to autoconf 2.5x stupidity.
4b900473 5770host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5771
5772target_configargs=${baseargs}
5773
5774# Passing a --with-cross-host argument lets the target libraries know
5775# whether they are being built with a cross-compiler or being built
5776# native. However, it would be better to use other mechanisms to make the
5777# sorts of decisions they want to make on this basis. Please consider
5778# this option to be deprecated. FIXME.
5779if test x${is_cross_compiler} = xyes ; then
c6b750e1 5780 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5781fi
5782
5783# Default to --enable-multilib.
5784if test x${enable_multilib} = x ; then
5785 target_configargs="--enable-multilib ${target_configargs}"
5786fi
5787
5788# Pass --with-newlib if appropriate. Note that target_configdirs has
5789# changed from the earlier setting of with_newlib.
5790if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5791 target_configargs="--with-newlib ${target_configargs}"
5792fi
5793
95036d20
NN
5794# Different target subdirs use different values of certain variables
5795# (notably CXX). Worse, multilibs use *lots* of different values.
5796# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5797# it doesn't automatically accept command-line overrides of them.
5798# This means it's not safe for target subdirs to share a cache file,
5799# which is disgusting, but there you have it. Hopefully this can be
5800# fixed in future. It's still worthwhile to use a cache file for each
5801# directory. I think.
5802
ae380b45
MS
5803# Pass the appropriate --build, --host, --target and --cache-file arguments.
5804# We need to pass --target, as newer autoconf's requires consistency
5805# for target_alias and gcc doesn't manage it consistently.
4b900473 5806target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5807
a0da8069
NN
5808FLAGS_FOR_TARGET=
5809case " $target_configdirs " in
5810 *" newlib "*)
5811 case " $target_configargs " in
5812 *" --with-newlib "*)
5813 case "$target" in
5814 *-cygwin*)
564b43e5 5815 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
5816 esac
5817
5818 # If we're not building GCC, don't discard standard headers.
5819 if test -d ${srcdir}/gcc; then
5820 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5821
5822 if test "${build}" != "${host}"; then
5823 # On Canadian crosses, CC_FOR_TARGET will have already been set
5824 # by `configure', so we won't have an opportunity to add -Bgcc/
5825 # to it. This is right: we don't want to search that directory
5826 # for binaries, but we want the header files in there, so add
5827 # them explicitly.
b00612cc 5828 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5829
5830 # Someone might think of using the pre-installed headers on
5831 # Canadian crosses, in case the installed compiler is not fully
5832 # compatible with the compiler being built. In this case, it
5833 # would be better to flag an error than risking having
5834 # incompatible object files being constructed. We can't
5835 # guarantee that an error will be flagged, but let's hope the
5836 # compiler will do it, when presented with incompatible header
5837 # files.
5838 fi
5839 fi
5840
5841 case "${target}-${is_cross_compiler}" in
ec11bdc6 5842 i[3456789]86-*-linux*-no)
a0da8069
NN
5843 # Here host == target, so we don't need to build gcc,
5844 # so we don't want to discard standard headers.
5845 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5846 ;;
5847 *)
5848 # If we're building newlib, use its generic headers last, but search
5849 # for any libc-related directories first (so make it the last -B
5850 # switch).
5851 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
5852
5853 # If we're building libgloss, find the startup file, simulator library
5854 # and linker script.
5855 case " $target_configdirs " in
5856 *" libgloss "*)
5857 # Look for startup file, simulator library and maybe linker script.
5858 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5859 # Look for libnosys.a in case the target needs it.
5860 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5861 # Most targets have the linker script in the source directory.
5862 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5863 ;;
5864 esac
a0da8069
NN
5865 ;;
5866 esac
5867 ;;
5868 esac
5869 ;;
5870esac
45055374
CV
5871case "$target" in
5872*-mingw*)
5873 # Can't be handled as Cygwin above since Mingw does not use newlib.
5874 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' ;;
5875esac
a0da8069 5876
5fbad20a
DD
5877# Allow the user to override the flags for
5878# our build compiler if desired.
5879CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
1576798e
PB
5880CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CFLAGS}}
5881LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${CFLAGS}}
5fbad20a 5882
a0da8069
NN
5883# On Canadian crosses, we'll be searching the right directories for
5884# the previously-installed cross compiler, so don't bother to add
5885# flags for directories within the install tree of the compiler
5886# being built; programs in there won't even run.
5887if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5888 # Search for pre-installed headers if nothing else fits.
bba45b8b 5889 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
5890fi
5891
5892if test "x${use_gnu_ld}" = x &&
5893 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5894 # Arrange for us to find uninstalled linker scripts.
b00612cc 5895 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
5896fi
5897
a481dbb7
DD
5898# Search for other target-specific linker scripts and such.
5899case "${target}" in
4e206d7e
DB
5900 mep*)
5901 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5902 ;;
5903esac
5904
a0da8069 5905# Makefile fragments.
3e707e94
PB
5906for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5907do
5908 eval fragval=\$$frag
5909 if test $fragval != /dev/null; then
5910 eval $frag=${srcdir}/$fragval
5911 fi
5912done
a0da8069
NN
5913
5914
5915
5916
5917
5918# Miscellanea: directories, flags, etc.
5919
5920
5921
5922
5923
5924
5925
6a9cf61e 5926# Build module lists & subconfigure args.
a0da8069
NN
5927
5928
5929
be01d343
PB
5930# Host module lists & subconfigure args.
5931
5932
5933
5934# Target module lists & subconfigure args.
5935
5936
5937
5938# Build tools.
5939
5940
5941
1576798e
PB
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
be01d343
PB
5956# Generate default definitions for YACC, M4, LEX and other programs that run
5957# on the build machine. These are used if the Makefile can't locate these
5958# programs in objdir.
5959MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5960
5961for ac_prog in 'bison -y' byacc yacc
5962do
c6b750e1 5963 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5964set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5965echo "$as_me:$LINENO: checking for $ac_word" >&5
5966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5967if test "${ac_cv_prog_YACC+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5969else
5970 if test -n "$YACC"; then
5971 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5972else
c6b750e1
DJ
5973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974for as_dir in $PATH
5975do
5976 IFS=$as_save_IFS
5977 test -z "$as_dir" && as_dir=.
5978 for ac_exec_ext in '' $ac_executable_extensions; do
5979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5980 ac_cv_prog_YACC="$ac_prog"
5981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5982 break 2
5983 fi
5984done
5985done
5986
be01d343
PB
5987fi
5988fi
c6b750e1 5989YACC=$ac_cv_prog_YACC
be01d343 5990if test -n "$YACC"; then
c6b750e1
DJ
5991 echo "$as_me:$LINENO: result: $YACC" >&5
5992echo "${ECHO_T}$YACC" >&6
be01d343 5993else
c6b750e1
DJ
5994 echo "$as_me:$LINENO: result: no" >&5
5995echo "${ECHO_T}no" >&6
be01d343
PB
5996fi
5997
c6b750e1 5998 test -n "$YACC" && break
be01d343
PB
5999done
6000test -n "$YACC" || YACC="$MISSING bison -y"
6001
6002case " $build_configdirs " in
6003 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6004 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6005esac
6006
6007for ac_prog in bison
6008do
c6b750e1 6009 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6010set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6011echo "$as_me:$LINENO: checking for $ac_word" >&5
6012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6013if test "${ac_cv_prog_BISON+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6015else
6016 if test -n "$BISON"; then
6017 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6018else
c6b750e1
DJ
6019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020for as_dir in $PATH
6021do
6022 IFS=$as_save_IFS
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6026 ac_cv_prog_BISON="$ac_prog"
6027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6028 break 2
6029 fi
6030done
6031done
6032
be01d343
PB
6033fi
6034fi
c6b750e1 6035BISON=$ac_cv_prog_BISON
be01d343 6036if test -n "$BISON"; then
c6b750e1
DJ
6037 echo "$as_me:$LINENO: result: $BISON" >&5
6038echo "${ECHO_T}$BISON" >&6
be01d343 6039else
c6b750e1
DJ
6040 echo "$as_me:$LINENO: result: no" >&5
6041echo "${ECHO_T}no" >&6
be01d343
PB
6042fi
6043
c6b750e1 6044 test -n "$BISON" && break
be01d343
PB
6045done
6046test -n "$BISON" || BISON="$MISSING bison"
6047
6048case " $build_configdirs " in
6049 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6050esac
6051
6052for ac_prog in gm4 gnum4 m4
6053do
c6b750e1 6054 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6055set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6056echo "$as_me:$LINENO: checking for $ac_word" >&5
6057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6058if test "${ac_cv_prog_M4+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6060else
6061 if test -n "$M4"; then
6062 ac_cv_prog_M4="$M4" # Let the user override the test.
6063else
c6b750e1
DJ
6064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065for as_dir in $PATH
6066do
6067 IFS=$as_save_IFS
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6071 ac_cv_prog_M4="$ac_prog"
6072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6073 break 2
6074 fi
6075done
6076done
6077
be01d343
PB
6078fi
6079fi
c6b750e1 6080M4=$ac_cv_prog_M4
be01d343 6081if test -n "$M4"; then
c6b750e1
DJ
6082 echo "$as_me:$LINENO: result: $M4" >&5
6083echo "${ECHO_T}$M4" >&6
be01d343 6084else
c6b750e1
DJ
6085 echo "$as_me:$LINENO: result: no" >&5
6086echo "${ECHO_T}no" >&6
be01d343
PB
6087fi
6088
c6b750e1 6089 test -n "$M4" && break
be01d343
PB
6090done
6091test -n "$M4" || M4="$MISSING m4"
6092
6093case " $build_configdirs " in
6094 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6095esac
6096
6097for ac_prog in flex lex
6098do
c6b750e1 6099 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6100set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6101echo "$as_me:$LINENO: checking for $ac_word" >&5
6102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6103if test "${ac_cv_prog_LEX+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6105else
6106 if test -n "$LEX"; then
6107 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6108else
c6b750e1
DJ
6109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110for as_dir in $PATH
6111do
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6116 ac_cv_prog_LEX="$ac_prog"
6117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 break 2
6119 fi
6120done
6121done
6122
be01d343
PB
6123fi
6124fi
c6b750e1 6125LEX=$ac_cv_prog_LEX
be01d343 6126if test -n "$LEX"; then
c6b750e1
DJ
6127 echo "$as_me:$LINENO: result: $LEX" >&5
6128echo "${ECHO_T}$LEX" >&6
be01d343 6129else
c6b750e1
DJ
6130 echo "$as_me:$LINENO: result: no" >&5
6131echo "${ECHO_T}no" >&6
be01d343
PB
6132fi
6133
c6b750e1 6134 test -n "$LEX" && break
be01d343
PB
6135done
6136test -n "$LEX" || LEX="$MISSING flex"
6137
6138case " $build_configdirs " in
6139 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6140 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6141esac
6142
6143for ac_prog in flex
6144do
c6b750e1 6145 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6146set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6147echo "$as_me:$LINENO: checking for $ac_word" >&5
6148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6149if test "${ac_cv_prog_FLEX+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6151else
6152 if test -n "$FLEX"; then
6153 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6154else
c6b750e1
DJ
6155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156for as_dir in $PATH
6157do
6158 IFS=$as_save_IFS
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6162 ac_cv_prog_FLEX="$ac_prog"
6163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 break 2
6165 fi
6166done
6167done
6168
be01d343
PB
6169fi
6170fi
c6b750e1 6171FLEX=$ac_cv_prog_FLEX
be01d343 6172if test -n "$FLEX"; then
c6b750e1
DJ
6173 echo "$as_me:$LINENO: result: $FLEX" >&5
6174echo "${ECHO_T}$FLEX" >&6
be01d343 6175else
c6b750e1
DJ
6176 echo "$as_me:$LINENO: result: no" >&5
6177echo "${ECHO_T}no" >&6
be01d343
PB
6178fi
6179
c6b750e1 6180 test -n "$FLEX" && break
be01d343
PB
6181done
6182test -n "$FLEX" || FLEX="$MISSING flex"
6183
6184case " $build_configdirs " in
6185 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6186esac
6187
6188for ac_prog in makeinfo
6189do
c6b750e1 6190 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6191set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6192echo "$as_me:$LINENO: checking for $ac_word" >&5
6193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6194if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6196else
6197 if test -n "$MAKEINFO"; then
6198 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6199else
c6b750e1
DJ
6200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201for as_dir in $PATH
6202do
6203 IFS=$as_save_IFS
6204 test -z "$as_dir" && as_dir=.
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6207 ac_cv_prog_MAKEINFO="$ac_prog"
6208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6209 break 2
6210 fi
6211done
6212done
6213
be01d343
PB
6214fi
6215fi
c6b750e1 6216MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6217if test -n "$MAKEINFO"; then
c6b750e1
DJ
6218 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6219echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6220else
c6b750e1
DJ
6221 echo "$as_me:$LINENO: result: no" >&5
6222echo "${ECHO_T}no" >&6
be01d343
PB
6223fi
6224
c6b750e1 6225 test -n "$MAKEINFO" && break
be01d343
PB
6226done
6227test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6228
6229case " $build_configdirs " in
6230 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6231 *)
6232
625a61cd 6233 # For an installed makeinfo, we require it to be from texinfo 4.6 or
be01d343
PB
6234 # higher, else we use the "missing" dummy.
6235 if ${MAKEINFO} --version \
625a61cd 6236 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
6237 :
6238 else
6239 MAKEINFO="$MISSING makeinfo"
6240 fi
6241 ;;
6242
6243esac
a0da8069 6244
be01d343 6245# FIXME: expect and dejagnu may become build tools?
a0da8069 6246
be01d343
PB
6247for ac_prog in expect
6248do
c6b750e1 6249 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6250set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6251echo "$as_me:$LINENO: checking for $ac_word" >&5
6252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6253if test "${ac_cv_prog_EXPECT+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6255else
6256 if test -n "$EXPECT"; then
6257 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6258else
c6b750e1
DJ
6259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260for as_dir in $PATH
6261do
6262 IFS=$as_save_IFS
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6266 ac_cv_prog_EXPECT="$ac_prog"
6267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 break 2
6269 fi
6270done
6271done
6272
be01d343
PB
6273fi
6274fi
c6b750e1 6275EXPECT=$ac_cv_prog_EXPECT
be01d343 6276if test -n "$EXPECT"; then
c6b750e1
DJ
6277 echo "$as_me:$LINENO: result: $EXPECT" >&5
6278echo "${ECHO_T}$EXPECT" >&6
be01d343 6279else
c6b750e1
DJ
6280 echo "$as_me:$LINENO: result: no" >&5
6281echo "${ECHO_T}no" >&6
be01d343 6282fi
a0da8069 6283
c6b750e1 6284 test -n "$EXPECT" && break
be01d343
PB
6285done
6286test -n "$EXPECT" || EXPECT="expect"
a0da8069 6287
be01d343
PB
6288case " $configdirs " in
6289 *" expect "*)
6290 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6291 ;;
6292esac
a0da8069 6293
be01d343
PB
6294for ac_prog in runtest
6295do
c6b750e1 6296 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6297set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6298echo "$as_me:$LINENO: checking for $ac_word" >&5
6299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6300if test "${ac_cv_prog_RUNTEST+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6302else
6303 if test -n "$RUNTEST"; then
6304 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6305else
c6b750e1
DJ
6306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307for as_dir in $PATH
6308do
6309 IFS=$as_save_IFS
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313 ac_cv_prog_RUNTEST="$ac_prog"
6314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 break 2
6316 fi
6317done
6318done
6319
be01d343
PB
6320fi
6321fi
c6b750e1 6322RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6323if test -n "$RUNTEST"; then
c6b750e1
DJ
6324 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6325echo "${ECHO_T}$RUNTEST" >&6
be01d343 6326else
c6b750e1
DJ
6327 echo "$as_me:$LINENO: result: no" >&5
6328echo "${ECHO_T}no" >&6
be01d343 6329fi
a0da8069 6330
c6b750e1 6331 test -n "$RUNTEST" && break
be01d343
PB
6332done
6333test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6334
be01d343
PB
6335case " $configdirs " in
6336 *" dejagnu "*)
6b89cc21 6337 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6338 ;;
6339esac
a0da8069
NN
6340
6341
a0da8069 6342# Host tools.
859789af
AC
6343ncn_tool_prefix=
6344test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6345ncn_target_tool_prefix=
6346test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6347
9a819804
AO
6348
6349
6350if test -n "$AR"; then
6351 ac_cv_prog_AR=$AR
6352elif test -n "$ac_cv_prog_AR"; then
6353 AR=$ac_cv_prog_AR
6354fi
6355
6356if test -n "$ac_cv_prog_AR"; then
6357 for ncn_progname in ar; do
6358 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6359set dummy ${ncn_progname}; ac_word=$2
6360echo "$as_me:$LINENO: checking for $ac_word" >&5
6361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6362if test "${ac_cv_prog_AR+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6364else
6365 if test -n "$AR"; then
6366 ac_cv_prog_AR="$AR" # Let the user override the test.
6367else
6368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369for as_dir in $PATH
6370do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6375 ac_cv_prog_AR="${ncn_progname}"
6376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 break 2
6378 fi
6379done
6380done
6381
6382fi
6383fi
6384AR=$ac_cv_prog_AR
6385if test -n "$AR"; then
6386 echo "$as_me:$LINENO: result: $AR" >&5
6387echo "${ECHO_T}$AR" >&6
6388else
6389 echo "$as_me:$LINENO: result: no" >&5
6390echo "${ECHO_T}no" >&6
6391fi
6392
6393 done
6394fi
6395
6396for ncn_progname in ar; do
05cbd757
PB
6397 if test -n "$ncn_tool_prefix"; then
6398 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6399set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6400echo "$as_me:$LINENO: checking for $ac_word" >&5
6401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6402if test "${ac_cv_prog_AR+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6404else
6405 if test -n "$AR"; then
6406 ac_cv_prog_AR="$AR" # Let the user override the test.
6407else
c6b750e1
DJ
6408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409for as_dir in $PATH
6410do
6411 IFS=$as_save_IFS
6412 test -z "$as_dir" && as_dir=.
6413 for ac_exec_ext in '' $ac_executable_extensions; do
6414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6415 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 break 2
6418 fi
6419done
6420done
6421
859789af
AC
6422fi
6423fi
c6b750e1 6424AR=$ac_cv_prog_AR
859789af 6425if test -n "$AR"; then
c6b750e1
DJ
6426 echo "$as_me:$LINENO: result: $AR" >&5
6427echo "${ECHO_T}$AR" >&6
859789af 6428else
c6b750e1
DJ
6429 echo "$as_me:$LINENO: result: no" >&5
6430echo "${ECHO_T}no" >&6
859789af
AC
6431fi
6432
05cbd757
PB
6433 fi
6434 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6436set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6437echo "$as_me:$LINENO: checking for $ac_word" >&5
6438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6439if test "${ac_cv_prog_AR+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6441else
05cbd757
PB
6442 if test -n "$AR"; then
6443 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6444else
c6b750e1
DJ
6445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446for as_dir in $PATH
6447do
6448 IFS=$as_save_IFS
6449 test -z "$as_dir" && as_dir=.
6450 for ac_exec_ext in '' $ac_executable_extensions; do
6451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6452 ac_cv_prog_AR="${ncn_progname}"
6453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6454 break 2
6455 fi
6456done
6457done
6458
859789af
AC
6459fi
6460fi
c6b750e1 6461AR=$ac_cv_prog_AR
05cbd757 6462if test -n "$AR"; then
c6b750e1
DJ
6463 echo "$as_me:$LINENO: result: $AR" >&5
6464echo "${ECHO_T}$AR" >&6
859789af 6465else
c6b750e1
DJ
6466 echo "$as_me:$LINENO: result: no" >&5
6467echo "${ECHO_T}no" >&6
859789af 6468fi
c6b750e1 6469
05cbd757
PB
6470 fi
6471 test -n "$ac_cv_prog_AR" && break
6472done
6473
6474if test -z "$ac_cv_prog_AR" ; then
6475 set dummy ar
6476 if test $build = $host ; then
6477 AR="$2"
859789af 6478 else
05cbd757 6479 AR="${ncn_tool_prefix}$2"
859789af 6480 fi
859789af
AC
6481fi
6482
9a819804
AO
6483
6484
6485if test -n "$AS"; then
6486 ac_cv_prog_AS=$AS
6487elif test -n "$ac_cv_prog_AS"; then
6488 AS=$ac_cv_prog_AS
6489fi
6490
6491if test -n "$ac_cv_prog_AS"; then
6492 for ncn_progname in as; do
6493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6494set dummy ${ncn_progname}; ac_word=$2
6495echo "$as_me:$LINENO: checking for $ac_word" >&5
6496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6497if test "${ac_cv_prog_AS+set}" = set; then
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
6499else
6500 if test -n "$AS"; then
6501 ac_cv_prog_AS="$AS" # Let the user override the test.
6502else
6503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504for as_dir in $PATH
6505do
6506 IFS=$as_save_IFS
6507 test -z "$as_dir" && as_dir=.
6508 for ac_exec_ext in '' $ac_executable_extensions; do
6509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6510 ac_cv_prog_AS="${ncn_progname}"
6511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6512 break 2
6513 fi
6514done
6515done
6516
6517fi
6518fi
6519AS=$ac_cv_prog_AS
6520if test -n "$AS"; then
6521 echo "$as_me:$LINENO: result: $AS" >&5
6522echo "${ECHO_T}$AS" >&6
6523else
6524 echo "$as_me:$LINENO: result: no" >&5
6525echo "${ECHO_T}no" >&6
6526fi
6527
6528 done
6529fi
6530
6531for ncn_progname in as; do
05cbd757
PB
6532 if test -n "$ncn_tool_prefix"; then
6533 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6534set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6535echo "$as_me:$LINENO: checking for $ac_word" >&5
6536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6537if test "${ac_cv_prog_AS+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6539else
6540 if test -n "$AS"; then
6541 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6542else
6543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544for as_dir in $PATH
6545do
6546 IFS=$as_save_IFS
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6550 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 break 2
6553 fi
6554done
6555done
6556
859789af
AC
6557fi
6558fi
c6b750e1 6559AS=$ac_cv_prog_AS
859789af 6560if test -n "$AS"; then
c6b750e1
DJ
6561 echo "$as_me:$LINENO: result: $AS" >&5
6562echo "${ECHO_T}$AS" >&6
859789af 6563else
c6b750e1
DJ
6564 echo "$as_me:$LINENO: result: no" >&5
6565echo "${ECHO_T}no" >&6
859789af
AC
6566fi
6567
05cbd757
PB
6568 fi
6569 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6571set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6572echo "$as_me:$LINENO: checking for $ac_word" >&5
6573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6574if test "${ac_cv_prog_AS+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6576else
05cbd757
PB
6577 if test -n "$AS"; then
6578 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6579else
c6b750e1
DJ
6580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581for as_dir in $PATH
6582do
6583 IFS=$as_save_IFS
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6587 ac_cv_prog_AS="${ncn_progname}"
6588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 break 2
6590 fi
6591done
6592done
6593
859789af
AC
6594fi
6595fi
c6b750e1 6596AS=$ac_cv_prog_AS
05cbd757 6597if test -n "$AS"; then
c6b750e1
DJ
6598 echo "$as_me:$LINENO: result: $AS" >&5
6599echo "${ECHO_T}$AS" >&6
859789af 6600else
c6b750e1
DJ
6601 echo "$as_me:$LINENO: result: no" >&5
6602echo "${ECHO_T}no" >&6
859789af 6603fi
c6b750e1 6604
05cbd757
PB
6605 fi
6606 test -n "$ac_cv_prog_AS" && break
6607done
6608
6609if test -z "$ac_cv_prog_AS" ; then
6610 set dummy as
6611 if test $build = $host ; then
6612 AS="$2"
859789af 6613 else
05cbd757 6614 AS="${ncn_tool_prefix}$2"
859789af 6615 fi
859789af
AC
6616fi
6617
9a819804
AO
6618
6619
6620if test -n "$DLLTOOL"; then
6621 ac_cv_prog_DLLTOOL=$DLLTOOL
6622elif test -n "$ac_cv_prog_DLLTOOL"; then
6623 DLLTOOL=$ac_cv_prog_DLLTOOL
6624fi
6625
6626if test -n "$ac_cv_prog_DLLTOOL"; then
6627 for ncn_progname in dlltool; do
6628 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6629set dummy ${ncn_progname}; ac_word=$2
6630echo "$as_me:$LINENO: checking for $ac_word" >&5
6631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6632if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6634else
6635 if test -n "$DLLTOOL"; then
6636 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6637else
6638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639for as_dir in $PATH
6640do
6641 IFS=$as_save_IFS
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6645 ac_cv_prog_DLLTOOL="${ncn_progname}"
6646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 break 2
6648 fi
6649done
6650done
6651
6652fi
6653fi
6654DLLTOOL=$ac_cv_prog_DLLTOOL
6655if test -n "$DLLTOOL"; then
6656 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6657echo "${ECHO_T}$DLLTOOL" >&6
6658else
6659 echo "$as_me:$LINENO: result: no" >&5
6660echo "${ECHO_T}no" >&6
6661fi
6662
6663 done
6664fi
6665
6666for ncn_progname in dlltool; do
05cbd757
PB
6667 if test -n "$ncn_tool_prefix"; then
6668 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6669set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6670echo "$as_me:$LINENO: checking for $ac_word" >&5
6671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6672if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6674else
6675 if test -n "$DLLTOOL"; then
6676 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6677else
c6b750e1
DJ
6678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679for as_dir in $PATH
6680do
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6685 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 break 2
6688 fi
6689done
6690done
6691
859789af
AC
6692fi
6693fi
c6b750e1 6694DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6695if test -n "$DLLTOOL"; then
c6b750e1
DJ
6696 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6697echo "${ECHO_T}$DLLTOOL" >&6
859789af 6698else
c6b750e1
DJ
6699 echo "$as_me:$LINENO: result: no" >&5
6700echo "${ECHO_T}no" >&6
859789af
AC
6701fi
6702
05cbd757
PB
6703 fi
6704 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6705 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6706set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6707echo "$as_me:$LINENO: checking for $ac_word" >&5
6708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6709if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6711else
05cbd757
PB
6712 if test -n "$DLLTOOL"; then
6713 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6714else
c6b750e1
DJ
6715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716for as_dir in $PATH
6717do
6718 IFS=$as_save_IFS
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6722 ac_cv_prog_DLLTOOL="${ncn_progname}"
6723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 break 2
6725 fi
6726done
6727done
6728
859789af
AC
6729fi
6730fi
c6b750e1 6731DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6732if test -n "$DLLTOOL"; then
c6b750e1
DJ
6733 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6734echo "${ECHO_T}$DLLTOOL" >&6
859789af 6735else
c6b750e1
DJ
6736 echo "$as_me:$LINENO: result: no" >&5
6737echo "${ECHO_T}no" >&6
859789af 6738fi
c6b750e1 6739
05cbd757
PB
6740 fi
6741 test -n "$ac_cv_prog_DLLTOOL" && break
6742done
6743
6744if test -z "$ac_cv_prog_DLLTOOL" ; then
6745 set dummy dlltool
6746 if test $build = $host ; then
6747 DLLTOOL="$2"
859789af 6748 else
05cbd757 6749 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6750 fi
859789af
AC
6751fi
6752
9a819804
AO
6753
6754
6755if test -n "$LD"; then
6756 ac_cv_prog_LD=$LD
6757elif test -n "$ac_cv_prog_LD"; then
6758 LD=$ac_cv_prog_LD
6759fi
6760
6761if test -n "$ac_cv_prog_LD"; then
6762 for ncn_progname in ld; do
6763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6764set dummy ${ncn_progname}; ac_word=$2
6765echo "$as_me:$LINENO: checking for $ac_word" >&5
6766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6767if test "${ac_cv_prog_LD+set}" = set; then
6768 echo $ECHO_N "(cached) $ECHO_C" >&6
6769else
6770 if test -n "$LD"; then
6771 ac_cv_prog_LD="$LD" # Let the user override the test.
6772else
6773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774for as_dir in $PATH
6775do
6776 IFS=$as_save_IFS
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6780 ac_cv_prog_LD="${ncn_progname}"
6781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 break 2
6783 fi
6784done
6785done
6786
6787fi
6788fi
6789LD=$ac_cv_prog_LD
6790if test -n "$LD"; then
6791 echo "$as_me:$LINENO: result: $LD" >&5
6792echo "${ECHO_T}$LD" >&6
6793else
6794 echo "$as_me:$LINENO: result: no" >&5
6795echo "${ECHO_T}no" >&6
6796fi
6797
6798 done
6799fi
6800
6801for ncn_progname in ld; do
05cbd757
PB
6802 if test -n "$ncn_tool_prefix"; then
6803 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6804set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6805echo "$as_me:$LINENO: checking for $ac_word" >&5
6806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6807if test "${ac_cv_prog_LD+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6809else
6810 if test -n "$LD"; then
6811 ac_cv_prog_LD="$LD" # Let the user override the test.
6812else
c6b750e1
DJ
6813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814for as_dir in $PATH
6815do
6816 IFS=$as_save_IFS
6817 test -z "$as_dir" && as_dir=.
6818 for ac_exec_ext in '' $ac_executable_extensions; do
6819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6820 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 break 2
6823 fi
6824done
6825done
6826
859789af
AC
6827fi
6828fi
c6b750e1 6829LD=$ac_cv_prog_LD
859789af 6830if test -n "$LD"; then
c6b750e1
DJ
6831 echo "$as_me:$LINENO: result: $LD" >&5
6832echo "${ECHO_T}$LD" >&6
859789af 6833else
c6b750e1
DJ
6834 echo "$as_me:$LINENO: result: no" >&5
6835echo "${ECHO_T}no" >&6
859789af
AC
6836fi
6837
05cbd757
PB
6838 fi
6839 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6841set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6842echo "$as_me:$LINENO: checking for $ac_word" >&5
6843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6844if test "${ac_cv_prog_LD+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6846else
05cbd757
PB
6847 if test -n "$LD"; then
6848 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6849else
c6b750e1
DJ
6850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851for as_dir in $PATH
6852do
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6857 ac_cv_prog_LD="${ncn_progname}"
6858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6860 fi
6861done
6862done
6863
859789af
AC
6864fi
6865fi
c6b750e1 6866LD=$ac_cv_prog_LD
05cbd757 6867if test -n "$LD"; then
c6b750e1
DJ
6868 echo "$as_me:$LINENO: result: $LD" >&5
6869echo "${ECHO_T}$LD" >&6
859789af 6870else
c6b750e1
DJ
6871 echo "$as_me:$LINENO: result: no" >&5
6872echo "${ECHO_T}no" >&6
859789af 6873fi
c6b750e1 6874
05cbd757
PB
6875 fi
6876 test -n "$ac_cv_prog_LD" && break
6877done
6878
6879if test -z "$ac_cv_prog_LD" ; then
6880 set dummy ld
6881 if test $build = $host ; then
6882 LD="$2"
859789af 6883 else
05cbd757 6884 LD="${ncn_tool_prefix}$2"
859789af 6885 fi
859789af
AC
6886fi
6887
9a819804
AO
6888
6889
6890if test -n "$LIPO"; then
6891 ac_cv_prog_LIPO=$LIPO
6892elif test -n "$ac_cv_prog_LIPO"; then
6893 LIPO=$ac_cv_prog_LIPO
6894fi
6895
6896if test -n "$ac_cv_prog_LIPO"; then
6897 for ncn_progname in lipo; do
6898 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6899set dummy ${ncn_progname}; ac_word=$2
6900echo "$as_me:$LINENO: checking for $ac_word" >&5
6901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6902if test "${ac_cv_prog_LIPO+set}" = set; then
6903 echo $ECHO_N "(cached) $ECHO_C" >&6
6904else
6905 if test -n "$LIPO"; then
6906 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6907else
6908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909for as_dir in $PATH
6910do
6911 IFS=$as_save_IFS
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6915 ac_cv_prog_LIPO="${ncn_progname}"
6916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 break 2
6918 fi
6919done
6920done
6921
6922fi
6923fi
6924LIPO=$ac_cv_prog_LIPO
6925if test -n "$LIPO"; then
6926 echo "$as_me:$LINENO: result: $LIPO" >&5
6927echo "${ECHO_T}$LIPO" >&6
6928else
6929 echo "$as_me:$LINENO: result: no" >&5
6930echo "${ECHO_T}no" >&6
6931fi
6932
6933 done
6934fi
6935
6936for ncn_progname in lipo; do
be01d343
PB
6937 if test -n "$ncn_tool_prefix"; then
6938 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6939set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6940echo "$as_me:$LINENO: checking for $ac_word" >&5
6941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6942if test "${ac_cv_prog_LIPO+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6944else
6945 if test -n "$LIPO"; then
6946 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6947else
c6b750e1
DJ
6948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949for as_dir in $PATH
6950do
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 break 2
6958 fi
6959done
6960done
6961
be01d343
PB
6962fi
6963fi
c6b750e1 6964LIPO=$ac_cv_prog_LIPO
be01d343 6965if test -n "$LIPO"; then
c6b750e1
DJ
6966 echo "$as_me:$LINENO: result: $LIPO" >&5
6967echo "${ECHO_T}$LIPO" >&6
be01d343 6968else
c6b750e1
DJ
6969 echo "$as_me:$LINENO: result: no" >&5
6970echo "${ECHO_T}no" >&6
be01d343
PB
6971fi
6972
6973 fi
6974 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6976set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6977echo "$as_me:$LINENO: checking for $ac_word" >&5
6978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6979if test "${ac_cv_prog_LIPO+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6981else
6982 if test -n "$LIPO"; then
6983 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6984else
c6b750e1
DJ
6985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986for as_dir in $PATH
6987do
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6992 ac_cv_prog_LIPO="${ncn_progname}"
6993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 break 2
6995 fi
6996done
6997done
6998
be01d343
PB
6999fi
7000fi
c6b750e1 7001LIPO=$ac_cv_prog_LIPO
be01d343 7002if test -n "$LIPO"; then
c6b750e1
DJ
7003 echo "$as_me:$LINENO: result: $LIPO" >&5
7004echo "${ECHO_T}$LIPO" >&6
be01d343 7005else
c6b750e1
DJ
7006 echo "$as_me:$LINENO: result: no" >&5
7007echo "${ECHO_T}no" >&6
be01d343 7008fi
c6b750e1 7009
be01d343
PB
7010 fi
7011 test -n "$ac_cv_prog_LIPO" && break
7012done
7013
7014if test -z "$ac_cv_prog_LIPO" ; then
7015 set dummy lipo
7016 if test $build = $host ; then
7017 LIPO="$2"
7018 else
7019 LIPO="${ncn_tool_prefix}$2"
7020 fi
7021fi
7022
9a819804
AO
7023
7024
7025if test -n "$NM"; then
7026 ac_cv_prog_NM=$NM
7027elif test -n "$ac_cv_prog_NM"; then
7028 NM=$ac_cv_prog_NM
7029fi
7030
7031if test -n "$ac_cv_prog_NM"; then
7032 for ncn_progname in nm; do
7033 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7034set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7035echo "$as_me:$LINENO: checking for $ac_word" >&5
7036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7037if test "${ac_cv_prog_NM+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7039else
7040 if test -n "$NM"; then
7041 ac_cv_prog_NM="$NM" # Let the user override the test.
7042else
c6b750e1
DJ
7043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH
7045do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7050 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 break 2
7053 fi
7054done
7055done
7056
859789af
AC
7057fi
7058fi
c6b750e1 7059NM=$ac_cv_prog_NM
859789af 7060if test -n "$NM"; then
c6b750e1
DJ
7061 echo "$as_me:$LINENO: result: $NM" >&5
7062echo "${ECHO_T}$NM" >&6
859789af 7063else
c6b750e1
DJ
7064 echo "$as_me:$LINENO: result: no" >&5
7065echo "${ECHO_T}no" >&6
859789af
AC
7066fi
7067
9a819804
AO
7068 done
7069fi
7070
7071for ncn_progname in nm; do
7072 if test -n "$ncn_tool_prefix"; then
7073 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7074set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7075echo "$as_me:$LINENO: checking for $ac_word" >&5
7076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7077if test "${ac_cv_prog_NM+set}" = set; then
7078 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7079else
05cbd757
PB
7080 if test -n "$NM"; then
7081 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7082else
c6b750e1
DJ
7083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084for as_dir in $PATH
7085do
7086 IFS=$as_save_IFS
7087 test -z "$as_dir" && as_dir=.
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7090 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 break 2
7093 fi
7094done
7095done
7096
859789af
AC
7097fi
7098fi
c6b750e1 7099NM=$ac_cv_prog_NM
05cbd757 7100if test -n "$NM"; then
c6b750e1
DJ
7101 echo "$as_me:$LINENO: result: $NM" >&5
7102echo "${ECHO_T}$NM" >&6
859789af 7103else
c6b750e1
DJ
7104 echo "$as_me:$LINENO: result: no" >&5
7105echo "${ECHO_T}no" >&6
859789af 7106fi
c6b750e1 7107
05cbd757 7108 fi
9a819804
AO
7109 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7110 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7111set dummy ${ncn_progname}; ac_word=$2
7112echo "$as_me:$LINENO: checking for $ac_word" >&5
7113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7114if test "${ac_cv_prog_NM+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7116else
7117 if test -n "$NM"; then
7118 ac_cv_prog_NM="$NM" # Let the user override the test.
7119else
7120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121for as_dir in $PATH
7122do
7123 IFS=$as_save_IFS
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127 ac_cv_prog_NM="${ncn_progname}"
7128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 break 2
7130 fi
7131done
7132done
7133
7134fi
7135fi
7136NM=$ac_cv_prog_NM
7137if test -n "$NM"; then
7138 echo "$as_me:$LINENO: result: $NM" >&5
7139echo "${ECHO_T}$NM" >&6
7140else
7141 echo "$as_me:$LINENO: result: no" >&5
7142echo "${ECHO_T}no" >&6
7143fi
7144
7145 fi
7146 test -n "$ac_cv_prog_NM" && break
7147done
7148
7149if test -z "$ac_cv_prog_NM" ; then
7150 set dummy nm
7151 if test $build = $host ; then
7152 NM="$2"
7153 else
7154 NM="${ncn_tool_prefix}$2"
7155 fi
7156fi
7157
7158
7159
7160if test -n "$RANLIB"; then
7161 ac_cv_prog_RANLIB=$RANLIB
7162elif test -n "$ac_cv_prog_RANLIB"; then
7163 RANLIB=$ac_cv_prog_RANLIB
7164fi
7165
7166if test -n "$ac_cv_prog_RANLIB"; then
7167 for ncn_progname in ranlib; do
7168 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7169set dummy ${ncn_progname}; ac_word=$2
7170echo "$as_me:$LINENO: checking for $ac_word" >&5
7171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7172if test "${ac_cv_prog_RANLIB+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7174else
7175 if test -n "$RANLIB"; then
7176 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7177else
7178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179for as_dir in $PATH
7180do
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7185 ac_cv_prog_RANLIB="${ncn_progname}"
7186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 break 2
7188 fi
7189done
7190done
7191
7192fi
7193fi
7194RANLIB=$ac_cv_prog_RANLIB
7195if test -n "$RANLIB"; then
7196 echo "$as_me:$LINENO: result: $RANLIB" >&5
7197echo "${ECHO_T}$RANLIB" >&6
7198else
7199 echo "$as_me:$LINENO: result: no" >&5
7200echo "${ECHO_T}no" >&6
7201fi
7202
7203 done
7204fi
859789af 7205
9a819804 7206for ncn_progname in ranlib; do
05cbd757
PB
7207 if test -n "$ncn_tool_prefix"; then
7208 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7209set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7210echo "$as_me:$LINENO: checking for $ac_word" >&5
7211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7212if test "${ac_cv_prog_RANLIB+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7214else
7215 if test -n "$RANLIB"; then
7216 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7217else
c6b750e1
DJ
7218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7228 fi
7229done
7230done
7231
859789af
AC
7232fi
7233fi
c6b750e1 7234RANLIB=$ac_cv_prog_RANLIB
859789af 7235if test -n "$RANLIB"; then
c6b750e1
DJ
7236 echo "$as_me:$LINENO: result: $RANLIB" >&5
7237echo "${ECHO_T}$RANLIB" >&6
859789af 7238else
c6b750e1
DJ
7239 echo "$as_me:$LINENO: result: no" >&5
7240echo "${ECHO_T}no" >&6
859789af
AC
7241fi
7242
05cbd757
PB
7243 fi
7244 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7246set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7247echo "$as_me:$LINENO: checking for $ac_word" >&5
7248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7249if test "${ac_cv_prog_RANLIB+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7251else
05cbd757
PB
7252 if test -n "$RANLIB"; then
7253 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7254else
c6b750e1
DJ
7255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256for as_dir in $PATH
7257do
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7262 ac_cv_prog_RANLIB="${ncn_progname}"
7263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 break 2
7265 fi
7266done
7267done
7268
859789af
AC
7269fi
7270fi
c6b750e1 7271RANLIB=$ac_cv_prog_RANLIB
05cbd757 7272if test -n "$RANLIB"; then
c6b750e1
DJ
7273 echo "$as_me:$LINENO: result: $RANLIB" >&5
7274echo "${ECHO_T}$RANLIB" >&6
859789af 7275else
c6b750e1
DJ
7276 echo "$as_me:$LINENO: result: no" >&5
7277echo "${ECHO_T}no" >&6
859789af 7278fi
c6b750e1 7279
859789af 7280 fi
05cbd757
PB
7281 test -n "$ac_cv_prog_RANLIB" && break
7282done
7283
7284if test -z "$ac_cv_prog_RANLIB" ; then
7285 RANLIB=":"
859789af
AC
7286fi
7287
9a819804
AO
7288
7289
7290if test -n "$STRIP"; then
7291 ac_cv_prog_STRIP=$STRIP
7292elif test -n "$ac_cv_prog_STRIP"; then
7293 STRIP=$ac_cv_prog_STRIP
7294fi
7295
7296if test -n "$ac_cv_prog_STRIP"; then
7297 for ncn_progname in strip; do
7298 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7299set dummy ${ncn_progname}; ac_word=$2
7300echo "$as_me:$LINENO: checking for $ac_word" >&5
7301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7302if test "${ac_cv_prog_STRIP+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7304else
7305 if test -n "$STRIP"; then
7306 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7307else
7308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309for as_dir in $PATH
7310do
7311 IFS=$as_save_IFS
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7315 ac_cv_prog_STRIP="${ncn_progname}"
7316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 break 2
7318 fi
7319done
7320done
7321
7322fi
7323fi
7324STRIP=$ac_cv_prog_STRIP
7325if test -n "$STRIP"; then
7326 echo "$as_me:$LINENO: result: $STRIP" >&5
7327echo "${ECHO_T}$STRIP" >&6
7328else
7329 echo "$as_me:$LINENO: result: no" >&5
7330echo "${ECHO_T}no" >&6
7331fi
7332
7333 done
7334fi
7335
7336for ncn_progname in strip; do
be01d343
PB
7337 if test -n "$ncn_tool_prefix"; then
7338 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7339set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7340echo "$as_me:$LINENO: checking for $ac_word" >&5
7341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7342if test "${ac_cv_prog_STRIP+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7344else
7345 if test -n "$STRIP"; then
7346 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7347else
c6b750e1
DJ
7348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349for as_dir in $PATH
7350do
7351 IFS=$as_save_IFS
7352 test -z "$as_dir" && as_dir=.
7353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7355 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 break 2
7358 fi
7359done
7360done
7361
be01d343
PB
7362fi
7363fi
c6b750e1 7364STRIP=$ac_cv_prog_STRIP
be01d343 7365if test -n "$STRIP"; then
c6b750e1
DJ
7366 echo "$as_me:$LINENO: result: $STRIP" >&5
7367echo "${ECHO_T}$STRIP" >&6
be01d343 7368else
c6b750e1
DJ
7369 echo "$as_me:$LINENO: result: no" >&5
7370echo "${ECHO_T}no" >&6
be01d343
PB
7371fi
7372
7373 fi
7374 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7376set dummy ${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_STRIP+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7381else
7382 if test -n "$STRIP"; then
7383 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ncn_progname}"
7393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 break 2
7395 fi
7396done
7397done
7398
be01d343
PB
7399fi
7400fi
c6b750e1 7401STRIP=$ac_cv_prog_STRIP
be01d343 7402if test -n "$STRIP"; then
c6b750e1
DJ
7403 echo "$as_me:$LINENO: result: $STRIP" >&5
7404echo "${ECHO_T}$STRIP" >&6
be01d343 7405else
c6b750e1
DJ
7406 echo "$as_me:$LINENO: result: no" >&5
7407echo "${ECHO_T}no" >&6
be01d343 7408fi
c6b750e1 7409
be01d343
PB
7410 fi
7411 test -n "$ac_cv_prog_STRIP" && break
7412done
7413
7414if test -z "$ac_cv_prog_STRIP" ; then
7415 STRIP=":"
7416fi
7417
9a819804
AO
7418
7419
7420if test -n "$WINDRES"; then
7421 ac_cv_prog_WINDRES=$WINDRES
7422elif test -n "$ac_cv_prog_WINDRES"; then
7423 WINDRES=$ac_cv_prog_WINDRES
7424fi
7425
7426if test -n "$ac_cv_prog_WINDRES"; then
7427 for ncn_progname in windres; do
7428 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7429set dummy ${ncn_progname}; ac_word=$2
7430echo "$as_me:$LINENO: checking for $ac_word" >&5
7431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7432if test "${ac_cv_prog_WINDRES+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7434else
7435 if test -n "$WINDRES"; then
7436 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7437else
7438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439for as_dir in $PATH
7440do
7441 IFS=$as_save_IFS
7442 test -z "$as_dir" && as_dir=.
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7445 ac_cv_prog_WINDRES="${ncn_progname}"
7446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 break 2
7448 fi
7449done
7450done
7451
7452fi
7453fi
7454WINDRES=$ac_cv_prog_WINDRES
7455if test -n "$WINDRES"; then
7456 echo "$as_me:$LINENO: result: $WINDRES" >&5
7457echo "${ECHO_T}$WINDRES" >&6
7458else
7459 echo "$as_me:$LINENO: result: no" >&5
7460echo "${ECHO_T}no" >&6
7461fi
7462
7463 done
7464fi
7465
7466for ncn_progname in windres; do
05cbd757
PB
7467 if test -n "$ncn_tool_prefix"; then
7468 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7469set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7470echo "$as_me:$LINENO: checking for $ac_word" >&5
7471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7472if test "${ac_cv_prog_WINDRES+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7474else
7475 if test -n "$WINDRES"; then
7476 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7477else
c6b750e1
DJ
7478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479for as_dir in $PATH
7480do
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7485 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 break 2
7488 fi
7489done
7490done
7491
859789af
AC
7492fi
7493fi
c6b750e1 7494WINDRES=$ac_cv_prog_WINDRES
859789af 7495if test -n "$WINDRES"; then
c6b750e1
DJ
7496 echo "$as_me:$LINENO: result: $WINDRES" >&5
7497echo "${ECHO_T}$WINDRES" >&6
859789af 7498else
c6b750e1
DJ
7499 echo "$as_me:$LINENO: result: no" >&5
7500echo "${ECHO_T}no" >&6
859789af
AC
7501fi
7502
05cbd757
PB
7503 fi
7504 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7506set dummy ${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_WINDRES+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7511else
05cbd757
PB
7512 if test -n "$WINDRES"; then
7513 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 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_WINDRES="${ncn_progname}"
7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 break 2
7525 fi
7526done
7527done
7528
859789af
AC
7529fi
7530fi
c6b750e1 7531WINDRES=$ac_cv_prog_WINDRES
05cbd757 7532if test -n "$WINDRES"; then
c6b750e1
DJ
7533 echo "$as_me:$LINENO: result: $WINDRES" >&5
7534echo "${ECHO_T}$WINDRES" >&6
859789af 7535else
c6b750e1
DJ
7536 echo "$as_me:$LINENO: result: no" >&5
7537echo "${ECHO_T}no" >&6
859789af 7538fi
c6b750e1 7539
05cbd757
PB
7540 fi
7541 test -n "$ac_cv_prog_WINDRES" && break
7542done
7543
7544if test -z "$ac_cv_prog_WINDRES" ; then
7545 set dummy windres
7546 if test $build = $host ; then
7547 WINDRES="$2"
859789af 7548 else
05cbd757 7549 WINDRES="${ncn_tool_prefix}$2"
859789af 7550 fi
859789af
AC
7551fi
7552
9a819804
AO
7553
7554
0c24b341
NC
7555if test -n "$WINDMC"; then
7556 ac_cv_prog_WINDMC=$WINDMC
7557elif test -n "$ac_cv_prog_WINDMC"; then
7558 WINDMC=$ac_cv_prog_WINDMC
7559fi
7560
7561if test -n "$ac_cv_prog_WINDMC"; then
7562 for ncn_progname in windmc; do
7563 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7564set dummy ${ncn_progname}; ac_word=$2
7565echo "$as_me:$LINENO: checking for $ac_word" >&5
7566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7567if test "${ac_cv_prog_WINDMC+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7569else
7570 if test -n "$WINDMC"; then
7571 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7572else
7573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574for as_dir in $PATH
7575do
7576 IFS=$as_save_IFS
7577 test -z "$as_dir" && as_dir=.
7578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7580 ac_cv_prog_WINDMC="${ncn_progname}"
7581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 break 2
7583 fi
7584done
7585done
7586
7587fi
7588fi
7589WINDMC=$ac_cv_prog_WINDMC
7590if test -n "$WINDMC"; then
7591 echo "$as_me:$LINENO: result: $WINDMC" >&5
7592echo "${ECHO_T}$WINDMC" >&6
7593else
7594 echo "$as_me:$LINENO: result: no" >&5
7595echo "${ECHO_T}no" >&6
7596fi
7597
7598 done
7599fi
7600
7601for ncn_progname in windmc; do
7602 if test -n "$ncn_tool_prefix"; then
7603 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7604set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7605echo "$as_me:$LINENO: checking for $ac_word" >&5
7606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7607if test "${ac_cv_prog_WINDMC+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609else
7610 if test -n "$WINDMC"; then
7611 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7612else
7613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614for as_dir in $PATH
7615do
7616 IFS=$as_save_IFS
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7620 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7622 break 2
7623 fi
7624done
7625done
7626
7627fi
7628fi
7629WINDMC=$ac_cv_prog_WINDMC
7630if test -n "$WINDMC"; then
7631 echo "$as_me:$LINENO: result: $WINDMC" >&5
7632echo "${ECHO_T}$WINDMC" >&6
7633else
7634 echo "$as_me:$LINENO: result: no" >&5
7635echo "${ECHO_T}no" >&6
7636fi
7637
7638 fi
7639 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7641set dummy ${ncn_progname}; ac_word=$2
7642echo "$as_me:$LINENO: checking for $ac_word" >&5
7643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7644if test "${ac_cv_prog_WINDMC+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7646else
7647 if test -n "$WINDMC"; then
7648 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7649else
7650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651for as_dir in $PATH
7652do
7653 IFS=$as_save_IFS
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657 ac_cv_prog_WINDMC="${ncn_progname}"
7658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659 break 2
7660 fi
7661done
7662done
7663
7664fi
7665fi
7666WINDMC=$ac_cv_prog_WINDMC
7667if test -n "$WINDMC"; then
7668 echo "$as_me:$LINENO: result: $WINDMC" >&5
7669echo "${ECHO_T}$WINDMC" >&6
7670else
7671 echo "$as_me:$LINENO: result: no" >&5
7672echo "${ECHO_T}no" >&6
7673fi
7674
7675 fi
7676 test -n "$ac_cv_prog_WINDMC" && break
7677done
7678
7679if test -z "$ac_cv_prog_WINDMC" ; then
7680 set dummy windmc
7681 if test $build = $host ; then
7682 WINDMC="$2"
7683 else
7684 WINDMC="${ncn_tool_prefix}$2"
7685 fi
7686fi
7687
7688
7689
9a819804
AO
7690if test -n "$OBJCOPY"; then
7691 ac_cv_prog_OBJCOPY=$OBJCOPY
7692elif test -n "$ac_cv_prog_OBJCOPY"; then
7693 OBJCOPY=$ac_cv_prog_OBJCOPY
7694fi
7695
7696if test -n "$ac_cv_prog_OBJCOPY"; then
7697 for ncn_progname in objcopy; do
7698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7699set dummy ${ncn_progname}; ac_word=$2
7700echo "$as_me:$LINENO: checking for $ac_word" >&5
7701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7702if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7704else
7705 if test -n "$OBJCOPY"; then
7706 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7707else
7708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709for as_dir in $PATH
7710do
7711 IFS=$as_save_IFS
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7715 ac_cv_prog_OBJCOPY="${ncn_progname}"
7716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 break 2
7718 fi
7719done
7720done
7721
7722fi
7723fi
7724OBJCOPY=$ac_cv_prog_OBJCOPY
7725if test -n "$OBJCOPY"; then
7726 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7727echo "${ECHO_T}$OBJCOPY" >&6
7728else
7729 echo "$as_me:$LINENO: result: no" >&5
7730echo "${ECHO_T}no" >&6
7731fi
7732
7733 done
7734fi
7735
7736for ncn_progname in objcopy; do
05cbd757
PB
7737 if test -n "$ncn_tool_prefix"; then
7738 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7739set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7740echo "$as_me:$LINENO: checking for $ac_word" >&5
7741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7742if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7744else
7745 if test -n "$OBJCOPY"; then
7746 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7747else
c6b750e1
DJ
7748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749for as_dir in $PATH
7750do
7751 IFS=$as_save_IFS
7752 test -z "$as_dir" && as_dir=.
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7755 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7757 break 2
7758 fi
7759done
7760done
7761
859789af
AC
7762fi
7763fi
c6b750e1 7764OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7765if test -n "$OBJCOPY"; then
c6b750e1
DJ
7766 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7767echo "${ECHO_T}$OBJCOPY" >&6
859789af 7768else
c6b750e1
DJ
7769 echo "$as_me:$LINENO: result: no" >&5
7770echo "${ECHO_T}no" >&6
859789af
AC
7771fi
7772
05cbd757
PB
7773 fi
7774 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7776set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7777echo "$as_me:$LINENO: checking for $ac_word" >&5
7778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7779if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7781else
05cbd757
PB
7782 if test -n "$OBJCOPY"; then
7783 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7784else
c6b750e1
DJ
7785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786for as_dir in $PATH
7787do
7788 IFS=$as_save_IFS
7789 test -z "$as_dir" && as_dir=.
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7792 ac_cv_prog_OBJCOPY="${ncn_progname}"
7793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 break 2
7795 fi
7796done
7797done
7798
859789af
AC
7799fi
7800fi
c6b750e1 7801OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7802if test -n "$OBJCOPY"; then
c6b750e1
DJ
7803 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7804echo "${ECHO_T}$OBJCOPY" >&6
859789af 7805else
c6b750e1
DJ
7806 echo "$as_me:$LINENO: result: no" >&5
7807echo "${ECHO_T}no" >&6
859789af 7808fi
c6b750e1 7809
05cbd757
PB
7810 fi
7811 test -n "$ac_cv_prog_OBJCOPY" && break
7812done
7813
7814if test -z "$ac_cv_prog_OBJCOPY" ; then
7815 set dummy objcopy
7816 if test $build = $host ; then
7817 OBJCOPY="$2"
859789af 7818 else
05cbd757 7819 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7820 fi
859789af
AC
7821fi
7822
9a819804
AO
7823
7824
7825if test -n "$OBJDUMP"; then
7826 ac_cv_prog_OBJDUMP=$OBJDUMP
7827elif test -n "$ac_cv_prog_OBJDUMP"; then
7828 OBJDUMP=$ac_cv_prog_OBJDUMP
7829fi
7830
7831if test -n "$ac_cv_prog_OBJDUMP"; then
7832 for ncn_progname in objdump; do
7833 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7834set dummy ${ncn_progname}; ac_word=$2
7835echo "$as_me:$LINENO: checking for $ac_word" >&5
7836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7837if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7839else
7840 if test -n "$OBJDUMP"; then
7841 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7842else
7843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844for as_dir in $PATH
7845do
7846 IFS=$as_save_IFS
7847 test -z "$as_dir" && as_dir=.
7848 for ac_exec_ext in '' $ac_executable_extensions; do
7849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7850 ac_cv_prog_OBJDUMP="${ncn_progname}"
7851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7852 break 2
7853 fi
7854done
7855done
7856
7857fi
7858fi
7859OBJDUMP=$ac_cv_prog_OBJDUMP
7860if test -n "$OBJDUMP"; then
7861 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7862echo "${ECHO_T}$OBJDUMP" >&6
7863else
7864 echo "$as_me:$LINENO: result: no" >&5
7865echo "${ECHO_T}no" >&6
7866fi
7867
7868 done
7869fi
7870
7871for ncn_progname in objdump; do
05cbd757
PB
7872 if test -n "$ncn_tool_prefix"; then
7873 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7874set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7875echo "$as_me:$LINENO: checking for $ac_word" >&5
7876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7877if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7879else
7880 if test -n "$OBJDUMP"; then
7881 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7882else
c6b750e1
DJ
7883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884for as_dir in $PATH
7885do
7886 IFS=$as_save_IFS
7887 test -z "$as_dir" && as_dir=.
7888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7890 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7892 break 2
7893 fi
7894done
7895done
7896
859789af
AC
7897fi
7898fi
c6b750e1 7899OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 7900if test -n "$OBJDUMP"; then
c6b750e1
DJ
7901 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7902echo "${ECHO_T}$OBJDUMP" >&6
859789af 7903else
c6b750e1
DJ
7904 echo "$as_me:$LINENO: result: no" >&5
7905echo "${ECHO_T}no" >&6
859789af
AC
7906fi
7907
05cbd757
PB
7908 fi
7909 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7910 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7911set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7912echo "$as_me:$LINENO: checking for $ac_word" >&5
7913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7914if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7916else
05cbd757
PB
7917 if test -n "$OBJDUMP"; then
7918 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 7919else
c6b750e1
DJ
7920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921for as_dir in $PATH
7922do
7923 IFS=$as_save_IFS
7924 test -z "$as_dir" && as_dir=.
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7927 ac_cv_prog_OBJDUMP="${ncn_progname}"
7928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7929 break 2
7930 fi
7931done
7932done
7933
859789af
AC
7934fi
7935fi
c6b750e1 7936OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 7937if test -n "$OBJDUMP"; then
c6b750e1
DJ
7938 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7939echo "${ECHO_T}$OBJDUMP" >&6
859789af 7940else
c6b750e1
DJ
7941 echo "$as_me:$LINENO: result: no" >&5
7942echo "${ECHO_T}no" >&6
859789af 7943fi
c6b750e1 7944
05cbd757
PB
7945 fi
7946 test -n "$ac_cv_prog_OBJDUMP" && break
7947done
7948
7949if test -z "$ac_cv_prog_OBJDUMP" ; then
7950 set dummy objdump
7951 if test $build = $host ; then
7952 OBJDUMP="$2"
859789af 7953 else
05cbd757 7954 OBJDUMP="${ncn_tool_prefix}$2"
859789af 7955 fi
859789af
AC
7956fi
7957
a0da8069
NN
7958
7959
7960
7961
7962
be01d343 7963# Target tools.
c6b750e1 7964
2429c060
PB
7965# Check whether --with-build-time-tools or --without-build-time-tools was given.
7966if test "${with_build_time_tools+set}" = set; then
7967 withval="$with_build_time_tools"
7968 case x"$withval" in
7969 x/*) ;;
7970 *)
7971 with_build_time_tools=
c6b750e1
DJ
7972 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7973echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
7974 ;;
7975 esac
859789af 7976else
2429c060 7977 with_build_time_tools=
c6b750e1 7978fi;
859789af 7979
9a819804
AO
7980
7981
7982if test -n "$CC_FOR_TARGET"; then
7983 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7984elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7985 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7986fi
7987
7988if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7989 for ncn_progname in cc gcc; do
7990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7991set dummy ${ncn_progname}; ac_word=$2
7992echo "$as_me:$LINENO: checking for $ac_word" >&5
7993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7994if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7996else
7997 if test -n "$CC_FOR_TARGET"; then
7998 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7999else
8000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001for as_dir in $PATH
8002do
8003 IFS=$as_save_IFS
8004 test -z "$as_dir" && as_dir=.
8005 for ac_exec_ext in '' $ac_executable_extensions; do
8006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8007 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8009 break 2
8010 fi
8011done
8012done
8013
8014fi
8015fi
8016CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8017if test -n "$CC_FOR_TARGET"; then
8018 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8019echo "${ECHO_T}$CC_FOR_TARGET" >&6
8020else
8021 echo "$as_me:$LINENO: result: no" >&5
8022echo "${ECHO_T}no" >&6
8023fi
8024
8025 done
8026fi
8027
8028if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8029 for ncn_progname in cc gcc; do
c6b750e1
DJ
8030 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8031echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8032 if test -x $with_build_time_tools/${ncn_progname}; then
8033 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8034 echo "$as_me:$LINENO: result: yes" >&5
8035echo "${ECHO_T}yes" >&6
cac3d6c4 8036 break
2429c060 8037 else
c6b750e1
DJ
8038 echo "$as_me:$LINENO: result: no" >&5
8039echo "${ECHO_T}no" >&6
cac3d6c4
CM
8040 fi
8041 done
55db4b87
PB
8042fi
8043
2429c060
PB
8044if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8045 for ncn_progname in cc gcc; do
8046 if test -n "$ncn_target_tool_prefix"; then
8047 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8048set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8049echo "$as_me:$LINENO: checking for $ac_word" >&5
8050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8051if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8053else
8054 if test -n "$CC_FOR_TARGET"; then
8055 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8056else
c6b750e1
DJ
8057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058for as_dir in $PATH
8059do
8060 IFS=$as_save_IFS
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
8063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8064 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8066 break 2
8067 fi
8068done
8069done
8070
55db4b87
PB
8071fi
8072fi
c6b750e1 8073CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8074if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8075 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8076echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8077else
c6b750e1
DJ
8078 echo "$as_me:$LINENO: result: no" >&5
8079echo "${ECHO_T}no" >&6
55db4b87
PB
8080fi
8081
2429c060
PB
8082 fi
8083 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8085set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8086echo "$as_me:$LINENO: checking for $ac_word" >&5
8087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8088if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8090else
05cbd757
PB
8091 if test -n "$CC_FOR_TARGET"; then
8092 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8093else
c6b750e1
DJ
8094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095for as_dir in $PATH
8096do
8097 IFS=$as_save_IFS
8098 test -z "$as_dir" && as_dir=.
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8101 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8103 break 2
8104 fi
8105done
8106done
8107
55db4b87
PB
8108fi
8109fi
c6b750e1 8110CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8111if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8112 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8113echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8114else
c6b750e1
DJ
8115 echo "$as_me:$LINENO: result: no" >&5
8116echo "${ECHO_T}no" >&6
55db4b87 8117fi
c6b750e1 8118
2429c060
PB
8119 fi
8120 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8121 done
8122fi
c6b750e1 8123
05cbd757
PB
8124if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8125 set dummy cc gcc
8126 if test $build = $target ; then
8127 CC_FOR_TARGET="$2"
55db4b87 8128 else
05cbd757 8129 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8130 fi
d3f5afc4
MS
8131else
8132 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8133fi
8134
9a819804
AO
8135
8136
8137if test -n "$CXX_FOR_TARGET"; then
8138 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8139elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8140 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8141fi
8142
8143if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8144 for ncn_progname in c++ g++ cxx gxx; do
8145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8146set dummy ${ncn_progname}; ac_word=$2
8147echo "$as_me:$LINENO: checking for $ac_word" >&5
8148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8149if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8151else
8152 if test -n "$CXX_FOR_TARGET"; then
8153 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8154else
8155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156for as_dir in $PATH
8157do
8158 IFS=$as_save_IFS
8159 test -z "$as_dir" && as_dir=.
8160 for ac_exec_ext in '' $ac_executable_extensions; do
8161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8162 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8164 break 2
8165 fi
8166done
8167done
8168
8169fi
8170fi
8171CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8172if test -n "$CXX_FOR_TARGET"; then
8173 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8174echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8175else
8176 echo "$as_me:$LINENO: result: no" >&5
8177echo "${ECHO_T}no" >&6
8178fi
8179
8180 done
8181fi
8182
8183if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8184 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8185 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8186echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8187 if test -x $with_build_time_tools/${ncn_progname}; then
8188 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8189 echo "$as_me:$LINENO: result: yes" >&5
8190echo "${ECHO_T}yes" >&6
2429c060
PB
8191 break
8192 else
c6b750e1
DJ
8193 echo "$as_me:$LINENO: result: no" >&5
8194echo "${ECHO_T}no" >&6
2429c060
PB
8195 fi
8196 done
8197fi
8198
8199if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8200 for ncn_progname in c++ g++ cxx gxx; do
8201 if test -n "$ncn_target_tool_prefix"; then
8202 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8203set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8204echo "$as_me:$LINENO: checking for $ac_word" >&5
8205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8206if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8208else
8209 if test -n "$CXX_FOR_TARGET"; then
8210 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8211else
c6b750e1
DJ
8212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213for as_dir in $PATH
8214do
8215 IFS=$as_save_IFS
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8219 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 break 2
8222 fi
8223done
8224done
8225
55db4b87
PB
8226fi
8227fi
c6b750e1 8228CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8229if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8230 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8231echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8232else
c6b750e1
DJ
8233 echo "$as_me:$LINENO: result: no" >&5
8234echo "${ECHO_T}no" >&6
55db4b87
PB
8235fi
8236
2429c060
PB
8237 fi
8238 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8240set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8241echo "$as_me:$LINENO: checking for $ac_word" >&5
8242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8243if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8245else
05cbd757
PB
8246 if test -n "$CXX_FOR_TARGET"; then
8247 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8248else
c6b750e1
DJ
8249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250for as_dir in $PATH
8251do
8252 IFS=$as_save_IFS
8253 test -z "$as_dir" && as_dir=.
8254 for ac_exec_ext in '' $ac_executable_extensions; do
8255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8256 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8258 break 2
8259 fi
8260done
8261done
8262
55db4b87
PB
8263fi
8264fi
c6b750e1 8265CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8266if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8267 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8268echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8269else
c6b750e1
DJ
8270 echo "$as_me:$LINENO: result: no" >&5
8271echo "${ECHO_T}no" >&6
55db4b87 8272fi
c6b750e1 8273
2429c060
PB
8274 fi
8275 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8276 done
8277fi
c6b750e1 8278
05cbd757
PB
8279if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8280 set dummy c++ g++ cxx gxx
8281 if test $build = $target ; then
8282 CXX_FOR_TARGET="$2"
55db4b87 8283 else
05cbd757 8284 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8285 fi
d3f5afc4
MS
8286else
8287 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8288fi
8289
9a819804
AO
8290
8291
8292if test -n "$GCC_FOR_TARGET"; then
8293 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8294elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8295 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8296fi
8297
8298if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8299 for ncn_progname in gcc; do
8300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8301set dummy ${ncn_progname}; ac_word=$2
8302echo "$as_me:$LINENO: checking for $ac_word" >&5
8303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8304if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8306else
8307 if test -n "$GCC_FOR_TARGET"; then
8308 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8309else
8310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311for as_dir in $PATH
8312do
8313 IFS=$as_save_IFS
8314 test -z "$as_dir" && as_dir=.
8315 for ac_exec_ext in '' $ac_executable_extensions; do
8316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8317 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8319 break 2
8320 fi
8321done
8322done
8323
8324fi
8325fi
8326GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8327if test -n "$GCC_FOR_TARGET"; then
8328 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8329echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8330else
8331 echo "$as_me:$LINENO: result: no" >&5
8332echo "${ECHO_T}no" >&6
8333fi
8334
8335 done
8336fi
8337
8338if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8339 for ncn_progname in gcc; do
c6b750e1
DJ
8340 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8341echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8342 if test -x $with_build_time_tools/${ncn_progname}; then
8343 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8344 echo "$as_me:$LINENO: result: yes" >&5
8345echo "${ECHO_T}yes" >&6
2429c060
PB
8346 break
8347 else
c6b750e1
DJ
8348 echo "$as_me:$LINENO: result: no" >&5
8349echo "${ECHO_T}no" >&6
2429c060
PB
8350 fi
8351 done
8352fi
8353
8354if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8355 for ncn_progname in gcc; do
8356 if test -n "$ncn_target_tool_prefix"; then
8357 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8358set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8359echo "$as_me:$LINENO: checking for $ac_word" >&5
8360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8361if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8363else
2429c060
PB
8364 if test -n "$GCC_FOR_TARGET"; then
8365 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8366else
c6b750e1
DJ
8367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368for as_dir in $PATH
8369do
8370 IFS=$as_save_IFS
8371 test -z "$as_dir" && as_dir=.
8372 for ac_exec_ext in '' $ac_executable_extensions; do
8373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8374 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8376 break 2
8377 fi
8378done
8379done
8380
55db4b87
PB
8381fi
8382fi
c6b750e1 8383GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8384if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8385 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8386echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8387else
c6b750e1
DJ
8388 echo "$as_me:$LINENO: result: no" >&5
8389echo "${ECHO_T}no" >&6
55db4b87
PB
8390fi
8391
2429c060
PB
8392 fi
8393 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8395set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8396echo "$as_me:$LINENO: checking for $ac_word" >&5
8397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8398if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8400else
05cbd757
PB
8401 if test -n "$GCC_FOR_TARGET"; then
8402 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8403else
c6b750e1
DJ
8404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405for as_dir in $PATH
8406do
8407 IFS=$as_save_IFS
8408 test -z "$as_dir" && as_dir=.
8409 for ac_exec_ext in '' $ac_executable_extensions; do
8410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8411 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8413 break 2
8414 fi
8415done
8416done
8417
55db4b87
PB
8418fi
8419fi
c6b750e1 8420GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8421if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8422 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8423echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8424else
c6b750e1
DJ
8425 echo "$as_me:$LINENO: result: no" >&5
8426echo "${ECHO_T}no" >&6
55db4b87 8427fi
c6b750e1 8428
2429c060
PB
8429 fi
8430 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8431 done
8432fi
c6b750e1 8433
05cbd757
PB
8434if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8435 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8436else
8437 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8438fi
8439
9a819804
AO
8440
8441
8442if test -n "$GCJ_FOR_TARGET"; then
8443 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8444elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8445 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8446fi
8447
8448if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8449 for ncn_progname in gcj; do
8450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8451set dummy ${ncn_progname}; ac_word=$2
8452echo "$as_me:$LINENO: checking for $ac_word" >&5
8453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8454if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8456else
8457 if test -n "$GCJ_FOR_TARGET"; then
8458 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8459else
8460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461for as_dir in $PATH
8462do
8463 IFS=$as_save_IFS
8464 test -z "$as_dir" && as_dir=.
8465 for ac_exec_ext in '' $ac_executable_extensions; do
8466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8467 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8469 break 2
8470 fi
8471done
8472done
8473
8474fi
8475fi
8476GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8477if test -n "$GCJ_FOR_TARGET"; then
8478 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8479echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8480else
8481 echo "$as_me:$LINENO: result: no" >&5
8482echo "${ECHO_T}no" >&6
8483fi
8484
8485 done
8486fi
8487
8488if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8489 for ncn_progname in gcj; do
c6b750e1
DJ
8490 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8491echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8492 if test -x $with_build_time_tools/${ncn_progname}; then
8493 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8494 echo "$as_me:$LINENO: result: yes" >&5
8495echo "${ECHO_T}yes" >&6
2429c060
PB
8496 break
8497 else
c6b750e1
DJ
8498 echo "$as_me:$LINENO: result: no" >&5
8499echo "${ECHO_T}no" >&6
2429c060
PB
8500 fi
8501 done
8502fi
8503
8504if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8505 for ncn_progname in gcj; do
8506 if test -n "$ncn_target_tool_prefix"; then
8507 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8508set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8509echo "$as_me:$LINENO: checking for $ac_word" >&5
8510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8511if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8512 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8513else
8514 if test -n "$GCJ_FOR_TARGET"; then
8515 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8516else
c6b750e1
DJ
8517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518for as_dir in $PATH
8519do
8520 IFS=$as_save_IFS
8521 test -z "$as_dir" && as_dir=.
8522 for ac_exec_ext in '' $ac_executable_extensions; do
8523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8524 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8526 break 2
8527 fi
8528done
8529done
8530
55db4b87
PB
8531fi
8532fi
9a819804
AO
8533GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8534if test -n "$GCJ_FOR_TARGET"; then
8535 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8536echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8537else
8538 echo "$as_me:$LINENO: result: no" >&5
8539echo "${ECHO_T}no" >&6
8540fi
8541
8542 fi
8543 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8545set dummy ${ncn_progname}; ac_word=$2
8546echo "$as_me:$LINENO: checking for $ac_word" >&5
8547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8548if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8550else
8551 if test -n "$GCJ_FOR_TARGET"; then
8552 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8553else
8554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8555for as_dir in $PATH
8556do
8557 IFS=$as_save_IFS
8558 test -z "$as_dir" && as_dir=.
8559 for ac_exec_ext in '' $ac_executable_extensions; do
8560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8561 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8563 break 2
8564 fi
8565done
8566done
8567
8568fi
8569fi
8570GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8571if test -n "$GCJ_FOR_TARGET"; then
8572 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8573echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8574else
8575 echo "$as_me:$LINENO: result: no" >&5
8576echo "${ECHO_T}no" >&6
8577fi
8578
8579 fi
8580 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8581 done
8582fi
8583
8584if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8585 set dummy gcj
8586 if test $build = $target ; then
8587 GCJ_FOR_TARGET="$2"
8588 else
8589 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8590 fi
d3f5afc4
MS
8591else
8592 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8593fi
8594
8595
8596
8597if test -n "$GFORTRAN_FOR_TARGET"; then
8598 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8599elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8600 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8601fi
8602
9a819804
AO
8603if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8604 for ncn_progname in gfortran; do
8605 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8606set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8607echo "$as_me:$LINENO: checking for $ac_word" >&5
8608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8609if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8610 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8611else
9a819804
AO
8612 if test -n "$GFORTRAN_FOR_TARGET"; then
8613 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8614else
c6b750e1
DJ
8615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616for as_dir in $PATH
8617do
8618 IFS=$as_save_IFS
8619 test -z "$as_dir" && as_dir=.
8620 for ac_exec_ext in '' $ac_executable_extensions; do
8621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8622 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8624 break 2
8625 fi
8626done
8627done
8628
55db4b87
PB
8629fi
8630fi
9a819804
AO
8631GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8632if test -n "$GFORTRAN_FOR_TARGET"; then
8633 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8634echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8635else
c6b750e1
DJ
8636 echo "$as_me:$LINENO: result: no" >&5
8637echo "${ECHO_T}no" >&6
55db4b87 8638fi
c6b750e1 8639
2429c060
PB
8640 done
8641fi
c6b750e1 8642
9a819804 8643if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8644 for ncn_progname in gfortran; do
c6b750e1
DJ
8645 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8646echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8647 if test -x $with_build_time_tools/${ncn_progname}; then
8648 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8649 echo "$as_me:$LINENO: result: yes" >&5
8650echo "${ECHO_T}yes" >&6
2429c060
PB
8651 break
8652 else
c6b750e1
DJ
8653 echo "$as_me:$LINENO: result: no" >&5
8654echo "${ECHO_T}no" >&6
2429c060
PB
8655 fi
8656 done
8657fi
8658
8659if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8660 for ncn_progname in gfortran; do
8661 if test -n "$ncn_target_tool_prefix"; then
8662 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8663set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8664echo "$as_me:$LINENO: checking for $ac_word" >&5
8665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8666if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8668else
8669 if test -n "$GFORTRAN_FOR_TARGET"; then
8670 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8671else
c6b750e1
DJ
8672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8673for as_dir in $PATH
8674do
8675 IFS=$as_save_IFS
8676 test -z "$as_dir" && as_dir=.
8677 for ac_exec_ext in '' $ac_executable_extensions; do
8678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8679 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8681 break 2
8682 fi
8683done
8684done
8685
55db4b87
PB
8686fi
8687fi
c6b750e1 8688GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8689if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8690 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8691echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8692else
c6b750e1
DJ
8693 echo "$as_me:$LINENO: result: no" >&5
8694echo "${ECHO_T}no" >&6
55db4b87
PB
8695fi
8696
2429c060
PB
8697 fi
8698 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8699 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8700set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8701echo "$as_me:$LINENO: checking for $ac_word" >&5
8702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8703if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8705else
05cbd757 8706 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8707 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8708else
8709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8710for as_dir in $PATH
8711do
8712 IFS=$as_save_IFS
8713 test -z "$as_dir" && as_dir=.
8714 for ac_exec_ext in '' $ac_executable_extensions; do
8715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8716 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8718 break 2
8719 fi
8720done
8721done
8722
55db4b87
PB
8723fi
8724fi
c6b750e1 8725GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8726if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8727 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8728echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8729else
c6b750e1
DJ
8730 echo "$as_me:$LINENO: result: no" >&5
8731echo "${ECHO_T}no" >&6
55db4b87 8732fi
c6b750e1 8733
2429c060
PB
8734 fi
8735 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8736 done
8737fi
c6b750e1 8738
05cbd757
PB
8739if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8740 set dummy gfortran
8741 if test $build = $target ; then
8742 GFORTRAN_FOR_TARGET="$2"
55db4b87 8743 else
05cbd757 8744 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8745 fi
d3f5afc4
MS
8746else
8747 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8748fi
8749
2429c060
PB
8750
8751
2429c060
PB
8752cat > conftest.c << \EOF
8753#ifdef __GNUC__
8754 gcc_yay;
8755#endif
8756EOF
8757if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8758 have_gcc_for_target=yes
859789af 8759else
2429c060
PB
8760 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8761 have_gcc_for_target=no
859789af 8762fi
2429c060
PB
8763rm conftest.c
8764
8765
8766
859789af 8767
2429c060
PB
8768if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8769 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8770 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8771echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8772 if test -x $with_build_time_tools/ar; then
8773 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8774 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8775 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8776echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8777 else
c6b750e1
DJ
8778 echo "$as_me:$LINENO: result: no" >&5
8779echo "${ECHO_T}no" >&6
3a35eeb3 8780 fi
2429c060
PB
8781 elif test $build != $host && test $have_gcc_for_target = yes; then
8782 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8783 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8784 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8785 fi
2429c060 8786fi
c6b750e1 8787if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8788 # Extract the first word of "ar", so it can be a program name with args.
8789set dummy ar; ac_word=$2
c6b750e1
DJ
8790echo "$as_me:$LINENO: checking for $ac_word" >&5
8791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8792if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8794else
c6b750e1
DJ
8795 case $AR_FOR_TARGET in
8796 [\\/]* | ?:[\\/]*)
2429c060
PB
8797 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8798 ;;
2429c060 8799 *)
c6b750e1
DJ
8800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801for as_dir in $gcc_cv_tool_dirs
8802do
8803 IFS=$as_save_IFS
8804 test -z "$as_dir" && as_dir=.
8805 for ac_exec_ext in '' $ac_executable_extensions; do
8806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8807 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8809 break 2
8810 fi
8811done
8812done
8813
2429c060
PB
8814 ;;
8815esac
859789af 8816fi
c6b750e1
DJ
8817AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8818
2429c060 8819if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8820 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8821echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8822else
c6b750e1
DJ
8823 echo "$as_me:$LINENO: result: no" >&5
8824echo "${ECHO_T}no" >&6
859789af 8825fi
05cbd757 8826
2429c060
PB
8827fi
8828if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8829
8830
8831if test -n "$AR_FOR_TARGET"; then
8832 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8833elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8834 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8835fi
8836
8837if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8838 for ncn_progname in ar; do
8839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8840set dummy ${ncn_progname}; ac_word=$2
8841echo "$as_me:$LINENO: checking for $ac_word" >&5
8842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8843if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8845else
8846 if test -n "$AR_FOR_TARGET"; then
8847 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8848else
8849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850for as_dir in $PATH
8851do
8852 IFS=$as_save_IFS
8853 test -z "$as_dir" && as_dir=.
8854 for ac_exec_ext in '' $ac_executable_extensions; do
8855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8856 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8858 break 2
8859 fi
8860done
8861done
8862
8863fi
8864fi
8865AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8866if test -n "$AR_FOR_TARGET"; then
8867 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8868echo "${ECHO_T}$AR_FOR_TARGET" >&6
8869else
8870 echo "$as_me:$LINENO: result: no" >&5
8871echo "${ECHO_T}no" >&6
8872fi
8873
8874 done
8875fi
8876
8877if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8878 for ncn_progname in ar; do
c6b750e1
DJ
8879 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8880echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8881 if test -x $with_build_time_tools/${ncn_progname}; then
8882 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8883 echo "$as_me:$LINENO: result: yes" >&5
8884echo "${ECHO_T}yes" >&6
2429c060
PB
8885 break
8886 else
c6b750e1
DJ
8887 echo "$as_me:$LINENO: result: no" >&5
8888echo "${ECHO_T}no" >&6
2429c060
PB
8889 fi
8890 done
859789af
AC
8891fi
8892
2429c060
PB
8893if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8894 for ncn_progname in ar; do
8895 if test -n "$ncn_target_tool_prefix"; then
8896 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8897set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8898echo "$as_me:$LINENO: checking for $ac_word" >&5
8899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8900if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8902else
2429c060
PB
8903 if test -n "$AR_FOR_TARGET"; then
8904 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 8905else
c6b750e1
DJ
8906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907for as_dir in $PATH
8908do
8909 IFS=$as_save_IFS
8910 test -z "$as_dir" && as_dir=.
8911 for ac_exec_ext in '' $ac_executable_extensions; do
8912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8913 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8915 break 2
8916 fi
8917done
8918done
8919
7e0f7140
GK
8920fi
8921fi
c6b750e1 8922AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8923if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8924 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8925echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8926else
c6b750e1
DJ
8927 echo "$as_me:$LINENO: result: no" >&5
8928echo "${ECHO_T}no" >&6
7e0f7140
GK
8929fi
8930
2429c060
PB
8931 fi
8932 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8933 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 8934set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8935echo "$as_me:$LINENO: checking for $ac_word" >&5
8936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8937if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8939else
2429c060
PB
8940 if test -n "$AR_FOR_TARGET"; then
8941 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 8942else
c6b750e1
DJ
8943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8944for as_dir in $PATH
8945do
8946 IFS=$as_save_IFS
8947 test -z "$as_dir" && as_dir=.
8948 for ac_exec_ext in '' $ac_executable_extensions; do
8949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8950 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8952 break 2
8953 fi
8954done
8955done
8956
7e0f7140
GK
8957fi
8958fi
c6b750e1 8959AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8960if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8961 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8962echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8963else
c6b750e1
DJ
8964 echo "$as_me:$LINENO: result: no" >&5
8965echo "${ECHO_T}no" >&6
7e0f7140 8966fi
c6b750e1 8967
2429c060
PB
8968 fi
8969 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8970 done
8971fi
c6b750e1 8972
2429c060
PB
8973if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8974 set dummy ar
7e0f7140 8975 if test $build = $target ; then
2429c060 8976 AR_FOR_TARGET="$2"
7e0f7140 8977 else
2429c060 8978 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 8979 fi
d3f5afc4
MS
8980else
8981 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
8982fi
8983
3a35eeb3
PB
8984else
8985 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
8986fi
8987
8988
8989
8990
8991if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8992 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8993 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8994echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8995 if test -x $with_build_time_tools/as; then
8996 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8997 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
8998 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8999echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 9000 else
c6b750e1
DJ
9001 echo "$as_me:$LINENO: result: no" >&5
9002echo "${ECHO_T}no" >&6
3a35eeb3 9003 fi
2429c060
PB
9004 elif test $build != $host && test $have_gcc_for_target = yes; then
9005 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
9006 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9007 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
9008 fi
9009fi
c6b750e1 9010if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9011 # Extract the first word of "as", so it can be a program name with args.
9012set dummy as; ac_word=$2
c6b750e1
DJ
9013echo "$as_me:$LINENO: checking for $ac_word" >&5
9014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9015if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9016 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9017else
c6b750e1
DJ
9018 case $AS_FOR_TARGET in
9019 [\\/]* | ?:[\\/]*)
2429c060
PB
9020 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9021 ;;
2429c060 9022 *)
c6b750e1
DJ
9023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9024for as_dir in $gcc_cv_tool_dirs
9025do
9026 IFS=$as_save_IFS
9027 test -z "$as_dir" && as_dir=.
9028 for ac_exec_ext in '' $ac_executable_extensions; do
9029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9030 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9032 break 2
9033 fi
9034done
9035done
9036
2429c060
PB
9037 ;;
9038esac
9039fi
c6b750e1
DJ
9040AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9041
2429c060 9042if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9043 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9044echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9045else
c6b750e1
DJ
9046 echo "$as_me:$LINENO: result: no" >&5
9047echo "${ECHO_T}no" >&6
2429c060
PB
9048fi
9049
9050fi
9051if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9052
9053
9054if test -n "$AS_FOR_TARGET"; then
9055 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9056elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9057 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9058fi
9059
9060if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9061 for ncn_progname in as; do
9062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9063set dummy ${ncn_progname}; ac_word=$2
9064echo "$as_me:$LINENO: checking for $ac_word" >&5
9065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9066if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9068else
9069 if test -n "$AS_FOR_TARGET"; then
9070 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9071else
9072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073for as_dir in $PATH
9074do
9075 IFS=$as_save_IFS
9076 test -z "$as_dir" && as_dir=.
9077 for ac_exec_ext in '' $ac_executable_extensions; do
9078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9079 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9081 break 2
9082 fi
9083done
9084done
9085
9086fi
9087fi
9088AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9089if test -n "$AS_FOR_TARGET"; then
9090 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9091echo "${ECHO_T}$AS_FOR_TARGET" >&6
9092else
9093 echo "$as_me:$LINENO: result: no" >&5
9094echo "${ECHO_T}no" >&6
9095fi
9096
9097 done
9098fi
9099
9100if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9101 for ncn_progname in as; do
c6b750e1
DJ
9102 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9103echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9104 if test -x $with_build_time_tools/${ncn_progname}; then
9105 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9106 echo "$as_me:$LINENO: result: yes" >&5
9107echo "${ECHO_T}yes" >&6
2429c060
PB
9108 break
9109 else
c6b750e1
DJ
9110 echo "$as_me:$LINENO: result: no" >&5
9111echo "${ECHO_T}no" >&6
2429c060
PB
9112 fi
9113 done
9114fi
9115
9116if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9117 for ncn_progname in as; do
9118 if test -n "$ncn_target_tool_prefix"; then
9119 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9120set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9121echo "$as_me:$LINENO: checking for $ac_word" >&5
9122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9123if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9125else
9126 if test -n "$AS_FOR_TARGET"; then
9127 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9128else
c6b750e1
DJ
9129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130for as_dir in $PATH
9131do
9132 IFS=$as_save_IFS
9133 test -z "$as_dir" && as_dir=.
9134 for ac_exec_ext in '' $ac_executable_extensions; do
9135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9136 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9138 break 2
9139 fi
9140done
9141done
9142
2429c060
PB
9143fi
9144fi
c6b750e1 9145AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9146if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9147 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9148echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9149else
c6b750e1
DJ
9150 echo "$as_me:$LINENO: result: no" >&5
9151echo "${ECHO_T}no" >&6
2429c060
PB
9152fi
9153
9154 fi
9155 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9157set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9158echo "$as_me:$LINENO: checking for $ac_word" >&5
9159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9160if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9162else
9163 if test -n "$AS_FOR_TARGET"; then
9164 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9165else
c6b750e1
DJ
9166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9167for as_dir in $PATH
9168do
9169 IFS=$as_save_IFS
9170 test -z "$as_dir" && as_dir=.
9171 for ac_exec_ext in '' $ac_executable_extensions; do
9172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9173 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9175 break 2
9176 fi
9177done
9178done
9179
2429c060
PB
9180fi
9181fi
c6b750e1 9182AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9183if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9184 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9185echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9186else
c6b750e1
DJ
9187 echo "$as_me:$LINENO: result: no" >&5
9188echo "${ECHO_T}no" >&6
2429c060 9189fi
c6b750e1 9190
2429c060
PB
9191 fi
9192 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9193 done
9194fi
c6b750e1 9195
2429c060
PB
9196if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9197 set dummy as
9198 if test $build = $target ; then
9199 AS_FOR_TARGET="$2"
9200 else
9201 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9202 fi
d3f5afc4
MS
9203else
9204 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9205fi
9206
3a35eeb3
PB
9207else
9208 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9209fi
9210
9211
9212
9213
9214if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9215 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9216 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9217echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9218 if test -x $with_build_time_tools/dlltool; then
9219 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9220 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9221 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9222echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9223 else
c6b750e1
DJ
9224 echo "$as_me:$LINENO: result: no" >&5
9225echo "${ECHO_T}no" >&6
3a35eeb3 9226 fi
2429c060
PB
9227 elif test $build != $host && test $have_gcc_for_target = yes; then
9228 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9229 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9230 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9231 fi
9232fi
c6b750e1 9233if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9234 # Extract the first word of "dlltool", so it can be a program name with args.
9235set dummy dlltool; ac_word=$2
c6b750e1
DJ
9236echo "$as_me:$LINENO: checking for $ac_word" >&5
9237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9238if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9240else
c6b750e1
DJ
9241 case $DLLTOOL_FOR_TARGET in
9242 [\\/]* | ?:[\\/]*)
2429c060
PB
9243 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9244 ;;
2429c060 9245 *)
c6b750e1
DJ
9246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247for as_dir in $gcc_cv_tool_dirs
9248do
9249 IFS=$as_save_IFS
9250 test -z "$as_dir" && as_dir=.
9251 for ac_exec_ext in '' $ac_executable_extensions; do
9252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9253 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9255 break 2
9256 fi
9257done
9258done
9259
2429c060
PB
9260 ;;
9261esac
9262fi
c6b750e1
DJ
9263DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9264
2429c060 9265if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9266 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9267echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9268else
c6b750e1
DJ
9269 echo "$as_me:$LINENO: result: no" >&5
9270echo "${ECHO_T}no" >&6
2429c060
PB
9271fi
9272
9273fi
9274if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9275
9276
9277if test -n "$DLLTOOL_FOR_TARGET"; then
9278 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9279elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9280 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9281fi
9282
9283if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9284 for ncn_progname in dlltool; do
9285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9286set dummy ${ncn_progname}; ac_word=$2
9287echo "$as_me:$LINENO: checking for $ac_word" >&5
9288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9289if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9290 echo $ECHO_N "(cached) $ECHO_C" >&6
9291else
9292 if test -n "$DLLTOOL_FOR_TARGET"; then
9293 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9294else
9295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9296for as_dir in $PATH
9297do
9298 IFS=$as_save_IFS
9299 test -z "$as_dir" && as_dir=.
9300 for ac_exec_ext in '' $ac_executable_extensions; do
9301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9302 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9304 break 2
9305 fi
9306done
9307done
9308
9309fi
9310fi
9311DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9312if test -n "$DLLTOOL_FOR_TARGET"; then
9313 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9314echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9315else
9316 echo "$as_me:$LINENO: result: no" >&5
9317echo "${ECHO_T}no" >&6
9318fi
9319
9320 done
9321fi
9322
9323if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9324 for ncn_progname in dlltool; do
c6b750e1
DJ
9325 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9326echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9327 if test -x $with_build_time_tools/${ncn_progname}; then
9328 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9329 echo "$as_me:$LINENO: result: yes" >&5
9330echo "${ECHO_T}yes" >&6
2429c060
PB
9331 break
9332 else
c6b750e1
DJ
9333 echo "$as_me:$LINENO: result: no" >&5
9334echo "${ECHO_T}no" >&6
2429c060
PB
9335 fi
9336 done
9337fi
9338
9339if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9340 for ncn_progname in dlltool; do
9341 if test -n "$ncn_target_tool_prefix"; then
9342 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9343set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9344echo "$as_me:$LINENO: checking for $ac_word" >&5
9345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9346if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9348else
9349 if test -n "$DLLTOOL_FOR_TARGET"; then
9350 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9351else
c6b750e1
DJ
9352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9353for as_dir in $PATH
9354do
9355 IFS=$as_save_IFS
9356 test -z "$as_dir" && as_dir=.
9357 for ac_exec_ext in '' $ac_executable_extensions; do
9358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9359 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9361 break 2
9362 fi
9363done
9364done
9365
2429c060
PB
9366fi
9367fi
c6b750e1 9368DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9369if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9370 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9371echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9372else
c6b750e1
DJ
9373 echo "$as_me:$LINENO: result: no" >&5
9374echo "${ECHO_T}no" >&6
2429c060
PB
9375fi
9376
9377 fi
9378 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9380set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9381echo "$as_me:$LINENO: checking for $ac_word" >&5
9382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9383if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9385else
9386 if test -n "$DLLTOOL_FOR_TARGET"; then
9387 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9388else
c6b750e1
DJ
9389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390for as_dir in $PATH
9391do
9392 IFS=$as_save_IFS
9393 test -z "$as_dir" && as_dir=.
9394 for ac_exec_ext in '' $ac_executable_extensions; do
9395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9396 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9398 break 2
9399 fi
9400done
9401done
9402
2429c060
PB
9403fi
9404fi
c6b750e1 9405DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9406if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9407 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9408echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9409else
c6b750e1
DJ
9410 echo "$as_me:$LINENO: result: no" >&5
9411echo "${ECHO_T}no" >&6
2429c060 9412fi
c6b750e1 9413
2429c060
PB
9414 fi
9415 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9416 done
9417fi
c6b750e1 9418
2429c060
PB
9419if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9420 set dummy dlltool
9421 if test $build = $target ; then
9422 DLLTOOL_FOR_TARGET="$2"
9423 else
9424 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9425 fi
d3f5afc4
MS
9426else
9427 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9428fi
9429
3a35eeb3
PB
9430else
9431 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9432fi
9433
9434
9435
9436
9437if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9438 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9439 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9440echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9441 if test -x $with_build_time_tools/ld; then
9442 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9443 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9444 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9445echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9446 else
c6b750e1
DJ
9447 echo "$as_me:$LINENO: result: no" >&5
9448echo "${ECHO_T}no" >&6
3a35eeb3 9449 fi
2429c060
PB
9450 elif test $build != $host && test $have_gcc_for_target = yes; then
9451 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9452 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9453 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9454 fi
9455fi
c6b750e1 9456if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9457 # Extract the first word of "ld", so it can be a program name with args.
9458set dummy ld; ac_word=$2
c6b750e1
DJ
9459echo "$as_me:$LINENO: checking for $ac_word" >&5
9460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9461if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9463else
c6b750e1
DJ
9464 case $LD_FOR_TARGET in
9465 [\\/]* | ?:[\\/]*)
2429c060
PB
9466 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9467 ;;
2429c060 9468 *)
c6b750e1
DJ
9469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9470for as_dir in $gcc_cv_tool_dirs
9471do
9472 IFS=$as_save_IFS
9473 test -z "$as_dir" && as_dir=.
9474 for ac_exec_ext in '' $ac_executable_extensions; do
9475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9476 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9478 break 2
9479 fi
9480done
9481done
9482
2429c060
PB
9483 ;;
9484esac
9485fi
c6b750e1
DJ
9486LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9487
2429c060 9488if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9489 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9490echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9491else
c6b750e1
DJ
9492 echo "$as_me:$LINENO: result: no" >&5
9493echo "${ECHO_T}no" >&6
2429c060
PB
9494fi
9495
9496fi
9497if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9498
9499
9500if test -n "$LD_FOR_TARGET"; then
9501 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9502elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9503 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9504fi
9505
9506if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9507 for ncn_progname in ld; do
9508 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9509set dummy ${ncn_progname}; ac_word=$2
9510echo "$as_me:$LINENO: checking for $ac_word" >&5
9511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9512if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9514else
9515 if test -n "$LD_FOR_TARGET"; then
9516 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9517else
9518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9519for as_dir in $PATH
9520do
9521 IFS=$as_save_IFS
9522 test -z "$as_dir" && as_dir=.
9523 for ac_exec_ext in '' $ac_executable_extensions; do
9524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9525 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9527 break 2
9528 fi
9529done
9530done
9531
9532fi
9533fi
9534LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9535if test -n "$LD_FOR_TARGET"; then
9536 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9537echo "${ECHO_T}$LD_FOR_TARGET" >&6
9538else
9539 echo "$as_me:$LINENO: result: no" >&5
9540echo "${ECHO_T}no" >&6
9541fi
9542
9543 done
9544fi
9545
9546if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9547 for ncn_progname in ld; do
c6b750e1
DJ
9548 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9549echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9550 if test -x $with_build_time_tools/${ncn_progname}; then
9551 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9552 echo "$as_me:$LINENO: result: yes" >&5
9553echo "${ECHO_T}yes" >&6
2429c060
PB
9554 break
9555 else
c6b750e1
DJ
9556 echo "$as_me:$LINENO: result: no" >&5
9557echo "${ECHO_T}no" >&6
2429c060
PB
9558 fi
9559 done
9560fi
9561
9562if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9563 for ncn_progname in ld; do
9564 if test -n "$ncn_target_tool_prefix"; then
9565 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9566set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9567echo "$as_me:$LINENO: checking for $ac_word" >&5
9568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9569if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9571else
9572 if test -n "$LD_FOR_TARGET"; then
9573 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9574else
c6b750e1
DJ
9575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9576for as_dir in $PATH
9577do
9578 IFS=$as_save_IFS
9579 test -z "$as_dir" && as_dir=.
9580 for ac_exec_ext in '' $ac_executable_extensions; do
9581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9582 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9584 break 2
9585 fi
9586done
9587done
9588
2429c060
PB
9589fi
9590fi
c6b750e1 9591LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9592if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9593 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9594echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9595else
c6b750e1
DJ
9596 echo "$as_me:$LINENO: result: no" >&5
9597echo "${ECHO_T}no" >&6
2429c060
PB
9598fi
9599
9600 fi
9601 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9603set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9604echo "$as_me:$LINENO: checking for $ac_word" >&5
9605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9606if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9608else
9609 if test -n "$LD_FOR_TARGET"; then
9610 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9611else
c6b750e1
DJ
9612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9613for as_dir in $PATH
9614do
9615 IFS=$as_save_IFS
9616 test -z "$as_dir" && as_dir=.
9617 for ac_exec_ext in '' $ac_executable_extensions; do
9618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9619 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9621 break 2
9622 fi
9623done
9624done
9625
2429c060
PB
9626fi
9627fi
c6b750e1 9628LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9629if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9630 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9631echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9632else
c6b750e1
DJ
9633 echo "$as_me:$LINENO: result: no" >&5
9634echo "${ECHO_T}no" >&6
2429c060 9635fi
c6b750e1 9636
2429c060
PB
9637 fi
9638 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9639 done
9640fi
c6b750e1 9641
2429c060
PB
9642if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9643 set dummy ld
9644 if test $build = $target ; then
9645 LD_FOR_TARGET="$2"
9646 else
9647 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9648 fi
d3f5afc4
MS
9649else
9650 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9651fi
9652
3a35eeb3
PB
9653else
9654 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9655fi
9656
9657
9658
9659
9660if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9661 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9662 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9663echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9664 if test -x $with_build_time_tools/lipo; then
9665 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9666 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9667 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9668echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9669 else
c6b750e1
DJ
9670 echo "$as_me:$LINENO: result: no" >&5
9671echo "${ECHO_T}no" >&6
3a35eeb3 9672 fi
2429c060
PB
9673 elif test $build != $host && test $have_gcc_for_target = yes; then
9674 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9675 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9676 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9677 fi
9678fi
9a819804
AO
9679if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9680 # Extract the first word of "lipo", so it can be a program name with args.
9681set dummy lipo; ac_word=$2
9682echo "$as_me:$LINENO: checking for $ac_word" >&5
9683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9684if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
9686else
9687 case $LIPO_FOR_TARGET in
9688 [\\/]* | ?:[\\/]*)
9689 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9690 ;;
9691 *)
9692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9693for as_dir in $gcc_cv_tool_dirs
9694do
9695 IFS=$as_save_IFS
9696 test -z "$as_dir" && as_dir=.
9697 for ac_exec_ext in '' $ac_executable_extensions; do
9698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9699 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9701 break 2
9702 fi
9703done
9704done
9705
9706 ;;
9707esac
9708fi
9709LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9710
9711if test -n "$LIPO_FOR_TARGET"; then
9712 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9713echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9714else
9715 echo "$as_me:$LINENO: result: no" >&5
9716echo "${ECHO_T}no" >&6
9717fi
9718
9719fi
9720if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9721
9722
9723if test -n "$LIPO_FOR_TARGET"; then
9724 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9725elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9726 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9727fi
9728
9729if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9730 for ncn_progname in lipo; do
9731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9732set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9733echo "$as_me:$LINENO: checking for $ac_word" >&5
9734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9735if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9736 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9737else
9a819804
AO
9738 if test -n "$LIPO_FOR_TARGET"; then
9739 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9740else
9741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742for as_dir in $PATH
c6b750e1
DJ
9743do
9744 IFS=$as_save_IFS
9745 test -z "$as_dir" && as_dir=.
9746 for ac_exec_ext in '' $ac_executable_extensions; do
9747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9748 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9750 break 2
9751 fi
9752done
9753done
9754
2429c060 9755fi
9a819804
AO
9756fi
9757LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9758if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9759 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9760echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9761else
c6b750e1
DJ
9762 echo "$as_me:$LINENO: result: no" >&5
9763echo "${ECHO_T}no" >&6
2429c060
PB
9764fi
9765
9a819804 9766 done
2429c060 9767fi
9a819804
AO
9768
9769if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9770 for ncn_progname in lipo; do
c6b750e1
DJ
9771 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9772echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9773 if test -x $with_build_time_tools/${ncn_progname}; then
9774 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9775 echo "$as_me:$LINENO: result: yes" >&5
9776echo "${ECHO_T}yes" >&6
2429c060
PB
9777 break
9778 else
c6b750e1
DJ
9779 echo "$as_me:$LINENO: result: no" >&5
9780echo "${ECHO_T}no" >&6
2429c060
PB
9781 fi
9782 done
9783fi
9784
9785if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9786 for ncn_progname in lipo; do
9787 if test -n "$ncn_target_tool_prefix"; then
9788 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9789set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9790echo "$as_me:$LINENO: checking for $ac_word" >&5
9791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9792if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9794else
9795 if test -n "$LIPO_FOR_TARGET"; then
9796 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9797else
c6b750e1
DJ
9798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9799for as_dir in $PATH
9800do
9801 IFS=$as_save_IFS
9802 test -z "$as_dir" && as_dir=.
9803 for ac_exec_ext in '' $ac_executable_extensions; do
9804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9805 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9807 break 2
9808 fi
9809done
9810done
9811
2429c060
PB
9812fi
9813fi
c6b750e1 9814LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9815if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9816 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9817echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9818else
c6b750e1
DJ
9819 echo "$as_me:$LINENO: result: no" >&5
9820echo "${ECHO_T}no" >&6
2429c060
PB
9821fi
9822
9823 fi
9824 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9826set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9827echo "$as_me:$LINENO: checking for $ac_word" >&5
9828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9829if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9831else
9832 if test -n "$LIPO_FOR_TARGET"; then
9833 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9834else
c6b750e1
DJ
9835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9836for as_dir in $PATH
9837do
9838 IFS=$as_save_IFS
9839 test -z "$as_dir" && as_dir=.
9840 for ac_exec_ext in '' $ac_executable_extensions; do
9841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9842 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9844 break 2
9845 fi
9846done
9847done
9848
2429c060
PB
9849fi
9850fi
c6b750e1 9851LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9852if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9853 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9854echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9855else
c6b750e1
DJ
9856 echo "$as_me:$LINENO: result: no" >&5
9857echo "${ECHO_T}no" >&6
2429c060 9858fi
c6b750e1 9859
2429c060
PB
9860 fi
9861 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9862 done
9863fi
c6b750e1 9864
2429c060
PB
9865if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9866 set dummy lipo
9867 if test $build = $target ; then
9868 LIPO_FOR_TARGET="$2"
9869 else
9870 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9871 fi
d3f5afc4
MS
9872else
9873 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
9874fi
9875
3a35eeb3
PB
9876else
9877 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
9878fi
9879
9880
9881
9882
9883if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9884 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9885 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9886echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9887 if test -x $with_build_time_tools/nm; then
9888 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9889 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
9890 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9891echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 9892 else
c6b750e1
DJ
9893 echo "$as_me:$LINENO: result: no" >&5
9894echo "${ECHO_T}no" >&6
3a35eeb3 9895 fi
2429c060
PB
9896 elif test $build != $host && test $have_gcc_for_target = yes; then
9897 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
9898 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9899 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
9900 fi
9901fi
c6b750e1 9902if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9903 # Extract the first word of "nm", so it can be a program name with args.
9904set dummy nm; ac_word=$2
c6b750e1
DJ
9905echo "$as_me:$LINENO: checking for $ac_word" >&5
9906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9907if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9909else
c6b750e1
DJ
9910 case $NM_FOR_TARGET in
9911 [\\/]* | ?:[\\/]*)
2429c060
PB
9912 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9913 ;;
2429c060 9914 *)
c6b750e1
DJ
9915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9916for as_dir in $gcc_cv_tool_dirs
9917do
9918 IFS=$as_save_IFS
9919 test -z "$as_dir" && as_dir=.
9920 for ac_exec_ext in '' $ac_executable_extensions; do
9921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9922 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9924 break 2
9925 fi
9926done
9927done
9928
2429c060
PB
9929 ;;
9930esac
9931fi
c6b750e1
DJ
9932NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9933
2429c060 9934if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9935 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9936echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 9937else
c6b750e1
DJ
9938 echo "$as_me:$LINENO: result: no" >&5
9939echo "${ECHO_T}no" >&6
2429c060
PB
9940fi
9941
9942fi
9943if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
9944
9945
9946if test -n "$NM_FOR_TARGET"; then
9947 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9948elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9949 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9950fi
9951
9952if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9953 for ncn_progname in nm; do
9954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9955set dummy ${ncn_progname}; ac_word=$2
9956echo "$as_me:$LINENO: checking for $ac_word" >&5
9957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9958if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9960else
9961 if test -n "$NM_FOR_TARGET"; then
9962 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9963else
9964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9965for as_dir in $PATH
9966do
9967 IFS=$as_save_IFS
9968 test -z "$as_dir" && as_dir=.
9969 for ac_exec_ext in '' $ac_executable_extensions; do
9970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9971 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9973 break 2
9974 fi
9975done
9976done
9977
9978fi
9979fi
9980NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9981if test -n "$NM_FOR_TARGET"; then
9982 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9983echo "${ECHO_T}$NM_FOR_TARGET" >&6
9984else
9985 echo "$as_me:$LINENO: result: no" >&5
9986echo "${ECHO_T}no" >&6
9987fi
9988
9989 done
9990fi
9991
9992if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9993 for ncn_progname in nm; do
c6b750e1
DJ
9994 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9995echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9996 if test -x $with_build_time_tools/${ncn_progname}; then
9997 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9998 echo "$as_me:$LINENO: result: yes" >&5
9999echo "${ECHO_T}yes" >&6
2429c060
PB
10000 break
10001 else
c6b750e1
DJ
10002 echo "$as_me:$LINENO: result: no" >&5
10003echo "${ECHO_T}no" >&6
2429c060
PB
10004 fi
10005 done
10006fi
10007
10008if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10009 for ncn_progname in nm; do
10010 if test -n "$ncn_target_tool_prefix"; then
10011 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10012set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10013echo "$as_me:$LINENO: checking for $ac_word" >&5
10014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10015if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10017else
55db4b87
PB
10018 if test -n "$NM_FOR_TARGET"; then
10019 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10020else
c6b750e1
DJ
10021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022for as_dir in $PATH
10023do
10024 IFS=$as_save_IFS
10025 test -z "$as_dir" && as_dir=.
10026 for ac_exec_ext in '' $ac_executable_extensions; do
10027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10028 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10030 break 2
10031 fi
10032done
10033done
10034
859789af
AC
10035fi
10036fi
c6b750e1 10037NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 10038if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10039 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10040echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10041else
c6b750e1
DJ
10042 echo "$as_me:$LINENO: result: no" >&5
10043echo "${ECHO_T}no" >&6
859789af
AC
10044fi
10045
2429c060
PB
10046 fi
10047 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10048 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10049set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10050echo "$as_me:$LINENO: checking for $ac_word" >&5
10051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10052if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10054else
05cbd757
PB
10055 if test -n "$NM_FOR_TARGET"; then
10056 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10057else
c6b750e1
DJ
10058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059for as_dir in $PATH
10060do
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
10063 for ac_exec_ext in '' $ac_executable_extensions; do
10064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10065 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10067 break 2
10068 fi
10069done
10070done
10071
859789af
AC
10072fi
10073fi
c6b750e1 10074NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10075if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10076 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10077echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10078else
c6b750e1
DJ
10079 echo "$as_me:$LINENO: result: no" >&5
10080echo "${ECHO_T}no" >&6
859789af 10081fi
c6b750e1 10082
2429c060
PB
10083 fi
10084 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10085 done
10086fi
c6b750e1 10087
05cbd757
PB
10088if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10089 set dummy nm
10090 if test $build = $target ; then
10091 NM_FOR_TARGET="$2"
859789af 10092 else
05cbd757 10093 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10094 fi
d3f5afc4
MS
10095else
10096 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10097fi
10098
3a35eeb3
PB
10099else
10100 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10101fi
10102
10103
10104
10105
10106if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10107 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10108 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10109echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10110 if test -x $with_build_time_tools/objdump; then
10111 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10112 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10113 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10114echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10115 else
c6b750e1
DJ
10116 echo "$as_me:$LINENO: result: no" >&5
10117echo "${ECHO_T}no" >&6
3a35eeb3 10118 fi
2429c060
PB
10119 elif test $build != $host && test $have_gcc_for_target = yes; then
10120 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10121 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10122 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10123 fi
10124fi
c6b750e1 10125if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10126 # Extract the first word of "objdump", so it can be a program name with args.
10127set dummy objdump; ac_word=$2
c6b750e1
DJ
10128echo "$as_me:$LINENO: checking for $ac_word" >&5
10129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10130if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10132else
c6b750e1
DJ
10133 case $OBJDUMP_FOR_TARGET in
10134 [\\/]* | ?:[\\/]*)
2429c060
PB
10135 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10136 ;;
2429c060 10137 *)
c6b750e1
DJ
10138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10139for as_dir in $gcc_cv_tool_dirs
10140do
10141 IFS=$as_save_IFS
10142 test -z "$as_dir" && as_dir=.
10143 for ac_exec_ext in '' $ac_executable_extensions; do
10144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10145 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10147 break 2
10148 fi
10149done
10150done
10151
2429c060
PB
10152 ;;
10153esac
10154fi
c6b750e1
DJ
10155OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10156
2429c060 10157if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10158 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10159echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10160else
c6b750e1
DJ
10161 echo "$as_me:$LINENO: result: no" >&5
10162echo "${ECHO_T}no" >&6
2429c060
PB
10163fi
10164
10165fi
10166if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10167
10168
10169if test -n "$OBJDUMP_FOR_TARGET"; then
10170 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10171elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10172 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10173fi
10174
10175if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10176 for ncn_progname in objdump; do
10177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10178set dummy ${ncn_progname}; ac_word=$2
10179echo "$as_me:$LINENO: checking for $ac_word" >&5
10180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10181if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10183else
10184 if test -n "$OBJDUMP_FOR_TARGET"; then
10185 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10186else
10187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188for as_dir in $PATH
10189do
10190 IFS=$as_save_IFS
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10194 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 break 2
10197 fi
10198done
10199done
10200
10201fi
10202fi
10203OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10204if test -n "$OBJDUMP_FOR_TARGET"; then
10205 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10206echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10207else
10208 echo "$as_me:$LINENO: result: no" >&5
10209echo "${ECHO_T}no" >&6
10210fi
10211
10212 done
10213fi
10214
10215if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10216 for ncn_progname in objdump; do
c6b750e1
DJ
10217 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10218echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10219 if test -x $with_build_time_tools/${ncn_progname}; then
10220 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10221 echo "$as_me:$LINENO: result: yes" >&5
10222echo "${ECHO_T}yes" >&6
2429c060
PB
10223 break
10224 else
c6b750e1
DJ
10225 echo "$as_me:$LINENO: result: no" >&5
10226echo "${ECHO_T}no" >&6
2429c060
PB
10227 fi
10228 done
10229fi
10230
10231if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10232 for ncn_progname in objdump; do
10233 if test -n "$ncn_target_tool_prefix"; then
10234 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10235set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10236echo "$as_me:$LINENO: checking for $ac_word" >&5
10237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10238if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10240else
10241 if test -n "$OBJDUMP_FOR_TARGET"; then
10242 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10243else
c6b750e1
DJ
10244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245for as_dir in $PATH
10246do
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
10249 for ac_exec_ext in '' $ac_executable_extensions; do
10250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10251 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10253 break 2
10254 fi
10255done
10256done
10257
5ae72758
DJ
10258fi
10259fi
c6b750e1 10260OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10261if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10262 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10263echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10264else
c6b750e1
DJ
10265 echo "$as_me:$LINENO: result: no" >&5
10266echo "${ECHO_T}no" >&6
5ae72758
DJ
10267fi
10268
2429c060
PB
10269 fi
10270 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10272set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10273echo "$as_me:$LINENO: checking for $ac_word" >&5
10274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10275if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10277else
10278 if test -n "$OBJDUMP_FOR_TARGET"; then
10279 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10280else
c6b750e1
DJ
10281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10282for as_dir in $PATH
10283do
10284 IFS=$as_save_IFS
10285 test -z "$as_dir" && as_dir=.
10286 for ac_exec_ext in '' $ac_executable_extensions; do
10287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10288 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10290 break 2
10291 fi
10292done
10293done
10294
5ae72758
DJ
10295fi
10296fi
c6b750e1 10297OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10298if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10299 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10300echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10301else
c6b750e1
DJ
10302 echo "$as_me:$LINENO: result: no" >&5
10303echo "${ECHO_T}no" >&6
5ae72758 10304fi
c6b750e1 10305
2429c060
PB
10306 fi
10307 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10308 done
10309fi
c6b750e1 10310
5ae72758
DJ
10311if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10312 set dummy objdump
10313 if test $build = $target ; then
10314 OBJDUMP_FOR_TARGET="$2"
10315 else
10316 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10317 fi
d3f5afc4
MS
10318else
10319 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10320fi
10321
3a35eeb3
PB
10322else
10323 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10324fi
10325
10326
10327
10328
10329if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10330 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10331 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10332echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10333 if test -x $with_build_time_tools/ranlib; then
10334 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10335 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10336 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10337echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10338 else
c6b750e1
DJ
10339 echo "$as_me:$LINENO: result: no" >&5
10340echo "${ECHO_T}no" >&6
3a35eeb3 10341 fi
2429c060
PB
10342 elif test $build != $host && test $have_gcc_for_target = yes; then
10343 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10344 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10345 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10346 fi
10347fi
c6b750e1 10348if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10349 # Extract the first word of "ranlib", so it can be a program name with args.
10350set dummy ranlib; ac_word=$2
c6b750e1
DJ
10351echo "$as_me:$LINENO: checking for $ac_word" >&5
10352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10353if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10354 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10355else
c6b750e1
DJ
10356 case $RANLIB_FOR_TARGET in
10357 [\\/]* | ?:[\\/]*)
2429c060
PB
10358 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10359 ;;
2429c060 10360 *)
c6b750e1
DJ
10361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10362for as_dir in $gcc_cv_tool_dirs
10363do
10364 IFS=$as_save_IFS
10365 test -z "$as_dir" && as_dir=.
10366 for ac_exec_ext in '' $ac_executable_extensions; do
10367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10368 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10370 break 2
10371 fi
10372done
10373done
10374
2429c060
PB
10375 ;;
10376esac
10377fi
c6b750e1
DJ
10378RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10379
2429c060 10380if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10381 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10382echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10383else
c6b750e1
DJ
10384 echo "$as_me:$LINENO: result: no" >&5
10385echo "${ECHO_T}no" >&6
2429c060
PB
10386fi
10387
10388fi
10389if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10390
10391
10392if test -n "$RANLIB_FOR_TARGET"; then
10393 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10394elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10395 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10396fi
10397
10398if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10399 for ncn_progname in ranlib; do
10400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10401set dummy ${ncn_progname}; ac_word=$2
10402echo "$as_me:$LINENO: checking for $ac_word" >&5
10403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10404if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
10406else
10407 if test -n "$RANLIB_FOR_TARGET"; then
10408 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10409else
10410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411for as_dir in $PATH
10412do
10413 IFS=$as_save_IFS
10414 test -z "$as_dir" && as_dir=.
10415 for ac_exec_ext in '' $ac_executable_extensions; do
10416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10417 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10419 break 2
10420 fi
10421done
10422done
10423
10424fi
10425fi
10426RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10427if test -n "$RANLIB_FOR_TARGET"; then
10428 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10429echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10430else
10431 echo "$as_me:$LINENO: result: no" >&5
10432echo "${ECHO_T}no" >&6
10433fi
10434
10435 done
10436fi
10437
10438if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10439 for ncn_progname in ranlib; do
c6b750e1
DJ
10440 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10441echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10442 if test -x $with_build_time_tools/${ncn_progname}; then
10443 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10444 echo "$as_me:$LINENO: result: yes" >&5
10445echo "${ECHO_T}yes" >&6
2429c060
PB
10446 break
10447 else
c6b750e1
DJ
10448 echo "$as_me:$LINENO: result: no" >&5
10449echo "${ECHO_T}no" >&6
2429c060
PB
10450 fi
10451 done
10452fi
10453
10454if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10455 for ncn_progname in ranlib; do
10456 if test -n "$ncn_target_tool_prefix"; then
10457 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10458set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10459echo "$as_me:$LINENO: checking for $ac_word" >&5
10460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10461if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10462 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10463else
55db4b87
PB
10464 if test -n "$RANLIB_FOR_TARGET"; then
10465 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10466else
c6b750e1
DJ
10467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10468for as_dir in $PATH
10469do
10470 IFS=$as_save_IFS
10471 test -z "$as_dir" && as_dir=.
10472 for ac_exec_ext in '' $ac_executable_extensions; do
10473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10474 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10476 break 2
10477 fi
10478done
10479done
10480
859789af
AC
10481fi
10482fi
c6b750e1 10483RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10484if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10485 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10486echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10487else
c6b750e1
DJ
10488 echo "$as_me:$LINENO: result: no" >&5
10489echo "${ECHO_T}no" >&6
859789af
AC
10490fi
10491
2429c060
PB
10492 fi
10493 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10495set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10496echo "$as_me:$LINENO: checking for $ac_word" >&5
10497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10498if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10500else
05cbd757
PB
10501 if test -n "$RANLIB_FOR_TARGET"; then
10502 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10503else
c6b750e1
DJ
10504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505for as_dir in $PATH
10506do
10507 IFS=$as_save_IFS
10508 test -z "$as_dir" && as_dir=.
10509 for ac_exec_ext in '' $ac_executable_extensions; do
10510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10511 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10513 break 2
10514 fi
10515done
10516done
10517
859789af
AC
10518fi
10519fi
c6b750e1 10520RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10521if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10522 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10523echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10524else
c6b750e1
DJ
10525 echo "$as_me:$LINENO: result: no" >&5
10526echo "${ECHO_T}no" >&6
859789af 10527fi
c6b750e1 10528
2429c060
PB
10529 fi
10530 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10531 done
10532fi
c6b750e1 10533
2429c060
PB
10534if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10535 set dummy ranlib
10536 if test $build = $target ; then
10537 RANLIB_FOR_TARGET="$2"
10538 else
10539 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10540 fi
d3f5afc4
MS
10541else
10542 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10543fi
05cbd757 10544
3a35eeb3
PB
10545else
10546 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10547fi
10548
2429c060
PB
10549
10550
10551
10552if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10553 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10554 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10555echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10556 if test -x $with_build_time_tools/strip; then
10557 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10558 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10559 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10560echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10561 else
c6b750e1
DJ
10562 echo "$as_me:$LINENO: result: no" >&5
10563echo "${ECHO_T}no" >&6
3a35eeb3 10564 fi
2429c060
PB
10565 elif test $build != $host && test $have_gcc_for_target = yes; then
10566 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10567 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10568 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10569 fi
10570fi
c6b750e1 10571if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10572 # Extract the first word of "strip", so it can be a program name with args.
10573set dummy strip; ac_word=$2
c6b750e1
DJ
10574echo "$as_me:$LINENO: checking for $ac_word" >&5
10575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10576if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10578else
c6b750e1
DJ
10579 case $STRIP_FOR_TARGET in
10580 [\\/]* | ?:[\\/]*)
2429c060
PB
10581 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10582 ;;
2429c060 10583 *)
c6b750e1
DJ
10584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10585for as_dir in $gcc_cv_tool_dirs
10586do
10587 IFS=$as_save_IFS
10588 test -z "$as_dir" && as_dir=.
10589 for ac_exec_ext in '' $ac_executable_extensions; do
10590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10591 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10593 break 2
10594 fi
10595done
10596done
10597
2429c060
PB
10598 ;;
10599esac
10600fi
c6b750e1
DJ
10601STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10602
2429c060 10603if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10604 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10605echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10606else
c6b750e1
DJ
10607 echo "$as_me:$LINENO: result: no" >&5
10608echo "${ECHO_T}no" >&6
2429c060
PB
10609fi
10610
10611fi
10612if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10613
10614
10615if test -n "$STRIP_FOR_TARGET"; then
10616 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10617elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10618 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10619fi
10620
10621if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10622 for ncn_progname in strip; do
10623 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10624set dummy ${ncn_progname}; ac_word=$2
10625echo "$as_me:$LINENO: checking for $ac_word" >&5
10626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10627if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10629else
10630 if test -n "$STRIP_FOR_TARGET"; then
10631 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10632else
10633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634for as_dir in $PATH
10635do
10636 IFS=$as_save_IFS
10637 test -z "$as_dir" && as_dir=.
10638 for ac_exec_ext in '' $ac_executable_extensions; do
10639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10640 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10642 break 2
10643 fi
10644done
10645done
10646
10647fi
10648fi
10649STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10650if test -n "$STRIP_FOR_TARGET"; then
10651 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10652echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10653else
10654 echo "$as_me:$LINENO: result: no" >&5
10655echo "${ECHO_T}no" >&6
10656fi
10657
10658 done
10659fi
10660
10661if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10662 for ncn_progname in strip; do
c6b750e1
DJ
10663 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10664echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10665 if test -x $with_build_time_tools/${ncn_progname}; then
10666 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10667 echo "$as_me:$LINENO: result: yes" >&5
10668echo "${ECHO_T}yes" >&6
2429c060
PB
10669 break
10670 else
c6b750e1
DJ
10671 echo "$as_me:$LINENO: result: no" >&5
10672echo "${ECHO_T}no" >&6
2429c060
PB
10673 fi
10674 done
10675fi
10676
10677if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10678 for ncn_progname in strip; do
10679 if test -n "$ncn_target_tool_prefix"; then
10680 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10681set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10682echo "$as_me:$LINENO: checking for $ac_word" >&5
10683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10684if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10686else
10687 if test -n "$STRIP_FOR_TARGET"; then
10688 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10689else
10690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10691for as_dir in $PATH
10692do
10693 IFS=$as_save_IFS
10694 test -z "$as_dir" && as_dir=.
10695 for ac_exec_ext in '' $ac_executable_extensions; do
10696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10697 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10699 break 2
10700 fi
10701done
10702done
10703
7e0f7140
GK
10704fi
10705fi
c6b750e1 10706STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10707if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10708 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10709echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10710else
c6b750e1
DJ
10711 echo "$as_me:$LINENO: result: no" >&5
10712echo "${ECHO_T}no" >&6
7e0f7140
GK
10713fi
10714
2429c060
PB
10715 fi
10716 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10718set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10719echo "$as_me:$LINENO: checking for $ac_word" >&5
10720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10721if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10723else
10724 if test -n "$STRIP_FOR_TARGET"; then
10725 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10726else
c6b750e1
DJ
10727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10728for as_dir in $PATH
10729do
10730 IFS=$as_save_IFS
10731 test -z "$as_dir" && as_dir=.
10732 for ac_exec_ext in '' $ac_executable_extensions; do
10733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10734 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10736 break 2
10737 fi
10738done
10739done
10740
7e0f7140
GK
10741fi
10742fi
c6b750e1 10743STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10744if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10745 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10746echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10747else
c6b750e1
DJ
10748 echo "$as_me:$LINENO: result: no" >&5
10749echo "${ECHO_T}no" >&6
7e0f7140 10750fi
c6b750e1 10751
2429c060
PB
10752 fi
10753 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10754 done
10755fi
c6b750e1 10756
7e0f7140
GK
10757if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10758 set dummy strip
10759 if test $build = $target ; then
10760 STRIP_FOR_TARGET="$2"
10761 else
10762 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10763 fi
d3f5afc4
MS
10764else
10765 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10766fi
10767
3a35eeb3
PB
10768else
10769 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10770fi
10771
10772
10773
10774
10775if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10776 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10777 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10778echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10779 if test -x $with_build_time_tools/windres; then
10780 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10781 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10782 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10783echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10784 else
c6b750e1
DJ
10785 echo "$as_me:$LINENO: result: no" >&5
10786echo "${ECHO_T}no" >&6
3a35eeb3 10787 fi
2429c060
PB
10788 elif test $build != $host && test $have_gcc_for_target = yes; then
10789 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10790 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10791 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10792 fi
10793fi
c6b750e1 10794if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10795 # Extract the first word of "windres", so it can be a program name with args.
10796set dummy windres; ac_word=$2
c6b750e1
DJ
10797echo "$as_me:$LINENO: checking for $ac_word" >&5
10798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10799if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10801else
c6b750e1
DJ
10802 case $WINDRES_FOR_TARGET in
10803 [\\/]* | ?:[\\/]*)
2429c060
PB
10804 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10805 ;;
2429c060 10806 *)
c6b750e1
DJ
10807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10808for as_dir in $gcc_cv_tool_dirs
10809do
10810 IFS=$as_save_IFS
10811 test -z "$as_dir" && as_dir=.
10812 for ac_exec_ext in '' $ac_executable_extensions; do
10813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10814 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10816 break 2
10817 fi
10818done
10819done
10820
2429c060
PB
10821 ;;
10822esac
10823fi
c6b750e1
DJ
10824WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10825
2429c060 10826if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10827 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10828echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10829else
c6b750e1
DJ
10830 echo "$as_me:$LINENO: result: no" >&5
10831echo "${ECHO_T}no" >&6
2429c060
PB
10832fi
10833
10834fi
10835if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10836
10837
10838if test -n "$WINDRES_FOR_TARGET"; then
10839 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10840elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10841 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10842fi
10843
10844if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10845 for ncn_progname in windres; do
10846 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10847set dummy ${ncn_progname}; ac_word=$2
10848echo "$as_me:$LINENO: checking for $ac_word" >&5
10849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10850if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10852else
10853 if test -n "$WINDRES_FOR_TARGET"; then
10854 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10855else
10856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10857for as_dir in $PATH
10858do
10859 IFS=$as_save_IFS
10860 test -z "$as_dir" && as_dir=.
10861 for ac_exec_ext in '' $ac_executable_extensions; do
10862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10863 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10865 break 2
10866 fi
10867done
10868done
10869
10870fi
10871fi
10872WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10873if test -n "$WINDRES_FOR_TARGET"; then
10874 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10875echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10876else
10877 echo "$as_me:$LINENO: result: no" >&5
10878echo "${ECHO_T}no" >&6
10879fi
10880
10881 done
10882fi
10883
10884if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10885 for ncn_progname in windres; do
c6b750e1
DJ
10886 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10887echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10888 if test -x $with_build_time_tools/${ncn_progname}; then
10889 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10890 echo "$as_me:$LINENO: result: yes" >&5
10891echo "${ECHO_T}yes" >&6
2429c060
PB
10892 break
10893 else
c6b750e1
DJ
10894 echo "$as_me:$LINENO: result: no" >&5
10895echo "${ECHO_T}no" >&6
2429c060
PB
10896 fi
10897 done
10898fi
10899
10900if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10901 for ncn_progname in windres; do
10902 if test -n "$ncn_target_tool_prefix"; then
10903 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10904set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10905echo "$as_me:$LINENO: checking for $ac_word" >&5
10906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10907if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10909else
55db4b87
PB
10910 if test -n "$WINDRES_FOR_TARGET"; then
10911 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10912else
c6b750e1
DJ
10913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10914for as_dir in $PATH
10915do
10916 IFS=$as_save_IFS
10917 test -z "$as_dir" && as_dir=.
10918 for ac_exec_ext in '' $ac_executable_extensions; do
10919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10920 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10922 break 2
10923 fi
10924done
10925done
10926
859789af
AC
10927fi
10928fi
c6b750e1 10929WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 10930if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10931 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10932echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10933else
c6b750e1
DJ
10934 echo "$as_me:$LINENO: result: no" >&5
10935echo "${ECHO_T}no" >&6
859789af
AC
10936fi
10937
2429c060
PB
10938 fi
10939 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10941set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10942echo "$as_me:$LINENO: checking for $ac_word" >&5
10943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10944if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10946else
05cbd757
PB
10947 if test -n "$WINDRES_FOR_TARGET"; then
10948 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10949else
c6b750e1
DJ
10950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951for as_dir in $PATH
10952do
10953 IFS=$as_save_IFS
10954 test -z "$as_dir" && as_dir=.
10955 for ac_exec_ext in '' $ac_executable_extensions; do
10956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10957 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10959 break 2
10960 fi
10961done
10962done
10963
859789af
AC
10964fi
10965fi
c6b750e1 10966WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 10967if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10968 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10969echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10970else
c6b750e1
DJ
10971 echo "$as_me:$LINENO: result: no" >&5
10972echo "${ECHO_T}no" >&6
859789af 10973fi
c6b750e1 10974
2429c060
PB
10975 fi
10976 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10977 done
10978fi
c6b750e1 10979
05cbd757
PB
10980if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10981 set dummy windres
10982 if test $build = $target ; then
10983 WINDRES_FOR_TARGET="$2"
859789af 10984 else
05cbd757 10985 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10986 fi
d3f5afc4
MS
10987else
10988 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
10989fi
10990
3a35eeb3
PB
10991else
10992 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
10993fi
10994
852e5f18 10995
0c24b341
NC
10996
10997
10998if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10999 if test -n "$with_build_time_tools"; then
11000 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11001echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11002 if test -x $with_build_time_tools/windmc; then
11003 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11004 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11005 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11006echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11007 else
11008 echo "$as_me:$LINENO: result: no" >&5
11009echo "${ECHO_T}no" >&6
11010 fi
11011 elif test $build != $host && test $have_gcc_for_target = yes; then
11012 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11013 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11014 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11015 fi
11016fi
11017if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11018 # Extract the first word of "windmc", so it can be a program name with args.
11019set dummy windmc; ac_word=$2
11020echo "$as_me:$LINENO: checking for $ac_word" >&5
11021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11022if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11024else
11025 case $WINDMC_FOR_TARGET in
11026 [\\/]* | ?:[\\/]*)
11027 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11028 ;;
11029 *)
11030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11031for as_dir in $gcc_cv_tool_dirs
11032do
11033 IFS=$as_save_IFS
11034 test -z "$as_dir" && as_dir=.
11035 for ac_exec_ext in '' $ac_executable_extensions; do
11036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11037 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11039 break 2
11040 fi
11041done
11042done
11043
11044 ;;
11045esac
11046fi
11047WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11048
11049if test -n "$WINDMC_FOR_TARGET"; then
11050 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11051echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11052else
11053 echo "$as_me:$LINENO: result: no" >&5
11054echo "${ECHO_T}no" >&6
11055fi
11056
11057fi
11058if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11059
11060
11061if test -n "$WINDMC_FOR_TARGET"; then
11062 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11063elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11064 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11065fi
11066
11067if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11068 for ncn_progname in windmc; do
11069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11070set dummy ${ncn_progname}; ac_word=$2
11071echo "$as_me:$LINENO: checking for $ac_word" >&5
11072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11073if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11074 echo $ECHO_N "(cached) $ECHO_C" >&6
11075else
11076 if test -n "$WINDMC_FOR_TARGET"; then
11077 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11078else
11079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080for as_dir in $PATH
11081do
11082 IFS=$as_save_IFS
11083 test -z "$as_dir" && as_dir=.
11084 for ac_exec_ext in '' $ac_executable_extensions; do
11085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11086 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11088 break 2
11089 fi
11090done
11091done
11092
11093fi
11094fi
11095WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11096if test -n "$WINDMC_FOR_TARGET"; then
11097 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11098echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11099else
11100 echo "$as_me:$LINENO: result: no" >&5
11101echo "${ECHO_T}no" >&6
11102fi
11103
11104 done
11105fi
11106
11107if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11108 for ncn_progname in windmc; do
11109 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11110echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11111 if test -x $with_build_time_tools/${ncn_progname}; then
11112 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11113 echo "$as_me:$LINENO: result: yes" >&5
11114echo "${ECHO_T}yes" >&6
11115 break
11116 else
11117 echo "$as_me:$LINENO: result: no" >&5
11118echo "${ECHO_T}no" >&6
11119 fi
11120 done
11121fi
11122
11123if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11124 for ncn_progname in windmc; do
11125 if test -n "$ncn_target_tool_prefix"; then
11126 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11127set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11128echo "$as_me:$LINENO: checking for $ac_word" >&5
11129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11130if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132else
11133 if test -n "$WINDMC_FOR_TARGET"; then
11134 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11135else
11136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11137for as_dir in $PATH
11138do
11139 IFS=$as_save_IFS
11140 test -z "$as_dir" && as_dir=.
11141 for ac_exec_ext in '' $ac_executable_extensions; do
11142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11143 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11145 break 2
11146 fi
11147done
11148done
11149
11150fi
11151fi
11152WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11153if test -n "$WINDMC_FOR_TARGET"; then
11154 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11155echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11156else
11157 echo "$as_me:$LINENO: result: no" >&5
11158echo "${ECHO_T}no" >&6
11159fi
11160
11161 fi
11162 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11163 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11164set dummy ${ncn_progname}; ac_word=$2
11165echo "$as_me:$LINENO: checking for $ac_word" >&5
11166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11167if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11169else
11170 if test -n "$WINDMC_FOR_TARGET"; then
11171 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11172else
11173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174for as_dir in $PATH
11175do
11176 IFS=$as_save_IFS
11177 test -z "$as_dir" && as_dir=.
11178 for ac_exec_ext in '' $ac_executable_extensions; do
11179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11180 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11182 break 2
11183 fi
11184done
11185done
11186
11187fi
11188fi
11189WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11190if test -n "$WINDMC_FOR_TARGET"; then
11191 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11192echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11193else
11194 echo "$as_me:$LINENO: result: no" >&5
11195echo "${ECHO_T}no" >&6
11196fi
11197
11198 fi
11199 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11200 done
11201fi
11202
11203if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11204 set dummy windmc
11205 if test $build = $target ; then
11206 WINDMC_FOR_TARGET="$2"
11207 else
11208 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11209 fi
11210else
11211 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11212fi
11213
11214else
11215 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11216fi
11217
11218
be01d343
PB
11219RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11220
c6b750e1
DJ
11221echo "$as_me:$LINENO: checking where to find the target ar" >&5
11222echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11223if test "x${build}" != "x${host}" ; then
2429c060
PB
11224 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11225 # We already found the complete path
b8025f34
AS
11226 ac_dir=`dirname $AR_FOR_TARGET`
11227 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11228echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11229 else
11230 # Canadian cross, just use what we found
c6b750e1
DJ
11231 echo "$as_me:$LINENO: result: pre-installed" >&5
11232echo "${ECHO_T}pre-installed" >&6
2429c060 11233 fi
be01d343
PB
11234else
11235 ok=yes
11236 case " ${configdirs} " in
11237 *" binutils "*) ;;
11238 *) ok=no ;;
11239 esac
c6b750e1 11240
be01d343
PB
11241 if test $ok = yes; then
11242 # An in-tree tool is available and we can use it
11243 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11244 echo "$as_me:$LINENO: result: just compiled" >&5
11245echo "${ECHO_T}just compiled" >&6
2429c060
PB
11246 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11247 # We already found the complete path
b8025f34
AS
11248 ac_dir=`dirname $AR_FOR_TARGET`
11249 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11250echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11251 elif test "x$target" = "x$host"; then
11252 # We can use an host tool
11253 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11254 echo "$as_me:$LINENO: result: host tool" >&5
11255echo "${ECHO_T}host tool" >&6
be01d343
PB
11256 else
11257 # We need a cross tool
c6b750e1
DJ
11258 echo "$as_me:$LINENO: result: pre-installed" >&5
11259echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11260 fi
11261fi
4b900473 11262
c6b750e1
DJ
11263echo "$as_me:$LINENO: checking where to find the target as" >&5
11264echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11265if test "x${build}" != "x${host}" ; then
2429c060
PB
11266 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11267 # We already found the complete path
b8025f34
AS
11268 ac_dir=`dirname $AS_FOR_TARGET`
11269 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11270echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11271 else
11272 # Canadian cross, just use what we found
c6b750e1
DJ
11273 echo "$as_me:$LINENO: result: pre-installed" >&5
11274echo "${ECHO_T}pre-installed" >&6
2429c060 11275 fi
be01d343
PB
11276else
11277 ok=yes
11278 case " ${configdirs} " in
11279 *" gas "*) ;;
11280 *) ok=no ;;
11281 esac
c6b750e1 11282
be01d343
PB
11283 if test $ok = yes; then
11284 # An in-tree tool is available and we can use it
11285 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11286 echo "$as_me:$LINENO: result: just compiled" >&5
11287echo "${ECHO_T}just compiled" >&6
2429c060
PB
11288 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11289 # We already found the complete path
b8025f34
AS
11290 ac_dir=`dirname $AS_FOR_TARGET`
11291 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11292echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11293 elif test "x$target" = "x$host"; then
11294 # We can use an host tool
11295 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11296 echo "$as_me:$LINENO: result: host tool" >&5
11297echo "${ECHO_T}host tool" >&6
be01d343
PB
11298 else
11299 # We need a cross tool
c6b750e1
DJ
11300 echo "$as_me:$LINENO: result: pre-installed" >&5
11301echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11302 fi
11303fi
4b900473 11304
c6b750e1
DJ
11305echo "$as_me:$LINENO: checking where to find the target cc" >&5
11306echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11307if test "x${build}" != "x${host}" ; then
2429c060
PB
11308 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11309 # We already found the complete path
b8025f34
AS
11310 ac_dir=`dirname $CC_FOR_TARGET`
11311 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11312echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11313 else
11314 # Canadian cross, just use what we found
c6b750e1
DJ
11315 echo "$as_me:$LINENO: result: pre-installed" >&5
11316echo "${ECHO_T}pre-installed" >&6
2429c060 11317 fi
be01d343
PB
11318else
11319 ok=yes
11320 case " ${configdirs} " in
11321 *" gcc "*) ;;
11322 *) ok=no ;;
11323 esac
c6b750e1 11324
be01d343
PB
11325 if test $ok = yes; then
11326 # An in-tree tool is available and we can use it
11327 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11328 echo "$as_me:$LINENO: result: just compiled" >&5
11329echo "${ECHO_T}just compiled" >&6
2429c060
PB
11330 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11331 # We already found the complete path
b8025f34
AS
11332 ac_dir=`dirname $CC_FOR_TARGET`
11333 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11334echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11335 elif test "x$target" = "x$host"; then
11336 # We can use an host tool
11337 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11338 echo "$as_me:$LINENO: result: host tool" >&5
11339echo "${ECHO_T}host tool" >&6
be01d343
PB
11340 else
11341 # We need a cross tool
c6b750e1
DJ
11342 echo "$as_me:$LINENO: result: pre-installed" >&5
11343echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11344 fi
11345fi
4b900473 11346
c6b750e1
DJ
11347echo "$as_me:$LINENO: checking where to find the target c++" >&5
11348echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11349if test "x${build}" != "x${host}" ; then
2429c060
PB
11350 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11351 # We already found the complete path
b8025f34
AS
11352 ac_dir=`dirname $CXX_FOR_TARGET`
11353 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11354echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11355 else
11356 # Canadian cross, just use what we found
c6b750e1
DJ
11357 echo "$as_me:$LINENO: result: pre-installed" >&5
11358echo "${ECHO_T}pre-installed" >&6
2429c060 11359 fi
be01d343
PB
11360else
11361 ok=yes
11362 case " ${configdirs} " in
11363 *" gcc "*) ;;
11364 *) ok=no ;;
11365 esac
11366 case ,${enable_languages}, in
11367 *,c++,*) ;;
11368 *) ok=no ;;
11369 esac
11370 if test $ok = yes; then
11371 # An in-tree tool is available and we can use it
11372 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
11373 echo "$as_me:$LINENO: result: just compiled" >&5
11374echo "${ECHO_T}just compiled" >&6
2429c060
PB
11375 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11376 # We already found the complete path
b8025f34
AS
11377 ac_dir=`dirname $CXX_FOR_TARGET`
11378 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11379echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11380 elif test "x$target" = "x$host"; then
11381 # We can use an host tool
11382 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11383 echo "$as_me:$LINENO: result: host tool" >&5
11384echo "${ECHO_T}host tool" >&6
be01d343
PB
11385 else
11386 # We need a cross tool
c6b750e1
DJ
11387 echo "$as_me:$LINENO: result: pre-installed" >&5
11388echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11389 fi
11390fi
4b900473 11391
c6b750e1
DJ
11392echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11393echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11394if test "x${build}" != "x${host}" ; then
2429c060
PB
11395 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11396 # We already found the complete path
b8025f34
AS
11397 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11398 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11399echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11400 else
11401 # Canadian cross, just use what we found
c6b750e1
DJ
11402 echo "$as_me:$LINENO: result: pre-installed" >&5
11403echo "${ECHO_T}pre-installed" >&6
2429c060 11404 fi
be01d343
PB
11405else
11406 ok=yes
11407 case " ${configdirs} " in
11408 *" gcc "*) ;;
11409 *) ok=no ;;
11410 esac
11411 case ,${enable_languages}, in
11412 *,c++,*) ;;
11413 *) ok=no ;;
11414 esac
11415 if test $ok = yes; then
11416 # An in-tree tool is available and we can use it
11417 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
11418 echo "$as_me:$LINENO: result: just compiled" >&5
11419echo "${ECHO_T}just compiled" >&6
2429c060
PB
11420 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11421 # We already found the complete path
b8025f34
AS
11422 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11423 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11424echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11425 elif test "x$target" = "x$host"; then
11426 # We can use an host tool
11427 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11428 echo "$as_me:$LINENO: result: host tool" >&5
11429echo "${ECHO_T}host tool" >&6
be01d343
PB
11430 else
11431 # We need a cross tool
c6b750e1
DJ
11432 echo "$as_me:$LINENO: result: pre-installed" >&5
11433echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11434 fi
11435fi
4b900473 11436
c6b750e1
DJ
11437echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11438echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11439if test "x${build}" != "x${host}" ; then
2429c060
PB
11440 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11441 # We already found the complete path
b8025f34
AS
11442 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11443 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11444echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11445 else
11446 # Canadian cross, just use what we found
c6b750e1
DJ
11447 echo "$as_me:$LINENO: result: pre-installed" >&5
11448echo "${ECHO_T}pre-installed" >&6
2429c060 11449 fi
be01d343
PB
11450else
11451 ok=yes
11452 case " ${configdirs} " in
11453 *" binutils "*) ;;
11454 *) ok=no ;;
11455 esac
c6b750e1 11456
be01d343
PB
11457 if test $ok = yes; then
11458 # An in-tree tool is available and we can use it
11459 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11460 echo "$as_me:$LINENO: result: just compiled" >&5
11461echo "${ECHO_T}just compiled" >&6
2429c060
PB
11462 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11463 # We already found the complete path
b8025f34
AS
11464 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11465 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11466echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11467 elif test "x$target" = "x$host"; then
11468 # We can use an host tool
11469 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11470 echo "$as_me:$LINENO: result: host tool" >&5
11471echo "${ECHO_T}host tool" >&6
be01d343
PB
11472 else
11473 # We need a cross tool
c6b750e1
DJ
11474 echo "$as_me:$LINENO: result: pre-installed" >&5
11475echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11476 fi
11477fi
4b900473 11478
c6b750e1
DJ
11479echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11480echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11481if test "x${build}" != "x${host}" ; then
2429c060
PB
11482 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11483 # We already found the complete path
b8025f34
AS
11484 ac_dir=`dirname $GCC_FOR_TARGET`
11485 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11486echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11487 else
11488 # Canadian cross, just use what we found
c6b750e1
DJ
11489 echo "$as_me:$LINENO: result: pre-installed" >&5
11490echo "${ECHO_T}pre-installed" >&6
2429c060 11491 fi
be01d343
PB
11492else
11493 ok=yes
11494 case " ${configdirs} " in
11495 *" gcc "*) ;;
11496 *) ok=no ;;
11497 esac
c6b750e1 11498
be01d343
PB
11499 if test $ok = yes; then
11500 # An in-tree tool is available and we can use it
11501 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11502 echo "$as_me:$LINENO: result: just compiled" >&5
11503echo "${ECHO_T}just compiled" >&6
2429c060
PB
11504 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11505 # We already found the complete path
b8025f34
AS
11506 ac_dir=`dirname $GCC_FOR_TARGET`
11507 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11508echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11509 elif test "x$target" = "x$host"; then
11510 # We can use an host tool
11511 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11512 echo "$as_me:$LINENO: result: host tool" >&5
11513echo "${ECHO_T}host tool" >&6
be01d343
PB
11514 else
11515 # We need a cross tool
c6b750e1
DJ
11516 echo "$as_me:$LINENO: result: pre-installed" >&5
11517echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11518 fi
11519fi
4b900473 11520
c6b750e1
DJ
11521echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11522echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11523if test "x${build}" != "x${host}" ; then
2429c060
PB
11524 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11525 # We already found the complete path
b8025f34
AS
11526 ac_dir=`dirname $GCJ_FOR_TARGET`
11527 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11528echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11529 else
11530 # Canadian cross, just use what we found
c6b750e1
DJ
11531 echo "$as_me:$LINENO: result: pre-installed" >&5
11532echo "${ECHO_T}pre-installed" >&6
2429c060 11533 fi
be01d343
PB
11534else
11535 ok=yes
11536 case " ${configdirs} " in
11537 *" gcc "*) ;;
11538 *) ok=no ;;
11539 esac
11540 case ,${enable_languages}, in
11541 *,java,*) ;;
11542 *) ok=no ;;
11543 esac
11544 if test $ok = yes; then
11545 # An in-tree tool is available and we can use it
11546 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11547 echo "$as_me:$LINENO: result: just compiled" >&5
11548echo "${ECHO_T}just compiled" >&6
2429c060
PB
11549 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11550 # We already found the complete path
b8025f34
AS
11551 ac_dir=`dirname $GCJ_FOR_TARGET`
11552 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11553echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11554 elif test "x$target" = "x$host"; then
11555 # We can use an host tool
11556 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11557 echo "$as_me:$LINENO: result: host tool" >&5
11558echo "${ECHO_T}host tool" >&6
be01d343
PB
11559 else
11560 # We need a cross tool
c6b750e1
DJ
11561 echo "$as_me:$LINENO: result: pre-installed" >&5
11562echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11563 fi
11564fi
4b900473 11565
c6b750e1
DJ
11566echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11567echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11568if test "x${build}" != "x${host}" ; then
2429c060
PB
11569 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11570 # We already found the complete path
b8025f34
AS
11571 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11572 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11573echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11574 else
11575 # Canadian cross, just use what we found
c6b750e1
DJ
11576 echo "$as_me:$LINENO: result: pre-installed" >&5
11577echo "${ECHO_T}pre-installed" >&6
2429c060 11578 fi
be01d343
PB
11579else
11580 ok=yes
11581 case " ${configdirs} " in
11582 *" gcc "*) ;;
11583 *) ok=no ;;
11584 esac
11585 case ,${enable_languages}, in
11586 *,fortran,*) ;;
11587 *) ok=no ;;
11588 esac
11589 if test $ok = yes; then
11590 # An in-tree tool is available and we can use it
11591 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11592 echo "$as_me:$LINENO: result: just compiled" >&5
11593echo "${ECHO_T}just compiled" >&6
2429c060
PB
11594 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11595 # We already found the complete path
b8025f34
AS
11596 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11597 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11598echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11599 elif test "x$target" = "x$host"; then
11600 # We can use an host tool
11601 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11602 echo "$as_me:$LINENO: result: host tool" >&5
11603echo "${ECHO_T}host tool" >&6
be01d343
PB
11604 else
11605 # We need a cross tool
c6b750e1
DJ
11606 echo "$as_me:$LINENO: result: pre-installed" >&5
11607echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11608 fi
11609fi
4b900473 11610
c6b750e1
DJ
11611echo "$as_me:$LINENO: checking where to find the target ld" >&5
11612echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11613if test "x${build}" != "x${host}" ; then
2429c060
PB
11614 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11615 # We already found the complete path
b8025f34
AS
11616 ac_dir=`dirname $LD_FOR_TARGET`
11617 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11618echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11619 else
11620 # Canadian cross, just use what we found
c6b750e1
DJ
11621 echo "$as_me:$LINENO: result: pre-installed" >&5
11622echo "${ECHO_T}pre-installed" >&6
2429c060 11623 fi
be01d343
PB
11624else
11625 ok=yes
11626 case " ${configdirs} " in
11627 *" ld "*) ;;
11628 *) ok=no ;;
11629 esac
c6b750e1 11630
be01d343
PB
11631 if test $ok = yes; then
11632 # An in-tree tool is available and we can use it
11633 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11634 echo "$as_me:$LINENO: result: just compiled" >&5
11635echo "${ECHO_T}just compiled" >&6
2429c060
PB
11636 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11637 # We already found the complete path
b8025f34
AS
11638 ac_dir=`dirname $LD_FOR_TARGET`
11639 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11640echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11641 elif test "x$target" = "x$host"; then
11642 # We can use an host tool
11643 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11644 echo "$as_me:$LINENO: result: host tool" >&5
11645echo "${ECHO_T}host tool" >&6
be01d343
PB
11646 else
11647 # We need a cross tool
c6b750e1
DJ
11648 echo "$as_me:$LINENO: result: pre-installed" >&5
11649echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11650 fi
11651fi
4b900473 11652
c6b750e1
DJ
11653echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11654echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11655if test "x${build}" != "x${host}" ; then
2429c060
PB
11656 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11657 # We already found the complete path
b8025f34
AS
11658 ac_dir=`dirname $LIPO_FOR_TARGET`
11659 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11660echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11661 else
11662 # Canadian cross, just use what we found
c6b750e1
DJ
11663 echo "$as_me:$LINENO: result: pre-installed" >&5
11664echo "${ECHO_T}pre-installed" >&6
2429c060 11665 fi
be01d343 11666else
2429c060
PB
11667 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11668 # We already found the complete path
b8025f34
AS
11669 ac_dir=`dirname $LIPO_FOR_TARGET`
11670 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11671echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11672 elif test "x$target" = "x$host"; then
be01d343
PB
11673 # We can use an host tool
11674 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11675 echo "$as_me:$LINENO: result: host tool" >&5
11676echo "${ECHO_T}host tool" >&6
be01d343
PB
11677 else
11678 # We need a cross tool
c6b750e1
DJ
11679 echo "$as_me:$LINENO: result: pre-installed" >&5
11680echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11681 fi
11682fi
4b900473 11683
c6b750e1
DJ
11684echo "$as_me:$LINENO: checking where to find the target nm" >&5
11685echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11686if test "x${build}" != "x${host}" ; then
2429c060
PB
11687 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11688 # We already found the complete path
b8025f34
AS
11689 ac_dir=`dirname $NM_FOR_TARGET`
11690 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11691echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11692 else
11693 # Canadian cross, just use what we found
c6b750e1
DJ
11694 echo "$as_me:$LINENO: result: pre-installed" >&5
11695echo "${ECHO_T}pre-installed" >&6
2429c060 11696 fi
be01d343
PB
11697else
11698 ok=yes
11699 case " ${configdirs} " in
11700 *" binutils "*) ;;
11701 *) ok=no ;;
11702 esac
c6b750e1 11703
be01d343
PB
11704 if test $ok = yes; then
11705 # An in-tree tool is available and we can use it
11706 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11707 echo "$as_me:$LINENO: result: just compiled" >&5
11708echo "${ECHO_T}just compiled" >&6
2429c060
PB
11709 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11710 # We already found the complete path
b8025f34
AS
11711 ac_dir=`dirname $NM_FOR_TARGET`
11712 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11713echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11714 elif test "x$target" = "x$host"; then
11715 # We can use an host tool
11716 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11717 echo "$as_me:$LINENO: result: host tool" >&5
11718echo "${ECHO_T}host tool" >&6
be01d343
PB
11719 else
11720 # We need a cross tool
c6b750e1
DJ
11721 echo "$as_me:$LINENO: result: pre-installed" >&5
11722echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11723 fi
11724fi
4b900473 11725
c6b750e1
DJ
11726echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11727echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11728if test "x${build}" != "x${host}" ; then
2429c060
PB
11729 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11730 # We already found the complete path
b8025f34
AS
11731 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11732 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11733echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11734 else
11735 # Canadian cross, just use what we found
c6b750e1
DJ
11736 echo "$as_me:$LINENO: result: pre-installed" >&5
11737echo "${ECHO_T}pre-installed" >&6
2429c060 11738 fi
be01d343
PB
11739else
11740 ok=yes
11741 case " ${configdirs} " in
11742 *" binutils "*) ;;
11743 *) ok=no ;;
11744 esac
c6b750e1 11745
be01d343
PB
11746 if test $ok = yes; then
11747 # An in-tree tool is available and we can use it
11748 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11749 echo "$as_me:$LINENO: result: just compiled" >&5
11750echo "${ECHO_T}just compiled" >&6
2429c060
PB
11751 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11752 # We already found the complete path
b8025f34
AS
11753 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11754 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11755echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11756 elif test "x$target" = "x$host"; then
11757 # We can use an host tool
11758 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11759 echo "$as_me:$LINENO: result: host tool" >&5
11760echo "${ECHO_T}host tool" >&6
be01d343
PB
11761 else
11762 # We need a cross tool
c6b750e1
DJ
11763 echo "$as_me:$LINENO: result: pre-installed" >&5
11764echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11765 fi
11766fi
4b900473 11767
c6b750e1
DJ
11768echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11769echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11770if test "x${build}" != "x${host}" ; then
2429c060
PB
11771 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11772 # We already found the complete path
b8025f34
AS
11773 ac_dir=`dirname $RANLIB_FOR_TARGET`
11774 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11775echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11776 else
11777 # Canadian cross, just use what we found
c6b750e1
DJ
11778 echo "$as_me:$LINENO: result: pre-installed" >&5
11779echo "${ECHO_T}pre-installed" >&6
2429c060 11780 fi
be01d343
PB
11781else
11782 ok=yes
11783 case " ${configdirs} " in
11784 *" binutils "*) ;;
11785 *) ok=no ;;
11786 esac
c6b750e1 11787
be01d343
PB
11788 if test $ok = yes; then
11789 # An in-tree tool is available and we can use it
11790 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11791 echo "$as_me:$LINENO: result: just compiled" >&5
11792echo "${ECHO_T}just compiled" >&6
2429c060
PB
11793 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11794 # We already found the complete path
b8025f34
AS
11795 ac_dir=`dirname $RANLIB_FOR_TARGET`
11796 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11797echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11798 elif test "x$target" = "x$host"; then
11799 # We can use an host tool
11800 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11801 echo "$as_me:$LINENO: result: host tool" >&5
11802echo "${ECHO_T}host tool" >&6
be01d343
PB
11803 else
11804 # We need a cross tool
c6b750e1
DJ
11805 echo "$as_me:$LINENO: result: pre-installed" >&5
11806echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11807 fi
11808fi
4b900473 11809
c6b750e1
DJ
11810echo "$as_me:$LINENO: checking where to find the target strip" >&5
11811echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11812if test "x${build}" != "x${host}" ; then
2429c060
PB
11813 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11814 # We already found the complete path
b8025f34
AS
11815 ac_dir=`dirname $STRIP_FOR_TARGET`
11816 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11817echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11818 else
11819 # Canadian cross, just use what we found
c6b750e1
DJ
11820 echo "$as_me:$LINENO: result: pre-installed" >&5
11821echo "${ECHO_T}pre-installed" >&6
2429c060 11822 fi
be01d343
PB
11823else
11824 ok=yes
11825 case " ${configdirs} " in
11826 *" binutils "*) ;;
11827 *) ok=no ;;
11828 esac
c6b750e1 11829
be01d343
PB
11830 if test $ok = yes; then
11831 # An in-tree tool is available and we can use it
11832 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11833 echo "$as_me:$LINENO: result: just compiled" >&5
11834echo "${ECHO_T}just compiled" >&6
2429c060
PB
11835 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11836 # We already found the complete path
b8025f34
AS
11837 ac_dir=`dirname $STRIP_FOR_TARGET`
11838 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11839echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11840 elif test "x$target" = "x$host"; then
11841 # We can use an host tool
11842 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11843 echo "$as_me:$LINENO: result: host tool" >&5
11844echo "${ECHO_T}host tool" >&6
be01d343
PB
11845 else
11846 # We need a cross tool
c6b750e1
DJ
11847 echo "$as_me:$LINENO: result: pre-installed" >&5
11848echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11849 fi
11850fi
4b900473 11851
c6b750e1
DJ
11852echo "$as_me:$LINENO: checking where to find the target windres" >&5
11853echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 11854if test "x${build}" != "x${host}" ; then
2429c060
PB
11855 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11856 # We already found the complete path
b8025f34
AS
11857 ac_dir=`dirname $WINDRES_FOR_TARGET`
11858 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11859echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11860 else
11861 # Canadian cross, just use what we found
c6b750e1
DJ
11862 echo "$as_me:$LINENO: result: pre-installed" >&5
11863echo "${ECHO_T}pre-installed" >&6
2429c060 11864 fi
be01d343
PB
11865else
11866 ok=yes
11867 case " ${configdirs} " in
11868 *" binutils "*) ;;
11869 *) ok=no ;;
11870 esac
c6b750e1 11871
be01d343
PB
11872 if test $ok = yes; then
11873 # An in-tree tool is available and we can use it
11874 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
11875 echo "$as_me:$LINENO: result: just compiled" >&5
11876echo "${ECHO_T}just compiled" >&6
2429c060
PB
11877 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11878 # We already found the complete path
b8025f34
AS
11879 ac_dir=`dirname $WINDRES_FOR_TARGET`
11880 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11881echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11882 elif test "x$target" = "x$host"; then
11883 # We can use an host tool
11884 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
11885 echo "$as_me:$LINENO: result: host tool" >&5
11886echo "${ECHO_T}host tool" >&6
be01d343
PB
11887 else
11888 # We need a cross tool
c6b750e1
DJ
11889 echo "$as_me:$LINENO: result: pre-installed" >&5
11890echo "${ECHO_T}pre-installed" >&6
be01d343 11891 fi
a0da8069 11892fi
54752a6b 11893
0c24b341
NC
11894echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11895echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11896if test "x${build}" != "x${host}" ; then
11897 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11898 # We already found the complete path
11899 ac_dir=`dirname $WINDMC_FOR_TARGET`
11900 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11901echo "${ECHO_T}pre-installed in $ac_dir" >&6
11902 else
11903 # Canadian cross, just use what we found
11904 echo "$as_me:$LINENO: result: pre-installed" >&5
11905echo "${ECHO_T}pre-installed" >&6
11906 fi
11907else
11908 ok=yes
11909 case " ${configdirs} " in
11910 *" binutils "*) ;;
11911 *) ok=no ;;
11912 esac
11913
11914 if test $ok = yes; then
11915 # An in-tree tool is available and we can use it
11916 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11917 echo "$as_me:$LINENO: result: just compiled" >&5
11918echo "${ECHO_T}just compiled" >&6
11919 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11920 # We already found the complete path
11921 ac_dir=`dirname $WINDMC_FOR_TARGET`
11922 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11923echo "${ECHO_T}pre-installed in $ac_dir" >&6
11924 elif test "x$target" = "x$host"; then
11925 # We can use an host tool
11926 WINDMC_FOR_TARGET='$(WINDMC)'
11927 echo "$as_me:$LINENO: result: host tool" >&5
11928echo "${ECHO_T}host tool" >&6
11929 else
11930 # We need a cross tool
11931 echo "$as_me:$LINENO: result: pre-installed" >&5
11932echo "${ECHO_T}pre-installed" >&6
11933 fi
11934fi
11935
54752a6b
NN
11936
11937
be01d343 11938
4b900473 11939
a0da8069
NN
11940# Certain tools may need extra flags.
11941AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11942RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11943NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11944
be01d343
PB
11945# When building target libraries, except in a Canadian cross, we use
11946# the same toolchain as the compiler we just built.
11947COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11948COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11949COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11950if test $host = $build; then
11951 case " $configdirs " in
11952 *" gcc "*)
11953 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11954 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11955 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11956 ;;
11957 esac
11958fi
11959
11960
11961
11962
11963
c6b750e1
DJ
11964echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11965echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
11966# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11967if test "${enable_maintainer_mode+set}" = set; then
11968 enableval="$enable_maintainer_mode"
11969 USE_MAINTAINER_MODE=$enableval
11970else
11971 USE_MAINTAINER_MODE=no
c6b750e1
DJ
11972fi;
11973echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11974echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
11975
11976
11977if test "$USE_MAINTAINER_MODE" = yes; then
11978 MAINTAINER_MODE_TRUE=
11979 MAINTAINER_MODE_FALSE='#'
11980else
11981 MAINTAINER_MODE_TRUE='#'
11982 MAINTAINER_MODE_FALSE=
c6b750e1 11983fi
3d5e36ae
AO
11984MAINT=$MAINTAINER_MODE_TRUE
11985
1d39f329
NN
11986# ---------------------
11987# GCC bootstrap support
11988# ---------------------
11989
11990# Stage specific cflags for build.
11991stage1_cflags="-g"
11992case $build in
11993 vax-*-*)
11994 case ${GCC} in
11995 yes) stage1_cflags="-g -Wa,-J" ;;
11996 *) stage1_cflags="-g -J" ;;
11997 esac ;;
1d39f329
NN
11998esac
11999
1d89b610
PB
12000# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12001if test "$GCC" = yes; then
12002 saved_CFLAGS="$CFLAGS"
12003
12004 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12005 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
12006 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12007echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12008 cat >conftest.$ac_ext <<_ACEOF
12009/* confdefs.h. */
12010_ACEOF
12011cat confdefs.h >>conftest.$ac_ext
12012cat >>conftest.$ac_ext <<_ACEOF
12013/* end confdefs.h. */
12014
2038f525
PB
12015#if (__GNUC__ < 3) \
12016 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12017 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12018#error http://gcc.gnu.org/PR29382
12019#endif
12020
c6b750e1
DJ
12021int
12022main ()
12023{
12024
12025 ;
12026 return 0;
12027}
12028_ACEOF
12029rm -f conftest.$ac_objext
12030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12031 (eval $ac_compile) 2>conftest.er1
12032 ac_status=$?
12033 grep -v '^ *+' conftest.er1 >conftest.err
12034 rm -f conftest.er1
12035 cat conftest.err >&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); } &&
12038 { ac_try='test -z "$ac_c_werror_flag"
12039 || test ! -s conftest.err'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12042 ac_status=$?
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; } &&
12045 { ac_try='test -s conftest.$ac_objext'
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12048 ac_status=$?
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; }; then
12051 echo "$as_me:$LINENO: result: yes" >&5
12052echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12053else
12054 echo "$as_me: failed program was:" >&5
12055sed 's/^/| /' conftest.$ac_ext >&5
12056
12057echo "$as_me:$LINENO: result: no" >&5
12058echo "${ECHO_T}no" >&6
12059fi
12060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12061
12062 CFLAGS="$saved_CFLAGS"
12063fi
12064
12065
1d39f329 12066
8a0d8a5c
PB
12067# Enable --enable-checking in stage1 of the compiler.
12068# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12069if test "${enable_stage1_checking+set}" = set; then
12070 enableval="$enable_stage1_checking"
12071 stage1_checking=--enable-checking=${enable_stage1_checking}
12072else
5566c1fa 12073 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12074 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12075else
5566c1fa 12076 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12077fi
c6b750e1 12078fi;
8a0d8a5c
PB
12079
12080
1d39f329 12081# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12082# Check whether --enable-werror or --disable-werror was given.
12083if test "${enable_werror+set}" = set; then
12084 enableval="$enable_werror"
c6b750e1 12085
1d39f329 12086else
a0323144 12087 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12088 enable_werror=yes
79fcd0ec
PB
12089else
12090 enable_werror=no
12091fi
c6b750e1 12092fi;
1a6f2dc7
NN
12093case ${enable_werror} in
12094 yes) stage2_werror_flag="--enable-werror-always" ;;
12095 *) stage2_werror_flag="" ;;
1d39f329
NN
12096esac
12097
12098
108a6f8e 12099# Flags needed to enable html installing and building
c6b750e1 12100
108a6f8e
CD
12101# Check whether --with-datarootdir or --without-datarootdir was given.
12102if test "${with_datarootdir+set}" = set; then
12103 withval="$with_datarootdir"
12104 datarootdir="\${prefix}/${withval}"
12105else
12106 datarootdir="\${prefix}/share"
c6b750e1 12107fi;
108a6f8e
CD
12108
12109
12110# Check whether --with-docdir or --without-docdir was given.
12111if test "${with_docdir+set}" = set; then
12112 withval="$with_docdir"
12113 docdir="\${prefix}/${withval}"
12114else
12115 docdir="\${datarootdir}/doc"
c6b750e1 12116fi;
108a6f8e
CD
12117
12118
a3ca38d2
DD
12119# Check whether --with-pdfdir or --without-pdfdir was given.
12120if test "${with_pdfdir+set}" = set; then
12121 withval="$with_pdfdir"
12122 pdfdir="\${prefix}/${withval}"
12123else
12124 pdfdir="\${docdir}"
12125fi;
12126
12127
108a6f8e
CD
12128# Check whether --with-htmldir or --without-htmldir was given.
12129if test "${with_htmldir+set}" = set; then
12130 withval="$with_htmldir"
12131 htmldir="\${prefix}/${withval}"
12132else
12133 htmldir="\${docdir}"
c6b750e1 12134fi;
108a6f8e
CD
12135
12136
12137
12138
12139
b8025f34 12140
c6b750e1
DJ
12141 ac_config_files="$ac_config_files Makefile"
12142cat >confcache <<\_ACEOF
a0da8069
NN
12143# This file is a shell script that caches the results of configure
12144# tests run on this system so they can be shared between configure
c6b750e1
DJ
12145# scripts and configure runs, see configure's option --config-cache.
12146# It is not useful on other systems. If it contains results you don't
12147# want to keep, you may remove or edit it.
a0da8069 12148#
c6b750e1
DJ
12149# config.status only pays attention to the cache file if you give it
12150# the --recheck option to rerun configure.
a0da8069 12151#
c6b750e1
DJ
12152# `ac_cv_env_foo' variables (set or unset) will be overridden when
12153# loading this file, other *unset* `ac_cv_foo' will be assigned the
12154# following values.
12155
12156_ACEOF
12157
a0da8069
NN
12158# The following way of writing the cache mishandles newlines in values,
12159# but we know of no workaround that is simple, portable, and efficient.
12160# So, don't put newlines in cache variables' values.
12161# Ultrix sh set writes to stderr and can't be redirected directly,
12162# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12163{
12164 (set) 2>&1 |
12165 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12166 *ac_space=\ *)
12167 # `set' does not quote correctly, so add quotes (double-quote
12168 # substitution turns \\\\ into \\, and sed turns \\ into \).
12169 sed -n \
12170 "s/'/'\\\\''/g;
12171 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12172 ;;
12173 *)
12174 # `set' quotes correctly as required by POSIX, so do not add quotes.
12175 sed -n \
12176 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12177 ;;
12178 esac;
12179} |
12180 sed '
12181 t clear
12182 : clear
12183 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12184 t end
12185 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12186 : end' >>confcache
12187if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12188 if test -w $cache_file; then
c6b750e1
DJ
12189 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12190 cat confcache >$cache_file
a0da8069
NN
12191 else
12192 echo "not updating unwritable cache $cache_file"
12193 fi
852e5f18 12194fi
a0da8069 12195rm -f confcache
852e5f18 12196
a0da8069
NN
12197test "x$prefix" = xNONE && prefix=$ac_default_prefix
12198# Let make expand exec_prefix.
12199test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12200
c6b750e1
DJ
12201# VPATH may cause trouble with some makes, so we remove $(srcdir),
12202# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12203# trailing colons and then remove the whole line if VPATH becomes empty
12204# (actually we leave an empty line to preserve line numbers).
a0da8069 12205if test "x$srcdir" = x.; then
c6b750e1
DJ
12206 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12207s/:*\$(srcdir):*/:/;
12208s/:*\${srcdir}:*/:/;
12209s/:*@srcdir@:*/:/;
12210s/^\([^=]*=[ ]*\):*/\1/;
12211s/:*$//;
12212s/^[^=]*=[ ]*$//;
12213}'
a0da8069 12214fi
252b5132 12215
a0da8069
NN
12216# Transform confdefs.h into DEFS.
12217# Protect against shell expansion while executing Makefile rules.
12218# Protect against Makefile macro expansion.
c6b750e1
DJ
12219#
12220# If the first sed substitution is executed (which looks for macros that
12221# take arguments), then we branch to the quote section. Otherwise,
12222# look for a macro that doesn't take arguments.
12223cat >confdef2opt.sed <<\_ACEOF
12224t clear
12225: clear
12226s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12227t quote
12228s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12229t quote
12230d
12231: quote
12232s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12233s,\[,\\&,g
12234s,\],\\&,g
12235s,\$,$$,g
12236p
12237_ACEOF
12238# We use echo to avoid assuming a particular line-breaking character.
12239# The extra dot is to prevent the shell from consuming trailing
12240# line-breaks from the sub-command output. A line-break within
12241# single-quotes doesn't work because, if this script is created in a
12242# platform that uses two characters for line-breaks (e.g., DOS), tr
12243# would break.
12244ac_LF_and_DOT=`echo; echo .`
12245DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12246rm -f confdef2opt.sed
12247
12248
12249ac_libobjs=
12250ac_ltlibobjs=
12251for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12252 # 1. Remove the extension, and $U if already installed.
12253 ac_i=`echo "$ac_i" |
12254 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12255 # 2. Add them.
12256 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12257 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12258done
12259LIBOBJS=$ac_libobjs
852e5f18 12260
c6b750e1 12261LTLIBOBJS=$ac_ltlibobjs
376a0e54 12262
cac3d6c4 12263
c6b750e1
DJ
12264
12265: ${CONFIG_STATUS=./config.status}
12266ac_clean_files_save=$ac_clean_files
12267ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12268{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12269echo "$as_me: creating $CONFIG_STATUS" >&6;}
12270cat >$CONFIG_STATUS <<_ACEOF
12271#! $SHELL
12272# Generated by $as_me.
a0da8069 12273# Run this file to recreate the current configuration.
a0da8069 12274# Compiler output produced by configure, useful for debugging
c6b750e1 12275# configure, is in config.log if it exists.
376a0e54 12276
c6b750e1
DJ
12277debug=false
12278ac_cs_recheck=false
12279ac_cs_silent=false
12280SHELL=\${CONFIG_SHELL-$SHELL}
12281_ACEOF
12282
12283cat >>$CONFIG_STATUS <<\_ACEOF
12284## --------------------- ##
12285## M4sh Initialization. ##
12286## --------------------- ##
12287
12288# Be Bourne compatible
12289if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12290 emulate sh
12291 NULLCMD=:
12292 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12293 # is contrary to our usage. Disable this feature.
12294 alias -g '${1+"$@"}'='"$@"'
12295elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12296 set -o posix
12297fi
12298DUALCASE=1; export DUALCASE # for MKS sh
12299
12300# Support unset when possible.
12301if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12302 as_unset=unset
12303else
12304 as_unset=false
12305fi
12306
12307
12308# Work around bugs in pre-3.0 UWIN ksh.
12309$as_unset ENV MAIL MAILPATH
12310PS1='$ '
12311PS2='> '
12312PS4='+ '
12313
12314# NLS nuisances.
12315for as_var in \
12316 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12317 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12318 LC_TELEPHONE LC_TIME
12319do
12320 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12321 eval $as_var=C; export $as_var
12322 else
12323 $as_unset $as_var
12324 fi
12325done
12326
12327# Required to use basename.
12328if expr a : '\(a\)' >/dev/null 2>&1; then
12329 as_expr=expr
12330else
12331 as_expr=false
12332fi
12333
12334if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12335 as_basename=basename
12336else
12337 as_basename=false
12338fi
12339
12340
12341# Name of the executable.
12342as_me=`$as_basename "$0" ||
12343$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12344 X"$0" : 'X\(//\)$' \| \
12345 X"$0" : 'X\(/\)$' \| \
12346 . : '\(.\)' 2>/dev/null ||
12347echo X/"$0" |
12348 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12349 /^X\/\(\/\/\)$/{ s//\1/; q; }
12350 /^X\/\(\/\).*/{ s//\1/; q; }
12351 s/.*/./; q'`
12352
12353
12354# PATH needs CR, and LINENO needs CR and PATH.
12355# Avoid depending upon Character Ranges.
12356as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12357as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12358as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12359as_cr_digits='0123456789'
12360as_cr_alnum=$as_cr_Letters$as_cr_digits
12361
12362# The user is always right.
12363if test "${PATH_SEPARATOR+set}" != set; then
12364 echo "#! /bin/sh" >conf$$.sh
12365 echo "exit 0" >>conf$$.sh
12366 chmod +x conf$$.sh
12367 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12368 PATH_SEPARATOR=';'
12369 else
12370 PATH_SEPARATOR=:
12371 fi
12372 rm -f conf$$.sh
12373fi
12374
12375
12376 as_lineno_1=$LINENO
12377 as_lineno_2=$LINENO
12378 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12379 test "x$as_lineno_1" != "x$as_lineno_2" &&
12380 test "x$as_lineno_3" = "x$as_lineno_2" || {
12381 # Find who we are. Look in the path if we contain no path at all
12382 # relative or not.
12383 case $0 in
12384 *[\\/]* ) as_myself=$0 ;;
12385 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12386for as_dir in $PATH
12387do
12388 IFS=$as_save_IFS
12389 test -z "$as_dir" && as_dir=.
12390 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12391done
12392
12393 ;;
12394 esac
12395 # We did not find ourselves, most probably we were run as `sh COMMAND'
12396 # in which case we are not to be found in the path.
12397 if test "x$as_myself" = x; then
12398 as_myself=$0
12399 fi
12400 if test ! -f "$as_myself"; then
12401 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12402echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12403 { (exit 1); exit 1; }; }
12404 fi
12405 case $CONFIG_SHELL in
12406 '')
12407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12408for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12409do
12410 IFS=$as_save_IFS
12411 test -z "$as_dir" && as_dir=.
12412 for as_base in sh bash ksh sh5; do
12413 case $as_dir in
12414 /*)
12415 if ("$as_dir/$as_base" -c '
12416 as_lineno_1=$LINENO
12417 as_lineno_2=$LINENO
12418 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12419 test "x$as_lineno_1" != "x$as_lineno_2" &&
12420 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12421 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12422 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12423 CONFIG_SHELL=$as_dir/$as_base
12424 export CONFIG_SHELL
12425 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12426 fi;;
12427 esac
12428 done
12429done
12430;;
12431 esac
12432
12433 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12434 # uniformly replaced by the line number. The first 'sed' inserts a
12435 # line-number line before each line; the second 'sed' does the real
12436 # work. The second script uses 'N' to pair each line-number line
12437 # with the numbered line, and appends trailing '-' during
12438 # substitution so that $LINENO is not a special case at line end.
12439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12440 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12441 sed '=' <$as_myself |
12442 sed '
12443 N
12444 s,$,-,
12445 : loop
12446 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12447 t loop
12448 s,-$,,
12449 s,^['$as_cr_digits']*\n,,
12450 ' >$as_me.lineno &&
12451 chmod +x $as_me.lineno ||
12452 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12453echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12454 { (exit 1); exit 1; }; }
12455
12456 # Don't try to exec as it changes $[0], causing all sort of problems
12457 # (the dirname of $[0] is not the place where we might find the
12458 # original and so on. Autoconf is especially sensible to this).
12459 . ./$as_me.lineno
12460 # Exit status is that of the last command.
12461 exit
12462}
12463
12464
12465case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12466 *c*,-n*) ECHO_N= ECHO_C='
12467' ECHO_T=' ' ;;
12468 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12469 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12470esac
12471
12472if expr a : '\(a\)' >/dev/null 2>&1; then
12473 as_expr=expr
12474else
12475 as_expr=false
12476fi
12477
12478rm -f conf$$ conf$$.exe conf$$.file
12479echo >conf$$.file
12480if ln -s conf$$.file conf$$ 2>/dev/null; then
12481 # We could just check for DJGPP; but this test a) works b) is more generic
12482 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12483 if test -f conf$$.exe; then
12484 # Don't use ln at all; we don't have any links
12485 as_ln_s='cp -p'
12486 else
12487 as_ln_s='ln -s'
12488 fi
12489elif ln conf$$.file conf$$ 2>/dev/null; then
12490 as_ln_s=ln
12491else
12492 as_ln_s='cp -p'
12493fi
12494rm -f conf$$ conf$$.exe conf$$.file
12495
12496if mkdir -p . 2>/dev/null; then
12497 as_mkdir_p=:
12498else
12499 test -d ./-p && rmdir ./-p
12500 as_mkdir_p=false
12501fi
12502
12503as_executable_p="test -f"
12504
12505# Sed expression to map a string onto a valid CPP name.
12506as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12507
12508# Sed expression to map a string onto a valid variable name.
12509as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12510
12511
12512# IFS
12513# We need space, tab and new line, in precisely that order.
12514as_nl='
12515'
12516IFS=" $as_nl"
12517
12518# CDPATH.
12519$as_unset CDPATH
12520
12521exec 6>&1
12522
12523# Open the log real soon, to keep \$[0] and so on meaningful, and to
12524# report actual input values of CONFIG_FILES etc. instead of their
12525# values after options handling. Logging --version etc. is OK.
12526exec 5>>config.log
12527{
12528 echo
12529 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12530## Running $as_me. ##
12531_ASBOX
12532} >&5
12533cat >&5 <<_CSEOF
12534
12535This file was extended by $as_me, which was
12536generated by GNU Autoconf 2.59. Invocation command line was
12537
12538 CONFIG_FILES = $CONFIG_FILES
12539 CONFIG_HEADERS = $CONFIG_HEADERS
12540 CONFIG_LINKS = $CONFIG_LINKS
12541 CONFIG_COMMANDS = $CONFIG_COMMANDS
12542 $ $0 $@
12543
12544_CSEOF
12545echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12546echo >&5
12547_ACEOF
12548
12549# Files that config.status was made for.
12550if test -n "$ac_config_files"; then
12551 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12552fi
12553
12554if test -n "$ac_config_headers"; then
12555 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12556fi
12557
12558if test -n "$ac_config_links"; then
12559 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12560fi
12561
12562if test -n "$ac_config_commands"; then
12563 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12564fi
12565
12566cat >>$CONFIG_STATUS <<\_ACEOF
12567
12568ac_cs_usage="\
12569\`$as_me' instantiates files from templates according to the
12570current configuration.
12571
12572Usage: $0 [OPTIONS] [FILE]...
12573
12574 -h, --help print this help, then exit
12575 -V, --version print version number, then exit
12576 -q, --quiet do not print progress messages
12577 -d, --debug don't remove temporary files
12578 --recheck update $as_me by reconfiguring in the same conditions
12579 --file=FILE[:TEMPLATE]
12580 instantiate the configuration file FILE
12581
12582Configuration files:
12583$config_files
12584
12585Report bugs to <bug-autoconf@gnu.org>."
12586_ACEOF
12587
12588cat >>$CONFIG_STATUS <<_ACEOF
12589ac_cs_version="\\
12590config.status
12591configured by $0, generated by GNU Autoconf 2.59,
12592 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12593
12594Copyright (C) 2003 Free Software Foundation, Inc.
12595This config.status script is free software; the Free Software Foundation
12596gives unlimited permission to copy, distribute and modify it."
12597srcdir=$srcdir
12598INSTALL="$INSTALL"
12599_ACEOF
12600
12601cat >>$CONFIG_STATUS <<\_ACEOF
12602# If no file are specified by the user, then we need to provide default
12603# value. By we need to know if files were specified by the user.
12604ac_need_defaults=:
12605while test $# != 0
a0da8069 12606do
c6b750e1
DJ
12607 case $1 in
12608 --*=*)
12609 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12610 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12611 ac_shift=:
12612 ;;
12613 -*)
12614 ac_option=$1
12615 ac_optarg=$2
12616 ac_shift=shift
12617 ;;
12618 *) # This is not an option, so the user has probably given explicit
12619 # arguments.
12620 ac_option=$1
12621 ac_need_defaults=false;;
12622 esac
12623
12624 case $ac_option in
12625 # Handling of the options.
12626_ACEOF
12627cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12628 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12629 ac_cs_recheck=: ;;
12630 --version | --vers* | -V )
12631 echo "$ac_cs_version"; exit 0 ;;
12632 --he | --h)
12633 # Conflict between --help and --header
12634 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12635Try \`$0 --help' for more information." >&5
12636echo "$as_me: error: ambiguous option: $1
12637Try \`$0 --help' for more information." >&2;}
12638 { (exit 1); exit 1; }; };;
12639 --help | --hel | -h )
12640 echo "$ac_cs_usage"; exit 0 ;;
12641 --debug | --d* | -d )
12642 debug=: ;;
12643 --file | --fil | --fi | --f )
12644 $ac_shift
12645 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12646 ac_need_defaults=false;;
12647 --header | --heade | --head | --hea )
12648 $ac_shift
12649 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12650 ac_need_defaults=false;;
12651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12652 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12653 ac_cs_silent=: ;;
12654
12655 # This is an error.
12656 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12657Try \`$0 --help' for more information." >&5
12658echo "$as_me: error: unrecognized option: $1
12659Try \`$0 --help' for more information." >&2;}
12660 { (exit 1); exit 1; }; } ;;
12661
12662 *) ac_config_targets="$ac_config_targets $1" ;;
12663
376a0e54 12664 esac
c6b750e1 12665 shift
376a0e54
CM
12666done
12667
c6b750e1 12668ac_configure_extra_args=
376a0e54 12669
c6b750e1
DJ
12670if $ac_cs_silent; then
12671 exec 6>/dev/null
12672 ac_configure_extra_args="$ac_configure_extra_args --silent"
12673fi
376a0e54 12674
c6b750e1
DJ
12675_ACEOF
12676cat >>$CONFIG_STATUS <<_ACEOF
12677if \$ac_cs_recheck; then
12678 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12679 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12680fi
12681
12682_ACEOF
12683
12684
12685
12686
12687
12688cat >>$CONFIG_STATUS <<\_ACEOF
12689for ac_config_target in $ac_config_targets
12690do
12691 case "$ac_config_target" in
12692 # Handling of arguments.
12693 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12694 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12695echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12696 { (exit 1); exit 1; }; };;
12697 esac
12698done
12699
12700# If the user did not use the arguments to specify the items to instantiate,
12701# then the envvar interface is used. Set only those that are not.
12702# We use the long form for the default assignment because of an extremely
12703# bizarre bug on SunOS 4.1.3.
12704if $ac_need_defaults; then
12705 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12706fi
12707
12708# Have a temporary directory for convenience. Make it in the build tree
12709# simply because there is no reason to put it here, and in addition,
12710# creating and moving files from /tmp can sometimes cause problems.
12711# Create a temporary directory, and hook for its removal unless debugging.
12712$debug ||
12713{
12714 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12715 trap '{ (exit 1); exit 1; }' 1 2 13 15
12716}
12717
12718# Create a (secure) tmp directory for tmp files.
12719
12720{
12721 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12722 test -n "$tmp" && test -d "$tmp"
12723} ||
12724{
12725 tmp=./confstat$$-$RANDOM
12726 (umask 077 && mkdir $tmp)
12727} ||
12728{
12729 echo "$me: cannot create a temporary directory in ." >&2
12730 { (exit 1); exit 1; }
12731}
12732
12733_ACEOF
12734
12735cat >>$CONFIG_STATUS <<_ACEOF
12736
12737#
12738# CONFIG_FILES section.
12739#
12740
12741# No need to generate the scripts if there are no CONFIG_FILES.
12742# This happens for instance when ./config.status config.h
12743if test -n "\$CONFIG_FILES"; then
12744 # Protect against being on the right side of a sed subst in config.status.
12745 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12746 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12747s,@SHELL@,$SHELL,;t t
12748s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12749s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12750s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12751s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12752s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12753s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12754s,@exec_prefix@,$exec_prefix,;t t
12755s,@prefix@,$prefix,;t t
12756s,@program_transform_name@,$program_transform_name,;t t
12757s,@bindir@,$bindir,;t t
12758s,@sbindir@,$sbindir,;t t
12759s,@libexecdir@,$libexecdir,;t t
12760s,@datadir@,$datadir,;t t
12761s,@sysconfdir@,$sysconfdir,;t t
12762s,@sharedstatedir@,$sharedstatedir,;t t
12763s,@localstatedir@,$localstatedir,;t t
12764s,@libdir@,$libdir,;t t
12765s,@includedir@,$includedir,;t t
12766s,@oldincludedir@,$oldincludedir,;t t
12767s,@infodir@,$infodir,;t t
12768s,@mandir@,$mandir,;t t
12769s,@build_alias@,$build_alias,;t t
12770s,@host_alias@,$host_alias,;t t
12771s,@target_alias@,$target_alias,;t t
12772s,@DEFS@,$DEFS,;t t
12773s,@ECHO_C@,$ECHO_C,;t t
12774s,@ECHO_N@,$ECHO_N,;t t
12775s,@ECHO_T@,$ECHO_T,;t t
12776s,@LIBS@,$LIBS,;t t
12777s,@build@,$build,;t t
12778s,@build_cpu@,$build_cpu,;t t
12779s,@build_vendor@,$build_vendor,;t t
12780s,@build_os@,$build_os,;t t
12781s,@build_noncanonical@,$build_noncanonical,;t t
12782s,@host_noncanonical@,$host_noncanonical,;t t
12783s,@target_noncanonical@,$target_noncanonical,;t t
12784s,@host@,$host,;t t
12785s,@host_cpu@,$host_cpu,;t t
12786s,@host_vendor@,$host_vendor,;t t
12787s,@host_os@,$host_os,;t t
12788s,@target@,$target,;t t
12789s,@target_cpu@,$target_cpu,;t t
12790s,@target_vendor@,$target_vendor,;t t
12791s,@target_os@,$target_os,;t t
12792s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12793s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12794s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12795s,@LN@,$LN,;t t
12796s,@LN_S@,$LN_S,;t t
12797s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12798s,@build_libsubdir@,$build_libsubdir,;t t
12799s,@build_subdir@,$build_subdir,;t t
12800s,@host_subdir@,$host_subdir,;t t
12801s,@target_subdir@,$target_subdir,;t t
12802s,@CC@,$CC,;t t
12803s,@CFLAGS@,$CFLAGS,;t t
12804s,@LDFLAGS@,$LDFLAGS,;t t
12805s,@CPPFLAGS@,$CPPFLAGS,;t t
12806s,@ac_ct_CC@,$ac_ct_CC,;t t
12807s,@EXEEXT@,$EXEEXT,;t t
12808s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12809s,@CXX@,$CXX,;t t
12810s,@CXXFLAGS@,$CXXFLAGS,;t t
12811s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12812s,@GNATBIND@,$GNATBIND,;t t
12813s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12814s,@GNATMAKE@,$GNATMAKE,;t t
12815s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12816s,@do_compare@,$do_compare,;t t
12817s,@gmplibs@,$gmplibs,;t t
12818s,@gmpinc@,$gmpinc,;t t
12819s,@stage1_languages@,$stage1_languages,;t t
12820s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 12821s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
c6b750e1
DJ
12822s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12823s,@tooldir@,$tooldir,;t t
12824s,@build_tooldir@,$build_tooldir,;t t
12825s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12826s,@GDB_TK@,$GDB_TK,;t t
12827s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12828s,@build_configargs@,$build_configargs,;t t
12829s,@build_configdirs@,$build_configdirs,;t t
12830s,@host_configargs@,$host_configargs,;t t
12831s,@configdirs@,$configdirs,;t t
12832s,@target_configargs@,$target_configargs,;t t
1576798e
PB
12833s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
12834s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
c6b750e1 12835s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
1576798e
PB
12836s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12837s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
12838s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
12839s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
12840s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
12841s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
12842s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
12843s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
12844s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
12845s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
12846s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
12847s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
c6b750e1
DJ
12848s,@config_shell@,$config_shell,;t t
12849s,@YACC@,$YACC,;t t
12850s,@BISON@,$BISON,;t t
12851s,@M4@,$M4,;t t
12852s,@LEX@,$LEX,;t t
12853s,@FLEX@,$FLEX,;t t
12854s,@MAKEINFO@,$MAKEINFO,;t t
12855s,@EXPECT@,$EXPECT,;t t
12856s,@RUNTEST@,$RUNTEST,;t t
12857s,@AR@,$AR,;t t
12858s,@AS@,$AS,;t t
12859s,@DLLTOOL@,$DLLTOOL,;t t
12860s,@LD@,$LD,;t t
12861s,@LIPO@,$LIPO,;t t
12862s,@NM@,$NM,;t t
12863s,@RANLIB@,$RANLIB,;t t
12864s,@STRIP@,$STRIP,;t t
12865s,@WINDRES@,$WINDRES,;t t
0c24b341 12866s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
12867s,@OBJCOPY@,$OBJCOPY,;t t
12868s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1
DJ
12869s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12870s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12871s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12872s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12873s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12874s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12875s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12876s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12877s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12878s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12879s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12880s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12881s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12882s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12883s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 12884s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
12885s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12886s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12887s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12888s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12889s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12890s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12891s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12892s,@MAINT@,$MAINT,;t t
12893s,@stage1_cflags@,$stage1_cflags,;t t
12894s,@stage1_checking@,$stage1_checking,;t t
12895s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12896s,@datarootdir@,$datarootdir,;t t
12897s,@docdir@,$docdir,;t t
a3ca38d2 12898s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
12899s,@htmldir@,$htmldir,;t t
12900s,@LIBOBJS@,$LIBOBJS,;t t
12901s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 12902/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 12903s,@serialization_dependencies@,,;t t
a0da8069 12904/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 12905s,@host_makefile_frag@,,;t t
a0da8069 12906/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 12907s,@target_makefile_frag@,,;t t
a0da8069 12908/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 12909s,@alphaieee_frag@,,;t t
a0da8069 12910/@ospace_frag@/r $ospace_frag
c6b750e1 12911s,@ospace_frag@,,;t t
a0da8069 12912CEOF
252b5132 12913
c6b750e1
DJ
12914_ACEOF
12915
12916 cat >>$CONFIG_STATUS <<\_ACEOF
12917 # Split the substitutions into bite-sized pieces for seds with
12918 # small command number limits, like on Digital OSF/1 and HP-UX.
12919 ac_max_sed_lines=48
12920 ac_sed_frag=1 # Number of current file.
12921 ac_beg=1 # First line for current file.
12922 ac_end=$ac_max_sed_lines # Line after last line for current file.
12923 ac_more_lines=:
12924 ac_sed_cmds=
12925 while $ac_more_lines; do
12926 if test $ac_beg -gt 1; then
12927 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12928 else
12929 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12930 fi
12931 if test ! -s $tmp/subs.frag; then
12932 ac_more_lines=false
a0da8069 12933 else
c6b750e1
DJ
12934 # The purpose of the label and of the branching condition is to
12935 # speed up the sed processing (if there are no `@' at all, there
12936 # is no need to browse any of the substitutions).
12937 # These are the two extra sed commands mentioned above.
12938 (echo ':t
12939 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12940 if test -z "$ac_sed_cmds"; then
12941 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12942 else
12943 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12944 fi
12945 ac_sed_frag=`expr $ac_sed_frag + 1`
12946 ac_beg=$ac_end
12947 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 12948 fi
c6b750e1
DJ
12949 done
12950 if test -z "$ac_sed_cmds"; then
12951 ac_sed_cmds=cat
852e5f18 12952 fi
c6b750e1 12953fi # test -n "$CONFIG_FILES"
cac3d6c4 12954
c6b750e1
DJ
12955_ACEOF
12956cat >>$CONFIG_STATUS <<\_ACEOF
12957for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 12958 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
12959 case $ac_file in
12960 - | *:- | *:-:* ) # input from stdin
12961 cat >$tmp/stdin
12962 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12963 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12964 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12965 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12966 * ) ac_file_in=$ac_file.in ;;
a0da8069 12967 esac
252b5132 12968
c6b750e1
DJ
12969 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12970 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12971$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12972 X"$ac_file" : 'X\(//\)[^/]' \| \
12973 X"$ac_file" : 'X\(//\)$' \| \
12974 X"$ac_file" : 'X\(/\)' \| \
12975 . : '\(.\)' 2>/dev/null ||
12976echo X"$ac_file" |
12977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12978 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12979 /^X\(\/\/\)$/{ s//\1/; q; }
12980 /^X\(\/\).*/{ s//\1/; q; }
12981 s/.*/./; q'`
12982 { if $as_mkdir_p; then
12983 mkdir -p "$ac_dir"
cac3d6c4 12984 else
c6b750e1
DJ
12985 as_dir="$ac_dir"
12986 as_dirs=
12987 while test ! -d "$as_dir"; do
12988 as_dirs="$as_dir $as_dirs"
12989 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12990$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12991 X"$as_dir" : 'X\(//\)[^/]' \| \
12992 X"$as_dir" : 'X\(//\)$' \| \
12993 X"$as_dir" : 'X\(/\)' \| \
12994 . : '\(.\)' 2>/dev/null ||
12995echo X"$as_dir" |
12996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12997 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12998 /^X\(\/\/\)$/{ s//\1/; q; }
12999 /^X\(\/\).*/{ s//\1/; q; }
13000 s/.*/./; q'`
13001 done
13002 test ! -n "$as_dirs" || mkdir $as_dirs
13003 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13004echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13005 { (exit 1); exit 1; }; }; }
13006
13007 ac_builddir=.
252b5132 13008
c6b750e1
DJ
13009if test "$ac_dir" != .; then
13010 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13011 # A "../" for each directory in $ac_dir_suffix.
13012 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13013else
13014 ac_dir_suffix= ac_top_builddir=
13015fi
13016
13017case $srcdir in
13018 .) # No --srcdir option. We are building in place.
13019 ac_srcdir=.
13020 if test -z "$ac_top_builddir"; then
13021 ac_top_srcdir=.
13022 else
13023 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13024 fi ;;
13025 [\\/]* | ?:[\\/]* ) # Absolute path.
13026 ac_srcdir=$srcdir$ac_dir_suffix;
13027 ac_top_srcdir=$srcdir ;;
a0da8069 13028 *) # Relative path.
c6b750e1
DJ
13029 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13030 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13031esac
252b5132 13032
c6b750e1
DJ
13033# Do not use `cd foo && pwd` to compute absolute paths, because
13034# the directories may not exist.
13035case `pwd` in
13036.) ac_abs_builddir="$ac_dir";;
13037*)
13038 case "$ac_dir" in
13039 .) ac_abs_builddir=`pwd`;;
13040 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13041 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13042 esac;;
13043esac
13044case $ac_abs_builddir in
13045.) ac_abs_top_builddir=${ac_top_builddir}.;;
13046*)
13047 case ${ac_top_builddir}. in
13048 .) ac_abs_top_builddir=$ac_abs_builddir;;
13049 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13050 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13051 esac;;
13052esac
13053case $ac_abs_builddir in
13054.) ac_abs_srcdir=$ac_srcdir;;
13055*)
13056 case $ac_srcdir in
13057 .) ac_abs_srcdir=$ac_abs_builddir;;
13058 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13059 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13060 esac;;
13061esac
13062case $ac_abs_builddir in
13063.) ac_abs_top_srcdir=$ac_top_srcdir;;
13064*)
13065 case $ac_top_srcdir in
13066 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13067 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13068 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13069 esac;;
13070esac
252b5132 13071
c6b750e1
DJ
13072
13073 case $INSTALL in
13074 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13075 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13076 esac
252b5132 13077
c6b750e1
DJ
13078 if test x"$ac_file" != x-; then
13079 { echo "$as_me:$LINENO: creating $ac_file" >&5
13080echo "$as_me: creating $ac_file" >&6;}
13081 rm -f "$ac_file"
13082 fi
13083 # Let's still pretend it is `configure' which instantiates (i.e., don't
13084 # use $as_me), people would be surprised to read:
13085 # /* config.h. Generated by config.status. */
13086 if test x"$ac_file" = x-; then
13087 configure_input=
13088 else
13089 configure_input="$ac_file. "
13090 fi
13091 configure_input=$configure_input"Generated from `echo $ac_file_in |
13092 sed 's,.*/,,'` by configure."
13093
13094 # First look for the input files in the build tree, otherwise in the
13095 # src tree.
13096 ac_file_inputs=`IFS=:
13097 for f in $ac_file_in; do
13098 case $f in
13099 -) echo $tmp/stdin ;;
13100 [\\/$]*)
13101 # Absolute (can't be DOS-style, as IFS=:)
13102 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13103echo "$as_me: error: cannot find input file: $f" >&2;}
13104 { (exit 1); exit 1; }; }
13105 echo "$f";;
13106 *) # Relative
13107 if test -f "$f"; then
13108 # Build tree
13109 echo "$f"
13110 elif test -f "$srcdir/$f"; then
13111 # Source tree
13112 echo "$srcdir/$f"
13113 else
13114 # /dev/null tree
13115 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13116echo "$as_me: error: cannot find input file: $f" >&2;}
13117 { (exit 1); exit 1; }; }
13118 fi;;
13119 esac
13120 done` || { (exit 1); exit 1; }
13121_ACEOF
13122cat >>$CONFIG_STATUS <<_ACEOF
13123 sed "$ac_vpsub
13124$extrasub
13125_ACEOF
13126cat >>$CONFIG_STATUS <<\_ACEOF
13127:t
13128/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13129s,@configure_input@,$configure_input,;t t
13130s,@srcdir@,$ac_srcdir,;t t
13131s,@abs_srcdir@,$ac_abs_srcdir,;t t
13132s,@top_srcdir@,$ac_top_srcdir,;t t
13133s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13134s,@builddir@,$ac_builddir,;t t
13135s,@abs_builddir@,$ac_abs_builddir,;t t
13136s,@top_builddir@,$ac_top_builddir,;t t
13137s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13138s,@INSTALL@,$ac_INSTALL,;t t
13139" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13140 rm -f $tmp/stdin
13141 if test x"$ac_file" != x-; then
13142 mv $tmp/out $ac_file
13143 else
13144 cat $tmp/out
13145 rm -f $tmp/out
13146 fi
c148b4cb 13147
c6b750e1
DJ
13148done
13149_ACEOF
c148b4cb 13150
c6b750e1 13151cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13152
c6b750e1
DJ
13153{ (exit 0); exit 0; }
13154_ACEOF
c148b4cb 13155chmod +x $CONFIG_STATUS
c6b750e1
DJ
13156ac_clean_files=$ac_clean_files_save
13157
13158
13159# configure is writing to config.log, and then calls config.status.
13160# config.status does its own redirection, appending to config.log.
13161# Unfortunately, on DOS this fails, as config.log is still kept open
13162# by configure, so config.status won't be able to write to it; its
13163# output is simply discarded. So we exec the FD to /dev/null,
13164# effectively closing config.log, so it can be properly (re)opened and
13165# appended to by config.status. When coming back to configure, we
13166# need to make the FD available again.
13167if test "$no_create" != yes; then
13168 ac_cs_success=:
13169 ac_config_status_args=
13170 test "$silent" = yes &&
13171 ac_config_status_args="$ac_config_status_args --quiet"
13172 exec 5>/dev/null
13173 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13174 exec 5>>config.log
13175 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13176 # would make configure fail if this is the last instruction.
13177 $ac_cs_success || { (exit 1); exit 1; }
13178fi
c148b4cb 13179
This page took 1.084455 seconds and 4 git commands to generate.