* i386-tdep.c (i386_print_insn): Remove unnecessary call to
[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"
7f6ef0c0 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 CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
c6b750e1 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
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
9cc8ae67
PB
716ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
717
c6b750e1
DJ
718ac_env_CC_set=${CC+set}
719ac_env_CC_value=$CC
720ac_cv_env_CC_set=${CC+set}
721ac_cv_env_CC_value=$CC
722ac_env_CFLAGS_set=${CFLAGS+set}
723ac_env_CFLAGS_value=$CFLAGS
724ac_cv_env_CFLAGS_set=${CFLAGS+set}
725ac_cv_env_CFLAGS_value=$CFLAGS
726ac_env_LDFLAGS_set=${LDFLAGS+set}
727ac_env_LDFLAGS_value=$LDFLAGS
728ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
729ac_cv_env_LDFLAGS_value=$LDFLAGS
730ac_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_env_CPPFLAGS_value=$CPPFLAGS
732ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
733ac_cv_env_CPPFLAGS_value=$CPPFLAGS
18f6b6ee
PB
734ac_env_CXX_set=${CXX+set}
735ac_env_CXX_value=$CXX
736ac_cv_env_CXX_set=${CXX+set}
737ac_cv_env_CXX_value=$CXX
738ac_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_env_CXXFLAGS_value=$CXXFLAGS
740ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
741ac_cv_env_CXXFLAGS_value=$CXXFLAGS
9a819804
AO
742ac_env_AR_set=${AR+set}
743ac_env_AR_value=$AR
744ac_cv_env_AR_set=${AR+set}
745ac_cv_env_AR_value=$AR
746ac_env_AS_set=${AS+set}
747ac_env_AS_value=$AS
748ac_cv_env_AS_set=${AS+set}
749ac_cv_env_AS_value=$AS
750ac_env_DLLTOOL_set=${DLLTOOL+set}
751ac_env_DLLTOOL_value=$DLLTOOL
752ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
753ac_cv_env_DLLTOOL_value=$DLLTOOL
754ac_env_LD_set=${LD+set}
755ac_env_LD_value=$LD
756ac_cv_env_LD_set=${LD+set}
757ac_cv_env_LD_value=$LD
758ac_env_LIPO_set=${LIPO+set}
759ac_env_LIPO_value=$LIPO
760ac_cv_env_LIPO_set=${LIPO+set}
761ac_cv_env_LIPO_value=$LIPO
762ac_env_NM_set=${NM+set}
763ac_env_NM_value=$NM
764ac_cv_env_NM_set=${NM+set}
765ac_cv_env_NM_value=$NM
766ac_env_RANLIB_set=${RANLIB+set}
767ac_env_RANLIB_value=$RANLIB
768ac_cv_env_RANLIB_set=${RANLIB+set}
769ac_cv_env_RANLIB_value=$RANLIB
770ac_env_STRIP_set=${STRIP+set}
771ac_env_STRIP_value=$STRIP
772ac_cv_env_STRIP_set=${STRIP+set}
773ac_cv_env_STRIP_value=$STRIP
774ac_env_WINDRES_set=${WINDRES+set}
775ac_env_WINDRES_value=$WINDRES
776ac_cv_env_WINDRES_set=${WINDRES+set}
777ac_cv_env_WINDRES_value=$WINDRES
0c24b341
NC
778ac_env_WINDMC_set=${WINDMC+set}
779ac_env_WINDMC_value=$WINDMC
780ac_cv_env_WINDMC_set=${WINDMC+set}
781ac_cv_env_WINDMC_value=$WINDMC
9a819804
AO
782ac_env_OBJCOPY_set=${OBJCOPY+set}
783ac_env_OBJCOPY_value=$OBJCOPY
784ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
785ac_cv_env_OBJCOPY_value=$OBJCOPY
786ac_env_OBJDUMP_set=${OBJDUMP+set}
787ac_env_OBJDUMP_value=$OBJDUMP
788ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
789ac_cv_env_OBJDUMP_value=$OBJDUMP
790ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
791ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
792ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
793ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
794ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
795ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
796ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
797ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
798ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
799ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
800ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
801ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
802ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
803ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
804ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
805ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
806ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
807ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
808ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
809ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
810ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
811ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
812ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
813ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
814ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
815ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
816ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
817ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
818ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
819ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
820ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
821ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
822ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
823ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
824ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
825ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
826ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
827ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
828ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
829ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
830ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
831ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
832ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
833ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
834ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
835ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
836ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
837ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
838ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
839ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
840ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
841ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
842ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
843ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
844ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
845ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
846ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
847ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
848ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
849ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
0c24b341
NC
850ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
851ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
852ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
853ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
c6b750e1
DJ
854
855#
856# Report the --help message.
857#
858if test "$ac_init_help" = "long"; then
859 # Omit some internal or obsolete options to make the list less imposing.
860 # This message is too long to be a string in the A/UX 3.1 sh.
861 cat <<_ACEOF
862\`configure' configures this package to adapt to many kinds of systems.
863
864Usage: $0 [OPTION]... [VAR=VALUE]...
865
866To assign environment variables (e.g., CC, CFLAGS...), specify them as
867VAR=VALUE. See below for descriptions of some of the useful variables.
868
869Defaults for the options are specified in brackets.
870
871Configuration:
872 -h, --help display this help and exit
873 --help=short display options specific to this package
874 --help=recursive display the short help of all the included packages
875 -V, --version display version information and exit
876 -q, --quiet, --silent do not print \`checking...' messages
877 --cache-file=FILE cache test results in FILE [disabled]
878 -C, --config-cache alias for \`--cache-file=config.cache'
879 -n, --no-create do not create output files
880 --srcdir=DIR find the sources in DIR [configure dir or \`..']
881
882_ACEOF
883
884 cat <<_ACEOF
885Installation directories:
886 --prefix=PREFIX install architecture-independent files in PREFIX
887 [$ac_default_prefix]
888 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
889 [PREFIX]
890
891By default, \`make install' will install all the files in
892\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
893an installation prefix other than \`$ac_default_prefix' using \`--prefix',
894for instance \`--prefix=\$HOME'.
895
896For better control, use the options below.
897
898Fine tuning of the installation directories:
899 --bindir=DIR user executables [EPREFIX/bin]
900 --sbindir=DIR system admin executables [EPREFIX/sbin]
901 --libexecdir=DIR program executables [EPREFIX/libexec]
902 --datadir=DIR read-only architecture-independent data [PREFIX/share]
903 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
904 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
905 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
906 --libdir=DIR object code libraries [EPREFIX/lib]
907 --includedir=DIR C header files [PREFIX/include]
908 --oldincludedir=DIR C header files for non-gcc [/usr/include]
909 --infodir=DIR info documentation [PREFIX/info]
910 --mandir=DIR man documentation [PREFIX/man]
911_ACEOF
912
913 cat <<\_ACEOF
914
915Program names:
916 --program-prefix=PREFIX prepend PREFIX to installed program names
917 --program-suffix=SUFFIX append SUFFIX to installed program names
918 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
919
920System types:
921 --build=BUILD configure for building on BUILD [guessed]
922 --host=HOST cross-compile to build programs to run on HOST [BUILD]
923 --target=TARGET configure for building compilers for TARGET [HOST]
924_ACEOF
a0da8069 925fi
a0da8069 926
c6b750e1
DJ
927if test -n "$ac_init_help"; then
928
929 cat <<\_ACEOF
930
931Optional Features:
932 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
933 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
521ec477
DD
934 --enable-libada build libada directory
935 --enable-libssp build libssp directory
936 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 937 stage1. Mostly useful for compiler development.
521ec477
DD
938 --enable-objc-gc enable use of Boehm's garbage collector with the
939 GNU Objective-C runtime
940 --enable-bootstrap enable bootstrapping [yes if native build]
941 --enable-serial-[{host,target,build}-]configure
942 force sequential configuration of
c6b750e1 943 sub-packages for the host, target or build
521ec477 944 machine, or all sub-packages
c6b750e1
DJ
945 --enable-maintainer-mode enable make rules and dependencies not useful
946 (and sometimes confusing) to the casual installer
521ec477
DD
947 --enable-stage1-checking[=all] choose additional checking for stage1
948 of the compiler
c6b750e1
DJ
949 --enable-werror enable -Werror in bootstrap stage2 and later
950
951Optional Packages:
952 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
953 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
954 --with-build-libsubdir=DIR Directory where to find libraries for build system
521ec477
DD
955 --with-mpfr-dir=PATH this option has been REMOVED
956 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
957 Equivalent to --with-mpfr-include=PATH/include
958 plus --with-mpfr-lib=PATH/lib
959 --with-mpfr-include=PATH
521ec477
DD
960 specify directory for installed MPFR include files
961 --with-mpfr-lib=PATH specify directory for the installed MPFR library
962 --with-gmp-dir=PATH this option has been REMOVED
963 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
964 Equivalent to --with-gmp-include=PATH/include
965 plus --with-gmp-lib=PATH/lib
521ec477
DD
966 --with-gmp-include=PATH specify directory for installed GMP include files
967 --with-gmp-lib=PATH specify directory for the installed GMP library
968 --with-build-sysroot=SYSROOT
c6b750e1 969 use sysroot as the system root during the build
8a6ee3ab
JM
970 --with-debug-prefix-map='A=B C=D ...'
971 map A to B, C to D ... in debug information
521ec477 972 --with-build-time-tools=PATH
c6b750e1 973 use given path to find target tools during the build
521ec477
DD
974 --with-datarootdir use datarootdir as the data root directory.
975 --with-docdir install documentation in this directory.
976 --with-pdfdir install pdf in this directory.
977 --with-htmldir install html in this directory.
c6b750e1
DJ
978
979Some influential environment variables:
980 CC C compiler command
981 CFLAGS C compiler flags
982 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
983 nonstandard directory <lib dir>
984 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
985 headers in a nonstandard directory <include dir>
18f6b6ee
PB
986 CXX C++ compiler command
987 CXXFLAGS C++ compiler flags
9a819804
AO
988 AR AR for the host
989 AS AS for the host
990 DLLTOOL DLLTOOL for the host
991 LD LD for the host
992 LIPO LIPO for the host
993 NM NM for the host
994 RANLIB RANLIB for the host
995 STRIP STRIP for the host
996 WINDRES WINDRES for the host
0c24b341 997 WINDMC WINDMC for the host
9a819804
AO
998 OBJCOPY OBJCOPY for the host
999 OBJDUMP OBJDUMP for the host
1000 CC_FOR_TARGET
1001 CC for the target
1002 CXX_FOR_TARGET
1003 CXX for the target
1004 GCC_FOR_TARGET
1005 GCC for the target
1006 GCJ_FOR_TARGET
1007 GCJ for the target
1008 GFORTRAN_FOR_TARGET
1009 GFORTRAN for the target
1010 AR_FOR_TARGET
1011 AR for the target
1012 AS_FOR_TARGET
1013 AS for the target
1014 DLLTOOL_FOR_TARGET
1015 DLLTOOL for the target
1016 LD_FOR_TARGET
1017 LD for the target
1018 LIPO_FOR_TARGET
1019 LIPO for the target
1020 NM_FOR_TARGET
1021 NM for the target
1022 OBJDUMP_FOR_TARGET
1023 OBJDUMP for the target
1024 RANLIB_FOR_TARGET
1025 RANLIB for the target
1026 STRIP_FOR_TARGET
1027 STRIP for the target
1028 WINDRES_FOR_TARGET
1029 WINDRES for the target
0c24b341
NC
1030 WINDMC_FOR_TARGET
1031 WINDMC for the target
c6b750e1
DJ
1032
1033Use these variables to override the choices made by `configure' or to help
1034it to find libraries and programs with nonstandard names/locations.
1035
1036_ACEOF
1037fi
1038
1039if test "$ac_init_help" = "recursive"; then
1040 # If there are subdirs, report their specific --help.
1041 ac_popdir=`pwd`
1042 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1043 test -d $ac_dir || continue
1044 ac_builddir=.
1045
1046if test "$ac_dir" != .; then
1047 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1048 # A "../" for each directory in $ac_dir_suffix.
1049 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1050else
1051 ac_dir_suffix= ac_top_builddir=
1052fi
1053
1054case $srcdir in
1055 .) # No --srcdir option. We are building in place.
1056 ac_srcdir=.
1057 if test -z "$ac_top_builddir"; then
1058 ac_top_srcdir=.
1059 else
1060 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1061 fi ;;
1062 [\\/]* | ?:[\\/]* ) # Absolute path.
1063 ac_srcdir=$srcdir$ac_dir_suffix;
1064 ac_top_srcdir=$srcdir ;;
1065 *) # Relative path.
1066 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1067 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1068esac
1069
1070# Do not use `cd foo && pwd` to compute absolute paths, because
1071# the directories may not exist.
1072case `pwd` in
1073.) ac_abs_builddir="$ac_dir";;
1074*)
1075 case "$ac_dir" in
1076 .) ac_abs_builddir=`pwd`;;
1077 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1078 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1079 esac;;
1080esac
1081case $ac_abs_builddir in
1082.) ac_abs_top_builddir=${ac_top_builddir}.;;
1083*)
1084 case ${ac_top_builddir}. in
1085 .) ac_abs_top_builddir=$ac_abs_builddir;;
1086 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1087 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1088 esac;;
1089esac
1090case $ac_abs_builddir in
1091.) ac_abs_srcdir=$ac_srcdir;;
1092*)
1093 case $ac_srcdir in
1094 .) ac_abs_srcdir=$ac_abs_builddir;;
1095 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1096 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1097 esac;;
1098esac
1099case $ac_abs_builddir in
1100.) ac_abs_top_srcdir=$ac_top_srcdir;;
1101*)
1102 case $ac_top_srcdir in
1103 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1104 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1105 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1106 esac;;
1107esac
1108
1109 cd $ac_dir
1110 # Check for guested configure; otherwise get Cygnus style configure.
1111 if test -f $ac_srcdir/configure.gnu; then
1112 echo
1113 $SHELL $ac_srcdir/configure.gnu --help=recursive
1114 elif test -f $ac_srcdir/configure; then
1115 echo
1116 $SHELL $ac_srcdir/configure --help=recursive
1117 elif test -f $ac_srcdir/configure.ac ||
1118 test -f $ac_srcdir/configure.in; then
1119 echo
1120 $ac_configure --help
1121 else
1122 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1123 fi
1124 cd $ac_popdir
1125 done
1126fi
1127
1128test -n "$ac_init_help" && exit 0
1129if $ac_init_version; then
1130 cat <<\_ACEOF
1131
1132Copyright (C) 2003 Free Software Foundation, Inc.
1133This configure script is free software; the Free Software Foundation
1134gives unlimited permission to copy, distribute and modify it.
1135_ACEOF
1136 exit 0
1137fi
1138exec 5>config.log
1139cat >&5 <<_ACEOF
1140This file contains any messages produced by compilers while
1141running configure, to aid debugging if configure makes a mistake.
1142
1143It was created by $as_me, which was
1144generated by GNU Autoconf 2.59. Invocation command line was
1145
1146 $ $0 $@
1147
1148_ACEOF
1149{
1150cat <<_ASUNAME
1151## --------- ##
1152## Platform. ##
1153## --------- ##
1154
1155hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1156uname -m = `(uname -m) 2>/dev/null || echo unknown`
1157uname -r = `(uname -r) 2>/dev/null || echo unknown`
1158uname -s = `(uname -s) 2>/dev/null || echo unknown`
1159uname -v = `(uname -v) 2>/dev/null || echo unknown`
1160
1161/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1162/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1163
1164/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1165/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1166/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1167hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1168/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1169/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1170/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1171
1172_ASUNAME
1173
1174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1175for as_dir in $PATH
1176do
1177 IFS=$as_save_IFS
1178 test -z "$as_dir" && as_dir=.
1179 echo "PATH: $as_dir"
1180done
1181
1182} >&5
1183
1184cat >&5 <<_ACEOF
1185
1186
1187## ----------- ##
1188## Core tests. ##
1189## ----------- ##
1190
1191_ACEOF
1192
1193
1194# Keep a trace of the command line.
1195# Strip out --no-create and --no-recursion so they do not pile up.
1196# Strip out --silent because we don't want to record it for future runs.
1197# Also quote any args containing shell meta-characters.
1198# Make two passes to allow for proper duplicate-argument suppression.
1199ac_configure_args=
1200ac_configure_args0=
1201ac_configure_args1=
1202ac_sep=
1203ac_must_keep_next=false
1204for ac_pass in 1 2
1205do
1206 for ac_arg
1207 do
1208 case $ac_arg in
1209 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1210 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1211 | -silent | --silent | --silen | --sile | --sil)
1212 continue ;;
1213 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1214 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1215 esac
1216 case $ac_pass in
1217 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1218 2)
1219 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1220 if test $ac_must_keep_next = true; then
1221 ac_must_keep_next=false # Got value, back to normal.
1222 else
1223 case $ac_arg in
1224 *=* | --config-cache | -C | -disable-* | --disable-* \
1225 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1226 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1227 | -with-* | --with-* | -without-* | --without-* | --x)
1228 case "$ac_configure_args0 " in
1229 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1230 esac
1231 ;;
1232 -* ) ac_must_keep_next=true ;;
1233 esac
1234 fi
1235 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1236 # Get rid of the leading space.
1237 ac_sep=" "
1238 ;;
1239 esac
1240 done
1241done
1242$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1243$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1244
1245# When interrupted or exit'd, cleanup temporary files, and complete
1246# config.log. We remove comments because anyway the quotes in there
1247# would cause problems or look ugly.
1248# WARNING: Be sure not to use single quotes in there, as some shells,
1249# such as our DU 5.0 friend, will then `close' the trap.
1250trap 'exit_status=$?
1251 # Save into config.log some information that might help in debugging.
1252 {
1253 echo
1254
1255 cat <<\_ASBOX
1256## ---------------- ##
1257## Cache variables. ##
1258## ---------------- ##
1259_ASBOX
1260 echo
1261 # The following way of writing the cache mishandles newlines in values,
1262{
1263 (set) 2>&1 |
1264 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1265 *ac_space=\ *)
1266 sed -n \
1267 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1269 ;;
1270 *)
1271 sed -n \
1272 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1273 ;;
1274 esac;
1275}
1276 echo
1277
1278 cat <<\_ASBOX
1279## ----------------- ##
1280## Output variables. ##
1281## ----------------- ##
1282_ASBOX
1283 echo
1284 for ac_var in $ac_subst_vars
1285 do
1286 eval ac_val=$`echo $ac_var`
1287 echo "$ac_var='"'"'$ac_val'"'"'"
1288 done | sort
1289 echo
1290
1291 if test -n "$ac_subst_files"; then
1292 cat <<\_ASBOX
1293## ------------- ##
1294## Output files. ##
1295## ------------- ##
1296_ASBOX
1297 echo
1298 for ac_var in $ac_subst_files
1299 do
1300 eval ac_val=$`echo $ac_var`
1301 echo "$ac_var='"'"'$ac_val'"'"'"
1302 done | sort
1303 echo
1304 fi
1305
1306 if test -s confdefs.h; then
1307 cat <<\_ASBOX
1308## ----------- ##
1309## confdefs.h. ##
1310## ----------- ##
1311_ASBOX
1312 echo
1313 sed "/^$/d" confdefs.h | sort
1314 echo
1315 fi
1316 test "$ac_signal" != 0 &&
1317 echo "$as_me: caught signal $ac_signal"
1318 echo "$as_me: exit $exit_status"
1319 } >&5
1320 rm -f core *.core &&
1321 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1322 exit $exit_status
1323 ' 0
1324for ac_signal in 1 2 13 15; do
1325 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1326done
1327ac_signal=0
1328
1329# confdefs.h avoids OS command line length limits that DEFS can exceed.
1330rm -rf conftest* confdefs.h
1331# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1332echo >confdefs.h
1333
1334# Predefined preprocessor variables.
1335
1336cat >>confdefs.h <<_ACEOF
1337#define PACKAGE_NAME "$PACKAGE_NAME"
1338_ACEOF
1339
1340
1341cat >>confdefs.h <<_ACEOF
1342#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1343_ACEOF
1344
1345
1346cat >>confdefs.h <<_ACEOF
1347#define PACKAGE_VERSION "$PACKAGE_VERSION"
1348_ACEOF
1349
1350
1351cat >>confdefs.h <<_ACEOF
1352#define PACKAGE_STRING "$PACKAGE_STRING"
1353_ACEOF
1354
1355
1356cat >>confdefs.h <<_ACEOF
1357#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1358_ACEOF
1359
1360
1361# Let the site file select an alternate cache file if it wants to.
a0da8069 1362# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1363if test -z "$CONFIG_SITE"; then
1364 if test "x$prefix" != xNONE; then
1365 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1366 else
1367 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1368 fi
1369fi
1370for ac_site_file in $CONFIG_SITE; do
1371 if test -r "$ac_site_file"; then
c6b750e1
DJ
1372 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1373echo "$as_me: loading site script $ac_site_file" >&6;}
1374 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1375 . "$ac_site_file"
1376 fi
1377done
1378
1379if test -r "$cache_file"; then
c6b750e1
DJ
1380 # Some versions of bash will fail to source /dev/null (special
1381 # files actually), so we avoid doing that.
1382 if test -f "$cache_file"; then
1383 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1384echo "$as_me: loading cache $cache_file" >&6;}
1385 case $cache_file in
1386 [\\/]* | ?:[\\/]* ) . $cache_file;;
1387 *) . ./$cache_file;;
1388 esac
1389 fi
a0da8069 1390else
c6b750e1
DJ
1391 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1392echo "$as_me: creating cache $cache_file" >&6;}
1393 >$cache_file
1394fi
1395
1396# Check that the precious variables saved in the cache have kept the same
1397# value.
1398ac_cache_corrupted=false
1399for ac_var in `(set) 2>&1 |
1400 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1401 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1402 eval ac_new_set=\$ac_env_${ac_var}_set
1403 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1404 eval ac_new_val="\$ac_env_${ac_var}_value"
1405 case $ac_old_set,$ac_new_set in
1406 set,)
1407 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1408echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1409 ac_cache_corrupted=: ;;
1410 ,set)
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1412echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1414 ,);;
1415 *)
1416 if test "x$ac_old_val" != "x$ac_new_val"; then
1417 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1418echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1419 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1420echo "$as_me: former value: $ac_old_val" >&2;}
1421 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1422echo "$as_me: current value: $ac_new_val" >&2;}
1423 ac_cache_corrupted=:
1424 fi;;
1425 esac
1426 # Pass precious variables to config.status.
1427 if test "$ac_new_set" = set; then
1428 case $ac_new_val in
1429 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1430 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1431 *) ac_arg=$ac_var=$ac_new_val ;;
1432 esac
1433 case " $ac_configure_args " in
1434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1435 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1436 esac
1437 fi
1438done
1439if $ac_cache_corrupted; then
1440 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1441echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1442 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1443echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1444 { (exit 1); exit 1; }; }
a0da8069
NN
1445fi
1446
1447ac_ext=c
a0da8069 1448ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1451ac_compiler_gnu=$ac_cv_c_compiler_gnu
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
a0da8069
NN
1465
1466
75778ec4 1467
c6b750e1
DJ
1468
1469
1470
1471
1472
1473# Find the build, host, and target systems.
a0da8069 1474ac_aux_dir=
315b3b02 1475for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1476 if test -f $ac_dir/install-sh; then
1477 ac_aux_dir=$ac_dir
1478 ac_install_sh="$ac_aux_dir/install-sh -c"
1479 break
1480 elif test -f $ac_dir/install.sh; then
1481 ac_aux_dir=$ac_dir
1482 ac_install_sh="$ac_aux_dir/install.sh -c"
1483 break
c6b750e1
DJ
1484 elif test -f $ac_dir/shtool; then
1485 ac_aux_dir=$ac_dir
1486 ac_install_sh="$ac_aux_dir/shtool install -c"
1487 break
a0da8069
NN
1488 fi
1489done
1490if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1491 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1492echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1493 { (exit 1); exit 1; }; }
a0da8069 1494fi
c6b750e1
DJ
1495ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1496ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1497ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1498
c6b750e1
DJ
1499# Make sure we can run config.sub.
1500$ac_config_sub sun4 >/dev/null 2>&1 ||
1501 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1502echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1503 { (exit 1); exit 1; }; }
1504
1505echo "$as_me:$LINENO: checking build system type" >&5
1506echo $ECHO_N "checking build system type... $ECHO_C" >&6
1507if test "${ac_cv_build+set}" = set; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1509else
1510 ac_cv_build_alias=$build_alias
1511test -z "$ac_cv_build_alias" &&
1512 ac_cv_build_alias=`$ac_config_guess`
1513test -z "$ac_cv_build_alias" &&
1514 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1515echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1516 { (exit 1); exit 1; }; }
1517ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1518 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1519echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1520 { (exit 1); exit 1; }; }
1521
1522fi
1523echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1524echo "${ECHO_T}$ac_cv_build" >&6
1525build=$ac_cv_build
1526build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1527build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1528build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1529
a0da8069 1530
c6b750e1
DJ
1531 case ${build_alias} in
1532 "") build_noncanonical=${build} ;;
1533 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1534esac
1535
1536
cac3d6c4 1537
c6b750e1
DJ
1538 case ${host_alias} in
1539 "") host_noncanonical=${build_noncanonical} ;;
1540 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1541esac
1542
cac3d6c4 1543
c6b750e1
DJ
1544
1545 case ${target_alias} in
1546 "") target_noncanonical=${host_noncanonical} ;;
1547 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1548esac
1549
cac3d6c4 1550
c6b750e1
DJ
1551
1552
1553test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1554 test "$program_prefix$program_suffix$program_transform_name" = \
1555 NONENONEs,x,x, &&
c6b750e1 1556 program_transform_name=s,y,y,
cac3d6c4 1557
c6b750e1
DJ
1558echo "$as_me:$LINENO: checking host system type" >&5
1559echo $ECHO_N "checking host system type... $ECHO_C" >&6
1560if test "${ac_cv_host+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1562else
c6b750e1
DJ
1563 ac_cv_host_alias=$host_alias
1564test -z "$ac_cv_host_alias" &&
1565 ac_cv_host_alias=$ac_cv_build_alias
1566ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1567 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1568echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1569 { (exit 1); exit 1; }; }
1570
1571fi
1572echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1573echo "${ECHO_T}$ac_cv_host" >&6
1574host=$ac_cv_host
1575host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1576host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1577host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1578
1579
1580echo "$as_me:$LINENO: checking target system type" >&5
1581echo $ECHO_N "checking target system type... $ECHO_C" >&6
1582if test "${ac_cv_target+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1584else
1585 ac_cv_target_alias=$target_alias
1586test "x$ac_cv_target_alias" = "x" &&
1587 ac_cv_target_alias=$ac_cv_host_alias
1588ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1589 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1590echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1591 { (exit 1); exit 1; }; }
1592
cac3d6c4 1593fi
c6b750e1
DJ
1594echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1595echo "${ECHO_T}$ac_cv_target" >&6
1596target=$ac_cv_target
1597target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1598target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1599target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600
1601
1602# The aliases save the names the user supplied, while $host etc.
1603# will get canonicalized.
1604test -n "$target_alias" &&
1605 test "$program_prefix$program_suffix$program_transform_name" = \
1606 NONENONEs,x,x, &&
1607 program_prefix=${target_alias}-
a0da8069 1608test "$program_prefix" != NONE &&
c6b750e1 1609 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1610# Use a double $ so make ignores it.
1611test "$program_suffix" != NONE &&
c6b750e1
DJ
1612 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1613# Double any \ or $. echo might interpret backslashes.
1614# By default was `s,x,x', remove it if useless.
1615cat <<\_ACEOF >conftest.sed
1616s/[\\$]/&&/g;s/;s,x,x,$//
1617_ACEOF
1618program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1619rm conftest.sed
cac3d6c4 1620
a0da8069
NN
1621
1622
e5c3f801
NN
1623# Get 'install' or 'install-sh' and its variants.
1624# Find a good install program. We prefer a C program (faster),
1625# so one script is as good as another. But avoid the broken or
1626# incompatible versions:
1627# SysV /etc/install, /usr/sbin/install
1628# SunOS /usr/etc/install
1629# IRIX /sbin/install
1630# AIX /bin/install
c6b750e1 1631# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1632# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1633# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1634# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1635# OS/2's system install, which has a completely different semantic
e5c3f801 1636# ./install, which can be erroneously created by make from ./install.sh.
c6b750e1
DJ
1637echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1638echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1639if test -z "$INSTALL"; then
c6b750e1
DJ
1640if test "${ac_cv_path_install+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1642else
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644for as_dir in $PATH
1645do
1646 IFS=$as_save_IFS
1647 test -z "$as_dir" && as_dir=.
1648 # Account for people who put trailing slashes in PATH elements.
1649case $as_dir/ in
1650 ./ | .// | /cC/* | \
1651 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1652 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1653 /usr/ucb/* ) ;;
1654 *)
1655 # OSF1 and SCO ODT 3.0 have their own names for install.
1656 # Don't use installbsd from OSF since it installs stuff as root
1657 # by default.
1658 for ac_prog in ginstall scoinst install; do
1659 for ac_exec_ext in '' $ac_executable_extensions; do
1660 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1661 if test $ac_prog = install &&
c6b750e1 1662 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1663 # AIX install. It has an incompatible calling convention.
1664 :
c6b750e1
DJ
1665 elif test $ac_prog = install &&
1666 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1667 # program-specific install script used by HP pwplus--don't use.
1668 :
e5c3f801 1669 else
c6b750e1
DJ
1670 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1671 break 3
e5c3f801
NN
1672 fi
1673 fi
1674 done
c6b750e1
DJ
1675 done
1676 ;;
1677esac
1678done
1679
e5c3f801
NN
1680
1681fi
1682 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1683 INSTALL=$ac_cv_path_install
e5c3f801
NN
1684 else
1685 # As a last resort, use the slow shell script. We don't cache a
1686 # path for INSTALL within a source directory, because that will
1687 # break other packages using the cache if that directory is
1688 # removed, or if the path is relative.
c6b750e1 1689 INSTALL=$ac_install_sh
e5c3f801
NN
1690 fi
1691fi
c6b750e1
DJ
1692echo "$as_me:$LINENO: result: $INSTALL" >&5
1693echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1694
1695# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1696# It thinks the first close brace ends the variable substitution.
1697test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1698
c6b750e1 1699test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1700
1701test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1702
c6b750e1
DJ
1703echo "$as_me:$LINENO: checking whether ln works" >&5
1704echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1705if test "${acx_cv_prog_LN+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1707else
1708 rm -f conftestdata_t
1709echo >conftestdata_f
1710if ln conftestdata_f conftestdata_t 2>/dev/null
1711then
1712 acx_cv_prog_LN=ln
1713else
1714 acx_cv_prog_LN=no
1715fi
1716rm -f conftestdata_f conftestdata_t
1717
1718fi
1719if test $acx_cv_prog_LN = no; then
1720 LN="cp"
c6b750e1
DJ
1721 echo "$as_me:$LINENO: result: no, using $LN" >&5
1722echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1723else
1724 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1725 echo "$as_me:$LINENO: result: yes" >&5
1726echo "${ECHO_T}yes" >&6
656fdd47
PB
1727fi
1728
c6b750e1
DJ
1729echo "$as_me:$LINENO: checking whether ln -s works" >&5
1730echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1731LN_S=$as_ln_s
1732if test "$LN_S" = "ln -s"; then
1733 echo "$as_me:$LINENO: result: yes" >&5
1734echo "${ECHO_T}yes" >&6
cac3d6c4 1735else
c6b750e1
DJ
1736 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1737echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1738fi
1739
e5c3f801 1740
252b5132 1741### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1742### If we are on Windows, search for the shell. This will permit people
1743### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1744### without also having to set CONFIG_SHELL. This code will work when
1745### using bash, which sets OSTYPE.
1746case "${OSTYPE}" in
1747*win32*)
a0da8069
NN
1748 if test x${CONFIG_SHELL} = x ; then
1749 if test ! -f /bin/sh ; then
1750 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1751 CONFIG_SHELL=${SHELL}
1752 export CONFIG_SHELL
1753 else
1754 for prog in sh sh.exe bash bash.exe; do
1755 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1756 for dir in $PATH; do
1757 test -z "$dir" && dir=.
1758 if test -f $dir/$prog; then
1759 CONFIG_SHELL=$dir/$prog
1760 export CONFIG_SHELL
1761 break
1762 fi
1763 done
1764 IFS="$save_ifs"
1765 test -n "${CONFIG_SHELL}" && break
1766 done
1767 fi
1768 fi
1769 fi
1770 ;;
1771esac
1772
1773config_shell=${CONFIG_SHELL-/bin/sh}
1774
252b5132
RH
1775progname=$0
1776# if PWD already has a value, it is probably wrong.
a0da8069 1777if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
252b5132 1778
92f01d61
JM
1779# Export original configure arguments for use by sub-configures.
1780# Quote arguments with shell meta charatcers.
1781TOPLEVEL_CONFIGURE_ARGUMENTS=
1782set -- "$progname" "$@"
a4708fba
JM
1783for ac_arg
1784do
92f01d61 1785 case "$ac_arg" in
ffa8bd48 1786 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
92f01d61
JM
1787 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1788 # if the argument is of the form -foo=baz, quote the baz part only
1789 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1790 *) ;;
1791 esac
1792 # Add the quoted argument to the list.
1793 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1794done
2444379b
BE
1795if test "$silent" = yes; then
1796 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1797fi
92f01d61
JM
1798# Remove the initial space we just introduced and, as these will be
1799# expanded by make, quote '$'.
1800TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
586c0873 1801
75205f78 1802
a0da8069 1803moveifchange=${srcdir}/move-if-change
252b5132 1804
0fdbe983
DJ
1805srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1806
1807# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1808# a relative path.
1809if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1810 INSTALL="${srcpwd}/install-sh -c"
1811fi
1812
a0da8069
NN
1813# Set srcdir to "." if that's what it is.
1814# This is important for multilib support.
1815pwd=`${PWDCMD-pwd}`
a0da8069
NN
1816if test "${pwd}" = "${srcpwd}" ; then
1817 srcdir=.
252b5132
RH
1818fi
1819
a0da8069 1820topsrcdir=$srcpwd
252b5132 1821
a0da8069 1822extra_host_args=
afefada0 1823
a0da8069
NN
1824### To add a new directory to the tree, first choose whether it is a target
1825### or a host dependent tool. Then put it into the appropriate list
1826### (library or tools, host or target), doing a dependency sort.
252b5132 1827
c6b750e1 1828# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1829# configdirs, or target_configdirs; see the serialization section below.
252b5132 1830
c6b750e1
DJ
1831# Dependency sorting is only needed when *configuration* must be done in
1832# a particular order. In all cases a dependency should be specified in
a0da8069 1833# the Makefile, whether or not it's implicitly specified here.
252b5132 1834
a0da8069
NN
1835# Double entries in build_configdirs, configdirs, or target_configdirs may
1836# cause circular dependencies and break everything horribly.
252b5132 1837
6a9cf61e
PB
1838# these library is used by various programs built for the build
1839# environment
1840#
1841build_libs="build-libiberty"
1842
1843# these tools are built for the build environment
ee025550 1844build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1845
a0da8069
NN
1846# these libraries are used by various programs built for the host environment
1847#
4b900473 1848host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
a0da8069 1849
a0da8069
NN
1850# these tools are built for the host environment
1851# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1852# know that we are building the simulator.
1853# binutils, gas and ld appear in that order because it makes sense to run
1854# "make check" in that particular order.
b00612cc 1855host_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
1856
1857# libgcj represents the runtime libraries only used by gcj.
1858libgcj="target-libffi \
a0da8069
NN
1859 target-zlib \
1860 target-qthreads \
1861 target-libjava"
1862
1863# these libraries are built for the target environment, and are built after
1864# the host libraries and the host tools (which may be a cross compiler)
1865#
b1299c4e
DJ
1866target_libraries="target-libgcc \
1867 target-libiberty \
a0da8069
NN
1868 target-libgloss \
1869 target-newlib \
cff87f51 1870 target-libgomp \
b9459e83 1871 target-libstdc++-v3 \
4b1cb4fe 1872 target-libmudflap \
bb780410 1873 target-libssp \
4b1cb4fe 1874 target-libgfortran \
4f0ef2d8 1875 target-boehm-gc \
83326456 1876 ${libgcj} \
a2592b1b 1877 target-libobjc \
cff87f51 1878 target-libada"
a0da8069 1879
9c14acb8
NN
1880# these tools are built using the target libraries, and are intended to
1881# run only in the target environment
a0da8069 1882#
9c14acb8 1883# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1884# list belongs in this list. those programs are also very likely
1885# candidates for the "native_only" list which follows
1886#
a3dd767d 1887target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1888
a0da8069 1889################################################################################
252b5132 1890
a0da8069
NN
1891## All tools belong in one of the four categories, and are assigned above
1892## We assign ${configdirs} this way to remove all embedded newlines. This
1893## is important because configure will choke if they ever get through.
1894## ${configdirs} is directories we build using the host tools.
1895## ${target_configdirs} is directories we build using the target tools.
a0da8069 1896configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1897target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1898build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1899
9cc8ae67
PB
1900
1901
a0da8069 1902################################################################################
252b5132 1903
a0da8069 1904srcname="gnu development package"
252b5132 1905
a0da8069
NN
1906# This gets set non-empty for some net releases of packages.
1907appdirs=""
252b5132 1908
a0da8069
NN
1909# Define is_cross_compiler to save on calls to 'test'.
1910is_cross_compiler=
1911if test x"${host}" = x"${target}" ; then
1912 is_cross_compiler=no
252b5132 1913else
a0da8069 1914 is_cross_compiler=yes
c6b750e1 1915fi
252b5132 1916
9175bfc0 1917# Find the build and target subdir names.
dd12c3a8 1918
66a79c16
DJ
1919# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1920# have matching libraries, they should use host libraries: Makefile.tpl
1921# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1922# However, they still use the build modules, because the corresponding
1923# host modules (e.g. bison) are only built for the host when bootstrap
1924# finishes. So:
1925# - build_subdir is where we find build modules, and never changes.
1926# - build_libsubdir is where we find build libraries, and can be overridden.
1927
1928# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1929build_subdir="build-${build_noncanonical}"
c6b750e1 1930
66a79c16
DJ
1931# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1932if test "${with_build_libsubdir+set}" = set; then
1933 withval="$with_build_libsubdir"
1934 build_libsubdir="$withval"
1935else
1936 build_libsubdir="$build_subdir"
c6b750e1 1937fi;
b00612cc
PB
1938# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1939if ( test $srcdir = . && test -d gcc ) \
1940 || test -d $srcdir/../host-${host_noncanonical}; then
1941 host_subdir="host-${host_noncanonical}"
1942else
1943 host_subdir=.
1944fi
dd12c3a8
NN
1945# No prefix.
1946target_subdir=${target_noncanonical}
c6b750e1 1947
252b5132 1948
a0da8069
NN
1949# Skipdirs are removed silently.
1950skipdirs=
1951# Noconfigdirs are removed loudly.
1952noconfigdirs=""
252b5132 1953
a0da8069
NN
1954use_gnu_ld=
1955# Make sure we don't let GNU ld be added if we didn't want it.
1956if test x$with_gnu_ld = xno ; then
1957 use_gnu_ld=no
1958 noconfigdirs="$noconfigdirs ld"
252b5132
RH
1959fi
1960
a0da8069
NN
1961use_gnu_as=
1962# Make sure we don't let GNU as be added if we didn't want it.
1963if test x$with_gnu_as = xno ; then
1964 use_gnu_as=no
1965 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1966fi
1967
c6b750e1 1968# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1969# it's not even worth trying to configure, much less build, that tool.
252b5132 1970
a0da8069
NN
1971case ${with_x} in
1972 yes | "") ;; # the default value for this tree is that X11 is available
1973 no)
675c6968 1974 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 1975 # We won't be able to build gdbtk without X.
c6b750e1 1976 enable_gdbtk=no
a0da8069
NN
1977 ;;
1978 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1979esac
252b5132 1980
a0da8069 1981# Some tools are only suitable for building in a "native" situation.
c6b750e1 1982# Remove these if host!=target.
701628f5 1983native_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 1984
a0da8069
NN
1985# Similarly, some are only suitable for cross toolchains.
1986# Remove these if host=target.
1987cross_only="target-libgloss target-newlib target-opcodes"
1988
1989case $is_cross_compiler in
1990 no) skipdirs="${skipdirs} ${cross_only}" ;;
1991 yes) skipdirs="${skipdirs} ${native_only}" ;;
1992esac
252b5132 1993
a0da8069
NN
1994# If both --with-headers and --with-libs are specified, default to
1995# --without-newlib.
32be62b5
RS
1996if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1997 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
1998 if test x"${with_newlib}" = x ; then
1999 with_newlib=no
2000 fi
252b5132
RH
2001fi
2002
a0da8069
NN
2003# Recognize --with-newlib/--without-newlib.
2004case ${with_newlib} in
2005 no) skipdirs="${skipdirs} target-newlib" ;;
2006 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2007esac
252b5132 2008
a0da8069 2009# Configure extra directories which are host specific
252b5132 2010
a0da8069
NN
2011case "${host}" in
2012 *-cygwin*)
2013 configdirs="$configdirs libtermcap" ;;
2014esac
252b5132 2015
59f7ec45
HPN
2016# A target can indicate whether a language isn't supported for some reason.
2017# Only spaces may be used in this macro; not newlines or tabs.
2018unsupported_languages=
2019
c6b750e1 2020# Remove more programs from consideration, based on the host or
a0da8069
NN
2021# target this usually means that a port of the program doesn't
2022# exist yet.
252b5132 2023
a0da8069
NN
2024case "${host}" in
2025 hppa*64*-*-*)
2026 noconfigdirs="$noconfigdirs byacc"
2027 ;;
ec11bdc6 2028 i[3456789]86-*-vsta)
675c6968 2029 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2030 ;;
ec11bdc6 2031 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2032 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2033 ;;
2d1e8239
NC
2034 x86_64-*-mingw*)
2035 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2036 ;;
ec11bdc6 2037 i[3456789]86-*-mingw32*)
675c6968 2038 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2039 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2040 ;;
ec11bdc6 2041 i[3456789]86-*-beos*)
675c6968 2042 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2043 ;;
a0da8069 2044 *-*-cygwin*)
a92834c8 2045 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2046 ;;
2047 *-*-netbsd*)
a92834c8 2048 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2049 ;;
2050 ppc*-*-pe)
675c6968 2051 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2052 ;;
2053 powerpc-*-beos*)
675c6968 2054 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2055 ;;
a0da8069 2056esac
252b5132 2057
4b1cb4fe 2058
a2592b1b
DD
2059# Check whether --enable-libada or --disable-libada was given.
2060if test "${enable_libada+set}" = set; then
2061 enableval="$enable_libada"
2062 ENABLE_LIBADA=$enableval
2063else
2064 ENABLE_LIBADA=yes
c6b750e1 2065fi;
a2592b1b 2066if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2067 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2068fi
2069
5f128533
KH
2070# Check whether --enable-libssp or --disable-libssp was given.
2071if test "${enable_libssp+set}" = set; then
2072 enableval="$enable_libssp"
2073 ENABLE_LIBSSP=$enableval
2074else
2075 ENABLE_LIBSSP=yes
c6b750e1 2076fi;
5f128533 2077
a0da8069
NN
2078# Save it here so that, even in case of --enable-libgcj, if the Java
2079# front-end isn't enabled, we still get libgcj disabled.
2080libgcj_saved=$libgcj
2081case $enable_libgcj in
2082yes)
2083 # If we reset it here, it won't get added to noconfigdirs in the
2084 # target-specific build rules, so it will be forcibly enabled
2085 # (unless the Java language itself isn't enabled).
2086 libgcj=
2087 ;;
2088no)
2089 # Make sure we get it printed in the list of not supported target libs.
2090 noconfigdirs="$noconfigdirs ${libgcj}"
2091 ;;
2092esac
252b5132 2093
4b1cb4fe 2094
a6df5a19
PB
2095# Disable libmudflap on some systems.
2096if test x$enable_libmudflap = x ; then
3e707e94 2097 case "${target}" in
0ebe98fb 2098 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
3d6dfe0f 2099 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2100 ;;
2101 *-*-freebsd*)
2102 # Enable libmudflap by default in FreeBSD.
2103 ;;
2104 *)
2105 # Disable it by default everywhere else.
2106 noconfigdirs="$noconfigdirs target-libmudflap"
2107 ;;
2108 esac
a6df5a19 2109fi
4b1cb4fe 2110
a6df5a19
PB
2111# Disable libgomp on non POSIX hosted systems.
2112if test x$enable_libgomp = x ; then
b3ded179
PB
2113 # Enable libgomp by default on hosted POSIX systems.
2114 case "${target}" in
2115 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2116 ;;
2117 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2118 ;;
64ce424c 2119 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2120 ;;
2121 *-*-darwin* | *-*-aix*)
2122 ;;
2123 *)
2124 noconfigdirs="$noconfigdirs target-libgomp"
2125 ;;
2126 esac
a6df5a19 2127fi
b3ded179 2128
691bb5a1
DD
2129# Default libgloss CPU subdirectory.
2130libgloss_dir="$target_cpu"
4b1cb4fe 2131
a0da8069
NN
2132case "${target}" in
2133 *-*-chorusos)
54d1c879 2134 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2135 ;;
c9b68031 2136 powerpc-*-darwin* | i[3456789]86-*-darwin* | x86_64-*-darwin9*)
b3f16a9b 2137 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 2138 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2139 ;;
04d1ab34 2140 *-*-darwin*)
d320aacb 2141 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2142 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2143 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2144 ;;
a0da8069 2145 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2146 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2147 ;;
de0b4a87 2148 *-*-freebsd*)
4b1cb4fe
DD
2149 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2150 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2151 && test -f /usr/local/include/gmp.h; then
2152 with_gmp=/usr/local
2153 fi
2154
2155 # Skip some stuff that's unsupported on some FreeBSD configurations.
2156 case "${target}" in
2157 i*86-*-*) ;;
2158 alpha*-*-*) ;;
2159 *)
54d1c879 2160 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2161 ;;
2162 esac
2163 ;;
f8a495c8
NC
2164 *-*-kaos*)
2165 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2166 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2167 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2168 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2169 noconfigdirs="$noconfigdirs target-libgloss"
2170 ;;
a0da8069
NN
2171 *-*-netbsd*)
2172 # Skip some stuff on all NetBSD configurations.
2173 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2174
2175 # Skip some stuff that's unsupported on some NetBSD configurations.
2176 case "${target}" in
2177 i*86-*-netbsdelf*) ;;
5b474aa8 2178 arm*-*-netbsdelf*) ;;
a0da8069 2179 *)
54d1c879 2180 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2181 ;;
2182 esac
2183 ;;
2a3124ca 2184 *-*-netware*)
54d1c879 2185 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2186 ;;
2187 *-*-rtems*)
54d1c879 2188 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2189 ;;
1587117a
EC
2190 # The tpf target doesn't support gdb yet.
2191 *-*-tpf*)
54d1c879 2192 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2193 ;;
c1968181 2194 *-*-uclinux*)
54d1c879 2195 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2196 ;;
a0da8069 2197 *-*-vxworks*)
54d1c879 2198 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2199 ;;
2200 alpha*-dec-osf*)
2201 # ld works, but does not support shared libraries.
2202 # newlib is not 64 bit ready. I'm not sure about fileutils.
2203 # gas doesn't generate exception information.
2204 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2205 ;;
2206 alpha*-*-*vms*)
54d1c879 2207 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2208 ;;
2209 alpha*-*-linux*)
2210 # newlib is not 64 bit ready
2211 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2212 ;;
a0da8069
NN
2213 alpha*-*-*)
2214 # newlib is not 64 bit ready
54d1c879 2215 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2216 ;;
4a18bd6b 2217 am33_2.0-*-linux*)
54d1c879 2218 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2219 ;;
a0da8069 2220 sh-*-linux*)
54d1c879 2221 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2222 ;;
a0da8069 2223 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2224 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2225 noconfigdirs="$noconfigdirs target-examples"
2226 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2227 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2228 noconfigdirs="$noconfigdirs expect dejagnu"
2229 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2230 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2231 noconfigdirs="$noconfigdirs target-newlib"
2232 case "${host}" in
2233 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2234 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2235 ;;
2236 esac
691bb5a1 2237 libgloss_dir=wince
a0da8069
NN
2238 ;;
2239 arc-*-*)
54d1c879 2240 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2241 ;;
caeba88f 2242 arm-semi-aof )
caeba88f 2243 ;;
a0da8069 2244 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2245 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2246 libgloss_dir=arm
a0da8069 2247 ;;
11b04d1f 2248 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 2249 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 2250 libgloss_dir=arm
a0da8069 2251 ;;
bd70a46f 2252 arm*-*-linux-gnueabi)
6d18b86b
AH
2253 noconfigdirs="$noconfigdirs target-qthreads"
2254 noconfigdirs="$noconfigdirs target-libobjc"
a5b3b4dd
DD
2255 case ${with_newlib} in
2256 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2257 esac
691bb5a1 2258 libgloss_dir=arm
bd70a46f 2259 ;;
df4a6958 2260 arm*-*-symbianelf*)
54d1c879 2261 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 2262 libgloss_dir=arm
df4a6958 2263 ;;
a0da8069 2264 arm-*-pe*)
54d1c879 2265 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2266 ;;
a0da8069 2267 thumb-*-coff)
54d1c879 2268 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2269 ;;
2270 thumb-*-elf)
54d1c879 2271 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2272 ;;
a0da8069 2273 thumb-*-pe)
54d1c879 2274 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2275 ;;
2276 arm-*-riscix*)
54d1c879 2277 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2278 ;;
2279 avr-*-*)
54d1c879 2280 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2281 ;;
376a0e54 2282 bfin-*-*)
00d89675 2283 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2284 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2285 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2286 fi
2287 ;;
a0da8069 2288 c4x-*-* | tic4x-*-*)
54d1c879 2289 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2290 ;;
2291 c54x*-*-* | tic54x-*-*)
54d1c879 2292 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2293 ;;
c7e66c6d 2294 cris-*-* | crisv32-*-*)
59f7ec45 2295 unsupported_languages="$unsupported_languages java"
c7e66c6d 2296 case "${target}" in
2faa2958 2297 *-*-aout)
096f7d00 2298 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2299 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2300 *-*-elf)
5e818318 2301 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2302 *-*-linux*)
5e818318 2303 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2304 *)
096f7d00 2305 unsupported_languages="$unsupported_languages fortran"
54d1c879 2306 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2307 esac
691bb5a1 2308 libgloss_dir=cris
a0da8069 2309 ;;
3e707e94 2310 crx-*-*)
54d1c879 2311 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2312 ;;
a0da8069 2313 d10v-*-*)
54d1c879 2314 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2315 ;;
2316 d30v-*-*)
54d1c879 2317 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 2318 ;;
691bb5a1
DD
2319 ep9312-*-elf | ep9312-*-coff)
2320 libgloss_dir=arm
2321 ;;
a0da8069 2322 fr30-*-elf*)
54d1c879 2323 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2324 ;;
2325 frv-*-*)
54d1c879 2326 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2327 ;;
2328 h8300*-*-*)
54d1c879 2329 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2330 ;;
2331 h8500-*-*)
54d1c879 2332 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2333 ;;
caeba88f 2334 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2335 ;;
a0da8069
NN
2336 hppa*64*-*-linux* | parisc*64*-*-linux*)
2337 # In this case, it's because the hppa64-linux target is for
2338 # the kernel only at this point and has no libc, and thus no
2339 # headers, crt*.o, etc., all of which are needed by these.
2340 noconfigdirs="$noconfigdirs target-zlib"
2341 ;;
5dcac624
DA
2342 parisc*-*-linux* | hppa*-*-linux*)
2343 ;;
a0da8069 2344 hppa*-*-*elf* | \
a0da8069
NN
2345 hppa*-*-lites* | \
2346 hppa*-*-openbsd* | \
2347 hppa*64*-*-*)
54d1c879 2348 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2349 ;;
2350 hppa*-hp-hpux11*)
2351 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 2352 ;;
691bb5a1
DD
2353 hppa*-*-pro*)
2354 libgloss_dir=pa
2355 ;;
a0da8069
NN
2356 hppa*-*-*)
2357 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2358 # build on HP-UX 10.20.
54d1c879 2359 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2360 ;;
b07c2aad 2361 i960-*-*)
54d1c879 2362 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2363 ;;
a0da8069
NN
2364 ia64*-*-elf*)
2365 # No gdb support yet.
675c6968 2366 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2367 ;;
2368 ia64*-**-hpux*)
2369 # No gdb or ld support yet.
54d1c879 2370 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2371 ;;
caeba88f 2372 i370-*-opened*)
caeba88f 2373 ;;
ec11bdc6 2374 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2375 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2376 libgloss_dir=i386
a0da8069 2377 ;;
ec11bdc6 2378 i[3456789]86-*-linux*)
a0da8069
NN
2379 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2380 # not build java stuff by default.
2381 case "${target}" in
2382 *-*-*libc1*)
54d1c879 2383 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2384 esac
2385
2386 # This section makes it possible to build newlib natively on linux.
2387 # If we are using a cross compiler then don't configure newlib.
2388 if test x${is_cross_compiler} != xno ; then
bba45b8b 2389 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2390 fi
2391 noconfigdirs="$noconfigdirs target-libgloss"
2392 # If we are not using a cross compiler, do configure newlib.
2393 # Note however, that newlib will only be configured in this situation
2394 # if the --with-newlib option has been given, because otherwise
2395 # 'target-newlib' will appear in skipdirs.
2396 ;;
ec11bdc6 2397 i[3456789]86-*-mingw32*)
45055374
CV
2398 target_configdirs="$target_configdirs target-winsup"
2399 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2400 ;;
2d1e8239
NC
2401 x86_64-*-mingw*)
2402 target_configdirs="$target_configdirs target-winsup"
2403 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2404 ;;
a0da8069
NN
2405 *-*-cygwin*)
2406 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2407 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2408 # always build newlib if winsup directory is present.
45055374 2409 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2410 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2411 elif test -d "$srcdir/newlib"; then
45055374 2412 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2413 fi
c6b750e1 2414 ;;
caeba88f
AL
2415 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2416 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2417 ;;
ec11bdc6 2418 i[3456789]86-*-pe)
54d1c879 2419 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2420 ;;
ec11bdc6 2421 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2422 # The linker does not yet know about weak symbols in COFF,
2423 # and is not configured to handle mixed ELF and COFF.
54d1c879 2424 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2425 ;;
ec11bdc6 2426 i[3456789]86-*-sco*)
54d1c879 2427 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2428 ;;
ec11bdc6 2429 i[3456789]86-*-solaris2*)
a0da8069
NN
2430 noconfigdirs="$noconfigdirs target-libgloss"
2431 ;;
ec11bdc6 2432 i[3456789]86-*-sysv4*)
54d1c879 2433 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2434 ;;
ec11bdc6 2435 i[3456789]86-*-beos*)
54d1c879 2436 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2437 ;;
b59bea8a 2438 i[3456789]86-*-rdos*)
2429c060
PB
2439 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2440 ;;
b07c2aad 2441 m32r-*-*)
54d1c879 2442 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2443 ;;
a0da8069 2444 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2445 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 2446 libgloss_dir=m68hc11
a0da8069
NN
2447 ;;
2448 m68k-*-elf*)
54d1c879 2449 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2450 ;;
2451 m68k-*-coff*)
54d1c879 2452 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2453 ;;
691bb5a1
DD
2454 m68*-*-* | fido-*-*)
2455 libgloss_dir=m68k
2456 ;;
a0da8069
NN
2457 mcore-*-pe*)
2458 # The EPOC C++ environment does not support exceptions or rtti,
2459 # and so building libstdc++-v3 tends not to always work.
2460 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2461 ;;
2462 mmix-*-*)
59f7ec45 2463 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2464 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2465 ;;
2466 mn10200-*-*)
54d1c879 2467 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2468 ;;
2469 mn10300-*-*)
54d1c879 2470 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2471 ;;
4970f871 2472 mt-*-*)
cdb9b172
AH
2473 noconfigdirs="$noconfigdirs sim"
2474 ;;
a0da8069
NN
2475 powerpc-*-aix*)
2476 # copied from rs6000-*-* entry
54d1c879 2477 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2478 ;;
2479 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2480 target_configdirs="$target_configdirs target-winsup"
54d1c879 2481 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2482 # always build newlib.
2483 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2484 ;;
2485 # This is temporary until we can link against shared libraries
2486 powerpcle-*-solaris*)
54d1c879 2487 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 2488 libgloss_dir=rs6000
a0da8069
NN
2489 ;;
2490 powerpc-*-beos*)
54d1c879 2491 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2492 ;;
a0da8069 2493 powerpc-*-eabi)
54d1c879 2494 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2495 libgloss_dir=rs6000
caeba88f
AL
2496 ;;
2497 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 2498 libgloss_dir=rs6000
a0da8069 2499 ;;
a0da8069 2500 rs6000-*-lynxos*)
54d1c879 2501 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2502 ;;
2503 rs6000-*-aix*)
54d1c879 2504 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2505 ;;
2506 rs6000-*-*)
54d1c879 2507 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2508 ;;
2509 m68k-apollo-*)
54d1c879 2510 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 2511 ;;
5bd8be13
RS
2512 mips*-sde-elf*)
2513 skipdirs="$skipdirs target-libiberty"
2514 noconfigdirs="$noconfigdirs ${libgcj}"
2515 if test x$with_newlib = xyes; then
2516 noconfigdirs="$noconfigdirs gprof"
2517 fi
2518 libgloss_dir=mips
2519 ;;
a0da8069 2520 mips*-*-irix5*)
54d1c879 2521 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2522 ;;
2523 mips*-*-irix6*)
a0da8069
NN
2524 # Linking libjava exceeds command-line length limits on at least
2525 # IRIX 6.2, but not on IRIX 6.5.
2526 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2527 # <oldham@codesourcery.com>
54d1c879 2528 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2529 ;;
a0da8069 2530 mips*-*-bsd*)
54d1c879 2531 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2532 ;;
a0da8069
NN
2533 mips*-*-linux*)
2534 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2535 ;;
2536 mips*-*-*)
54d1c879 2537 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 2538 libgloss_dir=mips
a0da8069
NN
2539 ;;
2540 romp-*-*)
54d1c879 2541 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2542 ;;
dbf85af7 2543 sh-*-* | sh64-*-*)
a0da8069 2544 case "${host}" in
ec11bdc6
DD
2545 i[3456789]86-*-vsta) ;; # don't add gprof back in
2546 i[3456789]86-*-go32*) ;; # don't add gprof back in
2547 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2548 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2549 esac
54d1c879 2550 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2551 ;;
691bb5a1
DD
2552 sparclet-*-aout* | sparc86x-*-*)
2553 libgloss_dir=sparc
2554 ;;
a0da8069 2555 sparc-*-elf*)
54d1c879 2556 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2557 ;;
2558 sparc64-*-elf*)
54d1c879 2559 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2560 libgloss_dir=sparc
a0da8069
NN
2561 ;;
2562 sparclite-*-*)
54d1c879 2563 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2564 libgloss_dir=sparc
a0da8069
NN
2565 ;;
2566 sparc-*-sunos4*)
54d1c879 2567 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2568 if test x${is_cross_compiler} != xno ; then
2569 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2570 else
2571 use_gnu_ld=no
2572 fi
2573 ;;
e3c770b1 2574 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2575 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2576 ;;
a0da8069
NN
2577 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2578 ;;
2839fe5d
BE
2579 spu-*-*)
2580 skipdirs="target-libssp"
2581 ;;
a0da8069 2582 v810-*-*)
54d1c879 2583 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2584 ;;
2585 v850-*-*)
54d1c879 2586 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2587 ;;
2588 v850e-*-*)
54d1c879 2589 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2590 ;;
2591 v850ea-*-*)
54d1c879 2592 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2593 ;;
2594 vax-*-vms)
54d1c879 2595 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2596 ;;
2597 vax-*-*)
54d1c879 2598 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2599 ;;
8b66833e 2600 xtensa*-*-*)
54d1c879 2601 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2602 ;;
a0da8069 2603 ip2k-*-*)
54d1c879 2604 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2605 ;;
de0b4a87 2606 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2607 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2608 ;;
2609 *-*-lynxos*)
54d1c879 2610 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2611 ;;
a0da8069 2612 *-*-*)
54d1c879 2613 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2614 ;;
2615esac
252b5132 2616
a0da8069
NN
2617# If we aren't building newlib, then don't build libgloss, since libgloss
2618# depends upon some newlib header files.
2619case "${noconfigdirs}" in
2620 *target-libgloss*) ;;
2621 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2622esac
2623
a0da8069
NN
2624# Work in distributions that contain no compiler tools, like Autoconf.
2625tentative_cc=""
2626host_makefile_frag=/dev/null
2627if test -d ${srcdir}/config ; then
2628case "${host}" in
2629 m68k-hp-hpux*)
2630 # Avoid "too much defining" errors from HPUX compiler.
2631 tentative_cc="cc -Wp,-H256000"
2632 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2633 # If it's HP/UX ar, this should be harmless.
2634 RANLIB="ar ts"
2635 ;;
2636 m68k-apollo-sysv*)
2637 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2638 ;;
2639 m68k-apollo-bsd*)
2640 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2641 # chokes on bfd, the compiler won't let you assign integers to enums, and
2642 # other problems. Defining CC to gcc is a questionable way to say "don't use
2643 # the apollo compiler" (the preferred version of GCC could be called cc,
2644 # or whatever), but I'm not sure leaving CC as cc is any better...
2645 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2646 # Used to have BISON=yacc.
2647 tentative_cc=gcc
2648 ;;
2649 m88k-dg-dgux*)
2650 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2651 ;;
2652 m88k-harris-cxux*)
2653 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2654 tentative_cc="cc -Xa"
2655 host_makefile_frag="config/mh-cxux"
2656 ;;
2657 m88k-motorola-sysv*)
2658 ;;
2659 mips*-dec-ultrix*)
2660 tentative_cc="cc -Wf,-XNg1000"
2661 host_makefile_frag="config/mh-decstation"
2662 ;;
2663 mips*-nec-sysv4*)
2664 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2665 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2666 host_makefile_frag="config/mh-necv4"
2667 ;;
2668 mips*-sgi-irix4*)
2669 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2670 # environment. Also bump switch table size so that cp-parse will
2671 # compile. Bump string length limit so linker builds.
2672 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2673 ;;
2674 mips*-*-sysv4*)
2675 host_makefile_frag="config/mh-sysv4"
2676 ;;
2677 mips*-*-sysv*)
2678 # This is for a MIPS running RISC/os 4.52C.
2679
2680 # This is needed for GDB, but needs to be in the top-level make because
2681 # if a library is compiled with the bsd headers and gets linked with the
2682 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2683 # a different size).
2684 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2685 # known except to select the sysv environment. Could we use /proc instead?
2686 # These "sysv environments" and "bsd environments" often end up being a pain.
2687 #
2688 # This is not part of CFLAGS because perhaps not all C compilers have this
2689 # option.
2690 tentative_cc="cc -systype sysv"
2691 ;;
2692 i370-ibm-opened*)
2693 tentative_cc="c89"
2694 ;;
ec11bdc6 2695 i[3456789]86-*-sysv5*)
a0da8069
NN
2696 host_makefile_frag="config/mh-sysv5"
2697 ;;
ec11bdc6 2698 i[3456789]86-*-dgux*)
a0da8069
NN
2699 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2700 host_makefile_frag="config/mh-dgux386"
2701 ;;
ec11bdc6 2702 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2703 # The MetaWare compiler will generate a copyright message unless you
2704 # turn it off by adding the -Hnocopyr flag.
2705 tentative_cc="cc -Hnocopyr"
2706 ;;
ec11bdc6 2707 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2708 # for an NCR 3000 (i486/SVR4) system.
2709 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2710 # This compiler not only emits obnoxious copyright messages every time
2711 # you run it, but it chokes and dies on a whole bunch of GNU source
2712 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2713 tentative_cc="/usr/ccs/ATT/cc"
2714 host_makefile_frag="config/mh-ncr3000"
2715 ;;
ec11bdc6 2716 i[3456789]86-*-sco3.2v5*)
a0da8069 2717 ;;
ec11bdc6 2718 i[3456789]86-*-sco*)
a0da8069
NN
2719 # The native C compiler botches some simple uses of const. Unfortunately,
2720 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2721 tentative_cc="cc -Dconst="
2722 host_makefile_frag="config/mh-sco"
2723 ;;
ec11bdc6 2724 i[3456789]86-*-udk*)
a0da8069
NN
2725 host_makefile_frag="config/mh-sysv5"
2726 ;;
ec11bdc6 2727 i[3456789]86-*-solaris2*)
a0da8069
NN
2728 host_makefile_frag="config/mh-sysv4"
2729 ;;
ec11bdc6 2730 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2731 host_makefile_frag="config/mh-djgpp"
2732 ;;
2733 *-cygwin*)
2734 host_makefile_frag="config/mh-cygwin"
2735 ;;
2736 *-mingw32*)
84e7906e 2737 host_makefile_frag="config/mh-mingw"
a0da8069 2738 ;;
2d1e8239 2739 *-mingw64*)
84e7906e 2740 host_makefile_frag="config/mh-mingw"
2d1e8239 2741 ;;
a0da8069
NN
2742 *-interix*)
2743 host_makefile_frag="config/mh-interix"
2744 ;;
2745 vax-*-ultrix2*)
2746 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2747 tentative_cc=gcc
2748 ;;
2749 *-*-solaris2*)
2750 host_makefile_frag="config/mh-solaris"
2751 ;;
2752 m68k-sun-sunos*)
2753 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2754 # without overflowing the jump tables (-J says to use a 32 bit table)
2755 tentative_cc="cc -J"
2756 ;;
2757 *-hp-hpux*)
2758 tentative_cc="cc -Wp,-H256000"
2759 ;;
2760 *-*-hiux*)
2761 tentative_cc="cc -Wp,-H256000"
2762 ;;
2763 rs6000-*-lynxos*)
2764 # /bin/cc is less than useful for our purposes. Always use GCC
2765 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2766 host_makefile_frag="config/mh-lynxrs6k"
2767 ;;
0df3d27f
PB
2768 powerpc-*-darwin*)
2769 host_makefile_frag="config/mh-ppc-darwin"
2770 ;;
f6d183c0
PB
2771 powerpc-*-aix*)
2772 host_makefile_frag="config/mh-ppc-aix"
2773 ;;
2774 rs6000-*-aix*)
2775 host_makefile_frag="config/mh-ppc-aix"
2776 ;;
a0da8069
NN
2777 *-*-lynxos*)
2778 # /bin/cc is less than useful for our purposes. Always use GCC
2779 tentative_cc="/bin/gcc"
2780 ;;
2781 *-*-sysv4*)
2782 host_makefile_frag="config/mh-sysv4"
2783 ;;
fe69863c
DD
2784 # This is placed last to prevent interfering with the cases above.
2785 i[3456789]86-*-*)
2786 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2787 host_makefile_frag="config/mh-x86omitfp"
2788 ;;
a0da8069
NN
2789esac
2790fi
2791
9e07f89d
NN
2792# If we aren't going to be using gcc, see if we can extract a definition
2793# of CC from the fragment.
2794# Actually, use the 'pre-extracted' version above.
2795if test -z "${CC}" && test "${build}" = "${host}" ; then
2796 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2797 found=
2798 for dir in $PATH; do
2799 test -z "$dir" && dir=.
2800 if test -f $dir/gcc; then
2801 found=yes
2802 break
2803 fi
2804 done
2805 IFS="$save_ifs"
2806 if test -z "${found}" && test -n "${tentative_cc}" ; then
2807 CC=$tentative_cc
2808 fi
2809fi
2810
2811if test "${build}" != "${host}" ; then
1576798e
PB
2812 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2813 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 2814 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
2815 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2816 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2817 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2818 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2819 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2820 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2821 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2822 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2823 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2824else
2825 AR_FOR_BUILD="\$(AR)"
2826 AS_FOR_BUILD="\$(AS)"
512b7dfb 2827 CC_FOR_BUILD="\$(CC)"
1576798e
PB
2828 CXX_FOR_BUILD="\$(CXX)"
2829 GCJ_FOR_BUILD="\$(GCJ)"
2830 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2831 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2832 LD_FOR_BUILD="\$(LD)"
2833 NM_FOR_BUILD="\$(NM)"
2834 RANLIB_FOR_BUILD="\$(RANLIB)"
2835 WINDRES_FOR_BUILD="\$(WINDRES)"
2836 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
2837fi
2838
2839ac_ext=c
c6b750e1
DJ
2840ac_cpp='$CPP $CPPFLAGS'
2841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843ac_compiler_gnu=$ac_cv_c_compiler_gnu
2844if test -n "$ac_tool_prefix"; then
2845 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2846set dummy ${ac_tool_prefix}gcc; ac_word=$2
2847echo "$as_me:$LINENO: checking for $ac_word" >&5
2848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2849if test "${ac_cv_prog_CC+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2851else
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC="$CC" # Let the user override the test.
2854else
2855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856for as_dir in $PATH
2857do
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 break 2
2865 fi
2866done
2867done
2868
2869fi
2870fi
2871CC=$ac_cv_prog_CC
2872if test -n "$CC"; then
2873 echo "$as_me:$LINENO: result: $CC" >&5
2874echo "${ECHO_T}$CC" >&6
2875else
2876 echo "$as_me:$LINENO: result: no" >&5
2877echo "${ECHO_T}no" >&6
2878fi
2879
2880fi
2881if test -z "$ac_cv_prog_CC"; then
2882 ac_ct_CC=$CC
6a9cf61e 2883 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2884set dummy gcc; ac_word=$2
c6b750e1
DJ
2885echo "$as_me:$LINENO: checking for $ac_word" >&5
2886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2887if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889else
2890 if test -n "$ac_ct_CC"; then
2891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2892else
2893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894for as_dir in $PATH
2895do
2896 IFS=$as_save_IFS
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2900 ac_cv_prog_ac_ct_CC="gcc"
2901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 break 2
2903 fi
2904done
2905done
2906
2907fi
2908fi
2909ac_ct_CC=$ac_cv_prog_ac_ct_CC
2910if test -n "$ac_ct_CC"; then
2911 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2912echo "${ECHO_T}$ac_ct_CC" >&6
2913else
2914 echo "$as_me:$LINENO: result: no" >&5
2915echo "${ECHO_T}no" >&6
2916fi
2917
2918 CC=$ac_ct_CC
2919else
2920 CC="$ac_cv_prog_CC"
2921fi
2922
2923if test -z "$CC"; then
2924 if test -n "$ac_tool_prefix"; then
2925 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2926set dummy ${ac_tool_prefix}cc; ac_word=$2
2927echo "$as_me:$LINENO: checking for $ac_word" >&5
2928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2929if test "${ac_cv_prog_CC+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2931else
2932 if test -n "$CC"; then
2933 ac_cv_prog_CC="$CC" # Let the user override the test.
2934else
c6b750e1
DJ
2935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936for as_dir in $PATH
2937do
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2942 ac_cv_prog_CC="${ac_tool_prefix}cc"
2943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2945 fi
2946done
2947done
2948
9e07f89d
NN
2949fi
2950fi
c6b750e1 2951CC=$ac_cv_prog_CC
9e07f89d 2952if test -n "$CC"; then
c6b750e1
DJ
2953 echo "$as_me:$LINENO: result: $CC" >&5
2954echo "${ECHO_T}$CC" >&6
9e07f89d 2955else
c6b750e1
DJ
2956 echo "$as_me:$LINENO: result: no" >&5
2957echo "${ECHO_T}no" >&6
9e07f89d
NN
2958fi
2959
c6b750e1
DJ
2960fi
2961if test -z "$ac_cv_prog_CC"; then
2962 ac_ct_CC=$CC
2963 # Extract the first word of "cc", so it can be a program name with args.
2964set dummy cc; ac_word=$2
2965echo "$as_me:$LINENO: checking for $ac_word" >&5
2966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2967if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2969else
2970 if test -n "$ac_ct_CC"; then
2971 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2972else
2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974for as_dir in $PATH
2975do
2976 IFS=$as_save_IFS
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980 ac_cv_prog_ac_ct_CC="cc"
2981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 break 2
2983 fi
2984done
2985done
2986
2987fi
2988fi
2989ac_ct_CC=$ac_cv_prog_ac_ct_CC
2990if test -n "$ac_ct_CC"; then
2991 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2992echo "${ECHO_T}$ac_ct_CC" >&6
2993else
2994 echo "$as_me:$LINENO: result: no" >&5
2995echo "${ECHO_T}no" >&6
2996fi
2997
2998 CC=$ac_ct_CC
2999else
3000 CC="$ac_cv_prog_CC"
3001fi
3002
3003fi
9e07f89d
NN
3004if test -z "$CC"; then
3005 # Extract the first word of "cc", so it can be a program name with args.
3006set dummy cc; ac_word=$2
c6b750e1
DJ
3007echo "$as_me:$LINENO: checking for $ac_word" >&5
3008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3009if test "${ac_cv_prog_CC+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3011else
3012 if test -n "$CC"; then
3013 ac_cv_prog_CC="$CC" # Let the user override the test.
3014else
9e07f89d 3015 ac_prog_rejected=no
c6b750e1
DJ
3016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017for as_dir in $PATH
3018do
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3024 ac_prog_rejected=yes
3025 continue
3026 fi
3027 ac_cv_prog_CC="cc"
3028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 break 2
3030 fi
3031done
3032done
3033
9e07f89d
NN
3034if test $ac_prog_rejected = yes; then
3035 # We found a bogon in the path, so make sure we never use it.
3036 set dummy $ac_cv_prog_CC
3037 shift
c6b750e1 3038 if test $# != 0; then
9e07f89d
NN
3039 # We chose a different compiler from the bogus one.
3040 # However, it has the same basename, so the bogon will be chosen
3041 # first if we set CC to just the basename; use the full file name.
3042 shift
c6b750e1 3043 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3044 fi
3045fi
3046fi
3047fi
c6b750e1 3048CC=$ac_cv_prog_CC
9e07f89d 3049if test -n "$CC"; then
c6b750e1
DJ
3050 echo "$as_me:$LINENO: result: $CC" >&5
3051echo "${ECHO_T}$CC" >&6
9e07f89d 3052else
c6b750e1
DJ
3053 echo "$as_me:$LINENO: result: no" >&5
3054echo "${ECHO_T}no" >&6
9e07f89d
NN
3055fi
3056
c6b750e1
DJ
3057fi
3058if test -z "$CC"; then
3059 if test -n "$ac_tool_prefix"; then
3060 for ac_prog in cl
3061 do
3062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3063set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3064echo "$as_me:$LINENO: checking for $ac_word" >&5
3065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3066if test "${ac_cv_prog_CC+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3068else
3069 if test -n "$CC"; then
3070 ac_cv_prog_CC="$CC" # Let the user override the test.
3071else
c6b750e1
DJ
3072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073for as_dir in $PATH
3074do
3075 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 break 2
376a0e54 3082 fi
c6b750e1
DJ
3083done
3084done
cac3d6c4 3085
c6b750e1
DJ
3086fi
3087fi
3088CC=$ac_cv_prog_CC
3089if test -n "$CC"; then
3090 echo "$as_me:$LINENO: result: $CC" >&5
3091echo "${ECHO_T}$CC" >&6
cac3d6c4 3092else
c6b750e1
DJ
3093 echo "$as_me:$LINENO: result: no" >&5
3094echo "${ECHO_T}no" >&6
9e07f89d 3095fi
cac3d6c4 3096
c6b750e1
DJ
3097 test -n "$CC" && break
3098 done
cac3d6c4 3099fi
c6b750e1
DJ
3100if test -z "$CC"; then
3101 ac_ct_CC=$CC
3102 for ac_prog in cl
3103do
3104 # Extract the first word of "$ac_prog", so it can be a program name with args.
3105set dummy $ac_prog; ac_word=$2
3106echo "$as_me:$LINENO: checking for $ac_word" >&5
3107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3108if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3110else
c6b750e1
DJ
3111 if test -n "$ac_ct_CC"; then
3112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3113else
c6b750e1
DJ
3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115for as_dir in $PATH
3116do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121 ac_cv_prog_ac_ct_CC="$ac_prog"
3122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3124 fi
3125done
3126done
3127
cac3d6c4
CM
3128fi
3129fi
c6b750e1
DJ
3130ac_ct_CC=$ac_cv_prog_ac_ct_CC
3131if test -n "$ac_ct_CC"; then
3132 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3133echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3134else
c6b750e1
DJ
3135 echo "$as_me:$LINENO: result: no" >&5
3136echo "${ECHO_T}no" >&6
cac3d6c4 3137fi
376a0e54 3138
c6b750e1
DJ
3139 test -n "$ac_ct_CC" && break
3140done
3141
3142 CC=$ac_ct_CC
3143fi
3144
3145fi
3146
3147
3148test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3149See \`config.log' for more details." >&5
3150echo "$as_me: error: no acceptable C compiler found in \$PATH
3151See \`config.log' for more details." >&2;}
3152 { (exit 1); exit 1; }; }
3153
3154# Provide some information about the compiler.
3155echo "$as_me:$LINENO:" \
3156 "checking for C compiler version" >&5
3157ac_compiler=`set X $ac_compile; echo $2`
3158{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3159 (eval $ac_compiler --version </dev/null >&5) 2>&5
3160 ac_status=$?
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }
3163{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3164 (eval $ac_compiler -v </dev/null >&5) 2>&5
3165 ac_status=$?
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }
3168{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3169 (eval $ac_compiler -V </dev/null >&5) 2>&5
3170 ac_status=$?
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }
3173
3174cat >conftest.$ac_ext <<_ACEOF
3175/* confdefs.h. */
3176_ACEOF
3177cat confdefs.h >>conftest.$ac_ext
3178cat >>conftest.$ac_ext <<_ACEOF
3179/* end confdefs.h. */
3180
3181int
3182main ()
3183{
3184
3185 ;
3186 return 0;
3187}
3188_ACEOF
3189ac_clean_files_save=$ac_clean_files
3190ac_clean_files="$ac_clean_files a.out a.exe b.out"
3191# Try to create an executable without -o first, disregard a.out.
3192# It will help us diagnose broken compilers, and finding out an intuition
3193# of exeext.
3194echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3195echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3196ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3197if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3198 (eval $ac_link_default) 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; then
3202 # Find the output, starting from the most likely. This scheme is
3203# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3204# resort.
3205
3206# Be careful to initialize this variable, since it used to be cached.
3207# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3208ac_cv_exeext=
3209# b.out is created by i960 compilers.
3210for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3211do
3212 test -f "$ac_file" || continue
3213 case $ac_file in
3214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3215 ;;
3216 conftest.$ac_ext )
3217 # This is the source file.
3218 ;;
3219 [ab].out )
3220 # We found the default executable, but exeext='' is most
3221 # certainly right.
3222 break;;
3223 *.* )
3224 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3225 # FIXME: I believe we export ac_cv_exeext for Libtool,
3226 # but it would be cool to find out if it's true. Does anybody
3227 # maintain Libtool? --akim.
3228 export ac_cv_exeext
3229 break;;
3230 * )
3231 break;;
3232 esac
3233done
3234else
3235 echo "$as_me: failed program was:" >&5
3236sed 's/^/| /' conftest.$ac_ext >&5
3237
3238{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3239See \`config.log' for more details." >&5
3240echo "$as_me: error: C compiler cannot create executables
3241See \`config.log' for more details." >&2;}
3242 { (exit 77); exit 77; }; }
3243fi
3244
3245ac_exeext=$ac_cv_exeext
3246echo "$as_me:$LINENO: result: $ac_file" >&5
3247echo "${ECHO_T}$ac_file" >&6
3248
3249# Check the compiler produces executables we can run. If not, either
3250# the compiler is broken, or we cross compile.
3251echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3252echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3253# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3254# If not cross compiling, check that we can run a simple program.
3255if test "$cross_compiling" != yes; then
3256 if { ac_try='./$ac_file'
3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 (eval $ac_try) 2>&5
3259 ac_status=$?
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
3262 cross_compiling=no
3263 else
3264 if test "$cross_compiling" = maybe; then
3265 cross_compiling=yes
3266 else
3267 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3268If you meant to cross compile, use \`--host'.
3269See \`config.log' for more details." >&5
3270echo "$as_me: error: cannot run C compiled programs.
3271If you meant to cross compile, use \`--host'.
3272See \`config.log' for more details." >&2;}
3273 { (exit 1); exit 1; }; }
3274 fi
3275 fi
3276fi
3277echo "$as_me:$LINENO: result: yes" >&5
3278echo "${ECHO_T}yes" >&6
3279
3280rm -f a.out a.exe conftest$ac_cv_exeext b.out
3281ac_clean_files=$ac_clean_files_save
3282# Check the compiler produces executables we can run. If not, either
3283# the compiler is broken, or we cross compile.
3284echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3285echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3286echo "$as_me:$LINENO: result: $cross_compiling" >&5
3287echo "${ECHO_T}$cross_compiling" >&6
3288
3289echo "$as_me:$LINENO: checking for suffix of executables" >&5
3290echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3292 (eval $ac_link) 2>&5
3293 ac_status=$?
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }; then
3296 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3297# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3298# work properly (i.e., refer to `conftest.exe'), while it won't with
3299# `rm'.
3300for ac_file in conftest.exe conftest conftest.*; do
3301 test -f "$ac_file" || continue
3302 case $ac_file in
3303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3304 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3305 export ac_cv_exeext
3306 break;;
3307 * ) break;;
3308 esac
3309done
3310else
3311 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3312See \`config.log' for more details." >&5
3313echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3314See \`config.log' for more details." >&2;}
3315 { (exit 1); exit 1; }; }
3316fi
3317
3318rm -f conftest$ac_cv_exeext
3319echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3320echo "${ECHO_T}$ac_cv_exeext" >&6
3321
3322rm -f conftest.$ac_ext
3323EXEEXT=$ac_cv_exeext
3324ac_exeext=$EXEEXT
3325echo "$as_me:$LINENO: checking for suffix of object files" >&5
3326echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3327if test "${ac_cv_objext+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3329else
3330 cat >conftest.$ac_ext <<_ACEOF
3331/* confdefs.h. */
3332_ACEOF
3333cat confdefs.h >>conftest.$ac_ext
3334cat >>conftest.$ac_ext <<_ACEOF
3335/* end confdefs.h. */
3336
3337int
3338main ()
3339{
3340
3341 ;
3342 return 0;
3343}
3344_ACEOF
3345rm -f conftest.o conftest.obj
3346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3347 (eval $ac_compile) 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; then
3351 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3352 case $ac_file in
3353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3354 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3355 break;;
3356 esac
3357done
cac3d6c4 3358else
c6b750e1
DJ
3359 echo "$as_me: failed program was:" >&5
3360sed 's/^/| /' conftest.$ac_ext >&5
3361
3362{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3363See \`config.log' for more details." >&5
3364echo "$as_me: error: cannot compute suffix of object files: cannot compile
3365See \`config.log' for more details." >&2;}
3366 { (exit 1); exit 1; }; }
3367fi
3368
3369rm -f conftest.$ac_cv_objext conftest.$ac_ext
3370fi
3371echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3372echo "${ECHO_T}$ac_cv_objext" >&6
3373OBJEXT=$ac_cv_objext
3374ac_objext=$OBJEXT
3375echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3376echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3377if test "${ac_cv_c_compiler_gnu+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379else
3380 cat >conftest.$ac_ext <<_ACEOF
3381/* confdefs.h. */
3382_ACEOF
3383cat confdefs.h >>conftest.$ac_ext
3384cat >>conftest.$ac_ext <<_ACEOF
3385/* end confdefs.h. */
3386
3387int
3388main ()
3389{
3390#ifndef __GNUC__
3391 choke me
3392#endif
3393
3394 ;
3395 return 0;
3396}
3397_ACEOF
3398rm -f conftest.$ac_objext
3399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3400 (eval $ac_compile) 2>conftest.er1
3401 ac_status=$?
3402 grep -v '^ *+' conftest.er1 >conftest.err
3403 rm -f conftest.er1
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } &&
3407 { ac_try='test -z "$ac_c_werror_flag"
3408 || test ! -s conftest.err'
3409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410 (eval $ac_try) 2>&5
3411 ac_status=$?
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }; } &&
3414 { ac_try='test -s conftest.$ac_objext'
3415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416 (eval $ac_try) 2>&5
3417 ac_status=$?
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); }; }; then
3420 ac_compiler_gnu=yes
3421else
3422 echo "$as_me: failed program was:" >&5
3423sed 's/^/| /' conftest.$ac_ext >&5
3424
3425ac_compiler_gnu=no
3426fi
3427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3428ac_cv_c_compiler_gnu=$ac_compiler_gnu
3429
3430fi
3431echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3432echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3433GCC=`test $ac_compiler_gnu = yes && echo yes`
3434ac_test_CFLAGS=${CFLAGS+set}
3435ac_save_CFLAGS=$CFLAGS
3436CFLAGS="-g"
3437echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3438echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3439if test "${ac_cv_prog_cc_g+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441else
3442 cat >conftest.$ac_ext <<_ACEOF
3443/* confdefs.h. */
3444_ACEOF
3445cat confdefs.h >>conftest.$ac_ext
3446cat >>conftest.$ac_ext <<_ACEOF
3447/* end confdefs.h. */
3448
3449int
3450main ()
3451{
3452
3453 ;
3454 return 0;
3455}
3456_ACEOF
3457rm -f conftest.$ac_objext
3458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3459 (eval $ac_compile) 2>conftest.er1
3460 ac_status=$?
3461 grep -v '^ *+' conftest.er1 >conftest.err
3462 rm -f conftest.er1
3463 cat conftest.err >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } &&
3466 { ac_try='test -z "$ac_c_werror_flag"
3467 || test ! -s conftest.err'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469 (eval $ac_try) 2>&5
3470 ac_status=$?
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; } &&
3473 { ac_try='test -s conftest.$ac_objext'
3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475 (eval $ac_try) 2>&5
3476 ac_status=$?
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; }; then
9e07f89d
NN
3479 ac_cv_prog_cc_g=yes
3480else
c6b750e1
DJ
3481 echo "$as_me: failed program was:" >&5
3482sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3483
c6b750e1 3484ac_cv_prog_cc_g=no
376a0e54 3485fi
c6b750e1
DJ
3486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3487fi
3488echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3489echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3490if test "$ac_test_CFLAGS" = set; then
c6b750e1 3491 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3492elif test $ac_cv_prog_cc_g = yes; then
3493 if test "$GCC" = yes; then
3494 CFLAGS="-g -O2"
3495 else
3496 CFLAGS="-g"
3497 fi
3498else
3499 if test "$GCC" = yes; then
3500 CFLAGS="-O2"
3501 else
3502 CFLAGS=
3503 fi
3504fi
c6b750e1
DJ
3505echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3506echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3507if test "${ac_cv_prog_cc_stdc+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3509else
3510 ac_cv_prog_cc_stdc=no
3511ac_save_CC=$CC
3512cat >conftest.$ac_ext <<_ACEOF
3513/* confdefs.h. */
3514_ACEOF
3515cat confdefs.h >>conftest.$ac_ext
3516cat >>conftest.$ac_ext <<_ACEOF
3517/* end confdefs.h. */
3518#include <stdarg.h>
3519#include <stdio.h>
3520#include <sys/types.h>
3521#include <sys/stat.h>
3522/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3523struct buf { int x; };
3524FILE * (*rcsopen) (struct buf *, struct stat *, int);
3525static char *e (p, i)
3526 char **p;
3527 int i;
3528{
3529 return p[i];
3530}
3531static char *f (char * (*g) (char **, int), char **p, ...)
3532{
3533 char *s;
3534 va_list v;
3535 va_start (v,p);
3536 s = g (p, va_arg (v,int));
3537 va_end (v);
3538 return s;
3539}
3540
3541/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3542 function prototypes and stuff, but not '\xHH' hex character constants.
3543 These don't provoke an error unfortunately, instead are silently treated
3544 as 'x'. The following induces an error, until -std1 is added to get
3545 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3546 array size at least. It's necessary to write '\x00'==0 to get something
3547 that's true only with -std1. */
3548int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3549
3550int test (int i, double x);
3551struct s1 {int (*f) (int a);};
3552struct s2 {int (*f) (double a);};
3553int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3554int argc;
3555char **argv;
3556int
3557main ()
3558{
3559return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3560 ;
3561 return 0;
3562}
3563_ACEOF
3564# Don't try gcc -ansi; that turns off useful extensions and
3565# breaks some systems' header files.
3566# AIX -qlanglvl=ansi
3567# Ultrix and OSF/1 -std1
3568# HP-UX 10.20 and later -Ae
3569# HP-UX older versions -Aa -D_HPUX_SOURCE
3570# SVR4 -Xc -D__EXTENSIONS__
3571for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3572do
3573 CC="$ac_save_CC $ac_arg"
3574 rm -f conftest.$ac_objext
3575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3576 (eval $ac_compile) 2>conftest.er1
3577 ac_status=$?
3578 grep -v '^ *+' conftest.er1 >conftest.err
3579 rm -f conftest.er1
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } &&
3583 { ac_try='test -z "$ac_c_werror_flag"
3584 || test ! -s conftest.err'
3585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 (eval $ac_try) 2>&5
3587 ac_status=$?
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }; } &&
3590 { ac_try='test -s conftest.$ac_objext'
3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 (eval $ac_try) 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; }; then
3596 ac_cv_prog_cc_stdc=$ac_arg
3597break
3598else
3599 echo "$as_me: failed program was:" >&5
3600sed 's/^/| /' conftest.$ac_ext >&5
3601
3602fi
3603rm -f conftest.err conftest.$ac_objext
3604done
3605rm -f conftest.$ac_ext conftest.$ac_objext
3606CC=$ac_save_CC
3607
3608fi
3609
3610case "x$ac_cv_prog_cc_stdc" in
3611 x|xno)
3612 echo "$as_me:$LINENO: result: none needed" >&5
3613echo "${ECHO_T}none needed" >&6 ;;
3614 *)
3615 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3616echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3617 CC="$CC $ac_cv_prog_cc_stdc" ;;
3618esac
3619
3620# Some people use a C++ compiler to compile C. Since we use `exit',
3621# in C++ we need to declare it. In case someone uses the same compiler
3622# for both compiling C and C++ we need to have the C++ compiler decide
3623# the declaration of exit, since it's the most demanding environment.
3624cat >conftest.$ac_ext <<_ACEOF
3625#ifndef __cplusplus
3626 choke me
3627#endif
3628_ACEOF
3629rm -f conftest.$ac_objext
3630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3631 (eval $ac_compile) 2>conftest.er1
3632 ac_status=$?
3633 grep -v '^ *+' conftest.er1 >conftest.err
3634 rm -f conftest.er1
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } &&
3638 { ac_try='test -z "$ac_c_werror_flag"
3639 || test ! -s conftest.err'
3640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641 (eval $ac_try) 2>&5
3642 ac_status=$?
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }; } &&
3645 { ac_try='test -s conftest.$ac_objext'
3646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647 (eval $ac_try) 2>&5
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; }; then
3651 for ac_declaration in \
3652 '' \
3653 'extern "C" void std::exit (int) throw (); using std::exit;' \
3654 'extern "C" void std::exit (int); using std::exit;' \
3655 'extern "C" void exit (int) throw ();' \
3656 'extern "C" void exit (int);' \
3657 'void exit (int);'
3658do
3659 cat >conftest.$ac_ext <<_ACEOF
3660/* confdefs.h. */
3661_ACEOF
3662cat confdefs.h >>conftest.$ac_ext
3663cat >>conftest.$ac_ext <<_ACEOF
3664/* end confdefs.h. */
3665$ac_declaration
3666#include <stdlib.h>
3667int
3668main ()
3669{
3670exit (42);
3671 ;
3672 return 0;
3673}
3674_ACEOF
3675rm -f conftest.$ac_objext
3676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3677 (eval $ac_compile) 2>conftest.er1
3678 ac_status=$?
3679 grep -v '^ *+' conftest.er1 >conftest.err
3680 rm -f conftest.er1
3681 cat conftest.err >&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } &&
3684 { ac_try='test -z "$ac_c_werror_flag"
3685 || test ! -s conftest.err'
3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687 (eval $ac_try) 2>&5
3688 ac_status=$?
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; } &&
3691 { ac_try='test -s conftest.$ac_objext'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 (eval $ac_try) 2>&5
3694 ac_status=$?
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; }; then
3697 :
3698else
3699 echo "$as_me: failed program was:" >&5
3700sed 's/^/| /' conftest.$ac_ext >&5
3701
3702continue
3703fi
3704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3705 cat >conftest.$ac_ext <<_ACEOF
3706/* confdefs.h. */
3707_ACEOF
3708cat confdefs.h >>conftest.$ac_ext
3709cat >>conftest.$ac_ext <<_ACEOF
3710/* end confdefs.h. */
3711$ac_declaration
3712int
3713main ()
3714{
3715exit (42);
3716 ;
3717 return 0;
3718}
3719_ACEOF
3720rm -f conftest.$ac_objext
3721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3722 (eval $ac_compile) 2>conftest.er1
3723 ac_status=$?
3724 grep -v '^ *+' conftest.er1 >conftest.err
3725 rm -f conftest.er1
3726 cat conftest.err >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } &&
3729 { ac_try='test -z "$ac_c_werror_flag"
3730 || test ! -s conftest.err'
3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 (eval $ac_try) 2>&5
3733 ac_status=$?
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; } &&
3736 { ac_try='test -s conftest.$ac_objext'
3737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 (eval $ac_try) 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; }; then
3742 break
3743else
3744 echo "$as_me: failed program was:" >&5
3745sed 's/^/| /' conftest.$ac_ext >&5
3746
3747fi
3748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3749done
3750rm -f conftest*
3751if test -n "$ac_declaration"; then
3752 echo '#ifdef __cplusplus' >>confdefs.h
3753 echo $ac_declaration >>confdefs.h
3754 echo '#endif' >>confdefs.h
3755fi
3756
3757else
3758 echo "$as_me: failed program was:" >&5
3759sed 's/^/| /' conftest.$ac_ext >&5
3760
3761fi
3762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3763ac_ext=c
3764ac_cpp='$CPP $CPPFLAGS'
3765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3768
18f6b6ee
PB
3769ac_ext=cc
3770ac_cpp='$CXXCPP $CPPFLAGS'
3771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3774if test -n "$ac_tool_prefix"; then
3775 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3776 do
3777 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3778set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3779echo "$as_me:$LINENO: checking for $ac_word" >&5
3780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3781if test "${ac_cv_prog_CXX+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3783else
3784 if test -n "$CXX"; then
3785 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3786else
3787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788for as_dir in $PATH
3789do
3790 IFS=$as_save_IFS
3791 test -z "$as_dir" && as_dir=.
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3794 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 break 2
3797 fi
3798done
3799done
512b7dfb 3800
18f6b6ee
PB
3801fi
3802fi
3803CXX=$ac_cv_prog_CXX
3804if test -n "$CXX"; then
3805 echo "$as_me:$LINENO: result: $CXX" >&5
3806echo "${ECHO_T}$CXX" >&6
3807else
3808 echo "$as_me:$LINENO: result: no" >&5
3809echo "${ECHO_T}no" >&6
3810fi
3811
3812 test -n "$CXX" && break
3813 done
3814fi
3815if test -z "$CXX"; then
3816 ac_ct_CXX=$CXX
3817 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3818do
3819 # Extract the first word of "$ac_prog", so it can be a program name with args.
3820set dummy $ac_prog; ac_word=$2
3821echo "$as_me:$LINENO: checking for $ac_word" >&5
3822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3823if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3825else
3826 if test -n "$ac_ct_CXX"; then
3827 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3828else
3829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830for as_dir in $PATH
3831do
3832 IFS=$as_save_IFS
3833 test -z "$as_dir" && as_dir=.
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3836 ac_cv_prog_ac_ct_CXX="$ac_prog"
3837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3838 break 2
512b7dfb 3839 fi
18f6b6ee
PB
3840done
3841done
512b7dfb 3842
18f6b6ee
PB
3843fi
3844fi
3845ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3846if test -n "$ac_ct_CXX"; then
3847 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3848echo "${ECHO_T}$ac_ct_CXX" >&6
3849else
3850 echo "$as_me:$LINENO: result: no" >&5
3851echo "${ECHO_T}no" >&6
3852fi
3853
3854 test -n "$ac_ct_CXX" && break
3855done
3856test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3857
3858 CXX=$ac_ct_CXX
3859fi
3860
3861
3862# Provide some information about the compiler.
3863echo "$as_me:$LINENO:" \
3864 "checking for C++ compiler version" >&5
3865ac_compiler=`set X $ac_compile; echo $2`
3866{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3867 (eval $ac_compiler --version </dev/null >&5) 2>&5
3868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }
3871{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3872 (eval $ac_compiler -v </dev/null >&5) 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }
3876{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3877 (eval $ac_compiler -V </dev/null >&5) 2>&5
3878 ac_status=$?
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }
3881
3882echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3883echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3884if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3886else
3887 cat >conftest.$ac_ext <<_ACEOF
3888/* confdefs.h. */
3889_ACEOF
3890cat confdefs.h >>conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h. */
3893
3894int
3895main ()
3896{
3897#ifndef __GNUC__
3898 choke me
3899#endif
3900
3901 ;
3902 return 0;
3903}
3904_ACEOF
3905rm -f conftest.$ac_objext
3906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3907 (eval $ac_compile) 2>conftest.er1
3908 ac_status=$?
3909 grep -v '^ *+' conftest.er1 >conftest.err
3910 rm -f conftest.er1
3911 cat conftest.err >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } &&
3914 { ac_try='test -z "$ac_cxx_werror_flag"
3915 || test ! -s conftest.err'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 (eval $ac_try) 2>&5
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; } &&
3921 { ac_try='test -s conftest.$ac_objext'
3922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923 (eval $ac_try) 2>&5
3924 ac_status=$?
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }; }; then
3927 ac_compiler_gnu=yes
3928else
3929 echo "$as_me: failed program was:" >&5
3930sed 's/^/| /' conftest.$ac_ext >&5
3931
3932ac_compiler_gnu=no
3933fi
3934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3935ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3936
3937fi
3938echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3939echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3940GXX=`test $ac_compiler_gnu = yes && echo yes`
3941ac_test_CXXFLAGS=${CXXFLAGS+set}
3942ac_save_CXXFLAGS=$CXXFLAGS
3943CXXFLAGS="-g"
3944echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3945echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3946if test "${ac_cv_prog_cxx_g+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948else
3949 cat >conftest.$ac_ext <<_ACEOF
3950/* confdefs.h. */
3951_ACEOF
3952cat confdefs.h >>conftest.$ac_ext
3953cat >>conftest.$ac_ext <<_ACEOF
3954/* end confdefs.h. */
3955
3956int
3957main ()
3958{
3959
3960 ;
3961 return 0;
3962}
3963_ACEOF
3964rm -f conftest.$ac_objext
3965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3966 (eval $ac_compile) 2>conftest.er1
3967 ac_status=$?
3968 grep -v '^ *+' conftest.er1 >conftest.err
3969 rm -f conftest.er1
3970 cat conftest.err >&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } &&
3973 { ac_try='test -z "$ac_cxx_werror_flag"
3974 || test ! -s conftest.err'
3975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976 (eval $ac_try) 2>&5
3977 ac_status=$?
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; } &&
3980 { ac_try='test -s conftest.$ac_objext'
3981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982 (eval $ac_try) 2>&5
3983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; }; then
3986 ac_cv_prog_cxx_g=yes
3987else
3988 echo "$as_me: failed program was:" >&5
3989sed 's/^/| /' conftest.$ac_ext >&5
3990
3991ac_cv_prog_cxx_g=no
3992fi
3993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3994fi
3995echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3996echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3997if test "$ac_test_CXXFLAGS" = set; then
3998 CXXFLAGS=$ac_save_CXXFLAGS
3999elif test $ac_cv_prog_cxx_g = yes; then
4000 if test "$GXX" = yes; then
4001 CXXFLAGS="-g -O2"
4002 else
4003 CXXFLAGS="-g"
4004 fi
4005else
4006 if test "$GXX" = yes; then
4007 CXXFLAGS="-O2"
4008 else
4009 CXXFLAGS=
4010 fi
4011fi
4012for ac_declaration in \
4013 '' \
4014 'extern "C" void std::exit (int) throw (); using std::exit;' \
4015 'extern "C" void std::exit (int); using std::exit;' \
4016 'extern "C" void exit (int) throw ();' \
4017 'extern "C" void exit (int);' \
4018 'void exit (int);'
4019do
4020 cat >conftest.$ac_ext <<_ACEOF
4021/* confdefs.h. */
4022_ACEOF
4023cat confdefs.h >>conftest.$ac_ext
4024cat >>conftest.$ac_ext <<_ACEOF
4025/* end confdefs.h. */
4026$ac_declaration
4027#include <stdlib.h>
4028int
4029main ()
4030{
4031exit (42);
4032 ;
4033 return 0;
4034}
4035_ACEOF
4036rm -f conftest.$ac_objext
4037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>conftest.er1
4039 ac_status=$?
4040 grep -v '^ *+' conftest.er1 >conftest.err
4041 rm -f conftest.er1
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try='test -z "$ac_cxx_werror_flag"
4046 || test ! -s conftest.err'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 (eval $ac_try) 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try='test -s conftest.$ac_objext'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 (eval $ac_try) 2>&5
4055 ac_status=$?
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; }; then
4058 :
4059else
4060 echo "$as_me: failed program was:" >&5
4061sed 's/^/| /' conftest.$ac_ext >&5
4062
4063continue
4064fi
4065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4066 cat >conftest.$ac_ext <<_ACEOF
4067/* confdefs.h. */
4068_ACEOF
4069cat confdefs.h >>conftest.$ac_ext
4070cat >>conftest.$ac_ext <<_ACEOF
4071/* end confdefs.h. */
4072$ac_declaration
4073int
4074main ()
4075{
4076exit (42);
4077 ;
4078 return 0;
4079}
4080_ACEOF
4081rm -f conftest.$ac_objext
4082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4083 (eval $ac_compile) 2>conftest.er1
4084 ac_status=$?
4085 grep -v '^ *+' conftest.er1 >conftest.err
4086 rm -f conftest.er1
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } &&
4090 { ac_try='test -z "$ac_cxx_werror_flag"
4091 || test ! -s conftest.err'
4092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093 (eval $ac_try) 2>&5
4094 ac_status=$?
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; } &&
4097 { ac_try='test -s conftest.$ac_objext'
4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 (eval $ac_try) 2>&5
4100 ac_status=$?
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; }; then
4103 break
4104else
4105 echo "$as_me: failed program was:" >&5
4106sed 's/^/| /' conftest.$ac_ext >&5
4107
4108fi
4109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4110done
4111rm -f conftest*
4112if test -n "$ac_declaration"; then
4113 echo '#ifdef __cplusplus' >>confdefs.h
4114 echo $ac_declaration >>confdefs.h
4115 echo '#endif' >>confdefs.h
4116fi
4117
4118ac_ext=c
4119ac_cpp='$CPP $CPPFLAGS'
4120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122ac_compiler_gnu=$ac_cv_c_compiler_gnu
4123
4124
4125# We must set the default linker to the linker used by gcc for the correct
4126# operation of libtool. If LD is not defined and we are using gcc, try to
4127# set the LD default to the ld used by gcc.
4128if test -z "$LD"; then
4129 if test "$GCC" = yes; then
4130 case $build in
4131 *-*-mingw*)
4132 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4133 *)
4134 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4135 esac
4136 case $gcc_prog_ld in
4137 # Accept absolute paths.
4138 [\\/]* | [A-Za-z]:[\\/]*)
4139 LD="$gcc_prog_ld" ;;
4140 esac
4141 fi
512b7dfb
PB
4142fi
4143
4144
4145
4146
c6b750e1 4147if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4148 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4149set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4150echo "$as_me:$LINENO: checking for $ac_word" >&5
4151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4152if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4153 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4154else
512b7dfb
PB
4155 if test -n "$GNATBIND"; then
4156 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4157else
c6b750e1
DJ
4158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159for as_dir in $PATH
4160do
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4165 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 break 2
4168 fi
4169done
4170done
4171
9e07f89d
NN
4172fi
4173fi
512b7dfb
PB
4174GNATBIND=$ac_cv_prog_GNATBIND
4175if test -n "$GNATBIND"; then
4176 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4177echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4178else
c6b750e1
DJ
4179 echo "$as_me:$LINENO: result: no" >&5
4180echo "${ECHO_T}no" >&6
9e07f89d
NN
4181fi
4182
c6b750e1 4183fi
512b7dfb
PB
4184if test -z "$ac_cv_prog_GNATBIND"; then
4185 ac_ct_GNATBIND=$GNATBIND
4186 # Extract the first word of "gnatbind", so it can be a program name with args.
4187set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4188echo "$as_me:$LINENO: checking for $ac_word" >&5
4189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4190if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4191 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4192else
512b7dfb
PB
4193 if test -n "$ac_ct_GNATBIND"; then
4194 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4195else
c6b750e1
DJ
4196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197for as_dir in $PATH
4198do
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4203 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 break 2
4206 fi
4207done
4208done
4209
512b7dfb 4210 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4211fi
4212fi
512b7dfb
PB
4213ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4214if test -n "$ac_ct_GNATBIND"; then
4215 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4216echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4217else
c6b750e1
DJ
4218 echo "$as_me:$LINENO: result: no" >&5
4219echo "${ECHO_T}no" >&6
9e07f89d
NN
4220fi
4221
512b7dfb 4222 GNATBIND=$ac_ct_GNATBIND
24ff9987 4223else
512b7dfb 4224 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4225fi
4226
7df2cd5d 4227if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4228 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4229set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4230echo "$as_me:$LINENO: checking for $ac_word" >&5
4231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4232if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4234else
512b7dfb
PB
4235 if test -n "$GNATMAKE"; then
4236 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4237else
4238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH
4240do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4245 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 break 2
4248 fi
4249done
4250done
4251
4252fi
4253fi
512b7dfb
PB
4254GNATMAKE=$ac_cv_prog_GNATMAKE
4255if test -n "$GNATMAKE"; then
4256 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4257echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4258else
4259 echo "$as_me:$LINENO: result: no" >&5
4260echo "${ECHO_T}no" >&6
4261fi
4262
4263fi
512b7dfb
PB
4264if test -z "$ac_cv_prog_GNATMAKE"; then
4265 ac_ct_GNATMAKE=$GNATMAKE
4266 # Extract the first word of "gnatmake", so it can be a program name with args.
4267set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4268echo "$as_me:$LINENO: checking for $ac_word" >&5
4269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4270if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4272else
512b7dfb
PB
4273 if test -n "$ac_ct_GNATMAKE"; then
4274 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4275else
4276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277for as_dir in $PATH
4278do
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4283 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 break 2
4286 fi
4287done
4288done
4289
512b7dfb 4290 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4291fi
4292fi
512b7dfb
PB
4293ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4294if test -n "$ac_ct_GNATMAKE"; then
4295 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4296echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4297else
4298 echo "$as_me:$LINENO: result: no" >&5
4299echo "${ECHO_T}no" >&6
4300fi
4301
512b7dfb 4302 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4303else
512b7dfb 4304 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4305fi
4306
c6b750e1
DJ
4307echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4308echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4309if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4311else
4312 cat >conftest.adb <<EOF
4313procedure conftest is begin null; end conftest;
4314EOF
4315acx_cv_cc_gcc_supports_ada=no
4316# There is a bug in old released versions of GCC which causes the
4317# driver to exit successfully when the appropriate language module
4318# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4319# Therefore we must check for the error message as well as an
4320# unsuccessful exit.
b8908782
DD
4321# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4322# given a .adb file, but produce no object file. So we must check
4323# if an object file was really produced to guard against this.
9e07f89d 4324errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4325if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4326 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4327fi
4328rm -f conftest.*
4329fi
c6b750e1
DJ
4330echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4331echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4332
512b7dfb 4333if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4334 have_gnat=yes
4335else
4336 have_gnat=no
4337fi
4338
c6b750e1
DJ
4339echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4340echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4341if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4343else
4344 echo abfoo >t1
4345 echo cdfoo >t2
4346 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4347 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4348 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4349 :
4350 else
4351 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4352 fi
4353 fi
b8908782
DD
4354 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4355 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4356 :
b8908782
DD
4357 else
4358 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4359 fi
4360 fi
4361 rm t1 t2
4362
4363fi
c6b750e1
DJ
4364echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4365echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4366do_compare="$gcc_cv_prog_cmp_skip"
4367
4368
9e07f89d 4369
11b04d1f 4370# Check for GMP and MPFR
4b900473 4371gmplibs="-lmpfr -lgmp"
4b1cb4fe 4372gmpinc=
4b900473
PB
4373have_gmp=no
4374
11b04d1f
DD
4375# Specify a location for mpfr
4376# check for this first so it ends up on the link line before gmp.
c6b750e1 4377
11b04d1f
DD
4378# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4379if test "${with_mpfr_dir+set}" = set; then
4380 withval="$with_mpfr_dir"
c6b750e1
DJ
4381 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4382Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4383echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4384Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4385 { (exit 1); exit 1; }; }
4386fi;
11b04d1f
DD
4387
4388
11b04d1f
DD
4389# Check whether --with-mpfr or --without-mpfr was given.
4390if test "${with_mpfr+set}" = set; then
4391 withval="$with_mpfr"
c6b750e1
DJ
4392
4393fi;
11b04d1f 4394
8a0d8a5c
PB
4395# Check whether --with-mpfr_include or --without-mpfr_include was given.
4396if test "${with_mpfr_include+set}" = set; then
4397 withval="$with_mpfr_include"
c6b750e1
DJ
4398
4399fi;
8a0d8a5c
PB
4400
4401# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4402if test "${with_mpfr_lib+set}" = set; then
4403 withval="$with_mpfr_lib"
8a0d8a5c 4404
c6b750e1 4405fi;
11b04d1f
DD
4406
4407if test "x$with_mpfr" != x; then
4408 gmplibs="-L$with_mpfr/lib $gmplibs"
4409 gmpinc="-I$with_mpfr/include"
4410fi
8a0d8a5c
PB
4411if test "x$with_mpfr_include" != x; then
4412 gmpinc="-I$with_mpfr_include"
4413fi
4414if test "x$with_mpfr_lib" != x; then
4415 gmplibs="-L$with_mpfr_lib $gmplibs"
4416fi
4b900473
PB
4417if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4418 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4419 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4420 # Do not test the mpfr version. Assume that it is sufficient, since
4421 # it is in the source tree, and the library has not been built yet
4422 # but it would be included on the link line in the version check below
4423 # hence making the test fail.
4424 have_gmp=yes
4425fi
11b04d1f 4426
4b1cb4fe 4427# Specify a location for gmp
c6b750e1 4428
4b1cb4fe
DD
4429# Check whether --with-gmp-dir or --without-gmp-dir was given.
4430if test "${with_gmp_dir+set}" = set; then
4431 withval="$with_gmp_dir"
c6b750e1
DJ
4432 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4433Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4434echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4435Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4436 { (exit 1); exit 1; }; }
4437fi;
4b1cb4fe
DD
4438
4439
4b1cb4fe
DD
4440# Check whether --with-gmp or --without-gmp was given.
4441if test "${with_gmp+set}" = set; then
4442 withval="$with_gmp"
c6b750e1
DJ
4443
4444fi;
4b1cb4fe 4445
8a0d8a5c
PB
4446# Check whether --with-gmp_include or --without-gmp_include was given.
4447if test "${with_gmp_include+set}" = set; then
4448 withval="$with_gmp_include"
c6b750e1
DJ
4449
4450fi;
8a0d8a5c
PB
4451
4452# Check whether --with-gmp_lib or --without-gmp_lib was given.
4453if test "${with_gmp_lib+set}" = set; then
4454 withval="$with_gmp_lib"
8a0d8a5c 4455
c6b750e1 4456fi;
8a0d8a5c 4457
4b1cb4fe 4458
11b04d1f
DD
4459if test "x$with_gmp" != x; then
4460 gmplibs="-L$with_gmp/lib $gmplibs"
4461 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4462fi
8a0d8a5c
PB
4463if test "x$with_gmp_include" != x; then
4464 gmpinc="-I$with_gmp_include $gmpinc"
4465fi
4466if test "x$with_gmp_lib" != x; then
4467 gmplibs="-L$with_gmp_lib $gmplibs"
4468fi
4b900473
PB
4469if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4470 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4471 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4472 # Do not test the gmp version. Assume that it is sufficient, since
4473 # it is in the source tree, and the library has not been built yet
4474 # but it would be included on the link line in the version check below
4475 # hence making the test fail.
4476 have_gmp=yes
4477fi
4b1cb4fe 4478
ceb92e78 4479if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4480 have_gmp=yes
4481 saved_CFLAGS="$CFLAGS"
4482 CFLAGS="$CFLAGS $gmpinc"
4483 # Check GMP actually works
c6b750e1
DJ
4484 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4485echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4486
4487cat >conftest.$ac_ext <<_ACEOF
4488/* confdefs.h. */
4489_ACEOF
4490cat confdefs.h >>conftest.$ac_ext
4491cat >>conftest.$ac_ext <<_ACEOF
4492/* end confdefs.h. */
4b1cb4fe 4493#include "gmp.h"
c6b750e1
DJ
4494int
4495main ()
4496{
4b1cb4fe 4497
4b900473
PB
4498 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4499 choke me
4500 #endif
c6b750e1
DJ
4501
4502 ;
4503 return 0;
4504}
4505_ACEOF
4506rm -f conftest.$ac_objext
4507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4508 (eval $ac_compile) 2>conftest.er1
4509 ac_status=$?
4510 grep -v '^ *+' conftest.er1 >conftest.err
4511 rm -f conftest.er1
4512 cat conftest.err >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try='test -z "$ac_c_werror_flag"
4516 || test ! -s conftest.err'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 (eval $ac_try) 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; } &&
4522 { ac_try='test -s conftest.$ac_objext'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 (eval $ac_try) 2>&5
4525 ac_status=$?
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 echo "$as_me:$LINENO: result: yes" >&5
4529echo "${ECHO_T}yes" >&6
4530else
4531 echo "$as_me: failed program was:" >&5
4532sed 's/^/| /' conftest.$ac_ext >&5
4533
4534echo "$as_me:$LINENO: result: no" >&5
4535echo "${ECHO_T}no" >&6; have_gmp=no
4536fi
4537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4538
4b900473
PB
4539 if test x"$have_gmp" = xyes; then
4540 saved_LIBS="$LIBS"
4541 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4542 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4543echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4544 cat >conftest.$ac_ext <<_ACEOF
4545/* confdefs.h. */
4546_ACEOF
4547cat confdefs.h >>conftest.$ac_ext
4548cat >>conftest.$ac_ext <<_ACEOF
4549/* end confdefs.h. */
9b134994 4550#include <gmp.h>
4b900473 4551 #include <mpfr.h>
c6b750e1
DJ
4552int
4553main ()
4554{
9b134994 4555
57c53b2b 4556 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4b900473
PB
4557 choke me
4558 #endif
a3ca38d2
DD
4559 mpfr_t n;
4560 mpfr_t x;
4b900473 4561 int t;
a3ca38d2
DD
4562 mpfr_init (n);
4563 mpfr_init (x);
4b900473
PB
4564 mpfr_atan2 (n, n, x, GMP_RNDN);
4565 mpfr_erfc (n, x, GMP_RNDN);
4566 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4567
4568 ;
4569 return 0;
4570}
4571_ACEOF
4572rm -f conftest.$ac_objext conftest$ac_exeext
4573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4574 (eval $ac_link) 2>conftest.er1
4575 ac_status=$?
4576 grep -v '^ *+' conftest.er1 >conftest.err
4577 rm -f conftest.er1
4578 cat conftest.err >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); } &&
4581 { ac_try='test -z "$ac_c_werror_flag"
4582 || test ! -s conftest.err'
4583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584 (eval $ac_try) 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; } &&
4588 { ac_try='test -s conftest$ac_exeext'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 (eval $ac_try) 2>&5
4591 ac_status=$?
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; }; then
4594 cat >conftest.$ac_ext <<_ACEOF
4595/* confdefs.h. */
4596_ACEOF
4597cat confdefs.h >>conftest.$ac_ext
4598cat >>conftest.$ac_ext <<_ACEOF
4599/* end confdefs.h. */
4b1cb4fe 4600#include <gmp.h>
4b900473 4601 #include <mpfr.h>
c6b750e1
DJ
4602int
4603main ()
4604{
9dbaa842 4605
57c53b2b 4606 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
4b900473
PB
4607 choke me
4608 #endif
4609 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4610
4611 ;
4612 return 0;
4613}
4614_ACEOF
4615rm -f conftest.$ac_objext conftest$ac_exeext
4616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4617 (eval $ac_link) 2>conftest.er1
4618 ac_status=$?
4619 grep -v '^ *+' conftest.er1 >conftest.err
4620 rm -f conftest.er1
4621 cat conftest.err >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } &&
4624 { ac_try='test -z "$ac_c_werror_flag"
4625 || test ! -s conftest.err'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 (eval $ac_try) 2>&5
4628 ac_status=$?
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; } &&
4631 { ac_try='test -s conftest$ac_exeext'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 (eval $ac_try) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; }; then
4637 echo "$as_me:$LINENO: result: yes" >&5
4638echo "${ECHO_T}yes" >&6
4639else
4640 echo "$as_me: failed program was:" >&5
4641sed 's/^/| /' conftest.$ac_ext >&5
4642
4643echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4644echo "${ECHO_T}buggy but acceptable" >&6
4645fi
4646rm -f conftest.err conftest.$ac_objext \
4647 conftest$ac_exeext conftest.$ac_ext
4648else
4649 echo "$as_me: failed program was:" >&5
4650sed 's/^/| /' conftest.$ac_ext >&5
4651
4652echo "$as_me:$LINENO: result: no" >&5
4653echo "${ECHO_T}no" >&6; have_gmp=no
4654fi
4655rm -f conftest.err conftest.$ac_objext \
4656 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4657 LIBS="$saved_LIBS"
4658 fi
4659 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4660
4b900473 4661 if test x$have_gmp != xyes; then
57c53b2b 4662 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
c6b750e1
DJ
4663Try the --with-gmp and/or --with-mpfr options to specify their locations.
4664Copies of these libraries' source code can be found at their respective
4665hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4666See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4667If you obtained GMP and/or MPFR from a vendor distribution package, make
4668sure that you have installed both the libraries and the header files.
4669They may be located in separate packages." >&5
57c53b2b 4670echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
9dbaa842
DD
4671Try the --with-gmp and/or --with-mpfr options to specify their locations.
4672Copies of these libraries' source code can be found at their respective
4673hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4674See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4675If you obtained GMP and/or MPFR from a vendor distribution package, make
4676sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4677They may be located in separate packages." >&2;}
4678 { (exit 1); exit 1; }; }
4b900473 4679 fi
9dbaa842
DD
4680fi
4681
11b04d1f 4682# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4683
4684
4685
947f426e 4686# By default, C is the only stage 1 language.
9b134994 4687stage1_languages=,c,
1d39f329 4688
9e07f89d
NN
4689# Figure out what language subdirectories are present.
4690# Look if the user specified --enable-languages="..."; if not, use
4691# the environment variable $LANGUAGES if defined. $LANGUAGES might
4692# go away some day.
4693# NB: embedded tabs in this IF block -- do not untabify
4694if test -d ${srcdir}/gcc; then
4695 if test x"${enable_languages+set}" != xset; then
4696 if test x"${LANGUAGES+set}" = xset; then
4697 enable_languages="${LANGUAGES}"
4698 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4699 else
4700 enable_languages=all
4701 fi
4702 else
4703 if test x"${enable_languages}" = x ||
4704 test x"${enable_languages}" = xyes;
4705 then
4706 echo configure.in: --enable-languages needs at least one language argument 1>&2
4707 exit 1
4708 fi
4709 fi
4710 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4711
096f7d00
DE
4712 # 'f95' is the old name for the 'fortran' language. We issue a warning
4713 # and make the substitution.
4714 case ,${enable_languages}, in
4715 *,f95,*)
4716 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4717 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4718 ;;
4719 esac
4720
9e07f89d
NN
4721 # First scan to see if an enabled language requires some other language.
4722 # We assume that a given config-lang.in will list all the language
4723 # front ends it requires, even if some are required indirectly.
4724 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4725 case ${lang_frag} in
4726 ..) ;;
4727 # The odd quoting in the next line works around
4728 # an apparent bug in bash 1.12 on linux.
4729 ${srcdir}/gcc/[*]/config-lang.in) ;;
4730 *)
4731 # From the config-lang.in, get $language, $lang_requires
4732 language=
4733 lang_requires=
4734 . ${lang_frag}
4735 for other in ${lang_requires} ; do
4736 case ,${enable_languages}, in
4737 *,$other,*) ;;
4738 *,all,*) ;;
4739 *,$language,*)
4740 echo " \`$other' language required by \`$language'; enabling" 1>&2
4741 enable_languages="${enable_languages},${other}"
4742 ;;
4743 esac
4744 done
4745 ;;
4746 esac
4747 done
4748
9b134994 4749 new_enable_languages=,c,
9e07f89d 4750 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4751 potential_languages=,c,
9e07f89d
NN
4752
4753 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4754 case ${lang_frag} in
4755 ..) ;;
4756 # The odd quoting in the next line works around
4757 # an apparent bug in bash 1.12 on linux.
4758 ${srcdir}/gcc/[*]/config-lang.in) ;;
4759 *)
c6b750e1 4760 # From the config-lang.in, get $language, $target_libs,
1d39f329 4761 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4762 language=
4763 target_libs=
4764 lang_dirs=
64ce424c 4765 subdir_requires=
9b134994
PB
4766 boot_language=no
4767 build_by_default=yes
9e07f89d 4768 . ${lang_frag}
9b134994
PB
4769 if test x${language} = x; then
4770 echo "${lang_frag} doesn't set \$language." 1>&2
4771 exit 1
4772 fi
4773
4774 case ,${enable_languages}, in
4775 *,${language},*)
9e07f89d
NN
4776 # Language was explicitly selected; include it.
4777 add_this_lang=yes
4778 ;;
9b134994
PB
4779 *,all,*)
4780 # 'all' was selected, select it if it is a default language
4781 add_this_lang=${build_by_default}
9e07f89d
NN
4782 ;;
4783 *)
4784 add_this_lang=no
4785 ;;
4786 esac
4b1cb4fe 4787
64ce424c 4788 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4789 for i in $subdir_requires; do
3d3adb43 4790 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4791 case ,${enable_languages}, in
4792 *,${language},*)
4793 # Specifically requested language; tell them.
c6b750e1
DJ
4794 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4795echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4796 { (exit 1); exit 1; }; }
64ce424c
PB
4797 ;;
4798 *)
4799 # Silently disable.
9b134994 4800 add_this_lang=unsupported
64ce424c
PB
4801 ;;
4802 esac
4803 done
4804
9b134994
PB
4805 # Disable Ada if no preexisting GNAT is available.
4806 case ,${enable_languages},:${language}:${have_gnat} in
4807 *,${language},*:ada:no)
4808 # Specifically requested language; tell them.
c6b750e1
DJ
4809 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4810echo "$as_me: error: GNAT is required to build $language" >&2;}
4811 { (exit 1); exit 1; }; }
9b134994
PB
4812 ;;
4813 *:ada:no)
4814 # Silently disable.
4815 add_this_lang=unsupported
4816 ;;
4817 esac
4818
59f7ec45
HPN
4819 # Disable a language that is unsupported by the target.
4820 case " $unsupported_languages " in
4821 *" $language "*)
9b134994 4822 add_this_lang=unsupported
59f7ec45
HPN
4823 ;;
4824 esac
4825
4b1cb4fe 4826 case $add_this_lang in
9b134994 4827 unsupported)
9e07f89d 4828 # Remove language-dependent dirs.
1d39f329
NN
4829 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4830 ;;
9b134994
PB
4831 no)
4832 # Remove language-dependent dirs; still show language as supported.
4833 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4834 potential_languages="${potential_languages}${language},"
4835 ;;
4836 yes)
4837 new_enable_languages="${new_enable_languages}${language},"
4838 potential_languages="${potential_languages}${language},"
1d39f329
NN
4839 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4840 case ${boot_language} in
4841 yes)
4fa63067 4842 # Add to (comma-separated) list of stage 1 languages.
9b134994 4843 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4844 ;;
4845 esac
4846 ;;
9e07f89d
NN
4847 esac
4848 ;;
4849 esac
4850 done
4851
9b134994
PB
4852 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4853if test "${enable_stage1_languages+set}" = set; then
4854 enableval="$enable_stage1_languages"
4855 case ,${enable_stage1_languages}, in
4856 ,no,|,,)
4857 # Set it to something that will have no effect in the loop below
4858 enable_stage1_languages=c ;;
4859 ,yes,)
4860 enable_stage1_languages=`echo $new_enable_languages | \
4861 sed -e "s/^,//" -e "s/,$//" ` ;;
4862 *,all,*)
4863 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4864 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4865 esac
4866
4867 # Add "good" languages from enable_stage1_languages to stage1_languages,
4868 # while "bad" languages go in missing_languages. Leave no duplicates.
4869 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4870 case $potential_languages in
4871 *,$i,*)
4872 case $stage1_languages in
4873 *,$i,*) ;;
4874 *) stage1_languages="$stage1_languages$i," ;;
4875 esac ;;
4876 *)
4877 case $missing_languages in
4878 *,$i,*) ;;
4879 *) missing_languages="$missing_languages$i," ;;
4880 esac ;;
4881 esac
4882 done
c6b750e1 4883fi;
9b134994
PB
4884
4885 # Remove leading/trailing commas that were added for simplicity
4886 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4887 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4888 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4889 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4890
9e07f89d 4891 if test "x$missing_languages" != x; then
c6b750e1 4892 { { echo "$as_me:$LINENO: error:
27258dd4 4893The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4894Supported languages are: ${potential_languages}" >&5
4895echo "$as_me: error:
4896The following requested languages could not be built: ${missing_languages}
4897Supported languages are: ${potential_languages}" >&2;}
4898 { (exit 1); exit 1; }; }
9e07f89d 4899 fi
9e07f89d
NN
4900 if test "x$new_enable_languages" != "x$enable_languages"; then
4901 echo The following languages will be built: ${new_enable_languages}
9b134994 4902 enable_languages="$new_enable_languages"
9e07f89d 4903 fi
9b134994 4904
c6b750e1 4905
81ec575a 4906 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
4907fi
4908
a6df5a19
PB
4909# Handle --disable-<component> generically.
4910for dir in $configdirs $build_configdirs $target_configdirs ; do
4911 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
4912 varname=`echo $dirname | sed -e s/+/_/g`
4913 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
4914 noconfigdirs="$noconfigdirs $dir"
4915 fi
4916done
4917
4f0ef2d8
CD
4918# Check for Boehm's garbage collector
4919# Check whether --enable-objc-gc or --disable-objc-gc was given.
4920if test "${enable_objc_gc+set}" = set; then
4921 enableval="$enable_objc_gc"
4922 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4923 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
4924 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4925echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4926 { (exit 1); exit 1; }; }
4f0ef2d8
CD
4927 ;;
4928esac
c6b750e1 4929fi;
4f0ef2d8
CD
4930
4931# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
4932case ,${enable_languages},:${enable_objc_gc} in
4933 *,objc,*:yes)
4f0ef2d8
CD
4934 # Keep target-boehm-gc if requested for Objective-C.
4935 ;;
4f0ef2d8 4936 *)
d42c4017
DA
4937 # Otherwise remove target-boehm-gc depending on target-libjava.
4938 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4939 noconfigdirs="$noconfigdirs target-boehm-gc"
4940 fi
4f0ef2d8
CD
4941 ;;
4942esac
4943
caeba88f
AL
4944# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4945# $build_configdirs and $target_configdirs.
9e07f89d
NN
4946# If we have the source for $noconfigdirs entries, add them to $notsupp.
4947
4948notsupp=""
4949for dir in . $skipdirs $noconfigdirs ; do
caeba88f 4950 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
4951 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4952 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4953 if test -r $srcdir/$dirname/configure ; then
4954 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4955 true
4956 else
4957 notsupp="$notsupp $dir"
4958 fi
4959 fi
4960 fi
caeba88f
AL
4961 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4962 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4963 if test -r $srcdir/$dirname/configure ; then
4964 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4965 true
4966 else
4967 notsupp="$notsupp $dir"
4968 fi
4969 fi
4970 fi
9e07f89d
NN
4971 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4972 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4973 if test -r $srcdir/$dirname/configure ; then
4974 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4975 true
4976 else
4977 notsupp="$notsupp $dir"
4978 fi
4979 fi
4980 fi
4981done
4982
4983# Sometimes the tools are distributed with libiberty but with no other
4984# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 4985# Don't let libgcc imply libiberty either.
9e07f89d 4986if test -n "${target_configdirs}" ; then
f86e35b8 4987 libgcc=
9e07f89d
NN
4988 others=
4989 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
4990 if test "$i" = "libgcc"; then
4991 libgcc=target-libgcc
4992 elif test "$i" != "libiberty" ; then
9e07f89d
NN
4993 if test -r $srcdir/$i/configure ; then
4994 others=yes;
4995 break;
4996 fi
4997 fi
4998 done
4999 if test -z "${others}" ; then
f86e35b8 5000 target_configdirs=$libgcc
9e07f89d
NN
5001 fi
5002fi
5003
5004# Quietly strip out all directories which aren't configurable in this tree.
5005# This relies on all configurable subdirectories being autoconfiscated, which
5006# is now the case.
6a9cf61e
PB
5007build_configdirs_all="$build_configdirs"
5008build_configdirs=
5009for i in ${build_configdirs_all} ; do
c6b750e1 5010 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5011 if test -f ${srcdir}/$j/configure ; then
5012 build_configdirs="${build_configdirs} $i"
5013 fi
5014done
5015
9e07f89d
NN
5016configdirs_all="$configdirs"
5017configdirs=
5018for i in ${configdirs_all} ; do
5019 if test -f ${srcdir}/$i/configure ; then
5020 configdirs="${configdirs} $i"
5021 fi
5022done
6a9cf61e 5023
9e07f89d
NN
5024target_configdirs_all="$target_configdirs"
5025target_configdirs=
5026for i in ${target_configdirs_all} ; do
c6b750e1 5027 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5028 if test -f ${srcdir}/$j/configure ; then
5029 target_configdirs="${target_configdirs} $i"
5030 fi
5031done
5032
5033# Produce a warning message for the subdirs we can't configure.
5034# This isn't especially interesting in the Cygnus tree, but in the individual
5035# FSF releases, it's important to let people know when their machine isn't
5036# supported by the one or two programs in a package.
5037
5038if test -n "${notsupp}" && test -z "${norecursion}" ; then
5039 # If $appdirs is non-empty, at least one of those directories must still
5040 # be configured, or we error out. (E.g., if the gas release supports a
5041 # specified target in some subdirs but not the gas subdir, we shouldn't
5042 # pretend that all is well.)
5043 if test -n "$appdirs" ; then
5044 for dir in $appdirs ; do
5045 if test -r $dir/Makefile.in ; then
5046 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5047 appdirs=""
5048 break
5049 fi
6a9cf61e 5050 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5051 appdirs=""
5052 break
5053 fi
5054 fi
5055 done
5056 if test -n "$appdirs" ; then
5057 echo "*** This configuration is not supported by this package." 1>&2
5058 exit 1
5059 fi
5060 fi
5061 # Okay, some application will build, or we don't care to check. Still
5062 # notify of subdirs not getting built.
5063 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5064 echo " ${notsupp}" 1>&2
5065 echo " (Any other directories should still work fine.)" 1>&2
5066fi
5067
5068case "$host" in
5069 *msdosdjgpp*)
5070 enable_gdbtk=no ;;
5071esac
5072
18f6b6ee
PB
5073# To find our prefix, in gcc_cv_tool_prefix.
5074
5075# The user is always right.
5076if test "${PATH_SEPARATOR+set}" != set; then
5077 echo "#! /bin/sh" >conf$$.sh
5078 echo "exit 0" >>conf$$.sh
5079 chmod +x conf$$.sh
5080 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5081 PATH_SEPARATOR=';'
5082 else
5083 PATH_SEPARATOR=:
5084 fi
5085 rm -f conf$$.sh
5086fi
5087
5088
5089
5090if test "x$exec_prefix" = xNONE; then
5091 if test "x$prefix" = xNONE; then
5092 gcc_cv_tool_prefix=$ac_default_prefix
5093 else
5094 gcc_cv_tool_prefix=$prefix
5095 fi
5096else
5097 gcc_cv_tool_prefix=$exec_prefix
5098fi
5099
5100# If there is no compiler in the tree, use the PATH only. In any
5101# case, if there is no compiler in the tree nobody should use
5102# AS_FOR_TARGET and LD_FOR_TARGET.
5103if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5104 gcc_version=`cat $srcdir/gcc/BASE-VER`
5105 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5106 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5107 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5108 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5109 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5110 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5111else
5112 gcc_cv_tool_dirs=
5113fi
5114
5115if test x$build = x$target && test -n "$md_exec_prefix"; then
5116 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5117fi
5118
5119
5120
9e07f89d
NN
5121copy_dirs=
5122
c6b750e1 5123
a19b6204
MM
5124# Check whether --with-build-sysroot or --without-build-sysroot was given.
5125if test "${with_build_sysroot+set}" = set; then
5126 withval="$with_build_sysroot"
5127 if test x"$withval" != x ; then
5128 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5129 fi
5130else
5131 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5132fi;
a19b6204
MM
5133
5134
8a6ee3ab
JM
5135
5136# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5137if test "${with_debug_prefix_map+set}" = set; then
5138 withval="$with_debug_prefix_map"
5139 if test x"$withval" != x; then
5140 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5141 for debug_map in $withval; do
5142 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5143 done
5144 fi
5145else
5146 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5147fi;
5148
5149
7f6ef0c0
PB
5150# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5151# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5152# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5153# We want to ensure that TARGET libraries (which we know are built with
5154# gcc) are built with "-O2 -g", so include those options when setting
5155# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5156if test "x$CFLAGS_FOR_TARGET" = x; then
5157 CFLAGS_FOR_TARGET=$CFLAGS
5158 case " $CFLAGS " in
5159 *" -O2 "*) ;;
5160 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5161 esac
5162 case " $CFLAGS " in
5163 *" -g "* | *" -g3 "*) ;;
5164 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5165 esac
5166fi
5167
5168
5169if test "x$CXXFLAGS_FOR_TARGET" = x; then
5170 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5171 case " $CXXFLAGS " in
5172 *" -O2 "*) ;;
5173 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5174 esac
5175 case " $CXXFLAGS " in
5176 *" -g "* | *" -g3 "*) ;;
5177 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5178 esac
5179fi
5180
5181
9e07f89d
NN
5182# Handle --with-headers=XXX. If the value is not "yes", the contents of
5183# the named directory are copied to $(tooldir)/sys-include.
5184if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5185 if test x${is_cross_compiler} = xno ; then
5186 echo 1>&2 '***' --with-headers is only supported when cross compiling
5187 exit 1
5188 fi
5189 if test x"${with_headers}" != xyes ; then
18f6b6ee 5190 x=${gcc_cv_tool_prefix}
c6b750e1 5191 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5192 fi
5193fi
5194
5195# Handle --with-libs=XXX. If the value is not "yes", the contents of
5196# the name directories are copied to $(tooldir)/lib. Multiple directories
5197# are permitted.
5198if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5199 if test x${is_cross_compiler} = xno ; then
5200 echo 1>&2 '***' --with-libs is only supported when cross compiling
5201 exit 1
5202 fi
5203 if test x"${with_libs}" != xyes ; then
5204 # Copy the libraries in reverse order, so that files in the first named
5205 # library override files in subsequent libraries.
18f6b6ee 5206 x=${gcc_cv_tool_prefix}
9e07f89d 5207 for l in ${with_libs}; do
c6b750e1 5208 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5209 done
5210 fi
5211fi
5212
2429c060
PB
5213# Set with_gnu_as and with_gnu_ld as appropriate.
5214#
5215# This is done by determining whether or not the appropriate directory
5216# is available, and by checking whether or not specific configurations
5217# have requested that this magic not happen.
c6b750e1
DJ
5218#
5219# The command line options always override the explicit settings in
2429c060
PB
5220# configure.in, and the settings in configure.in override this magic.
5221#
c6b750e1 5222# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5223# want to do that, then you should use the --without-gnu-as and
5224# --without-gnu-ld options for the configure script.
5225
5226if test x${use_gnu_as} = x &&
5227 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5228 with_gnu_as=yes
5229 extra_host_args="$extra_host_args --with-gnu-as"
5230fi
5231
5232if test x${use_gnu_ld} = x &&
5233 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5234 with_gnu_ld=yes
5235 extra_host_args="$extra_host_args --with-gnu-ld"
5236fi
5237
5238# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5239# can detect this case.
5240
5241if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5242 with_newlib=yes
5243 extra_host_args="$extra_host_args --with-newlib"
5244fi
5245
9e07f89d
NN
5246# Handle ${copy_dirs}
5247set fnord ${copy_dirs}
5248shift
5249while test $# != 0 ; do
5250 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5251 :
5252 else
5253 echo Copying $1 to $2
5254
5255 # Use the install script to create the directory and all required
5256 # parent directories.
5257 if test -d $2 ; then
5258 :
5259 else
5260 echo >config.temp
5261 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5262 fi
5263
5264 # Copy the directory, assuming we have tar.
5265 # FIXME: Should we use B in the second tar? Not all systems support it.
5266 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5267
5268 # It is the responsibility of the user to correctly adjust all
5269 # symlinks. If somebody can figure out how to handle them correctly
5270 # here, feel free to add the code.
5271
5272 echo $1 > $2/COPIED
5273 fi
5274 shift; shift
5275done
5276
2429c060
PB
5277# Determine a target-dependent exec_prefix that the installed
5278# gcc will search in. Keep this list sorted by triplet, with
5279# the *-*-osname triplets last.
5280md_exec_prefix=
5281case "${target}" in
5282 alpha*-*-*vms*)
5283 md_exec_prefix=/gnu/lib/gcc-lib
5284 ;;
521ec477 5285 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5286 md_exec_prefix=/dev/env/DJDIR/bin
5287 ;;
521ec477 5288 i[34567]86-*-sco3.2v5*)
2429c060
PB
5289 if test $with_gnu_as = yes; then
5290 md_exec_prefix=/usr/gnu/bin
5291 else
5292 md_exec_prefix=/usr/ccs/bin/elf
5293 fi
5294 ;;
5295
5296 mn10300-*-* | \
5297 powerpc-*-chorusos* | \
5298 powerpc*-*-eabi* | \
5299 powerpc*-*-sysv* | \
5300 powerpc*-*-kaos* | \
5301 s390x-ibm-tpf*)
5302 md_exec_prefix=/usr/ccs/bin
5303 ;;
5304 sparc64-*-elf*)
5305 ;;
5306 v850*-*-*)
5307 md_exec_prefix=/usr/ccs/bin
5308 ;;
8b66833e 5309 xtensa*-*-elf*)
2429c060
PB
5310 ;;
5311
5312 *-*-beos* | \
5313 *-*-elf* | \
5314 *-*-hpux* | \
5315 *-*-netware* | \
5316 *-*-nto-qnx* | \
5317 *-*-rtems* | \
5318 *-*-solaris2* | \
521ec477 5319 *-*-sysv[45]* | \
2429c060
PB
5320 *-*-vxworks* | \
5321 *-wrs-windiss)
5322 md_exec_prefix=/usr/ccs/bin
5323 ;;
5324esac
5325
a0da8069
NN
5326extra_arflags_for_target=
5327extra_nmflags_for_target=
5328extra_ranlibflags_for_target=
5329target_makefile_frag=/dev/null
5330case "${target}" in
4e206d7e
DB
5331 mep*-*-*)
5332 target_makefile_frag="config/mt-mep"
5333 ;;
77d7106f
AM
5334 spu-*-*)
5335 target_makefile_frag="config/mt-spu"
5336 ;;
429acdec
RS
5337 mips*-sde-elf*)
5338 target_makefile_frag="config/mt-sde"
5339 ;;
f3b1e08e
RS
5340 mipsisa*-*-elfoabi*)
5341 target_makefile_frag="config/mt-mips-elfoabi"
5342 ;;
2a3124ca 5343 *-*-netware*)
a0da8069
NN
5344 target_makefile_frag="config/mt-netware"
5345 ;;
3d6dfe0f
NN
5346 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5347 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5348 ;;
5349 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5350 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5351 # commands to handle both 32-bit and 64-bit objects. These flags are
5352 # harmless if we're using GNU nm or ar.
5353 extra_arflags_for_target=" -X32_64"
5354 extra_nmflags_for_target=" -B -X32_64"
5355 ;;
5356 *-*-darwin*)
5357 # ranlib from Darwin requires the -c flag to look at common symbols.
5358 extra_ranlibflags_for_target=" -c"
5359 ;;
5360 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5361 target_makefile_frag="config/mt-wince"
5362 ;;
5363esac
5364
5365alphaieee_frag=/dev/null
5366case $target in
5367 alpha*-*-*)
5368 # This just makes sure to use the -mieee option to build target libs.
5369 # This should probably be set individually by each library.
5370 alphaieee_frag="config/mt-alphaieee"
5371 ;;
5372esac
5373
5374# If --enable-target-optspace always use -Os instead of -O2 to build
5375# the target libraries, similarly if it is not specified, use -Os
5376# on selected platforms.
5377ospace_frag=/dev/null
5378case "${enable_target_optspace}:${target}" in
5379 yes:*)
5380 ospace_frag="config/mt-ospace"
5381 ;;
5382 :d30v-*)
5383 ospace_frag="config/mt-d30v"
5384 ;;
5385 :m32r-* | :d10v-* | :fr30-*)
5386 ospace_frag="config/mt-ospace"
5387 ;;
5388 no:* | :*)
5389 ;;
5390 *)
5391 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5392 ;;
5393esac
5394
a0da8069
NN
5395# Default to using --with-stabs for certain targets.
5396if test x${with_stabs} = x ; then
5397 case "${target}" in
e31d1ea3 5398 mips*-*-irix[56]*)
a0da8069
NN
5399 ;;
5400 mips*-*-* | alpha*-*-osf*)
5401 with_stabs=yes;
5402 extra_host_args="${extra_host_args} --with-stabs"
5403 ;;
5404 esac
5405fi
5406
5407# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5408# them automatically.
5409case "${host}" in
c6b750e1 5410 hppa*64*-*-hpux11*)
a0da8069
NN
5411 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5412 ;;
5413esac
5414
a0da8069
NN
5415# Some systems (e.g., one of the i386-aix systems the gas testers are
5416# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5417tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5418build_tooldir=${tooldir}
5419
a0da8069
NN
5420# Create a .gdbinit file which runs the one in srcdir
5421# and tells GDB to look there for source files.
5422
5423if test -r ${srcdir}/.gdbinit ; then
5424 case ${srcdir} in
5425 .) ;;
5426 *) cat > ./.gdbinit <<EOF
5427# ${NO_EDIT}
5428dir ${srcdir}
5429dir .
5430source ${srcdir}/.gdbinit
5431EOF
5432 ;;
5433 esac
5434fi
5435
a0da8069
NN
5436# Make sure that the compiler is able to generate an executable. If it
5437# can't, we are probably in trouble. We don't care whether we can run the
5438# executable--we might be using a cross compiler--we only care whether it
5439# can be created. At this point the main configure script has set CC.
5440we_are_ok=no
5441echo "int main () { return 0; }" > conftest.c
5442${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5443if test $? = 0 ; then
5444 if test -s conftest || test -s conftest.exe ; then
5445 we_are_ok=yes
5446 fi
c6b750e1 5447fi
a0da8069
NN
5448case $we_are_ok in
5449 no)
5450 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5451 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5452 rm -f conftest*
5453 exit 1
5454 ;;
5455esac
5456rm -f conftest*
5457
5458# The Solaris /usr/ucb/cc compiler does not appear to work.
5459case "${host}" in
5460 sparc-sun-solaris2*)
5461 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5462 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5463 could_use=
5464 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5465 if test -d /opt/cygnus/bin ; then
5466 if test "$could_use" = "" ; then
5467 could_use="/opt/cygnus/bin"
5468 else
5469 could_use="$could_use or /opt/cygnus/bin"
5470 fi
5471 fi
5472 if test "$could_use" = "" ; then
5473 echo "Warning: compilation may fail because you're using"
5474 echo "/usr/ucb/cc. You should change your PATH or CC "
5475 echo "variable and rerun configure."
5476 else
5477 echo "Warning: compilation may fail because you're using"
5478 echo "/usr/ucb/cc, when you should use the C compiler from"
5479 echo "$could_use. You should change your"
5480 echo "PATH or CC variable and rerun configure."
5481 fi
5482 fi
5483 ;;
5484esac
5485
a0da8069
NN
5486case "${host}" in
5487 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5488 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5489 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5490esac
5491
5492# Record target_configdirs and the configure arguments for target and
5493# build configuration in Makefile.
5494target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5495build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5496
a0da8069
NN
5497# Determine whether gdb needs tk/tcl or not.
5498# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5499# and in that case we want gdb to be built without tk. Ugh!
5500# In fact I believe gdb is the *only* package directly dependent on tk,
5501# so we should be able to put the 'maybe's in unconditionally and
5502# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5503# 100% sure that that's safe though.
c180f501 5504
675c6968 5505gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5506case "$enable_gdbtk" in
5507 no)
5508 GDB_TK="" ;;
c180f501
AC
5509 yes)
5510 GDB_TK="${gdb_tk}" ;;
a0da8069 5511 *)
c180f501
AC
5512 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5513 # distro. Eventually someone will fix this and move Insight, nee
5514 # gdbtk to a separate directory.
5515 if test -d ${srcdir}/gdb/gdbtk ; then
5516 GDB_TK="${gdb_tk}"
5517 else
5518 GDB_TK=""
5519 fi
5520 ;;
a0da8069 5521esac
907be67c
DJ
5522CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5523INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5524
6bd3dfaa 5525# Strip out unwanted targets.
dd12c3a8
NN
5526
5527# While at that, we remove Makefiles if we were started for recursive
5528# configuration, so that the top-level Makefile reconfigures them,
5529# like we used to do when configure itself was recursive.
dd12c3a8 5530
6bd3dfaa
PB
5531# Loop over modules. $extrasub must be used with care, limiting as
5532# much as possible the usage of range addresses. That's because autoconf
5533# splits the sed script to overcome limits in the number of commands,
5534# and relying on carefully-timed sed passes may turn out to be very hard
5535# to maintain later. In this particular case, you just have to be careful
5536# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5537
319cab08
PB
5538# Check whether --enable-bootstrap or --disable-bootstrap was given.
5539if test "${enable_bootstrap+set}" = set; then
5540 enableval="$enable_bootstrap"
c6b750e1 5541
319cab08 5542else
9cb3fa6f 5543 enable_bootstrap=default
c6b750e1 5544fi;
319cab08 5545
9cb3fa6f
PB
5546# Issue errors and warnings for invalid/strange bootstrap combinations.
5547case "$configdirs" in
5548 *gcc*) have_compiler=yes ;;
5549 *) have_compiler=no ;;
5550esac
5551
5552case "$have_compiler:$host:$target:$enable_bootstrap" in
5553 *:*:*:no) ;;
5554
0aed8855 5555 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5556 # and we are in a native configuration.
5557 yes:$build:$build:default)
0aed8855 5558 enable_bootstrap=yes ;;
9cb3fa6f
PB
5559
5560 *:*:*:default)
5561 enable_bootstrap=no ;;
5562
5563 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5564 yes:$build:$build:yes)
9cb3fa6f
PB
5565 ;;
5566
5567 # Other configurations, but we have a compiler. Assume the user knows
5568 # what he's doing.
80911fe1 5569 yes:*:*:yes)
c6b750e1
DJ
5570 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5571echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5572 ;;
5573
5574 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5575 no:*:*:yes)
c6b750e1
DJ
5576 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5577echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5578 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5579
5580 # Fail if wrong command line
5581 *)
c6b750e1
DJ
5582 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5583echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5584 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5585 ;;
5586esac
5587
5588# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5589case "$enable_bootstrap" in
5590 yes)
498d4a71 5591 bootstrap_suffix=bootstrap ;;
319cab08 5592 no)
498d4a71 5593 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5594esac
5595
6a9cf61e 5596for module in ${build_configdirs} ; do
498d4a71
CF
5597 if test -z "${no_recursion}" \
5598 && test -f ${build_subdir}/${module}/Makefile; then
5599 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5600 rm -f ${build_subdir}/${module}/Makefile
5601 fi
5602 extrasub="$extrasub
5603/^@if build-$module\$/d
5604/^@endif build-$module\$/d
5605/^@if build-$module-$bootstrap_suffix\$/d
5606/^@endif build-$module-$bootstrap_suffix\$/d"
5607done
5608for module in ${configdirs} ; do
80911fe1 5609 if test -z "${no_recursion}"; then
8cf39b1b 5610 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5611 if test -f ${file}; then
5612 echo 1>&2 "*** removing ${file} to force reconfigure"
5613 rm -f ${file}
5614 fi
5615 done
498d4a71
CF
5616 fi
5617 extrasub="$extrasub
5618/^@if $module\$/d
5619/^@endif $module\$/d
5620/^@if $module-$bootstrap_suffix\$/d
5621/^@endif $module-$bootstrap_suffix\$/d"
5622done
5623for module in ${target_configdirs} ; do
5624 if test -z "${no_recursion}" \
5625 && test -f ${target_subdir}/${module}/Makefile; then
5626 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5627 rm -f ${target_subdir}/${module}/Makefile
5628 fi
5629 extrasub="$extrasub
5630/^@if target-$module\$/d
5631/^@endif target-$module\$/d
5632/^@if target-$module-$bootstrap_suffix\$/d
5633/^@endif target-$module-$bootstrap_suffix\$/d"
5634done
5635
6bd3dfaa
PB
5636extrasub="$extrasub
5637/^@if /,/^@endif /d"
a0da8069
NN
5638
5639# Create the serialization dependencies. This uses a temporary file.
5640
e6bfb94a
AO
5641# Check whether --enable-serial-configure or --disable-serial-configure was given.
5642if test "${enable_serial_configure+set}" = set; then
5643 enableval="$enable_serial_configure"
e6bfb94a 5644
c6b750e1 5645fi;
e6bfb94a 5646
1047cb91
DD
5647case ${enable_serial_configure} in
5648 yes)
5649 enable_serial_build_configure=yes
5650 enable_serial_host_configure=yes
5651 enable_serial_target_configure=yes
5652 ;;
5653esac
5654
a0da8069
NN
5655# These force 'configure's to be done one at a time, to avoid problems
5656# with contention over a shared config.cache.
5657rm -f serdep.tmp
e6bfb94a 5658echo '# serdep.tmp' > serdep.tmp
a0da8069 5659olditem=
1047cb91 5660test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5661for item in ${build_configdirs} ; do
5662 case ${olditem} in
5663 "") ;;
e6bfb94a 5664 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5665 esac
5666 olditem=${item}
5667done
5668olditem=
1047cb91 5669test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5670for item in ${configdirs} ; do
5671 case ${olditem} in
5672 "") ;;
e6bfb94a 5673 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5674 esac
5675 olditem=${item}
5676done
5677olditem=
1047cb91 5678test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5679for item in ${target_configdirs} ; do
5680 case ${olditem} in
5681 "") ;;
e6bfb94a 5682 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5683 esac
5684 olditem=${item}
5685done
5686serialization_dependencies=serdep.tmp
5687
5688
e6bfb94a 5689# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5690# target, nonopt, and variable assignments. These are the ones we
5691# might not want to pass down to subconfigures. Also strip
5692# program-prefix, program-suffix, and program-transform-name, so that
5693# we can pass down a consistent program-transform-name.
5694baseargs=
5695keep_next=no
5696skip_next=no
5697eval "set -- $ac_configure_args"
18f6b6ee
PB
5698for ac_arg
5699do
c6b750e1
DJ
5700 if test X"$skip_next" = X"yes"; then
5701 skip_next=no
5702 continue
5703 fi
5704 if test X"$keep_next" = X"yes"; then
5705 case $ac_arg in
5706 *\'*)
5707 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5708 esac
5709 baseargs="$baseargs '$ac_arg'"
5710 keep_next=no
5711 continue
5712 fi
5713
5714 # Handle separated arguments. Based on the logic generated by
5715 # autoconf 2.59.
5716 case $ac_arg in
5717 *=* | --config-cache | -C | -disable-* | --disable-* \
5718 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5719 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5720 | -with-* | --with-* | -without-* | --without-* | --x)
5721 separate_arg=no
5722 ;;
5723 -*)
5724 separate_arg=yes
5725 ;;
5726 *)
5727 separate_arg=no
5728 ;;
5729 esac
5730
5731 case "$ac_arg" in
5732 --no*)
5733 continue
5734 ;;
5735 --c* | \
5736 --sr* | \
5737 --ho* | \
5738 --bu* | \
5739 --t* | \
5740 --program-* | \
5741 -cache_file* | \
5742 -srcdir* | \
5743 -host* | \
5744 -build* | \
5745 -target* | \
5746 -program-prefix* | \
5747 -program-suffix* | \
5748 -program-transform-name* )
5749 skip_next=$separate_arg
5750 continue
5751 ;;
5752 -*)
5753 # An option. Add it.
5754 case $ac_arg in
5755 *\'*)
5756 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5757 esac
5758 baseargs="$baseargs '$ac_arg'"
5759 keep_next=$separate_arg
5760 ;;
5761 *)
5762 # Either a variable assignment, or a nonopt (triplet). Don't
5763 # pass it down; let the Makefile handle this.
5764 continue
5765 ;;
5766 esac
5767done
5768# Remove the initial space we just introduced and, as these will be
5769# expanded by make, quote '$'.
5770baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5771
f27d4f92
DJ
5772# Add in --program-transform-name, after --program-prefix and
5773# --program-suffix have been applied to it. Autoconf has already
5774# doubled dollar signs and backslashes in program_transform_name; we want
5775# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5776# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5777# Also, because we want to override the logic in subdir configure scripts to
5778# choose program_transform_name, replace any s,x,x, with s,y,y,.
5779sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5780${program_transform_name}
5781EOF_SED
5782gcc_transform_name=`cat conftestsed.out`
5783rm -f conftestsed.out
5784baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
5785if test "$silent" = yes; then
5786 baseargs="$baseargs --silent"
5787fi
f27d4f92 5788
a0da8069
NN
5789# For the build-side libraries, we just need to pretend we're native,
5790# and not use the same cache file. Multilibs are neither needed nor
5791# desired.
4b900473 5792build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5793
5794# For host modules, accept cache file option, or specification as blank.
5795case "${cache_file}" in
5796"") # empty
5797 cache_file_option="" ;;
5798/* | [A-Za-z]:[\\/]* ) # absolute path
5799 cache_file_option="--cache-file=${cache_file}" ;;
5800*) # relative path
5801 cache_file_option="--cache-file=../${cache_file}" ;;
5802esac
5803
82252c06
NN
5804# Host dirs don't like to share a cache file either, horribly enough.
5805# This seems to be due to autoconf 2.5x stupidity.
4b900473 5806host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5807
5808target_configargs=${baseargs}
5809
5810# Passing a --with-cross-host argument lets the target libraries know
5811# whether they are being built with a cross-compiler or being built
5812# native. However, it would be better to use other mechanisms to make the
5813# sorts of decisions they want to make on this basis. Please consider
5814# this option to be deprecated. FIXME.
5815if test x${is_cross_compiler} = xyes ; then
c6b750e1 5816 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5817fi
5818
5819# Default to --enable-multilib.
5820if test x${enable_multilib} = x ; then
5821 target_configargs="--enable-multilib ${target_configargs}"
5822fi
5823
5824# Pass --with-newlib if appropriate. Note that target_configdirs has
5825# changed from the earlier setting of with_newlib.
5826if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5827 target_configargs="--with-newlib ${target_configargs}"
5828fi
5829
95036d20
NN
5830# Different target subdirs use different values of certain variables
5831# (notably CXX). Worse, multilibs use *lots* of different values.
5832# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5833# it doesn't automatically accept command-line overrides of them.
5834# This means it's not safe for target subdirs to share a cache file,
5835# which is disgusting, but there you have it. Hopefully this can be
5836# fixed in future. It's still worthwhile to use a cache file for each
5837# directory. I think.
5838
ae380b45
MS
5839# Pass the appropriate --build, --host, --target and --cache-file arguments.
5840# We need to pass --target, as newer autoconf's requires consistency
5841# for target_alias and gcc doesn't manage it consistently.
4b900473 5842target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5843
a0da8069
NN
5844FLAGS_FOR_TARGET=
5845case " $target_configdirs " in
5846 *" newlib "*)
5847 case " $target_configargs " in
5848 *" --with-newlib "*)
5849 case "$target" in
5850 *-cygwin*)
564b43e5 5851 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
5852 esac
5853
5854 # If we're not building GCC, don't discard standard headers.
5855 if test -d ${srcdir}/gcc; then
5856 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5857
5858 if test "${build}" != "${host}"; then
5859 # On Canadian crosses, CC_FOR_TARGET will have already been set
5860 # by `configure', so we won't have an opportunity to add -Bgcc/
5861 # to it. This is right: we don't want to search that directory
5862 # for binaries, but we want the header files in there, so add
5863 # them explicitly.
b00612cc 5864 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5865
5866 # Someone might think of using the pre-installed headers on
5867 # Canadian crosses, in case the installed compiler is not fully
5868 # compatible with the compiler being built. In this case, it
5869 # would be better to flag an error than risking having
5870 # incompatible object files being constructed. We can't
5871 # guarantee that an error will be flagged, but let's hope the
5872 # compiler will do it, when presented with incompatible header
5873 # files.
5874 fi
5875 fi
5876
5877 case "${target}-${is_cross_compiler}" in
ec11bdc6 5878 i[3456789]86-*-linux*-no)
a0da8069
NN
5879 # Here host == target, so we don't need to build gcc,
5880 # so we don't want to discard standard headers.
5881 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5882 ;;
5883 *)
5884 # If we're building newlib, use its generic headers last, but search
5885 # for any libc-related directories first (so make it the last -B
5886 # switch).
5887 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
5888
5889 # If we're building libgloss, find the startup file, simulator library
5890 # and linker script.
5891 case " $target_configdirs " in
5892 *" libgloss "*)
5893 # Look for startup file, simulator library and maybe linker script.
5894 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5895 # Look for libnosys.a in case the target needs it.
5896 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5897 # Most targets have the linker script in the source directory.
5898 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5899 ;;
5900 esac
a0da8069
NN
5901 ;;
5902 esac
5903 ;;
5904 esac
5905 ;;
5906esac
45055374
CV
5907case "$target" in
5908*-mingw*)
5909 # Can't be handled as Cygwin above since Mingw does not use newlib.
5910 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' ;;
5911esac
a0da8069 5912
5fbad20a
DD
5913# Allow the user to override the flags for
5914# our build compiler if desired.
c66487f8
NC
5915if test x"${build}" = x"${host}" ; then
5916 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5917 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
5918 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
5919fi
5fbad20a 5920
a0da8069
NN
5921# On Canadian crosses, we'll be searching the right directories for
5922# the previously-installed cross compiler, so don't bother to add
5923# flags for directories within the install tree of the compiler
5924# being built; programs in there won't even run.
5925if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5926 # Search for pre-installed headers if nothing else fits.
bba45b8b 5927 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
5928fi
5929
5930if test "x${use_gnu_ld}" = x &&
5931 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5932 # Arrange for us to find uninstalled linker scripts.
b00612cc 5933 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
5934fi
5935
a481dbb7
DD
5936# Search for other target-specific linker scripts and such.
5937case "${target}" in
4e206d7e
DB
5938 mep*)
5939 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5940 ;;
5941esac
5942
a0da8069 5943# Makefile fragments.
3e707e94
PB
5944for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5945do
5946 eval fragval=\$$frag
5947 if test $fragval != /dev/null; then
5948 eval $frag=${srcdir}/$fragval
5949 fi
5950done
a0da8069
NN
5951
5952
5953
5954
5955
5956# Miscellanea: directories, flags, etc.
5957
5958
5959
5960
5961
5962
5963
6a9cf61e 5964# Build module lists & subconfigure args.
a0da8069
NN
5965
5966
5967
be01d343
PB
5968# Host module lists & subconfigure args.
5969
5970
5971
5972# Target module lists & subconfigure args.
5973
5974
5975
5976# Build tools.
5977
5978
5979
1576798e
PB
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
be01d343
PB
5994# Generate default definitions for YACC, M4, LEX and other programs that run
5995# on the build machine. These are used if the Makefile can't locate these
5996# programs in objdir.
5997MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5998
5999for ac_prog in 'bison -y' byacc yacc
6000do
c6b750e1 6001 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6002set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6003echo "$as_me:$LINENO: checking for $ac_word" >&5
6004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6005if test "${ac_cv_prog_YACC+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6007else
6008 if test -n "$YACC"; then
6009 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6010else
c6b750e1
DJ
6011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012for as_dir in $PATH
6013do
6014 IFS=$as_save_IFS
6015 test -z "$as_dir" && as_dir=.
6016 for ac_exec_ext in '' $ac_executable_extensions; do
6017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6018 ac_cv_prog_YACC="$ac_prog"
6019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6020 break 2
6021 fi
6022done
6023done
6024
be01d343
PB
6025fi
6026fi
c6b750e1 6027YACC=$ac_cv_prog_YACC
be01d343 6028if test -n "$YACC"; then
c6b750e1
DJ
6029 echo "$as_me:$LINENO: result: $YACC" >&5
6030echo "${ECHO_T}$YACC" >&6
be01d343 6031else
c6b750e1
DJ
6032 echo "$as_me:$LINENO: result: no" >&5
6033echo "${ECHO_T}no" >&6
be01d343
PB
6034fi
6035
c6b750e1 6036 test -n "$YACC" && break
be01d343
PB
6037done
6038test -n "$YACC" || YACC="$MISSING bison -y"
6039
6040case " $build_configdirs " in
6041 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6042 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6043esac
6044
6045for ac_prog in bison
6046do
c6b750e1 6047 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6048set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6049echo "$as_me:$LINENO: checking for $ac_word" >&5
6050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6051if test "${ac_cv_prog_BISON+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6053else
6054 if test -n "$BISON"; then
6055 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6056else
c6b750e1
DJ
6057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058for as_dir in $PATH
6059do
6060 IFS=$as_save_IFS
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6064 ac_cv_prog_BISON="$ac_prog"
6065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6066 break 2
6067 fi
6068done
6069done
6070
be01d343
PB
6071fi
6072fi
c6b750e1 6073BISON=$ac_cv_prog_BISON
be01d343 6074if test -n "$BISON"; then
c6b750e1
DJ
6075 echo "$as_me:$LINENO: result: $BISON" >&5
6076echo "${ECHO_T}$BISON" >&6
be01d343 6077else
c6b750e1
DJ
6078 echo "$as_me:$LINENO: result: no" >&5
6079echo "${ECHO_T}no" >&6
be01d343
PB
6080fi
6081
c6b750e1 6082 test -n "$BISON" && break
be01d343
PB
6083done
6084test -n "$BISON" || BISON="$MISSING bison"
6085
6086case " $build_configdirs " in
6087 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6088esac
6089
6090for ac_prog in gm4 gnum4 m4
6091do
c6b750e1 6092 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6093set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6094echo "$as_me:$LINENO: checking for $ac_word" >&5
6095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6096if test "${ac_cv_prog_M4+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6098else
6099 if test -n "$M4"; then
6100 ac_cv_prog_M4="$M4" # Let the user override the test.
6101else
c6b750e1
DJ
6102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103for as_dir in $PATH
6104do
6105 IFS=$as_save_IFS
6106 test -z "$as_dir" && as_dir=.
6107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6109 ac_cv_prog_M4="$ac_prog"
6110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6111 break 2
6112 fi
6113done
6114done
6115
be01d343
PB
6116fi
6117fi
c6b750e1 6118M4=$ac_cv_prog_M4
be01d343 6119if test -n "$M4"; then
c6b750e1
DJ
6120 echo "$as_me:$LINENO: result: $M4" >&5
6121echo "${ECHO_T}$M4" >&6
be01d343 6122else
c6b750e1
DJ
6123 echo "$as_me:$LINENO: result: no" >&5
6124echo "${ECHO_T}no" >&6
be01d343
PB
6125fi
6126
c6b750e1 6127 test -n "$M4" && break
be01d343
PB
6128done
6129test -n "$M4" || M4="$MISSING m4"
6130
6131case " $build_configdirs " in
6132 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6133esac
6134
6135for ac_prog in flex lex
6136do
c6b750e1 6137 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6138set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6139echo "$as_me:$LINENO: checking for $ac_word" >&5
6140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6141if test "${ac_cv_prog_LEX+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6143else
6144 if test -n "$LEX"; then
6145 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6146else
c6b750e1
DJ
6147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148for as_dir in $PATH
6149do
6150 IFS=$as_save_IFS
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6154 ac_cv_prog_LEX="$ac_prog"
6155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 break 2
6157 fi
6158done
6159done
6160
be01d343
PB
6161fi
6162fi
c6b750e1 6163LEX=$ac_cv_prog_LEX
be01d343 6164if test -n "$LEX"; then
c6b750e1
DJ
6165 echo "$as_me:$LINENO: result: $LEX" >&5
6166echo "${ECHO_T}$LEX" >&6
be01d343 6167else
c6b750e1
DJ
6168 echo "$as_me:$LINENO: result: no" >&5
6169echo "${ECHO_T}no" >&6
be01d343
PB
6170fi
6171
c6b750e1 6172 test -n "$LEX" && break
be01d343
PB
6173done
6174test -n "$LEX" || LEX="$MISSING flex"
6175
6176case " $build_configdirs " in
6177 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6178 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6179esac
6180
6181for ac_prog in flex
6182do
c6b750e1 6183 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6184set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6185echo "$as_me:$LINENO: checking for $ac_word" >&5
6186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6187if test "${ac_cv_prog_FLEX+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6189else
6190 if test -n "$FLEX"; then
6191 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6192else
c6b750e1
DJ
6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194for as_dir in $PATH
6195do
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6200 ac_cv_prog_FLEX="$ac_prog"
6201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6203 fi
6204done
6205done
6206
be01d343
PB
6207fi
6208fi
c6b750e1 6209FLEX=$ac_cv_prog_FLEX
be01d343 6210if test -n "$FLEX"; then
c6b750e1
DJ
6211 echo "$as_me:$LINENO: result: $FLEX" >&5
6212echo "${ECHO_T}$FLEX" >&6
be01d343 6213else
c6b750e1
DJ
6214 echo "$as_me:$LINENO: result: no" >&5
6215echo "${ECHO_T}no" >&6
be01d343
PB
6216fi
6217
c6b750e1 6218 test -n "$FLEX" && break
be01d343
PB
6219done
6220test -n "$FLEX" || FLEX="$MISSING flex"
6221
6222case " $build_configdirs " in
6223 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6224esac
6225
6226for ac_prog in makeinfo
6227do
c6b750e1 6228 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6229set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6230echo "$as_me:$LINENO: checking for $ac_word" >&5
6231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6232if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6234else
6235 if test -n "$MAKEINFO"; then
6236 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6237else
c6b750e1
DJ
6238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239for as_dir in $PATH
6240do
6241 IFS=$as_save_IFS
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6245 ac_cv_prog_MAKEINFO="$ac_prog"
6246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 break 2
6248 fi
6249done
6250done
6251
be01d343
PB
6252fi
6253fi
c6b750e1 6254MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6255if test -n "$MAKEINFO"; then
c6b750e1
DJ
6256 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6257echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6258else
c6b750e1
DJ
6259 echo "$as_me:$LINENO: result: no" >&5
6260echo "${ECHO_T}no" >&6
be01d343
PB
6261fi
6262
c6b750e1 6263 test -n "$MAKEINFO" && break
be01d343
PB
6264done
6265test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6266
6267case " $build_configdirs " in
6268 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6269 *)
6270
625a61cd 6271 # For an installed makeinfo, we require it to be from texinfo 4.6 or
be01d343
PB
6272 # higher, else we use the "missing" dummy.
6273 if ${MAKEINFO} --version \
625a61cd 6274 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
6275 :
6276 else
6277 MAKEINFO="$MISSING makeinfo"
6278 fi
6279 ;;
6280
6281esac
a0da8069 6282
be01d343 6283# FIXME: expect and dejagnu may become build tools?
a0da8069 6284
be01d343
PB
6285for ac_prog in expect
6286do
c6b750e1 6287 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6288set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6289echo "$as_me:$LINENO: checking for $ac_word" >&5
6290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6291if test "${ac_cv_prog_EXPECT+set}" = set; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6293else
6294 if test -n "$EXPECT"; then
6295 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6296else
c6b750e1
DJ
6297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298for as_dir in $PATH
6299do
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6304 ac_cv_prog_EXPECT="$ac_prog"
6305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 break 2
6307 fi
6308done
6309done
6310
be01d343
PB
6311fi
6312fi
c6b750e1 6313EXPECT=$ac_cv_prog_EXPECT
be01d343 6314if test -n "$EXPECT"; then
c6b750e1
DJ
6315 echo "$as_me:$LINENO: result: $EXPECT" >&5
6316echo "${ECHO_T}$EXPECT" >&6
be01d343 6317else
c6b750e1
DJ
6318 echo "$as_me:$LINENO: result: no" >&5
6319echo "${ECHO_T}no" >&6
be01d343 6320fi
a0da8069 6321
c6b750e1 6322 test -n "$EXPECT" && break
be01d343
PB
6323done
6324test -n "$EXPECT" || EXPECT="expect"
a0da8069 6325
be01d343
PB
6326case " $configdirs " in
6327 *" expect "*)
6328 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6329 ;;
6330esac
a0da8069 6331
be01d343
PB
6332for ac_prog in runtest
6333do
c6b750e1 6334 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6335set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6336echo "$as_me:$LINENO: checking for $ac_word" >&5
6337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6338if test "${ac_cv_prog_RUNTEST+set}" = set; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6340else
6341 if test -n "$RUNTEST"; then
6342 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6343else
c6b750e1
DJ
6344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345for as_dir in $PATH
6346do
6347 IFS=$as_save_IFS
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6351 ac_cv_prog_RUNTEST="$ac_prog"
6352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 break 2
6354 fi
6355done
6356done
6357
be01d343
PB
6358fi
6359fi
c6b750e1 6360RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6361if test -n "$RUNTEST"; then
c6b750e1
DJ
6362 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6363echo "${ECHO_T}$RUNTEST" >&6
be01d343 6364else
c6b750e1
DJ
6365 echo "$as_me:$LINENO: result: no" >&5
6366echo "${ECHO_T}no" >&6
be01d343 6367fi
a0da8069 6368
c6b750e1 6369 test -n "$RUNTEST" && break
be01d343
PB
6370done
6371test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6372
be01d343
PB
6373case " $configdirs " in
6374 *" dejagnu "*)
6b89cc21 6375 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6376 ;;
6377esac
a0da8069
NN
6378
6379
a0da8069 6380# Host tools.
859789af
AC
6381ncn_tool_prefix=
6382test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6383ncn_target_tool_prefix=
6384test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6385
9a819804
AO
6386
6387
6388if test -n "$AR"; then
6389 ac_cv_prog_AR=$AR
6390elif test -n "$ac_cv_prog_AR"; then
6391 AR=$ac_cv_prog_AR
6392fi
6393
6394if test -n "$ac_cv_prog_AR"; then
6395 for ncn_progname in ar; do
6396 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6397set dummy ${ncn_progname}; ac_word=$2
6398echo "$as_me:$LINENO: checking for $ac_word" >&5
6399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6400if test "${ac_cv_prog_AR+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6402else
6403 if test -n "$AR"; then
6404 ac_cv_prog_AR="$AR" # Let the user override the test.
6405else
6406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407for as_dir in $PATH
6408do
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6413 ac_cv_prog_AR="${ncn_progname}"
6414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 break 2
6416 fi
6417done
6418done
6419
6420fi
6421fi
6422AR=$ac_cv_prog_AR
6423if test -n "$AR"; then
6424 echo "$as_me:$LINENO: result: $AR" >&5
6425echo "${ECHO_T}$AR" >&6
6426else
6427 echo "$as_me:$LINENO: result: no" >&5
6428echo "${ECHO_T}no" >&6
6429fi
6430
6431 done
6432fi
6433
6434for ncn_progname in ar; do
05cbd757
PB
6435 if test -n "$ncn_tool_prefix"; then
6436 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6437set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6438echo "$as_me:$LINENO: checking for $ac_word" >&5
6439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6440if test "${ac_cv_prog_AR+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6442else
6443 if test -n "$AR"; then
6444 ac_cv_prog_AR="$AR" # Let the user override the test.
6445else
c6b750e1
DJ
6446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447for as_dir in $PATH
6448do
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6453 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 break 2
6456 fi
6457done
6458done
6459
859789af
AC
6460fi
6461fi
c6b750e1 6462AR=$ac_cv_prog_AR
859789af 6463if test -n "$AR"; then
c6b750e1
DJ
6464 echo "$as_me:$LINENO: result: $AR" >&5
6465echo "${ECHO_T}$AR" >&6
859789af 6466else
c6b750e1
DJ
6467 echo "$as_me:$LINENO: result: no" >&5
6468echo "${ECHO_T}no" >&6
859789af
AC
6469fi
6470
05cbd757
PB
6471 fi
6472 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6473 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6474set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6475echo "$as_me:$LINENO: checking for $ac_word" >&5
6476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6477if test "${ac_cv_prog_AR+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6479else
05cbd757
PB
6480 if test -n "$AR"; then
6481 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6482else
c6b750e1
DJ
6483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484for as_dir in $PATH
6485do
6486 IFS=$as_save_IFS
6487 test -z "$as_dir" && as_dir=.
6488 for ac_exec_ext in '' $ac_executable_extensions; do
6489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6490 ac_cv_prog_AR="${ncn_progname}"
6491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6492 break 2
6493 fi
6494done
6495done
6496
859789af
AC
6497fi
6498fi
c6b750e1 6499AR=$ac_cv_prog_AR
05cbd757 6500if test -n "$AR"; then
c6b750e1
DJ
6501 echo "$as_me:$LINENO: result: $AR" >&5
6502echo "${ECHO_T}$AR" >&6
859789af 6503else
c6b750e1
DJ
6504 echo "$as_me:$LINENO: result: no" >&5
6505echo "${ECHO_T}no" >&6
859789af 6506fi
c6b750e1 6507
05cbd757
PB
6508 fi
6509 test -n "$ac_cv_prog_AR" && break
6510done
6511
6512if test -z "$ac_cv_prog_AR" ; then
6513 set dummy ar
6514 if test $build = $host ; then
6515 AR="$2"
859789af 6516 else
05cbd757 6517 AR="${ncn_tool_prefix}$2"
859789af 6518 fi
859789af
AC
6519fi
6520
9a819804
AO
6521
6522
6523if test -n "$AS"; then
6524 ac_cv_prog_AS=$AS
6525elif test -n "$ac_cv_prog_AS"; then
6526 AS=$ac_cv_prog_AS
6527fi
6528
6529if test -n "$ac_cv_prog_AS"; then
6530 for ncn_progname in as; do
6531 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6532set dummy ${ncn_progname}; ac_word=$2
6533echo "$as_me:$LINENO: checking for $ac_word" >&5
6534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6535if test "${ac_cv_prog_AS+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6537else
6538 if test -n "$AS"; then
6539 ac_cv_prog_AS="$AS" # Let the user override the test.
6540else
6541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542for as_dir in $PATH
6543do
6544 IFS=$as_save_IFS
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6548 ac_cv_prog_AS="${ncn_progname}"
6549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 break 2
6551 fi
6552done
6553done
6554
6555fi
6556fi
6557AS=$ac_cv_prog_AS
6558if test -n "$AS"; then
6559 echo "$as_me:$LINENO: result: $AS" >&5
6560echo "${ECHO_T}$AS" >&6
6561else
6562 echo "$as_me:$LINENO: result: no" >&5
6563echo "${ECHO_T}no" >&6
6564fi
6565
6566 done
6567fi
6568
6569for ncn_progname in as; do
05cbd757
PB
6570 if test -n "$ncn_tool_prefix"; then
6571 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6572set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6573echo "$as_me:$LINENO: checking for $ac_word" >&5
6574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6575if test "${ac_cv_prog_AS+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6577else
6578 if test -n "$AS"; then
6579 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6580else
6581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582for as_dir in $PATH
6583do
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6588 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 break 2
6591 fi
6592done
6593done
6594
859789af
AC
6595fi
6596fi
c6b750e1 6597AS=$ac_cv_prog_AS
859789af 6598if test -n "$AS"; then
c6b750e1
DJ
6599 echo "$as_me:$LINENO: result: $AS" >&5
6600echo "${ECHO_T}$AS" >&6
859789af 6601else
c6b750e1
DJ
6602 echo "$as_me:$LINENO: result: no" >&5
6603echo "${ECHO_T}no" >&6
859789af
AC
6604fi
6605
05cbd757
PB
6606 fi
6607 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6608 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6609set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6610echo "$as_me:$LINENO: checking for $ac_word" >&5
6611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6612if test "${ac_cv_prog_AS+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6614else
05cbd757
PB
6615 if test -n "$AS"; then
6616 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6617else
c6b750e1
DJ
6618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619for as_dir in $PATH
6620do
6621 IFS=$as_save_IFS
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625 ac_cv_prog_AS="${ncn_progname}"
6626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 break 2
6628 fi
6629done
6630done
6631
859789af
AC
6632fi
6633fi
c6b750e1 6634AS=$ac_cv_prog_AS
05cbd757 6635if test -n "$AS"; then
c6b750e1
DJ
6636 echo "$as_me:$LINENO: result: $AS" >&5
6637echo "${ECHO_T}$AS" >&6
859789af 6638else
c6b750e1
DJ
6639 echo "$as_me:$LINENO: result: no" >&5
6640echo "${ECHO_T}no" >&6
859789af 6641fi
c6b750e1 6642
05cbd757
PB
6643 fi
6644 test -n "$ac_cv_prog_AS" && break
6645done
6646
6647if test -z "$ac_cv_prog_AS" ; then
6648 set dummy as
6649 if test $build = $host ; then
6650 AS="$2"
859789af 6651 else
05cbd757 6652 AS="${ncn_tool_prefix}$2"
859789af 6653 fi
859789af
AC
6654fi
6655
9a819804
AO
6656
6657
6658if test -n "$DLLTOOL"; then
6659 ac_cv_prog_DLLTOOL=$DLLTOOL
6660elif test -n "$ac_cv_prog_DLLTOOL"; then
6661 DLLTOOL=$ac_cv_prog_DLLTOOL
6662fi
6663
6664if test -n "$ac_cv_prog_DLLTOOL"; then
6665 for ncn_progname in dlltool; do
6666 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6667set dummy ${ncn_progname}; ac_word=$2
6668echo "$as_me:$LINENO: checking for $ac_word" >&5
6669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6670if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6672else
6673 if test -n "$DLLTOOL"; then
6674 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6675else
6676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677for as_dir in $PATH
6678do
6679 IFS=$as_save_IFS
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6683 ac_cv_prog_DLLTOOL="${ncn_progname}"
6684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 break 2
6686 fi
6687done
6688done
6689
6690fi
6691fi
6692DLLTOOL=$ac_cv_prog_DLLTOOL
6693if test -n "$DLLTOOL"; then
6694 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6695echo "${ECHO_T}$DLLTOOL" >&6
6696else
6697 echo "$as_me:$LINENO: result: no" >&5
6698echo "${ECHO_T}no" >&6
6699fi
6700
6701 done
6702fi
6703
6704for ncn_progname in dlltool; do
05cbd757
PB
6705 if test -n "$ncn_tool_prefix"; then
6706 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6707set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6708echo "$as_me:$LINENO: checking for $ac_word" >&5
6709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6710if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6712else
6713 if test -n "$DLLTOOL"; then
6714 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6715else
c6b750e1
DJ
6716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717for as_dir in $PATH
6718do
6719 IFS=$as_save_IFS
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6723 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 break 2
6726 fi
6727done
6728done
6729
859789af
AC
6730fi
6731fi
c6b750e1 6732DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6733if test -n "$DLLTOOL"; then
c6b750e1
DJ
6734 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6735echo "${ECHO_T}$DLLTOOL" >&6
859789af 6736else
c6b750e1
DJ
6737 echo "$as_me:$LINENO: result: no" >&5
6738echo "${ECHO_T}no" >&6
859789af
AC
6739fi
6740
05cbd757
PB
6741 fi
6742 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6744set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6745echo "$as_me:$LINENO: checking for $ac_word" >&5
6746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6747if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6749else
05cbd757
PB
6750 if test -n "$DLLTOOL"; then
6751 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6752else
c6b750e1
DJ
6753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754for as_dir in $PATH
6755do
6756 IFS=$as_save_IFS
6757 test -z "$as_dir" && as_dir=.
6758 for ac_exec_ext in '' $ac_executable_extensions; do
6759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6760 ac_cv_prog_DLLTOOL="${ncn_progname}"
6761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6762 break 2
6763 fi
6764done
6765done
6766
859789af
AC
6767fi
6768fi
c6b750e1 6769DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6770if test -n "$DLLTOOL"; then
c6b750e1
DJ
6771 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6772echo "${ECHO_T}$DLLTOOL" >&6
859789af 6773else
c6b750e1
DJ
6774 echo "$as_me:$LINENO: result: no" >&5
6775echo "${ECHO_T}no" >&6
859789af 6776fi
c6b750e1 6777
05cbd757
PB
6778 fi
6779 test -n "$ac_cv_prog_DLLTOOL" && break
6780done
6781
6782if test -z "$ac_cv_prog_DLLTOOL" ; then
6783 set dummy dlltool
6784 if test $build = $host ; then
6785 DLLTOOL="$2"
859789af 6786 else
05cbd757 6787 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6788 fi
859789af
AC
6789fi
6790
9a819804
AO
6791
6792
6793if test -n "$LD"; then
6794 ac_cv_prog_LD=$LD
6795elif test -n "$ac_cv_prog_LD"; then
6796 LD=$ac_cv_prog_LD
6797fi
6798
6799if test -n "$ac_cv_prog_LD"; then
6800 for ncn_progname in ld; do
6801 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6802set dummy ${ncn_progname}; ac_word=$2
6803echo "$as_me:$LINENO: checking for $ac_word" >&5
6804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6805if test "${ac_cv_prog_LD+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6807else
6808 if test -n "$LD"; then
6809 ac_cv_prog_LD="$LD" # Let the user override the test.
6810else
6811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812for as_dir in $PATH
6813do
6814 IFS=$as_save_IFS
6815 test -z "$as_dir" && as_dir=.
6816 for ac_exec_ext in '' $ac_executable_extensions; do
6817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6818 ac_cv_prog_LD="${ncn_progname}"
6819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 break 2
6821 fi
6822done
6823done
6824
6825fi
6826fi
6827LD=$ac_cv_prog_LD
6828if test -n "$LD"; then
6829 echo "$as_me:$LINENO: result: $LD" >&5
6830echo "${ECHO_T}$LD" >&6
6831else
6832 echo "$as_me:$LINENO: result: no" >&5
6833echo "${ECHO_T}no" >&6
6834fi
6835
6836 done
6837fi
6838
6839for ncn_progname in ld; do
05cbd757
PB
6840 if test -n "$ncn_tool_prefix"; then
6841 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6842set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6843echo "$as_me:$LINENO: checking for $ac_word" >&5
6844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6845if test "${ac_cv_prog_LD+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6847else
6848 if test -n "$LD"; then
6849 ac_cv_prog_LD="$LD" # Let the user override the test.
6850else
c6b750e1
DJ
6851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852for as_dir in $PATH
6853do
6854 IFS=$as_save_IFS
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6858 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 break 2
6861 fi
6862done
6863done
6864
859789af
AC
6865fi
6866fi
c6b750e1 6867LD=$ac_cv_prog_LD
859789af 6868if test -n "$LD"; then
c6b750e1
DJ
6869 echo "$as_me:$LINENO: result: $LD" >&5
6870echo "${ECHO_T}$LD" >&6
859789af 6871else
c6b750e1
DJ
6872 echo "$as_me:$LINENO: result: no" >&5
6873echo "${ECHO_T}no" >&6
859789af
AC
6874fi
6875
05cbd757
PB
6876 fi
6877 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6879set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6880echo "$as_me:$LINENO: checking for $ac_word" >&5
6881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6882if test "${ac_cv_prog_LD+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6884else
05cbd757
PB
6885 if test -n "$LD"; then
6886 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6887else
c6b750e1
DJ
6888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889for as_dir in $PATH
6890do
6891 IFS=$as_save_IFS
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6895 ac_cv_prog_LD="${ncn_progname}"
6896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 break 2
6898 fi
6899done
6900done
6901
859789af
AC
6902fi
6903fi
c6b750e1 6904LD=$ac_cv_prog_LD
05cbd757 6905if test -n "$LD"; then
c6b750e1
DJ
6906 echo "$as_me:$LINENO: result: $LD" >&5
6907echo "${ECHO_T}$LD" >&6
859789af 6908else
c6b750e1
DJ
6909 echo "$as_me:$LINENO: result: no" >&5
6910echo "${ECHO_T}no" >&6
859789af 6911fi
c6b750e1 6912
05cbd757
PB
6913 fi
6914 test -n "$ac_cv_prog_LD" && break
6915done
6916
6917if test -z "$ac_cv_prog_LD" ; then
6918 set dummy ld
6919 if test $build = $host ; then
6920 LD="$2"
859789af 6921 else
05cbd757 6922 LD="${ncn_tool_prefix}$2"
859789af 6923 fi
859789af
AC
6924fi
6925
9a819804
AO
6926
6927
6928if test -n "$LIPO"; then
6929 ac_cv_prog_LIPO=$LIPO
6930elif test -n "$ac_cv_prog_LIPO"; then
6931 LIPO=$ac_cv_prog_LIPO
6932fi
6933
6934if test -n "$ac_cv_prog_LIPO"; then
6935 for ncn_progname in lipo; do
6936 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6937set dummy ${ncn_progname}; ac_word=$2
6938echo "$as_me:$LINENO: checking for $ac_word" >&5
6939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6940if test "${ac_cv_prog_LIPO+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942else
6943 if test -n "$LIPO"; then
6944 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6945else
6946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947for as_dir in $PATH
6948do
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6953 ac_cv_prog_LIPO="${ncn_progname}"
6954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 break 2
6956 fi
6957done
6958done
6959
6960fi
6961fi
6962LIPO=$ac_cv_prog_LIPO
6963if test -n "$LIPO"; then
6964 echo "$as_me:$LINENO: result: $LIPO" >&5
6965echo "${ECHO_T}$LIPO" >&6
6966else
6967 echo "$as_me:$LINENO: result: no" >&5
6968echo "${ECHO_T}no" >&6
6969fi
6970
6971 done
6972fi
6973
6974for ncn_progname in lipo; do
be01d343
PB
6975 if test -n "$ncn_tool_prefix"; then
6976 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6977set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6978echo "$as_me:$LINENO: checking for $ac_word" >&5
6979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6980if test "${ac_cv_prog_LIPO+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6982else
6983 if test -n "$LIPO"; then
6984 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6985else
c6b750e1
DJ
6986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987for as_dir in $PATH
6988do
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6993 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6996 fi
6997done
6998done
6999
be01d343
PB
7000fi
7001fi
c6b750e1 7002LIPO=$ac_cv_prog_LIPO
be01d343 7003if test -n "$LIPO"; then
c6b750e1
DJ
7004 echo "$as_me:$LINENO: result: $LIPO" >&5
7005echo "${ECHO_T}$LIPO" >&6
be01d343 7006else
c6b750e1
DJ
7007 echo "$as_me:$LINENO: result: no" >&5
7008echo "${ECHO_T}no" >&6
be01d343
PB
7009fi
7010
7011 fi
7012 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7014set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7015echo "$as_me:$LINENO: checking for $ac_word" >&5
7016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7017if test "${ac_cv_prog_LIPO+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7019else
7020 if test -n "$LIPO"; then
7021 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7022else
c6b750e1
DJ
7023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024for as_dir in $PATH
7025do
7026 IFS=$as_save_IFS
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7030 ac_cv_prog_LIPO="${ncn_progname}"
7031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 break 2
7033 fi
7034done
7035done
7036
be01d343
PB
7037fi
7038fi
c6b750e1 7039LIPO=$ac_cv_prog_LIPO
be01d343 7040if test -n "$LIPO"; then
c6b750e1
DJ
7041 echo "$as_me:$LINENO: result: $LIPO" >&5
7042echo "${ECHO_T}$LIPO" >&6
be01d343 7043else
c6b750e1
DJ
7044 echo "$as_me:$LINENO: result: no" >&5
7045echo "${ECHO_T}no" >&6
be01d343 7046fi
c6b750e1 7047
be01d343
PB
7048 fi
7049 test -n "$ac_cv_prog_LIPO" && break
7050done
7051
7052if test -z "$ac_cv_prog_LIPO" ; then
7053 set dummy lipo
7054 if test $build = $host ; then
7055 LIPO="$2"
7056 else
7057 LIPO="${ncn_tool_prefix}$2"
7058 fi
7059fi
7060
9a819804
AO
7061
7062
7063if test -n "$NM"; then
7064 ac_cv_prog_NM=$NM
7065elif test -n "$ac_cv_prog_NM"; then
7066 NM=$ac_cv_prog_NM
7067fi
7068
7069if test -n "$ac_cv_prog_NM"; then
7070 for ncn_progname in nm; do
7071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7072set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7073echo "$as_me:$LINENO: checking for $ac_word" >&5
7074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7075if test "${ac_cv_prog_NM+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7077else
7078 if test -n "$NM"; then
7079 ac_cv_prog_NM="$NM" # Let the user override the test.
7080else
c6b750e1
DJ
7081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082for as_dir in $PATH
7083do
7084 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7088 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 break 2
7091 fi
7092done
7093done
7094
859789af
AC
7095fi
7096fi
c6b750e1 7097NM=$ac_cv_prog_NM
859789af 7098if test -n "$NM"; then
c6b750e1
DJ
7099 echo "$as_me:$LINENO: result: $NM" >&5
7100echo "${ECHO_T}$NM" >&6
859789af 7101else
c6b750e1
DJ
7102 echo "$as_me:$LINENO: result: no" >&5
7103echo "${ECHO_T}no" >&6
859789af
AC
7104fi
7105
9a819804
AO
7106 done
7107fi
7108
7109for ncn_progname in nm; do
7110 if test -n "$ncn_tool_prefix"; then
7111 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7112set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7113echo "$as_me:$LINENO: checking for $ac_word" >&5
7114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7115if test "${ac_cv_prog_NM+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7117else
05cbd757
PB
7118 if test -n "$NM"; then
7119 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7120else
c6b750e1
DJ
7121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122for as_dir in $PATH
7123do
7124 IFS=$as_save_IFS
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7128 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 break 2
7131 fi
7132done
7133done
7134
859789af
AC
7135fi
7136fi
c6b750e1 7137NM=$ac_cv_prog_NM
05cbd757 7138if test -n "$NM"; then
c6b750e1
DJ
7139 echo "$as_me:$LINENO: result: $NM" >&5
7140echo "${ECHO_T}$NM" >&6
859789af 7141else
c6b750e1
DJ
7142 echo "$as_me:$LINENO: result: no" >&5
7143echo "${ECHO_T}no" >&6
859789af 7144fi
c6b750e1 7145
05cbd757 7146 fi
9a819804
AO
7147 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7148 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7149set dummy ${ncn_progname}; ac_word=$2
7150echo "$as_me:$LINENO: checking for $ac_word" >&5
7151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7152if test "${ac_cv_prog_NM+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7154else
7155 if test -n "$NM"; then
7156 ac_cv_prog_NM="$NM" # Let the user override the test.
7157else
7158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159for as_dir in $PATH
7160do
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7165 ac_cv_prog_NM="${ncn_progname}"
7166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 break 2
7168 fi
7169done
7170done
7171
7172fi
7173fi
7174NM=$ac_cv_prog_NM
7175if test -n "$NM"; then
7176 echo "$as_me:$LINENO: result: $NM" >&5
7177echo "${ECHO_T}$NM" >&6
7178else
7179 echo "$as_me:$LINENO: result: no" >&5
7180echo "${ECHO_T}no" >&6
7181fi
7182
7183 fi
7184 test -n "$ac_cv_prog_NM" && break
7185done
7186
7187if test -z "$ac_cv_prog_NM" ; then
7188 set dummy nm
7189 if test $build = $host ; then
7190 NM="$2"
7191 else
7192 NM="${ncn_tool_prefix}$2"
7193 fi
7194fi
7195
7196
7197
7198if test -n "$RANLIB"; then
7199 ac_cv_prog_RANLIB=$RANLIB
7200elif test -n "$ac_cv_prog_RANLIB"; then
7201 RANLIB=$ac_cv_prog_RANLIB
7202fi
7203
7204if test -n "$ac_cv_prog_RANLIB"; then
7205 for ncn_progname in ranlib; do
7206 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7207set dummy ${ncn_progname}; ac_word=$2
7208echo "$as_me:$LINENO: checking for $ac_word" >&5
7209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7210if test "${ac_cv_prog_RANLIB+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7212else
7213 if test -n "$RANLIB"; then
7214 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7215else
7216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217for as_dir in $PATH
7218do
7219 IFS=$as_save_IFS
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223 ac_cv_prog_RANLIB="${ncn_progname}"
7224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 break 2
7226 fi
7227done
7228done
7229
7230fi
7231fi
7232RANLIB=$ac_cv_prog_RANLIB
7233if test -n "$RANLIB"; then
7234 echo "$as_me:$LINENO: result: $RANLIB" >&5
7235echo "${ECHO_T}$RANLIB" >&6
7236else
7237 echo "$as_me:$LINENO: result: no" >&5
7238echo "${ECHO_T}no" >&6
7239fi
7240
7241 done
7242fi
859789af 7243
9a819804 7244for ncn_progname in ranlib; do
05cbd757
PB
7245 if test -n "$ncn_tool_prefix"; then
7246 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7247set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7248echo "$as_me:$LINENO: checking for $ac_word" >&5
7249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7250if test "${ac_cv_prog_RANLIB+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7252else
7253 if test -n "$RANLIB"; then
7254 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7255else
c6b750e1
DJ
7256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257for as_dir in $PATH
7258do
7259 IFS=$as_save_IFS
7260 test -z "$as_dir" && as_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7263 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 break 2
7266 fi
7267done
7268done
7269
859789af
AC
7270fi
7271fi
c6b750e1 7272RANLIB=$ac_cv_prog_RANLIB
859789af 7273if test -n "$RANLIB"; then
c6b750e1
DJ
7274 echo "$as_me:$LINENO: result: $RANLIB" >&5
7275echo "${ECHO_T}$RANLIB" >&6
859789af 7276else
c6b750e1
DJ
7277 echo "$as_me:$LINENO: result: no" >&5
7278echo "${ECHO_T}no" >&6
859789af
AC
7279fi
7280
05cbd757
PB
7281 fi
7282 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7284set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7285echo "$as_me:$LINENO: checking for $ac_word" >&5
7286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7287if test "${ac_cv_prog_RANLIB+set}" = set; then
7288 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7289else
05cbd757
PB
7290 if test -n "$RANLIB"; then
7291 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7292else
c6b750e1
DJ
7293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294for as_dir in $PATH
7295do
7296 IFS=$as_save_IFS
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7300 ac_cv_prog_RANLIB="${ncn_progname}"
7301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 break 2
7303 fi
7304done
7305done
7306
859789af
AC
7307fi
7308fi
c6b750e1 7309RANLIB=$ac_cv_prog_RANLIB
05cbd757 7310if test -n "$RANLIB"; then
c6b750e1
DJ
7311 echo "$as_me:$LINENO: result: $RANLIB" >&5
7312echo "${ECHO_T}$RANLIB" >&6
859789af 7313else
c6b750e1
DJ
7314 echo "$as_me:$LINENO: result: no" >&5
7315echo "${ECHO_T}no" >&6
859789af 7316fi
c6b750e1 7317
859789af 7318 fi
05cbd757
PB
7319 test -n "$ac_cv_prog_RANLIB" && break
7320done
7321
7322if test -z "$ac_cv_prog_RANLIB" ; then
7323 RANLIB=":"
859789af
AC
7324fi
7325
9a819804
AO
7326
7327
7328if test -n "$STRIP"; then
7329 ac_cv_prog_STRIP=$STRIP
7330elif test -n "$ac_cv_prog_STRIP"; then
7331 STRIP=$ac_cv_prog_STRIP
7332fi
7333
7334if test -n "$ac_cv_prog_STRIP"; then
7335 for ncn_progname in strip; do
7336 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7337set dummy ${ncn_progname}; ac_word=$2
7338echo "$as_me:$LINENO: checking for $ac_word" >&5
7339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7340if test "${ac_cv_prog_STRIP+set}" = set; then
7341 echo $ECHO_N "(cached) $ECHO_C" >&6
7342else
7343 if test -n "$STRIP"; then
7344 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7345else
7346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347for as_dir in $PATH
7348do
7349 IFS=$as_save_IFS
7350 test -z "$as_dir" && as_dir=.
7351 for ac_exec_ext in '' $ac_executable_extensions; do
7352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7353 ac_cv_prog_STRIP="${ncn_progname}"
7354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 break 2
7356 fi
7357done
7358done
7359
7360fi
7361fi
7362STRIP=$ac_cv_prog_STRIP
7363if test -n "$STRIP"; then
7364 echo "$as_me:$LINENO: result: $STRIP" >&5
7365echo "${ECHO_T}$STRIP" >&6
7366else
7367 echo "$as_me:$LINENO: result: no" >&5
7368echo "${ECHO_T}no" >&6
7369fi
7370
7371 done
7372fi
7373
7374for ncn_progname in strip; do
be01d343
PB
7375 if test -n "$ncn_tool_prefix"; then
7376 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7377set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7378echo "$as_me:$LINENO: checking for $ac_word" >&5
7379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7380if test "${ac_cv_prog_STRIP+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7382else
7383 if test -n "$STRIP"; then
7384 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7385else
c6b750e1
DJ
7386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387for as_dir in $PATH
7388do
7389 IFS=$as_save_IFS
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7393 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 break 2
7396 fi
7397done
7398done
7399
be01d343
PB
7400fi
7401fi
c6b750e1 7402STRIP=$ac_cv_prog_STRIP
be01d343 7403if test -n "$STRIP"; then
c6b750e1
DJ
7404 echo "$as_me:$LINENO: result: $STRIP" >&5
7405echo "${ECHO_T}$STRIP" >&6
be01d343 7406else
c6b750e1
DJ
7407 echo "$as_me:$LINENO: result: no" >&5
7408echo "${ECHO_T}no" >&6
be01d343
PB
7409fi
7410
7411 fi
7412 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7413 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7414set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7415echo "$as_me:$LINENO: checking for $ac_word" >&5
7416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7417if test "${ac_cv_prog_STRIP+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7419else
7420 if test -n "$STRIP"; then
7421 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7422else
c6b750e1
DJ
7423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424for as_dir in $PATH
7425do
7426 IFS=$as_save_IFS
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7430 ac_cv_prog_STRIP="${ncn_progname}"
7431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 break 2
7433 fi
7434done
7435done
7436
be01d343
PB
7437fi
7438fi
c6b750e1 7439STRIP=$ac_cv_prog_STRIP
be01d343 7440if test -n "$STRIP"; then
c6b750e1
DJ
7441 echo "$as_me:$LINENO: result: $STRIP" >&5
7442echo "${ECHO_T}$STRIP" >&6
be01d343 7443else
c6b750e1
DJ
7444 echo "$as_me:$LINENO: result: no" >&5
7445echo "${ECHO_T}no" >&6
be01d343 7446fi
c6b750e1 7447
be01d343
PB
7448 fi
7449 test -n "$ac_cv_prog_STRIP" && break
7450done
7451
7452if test -z "$ac_cv_prog_STRIP" ; then
7453 STRIP=":"
7454fi
7455
9a819804
AO
7456
7457
7458if test -n "$WINDRES"; then
7459 ac_cv_prog_WINDRES=$WINDRES
7460elif test -n "$ac_cv_prog_WINDRES"; then
7461 WINDRES=$ac_cv_prog_WINDRES
7462fi
7463
7464if test -n "$ac_cv_prog_WINDRES"; then
7465 for ncn_progname in windres; do
7466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7467set dummy ${ncn_progname}; ac_word=$2
7468echo "$as_me:$LINENO: checking for $ac_word" >&5
7469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7470if test "${ac_cv_prog_WINDRES+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7472else
7473 if test -n "$WINDRES"; then
7474 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7475else
7476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477for as_dir in $PATH
7478do
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7483 ac_cv_prog_WINDRES="${ncn_progname}"
7484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 break 2
7486 fi
7487done
7488done
7489
7490fi
7491fi
7492WINDRES=$ac_cv_prog_WINDRES
7493if test -n "$WINDRES"; then
7494 echo "$as_me:$LINENO: result: $WINDRES" >&5
7495echo "${ECHO_T}$WINDRES" >&6
7496else
7497 echo "$as_me:$LINENO: result: no" >&5
7498echo "${ECHO_T}no" >&6
7499fi
7500
7501 done
7502fi
7503
7504for ncn_progname in windres; do
05cbd757
PB
7505 if test -n "$ncn_tool_prefix"; then
7506 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7507set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7508echo "$as_me:$LINENO: checking for $ac_word" >&5
7509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7510if test "${ac_cv_prog_WINDRES+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7512else
7513 if test -n "$WINDRES"; then
7514 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7515else
c6b750e1
DJ
7516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517for as_dir in $PATH
7518do
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7523 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7526 fi
7527done
7528done
7529
859789af
AC
7530fi
7531fi
c6b750e1 7532WINDRES=$ac_cv_prog_WINDRES
859789af 7533if test -n "$WINDRES"; then
c6b750e1
DJ
7534 echo "$as_me:$LINENO: result: $WINDRES" >&5
7535echo "${ECHO_T}$WINDRES" >&6
859789af 7536else
c6b750e1
DJ
7537 echo "$as_me:$LINENO: result: no" >&5
7538echo "${ECHO_T}no" >&6
859789af
AC
7539fi
7540
05cbd757
PB
7541 fi
7542 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7544set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7545echo "$as_me:$LINENO: checking for $ac_word" >&5
7546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7547if test "${ac_cv_prog_WINDRES+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7549else
05cbd757
PB
7550 if test -n "$WINDRES"; then
7551 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7552else
c6b750e1
DJ
7553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554for as_dir in $PATH
7555do
7556 IFS=$as_save_IFS
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560 ac_cv_prog_WINDRES="${ncn_progname}"
7561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 break 2
7563 fi
7564done
7565done
7566
859789af
AC
7567fi
7568fi
c6b750e1 7569WINDRES=$ac_cv_prog_WINDRES
05cbd757 7570if test -n "$WINDRES"; then
c6b750e1
DJ
7571 echo "$as_me:$LINENO: result: $WINDRES" >&5
7572echo "${ECHO_T}$WINDRES" >&6
859789af 7573else
c6b750e1
DJ
7574 echo "$as_me:$LINENO: result: no" >&5
7575echo "${ECHO_T}no" >&6
859789af 7576fi
c6b750e1 7577
05cbd757
PB
7578 fi
7579 test -n "$ac_cv_prog_WINDRES" && break
7580done
7581
7582if test -z "$ac_cv_prog_WINDRES" ; then
7583 set dummy windres
7584 if test $build = $host ; then
7585 WINDRES="$2"
859789af 7586 else
05cbd757 7587 WINDRES="${ncn_tool_prefix}$2"
859789af 7588 fi
859789af
AC
7589fi
7590
9a819804
AO
7591
7592
0c24b341
NC
7593if test -n "$WINDMC"; then
7594 ac_cv_prog_WINDMC=$WINDMC
7595elif test -n "$ac_cv_prog_WINDMC"; then
7596 WINDMC=$ac_cv_prog_WINDMC
7597fi
7598
7599if test -n "$ac_cv_prog_WINDMC"; then
7600 for ncn_progname in windmc; do
7601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7602set dummy ${ncn_progname}; ac_word=$2
7603echo "$as_me:$LINENO: checking for $ac_word" >&5
7604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7605if test "${ac_cv_prog_WINDMC+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7607else
7608 if test -n "$WINDMC"; then
7609 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7610else
7611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612for as_dir in $PATH
7613do
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7618 ac_cv_prog_WINDMC="${ncn_progname}"
7619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 break 2
7621 fi
7622done
7623done
7624
7625fi
7626fi
7627WINDMC=$ac_cv_prog_WINDMC
7628if test -n "$WINDMC"; then
7629 echo "$as_me:$LINENO: result: $WINDMC" >&5
7630echo "${ECHO_T}$WINDMC" >&6
7631else
7632 echo "$as_me:$LINENO: result: no" >&5
7633echo "${ECHO_T}no" >&6
7634fi
7635
7636 done
7637fi
7638
7639for ncn_progname in windmc; do
7640 if test -n "$ncn_tool_prefix"; then
7641 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7642set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7643echo "$as_me:$LINENO: checking for $ac_word" >&5
7644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7645if test "${ac_cv_prog_WINDMC+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7647else
7648 if test -n "$WINDMC"; then
7649 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7650else
7651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652for as_dir in $PATH
7653do
7654 IFS=$as_save_IFS
7655 test -z "$as_dir" && as_dir=.
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7658 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 break 2
7661 fi
7662done
7663done
7664
7665fi
7666fi
7667WINDMC=$ac_cv_prog_WINDMC
7668if test -n "$WINDMC"; then
7669 echo "$as_me:$LINENO: result: $WINDMC" >&5
7670echo "${ECHO_T}$WINDMC" >&6
7671else
7672 echo "$as_me:$LINENO: result: no" >&5
7673echo "${ECHO_T}no" >&6
7674fi
7675
7676 fi
7677 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7678 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7679set dummy ${ncn_progname}; ac_word=$2
7680echo "$as_me:$LINENO: checking for $ac_word" >&5
7681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7682if test "${ac_cv_prog_WINDMC+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7684else
7685 if test -n "$WINDMC"; then
7686 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7687else
7688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689for as_dir in $PATH
7690do
7691 IFS=$as_save_IFS
7692 test -z "$as_dir" && as_dir=.
7693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7695 ac_cv_prog_WINDMC="${ncn_progname}"
7696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 break 2
7698 fi
7699done
7700done
7701
7702fi
7703fi
7704WINDMC=$ac_cv_prog_WINDMC
7705if test -n "$WINDMC"; then
7706 echo "$as_me:$LINENO: result: $WINDMC" >&5
7707echo "${ECHO_T}$WINDMC" >&6
7708else
7709 echo "$as_me:$LINENO: result: no" >&5
7710echo "${ECHO_T}no" >&6
7711fi
7712
7713 fi
7714 test -n "$ac_cv_prog_WINDMC" && break
7715done
7716
7717if test -z "$ac_cv_prog_WINDMC" ; then
7718 set dummy windmc
7719 if test $build = $host ; then
7720 WINDMC="$2"
7721 else
7722 WINDMC="${ncn_tool_prefix}$2"
7723 fi
7724fi
7725
7726
7727
9a819804
AO
7728if test -n "$OBJCOPY"; then
7729 ac_cv_prog_OBJCOPY=$OBJCOPY
7730elif test -n "$ac_cv_prog_OBJCOPY"; then
7731 OBJCOPY=$ac_cv_prog_OBJCOPY
7732fi
7733
7734if test -n "$ac_cv_prog_OBJCOPY"; then
7735 for ncn_progname in objcopy; do
7736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7737set dummy ${ncn_progname}; ac_word=$2
7738echo "$as_me:$LINENO: checking for $ac_word" >&5
7739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7740if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7742else
7743 if test -n "$OBJCOPY"; then
7744 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7745else
7746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747for as_dir in $PATH
7748do
7749 IFS=$as_save_IFS
7750 test -z "$as_dir" && as_dir=.
7751 for ac_exec_ext in '' $ac_executable_extensions; do
7752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7753 ac_cv_prog_OBJCOPY="${ncn_progname}"
7754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 break 2
7756 fi
7757done
7758done
7759
7760fi
7761fi
7762OBJCOPY=$ac_cv_prog_OBJCOPY
7763if test -n "$OBJCOPY"; then
7764 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7765echo "${ECHO_T}$OBJCOPY" >&6
7766else
7767 echo "$as_me:$LINENO: result: no" >&5
7768echo "${ECHO_T}no" >&6
7769fi
7770
7771 done
7772fi
7773
7774for ncn_progname in objcopy; do
05cbd757
PB
7775 if test -n "$ncn_tool_prefix"; then
7776 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7777set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7778echo "$as_me:$LINENO: checking for $ac_word" >&5
7779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7780if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7782else
7783 if test -n "$OBJCOPY"; then
7784 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7785else
c6b750e1
DJ
7786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787for as_dir in $PATH
7788do
7789 IFS=$as_save_IFS
7790 test -z "$as_dir" && as_dir=.
7791 for ac_exec_ext in '' $ac_executable_extensions; do
7792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7793 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7795 break 2
7796 fi
7797done
7798done
7799
859789af
AC
7800fi
7801fi
c6b750e1 7802OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7803if test -n "$OBJCOPY"; then
c6b750e1
DJ
7804 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7805echo "${ECHO_T}$OBJCOPY" >&6
859789af 7806else
c6b750e1
DJ
7807 echo "$as_me:$LINENO: result: no" >&5
7808echo "${ECHO_T}no" >&6
859789af
AC
7809fi
7810
05cbd757
PB
7811 fi
7812 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7814set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7815echo "$as_me:$LINENO: checking for $ac_word" >&5
7816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7817if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7819else
05cbd757
PB
7820 if test -n "$OBJCOPY"; then
7821 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7822else
c6b750e1
DJ
7823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824for as_dir in $PATH
7825do
7826 IFS=$as_save_IFS
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7830 ac_cv_prog_OBJCOPY="${ncn_progname}"
7831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 break 2
7833 fi
7834done
7835done
7836
859789af
AC
7837fi
7838fi
c6b750e1 7839OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7840if test -n "$OBJCOPY"; then
c6b750e1
DJ
7841 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7842echo "${ECHO_T}$OBJCOPY" >&6
859789af 7843else
c6b750e1
DJ
7844 echo "$as_me:$LINENO: result: no" >&5
7845echo "${ECHO_T}no" >&6
859789af 7846fi
c6b750e1 7847
05cbd757
PB
7848 fi
7849 test -n "$ac_cv_prog_OBJCOPY" && break
7850done
7851
7852if test -z "$ac_cv_prog_OBJCOPY" ; then
7853 set dummy objcopy
7854 if test $build = $host ; then
7855 OBJCOPY="$2"
859789af 7856 else
05cbd757 7857 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7858 fi
859789af
AC
7859fi
7860
9a819804
AO
7861
7862
7863if test -n "$OBJDUMP"; then
7864 ac_cv_prog_OBJDUMP=$OBJDUMP
7865elif test -n "$ac_cv_prog_OBJDUMP"; then
7866 OBJDUMP=$ac_cv_prog_OBJDUMP
7867fi
7868
7869if test -n "$ac_cv_prog_OBJDUMP"; then
7870 for ncn_progname in objdump; do
7871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7872set dummy ${ncn_progname}; ac_word=$2
7873echo "$as_me:$LINENO: checking for $ac_word" >&5
7874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7875if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7877else
7878 if test -n "$OBJDUMP"; then
7879 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7880else
7881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882for as_dir in $PATH
7883do
7884 IFS=$as_save_IFS
7885 test -z "$as_dir" && as_dir=.
7886 for ac_exec_ext in '' $ac_executable_extensions; do
7887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7888 ac_cv_prog_OBJDUMP="${ncn_progname}"
7889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7890 break 2
7891 fi
7892done
7893done
7894
7895fi
7896fi
7897OBJDUMP=$ac_cv_prog_OBJDUMP
7898if test -n "$OBJDUMP"; then
7899 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7900echo "${ECHO_T}$OBJDUMP" >&6
7901else
7902 echo "$as_me:$LINENO: result: no" >&5
7903echo "${ECHO_T}no" >&6
7904fi
7905
7906 done
7907fi
7908
7909for ncn_progname in objdump; do
05cbd757
PB
7910 if test -n "$ncn_tool_prefix"; then
7911 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7912set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7913echo "$as_me:$LINENO: checking for $ac_word" >&5
7914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7915if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7917else
7918 if test -n "$OBJDUMP"; then
7919 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7920else
c6b750e1
DJ
7921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922for as_dir in $PATH
7923do
7924 IFS=$as_save_IFS
7925 test -z "$as_dir" && as_dir=.
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7928 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 break 2
7931 fi
7932done
7933done
7934
859789af
AC
7935fi
7936fi
c6b750e1 7937OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 7938if test -n "$OBJDUMP"; then
c6b750e1
DJ
7939 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7940echo "${ECHO_T}$OBJDUMP" >&6
859789af 7941else
c6b750e1
DJ
7942 echo "$as_me:$LINENO: result: no" >&5
7943echo "${ECHO_T}no" >&6
859789af
AC
7944fi
7945
05cbd757
PB
7946 fi
7947 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7949set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7950echo "$as_me:$LINENO: checking for $ac_word" >&5
7951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7952if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7954else
05cbd757
PB
7955 if test -n "$OBJDUMP"; then
7956 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 7957else
c6b750e1
DJ
7958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959for as_dir in $PATH
7960do
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7965 ac_cv_prog_OBJDUMP="${ncn_progname}"
7966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 break 2
7968 fi
7969done
7970done
7971
859789af
AC
7972fi
7973fi
c6b750e1 7974OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 7975if test -n "$OBJDUMP"; then
c6b750e1
DJ
7976 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7977echo "${ECHO_T}$OBJDUMP" >&6
859789af 7978else
c6b750e1
DJ
7979 echo "$as_me:$LINENO: result: no" >&5
7980echo "${ECHO_T}no" >&6
859789af 7981fi
c6b750e1 7982
05cbd757
PB
7983 fi
7984 test -n "$ac_cv_prog_OBJDUMP" && break
7985done
7986
7987if test -z "$ac_cv_prog_OBJDUMP" ; then
7988 set dummy objdump
7989 if test $build = $host ; then
7990 OBJDUMP="$2"
859789af 7991 else
05cbd757 7992 OBJDUMP="${ncn_tool_prefix}$2"
859789af 7993 fi
859789af
AC
7994fi
7995
a0da8069
NN
7996
7997
7998
7999
8000
be01d343 8001# Target tools.
c6b750e1 8002
2429c060
PB
8003# Check whether --with-build-time-tools or --without-build-time-tools was given.
8004if test "${with_build_time_tools+set}" = set; then
8005 withval="$with_build_time_tools"
8006 case x"$withval" in
8007 x/*) ;;
8008 *)
8009 with_build_time_tools=
c6b750e1
DJ
8010 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8011echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
8012 ;;
8013 esac
859789af 8014else
2429c060 8015 with_build_time_tools=
c6b750e1 8016fi;
859789af 8017
9a819804
AO
8018
8019
8020if test -n "$CC_FOR_TARGET"; then
8021 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8022elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8023 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8024fi
8025
8026if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8027 for ncn_progname in cc gcc; do
8028 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8029set dummy ${ncn_progname}; ac_word=$2
8030echo "$as_me:$LINENO: checking for $ac_word" >&5
8031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8032if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8033 echo $ECHO_N "(cached) $ECHO_C" >&6
8034else
8035 if test -n "$CC_FOR_TARGET"; then
8036 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8037else
8038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039for as_dir in $PATH
8040do
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8045 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 break 2
8048 fi
8049done
8050done
8051
8052fi
8053fi
8054CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8055if test -n "$CC_FOR_TARGET"; then
8056 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8057echo "${ECHO_T}$CC_FOR_TARGET" >&6
8058else
8059 echo "$as_me:$LINENO: result: no" >&5
8060echo "${ECHO_T}no" >&6
8061fi
8062
8063 done
8064fi
8065
8066if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8067 for ncn_progname in cc gcc; do
c6b750e1
DJ
8068 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8069echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8070 if test -x $with_build_time_tools/${ncn_progname}; then
8071 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8072 echo "$as_me:$LINENO: result: yes" >&5
8073echo "${ECHO_T}yes" >&6
cac3d6c4 8074 break
2429c060 8075 else
c6b750e1
DJ
8076 echo "$as_me:$LINENO: result: no" >&5
8077echo "${ECHO_T}no" >&6
cac3d6c4
CM
8078 fi
8079 done
55db4b87
PB
8080fi
8081
2429c060
PB
8082if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8083 for ncn_progname in cc gcc; do
8084 if test -n "$ncn_target_tool_prefix"; then
8085 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8086set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8087echo "$as_me:$LINENO: checking for $ac_word" >&5
8088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8089if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8091else
8092 if test -n "$CC_FOR_TARGET"; then
8093 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8094else
c6b750e1
DJ
8095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096for as_dir in $PATH
8097do
8098 IFS=$as_save_IFS
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8102 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8104 break 2
8105 fi
8106done
8107done
8108
55db4b87
PB
8109fi
8110fi
c6b750e1 8111CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8112if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8113 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8114echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8115else
c6b750e1
DJ
8116 echo "$as_me:$LINENO: result: no" >&5
8117echo "${ECHO_T}no" >&6
55db4b87
PB
8118fi
8119
2429c060
PB
8120 fi
8121 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8122 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8123set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8124echo "$as_me:$LINENO: checking for $ac_word" >&5
8125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8126if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8127 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8128else
05cbd757
PB
8129 if test -n "$CC_FOR_TARGET"; then
8130 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8131else
c6b750e1
DJ
8132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133for as_dir in $PATH
8134do
8135 IFS=$as_save_IFS
8136 test -z "$as_dir" && as_dir=.
8137 for ac_exec_ext in '' $ac_executable_extensions; do
8138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8139 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8141 break 2
8142 fi
8143done
8144done
8145
55db4b87
PB
8146fi
8147fi
c6b750e1 8148CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8149if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8150 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8151echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8152else
c6b750e1
DJ
8153 echo "$as_me:$LINENO: result: no" >&5
8154echo "${ECHO_T}no" >&6
55db4b87 8155fi
c6b750e1 8156
2429c060
PB
8157 fi
8158 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8159 done
8160fi
c6b750e1 8161
05cbd757
PB
8162if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8163 set dummy cc gcc
8164 if test $build = $target ; then
8165 CC_FOR_TARGET="$2"
55db4b87 8166 else
05cbd757 8167 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8168 fi
d3f5afc4
MS
8169else
8170 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8171fi
8172
9a819804
AO
8173
8174
8175if test -n "$CXX_FOR_TARGET"; then
8176 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8177elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8178 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8179fi
8180
8181if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8182 for ncn_progname in c++ g++ cxx gxx; do
8183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8184set dummy ${ncn_progname}; ac_word=$2
8185echo "$as_me:$LINENO: checking for $ac_word" >&5
8186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8187if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8189else
8190 if test -n "$CXX_FOR_TARGET"; then
8191 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8192else
8193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194for as_dir in $PATH
8195do
8196 IFS=$as_save_IFS
8197 test -z "$as_dir" && as_dir=.
8198 for ac_exec_ext in '' $ac_executable_extensions; do
8199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8200 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8202 break 2
8203 fi
8204done
8205done
8206
8207fi
8208fi
8209CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8210if test -n "$CXX_FOR_TARGET"; then
8211 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8212echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8213else
8214 echo "$as_me:$LINENO: result: no" >&5
8215echo "${ECHO_T}no" >&6
8216fi
8217
8218 done
8219fi
8220
8221if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8222 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8223 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8224echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8225 if test -x $with_build_time_tools/${ncn_progname}; then
8226 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8227 echo "$as_me:$LINENO: result: yes" >&5
8228echo "${ECHO_T}yes" >&6
2429c060
PB
8229 break
8230 else
c6b750e1
DJ
8231 echo "$as_me:$LINENO: result: no" >&5
8232echo "${ECHO_T}no" >&6
2429c060
PB
8233 fi
8234 done
8235fi
8236
8237if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8238 for ncn_progname in c++ g++ cxx gxx; do
8239 if test -n "$ncn_target_tool_prefix"; then
8240 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8241set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8242echo "$as_me:$LINENO: checking for $ac_word" >&5
8243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8244if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8246else
8247 if test -n "$CXX_FOR_TARGET"; then
8248 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8249else
c6b750e1
DJ
8250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251for as_dir in $PATH
8252do
8253 IFS=$as_save_IFS
8254 test -z "$as_dir" && as_dir=.
8255 for ac_exec_ext in '' $ac_executable_extensions; do
8256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8257 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8259 break 2
8260 fi
8261done
8262done
8263
55db4b87
PB
8264fi
8265fi
c6b750e1 8266CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8267if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8268 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8269echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8270else
c6b750e1
DJ
8271 echo "$as_me:$LINENO: result: no" >&5
8272echo "${ECHO_T}no" >&6
55db4b87
PB
8273fi
8274
2429c060
PB
8275 fi
8276 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8278set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8279echo "$as_me:$LINENO: checking for $ac_word" >&5
8280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8281if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8282 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8283else
05cbd757
PB
8284 if test -n "$CXX_FOR_TARGET"; then
8285 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8286else
c6b750e1
DJ
8287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288for as_dir in $PATH
8289do
8290 IFS=$as_save_IFS
8291 test -z "$as_dir" && as_dir=.
8292 for ac_exec_ext in '' $ac_executable_extensions; do
8293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8294 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8296 break 2
8297 fi
8298done
8299done
8300
55db4b87
PB
8301fi
8302fi
c6b750e1 8303CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8304if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8305 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8306echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8307else
c6b750e1
DJ
8308 echo "$as_me:$LINENO: result: no" >&5
8309echo "${ECHO_T}no" >&6
55db4b87 8310fi
c6b750e1 8311
2429c060
PB
8312 fi
8313 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8314 done
8315fi
c6b750e1 8316
05cbd757
PB
8317if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8318 set dummy c++ g++ cxx gxx
8319 if test $build = $target ; then
8320 CXX_FOR_TARGET="$2"
55db4b87 8321 else
05cbd757 8322 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8323 fi
d3f5afc4
MS
8324else
8325 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8326fi
8327
9a819804
AO
8328
8329
8330if test -n "$GCC_FOR_TARGET"; then
8331 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8332elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8333 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8334fi
8335
8336if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8337 for ncn_progname in gcc; do
8338 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8339set dummy ${ncn_progname}; ac_word=$2
8340echo "$as_me:$LINENO: checking for $ac_word" >&5
8341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8342if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8343 echo $ECHO_N "(cached) $ECHO_C" >&6
8344else
8345 if test -n "$GCC_FOR_TARGET"; then
8346 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8347else
8348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349for as_dir in $PATH
8350do
8351 IFS=$as_save_IFS
8352 test -z "$as_dir" && as_dir=.
8353 for ac_exec_ext in '' $ac_executable_extensions; do
8354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8355 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8357 break 2
8358 fi
8359done
8360done
8361
8362fi
8363fi
8364GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8365if test -n "$GCC_FOR_TARGET"; then
8366 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8367echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8368else
8369 echo "$as_me:$LINENO: result: no" >&5
8370echo "${ECHO_T}no" >&6
8371fi
8372
8373 done
8374fi
8375
8376if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8377 for ncn_progname in gcc; do
c6b750e1
DJ
8378 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8379echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8380 if test -x $with_build_time_tools/${ncn_progname}; then
8381 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8382 echo "$as_me:$LINENO: result: yes" >&5
8383echo "${ECHO_T}yes" >&6
2429c060
PB
8384 break
8385 else
c6b750e1
DJ
8386 echo "$as_me:$LINENO: result: no" >&5
8387echo "${ECHO_T}no" >&6
2429c060
PB
8388 fi
8389 done
8390fi
8391
8392if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8393 for ncn_progname in gcc; do
8394 if test -n "$ncn_target_tool_prefix"; then
8395 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8396set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8397echo "$as_me:$LINENO: checking for $ac_word" >&5
8398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8399if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8401else
2429c060
PB
8402 if test -n "$GCC_FOR_TARGET"; then
8403 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8404else
c6b750e1
DJ
8405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406for as_dir in $PATH
8407do
8408 IFS=$as_save_IFS
8409 test -z "$as_dir" && as_dir=.
8410 for ac_exec_ext in '' $ac_executable_extensions; do
8411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8412 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8414 break 2
8415 fi
8416done
8417done
8418
55db4b87
PB
8419fi
8420fi
c6b750e1 8421GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8422if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8423 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8424echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8425else
c6b750e1
DJ
8426 echo "$as_me:$LINENO: result: no" >&5
8427echo "${ECHO_T}no" >&6
55db4b87
PB
8428fi
8429
2429c060
PB
8430 fi
8431 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8433set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8434echo "$as_me:$LINENO: checking for $ac_word" >&5
8435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8436if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8438else
05cbd757
PB
8439 if test -n "$GCC_FOR_TARGET"; then
8440 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8441else
c6b750e1
DJ
8442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8443for as_dir in $PATH
8444do
8445 IFS=$as_save_IFS
8446 test -z "$as_dir" && as_dir=.
8447 for ac_exec_ext in '' $ac_executable_extensions; do
8448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8449 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8451 break 2
8452 fi
8453done
8454done
8455
55db4b87
PB
8456fi
8457fi
c6b750e1 8458GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8459if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8460 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8461echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8462else
c6b750e1
DJ
8463 echo "$as_me:$LINENO: result: no" >&5
8464echo "${ECHO_T}no" >&6
55db4b87 8465fi
c6b750e1 8466
2429c060
PB
8467 fi
8468 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8469 done
8470fi
c6b750e1 8471
05cbd757
PB
8472if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8473 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8474else
8475 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8476fi
8477
9a819804
AO
8478
8479
8480if test -n "$GCJ_FOR_TARGET"; then
8481 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8482elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8483 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8484fi
8485
8486if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8487 for ncn_progname in gcj; do
8488 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8489set dummy ${ncn_progname}; ac_word=$2
8490echo "$as_me:$LINENO: checking for $ac_word" >&5
8491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8492if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8494else
8495 if test -n "$GCJ_FOR_TARGET"; then
8496 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8497else
8498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8499for as_dir in $PATH
8500do
8501 IFS=$as_save_IFS
8502 test -z "$as_dir" && as_dir=.
8503 for ac_exec_ext in '' $ac_executable_extensions; do
8504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8505 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8507 break 2
8508 fi
8509done
8510done
8511
8512fi
8513fi
8514GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8515if test -n "$GCJ_FOR_TARGET"; then
8516 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8517echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8518else
8519 echo "$as_me:$LINENO: result: no" >&5
8520echo "${ECHO_T}no" >&6
8521fi
8522
8523 done
8524fi
8525
8526if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8527 for ncn_progname in gcj; do
c6b750e1
DJ
8528 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8529echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8530 if test -x $with_build_time_tools/${ncn_progname}; then
8531 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8532 echo "$as_me:$LINENO: result: yes" >&5
8533echo "${ECHO_T}yes" >&6
2429c060
PB
8534 break
8535 else
c6b750e1
DJ
8536 echo "$as_me:$LINENO: result: no" >&5
8537echo "${ECHO_T}no" >&6
2429c060
PB
8538 fi
8539 done
8540fi
8541
8542if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8543 for ncn_progname in gcj; do
8544 if test -n "$ncn_target_tool_prefix"; then
8545 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8546set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8547echo "$as_me:$LINENO: checking for $ac_word" >&5
8548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8549if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8551else
8552 if test -n "$GCJ_FOR_TARGET"; then
8553 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8554else
c6b750e1
DJ
8555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8556for as_dir in $PATH
8557do
8558 IFS=$as_save_IFS
8559 test -z "$as_dir" && as_dir=.
8560 for ac_exec_ext in '' $ac_executable_extensions; do
8561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8562 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8564 break 2
8565 fi
8566done
8567done
8568
55db4b87
PB
8569fi
8570fi
9a819804
AO
8571GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8572if test -n "$GCJ_FOR_TARGET"; then
8573 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8574echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8575else
8576 echo "$as_me:$LINENO: result: no" >&5
8577echo "${ECHO_T}no" >&6
8578fi
8579
8580 fi
8581 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8583set dummy ${ncn_progname}; ac_word=$2
8584echo "$as_me:$LINENO: checking for $ac_word" >&5
8585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8586if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8588else
8589 if test -n "$GCJ_FOR_TARGET"; then
8590 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8591else
8592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8593for as_dir in $PATH
8594do
8595 IFS=$as_save_IFS
8596 test -z "$as_dir" && as_dir=.
8597 for ac_exec_ext in '' $ac_executable_extensions; do
8598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8599 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8601 break 2
8602 fi
8603done
8604done
8605
8606fi
8607fi
8608GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8609if test -n "$GCJ_FOR_TARGET"; then
8610 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8611echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8612else
8613 echo "$as_me:$LINENO: result: no" >&5
8614echo "${ECHO_T}no" >&6
8615fi
8616
8617 fi
8618 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8619 done
8620fi
8621
8622if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8623 set dummy gcj
8624 if test $build = $target ; then
8625 GCJ_FOR_TARGET="$2"
8626 else
8627 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8628 fi
d3f5afc4
MS
8629else
8630 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8631fi
8632
8633
8634
8635if test -n "$GFORTRAN_FOR_TARGET"; then
8636 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8637elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8638 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8639fi
8640
9a819804
AO
8641if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8642 for ncn_progname in gfortran; do
8643 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8644set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8645echo "$as_me:$LINENO: checking for $ac_word" >&5
8646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8647if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8648 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8649else
9a819804
AO
8650 if test -n "$GFORTRAN_FOR_TARGET"; then
8651 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8652else
c6b750e1
DJ
8653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654for as_dir in $PATH
8655do
8656 IFS=$as_save_IFS
8657 test -z "$as_dir" && as_dir=.
8658 for ac_exec_ext in '' $ac_executable_extensions; do
8659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8660 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8662 break 2
8663 fi
8664done
8665done
8666
55db4b87
PB
8667fi
8668fi
9a819804
AO
8669GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8670if test -n "$GFORTRAN_FOR_TARGET"; then
8671 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8672echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8673else
c6b750e1
DJ
8674 echo "$as_me:$LINENO: result: no" >&5
8675echo "${ECHO_T}no" >&6
55db4b87 8676fi
c6b750e1 8677
2429c060
PB
8678 done
8679fi
c6b750e1 8680
9a819804 8681if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8682 for ncn_progname in gfortran; do
c6b750e1
DJ
8683 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8684echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8685 if test -x $with_build_time_tools/${ncn_progname}; then
8686 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8687 echo "$as_me:$LINENO: result: yes" >&5
8688echo "${ECHO_T}yes" >&6
2429c060
PB
8689 break
8690 else
c6b750e1
DJ
8691 echo "$as_me:$LINENO: result: no" >&5
8692echo "${ECHO_T}no" >&6
2429c060
PB
8693 fi
8694 done
8695fi
8696
8697if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8698 for ncn_progname in gfortran; do
8699 if test -n "$ncn_target_tool_prefix"; then
8700 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8701set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8702echo "$as_me:$LINENO: checking for $ac_word" >&5
8703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8704if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8706else
8707 if test -n "$GFORTRAN_FOR_TARGET"; then
8708 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8709else
c6b750e1
DJ
8710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8711for as_dir in $PATH
8712do
8713 IFS=$as_save_IFS
8714 test -z "$as_dir" && as_dir=.
8715 for ac_exec_ext in '' $ac_executable_extensions; do
8716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8717 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8719 break 2
8720 fi
8721done
8722done
8723
55db4b87
PB
8724fi
8725fi
c6b750e1 8726GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8727if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8728 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8729echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8730else
c6b750e1
DJ
8731 echo "$as_me:$LINENO: result: no" >&5
8732echo "${ECHO_T}no" >&6
55db4b87
PB
8733fi
8734
2429c060
PB
8735 fi
8736 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8738set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8739echo "$as_me:$LINENO: checking for $ac_word" >&5
8740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8741if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8743else
05cbd757 8744 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8745 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8746else
8747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748for as_dir in $PATH
8749do
8750 IFS=$as_save_IFS
8751 test -z "$as_dir" && as_dir=.
8752 for ac_exec_ext in '' $ac_executable_extensions; do
8753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8754 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8756 break 2
8757 fi
8758done
8759done
8760
55db4b87
PB
8761fi
8762fi
c6b750e1 8763GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8764if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8765 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8766echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8767else
c6b750e1
DJ
8768 echo "$as_me:$LINENO: result: no" >&5
8769echo "${ECHO_T}no" >&6
55db4b87 8770fi
c6b750e1 8771
2429c060
PB
8772 fi
8773 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8774 done
8775fi
c6b750e1 8776
05cbd757
PB
8777if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8778 set dummy gfortran
8779 if test $build = $target ; then
8780 GFORTRAN_FOR_TARGET="$2"
55db4b87 8781 else
05cbd757 8782 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8783 fi
d3f5afc4
MS
8784else
8785 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8786fi
8787
2429c060
PB
8788
8789
2429c060
PB
8790cat > conftest.c << \EOF
8791#ifdef __GNUC__
8792 gcc_yay;
8793#endif
8794EOF
8795if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8796 have_gcc_for_target=yes
859789af 8797else
2429c060
PB
8798 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8799 have_gcc_for_target=no
859789af 8800fi
2429c060
PB
8801rm conftest.c
8802
8803
8804
859789af 8805
2429c060
PB
8806if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8807 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8808 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8809echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8810 if test -x $with_build_time_tools/ar; then
8811 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8812 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8813 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8814echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8815 else
c6b750e1
DJ
8816 echo "$as_me:$LINENO: result: no" >&5
8817echo "${ECHO_T}no" >&6
3a35eeb3 8818 fi
2429c060
PB
8819 elif test $build != $host && test $have_gcc_for_target = yes; then
8820 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8821 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8822 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8823 fi
2429c060 8824fi
c6b750e1 8825if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8826 # Extract the first word of "ar", so it can be a program name with args.
8827set dummy ar; ac_word=$2
c6b750e1
DJ
8828echo "$as_me:$LINENO: checking for $ac_word" >&5
8829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8830if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8831 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8832else
c6b750e1
DJ
8833 case $AR_FOR_TARGET in
8834 [\\/]* | ?:[\\/]*)
2429c060
PB
8835 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8836 ;;
2429c060 8837 *)
c6b750e1
DJ
8838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839for as_dir in $gcc_cv_tool_dirs
8840do
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
8843 for ac_exec_ext in '' $ac_executable_extensions; do
8844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8845 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8847 break 2
8848 fi
8849done
8850done
8851
2429c060
PB
8852 ;;
8853esac
859789af 8854fi
c6b750e1
DJ
8855AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8856
2429c060 8857if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8858 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8859echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8860else
c6b750e1
DJ
8861 echo "$as_me:$LINENO: result: no" >&5
8862echo "${ECHO_T}no" >&6
859789af 8863fi
05cbd757 8864
2429c060
PB
8865fi
8866if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8867
8868
8869if test -n "$AR_FOR_TARGET"; then
8870 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8871elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8872 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8873fi
8874
8875if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8876 for ncn_progname in ar; do
8877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8878set dummy ${ncn_progname}; ac_word=$2
8879echo "$as_me:$LINENO: checking for $ac_word" >&5
8880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8881if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8882 echo $ECHO_N "(cached) $ECHO_C" >&6
8883else
8884 if test -n "$AR_FOR_TARGET"; then
8885 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8886else
8887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888for as_dir in $PATH
8889do
8890 IFS=$as_save_IFS
8891 test -z "$as_dir" && as_dir=.
8892 for ac_exec_ext in '' $ac_executable_extensions; do
8893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8894 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8896 break 2
8897 fi
8898done
8899done
8900
8901fi
8902fi
8903AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8904if test -n "$AR_FOR_TARGET"; then
8905 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8906echo "${ECHO_T}$AR_FOR_TARGET" >&6
8907else
8908 echo "$as_me:$LINENO: result: no" >&5
8909echo "${ECHO_T}no" >&6
8910fi
8911
8912 done
8913fi
8914
8915if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8916 for ncn_progname in ar; do
c6b750e1
DJ
8917 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8918echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8919 if test -x $with_build_time_tools/${ncn_progname}; then
8920 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8921 echo "$as_me:$LINENO: result: yes" >&5
8922echo "${ECHO_T}yes" >&6
2429c060
PB
8923 break
8924 else
c6b750e1
DJ
8925 echo "$as_me:$LINENO: result: no" >&5
8926echo "${ECHO_T}no" >&6
2429c060
PB
8927 fi
8928 done
859789af
AC
8929fi
8930
2429c060
PB
8931if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8932 for ncn_progname in ar; do
8933 if test -n "$ncn_target_tool_prefix"; then
8934 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8935set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8936echo "$as_me:$LINENO: checking for $ac_word" >&5
8937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8938if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8940else
2429c060
PB
8941 if test -n "$AR_FOR_TARGET"; then
8942 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 8943else
c6b750e1
DJ
8944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945for as_dir in $PATH
8946do
8947 IFS=$as_save_IFS
8948 test -z "$as_dir" && as_dir=.
8949 for ac_exec_ext in '' $ac_executable_extensions; do
8950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8951 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8953 break 2
8954 fi
8955done
8956done
8957
7e0f7140
GK
8958fi
8959fi
c6b750e1 8960AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8961if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8962 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8963echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8964else
c6b750e1
DJ
8965 echo "$as_me:$LINENO: result: no" >&5
8966echo "${ECHO_T}no" >&6
7e0f7140
GK
8967fi
8968
2429c060
PB
8969 fi
8970 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 8972set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8973echo "$as_me:$LINENO: checking for $ac_word" >&5
8974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8975if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8976 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8977else
2429c060
PB
8978 if test -n "$AR_FOR_TARGET"; then
8979 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 8980else
c6b750e1
DJ
8981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8982for as_dir in $PATH
8983do
8984 IFS=$as_save_IFS
8985 test -z "$as_dir" && as_dir=.
8986 for ac_exec_ext in '' $ac_executable_extensions; do
8987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8988 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8990 break 2
8991 fi
8992done
8993done
8994
7e0f7140
GK
8995fi
8996fi
c6b750e1 8997AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8998if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8999 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9000echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9001else
c6b750e1
DJ
9002 echo "$as_me:$LINENO: result: no" >&5
9003echo "${ECHO_T}no" >&6
7e0f7140 9004fi
c6b750e1 9005
2429c060
PB
9006 fi
9007 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9008 done
9009fi
c6b750e1 9010
2429c060
PB
9011if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9012 set dummy ar
7e0f7140 9013 if test $build = $target ; then
2429c060 9014 AR_FOR_TARGET="$2"
7e0f7140 9015 else
2429c060 9016 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 9017 fi
d3f5afc4
MS
9018else
9019 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
9020fi
9021
3a35eeb3
PB
9022else
9023 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
9024fi
9025
9026
9027
9028
9029if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9030 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9031 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9032echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9033 if test -x $with_build_time_tools/as; then
9034 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9035 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
9036 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9037echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 9038 else
c6b750e1
DJ
9039 echo "$as_me:$LINENO: result: no" >&5
9040echo "${ECHO_T}no" >&6
3a35eeb3 9041 fi
2429c060
PB
9042 elif test $build != $host && test $have_gcc_for_target = yes; then
9043 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
9044 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9045 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
9046 fi
9047fi
c6b750e1 9048if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9049 # Extract the first word of "as", so it can be a program name with args.
9050set dummy as; ac_word=$2
c6b750e1
DJ
9051echo "$as_me:$LINENO: checking for $ac_word" >&5
9052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9053if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9055else
c6b750e1
DJ
9056 case $AS_FOR_TARGET in
9057 [\\/]* | ?:[\\/]*)
2429c060
PB
9058 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9059 ;;
2429c060 9060 *)
c6b750e1
DJ
9061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9062for as_dir in $gcc_cv_tool_dirs
9063do
9064 IFS=$as_save_IFS
9065 test -z "$as_dir" && as_dir=.
9066 for ac_exec_ext in '' $ac_executable_extensions; do
9067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9068 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9070 break 2
9071 fi
9072done
9073done
9074
2429c060
PB
9075 ;;
9076esac
9077fi
c6b750e1
DJ
9078AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9079
2429c060 9080if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9081 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9082echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9083else
c6b750e1
DJ
9084 echo "$as_me:$LINENO: result: no" >&5
9085echo "${ECHO_T}no" >&6
2429c060
PB
9086fi
9087
9088fi
9089if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9090
9091
9092if test -n "$AS_FOR_TARGET"; then
9093 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9094elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9095 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9096fi
9097
9098if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9099 for ncn_progname in as; do
9100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9101set dummy ${ncn_progname}; ac_word=$2
9102echo "$as_me:$LINENO: checking for $ac_word" >&5
9103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9104if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9105 echo $ECHO_N "(cached) $ECHO_C" >&6
9106else
9107 if test -n "$AS_FOR_TARGET"; then
9108 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9109else
9110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111for as_dir in $PATH
9112do
9113 IFS=$as_save_IFS
9114 test -z "$as_dir" && as_dir=.
9115 for ac_exec_ext in '' $ac_executable_extensions; do
9116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9117 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9119 break 2
9120 fi
9121done
9122done
9123
9124fi
9125fi
9126AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9127if test -n "$AS_FOR_TARGET"; then
9128 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9129echo "${ECHO_T}$AS_FOR_TARGET" >&6
9130else
9131 echo "$as_me:$LINENO: result: no" >&5
9132echo "${ECHO_T}no" >&6
9133fi
9134
9135 done
9136fi
9137
9138if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9139 for ncn_progname in as; do
c6b750e1
DJ
9140 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9141echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9142 if test -x $with_build_time_tools/${ncn_progname}; then
9143 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9144 echo "$as_me:$LINENO: result: yes" >&5
9145echo "${ECHO_T}yes" >&6
2429c060
PB
9146 break
9147 else
c6b750e1
DJ
9148 echo "$as_me:$LINENO: result: no" >&5
9149echo "${ECHO_T}no" >&6
2429c060
PB
9150 fi
9151 done
9152fi
9153
9154if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9155 for ncn_progname in as; do
9156 if test -n "$ncn_target_tool_prefix"; then
9157 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9158set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9159echo "$as_me:$LINENO: checking for $ac_word" >&5
9160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9161if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9163else
9164 if test -n "$AS_FOR_TARGET"; then
9165 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9166else
c6b750e1
DJ
9167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9168for as_dir in $PATH
9169do
9170 IFS=$as_save_IFS
9171 test -z "$as_dir" && as_dir=.
9172 for ac_exec_ext in '' $ac_executable_extensions; do
9173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9174 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9176 break 2
9177 fi
9178done
9179done
9180
2429c060
PB
9181fi
9182fi
c6b750e1 9183AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9184if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9185 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9186echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9187else
c6b750e1
DJ
9188 echo "$as_me:$LINENO: result: no" >&5
9189echo "${ECHO_T}no" >&6
2429c060
PB
9190fi
9191
9192 fi
9193 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9195set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9196echo "$as_me:$LINENO: checking for $ac_word" >&5
9197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9198if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9200else
9201 if test -n "$AS_FOR_TARGET"; then
9202 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9203else
c6b750e1
DJ
9204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9205for as_dir in $PATH
9206do
9207 IFS=$as_save_IFS
9208 test -z "$as_dir" && as_dir=.
9209 for ac_exec_ext in '' $ac_executable_extensions; do
9210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9211 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9213 break 2
9214 fi
9215done
9216done
9217
2429c060
PB
9218fi
9219fi
c6b750e1 9220AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9221if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9222 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9223echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9224else
c6b750e1
DJ
9225 echo "$as_me:$LINENO: result: no" >&5
9226echo "${ECHO_T}no" >&6
2429c060 9227fi
c6b750e1 9228
2429c060
PB
9229 fi
9230 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9231 done
9232fi
c6b750e1 9233
2429c060
PB
9234if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9235 set dummy as
9236 if test $build = $target ; then
9237 AS_FOR_TARGET="$2"
9238 else
9239 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9240 fi
d3f5afc4
MS
9241else
9242 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9243fi
9244
3a35eeb3
PB
9245else
9246 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9247fi
9248
9249
9250
9251
9252if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9253 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9254 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9255echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9256 if test -x $with_build_time_tools/dlltool; then
9257 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9258 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9259 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9260echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9261 else
c6b750e1
DJ
9262 echo "$as_me:$LINENO: result: no" >&5
9263echo "${ECHO_T}no" >&6
3a35eeb3 9264 fi
2429c060
PB
9265 elif test $build != $host && test $have_gcc_for_target = yes; then
9266 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9267 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9268 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9269 fi
9270fi
c6b750e1 9271if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9272 # Extract the first word of "dlltool", so it can be a program name with args.
9273set dummy dlltool; ac_word=$2
c6b750e1
DJ
9274echo "$as_me:$LINENO: checking for $ac_word" >&5
9275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9276if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9277 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9278else
c6b750e1
DJ
9279 case $DLLTOOL_FOR_TARGET in
9280 [\\/]* | ?:[\\/]*)
2429c060
PB
9281 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9282 ;;
2429c060 9283 *)
c6b750e1
DJ
9284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9285for as_dir in $gcc_cv_tool_dirs
9286do
9287 IFS=$as_save_IFS
9288 test -z "$as_dir" && as_dir=.
9289 for ac_exec_ext in '' $ac_executable_extensions; do
9290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9291 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9293 break 2
9294 fi
9295done
9296done
9297
2429c060
PB
9298 ;;
9299esac
9300fi
c6b750e1
DJ
9301DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9302
2429c060 9303if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9304 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9305echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9306else
c6b750e1
DJ
9307 echo "$as_me:$LINENO: result: no" >&5
9308echo "${ECHO_T}no" >&6
2429c060
PB
9309fi
9310
9311fi
9312if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9313
9314
9315if test -n "$DLLTOOL_FOR_TARGET"; then
9316 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9317elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9318 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9319fi
9320
9321if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9322 for ncn_progname in dlltool; do
9323 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9324set dummy ${ncn_progname}; ac_word=$2
9325echo "$as_me:$LINENO: checking for $ac_word" >&5
9326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9327if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
9329else
9330 if test -n "$DLLTOOL_FOR_TARGET"; then
9331 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9332else
9333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9334for as_dir in $PATH
9335do
9336 IFS=$as_save_IFS
9337 test -z "$as_dir" && as_dir=.
9338 for ac_exec_ext in '' $ac_executable_extensions; do
9339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9340 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9342 break 2
9343 fi
9344done
9345done
9346
9347fi
9348fi
9349DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9350if test -n "$DLLTOOL_FOR_TARGET"; then
9351 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9352echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9353else
9354 echo "$as_me:$LINENO: result: no" >&5
9355echo "${ECHO_T}no" >&6
9356fi
9357
9358 done
9359fi
9360
9361if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9362 for ncn_progname in dlltool; do
c6b750e1
DJ
9363 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9364echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9365 if test -x $with_build_time_tools/${ncn_progname}; then
9366 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9367 echo "$as_me:$LINENO: result: yes" >&5
9368echo "${ECHO_T}yes" >&6
2429c060
PB
9369 break
9370 else
c6b750e1
DJ
9371 echo "$as_me:$LINENO: result: no" >&5
9372echo "${ECHO_T}no" >&6
2429c060
PB
9373 fi
9374 done
9375fi
9376
9377if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9378 for ncn_progname in dlltool; do
9379 if test -n "$ncn_target_tool_prefix"; then
9380 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9381set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9382echo "$as_me:$LINENO: checking for $ac_word" >&5
9383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9384if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9386else
9387 if test -n "$DLLTOOL_FOR_TARGET"; then
9388 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9389else
c6b750e1
DJ
9390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9391for as_dir in $PATH
9392do
9393 IFS=$as_save_IFS
9394 test -z "$as_dir" && as_dir=.
9395 for ac_exec_ext in '' $ac_executable_extensions; do
9396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9397 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9399 break 2
9400 fi
9401done
9402done
9403
2429c060
PB
9404fi
9405fi
c6b750e1 9406DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9407if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9408 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9409echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9410else
c6b750e1
DJ
9411 echo "$as_me:$LINENO: result: no" >&5
9412echo "${ECHO_T}no" >&6
2429c060
PB
9413fi
9414
9415 fi
9416 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9417 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9418set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9419echo "$as_me:$LINENO: checking for $ac_word" >&5
9420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9421if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9423else
9424 if test -n "$DLLTOOL_FOR_TARGET"; then
9425 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9426else
c6b750e1
DJ
9427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9428for as_dir in $PATH
9429do
9430 IFS=$as_save_IFS
9431 test -z "$as_dir" && as_dir=.
9432 for ac_exec_ext in '' $ac_executable_extensions; do
9433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9434 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9436 break 2
9437 fi
9438done
9439done
9440
2429c060
PB
9441fi
9442fi
c6b750e1 9443DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9444if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9445 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9446echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9447else
c6b750e1
DJ
9448 echo "$as_me:$LINENO: result: no" >&5
9449echo "${ECHO_T}no" >&6
2429c060 9450fi
c6b750e1 9451
2429c060
PB
9452 fi
9453 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9454 done
9455fi
c6b750e1 9456
2429c060
PB
9457if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9458 set dummy dlltool
9459 if test $build = $target ; then
9460 DLLTOOL_FOR_TARGET="$2"
9461 else
9462 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9463 fi
d3f5afc4
MS
9464else
9465 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9466fi
9467
3a35eeb3
PB
9468else
9469 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9470fi
9471
9472
9473
9474
9475if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9476 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9477 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9478echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9479 if test -x $with_build_time_tools/ld; then
9480 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9481 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9482 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9483echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9484 else
c6b750e1
DJ
9485 echo "$as_me:$LINENO: result: no" >&5
9486echo "${ECHO_T}no" >&6
3a35eeb3 9487 fi
2429c060
PB
9488 elif test $build != $host && test $have_gcc_for_target = yes; then
9489 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9490 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9491 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9492 fi
9493fi
c6b750e1 9494if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9495 # Extract the first word of "ld", so it can be a program name with args.
9496set dummy ld; ac_word=$2
c6b750e1
DJ
9497echo "$as_me:$LINENO: checking for $ac_word" >&5
9498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9499if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9501else
c6b750e1
DJ
9502 case $LD_FOR_TARGET in
9503 [\\/]* | ?:[\\/]*)
2429c060
PB
9504 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9505 ;;
2429c060 9506 *)
c6b750e1
DJ
9507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9508for as_dir in $gcc_cv_tool_dirs
9509do
9510 IFS=$as_save_IFS
9511 test -z "$as_dir" && as_dir=.
9512 for ac_exec_ext in '' $ac_executable_extensions; do
9513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9514 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9516 break 2
9517 fi
9518done
9519done
9520
2429c060
PB
9521 ;;
9522esac
9523fi
c6b750e1
DJ
9524LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9525
2429c060 9526if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9527 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9528echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9529else
c6b750e1
DJ
9530 echo "$as_me:$LINENO: result: no" >&5
9531echo "${ECHO_T}no" >&6
2429c060
PB
9532fi
9533
9534fi
9535if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9536
9537
9538if test -n "$LD_FOR_TARGET"; then
9539 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9540elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9541 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9542fi
9543
9544if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9545 for ncn_progname in ld; do
9546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9547set dummy ${ncn_progname}; ac_word=$2
9548echo "$as_me:$LINENO: checking for $ac_word" >&5
9549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9550if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9552else
9553 if test -n "$LD_FOR_TARGET"; then
9554 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9555else
9556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557for as_dir in $PATH
9558do
9559 IFS=$as_save_IFS
9560 test -z "$as_dir" && as_dir=.
9561 for ac_exec_ext in '' $ac_executable_extensions; do
9562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9563 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9565 break 2
9566 fi
9567done
9568done
9569
9570fi
9571fi
9572LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9573if test -n "$LD_FOR_TARGET"; then
9574 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9575echo "${ECHO_T}$LD_FOR_TARGET" >&6
9576else
9577 echo "$as_me:$LINENO: result: no" >&5
9578echo "${ECHO_T}no" >&6
9579fi
9580
9581 done
9582fi
9583
9584if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9585 for ncn_progname in ld; do
c6b750e1
DJ
9586 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9587echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9588 if test -x $with_build_time_tools/${ncn_progname}; then
9589 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9590 echo "$as_me:$LINENO: result: yes" >&5
9591echo "${ECHO_T}yes" >&6
2429c060
PB
9592 break
9593 else
c6b750e1
DJ
9594 echo "$as_me:$LINENO: result: no" >&5
9595echo "${ECHO_T}no" >&6
2429c060
PB
9596 fi
9597 done
9598fi
9599
9600if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9601 for ncn_progname in ld; do
9602 if test -n "$ncn_target_tool_prefix"; then
9603 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9604set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9605echo "$as_me:$LINENO: checking for $ac_word" >&5
9606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9607if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9609else
9610 if test -n "$LD_FOR_TARGET"; then
9611 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9612else
c6b750e1
DJ
9613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9614for as_dir in $PATH
9615do
9616 IFS=$as_save_IFS
9617 test -z "$as_dir" && as_dir=.
9618 for ac_exec_ext in '' $ac_executable_extensions; do
9619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9620 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9622 break 2
9623 fi
9624done
9625done
9626
2429c060
PB
9627fi
9628fi
c6b750e1 9629LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9630if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9631 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9632echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9633else
c6b750e1
DJ
9634 echo "$as_me:$LINENO: result: no" >&5
9635echo "${ECHO_T}no" >&6
2429c060
PB
9636fi
9637
9638 fi
9639 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9641set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9642echo "$as_me:$LINENO: checking for $ac_word" >&5
9643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9644if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9646else
9647 if test -n "$LD_FOR_TARGET"; then
9648 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9649else
c6b750e1
DJ
9650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9651for as_dir in $PATH
9652do
9653 IFS=$as_save_IFS
9654 test -z "$as_dir" && as_dir=.
9655 for ac_exec_ext in '' $ac_executable_extensions; do
9656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9657 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9659 break 2
9660 fi
9661done
9662done
9663
2429c060
PB
9664fi
9665fi
c6b750e1 9666LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9667if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9668 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9669echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9670else
c6b750e1
DJ
9671 echo "$as_me:$LINENO: result: no" >&5
9672echo "${ECHO_T}no" >&6
2429c060 9673fi
c6b750e1 9674
2429c060
PB
9675 fi
9676 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9677 done
9678fi
c6b750e1 9679
2429c060
PB
9680if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9681 set dummy ld
9682 if test $build = $target ; then
9683 LD_FOR_TARGET="$2"
9684 else
9685 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9686 fi
d3f5afc4
MS
9687else
9688 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9689fi
9690
3a35eeb3
PB
9691else
9692 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9693fi
9694
9695
9696
9697
9698if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9699 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9700 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9701echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9702 if test -x $with_build_time_tools/lipo; then
9703 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9704 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9705 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9706echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9707 else
c6b750e1
DJ
9708 echo "$as_me:$LINENO: result: no" >&5
9709echo "${ECHO_T}no" >&6
3a35eeb3 9710 fi
2429c060
PB
9711 elif test $build != $host && test $have_gcc_for_target = yes; then
9712 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9713 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9714 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9715 fi
9716fi
9a819804
AO
9717if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9718 # Extract the first word of "lipo", so it can be a program name with args.
9719set dummy lipo; ac_word=$2
9720echo "$as_me:$LINENO: checking for $ac_word" >&5
9721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9722if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9724else
9725 case $LIPO_FOR_TARGET in
9726 [\\/]* | ?:[\\/]*)
9727 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9728 ;;
9729 *)
9730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9731for as_dir in $gcc_cv_tool_dirs
9732do
9733 IFS=$as_save_IFS
9734 test -z "$as_dir" && as_dir=.
9735 for ac_exec_ext in '' $ac_executable_extensions; do
9736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9737 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9739 break 2
9740 fi
9741done
9742done
9743
9744 ;;
9745esac
9746fi
9747LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9748
9749if test -n "$LIPO_FOR_TARGET"; then
9750 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9751echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9752else
9753 echo "$as_me:$LINENO: result: no" >&5
9754echo "${ECHO_T}no" >&6
9755fi
9756
9757fi
9758if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9759
9760
9761if test -n "$LIPO_FOR_TARGET"; then
9762 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9763elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9764 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9765fi
9766
9767if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9768 for ncn_progname in lipo; do
9769 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9770set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9771echo "$as_me:$LINENO: checking for $ac_word" >&5
9772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9773if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9774 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9775else
9a819804
AO
9776 if test -n "$LIPO_FOR_TARGET"; then
9777 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9778else
9779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9780for as_dir in $PATH
c6b750e1
DJ
9781do
9782 IFS=$as_save_IFS
9783 test -z "$as_dir" && as_dir=.
9784 for ac_exec_ext in '' $ac_executable_extensions; do
9785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9786 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9788 break 2
9789 fi
9790done
9791done
9792
2429c060 9793fi
9a819804
AO
9794fi
9795LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9796if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9797 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9798echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9799else
c6b750e1
DJ
9800 echo "$as_me:$LINENO: result: no" >&5
9801echo "${ECHO_T}no" >&6
2429c060
PB
9802fi
9803
9a819804 9804 done
2429c060 9805fi
9a819804
AO
9806
9807if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9808 for ncn_progname in lipo; do
c6b750e1
DJ
9809 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9810echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9811 if test -x $with_build_time_tools/${ncn_progname}; then
9812 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9813 echo "$as_me:$LINENO: result: yes" >&5
9814echo "${ECHO_T}yes" >&6
2429c060
PB
9815 break
9816 else
c6b750e1
DJ
9817 echo "$as_me:$LINENO: result: no" >&5
9818echo "${ECHO_T}no" >&6
2429c060
PB
9819 fi
9820 done
9821fi
9822
9823if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9824 for ncn_progname in lipo; do
9825 if test -n "$ncn_target_tool_prefix"; then
9826 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9827set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9828echo "$as_me:$LINENO: checking for $ac_word" >&5
9829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9830if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9832else
9833 if test -n "$LIPO_FOR_TARGET"; then
9834 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9835else
c6b750e1
DJ
9836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9837for as_dir in $PATH
9838do
9839 IFS=$as_save_IFS
9840 test -z "$as_dir" && as_dir=.
9841 for ac_exec_ext in '' $ac_executable_extensions; do
9842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9843 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9845 break 2
9846 fi
9847done
9848done
9849
2429c060
PB
9850fi
9851fi
c6b750e1 9852LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9853if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9854 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9855echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9856else
c6b750e1
DJ
9857 echo "$as_me:$LINENO: result: no" >&5
9858echo "${ECHO_T}no" >&6
2429c060
PB
9859fi
9860
9861 fi
9862 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9863 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9864set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9865echo "$as_me:$LINENO: checking for $ac_word" >&5
9866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9867if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9868 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9869else
9870 if test -n "$LIPO_FOR_TARGET"; then
9871 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9872else
c6b750e1
DJ
9873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9874for as_dir in $PATH
9875do
9876 IFS=$as_save_IFS
9877 test -z "$as_dir" && as_dir=.
9878 for ac_exec_ext in '' $ac_executable_extensions; do
9879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9880 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9882 break 2
9883 fi
9884done
9885done
9886
2429c060
PB
9887fi
9888fi
c6b750e1 9889LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9890if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9891 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9892echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9893else
c6b750e1
DJ
9894 echo "$as_me:$LINENO: result: no" >&5
9895echo "${ECHO_T}no" >&6
2429c060 9896fi
c6b750e1 9897
2429c060
PB
9898 fi
9899 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9900 done
9901fi
c6b750e1 9902
2429c060
PB
9903if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9904 set dummy lipo
9905 if test $build = $target ; then
9906 LIPO_FOR_TARGET="$2"
9907 else
9908 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9909 fi
d3f5afc4
MS
9910else
9911 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
9912fi
9913
3a35eeb3
PB
9914else
9915 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
9916fi
9917
9918
9919
9920
9921if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9922 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9923 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9924echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9925 if test -x $with_build_time_tools/nm; then
9926 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9927 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
9928 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9929echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 9930 else
c6b750e1
DJ
9931 echo "$as_me:$LINENO: result: no" >&5
9932echo "${ECHO_T}no" >&6
3a35eeb3 9933 fi
2429c060
PB
9934 elif test $build != $host && test $have_gcc_for_target = yes; then
9935 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
9936 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9937 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
9938 fi
9939fi
c6b750e1 9940if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9941 # Extract the first word of "nm", so it can be a program name with args.
9942set dummy nm; ac_word=$2
c6b750e1
DJ
9943echo "$as_me:$LINENO: checking for $ac_word" >&5
9944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9945if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9947else
c6b750e1
DJ
9948 case $NM_FOR_TARGET in
9949 [\\/]* | ?:[\\/]*)
2429c060
PB
9950 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9951 ;;
2429c060 9952 *)
c6b750e1
DJ
9953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9954for as_dir in $gcc_cv_tool_dirs
9955do
9956 IFS=$as_save_IFS
9957 test -z "$as_dir" && as_dir=.
9958 for ac_exec_ext in '' $ac_executable_extensions; do
9959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9960 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9962 break 2
9963 fi
9964done
9965done
9966
2429c060
PB
9967 ;;
9968esac
9969fi
c6b750e1
DJ
9970NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9971
2429c060 9972if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9973 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9974echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 9975else
c6b750e1
DJ
9976 echo "$as_me:$LINENO: result: no" >&5
9977echo "${ECHO_T}no" >&6
2429c060
PB
9978fi
9979
9980fi
9981if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
9982
9983
9984if test -n "$NM_FOR_TARGET"; then
9985 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9986elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9987 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9988fi
9989
9990if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9991 for ncn_progname in nm; do
9992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9993set dummy ${ncn_progname}; ac_word=$2
9994echo "$as_me:$LINENO: checking for $ac_word" >&5
9995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9996if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9998else
9999 if test -n "$NM_FOR_TARGET"; then
10000 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10001else
10002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003for as_dir in $PATH
10004do
10005 IFS=$as_save_IFS
10006 test -z "$as_dir" && as_dir=.
10007 for ac_exec_ext in '' $ac_executable_extensions; do
10008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10009 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10011 break 2
10012 fi
10013done
10014done
10015
10016fi
10017fi
10018NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10019if test -n "$NM_FOR_TARGET"; then
10020 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10021echo "${ECHO_T}$NM_FOR_TARGET" >&6
10022else
10023 echo "$as_me:$LINENO: result: no" >&5
10024echo "${ECHO_T}no" >&6
10025fi
10026
10027 done
10028fi
10029
10030if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10031 for ncn_progname in nm; do
c6b750e1
DJ
10032 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10033echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10034 if test -x $with_build_time_tools/${ncn_progname}; then
10035 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10036 echo "$as_me:$LINENO: result: yes" >&5
10037echo "${ECHO_T}yes" >&6
2429c060
PB
10038 break
10039 else
c6b750e1
DJ
10040 echo "$as_me:$LINENO: result: no" >&5
10041echo "${ECHO_T}no" >&6
2429c060
PB
10042 fi
10043 done
10044fi
10045
10046if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10047 for ncn_progname in nm; do
10048 if test -n "$ncn_target_tool_prefix"; then
10049 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10050set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10051echo "$as_me:$LINENO: checking for $ac_word" >&5
10052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10053if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10055else
55db4b87
PB
10056 if test -n "$NM_FOR_TARGET"; then
10057 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10058else
c6b750e1
DJ
10059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10060for as_dir in $PATH
10061do
10062 IFS=$as_save_IFS
10063 test -z "$as_dir" && as_dir=.
10064 for ac_exec_ext in '' $ac_executable_extensions; do
10065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10066 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10068 break 2
10069 fi
10070done
10071done
10072
859789af
AC
10073fi
10074fi
c6b750e1 10075NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 10076if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10077 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10078echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10079else
c6b750e1
DJ
10080 echo "$as_me:$LINENO: result: no" >&5
10081echo "${ECHO_T}no" >&6
859789af
AC
10082fi
10083
2429c060
PB
10084 fi
10085 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10087set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10088echo "$as_me:$LINENO: checking for $ac_word" >&5
10089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10090if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10092else
05cbd757
PB
10093 if test -n "$NM_FOR_TARGET"; then
10094 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10095else
c6b750e1
DJ
10096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097for as_dir in $PATH
10098do
10099 IFS=$as_save_IFS
10100 test -z "$as_dir" && as_dir=.
10101 for ac_exec_ext in '' $ac_executable_extensions; do
10102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10103 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10105 break 2
10106 fi
10107done
10108done
10109
859789af
AC
10110fi
10111fi
c6b750e1 10112NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10113if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10114 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10115echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10116else
c6b750e1
DJ
10117 echo "$as_me:$LINENO: result: no" >&5
10118echo "${ECHO_T}no" >&6
859789af 10119fi
c6b750e1 10120
2429c060
PB
10121 fi
10122 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10123 done
10124fi
c6b750e1 10125
05cbd757
PB
10126if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10127 set dummy nm
10128 if test $build = $target ; then
10129 NM_FOR_TARGET="$2"
859789af 10130 else
05cbd757 10131 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10132 fi
d3f5afc4
MS
10133else
10134 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10135fi
10136
3a35eeb3
PB
10137else
10138 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10139fi
10140
10141
10142
10143
10144if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10145 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10146 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10147echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10148 if test -x $with_build_time_tools/objdump; then
10149 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10150 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10151 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10152echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10153 else
c6b750e1
DJ
10154 echo "$as_me:$LINENO: result: no" >&5
10155echo "${ECHO_T}no" >&6
3a35eeb3 10156 fi
2429c060
PB
10157 elif test $build != $host && test $have_gcc_for_target = yes; then
10158 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10159 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10160 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10161 fi
10162fi
c6b750e1 10163if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10164 # Extract the first word of "objdump", so it can be a program name with args.
10165set dummy objdump; ac_word=$2
c6b750e1
DJ
10166echo "$as_me:$LINENO: checking for $ac_word" >&5
10167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10168if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10170else
c6b750e1
DJ
10171 case $OBJDUMP_FOR_TARGET in
10172 [\\/]* | ?:[\\/]*)
2429c060
PB
10173 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10174 ;;
2429c060 10175 *)
c6b750e1
DJ
10176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10177for as_dir in $gcc_cv_tool_dirs
10178do
10179 IFS=$as_save_IFS
10180 test -z "$as_dir" && as_dir=.
10181 for ac_exec_ext in '' $ac_executable_extensions; do
10182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10183 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10185 break 2
10186 fi
10187done
10188done
10189
2429c060
PB
10190 ;;
10191esac
10192fi
c6b750e1
DJ
10193OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10194
2429c060 10195if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10196 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10197echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10198else
c6b750e1
DJ
10199 echo "$as_me:$LINENO: result: no" >&5
10200echo "${ECHO_T}no" >&6
2429c060
PB
10201fi
10202
10203fi
10204if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10205
10206
10207if test -n "$OBJDUMP_FOR_TARGET"; then
10208 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10209elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10210 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10211fi
10212
10213if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10214 for ncn_progname in objdump; do
10215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10216set dummy ${ncn_progname}; ac_word=$2
10217echo "$as_me:$LINENO: checking for $ac_word" >&5
10218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10219if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10221else
10222 if test -n "$OBJDUMP_FOR_TARGET"; then
10223 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10224else
10225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10226for as_dir in $PATH
10227do
10228 IFS=$as_save_IFS
10229 test -z "$as_dir" && as_dir=.
10230 for ac_exec_ext in '' $ac_executable_extensions; do
10231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10232 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10234 break 2
10235 fi
10236done
10237done
10238
10239fi
10240fi
10241OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10242if test -n "$OBJDUMP_FOR_TARGET"; then
10243 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10244echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10245else
10246 echo "$as_me:$LINENO: result: no" >&5
10247echo "${ECHO_T}no" >&6
10248fi
10249
10250 done
10251fi
10252
10253if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10254 for ncn_progname in objdump; do
c6b750e1
DJ
10255 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10256echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10257 if test -x $with_build_time_tools/${ncn_progname}; then
10258 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10259 echo "$as_me:$LINENO: result: yes" >&5
10260echo "${ECHO_T}yes" >&6
2429c060
PB
10261 break
10262 else
c6b750e1
DJ
10263 echo "$as_me:$LINENO: result: no" >&5
10264echo "${ECHO_T}no" >&6
2429c060
PB
10265 fi
10266 done
10267fi
10268
10269if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10270 for ncn_progname in objdump; do
10271 if test -n "$ncn_target_tool_prefix"; then
10272 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10273set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10274echo "$as_me:$LINENO: checking for $ac_word" >&5
10275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10276if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10278else
10279 if test -n "$OBJDUMP_FOR_TARGET"; then
10280 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10281else
c6b750e1
DJ
10282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10283for as_dir in $PATH
10284do
10285 IFS=$as_save_IFS
10286 test -z "$as_dir" && as_dir=.
10287 for ac_exec_ext in '' $ac_executable_extensions; do
10288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10289 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10291 break 2
10292 fi
10293done
10294done
10295
5ae72758
DJ
10296fi
10297fi
c6b750e1 10298OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10299if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10300 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10301echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10302else
c6b750e1
DJ
10303 echo "$as_me:$LINENO: result: no" >&5
10304echo "${ECHO_T}no" >&6
5ae72758
DJ
10305fi
10306
2429c060
PB
10307 fi
10308 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10309 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10310set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10311echo "$as_me:$LINENO: checking for $ac_word" >&5
10312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10313if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10315else
10316 if test -n "$OBJDUMP_FOR_TARGET"; then
10317 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10318else
c6b750e1
DJ
10319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10320for as_dir in $PATH
10321do
10322 IFS=$as_save_IFS
10323 test -z "$as_dir" && as_dir=.
10324 for ac_exec_ext in '' $ac_executable_extensions; do
10325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10326 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10328 break 2
10329 fi
10330done
10331done
10332
5ae72758
DJ
10333fi
10334fi
c6b750e1 10335OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10336if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10337 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10338echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10339else
c6b750e1
DJ
10340 echo "$as_me:$LINENO: result: no" >&5
10341echo "${ECHO_T}no" >&6
5ae72758 10342fi
c6b750e1 10343
2429c060
PB
10344 fi
10345 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10346 done
10347fi
c6b750e1 10348
5ae72758
DJ
10349if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10350 set dummy objdump
10351 if test $build = $target ; then
10352 OBJDUMP_FOR_TARGET="$2"
10353 else
10354 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10355 fi
d3f5afc4
MS
10356else
10357 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10358fi
10359
3a35eeb3
PB
10360else
10361 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10362fi
10363
10364
10365
10366
10367if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10368 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10369 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10370echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10371 if test -x $with_build_time_tools/ranlib; then
10372 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10373 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10374 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10375echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10376 else
c6b750e1
DJ
10377 echo "$as_me:$LINENO: result: no" >&5
10378echo "${ECHO_T}no" >&6
3a35eeb3 10379 fi
2429c060
PB
10380 elif test $build != $host && test $have_gcc_for_target = yes; then
10381 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10382 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10383 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10384 fi
10385fi
c6b750e1 10386if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10387 # Extract the first word of "ranlib", so it can be a program name with args.
10388set dummy ranlib; ac_word=$2
c6b750e1
DJ
10389echo "$as_me:$LINENO: checking for $ac_word" >&5
10390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10391if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10393else
c6b750e1
DJ
10394 case $RANLIB_FOR_TARGET in
10395 [\\/]* | ?:[\\/]*)
2429c060
PB
10396 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10397 ;;
2429c060 10398 *)
c6b750e1
DJ
10399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10400for as_dir in $gcc_cv_tool_dirs
10401do
10402 IFS=$as_save_IFS
10403 test -z "$as_dir" && as_dir=.
10404 for ac_exec_ext in '' $ac_executable_extensions; do
10405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10406 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10408 break 2
10409 fi
10410done
10411done
10412
2429c060
PB
10413 ;;
10414esac
10415fi
c6b750e1
DJ
10416RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10417
2429c060 10418if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10419 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10420echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10421else
c6b750e1
DJ
10422 echo "$as_me:$LINENO: result: no" >&5
10423echo "${ECHO_T}no" >&6
2429c060
PB
10424fi
10425
10426fi
10427if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10428
10429
10430if test -n "$RANLIB_FOR_TARGET"; then
10431 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10432elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10433 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10434fi
10435
10436if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10437 for ncn_progname in ranlib; do
10438 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10439set dummy ${ncn_progname}; ac_word=$2
10440echo "$as_me:$LINENO: checking for $ac_word" >&5
10441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10442if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10444else
10445 if test -n "$RANLIB_FOR_TARGET"; then
10446 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10447else
10448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449for as_dir in $PATH
10450do
10451 IFS=$as_save_IFS
10452 test -z "$as_dir" && as_dir=.
10453 for ac_exec_ext in '' $ac_executable_extensions; do
10454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10455 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10457 break 2
10458 fi
10459done
10460done
10461
10462fi
10463fi
10464RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10465if test -n "$RANLIB_FOR_TARGET"; then
10466 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10467echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10468else
10469 echo "$as_me:$LINENO: result: no" >&5
10470echo "${ECHO_T}no" >&6
10471fi
10472
10473 done
10474fi
10475
10476if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10477 for ncn_progname in ranlib; do
c6b750e1
DJ
10478 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10479echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10480 if test -x $with_build_time_tools/${ncn_progname}; then
10481 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10482 echo "$as_me:$LINENO: result: yes" >&5
10483echo "${ECHO_T}yes" >&6
2429c060
PB
10484 break
10485 else
c6b750e1
DJ
10486 echo "$as_me:$LINENO: result: no" >&5
10487echo "${ECHO_T}no" >&6
2429c060
PB
10488 fi
10489 done
10490fi
10491
10492if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10493 for ncn_progname in ranlib; do
10494 if test -n "$ncn_target_tool_prefix"; then
10495 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10496set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10497echo "$as_me:$LINENO: checking for $ac_word" >&5
10498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10499if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10501else
55db4b87
PB
10502 if test -n "$RANLIB_FOR_TARGET"; then
10503 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10504else
c6b750e1
DJ
10505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10506for as_dir in $PATH
10507do
10508 IFS=$as_save_IFS
10509 test -z "$as_dir" && as_dir=.
10510 for ac_exec_ext in '' $ac_executable_extensions; do
10511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10512 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10514 break 2
10515 fi
10516done
10517done
10518
859789af
AC
10519fi
10520fi
c6b750e1 10521RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10522if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10523 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10524echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10525else
c6b750e1
DJ
10526 echo "$as_me:$LINENO: result: no" >&5
10527echo "${ECHO_T}no" >&6
859789af
AC
10528fi
10529
2429c060
PB
10530 fi
10531 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10533set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10534echo "$as_me:$LINENO: checking for $ac_word" >&5
10535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10536if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10538else
05cbd757
PB
10539 if test -n "$RANLIB_FOR_TARGET"; then
10540 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10541else
c6b750e1
DJ
10542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10543for as_dir in $PATH
10544do
10545 IFS=$as_save_IFS
10546 test -z "$as_dir" && as_dir=.
10547 for ac_exec_ext in '' $ac_executable_extensions; do
10548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10549 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10551 break 2
10552 fi
10553done
10554done
10555
859789af
AC
10556fi
10557fi
c6b750e1 10558RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10559if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10560 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10561echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10562else
c6b750e1
DJ
10563 echo "$as_me:$LINENO: result: no" >&5
10564echo "${ECHO_T}no" >&6
859789af 10565fi
c6b750e1 10566
2429c060
PB
10567 fi
10568 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10569 done
10570fi
c6b750e1 10571
2429c060
PB
10572if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10573 set dummy ranlib
10574 if test $build = $target ; then
10575 RANLIB_FOR_TARGET="$2"
10576 else
10577 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10578 fi
d3f5afc4
MS
10579else
10580 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10581fi
05cbd757 10582
3a35eeb3
PB
10583else
10584 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10585fi
10586
2429c060
PB
10587
10588
10589
10590if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10591 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10592 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10593echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10594 if test -x $with_build_time_tools/strip; then
10595 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10596 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10597 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10598echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10599 else
c6b750e1
DJ
10600 echo "$as_me:$LINENO: result: no" >&5
10601echo "${ECHO_T}no" >&6
3a35eeb3 10602 fi
2429c060
PB
10603 elif test $build != $host && test $have_gcc_for_target = yes; then
10604 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10605 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10606 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10607 fi
10608fi
c6b750e1 10609if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10610 # Extract the first word of "strip", so it can be a program name with args.
10611set dummy strip; ac_word=$2
c6b750e1
DJ
10612echo "$as_me:$LINENO: checking for $ac_word" >&5
10613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10614if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10615 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10616else
c6b750e1
DJ
10617 case $STRIP_FOR_TARGET in
10618 [\\/]* | ?:[\\/]*)
2429c060
PB
10619 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10620 ;;
2429c060 10621 *)
c6b750e1
DJ
10622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10623for as_dir in $gcc_cv_tool_dirs
10624do
10625 IFS=$as_save_IFS
10626 test -z "$as_dir" && as_dir=.
10627 for ac_exec_ext in '' $ac_executable_extensions; do
10628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10629 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10631 break 2
10632 fi
10633done
10634done
10635
2429c060
PB
10636 ;;
10637esac
10638fi
c6b750e1
DJ
10639STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10640
2429c060 10641if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10642 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10643echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10644else
c6b750e1
DJ
10645 echo "$as_me:$LINENO: result: no" >&5
10646echo "${ECHO_T}no" >&6
2429c060
PB
10647fi
10648
10649fi
10650if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10651
10652
10653if test -n "$STRIP_FOR_TARGET"; then
10654 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10655elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10656 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10657fi
10658
10659if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10660 for ncn_progname in strip; do
10661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10662set dummy ${ncn_progname}; ac_word=$2
10663echo "$as_me:$LINENO: checking for $ac_word" >&5
10664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10665if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10666 echo $ECHO_N "(cached) $ECHO_C" >&6
10667else
10668 if test -n "$STRIP_FOR_TARGET"; then
10669 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10670else
10671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672for as_dir in $PATH
10673do
10674 IFS=$as_save_IFS
10675 test -z "$as_dir" && as_dir=.
10676 for ac_exec_ext in '' $ac_executable_extensions; do
10677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10678 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10680 break 2
10681 fi
10682done
10683done
10684
10685fi
10686fi
10687STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10688if test -n "$STRIP_FOR_TARGET"; then
10689 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10690echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10691else
10692 echo "$as_me:$LINENO: result: no" >&5
10693echo "${ECHO_T}no" >&6
10694fi
10695
10696 done
10697fi
10698
10699if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10700 for ncn_progname in strip; do
c6b750e1
DJ
10701 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10702echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10703 if test -x $with_build_time_tools/${ncn_progname}; then
10704 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10705 echo "$as_me:$LINENO: result: yes" >&5
10706echo "${ECHO_T}yes" >&6
2429c060
PB
10707 break
10708 else
c6b750e1
DJ
10709 echo "$as_me:$LINENO: result: no" >&5
10710echo "${ECHO_T}no" >&6
2429c060
PB
10711 fi
10712 done
10713fi
10714
10715if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10716 for ncn_progname in strip; do
10717 if test -n "$ncn_target_tool_prefix"; then
10718 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10719set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10720echo "$as_me:$LINENO: checking for $ac_word" >&5
10721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10722if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10724else
10725 if test -n "$STRIP_FOR_TARGET"; then
10726 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10727else
10728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10729for as_dir in $PATH
10730do
10731 IFS=$as_save_IFS
10732 test -z "$as_dir" && as_dir=.
10733 for ac_exec_ext in '' $ac_executable_extensions; do
10734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10735 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10737 break 2
10738 fi
10739done
10740done
10741
7e0f7140
GK
10742fi
10743fi
c6b750e1 10744STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10745if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10746 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10747echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10748else
c6b750e1
DJ
10749 echo "$as_me:$LINENO: result: no" >&5
10750echo "${ECHO_T}no" >&6
7e0f7140
GK
10751fi
10752
2429c060
PB
10753 fi
10754 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10756set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10757echo "$as_me:$LINENO: checking for $ac_word" >&5
10758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10759if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10761else
10762 if test -n "$STRIP_FOR_TARGET"; then
10763 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10764else
c6b750e1
DJ
10765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766for as_dir in $PATH
10767do
10768 IFS=$as_save_IFS
10769 test -z "$as_dir" && as_dir=.
10770 for ac_exec_ext in '' $ac_executable_extensions; do
10771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10772 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10774 break 2
10775 fi
10776done
10777done
10778
7e0f7140
GK
10779fi
10780fi
c6b750e1 10781STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10782if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10783 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10784echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10785else
c6b750e1
DJ
10786 echo "$as_me:$LINENO: result: no" >&5
10787echo "${ECHO_T}no" >&6
7e0f7140 10788fi
c6b750e1 10789
2429c060
PB
10790 fi
10791 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10792 done
10793fi
c6b750e1 10794
7e0f7140
GK
10795if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10796 set dummy strip
10797 if test $build = $target ; then
10798 STRIP_FOR_TARGET="$2"
10799 else
10800 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10801 fi
d3f5afc4
MS
10802else
10803 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10804fi
10805
3a35eeb3
PB
10806else
10807 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10808fi
10809
10810
10811
10812
10813if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10814 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10815 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10816echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10817 if test -x $with_build_time_tools/windres; then
10818 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10819 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10820 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10821echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10822 else
c6b750e1
DJ
10823 echo "$as_me:$LINENO: result: no" >&5
10824echo "${ECHO_T}no" >&6
3a35eeb3 10825 fi
2429c060
PB
10826 elif test $build != $host && test $have_gcc_for_target = yes; then
10827 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10828 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10829 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10830 fi
10831fi
c6b750e1 10832if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10833 # Extract the first word of "windres", so it can be a program name with args.
10834set dummy windres; ac_word=$2
c6b750e1
DJ
10835echo "$as_me:$LINENO: checking for $ac_word" >&5
10836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10837if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10838 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10839else
c6b750e1
DJ
10840 case $WINDRES_FOR_TARGET in
10841 [\\/]* | ?:[\\/]*)
2429c060
PB
10842 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10843 ;;
2429c060 10844 *)
c6b750e1
DJ
10845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10846for as_dir in $gcc_cv_tool_dirs
10847do
10848 IFS=$as_save_IFS
10849 test -z "$as_dir" && as_dir=.
10850 for ac_exec_ext in '' $ac_executable_extensions; do
10851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10852 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10854 break 2
10855 fi
10856done
10857done
10858
2429c060
PB
10859 ;;
10860esac
10861fi
c6b750e1
DJ
10862WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10863
2429c060 10864if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10865 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10866echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10867else
c6b750e1
DJ
10868 echo "$as_me:$LINENO: result: no" >&5
10869echo "${ECHO_T}no" >&6
2429c060
PB
10870fi
10871
10872fi
10873if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10874
10875
10876if test -n "$WINDRES_FOR_TARGET"; then
10877 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10878elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10879 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10880fi
10881
10882if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10883 for ncn_progname in windres; do
10884 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10885set dummy ${ncn_progname}; ac_word=$2
10886echo "$as_me:$LINENO: checking for $ac_word" >&5
10887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10888if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10890else
10891 if test -n "$WINDRES_FOR_TARGET"; then
10892 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10893else
10894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10895for as_dir in $PATH
10896do
10897 IFS=$as_save_IFS
10898 test -z "$as_dir" && as_dir=.
10899 for ac_exec_ext in '' $ac_executable_extensions; do
10900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10901 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10903 break 2
10904 fi
10905done
10906done
10907
10908fi
10909fi
10910WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10911if test -n "$WINDRES_FOR_TARGET"; then
10912 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10913echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10914else
10915 echo "$as_me:$LINENO: result: no" >&5
10916echo "${ECHO_T}no" >&6
10917fi
10918
10919 done
10920fi
10921
10922if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10923 for ncn_progname in windres; do
c6b750e1
DJ
10924 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10925echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10926 if test -x $with_build_time_tools/${ncn_progname}; then
10927 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10928 echo "$as_me:$LINENO: result: yes" >&5
10929echo "${ECHO_T}yes" >&6
2429c060
PB
10930 break
10931 else
c6b750e1
DJ
10932 echo "$as_me:$LINENO: result: no" >&5
10933echo "${ECHO_T}no" >&6
2429c060
PB
10934 fi
10935 done
10936fi
10937
10938if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10939 for ncn_progname in windres; do
10940 if test -n "$ncn_target_tool_prefix"; then
10941 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10942set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10943echo "$as_me:$LINENO: checking for $ac_word" >&5
10944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10945if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10947else
55db4b87
PB
10948 if test -n "$WINDRES_FOR_TARGET"; then
10949 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10950else
c6b750e1
DJ
10951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10952for as_dir in $PATH
10953do
10954 IFS=$as_save_IFS
10955 test -z "$as_dir" && as_dir=.
10956 for ac_exec_ext in '' $ac_executable_extensions; do
10957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10958 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10960 break 2
10961 fi
10962done
10963done
10964
859789af
AC
10965fi
10966fi
c6b750e1 10967WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 10968if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10969 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10970echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10971else
c6b750e1
DJ
10972 echo "$as_me:$LINENO: result: no" >&5
10973echo "${ECHO_T}no" >&6
859789af
AC
10974fi
10975
2429c060
PB
10976 fi
10977 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10979set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10980echo "$as_me:$LINENO: checking for $ac_word" >&5
10981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10982if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10984else
05cbd757
PB
10985 if test -n "$WINDRES_FOR_TARGET"; then
10986 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10987else
c6b750e1
DJ
10988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10989for as_dir in $PATH
10990do
10991 IFS=$as_save_IFS
10992 test -z "$as_dir" && as_dir=.
10993 for ac_exec_ext in '' $ac_executable_extensions; do
10994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10995 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10997 break 2
10998 fi
10999done
11000done
11001
859789af
AC
11002fi
11003fi
c6b750e1 11004WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 11005if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11006 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11007echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11008else
c6b750e1
DJ
11009 echo "$as_me:$LINENO: result: no" >&5
11010echo "${ECHO_T}no" >&6
859789af 11011fi
c6b750e1 11012
2429c060
PB
11013 fi
11014 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11015 done
11016fi
c6b750e1 11017
05cbd757
PB
11018if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11019 set dummy windres
11020 if test $build = $target ; then
11021 WINDRES_FOR_TARGET="$2"
859789af 11022 else
05cbd757 11023 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11024 fi
d3f5afc4
MS
11025else
11026 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
11027fi
11028
3a35eeb3
PB
11029else
11030 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
11031fi
11032
852e5f18 11033
0c24b341
NC
11034
11035
11036if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11037 if test -n "$with_build_time_tools"; then
11038 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11039echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11040 if test -x $with_build_time_tools/windmc; then
11041 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11042 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11043 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11044echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11045 else
11046 echo "$as_me:$LINENO: result: no" >&5
11047echo "${ECHO_T}no" >&6
11048 fi
11049 elif test $build != $host && test $have_gcc_for_target = yes; then
11050 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11051 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11052 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11053 fi
11054fi
11055if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11056 # Extract the first word of "windmc", so it can be a program name with args.
11057set dummy windmc; ac_word=$2
11058echo "$as_me:$LINENO: checking for $ac_word" >&5
11059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11060if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11061 echo $ECHO_N "(cached) $ECHO_C" >&6
11062else
11063 case $WINDMC_FOR_TARGET in
11064 [\\/]* | ?:[\\/]*)
11065 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11066 ;;
11067 *)
11068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11069for as_dir in $gcc_cv_tool_dirs
11070do
11071 IFS=$as_save_IFS
11072 test -z "$as_dir" && as_dir=.
11073 for ac_exec_ext in '' $ac_executable_extensions; do
11074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11075 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11077 break 2
11078 fi
11079done
11080done
11081
11082 ;;
11083esac
11084fi
11085WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11086
11087if test -n "$WINDMC_FOR_TARGET"; then
11088 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11089echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11090else
11091 echo "$as_me:$LINENO: result: no" >&5
11092echo "${ECHO_T}no" >&6
11093fi
11094
11095fi
11096if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11097
11098
11099if test -n "$WINDMC_FOR_TARGET"; then
11100 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11101elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11102 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11103fi
11104
11105if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11106 for ncn_progname in windmc; do
11107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11108set dummy ${ncn_progname}; ac_word=$2
11109echo "$as_me:$LINENO: checking for $ac_word" >&5
11110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11111if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11112 echo $ECHO_N "(cached) $ECHO_C" >&6
11113else
11114 if test -n "$WINDMC_FOR_TARGET"; then
11115 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11116else
11117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11118for as_dir in $PATH
11119do
11120 IFS=$as_save_IFS
11121 test -z "$as_dir" && as_dir=.
11122 for ac_exec_ext in '' $ac_executable_extensions; do
11123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11124 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11126 break 2
11127 fi
11128done
11129done
11130
11131fi
11132fi
11133WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11134if test -n "$WINDMC_FOR_TARGET"; then
11135 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11136echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11137else
11138 echo "$as_me:$LINENO: result: no" >&5
11139echo "${ECHO_T}no" >&6
11140fi
11141
11142 done
11143fi
11144
11145if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11146 for ncn_progname in windmc; do
11147 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11148echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11149 if test -x $with_build_time_tools/${ncn_progname}; then
11150 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11151 echo "$as_me:$LINENO: result: yes" >&5
11152echo "${ECHO_T}yes" >&6
11153 break
11154 else
11155 echo "$as_me:$LINENO: result: no" >&5
11156echo "${ECHO_T}no" >&6
11157 fi
11158 done
11159fi
11160
11161if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11162 for ncn_progname in windmc; do
11163 if test -n "$ncn_target_tool_prefix"; then
11164 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11165set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11166echo "$as_me:$LINENO: checking for $ac_word" >&5
11167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11168if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11169 echo $ECHO_N "(cached) $ECHO_C" >&6
11170else
11171 if test -n "$WINDMC_FOR_TARGET"; then
11172 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11173else
11174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11175for as_dir in $PATH
11176do
11177 IFS=$as_save_IFS
11178 test -z "$as_dir" && as_dir=.
11179 for ac_exec_ext in '' $ac_executable_extensions; do
11180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11181 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11183 break 2
11184 fi
11185done
11186done
11187
11188fi
11189fi
11190WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11191if test -n "$WINDMC_FOR_TARGET"; then
11192 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11193echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11194else
11195 echo "$as_me:$LINENO: result: no" >&5
11196echo "${ECHO_T}no" >&6
11197fi
11198
11199 fi
11200 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11202set dummy ${ncn_progname}; ac_word=$2
11203echo "$as_me:$LINENO: checking for $ac_word" >&5
11204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11205if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11207else
11208 if test -n "$WINDMC_FOR_TARGET"; then
11209 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11210else
11211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11212for as_dir in $PATH
11213do
11214 IFS=$as_save_IFS
11215 test -z "$as_dir" && as_dir=.
11216 for ac_exec_ext in '' $ac_executable_extensions; do
11217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11218 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11220 break 2
11221 fi
11222done
11223done
11224
11225fi
11226fi
11227WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11228if test -n "$WINDMC_FOR_TARGET"; then
11229 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11230echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11231else
11232 echo "$as_me:$LINENO: result: no" >&5
11233echo "${ECHO_T}no" >&6
11234fi
11235
11236 fi
11237 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11238 done
11239fi
11240
11241if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11242 set dummy windmc
11243 if test $build = $target ; then
11244 WINDMC_FOR_TARGET="$2"
11245 else
11246 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11247 fi
11248else
11249 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11250fi
11251
11252else
11253 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11254fi
11255
11256
be01d343
PB
11257RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11258
c6b750e1
DJ
11259echo "$as_me:$LINENO: checking where to find the target ar" >&5
11260echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11261if test "x${build}" != "x${host}" ; then
2429c060
PB
11262 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11263 # We already found the complete path
b8025f34
AS
11264 ac_dir=`dirname $AR_FOR_TARGET`
11265 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11266echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11267 else
11268 # Canadian cross, just use what we found
c6b750e1
DJ
11269 echo "$as_me:$LINENO: result: pre-installed" >&5
11270echo "${ECHO_T}pre-installed" >&6
2429c060 11271 fi
be01d343
PB
11272else
11273 ok=yes
11274 case " ${configdirs} " in
11275 *" binutils "*) ;;
11276 *) ok=no ;;
11277 esac
c6b750e1 11278
be01d343
PB
11279 if test $ok = yes; then
11280 # An in-tree tool is available and we can use it
11281 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11282 echo "$as_me:$LINENO: result: just compiled" >&5
11283echo "${ECHO_T}just compiled" >&6
2429c060
PB
11284 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11285 # We already found the complete path
b8025f34
AS
11286 ac_dir=`dirname $AR_FOR_TARGET`
11287 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11288echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11289 elif test "x$target" = "x$host"; then
11290 # We can use an host tool
11291 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11292 echo "$as_me:$LINENO: result: host tool" >&5
11293echo "${ECHO_T}host tool" >&6
be01d343
PB
11294 else
11295 # We need a cross tool
c6b750e1
DJ
11296 echo "$as_me:$LINENO: result: pre-installed" >&5
11297echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11298 fi
11299fi
4b900473 11300
c6b750e1
DJ
11301echo "$as_me:$LINENO: checking where to find the target as" >&5
11302echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11303if test "x${build}" != "x${host}" ; then
2429c060
PB
11304 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11305 # We already found the complete path
b8025f34
AS
11306 ac_dir=`dirname $AS_FOR_TARGET`
11307 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11308echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11309 else
11310 # Canadian cross, just use what we found
c6b750e1
DJ
11311 echo "$as_me:$LINENO: result: pre-installed" >&5
11312echo "${ECHO_T}pre-installed" >&6
2429c060 11313 fi
be01d343
PB
11314else
11315 ok=yes
11316 case " ${configdirs} " in
11317 *" gas "*) ;;
11318 *) ok=no ;;
11319 esac
c6b750e1 11320
be01d343
PB
11321 if test $ok = yes; then
11322 # An in-tree tool is available and we can use it
11323 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11324 echo "$as_me:$LINENO: result: just compiled" >&5
11325echo "${ECHO_T}just compiled" >&6
2429c060
PB
11326 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11327 # We already found the complete path
b8025f34
AS
11328 ac_dir=`dirname $AS_FOR_TARGET`
11329 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11330echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11331 elif test "x$target" = "x$host"; then
11332 # We can use an host tool
11333 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11334 echo "$as_me:$LINENO: result: host tool" >&5
11335echo "${ECHO_T}host tool" >&6
be01d343
PB
11336 else
11337 # We need a cross tool
c6b750e1
DJ
11338 echo "$as_me:$LINENO: result: pre-installed" >&5
11339echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11340 fi
11341fi
4b900473 11342
c6b750e1
DJ
11343echo "$as_me:$LINENO: checking where to find the target cc" >&5
11344echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11345if test "x${build}" != "x${host}" ; then
2429c060
PB
11346 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11347 # We already found the complete path
b8025f34
AS
11348 ac_dir=`dirname $CC_FOR_TARGET`
11349 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11350echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11351 else
11352 # Canadian cross, just use what we found
c6b750e1
DJ
11353 echo "$as_me:$LINENO: result: pre-installed" >&5
11354echo "${ECHO_T}pre-installed" >&6
2429c060 11355 fi
be01d343
PB
11356else
11357 ok=yes
11358 case " ${configdirs} " in
11359 *" gcc "*) ;;
11360 *) ok=no ;;
11361 esac
c6b750e1 11362
be01d343
PB
11363 if test $ok = yes; then
11364 # An in-tree tool is available and we can use it
11365 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11366 echo "$as_me:$LINENO: result: just compiled" >&5
11367echo "${ECHO_T}just compiled" >&6
2429c060
PB
11368 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11369 # We already found the complete path
b8025f34
AS
11370 ac_dir=`dirname $CC_FOR_TARGET`
11371 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11372echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11373 elif test "x$target" = "x$host"; then
11374 # We can use an host tool
11375 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11376 echo "$as_me:$LINENO: result: host tool" >&5
11377echo "${ECHO_T}host tool" >&6
be01d343
PB
11378 else
11379 # We need a cross tool
c6b750e1
DJ
11380 echo "$as_me:$LINENO: result: pre-installed" >&5
11381echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11382 fi
11383fi
4b900473 11384
c6b750e1
DJ
11385echo "$as_me:$LINENO: checking where to find the target c++" >&5
11386echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11387if test "x${build}" != "x${host}" ; then
2429c060
PB
11388 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11389 # We already found the complete path
b8025f34
AS
11390 ac_dir=`dirname $CXX_FOR_TARGET`
11391 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11392echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11393 else
11394 # Canadian cross, just use what we found
c6b750e1
DJ
11395 echo "$as_me:$LINENO: result: pre-installed" >&5
11396echo "${ECHO_T}pre-installed" >&6
2429c060 11397 fi
be01d343
PB
11398else
11399 ok=yes
11400 case " ${configdirs} " in
11401 *" gcc "*) ;;
11402 *) ok=no ;;
11403 esac
11404 case ,${enable_languages}, in
11405 *,c++,*) ;;
11406 *) ok=no ;;
11407 esac
11408 if test $ok = yes; then
11409 # An in-tree tool is available and we can use it
11410 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
11411 echo "$as_me:$LINENO: result: just compiled" >&5
11412echo "${ECHO_T}just compiled" >&6
2429c060
PB
11413 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11414 # We already found the complete path
b8025f34
AS
11415 ac_dir=`dirname $CXX_FOR_TARGET`
11416 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11417echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11418 elif test "x$target" = "x$host"; then
11419 # We can use an host tool
11420 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11421 echo "$as_me:$LINENO: result: host tool" >&5
11422echo "${ECHO_T}host tool" >&6
be01d343
PB
11423 else
11424 # We need a cross tool
c6b750e1
DJ
11425 echo "$as_me:$LINENO: result: pre-installed" >&5
11426echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11427 fi
11428fi
4b900473 11429
c6b750e1
DJ
11430echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11431echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11432if test "x${build}" != "x${host}" ; then
2429c060
PB
11433 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11434 # We already found the complete path
b8025f34
AS
11435 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11436 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11437echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11438 else
11439 # Canadian cross, just use what we found
c6b750e1
DJ
11440 echo "$as_me:$LINENO: result: pre-installed" >&5
11441echo "${ECHO_T}pre-installed" >&6
2429c060 11442 fi
be01d343
PB
11443else
11444 ok=yes
11445 case " ${configdirs} " in
11446 *" gcc "*) ;;
11447 *) ok=no ;;
11448 esac
11449 case ,${enable_languages}, in
11450 *,c++,*) ;;
11451 *) ok=no ;;
11452 esac
11453 if test $ok = yes; then
11454 # An in-tree tool is available and we can use it
11455 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
11456 echo "$as_me:$LINENO: result: just compiled" >&5
11457echo "${ECHO_T}just compiled" >&6
2429c060
PB
11458 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11459 # We already found the complete path
b8025f34
AS
11460 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11461 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11462echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11463 elif test "x$target" = "x$host"; then
11464 # We can use an host tool
11465 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11466 echo "$as_me:$LINENO: result: host tool" >&5
11467echo "${ECHO_T}host tool" >&6
be01d343
PB
11468 else
11469 # We need a cross tool
c6b750e1
DJ
11470 echo "$as_me:$LINENO: result: pre-installed" >&5
11471echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11472 fi
11473fi
4b900473 11474
c6b750e1
DJ
11475echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11476echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11477if test "x${build}" != "x${host}" ; then
2429c060
PB
11478 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11479 # We already found the complete path
b8025f34
AS
11480 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11481 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11482echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11483 else
11484 # Canadian cross, just use what we found
c6b750e1
DJ
11485 echo "$as_me:$LINENO: result: pre-installed" >&5
11486echo "${ECHO_T}pre-installed" >&6
2429c060 11487 fi
be01d343
PB
11488else
11489 ok=yes
11490 case " ${configdirs} " in
11491 *" binutils "*) ;;
11492 *) ok=no ;;
11493 esac
c6b750e1 11494
be01d343
PB
11495 if test $ok = yes; then
11496 # An in-tree tool is available and we can use it
11497 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11498 echo "$as_me:$LINENO: result: just compiled" >&5
11499echo "${ECHO_T}just compiled" >&6
2429c060
PB
11500 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11501 # We already found the complete path
b8025f34
AS
11502 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11503 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11504echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11505 elif test "x$target" = "x$host"; then
11506 # We can use an host tool
11507 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11508 echo "$as_me:$LINENO: result: host tool" >&5
11509echo "${ECHO_T}host tool" >&6
be01d343
PB
11510 else
11511 # We need a cross tool
c6b750e1
DJ
11512 echo "$as_me:$LINENO: result: pre-installed" >&5
11513echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11514 fi
11515fi
4b900473 11516
c6b750e1
DJ
11517echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11518echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11519if test "x${build}" != "x${host}" ; then
2429c060
PB
11520 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11521 # We already found the complete path
b8025f34
AS
11522 ac_dir=`dirname $GCC_FOR_TARGET`
11523 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11524echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11525 else
11526 # Canadian cross, just use what we found
c6b750e1
DJ
11527 echo "$as_me:$LINENO: result: pre-installed" >&5
11528echo "${ECHO_T}pre-installed" >&6
2429c060 11529 fi
be01d343
PB
11530else
11531 ok=yes
11532 case " ${configdirs} " in
11533 *" gcc "*) ;;
11534 *) ok=no ;;
11535 esac
c6b750e1 11536
be01d343
PB
11537 if test $ok = yes; then
11538 # An in-tree tool is available and we can use it
11539 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11540 echo "$as_me:$LINENO: result: just compiled" >&5
11541echo "${ECHO_T}just compiled" >&6
2429c060
PB
11542 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11543 # We already found the complete path
b8025f34
AS
11544 ac_dir=`dirname $GCC_FOR_TARGET`
11545 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11546echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11547 elif test "x$target" = "x$host"; then
11548 # We can use an host tool
11549 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11550 echo "$as_me:$LINENO: result: host tool" >&5
11551echo "${ECHO_T}host tool" >&6
be01d343
PB
11552 else
11553 # We need a cross tool
c6b750e1
DJ
11554 echo "$as_me:$LINENO: result: pre-installed" >&5
11555echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11556 fi
11557fi
4b900473 11558
c6b750e1
DJ
11559echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11560echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11561if test "x${build}" != "x${host}" ; then
2429c060
PB
11562 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11563 # We already found the complete path
b8025f34
AS
11564 ac_dir=`dirname $GCJ_FOR_TARGET`
11565 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11566echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11567 else
11568 # Canadian cross, just use what we found
c6b750e1
DJ
11569 echo "$as_me:$LINENO: result: pre-installed" >&5
11570echo "${ECHO_T}pre-installed" >&6
2429c060 11571 fi
be01d343
PB
11572else
11573 ok=yes
11574 case " ${configdirs} " in
11575 *" gcc "*) ;;
11576 *) ok=no ;;
11577 esac
11578 case ,${enable_languages}, in
11579 *,java,*) ;;
11580 *) ok=no ;;
11581 esac
11582 if test $ok = yes; then
11583 # An in-tree tool is available and we can use it
11584 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11585 echo "$as_me:$LINENO: result: just compiled" >&5
11586echo "${ECHO_T}just compiled" >&6
2429c060
PB
11587 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11588 # We already found the complete path
b8025f34
AS
11589 ac_dir=`dirname $GCJ_FOR_TARGET`
11590 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11591echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11592 elif test "x$target" = "x$host"; then
11593 # We can use an host tool
11594 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11595 echo "$as_me:$LINENO: result: host tool" >&5
11596echo "${ECHO_T}host tool" >&6
be01d343
PB
11597 else
11598 # We need a cross tool
c6b750e1
DJ
11599 echo "$as_me:$LINENO: result: pre-installed" >&5
11600echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11601 fi
11602fi
4b900473 11603
c6b750e1
DJ
11604echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11605echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11606if test "x${build}" != "x${host}" ; then
2429c060
PB
11607 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11608 # We already found the complete path
b8025f34
AS
11609 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11610 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11611echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11612 else
11613 # Canadian cross, just use what we found
c6b750e1
DJ
11614 echo "$as_me:$LINENO: result: pre-installed" >&5
11615echo "${ECHO_T}pre-installed" >&6
2429c060 11616 fi
be01d343
PB
11617else
11618 ok=yes
11619 case " ${configdirs} " in
11620 *" gcc "*) ;;
11621 *) ok=no ;;
11622 esac
11623 case ,${enable_languages}, in
11624 *,fortran,*) ;;
11625 *) ok=no ;;
11626 esac
11627 if test $ok = yes; then
11628 # An in-tree tool is available and we can use it
11629 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11630 echo "$as_me:$LINENO: result: just compiled" >&5
11631echo "${ECHO_T}just compiled" >&6
2429c060
PB
11632 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11633 # We already found the complete path
b8025f34
AS
11634 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11635 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11636echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11637 elif test "x$target" = "x$host"; then
11638 # We can use an host tool
11639 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11640 echo "$as_me:$LINENO: result: host tool" >&5
11641echo "${ECHO_T}host tool" >&6
be01d343
PB
11642 else
11643 # We need a cross tool
c6b750e1
DJ
11644 echo "$as_me:$LINENO: result: pre-installed" >&5
11645echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11646 fi
11647fi
4b900473 11648
c6b750e1
DJ
11649echo "$as_me:$LINENO: checking where to find the target ld" >&5
11650echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11651if test "x${build}" != "x${host}" ; then
2429c060
PB
11652 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11653 # We already found the complete path
b8025f34
AS
11654 ac_dir=`dirname $LD_FOR_TARGET`
11655 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11656echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11657 else
11658 # Canadian cross, just use what we found
c6b750e1
DJ
11659 echo "$as_me:$LINENO: result: pre-installed" >&5
11660echo "${ECHO_T}pre-installed" >&6
2429c060 11661 fi
be01d343
PB
11662else
11663 ok=yes
11664 case " ${configdirs} " in
11665 *" ld "*) ;;
11666 *) ok=no ;;
11667 esac
c6b750e1 11668
be01d343
PB
11669 if test $ok = yes; then
11670 # An in-tree tool is available and we can use it
11671 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11672 echo "$as_me:$LINENO: result: just compiled" >&5
11673echo "${ECHO_T}just compiled" >&6
2429c060
PB
11674 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11675 # We already found the complete path
b8025f34
AS
11676 ac_dir=`dirname $LD_FOR_TARGET`
11677 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11678echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11679 elif test "x$target" = "x$host"; then
11680 # We can use an host tool
11681 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11682 echo "$as_me:$LINENO: result: host tool" >&5
11683echo "${ECHO_T}host tool" >&6
be01d343
PB
11684 else
11685 # We need a cross tool
c6b750e1
DJ
11686 echo "$as_me:$LINENO: result: pre-installed" >&5
11687echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11688 fi
11689fi
4b900473 11690
c6b750e1
DJ
11691echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11692echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11693if test "x${build}" != "x${host}" ; then
2429c060
PB
11694 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11695 # We already found the complete path
b8025f34
AS
11696 ac_dir=`dirname $LIPO_FOR_TARGET`
11697 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11698echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11699 else
11700 # Canadian cross, just use what we found
c6b750e1
DJ
11701 echo "$as_me:$LINENO: result: pre-installed" >&5
11702echo "${ECHO_T}pre-installed" >&6
2429c060 11703 fi
be01d343 11704else
2429c060
PB
11705 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11706 # We already found the complete path
b8025f34
AS
11707 ac_dir=`dirname $LIPO_FOR_TARGET`
11708 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11709echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11710 elif test "x$target" = "x$host"; then
be01d343
PB
11711 # We can use an host tool
11712 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11713 echo "$as_me:$LINENO: result: host tool" >&5
11714echo "${ECHO_T}host tool" >&6
be01d343
PB
11715 else
11716 # We need a cross tool
c6b750e1
DJ
11717 echo "$as_me:$LINENO: result: pre-installed" >&5
11718echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11719 fi
11720fi
4b900473 11721
c6b750e1
DJ
11722echo "$as_me:$LINENO: checking where to find the target nm" >&5
11723echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11724if test "x${build}" != "x${host}" ; then
2429c060
PB
11725 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11726 # We already found the complete path
b8025f34
AS
11727 ac_dir=`dirname $NM_FOR_TARGET`
11728 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11729echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11730 else
11731 # Canadian cross, just use what we found
c6b750e1
DJ
11732 echo "$as_me:$LINENO: result: pre-installed" >&5
11733echo "${ECHO_T}pre-installed" >&6
2429c060 11734 fi
be01d343
PB
11735else
11736 ok=yes
11737 case " ${configdirs} " in
11738 *" binutils "*) ;;
11739 *) ok=no ;;
11740 esac
c6b750e1 11741
be01d343
PB
11742 if test $ok = yes; then
11743 # An in-tree tool is available and we can use it
11744 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11745 echo "$as_me:$LINENO: result: just compiled" >&5
11746echo "${ECHO_T}just compiled" >&6
2429c060
PB
11747 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11748 # We already found the complete path
b8025f34
AS
11749 ac_dir=`dirname $NM_FOR_TARGET`
11750 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11751echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11752 elif test "x$target" = "x$host"; then
11753 # We can use an host tool
11754 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11755 echo "$as_me:$LINENO: result: host tool" >&5
11756echo "${ECHO_T}host tool" >&6
be01d343
PB
11757 else
11758 # We need a cross tool
c6b750e1
DJ
11759 echo "$as_me:$LINENO: result: pre-installed" >&5
11760echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11761 fi
11762fi
4b900473 11763
c6b750e1
DJ
11764echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11765echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11766if test "x${build}" != "x${host}" ; then
2429c060
PB
11767 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11768 # We already found the complete path
b8025f34
AS
11769 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11770 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11771echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11772 else
11773 # Canadian cross, just use what we found
c6b750e1
DJ
11774 echo "$as_me:$LINENO: result: pre-installed" >&5
11775echo "${ECHO_T}pre-installed" >&6
2429c060 11776 fi
be01d343
PB
11777else
11778 ok=yes
11779 case " ${configdirs} " in
11780 *" binutils "*) ;;
11781 *) ok=no ;;
11782 esac
c6b750e1 11783
be01d343
PB
11784 if test $ok = yes; then
11785 # An in-tree tool is available and we can use it
11786 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11787 echo "$as_me:$LINENO: result: just compiled" >&5
11788echo "${ECHO_T}just compiled" >&6
2429c060
PB
11789 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11790 # We already found the complete path
b8025f34
AS
11791 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11792 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11793echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11794 elif test "x$target" = "x$host"; then
11795 # We can use an host tool
11796 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11797 echo "$as_me:$LINENO: result: host tool" >&5
11798echo "${ECHO_T}host tool" >&6
be01d343
PB
11799 else
11800 # We need a cross tool
c6b750e1
DJ
11801 echo "$as_me:$LINENO: result: pre-installed" >&5
11802echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11803 fi
11804fi
4b900473 11805
c6b750e1
DJ
11806echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11807echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11808if test "x${build}" != "x${host}" ; then
2429c060
PB
11809 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11810 # We already found the complete path
b8025f34
AS
11811 ac_dir=`dirname $RANLIB_FOR_TARGET`
11812 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11813echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11814 else
11815 # Canadian cross, just use what we found
c6b750e1
DJ
11816 echo "$as_me:$LINENO: result: pre-installed" >&5
11817echo "${ECHO_T}pre-installed" >&6
2429c060 11818 fi
be01d343
PB
11819else
11820 ok=yes
11821 case " ${configdirs} " in
11822 *" binutils "*) ;;
11823 *) ok=no ;;
11824 esac
c6b750e1 11825
be01d343
PB
11826 if test $ok = yes; then
11827 # An in-tree tool is available and we can use it
11828 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11829 echo "$as_me:$LINENO: result: just compiled" >&5
11830echo "${ECHO_T}just compiled" >&6
2429c060
PB
11831 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11832 # We already found the complete path
b8025f34
AS
11833 ac_dir=`dirname $RANLIB_FOR_TARGET`
11834 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11835echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11836 elif test "x$target" = "x$host"; then
11837 # We can use an host tool
11838 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11839 echo "$as_me:$LINENO: result: host tool" >&5
11840echo "${ECHO_T}host tool" >&6
be01d343
PB
11841 else
11842 # We need a cross tool
c6b750e1
DJ
11843 echo "$as_me:$LINENO: result: pre-installed" >&5
11844echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11845 fi
11846fi
4b900473 11847
c6b750e1
DJ
11848echo "$as_me:$LINENO: checking where to find the target strip" >&5
11849echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11850if test "x${build}" != "x${host}" ; then
2429c060
PB
11851 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11852 # We already found the complete path
b8025f34
AS
11853 ac_dir=`dirname $STRIP_FOR_TARGET`
11854 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11855echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11856 else
11857 # Canadian cross, just use what we found
c6b750e1
DJ
11858 echo "$as_me:$LINENO: result: pre-installed" >&5
11859echo "${ECHO_T}pre-installed" >&6
2429c060 11860 fi
be01d343
PB
11861else
11862 ok=yes
11863 case " ${configdirs} " in
11864 *" binutils "*) ;;
11865 *) ok=no ;;
11866 esac
c6b750e1 11867
be01d343
PB
11868 if test $ok = yes; then
11869 # An in-tree tool is available and we can use it
11870 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11871 echo "$as_me:$LINENO: result: just compiled" >&5
11872echo "${ECHO_T}just compiled" >&6
2429c060
PB
11873 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11874 # We already found the complete path
b8025f34
AS
11875 ac_dir=`dirname $STRIP_FOR_TARGET`
11876 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11877echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11878 elif test "x$target" = "x$host"; then
11879 # We can use an host tool
11880 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11881 echo "$as_me:$LINENO: result: host tool" >&5
11882echo "${ECHO_T}host tool" >&6
be01d343
PB
11883 else
11884 # We need a cross tool
c6b750e1
DJ
11885 echo "$as_me:$LINENO: result: pre-installed" >&5
11886echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11887 fi
11888fi
4b900473 11889
c6b750e1
DJ
11890echo "$as_me:$LINENO: checking where to find the target windres" >&5
11891echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 11892if test "x${build}" != "x${host}" ; then
2429c060
PB
11893 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11894 # We already found the complete path
b8025f34
AS
11895 ac_dir=`dirname $WINDRES_FOR_TARGET`
11896 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11897echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11898 else
11899 # Canadian cross, just use what we found
c6b750e1
DJ
11900 echo "$as_me:$LINENO: result: pre-installed" >&5
11901echo "${ECHO_T}pre-installed" >&6
2429c060 11902 fi
be01d343
PB
11903else
11904 ok=yes
11905 case " ${configdirs} " in
11906 *" binutils "*) ;;
11907 *) ok=no ;;
11908 esac
c6b750e1 11909
be01d343
PB
11910 if test $ok = yes; then
11911 # An in-tree tool is available and we can use it
11912 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
11913 echo "$as_me:$LINENO: result: just compiled" >&5
11914echo "${ECHO_T}just compiled" >&6
2429c060
PB
11915 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11916 # We already found the complete path
b8025f34
AS
11917 ac_dir=`dirname $WINDRES_FOR_TARGET`
11918 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11919echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11920 elif test "x$target" = "x$host"; then
11921 # We can use an host tool
11922 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
11923 echo "$as_me:$LINENO: result: host tool" >&5
11924echo "${ECHO_T}host tool" >&6
be01d343
PB
11925 else
11926 # We need a cross tool
c6b750e1
DJ
11927 echo "$as_me:$LINENO: result: pre-installed" >&5
11928echo "${ECHO_T}pre-installed" >&6
be01d343 11929 fi
a0da8069 11930fi
54752a6b 11931
0c24b341
NC
11932echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11933echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11934if test "x${build}" != "x${host}" ; then
11935 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11936 # We already found the complete path
11937 ac_dir=`dirname $WINDMC_FOR_TARGET`
11938 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11939echo "${ECHO_T}pre-installed in $ac_dir" >&6
11940 else
11941 # Canadian cross, just use what we found
11942 echo "$as_me:$LINENO: result: pre-installed" >&5
11943echo "${ECHO_T}pre-installed" >&6
11944 fi
11945else
11946 ok=yes
11947 case " ${configdirs} " in
11948 *" binutils "*) ;;
11949 *) ok=no ;;
11950 esac
11951
11952 if test $ok = yes; then
11953 # An in-tree tool is available and we can use it
11954 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11955 echo "$as_me:$LINENO: result: just compiled" >&5
11956echo "${ECHO_T}just compiled" >&6
11957 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11958 # We already found the complete path
11959 ac_dir=`dirname $WINDMC_FOR_TARGET`
11960 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11961echo "${ECHO_T}pre-installed in $ac_dir" >&6
11962 elif test "x$target" = "x$host"; then
11963 # We can use an host tool
11964 WINDMC_FOR_TARGET='$(WINDMC)'
11965 echo "$as_me:$LINENO: result: host tool" >&5
11966echo "${ECHO_T}host tool" >&6
11967 else
11968 # We need a cross tool
11969 echo "$as_me:$LINENO: result: pre-installed" >&5
11970echo "${ECHO_T}pre-installed" >&6
11971 fi
11972fi
11973
54752a6b
NN
11974
11975
be01d343 11976
4b900473 11977
a0da8069
NN
11978# Certain tools may need extra flags.
11979AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11980RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11981NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11982
be01d343
PB
11983# When building target libraries, except in a Canadian cross, we use
11984# the same toolchain as the compiler we just built.
11985COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11986COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11987COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11988if test $host = $build; then
11989 case " $configdirs " in
11990 *" gcc "*)
11991 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11992 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11993 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11994 ;;
11995 esac
11996fi
11997
11998
11999
12000
12001
c6b750e1
DJ
12002echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12003echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
12004# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12005if test "${enable_maintainer_mode+set}" = set; then
12006 enableval="$enable_maintainer_mode"
12007 USE_MAINTAINER_MODE=$enableval
12008else
12009 USE_MAINTAINER_MODE=no
c6b750e1
DJ
12010fi;
12011echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12012echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
12013
12014
12015if test "$USE_MAINTAINER_MODE" = yes; then
12016 MAINTAINER_MODE_TRUE=
12017 MAINTAINER_MODE_FALSE='#'
12018else
12019 MAINTAINER_MODE_TRUE='#'
12020 MAINTAINER_MODE_FALSE=
c6b750e1 12021fi
3d5e36ae
AO
12022MAINT=$MAINTAINER_MODE_TRUE
12023
1d39f329
NN
12024# ---------------------
12025# GCC bootstrap support
12026# ---------------------
12027
12028# Stage specific cflags for build.
12029stage1_cflags="-g"
12030case $build in
12031 vax-*-*)
12032 case ${GCC} in
12033 yes) stage1_cflags="-g -Wa,-J" ;;
12034 *) stage1_cflags="-g -J" ;;
12035 esac ;;
1d39f329
NN
12036esac
12037
1d89b610
PB
12038# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12039if test "$GCC" = yes; then
12040 saved_CFLAGS="$CFLAGS"
12041
12042 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12043 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
12044 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12045echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12046 cat >conftest.$ac_ext <<_ACEOF
12047/* confdefs.h. */
12048_ACEOF
12049cat confdefs.h >>conftest.$ac_ext
12050cat >>conftest.$ac_ext <<_ACEOF
12051/* end confdefs.h. */
12052
2038f525
PB
12053#if (__GNUC__ < 3) \
12054 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12055 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12056#error http://gcc.gnu.org/PR29382
12057#endif
12058
c6b750e1
DJ
12059int
12060main ()
12061{
12062
12063 ;
12064 return 0;
12065}
12066_ACEOF
12067rm -f conftest.$ac_objext
12068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12069 (eval $ac_compile) 2>conftest.er1
12070 ac_status=$?
12071 grep -v '^ *+' conftest.er1 >conftest.err
12072 rm -f conftest.er1
12073 cat conftest.err >&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } &&
12076 { ac_try='test -z "$ac_c_werror_flag"
12077 || test ! -s conftest.err'
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12080 ac_status=$?
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; } &&
12083 { ac_try='test -s conftest.$ac_objext'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; }; then
12089 echo "$as_me:$LINENO: result: yes" >&5
12090echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12091else
12092 echo "$as_me: failed program was:" >&5
12093sed 's/^/| /' conftest.$ac_ext >&5
12094
12095echo "$as_me:$LINENO: result: no" >&5
12096echo "${ECHO_T}no" >&6
12097fi
12098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12099
12100 CFLAGS="$saved_CFLAGS"
12101fi
12102
12103
1d39f329 12104
8a0d8a5c
PB
12105# Enable --enable-checking in stage1 of the compiler.
12106# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12107if test "${enable_stage1_checking+set}" = set; then
12108 enableval="$enable_stage1_checking"
12109 stage1_checking=--enable-checking=${enable_stage1_checking}
12110else
5566c1fa 12111 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12112 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12113else
5566c1fa 12114 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12115fi
c6b750e1 12116fi;
8a0d8a5c
PB
12117
12118
1d39f329 12119# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12120# Check whether --enable-werror or --disable-werror was given.
12121if test "${enable_werror+set}" = set; then
12122 enableval="$enable_werror"
c6b750e1 12123
1d39f329 12124else
a0323144 12125 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12126 enable_werror=yes
79fcd0ec
PB
12127else
12128 enable_werror=no
12129fi
c6b750e1 12130fi;
1a6f2dc7
NN
12131case ${enable_werror} in
12132 yes) stage2_werror_flag="--enable-werror-always" ;;
12133 *) stage2_werror_flag="" ;;
1d39f329
NN
12134esac
12135
12136
108a6f8e 12137# Flags needed to enable html installing and building
c6b750e1 12138
108a6f8e
CD
12139# Check whether --with-datarootdir or --without-datarootdir was given.
12140if test "${with_datarootdir+set}" = set; then
12141 withval="$with_datarootdir"
12142 datarootdir="\${prefix}/${withval}"
12143else
12144 datarootdir="\${prefix}/share"
c6b750e1 12145fi;
108a6f8e
CD
12146
12147
12148# Check whether --with-docdir or --without-docdir was given.
12149if test "${with_docdir+set}" = set; then
12150 withval="$with_docdir"
12151 docdir="\${prefix}/${withval}"
12152else
12153 docdir="\${datarootdir}/doc"
c6b750e1 12154fi;
108a6f8e
CD
12155
12156
a3ca38d2
DD
12157# Check whether --with-pdfdir or --without-pdfdir was given.
12158if test "${with_pdfdir+set}" = set; then
12159 withval="$with_pdfdir"
12160 pdfdir="\${prefix}/${withval}"
12161else
12162 pdfdir="\${docdir}"
12163fi;
12164
12165
108a6f8e
CD
12166# Check whether --with-htmldir or --without-htmldir was given.
12167if test "${with_htmldir+set}" = set; then
12168 withval="$with_htmldir"
12169 htmldir="\${prefix}/${withval}"
12170else
12171 htmldir="\${docdir}"
c6b750e1 12172fi;
108a6f8e
CD
12173
12174
12175
12176
12177
b8025f34 12178
c6b750e1
DJ
12179 ac_config_files="$ac_config_files Makefile"
12180cat >confcache <<\_ACEOF
a0da8069
NN
12181# This file is a shell script that caches the results of configure
12182# tests run on this system so they can be shared between configure
c6b750e1
DJ
12183# scripts and configure runs, see configure's option --config-cache.
12184# It is not useful on other systems. If it contains results you don't
12185# want to keep, you may remove or edit it.
a0da8069 12186#
c6b750e1
DJ
12187# config.status only pays attention to the cache file if you give it
12188# the --recheck option to rerun configure.
a0da8069 12189#
c6b750e1
DJ
12190# `ac_cv_env_foo' variables (set or unset) will be overridden when
12191# loading this file, other *unset* `ac_cv_foo' will be assigned the
12192# following values.
12193
12194_ACEOF
12195
a0da8069
NN
12196# The following way of writing the cache mishandles newlines in values,
12197# but we know of no workaround that is simple, portable, and efficient.
12198# So, don't put newlines in cache variables' values.
12199# Ultrix sh set writes to stderr and can't be redirected directly,
12200# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12201{
12202 (set) 2>&1 |
12203 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12204 *ac_space=\ *)
12205 # `set' does not quote correctly, so add quotes (double-quote
12206 # substitution turns \\\\ into \\, and sed turns \\ into \).
12207 sed -n \
12208 "s/'/'\\\\''/g;
12209 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12210 ;;
12211 *)
12212 # `set' quotes correctly as required by POSIX, so do not add quotes.
12213 sed -n \
12214 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12215 ;;
12216 esac;
12217} |
12218 sed '
12219 t clear
12220 : clear
12221 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12222 t end
12223 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12224 : end' >>confcache
12225if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12226 if test -w $cache_file; then
c6b750e1
DJ
12227 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12228 cat confcache >$cache_file
a0da8069
NN
12229 else
12230 echo "not updating unwritable cache $cache_file"
12231 fi
852e5f18 12232fi
a0da8069 12233rm -f confcache
852e5f18 12234
a0da8069
NN
12235test "x$prefix" = xNONE && prefix=$ac_default_prefix
12236# Let make expand exec_prefix.
12237test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12238
c6b750e1
DJ
12239# VPATH may cause trouble with some makes, so we remove $(srcdir),
12240# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12241# trailing colons and then remove the whole line if VPATH becomes empty
12242# (actually we leave an empty line to preserve line numbers).
a0da8069 12243if test "x$srcdir" = x.; then
c6b750e1
DJ
12244 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12245s/:*\$(srcdir):*/:/;
12246s/:*\${srcdir}:*/:/;
12247s/:*@srcdir@:*/:/;
12248s/^\([^=]*=[ ]*\):*/\1/;
12249s/:*$//;
12250s/^[^=]*=[ ]*$//;
12251}'
a0da8069 12252fi
252b5132 12253
a0da8069
NN
12254# Transform confdefs.h into DEFS.
12255# Protect against shell expansion while executing Makefile rules.
12256# Protect against Makefile macro expansion.
c6b750e1
DJ
12257#
12258# If the first sed substitution is executed (which looks for macros that
12259# take arguments), then we branch to the quote section. Otherwise,
12260# look for a macro that doesn't take arguments.
12261cat >confdef2opt.sed <<\_ACEOF
12262t clear
12263: clear
12264s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12265t quote
12266s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12267t quote
12268d
12269: quote
12270s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12271s,\[,\\&,g
12272s,\],\\&,g
12273s,\$,$$,g
12274p
12275_ACEOF
12276# We use echo to avoid assuming a particular line-breaking character.
12277# The extra dot is to prevent the shell from consuming trailing
12278# line-breaks from the sub-command output. A line-break within
12279# single-quotes doesn't work because, if this script is created in a
12280# platform that uses two characters for line-breaks (e.g., DOS), tr
12281# would break.
12282ac_LF_and_DOT=`echo; echo .`
12283DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12284rm -f confdef2opt.sed
12285
12286
12287ac_libobjs=
12288ac_ltlibobjs=
12289for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12290 # 1. Remove the extension, and $U if already installed.
12291 ac_i=`echo "$ac_i" |
12292 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12293 # 2. Add them.
12294 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12295 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12296done
12297LIBOBJS=$ac_libobjs
852e5f18 12298
c6b750e1 12299LTLIBOBJS=$ac_ltlibobjs
376a0e54 12300
cac3d6c4 12301
c6b750e1
DJ
12302
12303: ${CONFIG_STATUS=./config.status}
12304ac_clean_files_save=$ac_clean_files
12305ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12306{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12307echo "$as_me: creating $CONFIG_STATUS" >&6;}
12308cat >$CONFIG_STATUS <<_ACEOF
12309#! $SHELL
12310# Generated by $as_me.
a0da8069 12311# Run this file to recreate the current configuration.
a0da8069 12312# Compiler output produced by configure, useful for debugging
c6b750e1 12313# configure, is in config.log if it exists.
376a0e54 12314
c6b750e1
DJ
12315debug=false
12316ac_cs_recheck=false
12317ac_cs_silent=false
12318SHELL=\${CONFIG_SHELL-$SHELL}
12319_ACEOF
12320
12321cat >>$CONFIG_STATUS <<\_ACEOF
12322## --------------------- ##
12323## M4sh Initialization. ##
12324## --------------------- ##
12325
12326# Be Bourne compatible
12327if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12328 emulate sh
12329 NULLCMD=:
12330 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12331 # is contrary to our usage. Disable this feature.
12332 alias -g '${1+"$@"}'='"$@"'
12333elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12334 set -o posix
12335fi
12336DUALCASE=1; export DUALCASE # for MKS sh
12337
12338# Support unset when possible.
12339if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12340 as_unset=unset
12341else
12342 as_unset=false
12343fi
12344
12345
12346# Work around bugs in pre-3.0 UWIN ksh.
12347$as_unset ENV MAIL MAILPATH
12348PS1='$ '
12349PS2='> '
12350PS4='+ '
12351
12352# NLS nuisances.
12353for as_var in \
12354 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12355 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12356 LC_TELEPHONE LC_TIME
12357do
12358 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12359 eval $as_var=C; export $as_var
12360 else
12361 $as_unset $as_var
12362 fi
12363done
12364
12365# Required to use basename.
12366if expr a : '\(a\)' >/dev/null 2>&1; then
12367 as_expr=expr
12368else
12369 as_expr=false
12370fi
12371
12372if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12373 as_basename=basename
12374else
12375 as_basename=false
12376fi
12377
12378
12379# Name of the executable.
12380as_me=`$as_basename "$0" ||
12381$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12382 X"$0" : 'X\(//\)$' \| \
12383 X"$0" : 'X\(/\)$' \| \
12384 . : '\(.\)' 2>/dev/null ||
12385echo X/"$0" |
12386 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12387 /^X\/\(\/\/\)$/{ s//\1/; q; }
12388 /^X\/\(\/\).*/{ s//\1/; q; }
12389 s/.*/./; q'`
12390
12391
12392# PATH needs CR, and LINENO needs CR and PATH.
12393# Avoid depending upon Character Ranges.
12394as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12395as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12396as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12397as_cr_digits='0123456789'
12398as_cr_alnum=$as_cr_Letters$as_cr_digits
12399
12400# The user is always right.
12401if test "${PATH_SEPARATOR+set}" != set; then
12402 echo "#! /bin/sh" >conf$$.sh
12403 echo "exit 0" >>conf$$.sh
12404 chmod +x conf$$.sh
12405 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12406 PATH_SEPARATOR=';'
12407 else
12408 PATH_SEPARATOR=:
12409 fi
12410 rm -f conf$$.sh
12411fi
12412
12413
12414 as_lineno_1=$LINENO
12415 as_lineno_2=$LINENO
12416 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12417 test "x$as_lineno_1" != "x$as_lineno_2" &&
12418 test "x$as_lineno_3" = "x$as_lineno_2" || {
12419 # Find who we are. Look in the path if we contain no path at all
12420 # relative or not.
12421 case $0 in
12422 *[\\/]* ) as_myself=$0 ;;
12423 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12424for as_dir in $PATH
12425do
12426 IFS=$as_save_IFS
12427 test -z "$as_dir" && as_dir=.
12428 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12429done
12430
12431 ;;
12432 esac
12433 # We did not find ourselves, most probably we were run as `sh COMMAND'
12434 # in which case we are not to be found in the path.
12435 if test "x$as_myself" = x; then
12436 as_myself=$0
12437 fi
12438 if test ! -f "$as_myself"; then
12439 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12440echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12441 { (exit 1); exit 1; }; }
12442 fi
12443 case $CONFIG_SHELL in
12444 '')
12445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12446for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12447do
12448 IFS=$as_save_IFS
12449 test -z "$as_dir" && as_dir=.
12450 for as_base in sh bash ksh sh5; do
12451 case $as_dir in
12452 /*)
12453 if ("$as_dir/$as_base" -c '
12454 as_lineno_1=$LINENO
12455 as_lineno_2=$LINENO
12456 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12457 test "x$as_lineno_1" != "x$as_lineno_2" &&
12458 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12459 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12460 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12461 CONFIG_SHELL=$as_dir/$as_base
12462 export CONFIG_SHELL
12463 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12464 fi;;
12465 esac
12466 done
12467done
12468;;
12469 esac
12470
12471 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12472 # uniformly replaced by the line number. The first 'sed' inserts a
12473 # line-number line before each line; the second 'sed' does the real
12474 # work. The second script uses 'N' to pair each line-number line
12475 # with the numbered line, and appends trailing '-' during
12476 # substitution so that $LINENO is not a special case at line end.
12477 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12478 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12479 sed '=' <$as_myself |
12480 sed '
12481 N
12482 s,$,-,
12483 : loop
12484 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12485 t loop
12486 s,-$,,
12487 s,^['$as_cr_digits']*\n,,
12488 ' >$as_me.lineno &&
12489 chmod +x $as_me.lineno ||
12490 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12491echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12492 { (exit 1); exit 1; }; }
12493
12494 # Don't try to exec as it changes $[0], causing all sort of problems
12495 # (the dirname of $[0] is not the place where we might find the
12496 # original and so on. Autoconf is especially sensible to this).
12497 . ./$as_me.lineno
12498 # Exit status is that of the last command.
12499 exit
12500}
12501
12502
12503case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12504 *c*,-n*) ECHO_N= ECHO_C='
12505' ECHO_T=' ' ;;
12506 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12507 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12508esac
12509
12510if expr a : '\(a\)' >/dev/null 2>&1; then
12511 as_expr=expr
12512else
12513 as_expr=false
12514fi
12515
12516rm -f conf$$ conf$$.exe conf$$.file
12517echo >conf$$.file
12518if ln -s conf$$.file conf$$ 2>/dev/null; then
12519 # We could just check for DJGPP; but this test a) works b) is more generic
12520 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12521 if test -f conf$$.exe; then
12522 # Don't use ln at all; we don't have any links
12523 as_ln_s='cp -p'
12524 else
12525 as_ln_s='ln -s'
12526 fi
12527elif ln conf$$.file conf$$ 2>/dev/null; then
12528 as_ln_s=ln
12529else
12530 as_ln_s='cp -p'
12531fi
12532rm -f conf$$ conf$$.exe conf$$.file
12533
12534if mkdir -p . 2>/dev/null; then
12535 as_mkdir_p=:
12536else
12537 test -d ./-p && rmdir ./-p
12538 as_mkdir_p=false
12539fi
12540
12541as_executable_p="test -f"
12542
12543# Sed expression to map a string onto a valid CPP name.
12544as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12545
12546# Sed expression to map a string onto a valid variable name.
12547as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12548
12549
12550# IFS
12551# We need space, tab and new line, in precisely that order.
12552as_nl='
12553'
12554IFS=" $as_nl"
12555
12556# CDPATH.
12557$as_unset CDPATH
12558
12559exec 6>&1
12560
12561# Open the log real soon, to keep \$[0] and so on meaningful, and to
12562# report actual input values of CONFIG_FILES etc. instead of their
12563# values after options handling. Logging --version etc. is OK.
12564exec 5>>config.log
12565{
12566 echo
12567 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12568## Running $as_me. ##
12569_ASBOX
12570} >&5
12571cat >&5 <<_CSEOF
12572
12573This file was extended by $as_me, which was
12574generated by GNU Autoconf 2.59. Invocation command line was
12575
12576 CONFIG_FILES = $CONFIG_FILES
12577 CONFIG_HEADERS = $CONFIG_HEADERS
12578 CONFIG_LINKS = $CONFIG_LINKS
12579 CONFIG_COMMANDS = $CONFIG_COMMANDS
12580 $ $0 $@
12581
12582_CSEOF
12583echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12584echo >&5
12585_ACEOF
12586
12587# Files that config.status was made for.
12588if test -n "$ac_config_files"; then
12589 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12590fi
12591
12592if test -n "$ac_config_headers"; then
12593 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12594fi
12595
12596if test -n "$ac_config_links"; then
12597 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12598fi
12599
12600if test -n "$ac_config_commands"; then
12601 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12602fi
12603
12604cat >>$CONFIG_STATUS <<\_ACEOF
12605
12606ac_cs_usage="\
12607\`$as_me' instantiates files from templates according to the
12608current configuration.
12609
12610Usage: $0 [OPTIONS] [FILE]...
12611
12612 -h, --help print this help, then exit
12613 -V, --version print version number, then exit
12614 -q, --quiet do not print progress messages
12615 -d, --debug don't remove temporary files
12616 --recheck update $as_me by reconfiguring in the same conditions
12617 --file=FILE[:TEMPLATE]
12618 instantiate the configuration file FILE
12619
12620Configuration files:
12621$config_files
12622
12623Report bugs to <bug-autoconf@gnu.org>."
12624_ACEOF
12625
12626cat >>$CONFIG_STATUS <<_ACEOF
12627ac_cs_version="\\
12628config.status
12629configured by $0, generated by GNU Autoconf 2.59,
12630 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12631
12632Copyright (C) 2003 Free Software Foundation, Inc.
12633This config.status script is free software; the Free Software Foundation
12634gives unlimited permission to copy, distribute and modify it."
12635srcdir=$srcdir
12636INSTALL="$INSTALL"
12637_ACEOF
12638
12639cat >>$CONFIG_STATUS <<\_ACEOF
12640# If no file are specified by the user, then we need to provide default
12641# value. By we need to know if files were specified by the user.
12642ac_need_defaults=:
12643while test $# != 0
a0da8069 12644do
c6b750e1
DJ
12645 case $1 in
12646 --*=*)
12647 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12648 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12649 ac_shift=:
12650 ;;
12651 -*)
12652 ac_option=$1
12653 ac_optarg=$2
12654 ac_shift=shift
12655 ;;
12656 *) # This is not an option, so the user has probably given explicit
12657 # arguments.
12658 ac_option=$1
12659 ac_need_defaults=false;;
12660 esac
12661
12662 case $ac_option in
12663 # Handling of the options.
12664_ACEOF
12665cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12666 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12667 ac_cs_recheck=: ;;
12668 --version | --vers* | -V )
12669 echo "$ac_cs_version"; exit 0 ;;
12670 --he | --h)
12671 # Conflict between --help and --header
12672 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12673Try \`$0 --help' for more information." >&5
12674echo "$as_me: error: ambiguous option: $1
12675Try \`$0 --help' for more information." >&2;}
12676 { (exit 1); exit 1; }; };;
12677 --help | --hel | -h )
12678 echo "$ac_cs_usage"; exit 0 ;;
12679 --debug | --d* | -d )
12680 debug=: ;;
12681 --file | --fil | --fi | --f )
12682 $ac_shift
12683 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12684 ac_need_defaults=false;;
12685 --header | --heade | --head | --hea )
12686 $ac_shift
12687 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12688 ac_need_defaults=false;;
12689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12690 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12691 ac_cs_silent=: ;;
12692
12693 # This is an error.
12694 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12695Try \`$0 --help' for more information." >&5
12696echo "$as_me: error: unrecognized option: $1
12697Try \`$0 --help' for more information." >&2;}
12698 { (exit 1); exit 1; }; } ;;
12699
12700 *) ac_config_targets="$ac_config_targets $1" ;;
12701
376a0e54 12702 esac
c6b750e1 12703 shift
376a0e54
CM
12704done
12705
c6b750e1 12706ac_configure_extra_args=
376a0e54 12707
c6b750e1
DJ
12708if $ac_cs_silent; then
12709 exec 6>/dev/null
12710 ac_configure_extra_args="$ac_configure_extra_args --silent"
12711fi
376a0e54 12712
c6b750e1
DJ
12713_ACEOF
12714cat >>$CONFIG_STATUS <<_ACEOF
12715if \$ac_cs_recheck; then
12716 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12717 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12718fi
12719
12720_ACEOF
12721
12722
12723
12724
12725
12726cat >>$CONFIG_STATUS <<\_ACEOF
12727for ac_config_target in $ac_config_targets
12728do
12729 case "$ac_config_target" in
12730 # Handling of arguments.
12731 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12732 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12733echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12734 { (exit 1); exit 1; }; };;
12735 esac
12736done
12737
12738# If the user did not use the arguments to specify the items to instantiate,
12739# then the envvar interface is used. Set only those that are not.
12740# We use the long form for the default assignment because of an extremely
12741# bizarre bug on SunOS 4.1.3.
12742if $ac_need_defaults; then
12743 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12744fi
12745
12746# Have a temporary directory for convenience. Make it in the build tree
12747# simply because there is no reason to put it here, and in addition,
12748# creating and moving files from /tmp can sometimes cause problems.
12749# Create a temporary directory, and hook for its removal unless debugging.
12750$debug ||
12751{
12752 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12753 trap '{ (exit 1); exit 1; }' 1 2 13 15
12754}
12755
12756# Create a (secure) tmp directory for tmp files.
12757
12758{
12759 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12760 test -n "$tmp" && test -d "$tmp"
12761} ||
12762{
12763 tmp=./confstat$$-$RANDOM
12764 (umask 077 && mkdir $tmp)
12765} ||
12766{
12767 echo "$me: cannot create a temporary directory in ." >&2
12768 { (exit 1); exit 1; }
12769}
12770
12771_ACEOF
12772
12773cat >>$CONFIG_STATUS <<_ACEOF
12774
12775#
12776# CONFIG_FILES section.
12777#
12778
12779# No need to generate the scripts if there are no CONFIG_FILES.
12780# This happens for instance when ./config.status config.h
12781if test -n "\$CONFIG_FILES"; then
12782 # Protect against being on the right side of a sed subst in config.status.
12783 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12784 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12785s,@SHELL@,$SHELL,;t t
12786s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12787s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12788s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12789s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12790s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12791s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12792s,@exec_prefix@,$exec_prefix,;t t
12793s,@prefix@,$prefix,;t t
12794s,@program_transform_name@,$program_transform_name,;t t
12795s,@bindir@,$bindir,;t t
12796s,@sbindir@,$sbindir,;t t
12797s,@libexecdir@,$libexecdir,;t t
12798s,@datadir@,$datadir,;t t
12799s,@sysconfdir@,$sysconfdir,;t t
12800s,@sharedstatedir@,$sharedstatedir,;t t
12801s,@localstatedir@,$localstatedir,;t t
12802s,@libdir@,$libdir,;t t
12803s,@includedir@,$includedir,;t t
12804s,@oldincludedir@,$oldincludedir,;t t
12805s,@infodir@,$infodir,;t t
12806s,@mandir@,$mandir,;t t
12807s,@build_alias@,$build_alias,;t t
12808s,@host_alias@,$host_alias,;t t
12809s,@target_alias@,$target_alias,;t t
12810s,@DEFS@,$DEFS,;t t
12811s,@ECHO_C@,$ECHO_C,;t t
12812s,@ECHO_N@,$ECHO_N,;t t
12813s,@ECHO_T@,$ECHO_T,;t t
12814s,@LIBS@,$LIBS,;t t
12815s,@build@,$build,;t t
12816s,@build_cpu@,$build_cpu,;t t
12817s,@build_vendor@,$build_vendor,;t t
12818s,@build_os@,$build_os,;t t
12819s,@build_noncanonical@,$build_noncanonical,;t t
12820s,@host_noncanonical@,$host_noncanonical,;t t
12821s,@target_noncanonical@,$target_noncanonical,;t t
12822s,@host@,$host,;t t
12823s,@host_cpu@,$host_cpu,;t t
12824s,@host_vendor@,$host_vendor,;t t
12825s,@host_os@,$host_os,;t t
12826s,@target@,$target,;t t
12827s,@target_cpu@,$target_cpu,;t t
12828s,@target_vendor@,$target_vendor,;t t
12829s,@target_os@,$target_os,;t t
12830s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12831s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12832s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12833s,@LN@,$LN,;t t
12834s,@LN_S@,$LN_S,;t t
12835s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12836s,@build_libsubdir@,$build_libsubdir,;t t
12837s,@build_subdir@,$build_subdir,;t t
12838s,@host_subdir@,$host_subdir,;t t
12839s,@target_subdir@,$target_subdir,;t t
12840s,@CC@,$CC,;t t
12841s,@CFLAGS@,$CFLAGS,;t t
12842s,@LDFLAGS@,$LDFLAGS,;t t
12843s,@CPPFLAGS@,$CPPFLAGS,;t t
12844s,@ac_ct_CC@,$ac_ct_CC,;t t
12845s,@EXEEXT@,$EXEEXT,;t t
12846s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12847s,@CXX@,$CXX,;t t
12848s,@CXXFLAGS@,$CXXFLAGS,;t t
12849s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12850s,@GNATBIND@,$GNATBIND,;t t
12851s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12852s,@GNATMAKE@,$GNATMAKE,;t t
12853s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12854s,@do_compare@,$do_compare,;t t
12855s,@gmplibs@,$gmplibs,;t t
12856s,@gmpinc@,$gmpinc,;t t
12857s,@stage1_languages@,$stage1_languages,;t t
12858s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 12859s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
7f6ef0c0
PB
12860s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
12861s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
c6b750e1
DJ
12862s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12863s,@tooldir@,$tooldir,;t t
12864s,@build_tooldir@,$build_tooldir,;t t
12865s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12866s,@GDB_TK@,$GDB_TK,;t t
12867s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12868s,@build_configargs@,$build_configargs,;t t
12869s,@build_configdirs@,$build_configdirs,;t t
12870s,@host_configargs@,$host_configargs,;t t
12871s,@configdirs@,$configdirs,;t t
12872s,@target_configargs@,$target_configargs,;t t
1576798e
PB
12873s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
12874s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
c6b750e1 12875s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
1576798e
PB
12876s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12877s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
12878s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
12879s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
12880s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
12881s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
12882s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
12883s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
12884s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
12885s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
12886s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
12887s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
c6b750e1
DJ
12888s,@config_shell@,$config_shell,;t t
12889s,@YACC@,$YACC,;t t
12890s,@BISON@,$BISON,;t t
12891s,@M4@,$M4,;t t
12892s,@LEX@,$LEX,;t t
12893s,@FLEX@,$FLEX,;t t
12894s,@MAKEINFO@,$MAKEINFO,;t t
12895s,@EXPECT@,$EXPECT,;t t
12896s,@RUNTEST@,$RUNTEST,;t t
12897s,@AR@,$AR,;t t
12898s,@AS@,$AS,;t t
12899s,@DLLTOOL@,$DLLTOOL,;t t
12900s,@LD@,$LD,;t t
12901s,@LIPO@,$LIPO,;t t
12902s,@NM@,$NM,;t t
12903s,@RANLIB@,$RANLIB,;t t
12904s,@STRIP@,$STRIP,;t t
12905s,@WINDRES@,$WINDRES,;t t
0c24b341 12906s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
12907s,@OBJCOPY@,$OBJCOPY,;t t
12908s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1
DJ
12909s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12910s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12911s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12912s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12913s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12914s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12915s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12916s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12917s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12918s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12919s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12920s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12921s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12922s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12923s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 12924s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
12925s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12926s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12927s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12928s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12929s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12930s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12931s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12932s,@MAINT@,$MAINT,;t t
12933s,@stage1_cflags@,$stage1_cflags,;t t
12934s,@stage1_checking@,$stage1_checking,;t t
12935s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12936s,@datarootdir@,$datarootdir,;t t
12937s,@docdir@,$docdir,;t t
a3ca38d2 12938s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
12939s,@htmldir@,$htmldir,;t t
12940s,@LIBOBJS@,$LIBOBJS,;t t
12941s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 12942/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 12943s,@serialization_dependencies@,,;t t
a0da8069 12944/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 12945s,@host_makefile_frag@,,;t t
a0da8069 12946/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 12947s,@target_makefile_frag@,,;t t
a0da8069 12948/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 12949s,@alphaieee_frag@,,;t t
a0da8069 12950/@ospace_frag@/r $ospace_frag
c6b750e1 12951s,@ospace_frag@,,;t t
a0da8069 12952CEOF
252b5132 12953
c6b750e1
DJ
12954_ACEOF
12955
12956 cat >>$CONFIG_STATUS <<\_ACEOF
12957 # Split the substitutions into bite-sized pieces for seds with
12958 # small command number limits, like on Digital OSF/1 and HP-UX.
12959 ac_max_sed_lines=48
12960 ac_sed_frag=1 # Number of current file.
12961 ac_beg=1 # First line for current file.
12962 ac_end=$ac_max_sed_lines # Line after last line for current file.
12963 ac_more_lines=:
12964 ac_sed_cmds=
12965 while $ac_more_lines; do
12966 if test $ac_beg -gt 1; then
12967 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12968 else
12969 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12970 fi
12971 if test ! -s $tmp/subs.frag; then
12972 ac_more_lines=false
a0da8069 12973 else
c6b750e1
DJ
12974 # The purpose of the label and of the branching condition is to
12975 # speed up the sed processing (if there are no `@' at all, there
12976 # is no need to browse any of the substitutions).
12977 # These are the two extra sed commands mentioned above.
12978 (echo ':t
12979 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12980 if test -z "$ac_sed_cmds"; then
12981 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12982 else
12983 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12984 fi
12985 ac_sed_frag=`expr $ac_sed_frag + 1`
12986 ac_beg=$ac_end
12987 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 12988 fi
c6b750e1
DJ
12989 done
12990 if test -z "$ac_sed_cmds"; then
12991 ac_sed_cmds=cat
852e5f18 12992 fi
c6b750e1 12993fi # test -n "$CONFIG_FILES"
cac3d6c4 12994
c6b750e1
DJ
12995_ACEOF
12996cat >>$CONFIG_STATUS <<\_ACEOF
12997for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 12998 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
12999 case $ac_file in
13000 - | *:- | *:-:* ) # input from stdin
13001 cat >$tmp/stdin
13002 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13003 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13004 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13005 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13006 * ) ac_file_in=$ac_file.in ;;
a0da8069 13007 esac
252b5132 13008
c6b750e1
DJ
13009 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13010 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13011$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13012 X"$ac_file" : 'X\(//\)[^/]' \| \
13013 X"$ac_file" : 'X\(//\)$' \| \
13014 X"$ac_file" : 'X\(/\)' \| \
13015 . : '\(.\)' 2>/dev/null ||
13016echo X"$ac_file" |
13017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13018 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13019 /^X\(\/\/\)$/{ s//\1/; q; }
13020 /^X\(\/\).*/{ s//\1/; q; }
13021 s/.*/./; q'`
13022 { if $as_mkdir_p; then
13023 mkdir -p "$ac_dir"
cac3d6c4 13024 else
c6b750e1
DJ
13025 as_dir="$ac_dir"
13026 as_dirs=
13027 while test ! -d "$as_dir"; do
13028 as_dirs="$as_dir $as_dirs"
13029 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13030$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13031 X"$as_dir" : 'X\(//\)[^/]' \| \
13032 X"$as_dir" : 'X\(//\)$' \| \
13033 X"$as_dir" : 'X\(/\)' \| \
13034 . : '\(.\)' 2>/dev/null ||
13035echo X"$as_dir" |
13036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13037 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13038 /^X\(\/\/\)$/{ s//\1/; q; }
13039 /^X\(\/\).*/{ s//\1/; q; }
13040 s/.*/./; q'`
13041 done
13042 test ! -n "$as_dirs" || mkdir $as_dirs
13043 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13044echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13045 { (exit 1); exit 1; }; }; }
13046
13047 ac_builddir=.
252b5132 13048
c6b750e1
DJ
13049if test "$ac_dir" != .; then
13050 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13051 # A "../" for each directory in $ac_dir_suffix.
13052 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13053else
13054 ac_dir_suffix= ac_top_builddir=
13055fi
13056
13057case $srcdir in
13058 .) # No --srcdir option. We are building in place.
13059 ac_srcdir=.
13060 if test -z "$ac_top_builddir"; then
13061 ac_top_srcdir=.
13062 else
13063 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13064 fi ;;
13065 [\\/]* | ?:[\\/]* ) # Absolute path.
13066 ac_srcdir=$srcdir$ac_dir_suffix;
13067 ac_top_srcdir=$srcdir ;;
a0da8069 13068 *) # Relative path.
c6b750e1
DJ
13069 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13070 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13071esac
252b5132 13072
c6b750e1
DJ
13073# Do not use `cd foo && pwd` to compute absolute paths, because
13074# the directories may not exist.
13075case `pwd` in
13076.) ac_abs_builddir="$ac_dir";;
13077*)
13078 case "$ac_dir" in
13079 .) ac_abs_builddir=`pwd`;;
13080 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13081 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13082 esac;;
13083esac
13084case $ac_abs_builddir in
13085.) ac_abs_top_builddir=${ac_top_builddir}.;;
13086*)
13087 case ${ac_top_builddir}. in
13088 .) ac_abs_top_builddir=$ac_abs_builddir;;
13089 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13090 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13091 esac;;
13092esac
13093case $ac_abs_builddir in
13094.) ac_abs_srcdir=$ac_srcdir;;
13095*)
13096 case $ac_srcdir in
13097 .) ac_abs_srcdir=$ac_abs_builddir;;
13098 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13099 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13100 esac;;
13101esac
13102case $ac_abs_builddir in
13103.) ac_abs_top_srcdir=$ac_top_srcdir;;
13104*)
13105 case $ac_top_srcdir in
13106 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13107 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13108 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13109 esac;;
13110esac
252b5132 13111
c6b750e1
DJ
13112
13113 case $INSTALL in
13114 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13115 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13116 esac
252b5132 13117
c6b750e1
DJ
13118 if test x"$ac_file" != x-; then
13119 { echo "$as_me:$LINENO: creating $ac_file" >&5
13120echo "$as_me: creating $ac_file" >&6;}
13121 rm -f "$ac_file"
13122 fi
13123 # Let's still pretend it is `configure' which instantiates (i.e., don't
13124 # use $as_me), people would be surprised to read:
13125 # /* config.h. Generated by config.status. */
13126 if test x"$ac_file" = x-; then
13127 configure_input=
13128 else
13129 configure_input="$ac_file. "
13130 fi
13131 configure_input=$configure_input"Generated from `echo $ac_file_in |
13132 sed 's,.*/,,'` by configure."
13133
13134 # First look for the input files in the build tree, otherwise in the
13135 # src tree.
13136 ac_file_inputs=`IFS=:
13137 for f in $ac_file_in; do
13138 case $f in
13139 -) echo $tmp/stdin ;;
13140 [\\/$]*)
13141 # Absolute (can't be DOS-style, as IFS=:)
13142 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13143echo "$as_me: error: cannot find input file: $f" >&2;}
13144 { (exit 1); exit 1; }; }
13145 echo "$f";;
13146 *) # Relative
13147 if test -f "$f"; then
13148 # Build tree
13149 echo "$f"
13150 elif test -f "$srcdir/$f"; then
13151 # Source tree
13152 echo "$srcdir/$f"
13153 else
13154 # /dev/null tree
13155 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13156echo "$as_me: error: cannot find input file: $f" >&2;}
13157 { (exit 1); exit 1; }; }
13158 fi;;
13159 esac
13160 done` || { (exit 1); exit 1; }
13161_ACEOF
13162cat >>$CONFIG_STATUS <<_ACEOF
13163 sed "$ac_vpsub
13164$extrasub
13165_ACEOF
13166cat >>$CONFIG_STATUS <<\_ACEOF
13167:t
13168/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13169s,@configure_input@,$configure_input,;t t
13170s,@srcdir@,$ac_srcdir,;t t
13171s,@abs_srcdir@,$ac_abs_srcdir,;t t
13172s,@top_srcdir@,$ac_top_srcdir,;t t
13173s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13174s,@builddir@,$ac_builddir,;t t
13175s,@abs_builddir@,$ac_abs_builddir,;t t
13176s,@top_builddir@,$ac_top_builddir,;t t
13177s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13178s,@INSTALL@,$ac_INSTALL,;t t
13179" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13180 rm -f $tmp/stdin
13181 if test x"$ac_file" != x-; then
13182 mv $tmp/out $ac_file
13183 else
13184 cat $tmp/out
13185 rm -f $tmp/out
13186 fi
c148b4cb 13187
c6b750e1
DJ
13188done
13189_ACEOF
c148b4cb 13190
c6b750e1 13191cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13192
c6b750e1
DJ
13193{ (exit 0); exit 0; }
13194_ACEOF
c148b4cb 13195chmod +x $CONFIG_STATUS
c6b750e1
DJ
13196ac_clean_files=$ac_clean_files_save
13197
13198
13199# configure is writing to config.log, and then calls config.status.
13200# config.status does its own redirection, appending to config.log.
13201# Unfortunately, on DOS this fails, as config.log is still kept open
13202# by configure, so config.status won't be able to write to it; its
13203# output is simply discarded. So we exec the FD to /dev/null,
13204# effectively closing config.log, so it can be properly (re)opened and
13205# appended to by config.status. When coming back to configure, we
13206# need to make the FD available again.
13207if test "$no_create" != yes; then
13208 ac_cs_success=:
13209 ac_config_status_args=
13210 test "$silent" = yes &&
13211 ac_config_status_args="$ac_config_status_args --quiet"
13212 exec 5>/dev/null
13213 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13214 exec 5>>config.log
13215 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13216 # would make configure fail if this is the last instruction.
13217 $ac_cs_success || { (exit 1); exit 1; }
13218fi
c148b4cb 13219
This page took 1.163562 seconds and 4 git commands to generate.