2008-04-18 Paolo Bonzini <bonzini@gnu.org>
[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]
93f9b408 934 --enable-gold use gold instead of ld
521ec477
DD
935 --enable-libada build libada directory
936 --enable-libssp build libssp directory
937 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 938 stage1. Mostly useful for compiler development.
521ec477
DD
939 --enable-objc-gc enable use of Boehm's garbage collector with the
940 GNU Objective-C runtime
941 --enable-bootstrap enable bootstrapping [yes if native build]
942 --enable-serial-[{host,target,build}-]configure
943 force sequential configuration of
c6b750e1 944 sub-packages for the host, target or build
521ec477 945 machine, or all sub-packages
c6b750e1
DJ
946 --enable-maintainer-mode enable make rules and dependencies not useful
947 (and sometimes confusing) to the casual installer
521ec477
DD
948 --enable-stage1-checking[=all] choose additional checking for stage1
949 of the compiler
c6b750e1
DJ
950 --enable-werror enable -Werror in bootstrap stage2 and later
951
952Optional Packages:
953 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
954 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
955 --with-build-libsubdir=DIR Directory where to find libraries for build system
521ec477
DD
956 --with-mpfr-dir=PATH this option has been REMOVED
957 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
958 Equivalent to --with-mpfr-include=PATH/include
959 plus --with-mpfr-lib=PATH/lib
960 --with-mpfr-include=PATH
521ec477
DD
961 specify directory for installed MPFR include files
962 --with-mpfr-lib=PATH specify directory for the installed MPFR library
963 --with-gmp-dir=PATH this option has been REMOVED
964 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
965 Equivalent to --with-gmp-include=PATH/include
966 plus --with-gmp-lib=PATH/lib
521ec477
DD
967 --with-gmp-include=PATH specify directory for installed GMP include files
968 --with-gmp-lib=PATH specify directory for the installed GMP library
969 --with-build-sysroot=SYSROOT
c6b750e1 970 use sysroot as the system root during the build
8a6ee3ab
JM
971 --with-debug-prefix-map='A=B C=D ...'
972 map A to B, C to D ... in debug information
521ec477 973 --with-build-time-tools=PATH
c6b750e1 974 use given path to find target tools during the build
521ec477
DD
975 --with-datarootdir use datarootdir as the data root directory.
976 --with-docdir install documentation in this directory.
977 --with-pdfdir install pdf in this directory.
978 --with-htmldir install html in this directory.
c6b750e1
DJ
979
980Some influential environment variables:
981 CC C compiler command
982 CFLAGS C compiler flags
983 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
984 nonstandard directory <lib dir>
985 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
986 headers in a nonstandard directory <include dir>
18f6b6ee
PB
987 CXX C++ compiler command
988 CXXFLAGS C++ compiler flags
9a819804
AO
989 AR AR for the host
990 AS AS for the host
991 DLLTOOL DLLTOOL for the host
992 LD LD for the host
993 LIPO LIPO for the host
994 NM NM for the host
995 RANLIB RANLIB for the host
996 STRIP STRIP for the host
997 WINDRES WINDRES for the host
0c24b341 998 WINDMC WINDMC for the host
9a819804
AO
999 OBJCOPY OBJCOPY for the host
1000 OBJDUMP OBJDUMP for the host
1001 CC_FOR_TARGET
1002 CC for the target
1003 CXX_FOR_TARGET
1004 CXX for the target
1005 GCC_FOR_TARGET
1006 GCC for the target
1007 GCJ_FOR_TARGET
1008 GCJ for the target
1009 GFORTRAN_FOR_TARGET
1010 GFORTRAN for the target
1011 AR_FOR_TARGET
1012 AR for the target
1013 AS_FOR_TARGET
1014 AS for the target
1015 DLLTOOL_FOR_TARGET
1016 DLLTOOL for the target
1017 LD_FOR_TARGET
1018 LD for the target
1019 LIPO_FOR_TARGET
1020 LIPO for the target
1021 NM_FOR_TARGET
1022 NM for the target
1023 OBJDUMP_FOR_TARGET
1024 OBJDUMP for the target
1025 RANLIB_FOR_TARGET
1026 RANLIB for the target
1027 STRIP_FOR_TARGET
1028 STRIP for the target
1029 WINDRES_FOR_TARGET
1030 WINDRES for the target
0c24b341
NC
1031 WINDMC_FOR_TARGET
1032 WINDMC for the target
c6b750e1
DJ
1033
1034Use these variables to override the choices made by `configure' or to help
1035it to find libraries and programs with nonstandard names/locations.
1036
1037_ACEOF
1038fi
1039
1040if test "$ac_init_help" = "recursive"; then
1041 # If there are subdirs, report their specific --help.
1042 ac_popdir=`pwd`
1043 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1044 test -d $ac_dir || continue
1045 ac_builddir=.
1046
1047if test "$ac_dir" != .; then
1048 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1049 # A "../" for each directory in $ac_dir_suffix.
1050 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1051else
1052 ac_dir_suffix= ac_top_builddir=
1053fi
1054
1055case $srcdir in
1056 .) # No --srcdir option. We are building in place.
1057 ac_srcdir=.
1058 if test -z "$ac_top_builddir"; then
1059 ac_top_srcdir=.
1060 else
1061 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1062 fi ;;
1063 [\\/]* | ?:[\\/]* ) # Absolute path.
1064 ac_srcdir=$srcdir$ac_dir_suffix;
1065 ac_top_srcdir=$srcdir ;;
1066 *) # Relative path.
1067 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1068 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1069esac
1070
1071# Do not use `cd foo && pwd` to compute absolute paths, because
1072# the directories may not exist.
1073case `pwd` in
1074.) ac_abs_builddir="$ac_dir";;
1075*)
1076 case "$ac_dir" in
1077 .) ac_abs_builddir=`pwd`;;
1078 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1079 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1080 esac;;
1081esac
1082case $ac_abs_builddir in
1083.) ac_abs_top_builddir=${ac_top_builddir}.;;
1084*)
1085 case ${ac_top_builddir}. in
1086 .) ac_abs_top_builddir=$ac_abs_builddir;;
1087 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1088 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1089 esac;;
1090esac
1091case $ac_abs_builddir in
1092.) ac_abs_srcdir=$ac_srcdir;;
1093*)
1094 case $ac_srcdir in
1095 .) ac_abs_srcdir=$ac_abs_builddir;;
1096 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1097 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1098 esac;;
1099esac
1100case $ac_abs_builddir in
1101.) ac_abs_top_srcdir=$ac_top_srcdir;;
1102*)
1103 case $ac_top_srcdir in
1104 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1105 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1106 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1107 esac;;
1108esac
1109
1110 cd $ac_dir
1111 # Check for guested configure; otherwise get Cygnus style configure.
1112 if test -f $ac_srcdir/configure.gnu; then
1113 echo
1114 $SHELL $ac_srcdir/configure.gnu --help=recursive
1115 elif test -f $ac_srcdir/configure; then
1116 echo
1117 $SHELL $ac_srcdir/configure --help=recursive
1118 elif test -f $ac_srcdir/configure.ac ||
1119 test -f $ac_srcdir/configure.in; then
1120 echo
1121 $ac_configure --help
1122 else
1123 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1124 fi
1125 cd $ac_popdir
1126 done
1127fi
1128
1129test -n "$ac_init_help" && exit 0
1130if $ac_init_version; then
1131 cat <<\_ACEOF
1132
1133Copyright (C) 2003 Free Software Foundation, Inc.
1134This configure script is free software; the Free Software Foundation
1135gives unlimited permission to copy, distribute and modify it.
1136_ACEOF
1137 exit 0
1138fi
1139exec 5>config.log
1140cat >&5 <<_ACEOF
1141This file contains any messages produced by compilers while
1142running configure, to aid debugging if configure makes a mistake.
1143
1144It was created by $as_me, which was
1145generated by GNU Autoconf 2.59. Invocation command line was
1146
1147 $ $0 $@
1148
1149_ACEOF
1150{
1151cat <<_ASUNAME
1152## --------- ##
1153## Platform. ##
1154## --------- ##
1155
1156hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1157uname -m = `(uname -m) 2>/dev/null || echo unknown`
1158uname -r = `(uname -r) 2>/dev/null || echo unknown`
1159uname -s = `(uname -s) 2>/dev/null || echo unknown`
1160uname -v = `(uname -v) 2>/dev/null || echo unknown`
1161
1162/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1163/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1164
1165/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1166/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1167/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1168hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1169/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1170/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1171/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1172
1173_ASUNAME
1174
1175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1176for as_dir in $PATH
1177do
1178 IFS=$as_save_IFS
1179 test -z "$as_dir" && as_dir=.
1180 echo "PATH: $as_dir"
1181done
1182
1183} >&5
1184
1185cat >&5 <<_ACEOF
1186
1187
1188## ----------- ##
1189## Core tests. ##
1190## ----------- ##
1191
1192_ACEOF
1193
1194
1195# Keep a trace of the command line.
1196# Strip out --no-create and --no-recursion so they do not pile up.
1197# Strip out --silent because we don't want to record it for future runs.
1198# Also quote any args containing shell meta-characters.
1199# Make two passes to allow for proper duplicate-argument suppression.
1200ac_configure_args=
1201ac_configure_args0=
1202ac_configure_args1=
1203ac_sep=
1204ac_must_keep_next=false
1205for ac_pass in 1 2
1206do
1207 for ac_arg
1208 do
1209 case $ac_arg in
1210 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1212 | -silent | --silent | --silen | --sile | --sil)
1213 continue ;;
1214 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1215 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1216 esac
1217 case $ac_pass in
1218 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1219 2)
1220 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1221 if test $ac_must_keep_next = true; then
1222 ac_must_keep_next=false # Got value, back to normal.
1223 else
1224 case $ac_arg in
1225 *=* | --config-cache | -C | -disable-* | --disable-* \
1226 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1227 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1228 | -with-* | --with-* | -without-* | --without-* | --x)
1229 case "$ac_configure_args0 " in
1230 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1231 esac
1232 ;;
1233 -* ) ac_must_keep_next=true ;;
1234 esac
1235 fi
1236 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1237 # Get rid of the leading space.
1238 ac_sep=" "
1239 ;;
1240 esac
1241 done
1242done
1243$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1244$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1245
1246# When interrupted or exit'd, cleanup temporary files, and complete
1247# config.log. We remove comments because anyway the quotes in there
1248# would cause problems or look ugly.
1249# WARNING: Be sure not to use single quotes in there, as some shells,
1250# such as our DU 5.0 friend, will then `close' the trap.
1251trap 'exit_status=$?
1252 # Save into config.log some information that might help in debugging.
1253 {
1254 echo
1255
1256 cat <<\_ASBOX
1257## ---------------- ##
1258## Cache variables. ##
1259## ---------------- ##
1260_ASBOX
1261 echo
1262 # The following way of writing the cache mishandles newlines in values,
1263{
1264 (set) 2>&1 |
1265 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1266 *ac_space=\ *)
1267 sed -n \
1268 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1270 ;;
1271 *)
1272 sed -n \
1273 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1274 ;;
1275 esac;
1276}
1277 echo
1278
1279 cat <<\_ASBOX
1280## ----------------- ##
1281## Output variables. ##
1282## ----------------- ##
1283_ASBOX
1284 echo
1285 for ac_var in $ac_subst_vars
1286 do
1287 eval ac_val=$`echo $ac_var`
1288 echo "$ac_var='"'"'$ac_val'"'"'"
1289 done | sort
1290 echo
1291
1292 if test -n "$ac_subst_files"; then
1293 cat <<\_ASBOX
1294## ------------- ##
1295## Output files. ##
1296## ------------- ##
1297_ASBOX
1298 echo
1299 for ac_var in $ac_subst_files
1300 do
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1303 done | sort
1304 echo
1305 fi
1306
1307 if test -s confdefs.h; then
1308 cat <<\_ASBOX
1309## ----------- ##
1310## confdefs.h. ##
1311## ----------- ##
1312_ASBOX
1313 echo
1314 sed "/^$/d" confdefs.h | sort
1315 echo
1316 fi
1317 test "$ac_signal" != 0 &&
1318 echo "$as_me: caught signal $ac_signal"
1319 echo "$as_me: exit $exit_status"
1320 } >&5
1321 rm -f core *.core &&
1322 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1323 exit $exit_status
1324 ' 0
1325for ac_signal in 1 2 13 15; do
1326 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1327done
1328ac_signal=0
1329
1330# confdefs.h avoids OS command line length limits that DEFS can exceed.
1331rm -rf conftest* confdefs.h
1332# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1333echo >confdefs.h
1334
1335# Predefined preprocessor variables.
1336
1337cat >>confdefs.h <<_ACEOF
1338#define PACKAGE_NAME "$PACKAGE_NAME"
1339_ACEOF
1340
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_VERSION "$PACKAGE_VERSION"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_STRING "$PACKAGE_STRING"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1359_ACEOF
1360
1361
1362# Let the site file select an alternate cache file if it wants to.
a0da8069 1363# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1364if test -z "$CONFIG_SITE"; then
1365 if test "x$prefix" != xNONE; then
1366 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1367 else
1368 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1369 fi
1370fi
1371for ac_site_file in $CONFIG_SITE; do
1372 if test -r "$ac_site_file"; then
c6b750e1
DJ
1373 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1374echo "$as_me: loading site script $ac_site_file" >&6;}
1375 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1376 . "$ac_site_file"
1377 fi
1378done
1379
1380if test -r "$cache_file"; then
c6b750e1
DJ
1381 # Some versions of bash will fail to source /dev/null (special
1382 # files actually), so we avoid doing that.
1383 if test -f "$cache_file"; then
1384 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1385echo "$as_me: loading cache $cache_file" >&6;}
1386 case $cache_file in
1387 [\\/]* | ?:[\\/]* ) . $cache_file;;
1388 *) . ./$cache_file;;
1389 esac
1390 fi
a0da8069 1391else
c6b750e1
DJ
1392 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1393echo "$as_me: creating cache $cache_file" >&6;}
1394 >$cache_file
1395fi
1396
1397# Check that the precious variables saved in the cache have kept the same
1398# value.
1399ac_cache_corrupted=false
1400for ac_var in `(set) 2>&1 |
1401 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1402 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1403 eval ac_new_set=\$ac_env_${ac_var}_set
1404 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1405 eval ac_new_val="\$ac_env_${ac_var}_value"
1406 case $ac_old_set,$ac_new_set in
1407 set,)
1408 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1409echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1410 ac_cache_corrupted=: ;;
1411 ,set)
1412 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1413echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1414 ac_cache_corrupted=: ;;
1415 ,);;
1416 *)
1417 if test "x$ac_old_val" != "x$ac_new_val"; then
266df637
PB
1418 # differences in whitespace do not lead to failure.
1419 ac_old_val_w=`echo x $ac_old_val`
1420 ac_new_val_w=`echo x $ac_new_val`
1421 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1422 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
c6b750e1 1423echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
266df637
PB
1424 ac_cache_corrupted=:
1425 else
1426 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1427echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1428 eval $ac_var=\$ac_old_val
1429 fi
1430 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1431echo "$as_me: former value: \`$ac_old_val'" >&2;}
1432 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1433echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
1434 fi;;
1435 esac
1436 # Pass precious variables to config.status.
1437 if test "$ac_new_set" = set; then
1438 case $ac_new_val in
1439 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1440 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1441 *) ac_arg=$ac_var=$ac_new_val ;;
1442 esac
1443 case " $ac_configure_args " in
1444 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1445 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1446 esac
1447 fi
1448done
1449if $ac_cache_corrupted; then
1450 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1451echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1452 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1453echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1454 { (exit 1); exit 1; }; }
a0da8069
NN
1455fi
1456
1457ac_ext=c
a0da8069 1458ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1461ac_compiler_gnu=$ac_cv_c_compiler_gnu
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
a0da8069
NN
1475
1476
75778ec4 1477
c6b750e1
DJ
1478
1479
1480
1481
1482
1483# Find the build, host, and target systems.
a0da8069 1484ac_aux_dir=
315b3b02 1485for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1486 if test -f $ac_dir/install-sh; then
1487 ac_aux_dir=$ac_dir
1488 ac_install_sh="$ac_aux_dir/install-sh -c"
1489 break
1490 elif test -f $ac_dir/install.sh; then
1491 ac_aux_dir=$ac_dir
1492 ac_install_sh="$ac_aux_dir/install.sh -c"
1493 break
c6b750e1
DJ
1494 elif test -f $ac_dir/shtool; then
1495 ac_aux_dir=$ac_dir
1496 ac_install_sh="$ac_aux_dir/shtool install -c"
1497 break
a0da8069
NN
1498 fi
1499done
1500if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1501 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1502echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1503 { (exit 1); exit 1; }; }
a0da8069 1504fi
c6b750e1
DJ
1505ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1506ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1507ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1508
c6b750e1
DJ
1509# Make sure we can run config.sub.
1510$ac_config_sub sun4 >/dev/null 2>&1 ||
1511 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1512echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1513 { (exit 1); exit 1; }; }
1514
1515echo "$as_me:$LINENO: checking build system type" >&5
1516echo $ECHO_N "checking build system type... $ECHO_C" >&6
1517if test "${ac_cv_build+set}" = set; then
1518 echo $ECHO_N "(cached) $ECHO_C" >&6
1519else
1520 ac_cv_build_alias=$build_alias
1521test -z "$ac_cv_build_alias" &&
1522 ac_cv_build_alias=`$ac_config_guess`
1523test -z "$ac_cv_build_alias" &&
1524 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1525echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1526 { (exit 1); exit 1; }; }
1527ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1528 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1529echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1530 { (exit 1); exit 1; }; }
1531
1532fi
1533echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1534echo "${ECHO_T}$ac_cv_build" >&6
1535build=$ac_cv_build
1536build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1537build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1538build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1539
a0da8069 1540
c6b750e1
DJ
1541 case ${build_alias} in
1542 "") build_noncanonical=${build} ;;
1543 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1544esac
1545
1546
cac3d6c4 1547
c6b750e1
DJ
1548 case ${host_alias} in
1549 "") host_noncanonical=${build_noncanonical} ;;
1550 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1551esac
1552
cac3d6c4 1553
c6b750e1
DJ
1554
1555 case ${target_alias} in
1556 "") target_noncanonical=${host_noncanonical} ;;
1557 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1558esac
1559
cac3d6c4 1560
c6b750e1
DJ
1561
1562
1563test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1564 test "$program_prefix$program_suffix$program_transform_name" = \
1565 NONENONEs,x,x, &&
c6b750e1 1566 program_transform_name=s,y,y,
cac3d6c4 1567
c6b750e1
DJ
1568echo "$as_me:$LINENO: checking host system type" >&5
1569echo $ECHO_N "checking host system type... $ECHO_C" >&6
1570if test "${ac_cv_host+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1572else
c6b750e1
DJ
1573 ac_cv_host_alias=$host_alias
1574test -z "$ac_cv_host_alias" &&
1575 ac_cv_host_alias=$ac_cv_build_alias
1576ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1577 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1578echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1579 { (exit 1); exit 1; }; }
1580
1581fi
1582echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1583echo "${ECHO_T}$ac_cv_host" >&6
1584host=$ac_cv_host
1585host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1586host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1587host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1588
1589
1590echo "$as_me:$LINENO: checking target system type" >&5
1591echo $ECHO_N "checking target system type... $ECHO_C" >&6
1592if test "${ac_cv_target+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1594else
1595 ac_cv_target_alias=$target_alias
1596test "x$ac_cv_target_alias" = "x" &&
1597 ac_cv_target_alias=$ac_cv_host_alias
1598ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1599 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1600echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1601 { (exit 1); exit 1; }; }
1602
cac3d6c4 1603fi
c6b750e1
DJ
1604echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1605echo "${ECHO_T}$ac_cv_target" >&6
1606target=$ac_cv_target
1607target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1608target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1609target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1610
1611
1612# The aliases save the names the user supplied, while $host etc.
1613# will get canonicalized.
1614test -n "$target_alias" &&
1615 test "$program_prefix$program_suffix$program_transform_name" = \
1616 NONENONEs,x,x, &&
1617 program_prefix=${target_alias}-
a0da8069 1618test "$program_prefix" != NONE &&
c6b750e1 1619 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1620# Use a double $ so make ignores it.
1621test "$program_suffix" != NONE &&
c6b750e1
DJ
1622 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1623# Double any \ or $. echo might interpret backslashes.
1624# By default was `s,x,x', remove it if useless.
1625cat <<\_ACEOF >conftest.sed
1626s/[\\$]/&&/g;s/;s,x,x,$//
1627_ACEOF
1628program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1629rm conftest.sed
cac3d6c4 1630
a0da8069
NN
1631
1632
e5c3f801
NN
1633# Get 'install' or 'install-sh' and its variants.
1634# Find a good install program. We prefer a C program (faster),
1635# so one script is as good as another. But avoid the broken or
1636# incompatible versions:
1637# SysV /etc/install, /usr/sbin/install
1638# SunOS /usr/etc/install
1639# IRIX /sbin/install
1640# AIX /bin/install
c6b750e1 1641# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1642# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1643# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1644# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1645# OS/2's system install, which has a completely different semantic
e5c3f801 1646# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 1647# Reject install programs that cannot install multiple files.
c6b750e1
DJ
1648echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1649echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1650if test -z "$INSTALL"; then
c6b750e1
DJ
1651if test "${ac_cv_path_install+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653else
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655for as_dir in $PATH
1656do
1657 IFS=$as_save_IFS
1658 test -z "$as_dir" && as_dir=.
1659 # Account for people who put trailing slashes in PATH elements.
1660case $as_dir/ in
1661 ./ | .// | /cC/* | \
1662 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1663 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1664 /usr/ucb/* ) ;;
1665 *)
1666 # OSF1 and SCO ODT 3.0 have their own names for install.
1667 # Don't use installbsd from OSF since it installs stuff as root
1668 # by default.
1669 for ac_prog in ginstall scoinst install; do
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1672 if test $ac_prog = install &&
c6b750e1 1673 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1674 # AIX install. It has an incompatible calling convention.
1675 :
c6b750e1
DJ
1676 elif test $ac_prog = install &&
1677 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1678 # program-specific install script used by HP pwplus--don't use.
1679 :
e5c3f801 1680 else
58c85be7
RW
1681 rm -rf conftest.one conftest.two conftest.dir
1682 echo one > conftest.one
1683 echo two > conftest.two
1684 mkdir conftest.dir
1685 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1686 test -s conftest.one && test -s conftest.two &&
1687 test -s conftest.dir/conftest.one &&
1688 test -s conftest.dir/conftest.two
1689 then
1690 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1691 break 3
1692 fi
e5c3f801
NN
1693 fi
1694 fi
1695 done
c6b750e1
DJ
1696 done
1697 ;;
1698esac
1699done
1700
58c85be7 1701rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
1702
1703fi
1704 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1705 INSTALL=$ac_cv_path_install
e5c3f801 1706 else
58c85be7
RW
1707 # As a last resort, use the slow shell script. Don't cache a
1708 # value for INSTALL within a source directory, because that will
e5c3f801 1709 # break other packages using the cache if that directory is
58c85be7 1710 # removed, or if the value is a relative name.
c6b750e1 1711 INSTALL=$ac_install_sh
e5c3f801
NN
1712 fi
1713fi
c6b750e1
DJ
1714echo "$as_me:$LINENO: result: $INSTALL" >&5
1715echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1716
1717# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1718# It thinks the first close brace ends the variable substitution.
1719test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1720
c6b750e1 1721test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1722
1723test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1724
c6b750e1
DJ
1725echo "$as_me:$LINENO: checking whether ln works" >&5
1726echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1727if test "${acx_cv_prog_LN+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1729else
1730 rm -f conftestdata_t
1731echo >conftestdata_f
1732if ln conftestdata_f conftestdata_t 2>/dev/null
1733then
1734 acx_cv_prog_LN=ln
1735else
1736 acx_cv_prog_LN=no
1737fi
1738rm -f conftestdata_f conftestdata_t
1739
1740fi
1741if test $acx_cv_prog_LN = no; then
1742 LN="cp"
c6b750e1
DJ
1743 echo "$as_me:$LINENO: result: no, using $LN" >&5
1744echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1745else
1746 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1747 echo "$as_me:$LINENO: result: yes" >&5
1748echo "${ECHO_T}yes" >&6
656fdd47
PB
1749fi
1750
c6b750e1
DJ
1751echo "$as_me:$LINENO: checking whether ln -s works" >&5
1752echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1753LN_S=$as_ln_s
1754if test "$LN_S" = "ln -s"; then
1755 echo "$as_me:$LINENO: result: yes" >&5
1756echo "${ECHO_T}yes" >&6
cac3d6c4 1757else
c6b750e1
DJ
1758 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1759echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1760fi
1761
e5c3f801 1762
252b5132 1763### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1764### If we are on Windows, search for the shell. This will permit people
1765### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1766### without also having to set CONFIG_SHELL. This code will work when
1767### using bash, which sets OSTYPE.
1768case "${OSTYPE}" in
1769*win32*)
a0da8069
NN
1770 if test x${CONFIG_SHELL} = x ; then
1771 if test ! -f /bin/sh ; then
1772 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1773 CONFIG_SHELL=${SHELL}
1774 export CONFIG_SHELL
1775 else
1776 for prog in sh sh.exe bash bash.exe; do
1777 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1778 for dir in $PATH; do
1779 test -z "$dir" && dir=.
1780 if test -f $dir/$prog; then
1781 CONFIG_SHELL=$dir/$prog
1782 export CONFIG_SHELL
1783 break
1784 fi
1785 done
1786 IFS="$save_ifs"
1787 test -n "${CONFIG_SHELL}" && break
1788 done
1789 fi
1790 fi
1791 fi
1792 ;;
1793esac
1794
1795config_shell=${CONFIG_SHELL-/bin/sh}
1796
252b5132
RH
1797progname=$0
1798# if PWD already has a value, it is probably wrong.
a0da8069 1799if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
252b5132 1800
92f01d61
JM
1801# Export original configure arguments for use by sub-configures.
1802# Quote arguments with shell meta charatcers.
1803TOPLEVEL_CONFIGURE_ARGUMENTS=
1804set -- "$progname" "$@"
a4708fba
JM
1805for ac_arg
1806do
92f01d61 1807 case "$ac_arg" in
ffa8bd48 1808 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
92f01d61
JM
1809 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1810 # if the argument is of the form -foo=baz, quote the baz part only
1811 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1812 *) ;;
1813 esac
1814 # Add the quoted argument to the list.
1815 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1816done
2444379b
BE
1817if test "$silent" = yes; then
1818 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1819fi
92f01d61
JM
1820# Remove the initial space we just introduced and, as these will be
1821# expanded by make, quote '$'.
1822TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
586c0873 1823
75205f78 1824
a0da8069 1825moveifchange=${srcdir}/move-if-change
252b5132 1826
0fdbe983
DJ
1827srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1828
1829# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1830# a relative path.
1831if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1832 INSTALL="${srcpwd}/install-sh -c"
1833fi
1834
a0da8069
NN
1835# Set srcdir to "." if that's what it is.
1836# This is important for multilib support.
1837pwd=`${PWDCMD-pwd}`
a0da8069
NN
1838if test "${pwd}" = "${srcpwd}" ; then
1839 srcdir=.
252b5132
RH
1840fi
1841
a0da8069 1842topsrcdir=$srcpwd
252b5132 1843
a0da8069 1844extra_host_args=
afefada0 1845
a0da8069
NN
1846### To add a new directory to the tree, first choose whether it is a target
1847### or a host dependent tool. Then put it into the appropriate list
1848### (library or tools, host or target), doing a dependency sort.
252b5132 1849
c6b750e1 1850# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1851# configdirs, or target_configdirs; see the serialization section below.
252b5132 1852
c6b750e1
DJ
1853# Dependency sorting is only needed when *configuration* must be done in
1854# a particular order. In all cases a dependency should be specified in
a0da8069 1855# the Makefile, whether or not it's implicitly specified here.
252b5132 1856
a0da8069
NN
1857# Double entries in build_configdirs, configdirs, or target_configdirs may
1858# cause circular dependencies and break everything horribly.
252b5132 1859
6a9cf61e
PB
1860# these library is used by various programs built for the build
1861# environment
1862#
1863build_libs="build-libiberty"
1864
1865# these tools are built for the build environment
ee025550 1866build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1867
a0da8069
NN
1868# these libraries are used by various programs built for the host environment
1869#
4b900473 1870host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
a0da8069 1871
a0da8069
NN
1872# these tools are built for the host environment
1873# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1874# know that we are building the simulator.
1875# binutils, gas and ld appear in that order because it makes sense to run
1876# "make check" in that particular order.
93f9b408 1877# If --enable-gold is used, "gold" will replace "ld".
b00612cc 1878host_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
1879
1880# libgcj represents the runtime libraries only used by gcj.
1881libgcj="target-libffi \
a0da8069
NN
1882 target-zlib \
1883 target-qthreads \
1884 target-libjava"
1885
1886# these libraries are built for the target environment, and are built after
1887# the host libraries and the host tools (which may be a cross compiler)
1888#
b1299c4e
DJ
1889target_libraries="target-libgcc \
1890 target-libiberty \
a0da8069
NN
1891 target-libgloss \
1892 target-newlib \
cff87f51 1893 target-libgomp \
b9459e83 1894 target-libstdc++-v3 \
4b1cb4fe 1895 target-libmudflap \
bb780410 1896 target-libssp \
4b1cb4fe 1897 target-libgfortran \
4f0ef2d8 1898 target-boehm-gc \
83326456 1899 ${libgcj} \
a2592b1b 1900 target-libobjc \
cff87f51 1901 target-libada"
a0da8069 1902
9c14acb8
NN
1903# these tools are built using the target libraries, and are intended to
1904# run only in the target environment
a0da8069 1905#
9c14acb8 1906# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1907# list belongs in this list. those programs are also very likely
1908# candidates for the "native_only" list which follows
1909#
a3dd767d 1910target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1911
a0da8069 1912################################################################################
252b5132 1913
a0da8069
NN
1914## All tools belong in one of the four categories, and are assigned above
1915## We assign ${configdirs} this way to remove all embedded newlines. This
1916## is important because configure will choke if they ever get through.
1917## ${configdirs} is directories we build using the host tools.
1918## ${target_configdirs} is directories we build using the target tools.
a0da8069 1919configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1920target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1921build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1922
9cc8ae67
PB
1923
1924
a0da8069 1925################################################################################
252b5132 1926
a0da8069 1927srcname="gnu development package"
252b5132 1928
a0da8069
NN
1929# This gets set non-empty for some net releases of packages.
1930appdirs=""
252b5132 1931
a0da8069
NN
1932# Define is_cross_compiler to save on calls to 'test'.
1933is_cross_compiler=
1934if test x"${host}" = x"${target}" ; then
1935 is_cross_compiler=no
252b5132 1936else
a0da8069 1937 is_cross_compiler=yes
c6b750e1 1938fi
252b5132 1939
9175bfc0 1940# Find the build and target subdir names.
dd12c3a8 1941
66a79c16
DJ
1942# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1943# have matching libraries, they should use host libraries: Makefile.tpl
1944# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1945# However, they still use the build modules, because the corresponding
1946# host modules (e.g. bison) are only built for the host when bootstrap
1947# finishes. So:
1948# - build_subdir is where we find build modules, and never changes.
1949# - build_libsubdir is where we find build libraries, and can be overridden.
1950
1951# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1952build_subdir="build-${build_noncanonical}"
c6b750e1 1953
66a79c16
DJ
1954# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1955if test "${with_build_libsubdir+set}" = set; then
1956 withval="$with_build_libsubdir"
1957 build_libsubdir="$withval"
1958else
1959 build_libsubdir="$build_subdir"
c6b750e1 1960fi;
b00612cc
PB
1961# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1962if ( test $srcdir = . && test -d gcc ) \
1963 || test -d $srcdir/../host-${host_noncanonical}; then
1964 host_subdir="host-${host_noncanonical}"
1965else
1966 host_subdir=.
1967fi
dd12c3a8
NN
1968# No prefix.
1969target_subdir=${target_noncanonical}
c6b750e1 1970
252b5132 1971
a0da8069
NN
1972# Skipdirs are removed silently.
1973skipdirs=
1974# Noconfigdirs are removed loudly.
1975noconfigdirs=""
252b5132 1976
a0da8069
NN
1977use_gnu_ld=
1978# Make sure we don't let GNU ld be added if we didn't want it.
1979if test x$with_gnu_ld = xno ; then
1980 use_gnu_ld=no
93f9b408 1981 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
1982fi
1983
a0da8069
NN
1984use_gnu_as=
1985# Make sure we don't let GNU as be added if we didn't want it.
1986if test x$with_gnu_as = xno ; then
1987 use_gnu_as=no
1988 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1989fi
1990
c6b750e1 1991# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1992# it's not even worth trying to configure, much less build, that tool.
252b5132 1993
a0da8069
NN
1994case ${with_x} in
1995 yes | "") ;; # the default value for this tree is that X11 is available
1996 no)
675c6968 1997 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 1998 # We won't be able to build gdbtk without X.
c6b750e1 1999 enable_gdbtk=no
a0da8069
NN
2000 ;;
2001 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2002esac
252b5132 2003
a0da8069 2004# Some tools are only suitable for building in a "native" situation.
c6b750e1 2005# Remove these if host!=target.
701628f5 2006native_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 2007
a0da8069
NN
2008# Similarly, some are only suitable for cross toolchains.
2009# Remove these if host=target.
2010cross_only="target-libgloss target-newlib target-opcodes"
2011
2012case $is_cross_compiler in
2013 no) skipdirs="${skipdirs} ${cross_only}" ;;
2014 yes) skipdirs="${skipdirs} ${native_only}" ;;
2015esac
252b5132 2016
a0da8069
NN
2017# If both --with-headers and --with-libs are specified, default to
2018# --without-newlib.
32be62b5
RS
2019if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2020 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2021 if test x"${with_newlib}" = x ; then
2022 with_newlib=no
2023 fi
252b5132
RH
2024fi
2025
a0da8069
NN
2026# Recognize --with-newlib/--without-newlib.
2027case ${with_newlib} in
2028 no) skipdirs="${skipdirs} target-newlib" ;;
2029 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2030esac
252b5132 2031
93f9b408
ILT
2032# Handle --enable-gold.
2033
2034# Check whether --enable-gold or --disable-gold was given.
2035if test "${enable_gold+set}" = set; then
2036 enableval="$enable_gold"
2037 ENABLE_GOLD=$enableval
2038else
2039 ENABLE_GOLD=no
2040fi;
2041if test "${ENABLE_GOLD}" = "yes"; then
2042 # Check for ELF target.
2043 is_elf=no
2044 case "${target}" in
2045 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2046 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2047 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*)
2048 case "${target}" in
2049 *-*-linux*aout* | *-*-linux*oldld*)
2050 ;;
2051 *)
2052 is_elf=yes
2053 ;;
2054 esac
2055 esac
2056
2057 if test "$is_elf" = "yes"; then
2058 # Check for target supported by gold.
2059 case "${target}" in
f5314dd5 2060 i?86-*-* | x86_64-*-* | sparc*-*-*)
93f9b408
ILT
2061 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2062 ;;
2063 esac
2064 fi
2065fi
2066
a0da8069 2067# Configure extra directories which are host specific
252b5132 2068
a0da8069
NN
2069case "${host}" in
2070 *-cygwin*)
2071 configdirs="$configdirs libtermcap" ;;
2072esac
252b5132 2073
59f7ec45
HPN
2074# A target can indicate whether a language isn't supported for some reason.
2075# Only spaces may be used in this macro; not newlines or tabs.
2076unsupported_languages=
2077
c6b750e1 2078# Remove more programs from consideration, based on the host or
a0da8069
NN
2079# target this usually means that a port of the program doesn't
2080# exist yet.
252b5132 2081
a0da8069
NN
2082case "${host}" in
2083 hppa*64*-*-*)
2084 noconfigdirs="$noconfigdirs byacc"
2085 ;;
ec11bdc6 2086 i[3456789]86-*-vsta)
675c6968 2087 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2088 ;;
ec11bdc6 2089 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2090 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2091 ;;
2d1e8239
NC
2092 x86_64-*-mingw*)
2093 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2094 ;;
ec11bdc6 2095 i[3456789]86-*-mingw32*)
675c6968 2096 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2097 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2098 ;;
ec11bdc6 2099 i[3456789]86-*-beos*)
675c6968 2100 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2101 ;;
a0da8069 2102 *-*-cygwin*)
a92834c8 2103 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2104 ;;
2105 *-*-netbsd*)
a92834c8 2106 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2107 ;;
2108 ppc*-*-pe)
675c6968 2109 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2110 ;;
2111 powerpc-*-beos*)
675c6968 2112 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2113 ;;
a0da8069 2114esac
252b5132 2115
4b1cb4fe 2116
a2592b1b
DD
2117# Check whether --enable-libada or --disable-libada was given.
2118if test "${enable_libada+set}" = set; then
2119 enableval="$enable_libada"
2120 ENABLE_LIBADA=$enableval
2121else
2122 ENABLE_LIBADA=yes
c6b750e1 2123fi;
a2592b1b 2124if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2125 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2126fi
2127
5f128533
KH
2128# Check whether --enable-libssp or --disable-libssp was given.
2129if test "${enable_libssp+set}" = set; then
2130 enableval="$enable_libssp"
2131 ENABLE_LIBSSP=$enableval
2132else
2133 ENABLE_LIBSSP=yes
c6b750e1 2134fi;
5f128533 2135
a0da8069
NN
2136# Save it here so that, even in case of --enable-libgcj, if the Java
2137# front-end isn't enabled, we still get libgcj disabled.
2138libgcj_saved=$libgcj
2139case $enable_libgcj in
2140yes)
2141 # If we reset it here, it won't get added to noconfigdirs in the
2142 # target-specific build rules, so it will be forcibly enabled
2143 # (unless the Java language itself isn't enabled).
2144 libgcj=
2145 ;;
2146no)
2147 # Make sure we get it printed in the list of not supported target libs.
2148 noconfigdirs="$noconfigdirs ${libgcj}"
2149 ;;
2150esac
252b5132 2151
4b1cb4fe 2152
a6df5a19
PB
2153# Disable libmudflap on some systems.
2154if test x$enable_libmudflap = x ; then
3e707e94 2155 case "${target}" in
0ebe98fb 2156 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
3d6dfe0f 2157 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2158 ;;
2159 *-*-freebsd*)
2160 # Enable libmudflap by default in FreeBSD.
2161 ;;
2162 *)
2163 # Disable it by default everywhere else.
2164 noconfigdirs="$noconfigdirs target-libmudflap"
2165 ;;
2166 esac
a6df5a19 2167fi
4b1cb4fe 2168
a6df5a19
PB
2169# Disable libgomp on non POSIX hosted systems.
2170if test x$enable_libgomp = x ; then
b3ded179
PB
2171 # Enable libgomp by default on hosted POSIX systems.
2172 case "${target}" in
2173 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2174 ;;
2175 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2176 ;;
64ce424c 2177 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2178 ;;
2179 *-*-darwin* | *-*-aix*)
2180 ;;
2181 *)
2182 noconfigdirs="$noconfigdirs target-libgomp"
2183 ;;
2184 esac
a6df5a19 2185fi
b3ded179 2186
691bb5a1
DD
2187# Default libgloss CPU subdirectory.
2188libgloss_dir="$target_cpu"
4b1cb4fe 2189
a0da8069
NN
2190case "${target}" in
2191 *-*-chorusos)
54d1c879 2192 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2193 ;;
c9b68031 2194 powerpc-*-darwin* | i[3456789]86-*-darwin* | x86_64-*-darwin9*)
b3f16a9b 2195 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 2196 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2197 ;;
04d1ab34 2198 *-*-darwin*)
d320aacb 2199 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2200 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2201 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2202 ;;
a0da8069 2203 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2204 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2205 ;;
de0b4a87 2206 *-*-freebsd*)
4b1cb4fe
DD
2207 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2208 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2209 && test -f /usr/local/include/gmp.h; then
2210 with_gmp=/usr/local
2211 fi
2212
2213 # Skip some stuff that's unsupported on some FreeBSD configurations.
2214 case "${target}" in
2215 i*86-*-*) ;;
2216 alpha*-*-*) ;;
2217 *)
54d1c879 2218 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2219 ;;
2220 esac
2221 ;;
f8a495c8
NC
2222 *-*-kaos*)
2223 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2224 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2225 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2226 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2227 noconfigdirs="$noconfigdirs target-libgloss"
2228 ;;
a0da8069
NN
2229 *-*-netbsd*)
2230 # Skip some stuff on all NetBSD configurations.
2231 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2232
2233 # Skip some stuff that's unsupported on some NetBSD configurations.
2234 case "${target}" in
2235 i*86-*-netbsdelf*) ;;
5b474aa8 2236 arm*-*-netbsdelf*) ;;
a0da8069 2237 *)
54d1c879 2238 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2239 ;;
2240 esac
2241 ;;
2a3124ca 2242 *-*-netware*)
54d1c879 2243 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2244 ;;
2245 *-*-rtems*)
54d1c879 2246 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2247 ;;
1587117a
EC
2248 # The tpf target doesn't support gdb yet.
2249 *-*-tpf*)
54d1c879 2250 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2251 ;;
c1968181 2252 *-*-uclinux*)
54d1c879 2253 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2254 ;;
a0da8069 2255 *-*-vxworks*)
54d1c879 2256 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2257 ;;
2258 alpha*-dec-osf*)
2259 # ld works, but does not support shared libraries.
2260 # newlib is not 64 bit ready. I'm not sure about fileutils.
2261 # gas doesn't generate exception information.
2262 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2263 ;;
2264 alpha*-*-*vms*)
54d1c879 2265 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2266 ;;
2267 alpha*-*-linux*)
2268 # newlib is not 64 bit ready
2269 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2270 ;;
a0da8069
NN
2271 alpha*-*-*)
2272 # newlib is not 64 bit ready
54d1c879 2273 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2274 ;;
4a18bd6b 2275 am33_2.0-*-linux*)
54d1c879 2276 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2277 ;;
a0da8069 2278 sh-*-linux*)
54d1c879 2279 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2280 ;;
a0da8069 2281 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2282 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2283 noconfigdirs="$noconfigdirs target-examples"
2284 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2285 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2286 noconfigdirs="$noconfigdirs expect dejagnu"
2287 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2288 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2289 noconfigdirs="$noconfigdirs target-newlib"
2290 case "${host}" in
2291 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2292 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2293 ;;
2294 esac
691bb5a1 2295 libgloss_dir=wince
a0da8069
NN
2296 ;;
2297 arc-*-*)
54d1c879 2298 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2299 ;;
caeba88f 2300 arm-semi-aof )
caeba88f 2301 ;;
a0da8069 2302 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2303 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2304 libgloss_dir=arm
a0da8069 2305 ;;
11b04d1f 2306 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 2307 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 2308 libgloss_dir=arm
a0da8069 2309 ;;
bd70a46f 2310 arm*-*-linux-gnueabi)
6d18b86b
AH
2311 noconfigdirs="$noconfigdirs target-qthreads"
2312 noconfigdirs="$noconfigdirs target-libobjc"
a5b3b4dd
DD
2313 case ${with_newlib} in
2314 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2315 esac
691bb5a1 2316 libgloss_dir=arm
bd70a46f 2317 ;;
df4a6958 2318 arm*-*-symbianelf*)
54d1c879 2319 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 2320 libgloss_dir=arm
df4a6958 2321 ;;
a0da8069 2322 arm-*-pe*)
54d1c879 2323 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2324 ;;
a0da8069 2325 thumb-*-coff)
54d1c879 2326 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2327 ;;
2328 thumb-*-elf)
54d1c879 2329 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2330 ;;
a0da8069 2331 thumb-*-pe)
54d1c879 2332 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2333 ;;
2334 arm-*-riscix*)
54d1c879 2335 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2336 ;;
2337 avr-*-*)
266df637 2338 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 2339 ;;
376a0e54 2340 bfin-*-*)
00d89675 2341 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2342 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2343 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2344 fi
2345 ;;
a0da8069 2346 c4x-*-* | tic4x-*-*)
54d1c879 2347 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2348 ;;
2349 c54x*-*-* | tic54x-*-*)
54d1c879 2350 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2351 ;;
52310858
NC
2352 cr16-*-*)
2353 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2354 ;;
c7e66c6d 2355 cris-*-* | crisv32-*-*)
59f7ec45 2356 unsupported_languages="$unsupported_languages java"
c7e66c6d 2357 case "${target}" in
2faa2958 2358 *-*-aout)
096f7d00 2359 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2360 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2361 *-*-elf)
5e818318 2362 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2363 *-*-linux*)
5e818318 2364 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2365 *)
096f7d00 2366 unsupported_languages="$unsupported_languages fortran"
54d1c879 2367 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2368 esac
691bb5a1 2369 libgloss_dir=cris
a0da8069 2370 ;;
3e707e94 2371 crx-*-*)
54d1c879 2372 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2373 ;;
a0da8069 2374 d10v-*-*)
54d1c879 2375 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2376 ;;
2377 d30v-*-*)
54d1c879 2378 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 2379 ;;
691bb5a1
DD
2380 ep9312-*-elf | ep9312-*-coff)
2381 libgloss_dir=arm
2382 ;;
a0da8069 2383 fr30-*-elf*)
54d1c879 2384 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2385 ;;
2386 frv-*-*)
54d1c879 2387 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2388 ;;
2389 h8300*-*-*)
54d1c879 2390 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2391 ;;
2392 h8500-*-*)
54d1c879 2393 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2394 ;;
caeba88f 2395 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2396 ;;
a0da8069
NN
2397 hppa*64*-*-linux* | parisc*64*-*-linux*)
2398 # In this case, it's because the hppa64-linux target is for
2399 # the kernel only at this point and has no libc, and thus no
2400 # headers, crt*.o, etc., all of which are needed by these.
2401 noconfigdirs="$noconfigdirs target-zlib"
2402 ;;
5dcac624
DA
2403 parisc*-*-linux* | hppa*-*-linux*)
2404 ;;
a0da8069 2405 hppa*-*-*elf* | \
a0da8069
NN
2406 hppa*-*-lites* | \
2407 hppa*-*-openbsd* | \
2408 hppa*64*-*-*)
54d1c879 2409 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2410 ;;
2411 hppa*-hp-hpux11*)
2412 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 2413 ;;
691bb5a1
DD
2414 hppa*-*-pro*)
2415 libgloss_dir=pa
2416 ;;
a0da8069
NN
2417 hppa*-*-*)
2418 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2419 # build on HP-UX 10.20.
54d1c879 2420 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2421 ;;
b07c2aad 2422 i960-*-*)
54d1c879 2423 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2424 ;;
a0da8069
NN
2425 ia64*-*-elf*)
2426 # No gdb support yet.
675c6968 2427 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2428 ;;
2429 ia64*-**-hpux*)
2430 # No gdb or ld support yet.
54d1c879 2431 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2432 ;;
caeba88f 2433 i370-*-opened*)
caeba88f 2434 ;;
ec11bdc6 2435 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2436 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2437 libgloss_dir=i386
a0da8069 2438 ;;
ec11bdc6 2439 i[3456789]86-*-linux*)
a0da8069
NN
2440 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2441 # not build java stuff by default.
2442 case "${target}" in
2443 *-*-*libc1*)
54d1c879 2444 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2445 esac
2446
2447 # This section makes it possible to build newlib natively on linux.
2448 # If we are using a cross compiler then don't configure newlib.
2449 if test x${is_cross_compiler} != xno ; then
bba45b8b 2450 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2451 fi
2452 noconfigdirs="$noconfigdirs target-libgloss"
2453 # If we are not using a cross compiler, do configure newlib.
2454 # Note however, that newlib will only be configured in this situation
2455 # if the --with-newlib option has been given, because otherwise
2456 # 'target-newlib' will appear in skipdirs.
2457 ;;
ec11bdc6 2458 i[3456789]86-*-mingw32*)
45055374
CV
2459 target_configdirs="$target_configdirs target-winsup"
2460 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2461 ;;
2d1e8239
NC
2462 x86_64-*-mingw*)
2463 target_configdirs="$target_configdirs target-winsup"
2464 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2465 ;;
a0da8069
NN
2466 *-*-cygwin*)
2467 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2468 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2469 # always build newlib if winsup directory is present.
45055374 2470 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2471 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2472 elif test -d "$srcdir/newlib"; then
45055374 2473 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2474 fi
c6b750e1 2475 ;;
caeba88f
AL
2476 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2477 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2478 ;;
ec11bdc6 2479 i[3456789]86-*-pe)
54d1c879 2480 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2481 ;;
ec11bdc6 2482 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2483 # The linker does not yet know about weak symbols in COFF,
2484 # and is not configured to handle mixed ELF and COFF.
54d1c879 2485 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2486 ;;
ec11bdc6 2487 i[3456789]86-*-sco*)
54d1c879 2488 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2489 ;;
ec11bdc6 2490 i[3456789]86-*-solaris2*)
a0da8069
NN
2491 noconfigdirs="$noconfigdirs target-libgloss"
2492 ;;
ec11bdc6 2493 i[3456789]86-*-sysv4*)
54d1c879 2494 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2495 ;;
ec11bdc6 2496 i[3456789]86-*-beos*)
54d1c879 2497 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2498 ;;
b59bea8a 2499 i[3456789]86-*-rdos*)
2429c060
PB
2500 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2501 ;;
b07c2aad 2502 m32r-*-*)
54d1c879 2503 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2504 ;;
a0da8069 2505 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2506 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 2507 libgloss_dir=m68hc11
a0da8069
NN
2508 ;;
2509 m68k-*-elf*)
54d1c879 2510 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2511 ;;
2512 m68k-*-coff*)
54d1c879 2513 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2514 ;;
691bb5a1
DD
2515 m68*-*-* | fido-*-*)
2516 libgloss_dir=m68k
2517 ;;
a0da8069
NN
2518 mcore-*-pe*)
2519 # The EPOC C++ environment does not support exceptions or rtti,
2520 # and so building libstdc++-v3 tends not to always work.
2521 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2522 ;;
2523 mmix-*-*)
59f7ec45 2524 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2525 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2526 ;;
2527 mn10200-*-*)
54d1c879 2528 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2529 ;;
2530 mn10300-*-*)
54d1c879 2531 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2532 ;;
4970f871 2533 mt-*-*)
cdb9b172
AH
2534 noconfigdirs="$noconfigdirs sim"
2535 ;;
a0da8069
NN
2536 powerpc-*-aix*)
2537 # copied from rs6000-*-* entry
54d1c879 2538 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2539 ;;
2540 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2541 target_configdirs="$target_configdirs target-winsup"
54d1c879 2542 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2543 # always build newlib.
2544 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2545 ;;
2546 # This is temporary until we can link against shared libraries
2547 powerpcle-*-solaris*)
54d1c879 2548 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 2549 libgloss_dir=rs6000
a0da8069
NN
2550 ;;
2551 powerpc-*-beos*)
54d1c879 2552 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2553 ;;
a0da8069 2554 powerpc-*-eabi)
54d1c879 2555 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2556 libgloss_dir=rs6000
caeba88f
AL
2557 ;;
2558 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 2559 libgloss_dir=rs6000
a0da8069 2560 ;;
a0da8069 2561 rs6000-*-lynxos*)
54d1c879 2562 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2563 ;;
2564 rs6000-*-aix*)
54d1c879 2565 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2566 ;;
2567 rs6000-*-*)
54d1c879 2568 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2569 ;;
2570 m68k-apollo-*)
54d1c879 2571 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 2572 ;;
5bd8be13
RS
2573 mips*-sde-elf*)
2574 skipdirs="$skipdirs target-libiberty"
2575 noconfigdirs="$noconfigdirs ${libgcj}"
2576 if test x$with_newlib = xyes; then
2577 noconfigdirs="$noconfigdirs gprof"
2578 fi
2579 libgloss_dir=mips
2580 ;;
a0da8069 2581 mips*-*-irix5*)
54d1c879 2582 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2583 ;;
2584 mips*-*-irix6*)
a0da8069
NN
2585 # Linking libjava exceeds command-line length limits on at least
2586 # IRIX 6.2, but not on IRIX 6.5.
2587 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2588 # <oldham@codesourcery.com>
54d1c879 2589 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2590 ;;
a0da8069 2591 mips*-*-bsd*)
54d1c879 2592 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2593 ;;
a0da8069
NN
2594 mips*-*-linux*)
2595 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2596 ;;
2597 mips*-*-*)
54d1c879 2598 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 2599 libgloss_dir=mips
a0da8069
NN
2600 ;;
2601 romp-*-*)
54d1c879 2602 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2603 ;;
dbf85af7 2604 sh-*-* | sh64-*-*)
a0da8069 2605 case "${host}" in
ec11bdc6
DD
2606 i[3456789]86-*-vsta) ;; # don't add gprof back in
2607 i[3456789]86-*-go32*) ;; # don't add gprof back in
2608 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2609 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2610 esac
54d1c879 2611 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2612 ;;
691bb5a1
DD
2613 sparclet-*-aout* | sparc86x-*-*)
2614 libgloss_dir=sparc
2615 ;;
a0da8069 2616 sparc-*-elf*)
54d1c879 2617 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2618 ;;
2619 sparc64-*-elf*)
54d1c879 2620 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2621 libgloss_dir=sparc
a0da8069
NN
2622 ;;
2623 sparclite-*-*)
54d1c879 2624 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2625 libgloss_dir=sparc
a0da8069
NN
2626 ;;
2627 sparc-*-sunos4*)
54d1c879 2628 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2629 if test x${is_cross_compiler} != xno ; then
2630 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2631 else
2632 use_gnu_ld=no
2633 fi
2634 ;;
e3c770b1 2635 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2636 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2637 ;;
a0da8069
NN
2638 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2639 ;;
2839fe5d
BE
2640 spu-*-*)
2641 skipdirs="target-libssp"
2642 ;;
a0da8069 2643 v810-*-*)
54d1c879 2644 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2645 ;;
2646 v850-*-*)
54d1c879 2647 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2648 ;;
2649 v850e-*-*)
54d1c879 2650 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2651 ;;
2652 v850ea-*-*)
54d1c879 2653 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2654 ;;
2655 vax-*-vms)
54d1c879 2656 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2657 ;;
2658 vax-*-*)
54d1c879 2659 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2660 ;;
8b66833e 2661 xtensa*-*-*)
54d1c879 2662 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2663 ;;
a0da8069 2664 ip2k-*-*)
54d1c879 2665 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2666 ;;
de0b4a87 2667 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2668 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2669 ;;
2670 *-*-lynxos*)
54d1c879 2671 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2672 ;;
a0da8069 2673 *-*-*)
54d1c879 2674 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2675 ;;
2676esac
252b5132 2677
a0da8069
NN
2678# If we aren't building newlib, then don't build libgloss, since libgloss
2679# depends upon some newlib header files.
2680case "${noconfigdirs}" in
2681 *target-libgloss*) ;;
2682 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2683esac
2684
a0da8069
NN
2685# Work in distributions that contain no compiler tools, like Autoconf.
2686tentative_cc=""
2687host_makefile_frag=/dev/null
2688if test -d ${srcdir}/config ; then
2689case "${host}" in
2690 m68k-hp-hpux*)
2691 # Avoid "too much defining" errors from HPUX compiler.
2692 tentative_cc="cc -Wp,-H256000"
2693 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2694 # If it's HP/UX ar, this should be harmless.
2695 RANLIB="ar ts"
2696 ;;
2697 m68k-apollo-sysv*)
2698 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2699 ;;
2700 m68k-apollo-bsd*)
2701 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2702 # chokes on bfd, the compiler won't let you assign integers to enums, and
2703 # other problems. Defining CC to gcc is a questionable way to say "don't use
2704 # the apollo compiler" (the preferred version of GCC could be called cc,
2705 # or whatever), but I'm not sure leaving CC as cc is any better...
2706 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2707 # Used to have BISON=yacc.
2708 tentative_cc=gcc
2709 ;;
2710 m88k-dg-dgux*)
2711 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2712 ;;
2713 m88k-harris-cxux*)
2714 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2715 tentative_cc="cc -Xa"
2716 host_makefile_frag="config/mh-cxux"
2717 ;;
2718 m88k-motorola-sysv*)
2719 ;;
2720 mips*-dec-ultrix*)
2721 tentative_cc="cc -Wf,-XNg1000"
2722 host_makefile_frag="config/mh-decstation"
2723 ;;
2724 mips*-nec-sysv4*)
2725 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2726 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2727 host_makefile_frag="config/mh-necv4"
2728 ;;
2729 mips*-sgi-irix4*)
2730 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2731 # environment. Also bump switch table size so that cp-parse will
2732 # compile. Bump string length limit so linker builds.
2733 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2734 ;;
2735 mips*-*-sysv4*)
2736 host_makefile_frag="config/mh-sysv4"
2737 ;;
2738 mips*-*-sysv*)
2739 # This is for a MIPS running RISC/os 4.52C.
2740
2741 # This is needed for GDB, but needs to be in the top-level make because
2742 # if a library is compiled with the bsd headers and gets linked with the
2743 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2744 # a different size).
2745 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2746 # known except to select the sysv environment. Could we use /proc instead?
2747 # These "sysv environments" and "bsd environments" often end up being a pain.
2748 #
2749 # This is not part of CFLAGS because perhaps not all C compilers have this
2750 # option.
2751 tentative_cc="cc -systype sysv"
2752 ;;
2753 i370-ibm-opened*)
2754 tentative_cc="c89"
2755 ;;
ec11bdc6 2756 i[3456789]86-*-sysv5*)
a0da8069
NN
2757 host_makefile_frag="config/mh-sysv5"
2758 ;;
ec11bdc6 2759 i[3456789]86-*-dgux*)
a0da8069
NN
2760 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2761 host_makefile_frag="config/mh-dgux386"
2762 ;;
ec11bdc6 2763 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2764 # The MetaWare compiler will generate a copyright message unless you
2765 # turn it off by adding the -Hnocopyr flag.
2766 tentative_cc="cc -Hnocopyr"
2767 ;;
ec11bdc6 2768 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2769 # for an NCR 3000 (i486/SVR4) system.
2770 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2771 # This compiler not only emits obnoxious copyright messages every time
2772 # you run it, but it chokes and dies on a whole bunch of GNU source
2773 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2774 tentative_cc="/usr/ccs/ATT/cc"
2775 host_makefile_frag="config/mh-ncr3000"
2776 ;;
ec11bdc6 2777 i[3456789]86-*-sco3.2v5*)
a0da8069 2778 ;;
ec11bdc6 2779 i[3456789]86-*-sco*)
a0da8069
NN
2780 # The native C compiler botches some simple uses of const. Unfortunately,
2781 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2782 tentative_cc="cc -Dconst="
2783 host_makefile_frag="config/mh-sco"
2784 ;;
ec11bdc6 2785 i[3456789]86-*-udk*)
a0da8069
NN
2786 host_makefile_frag="config/mh-sysv5"
2787 ;;
ec11bdc6 2788 i[3456789]86-*-solaris2*)
a0da8069
NN
2789 host_makefile_frag="config/mh-sysv4"
2790 ;;
ec11bdc6 2791 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2792 host_makefile_frag="config/mh-djgpp"
2793 ;;
2794 *-cygwin*)
e33b51a6
NC
2795
2796echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2797echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2798echo a >cygwin-cat-check
2799if test `cat cygwin-cat-check` == a ; then
8ade07e9 2800 rm cygwin-cat-check
e33b51a6
NC
2801 echo "$as_me:$LINENO: result: yes" >&5
2802echo "${ECHO_T}yes" >&6
2803else
8ade07e9 2804 rm cygwin-cat-check
e33b51a6
NC
2805 echo "$as_me:$LINENO: result: no" >&5
2806echo "${ECHO_T}no" >&6
2807 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2808 Please either mount the build directory in binary mode or run the following
2809 commands before running any configure script:
2810set -o igncr
2811export SHELLOPTS
2812 " >&5
2813echo "$as_me: error: The cat command does not ignore carriage return characters.
2814 Please either mount the build directory in binary mode or run the following
2815 commands before running any configure script:
2816set -o igncr
2817export SHELLOPTS
2818 " >&2;}
2819 { (exit 1); exit 1; }; }
2820fi
e33b51a6 2821
a0da8069
NN
2822 host_makefile_frag="config/mh-cygwin"
2823 ;;
8a1599ab 2824 *-mingw*)
84e7906e 2825 host_makefile_frag="config/mh-mingw"
2d1e8239 2826 ;;
a0da8069
NN
2827 *-interix*)
2828 host_makefile_frag="config/mh-interix"
2829 ;;
2830 vax-*-ultrix2*)
2831 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2832 tentative_cc=gcc
2833 ;;
2834 *-*-solaris2*)
2835 host_makefile_frag="config/mh-solaris"
2836 ;;
2837 m68k-sun-sunos*)
2838 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2839 # without overflowing the jump tables (-J says to use a 32 bit table)
2840 tentative_cc="cc -J"
2841 ;;
2842 *-hp-hpux*)
2843 tentative_cc="cc -Wp,-H256000"
2844 ;;
2845 *-*-hiux*)
2846 tentative_cc="cc -Wp,-H256000"
2847 ;;
2848 rs6000-*-lynxos*)
2849 # /bin/cc is less than useful for our purposes. Always use GCC
2850 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2851 host_makefile_frag="config/mh-lynxrs6k"
2852 ;;
0df3d27f
PB
2853 powerpc-*-darwin*)
2854 host_makefile_frag="config/mh-ppc-darwin"
2855 ;;
f6d183c0
PB
2856 powerpc-*-aix*)
2857 host_makefile_frag="config/mh-ppc-aix"
2858 ;;
2859 rs6000-*-aix*)
2860 host_makefile_frag="config/mh-ppc-aix"
2861 ;;
a0da8069
NN
2862 *-*-lynxos*)
2863 # /bin/cc is less than useful for our purposes. Always use GCC
2864 tentative_cc="/bin/gcc"
2865 ;;
2866 *-*-sysv4*)
2867 host_makefile_frag="config/mh-sysv4"
2868 ;;
fe69863c
DD
2869 # This is placed last to prevent interfering with the cases above.
2870 i[3456789]86-*-*)
2871 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2872 host_makefile_frag="config/mh-x86omitfp"
2873 ;;
a0da8069
NN
2874esac
2875fi
2876
9e07f89d
NN
2877# If we aren't going to be using gcc, see if we can extract a definition
2878# of CC from the fragment.
2879# Actually, use the 'pre-extracted' version above.
2880if test -z "${CC}" && test "${build}" = "${host}" ; then
2881 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2882 found=
2883 for dir in $PATH; do
2884 test -z "$dir" && dir=.
2885 if test -f $dir/gcc; then
2886 found=yes
2887 break
2888 fi
2889 done
2890 IFS="$save_ifs"
2891 if test -z "${found}" && test -n "${tentative_cc}" ; then
2892 CC=$tentative_cc
2893 fi
2894fi
2895
2896if test "${build}" != "${host}" ; then
1576798e
PB
2897 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2898 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 2899 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
2900 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2901 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2902 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2903 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2904 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2905 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2906 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2907 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2908 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2909else
2910 AR_FOR_BUILD="\$(AR)"
2911 AS_FOR_BUILD="\$(AS)"
512b7dfb 2912 CC_FOR_BUILD="\$(CC)"
1576798e
PB
2913 CXX_FOR_BUILD="\$(CXX)"
2914 GCJ_FOR_BUILD="\$(GCJ)"
2915 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2916 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2917 LD_FOR_BUILD="\$(LD)"
2918 NM_FOR_BUILD="\$(NM)"
2919 RANLIB_FOR_BUILD="\$(RANLIB)"
2920 WINDRES_FOR_BUILD="\$(WINDRES)"
2921 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
2922fi
2923
2924ac_ext=c
c6b750e1
DJ
2925ac_cpp='$CPP $CPPFLAGS'
2926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2928ac_compiler_gnu=$ac_cv_c_compiler_gnu
2929if test -n "$ac_tool_prefix"; then
2930 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2931set dummy ${ac_tool_prefix}gcc; ac_word=$2
2932echo "$as_me:$LINENO: checking for $ac_word" >&5
2933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2934if test "${ac_cv_prog_CC+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2936else
2937 if test -n "$CC"; then
2938 ac_cv_prog_CC="$CC" # Let the user override the test.
2939else
2940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941for as_dir in $PATH
2942do
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2950 fi
2951done
2952done
2953
2954fi
2955fi
2956CC=$ac_cv_prog_CC
2957if test -n "$CC"; then
2958 echo "$as_me:$LINENO: result: $CC" >&5
2959echo "${ECHO_T}$CC" >&6
2960else
2961 echo "$as_me:$LINENO: result: no" >&5
2962echo "${ECHO_T}no" >&6
2963fi
2964
2965fi
2966if test -z "$ac_cv_prog_CC"; then
2967 ac_ct_CC=$CC
6a9cf61e 2968 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2969set dummy gcc; ac_word=$2
c6b750e1
DJ
2970echo "$as_me:$LINENO: checking for $ac_word" >&5
2971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2972if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2974else
2975 if test -n "$ac_ct_CC"; then
2976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2977else
2978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979for as_dir in $PATH
2980do
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2985 ac_cv_prog_ac_ct_CC="gcc"
2986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 break 2
2988 fi
2989done
2990done
2991
2992fi
2993fi
2994ac_ct_CC=$ac_cv_prog_ac_ct_CC
2995if test -n "$ac_ct_CC"; then
2996 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2997echo "${ECHO_T}$ac_ct_CC" >&6
2998else
2999 echo "$as_me:$LINENO: result: no" >&5
3000echo "${ECHO_T}no" >&6
3001fi
3002
3003 CC=$ac_ct_CC
3004else
3005 CC="$ac_cv_prog_CC"
3006fi
3007
3008if test -z "$CC"; then
3009 if test -n "$ac_tool_prefix"; then
3010 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3011set dummy ${ac_tool_prefix}cc; ac_word=$2
3012echo "$as_me:$LINENO: checking for $ac_word" >&5
3013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3014if test "${ac_cv_prog_CC+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3016else
3017 if test -n "$CC"; then
3018 ac_cv_prog_CC="$CC" # Let the user override the test.
3019else
c6b750e1
DJ
3020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021for as_dir in $PATH
3022do
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3027 ac_cv_prog_CC="${ac_tool_prefix}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
3034fi
3035fi
c6b750e1 3036CC=$ac_cv_prog_CC
9e07f89d 3037if test -n "$CC"; then
c6b750e1
DJ
3038 echo "$as_me:$LINENO: result: $CC" >&5
3039echo "${ECHO_T}$CC" >&6
9e07f89d 3040else
c6b750e1
DJ
3041 echo "$as_me:$LINENO: result: no" >&5
3042echo "${ECHO_T}no" >&6
9e07f89d
NN
3043fi
3044
c6b750e1
DJ
3045fi
3046if test -z "$ac_cv_prog_CC"; then
3047 ac_ct_CC=$CC
3048 # Extract the first word of "cc", so it can be a program name with args.
3049set dummy cc; ac_word=$2
3050echo "$as_me:$LINENO: checking for $ac_word" >&5
3051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3052if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3054else
3055 if test -n "$ac_ct_CC"; then
3056 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3057else
3058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059for as_dir in $PATH
3060do
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065 ac_cv_prog_ac_ct_CC="cc"
3066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 break 2
3068 fi
3069done
3070done
3071
3072fi
3073fi
3074ac_ct_CC=$ac_cv_prog_ac_ct_CC
3075if test -n "$ac_ct_CC"; then
3076 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3077echo "${ECHO_T}$ac_ct_CC" >&6
3078else
3079 echo "$as_me:$LINENO: result: no" >&5
3080echo "${ECHO_T}no" >&6
3081fi
3082
3083 CC=$ac_ct_CC
3084else
3085 CC="$ac_cv_prog_CC"
3086fi
3087
3088fi
9e07f89d
NN
3089if test -z "$CC"; then
3090 # Extract the first word of "cc", so it can be a program name with args.
3091set dummy cc; ac_word=$2
c6b750e1
DJ
3092echo "$as_me:$LINENO: checking for $ac_word" >&5
3093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3094if test "${ac_cv_prog_CC+set}" = set; then
3095 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3096else
3097 if test -n "$CC"; then
3098 ac_cv_prog_CC="$CC" # Let the user override the test.
3099else
9e07f89d 3100 ac_prog_rejected=no
c6b750e1
DJ
3101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102for as_dir in $PATH
3103do
3104 IFS=$as_save_IFS
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3108 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3109 ac_prog_rejected=yes
3110 continue
3111 fi
3112 ac_cv_prog_CC="cc"
3113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 break 2
3115 fi
3116done
3117done
3118
9e07f89d
NN
3119if test $ac_prog_rejected = yes; then
3120 # We found a bogon in the path, so make sure we never use it.
3121 set dummy $ac_cv_prog_CC
3122 shift
c6b750e1 3123 if test $# != 0; then
9e07f89d
NN
3124 # We chose a different compiler from the bogus one.
3125 # However, it has the same basename, so the bogon will be chosen
3126 # first if we set CC to just the basename; use the full file name.
3127 shift
c6b750e1 3128 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3129 fi
3130fi
3131fi
3132fi
c6b750e1 3133CC=$ac_cv_prog_CC
9e07f89d 3134if test -n "$CC"; then
c6b750e1
DJ
3135 echo "$as_me:$LINENO: result: $CC" >&5
3136echo "${ECHO_T}$CC" >&6
9e07f89d 3137else
c6b750e1
DJ
3138 echo "$as_me:$LINENO: result: no" >&5
3139echo "${ECHO_T}no" >&6
9e07f89d
NN
3140fi
3141
c6b750e1
DJ
3142fi
3143if test -z "$CC"; then
3144 if test -n "$ac_tool_prefix"; then
3145 for ac_prog in cl
3146 do
3147 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3148set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3149echo "$as_me:$LINENO: checking for $ac_word" >&5
3150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3151if test "${ac_cv_prog_CC+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3153else
3154 if test -n "$CC"; then
3155 ac_cv_prog_CC="$CC" # Let the user override the test.
3156else
c6b750e1
DJ
3157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158for as_dir in $PATH
3159do
3160 IFS=$as_save_IFS
3161 test -z "$as_dir" && as_dir=.
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3164 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 break 2
376a0e54 3167 fi
c6b750e1
DJ
3168done
3169done
cac3d6c4 3170
c6b750e1
DJ
3171fi
3172fi
3173CC=$ac_cv_prog_CC
3174if test -n "$CC"; then
3175 echo "$as_me:$LINENO: result: $CC" >&5
3176echo "${ECHO_T}$CC" >&6
cac3d6c4 3177else
c6b750e1
DJ
3178 echo "$as_me:$LINENO: result: no" >&5
3179echo "${ECHO_T}no" >&6
9e07f89d 3180fi
cac3d6c4 3181
c6b750e1
DJ
3182 test -n "$CC" && break
3183 done
cac3d6c4 3184fi
c6b750e1
DJ
3185if test -z "$CC"; then
3186 ac_ct_CC=$CC
3187 for ac_prog in cl
3188do
3189 # Extract the first word of "$ac_prog", so it can be a program name with args.
3190set dummy $ac_prog; ac_word=$2
3191echo "$as_me:$LINENO: checking for $ac_word" >&5
3192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3193if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3195else
c6b750e1
DJ
3196 if test -n "$ac_ct_CC"; then
3197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3198else
c6b750e1
DJ
3199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200for as_dir in $PATH
3201do
3202 IFS=$as_save_IFS
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206 ac_cv_prog_ac_ct_CC="$ac_prog"
3207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 break 2
3209 fi
3210done
3211done
3212
cac3d6c4
CM
3213fi
3214fi
c6b750e1
DJ
3215ac_ct_CC=$ac_cv_prog_ac_ct_CC
3216if test -n "$ac_ct_CC"; then
3217 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3218echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3219else
c6b750e1
DJ
3220 echo "$as_me:$LINENO: result: no" >&5
3221echo "${ECHO_T}no" >&6
cac3d6c4 3222fi
376a0e54 3223
c6b750e1
DJ
3224 test -n "$ac_ct_CC" && break
3225done
3226
3227 CC=$ac_ct_CC
3228fi
3229
3230fi
3231
3232
3233test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3234See \`config.log' for more details." >&5
3235echo "$as_me: error: no acceptable C compiler found in \$PATH
3236See \`config.log' for more details." >&2;}
3237 { (exit 1); exit 1; }; }
3238
3239# Provide some information about the compiler.
3240echo "$as_me:$LINENO:" \
3241 "checking for C compiler version" >&5
3242ac_compiler=`set X $ac_compile; echo $2`
3243{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3244 (eval $ac_compiler --version </dev/null >&5) 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }
3248{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3249 (eval $ac_compiler -v </dev/null >&5) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }
3253{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3254 (eval $ac_compiler -V </dev/null >&5) 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }
3258
3259cat >conftest.$ac_ext <<_ACEOF
3260/* confdefs.h. */
3261_ACEOF
3262cat confdefs.h >>conftest.$ac_ext
3263cat >>conftest.$ac_ext <<_ACEOF
3264/* end confdefs.h. */
3265
3266int
3267main ()
3268{
3269
3270 ;
3271 return 0;
3272}
3273_ACEOF
3274ac_clean_files_save=$ac_clean_files
3275ac_clean_files="$ac_clean_files a.out a.exe b.out"
3276# Try to create an executable without -o first, disregard a.out.
3277# It will help us diagnose broken compilers, and finding out an intuition
3278# of exeext.
3279echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3280echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3281ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3282if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3283 (eval $ac_link_default) 2>&5
3284 ac_status=$?
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; then
3287 # Find the output, starting from the most likely. This scheme is
3288# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3289# resort.
3290
3291# Be careful to initialize this variable, since it used to be cached.
3292# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3293ac_cv_exeext=
3294# b.out is created by i960 compilers.
3295for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3296do
3297 test -f "$ac_file" || continue
3298 case $ac_file in
3299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3300 ;;
3301 conftest.$ac_ext )
3302 # This is the source file.
3303 ;;
3304 [ab].out )
3305 # We found the default executable, but exeext='' is most
3306 # certainly right.
3307 break;;
3308 *.* )
3309 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3310 # FIXME: I believe we export ac_cv_exeext for Libtool,
3311 # but it would be cool to find out if it's true. Does anybody
3312 # maintain Libtool? --akim.
3313 export ac_cv_exeext
3314 break;;
3315 * )
3316 break;;
3317 esac
3318done
3319else
3320 echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
3323{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3324See \`config.log' for more details." >&5
3325echo "$as_me: error: C compiler cannot create executables
3326See \`config.log' for more details." >&2;}
3327 { (exit 77); exit 77; }; }
3328fi
3329
3330ac_exeext=$ac_cv_exeext
3331echo "$as_me:$LINENO: result: $ac_file" >&5
3332echo "${ECHO_T}$ac_file" >&6
3333
3334# Check the compiler produces executables we can run. If not, either
3335# the compiler is broken, or we cross compile.
3336echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3337echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3338# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3339# If not cross compiling, check that we can run a simple program.
3340if test "$cross_compiling" != yes; then
3341 if { ac_try='./$ac_file'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343 (eval $ac_try) 2>&5
3344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; }; then
3347 cross_compiling=no
3348 else
3349 if test "$cross_compiling" = maybe; then
3350 cross_compiling=yes
3351 else
3352 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3353If you meant to cross compile, use \`--host'.
3354See \`config.log' for more details." >&5
3355echo "$as_me: error: cannot run C compiled programs.
3356If you meant to cross compile, use \`--host'.
3357See \`config.log' for more details." >&2;}
3358 { (exit 1); exit 1; }; }
3359 fi
3360 fi
3361fi
3362echo "$as_me:$LINENO: result: yes" >&5
3363echo "${ECHO_T}yes" >&6
3364
3365rm -f a.out a.exe conftest$ac_cv_exeext b.out
3366ac_clean_files=$ac_clean_files_save
3367# Check the compiler produces executables we can run. If not, either
3368# the compiler is broken, or we cross compile.
3369echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3370echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3371echo "$as_me:$LINENO: result: $cross_compiling" >&5
3372echo "${ECHO_T}$cross_compiling" >&6
3373
3374echo "$as_me:$LINENO: checking for suffix of executables" >&5
3375echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3377 (eval $ac_link) 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; then
3381 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3382# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3383# work properly (i.e., refer to `conftest.exe'), while it won't with
3384# `rm'.
3385for ac_file in conftest.exe conftest conftest.*; do
3386 test -f "$ac_file" || continue
3387 case $ac_file in
3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3389 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3390 export ac_cv_exeext
3391 break;;
3392 * ) break;;
3393 esac
3394done
3395else
3396 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3397See \`config.log' for more details." >&5
3398echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3399See \`config.log' for more details." >&2;}
3400 { (exit 1); exit 1; }; }
3401fi
3402
3403rm -f conftest$ac_cv_exeext
3404echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3405echo "${ECHO_T}$ac_cv_exeext" >&6
3406
3407rm -f conftest.$ac_ext
3408EXEEXT=$ac_cv_exeext
3409ac_exeext=$EXEEXT
3410echo "$as_me:$LINENO: checking for suffix of object files" >&5
3411echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3412if test "${ac_cv_objext+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414else
3415 cat >conftest.$ac_ext <<_ACEOF
3416/* confdefs.h. */
3417_ACEOF
3418cat confdefs.h >>conftest.$ac_ext
3419cat >>conftest.$ac_ext <<_ACEOF
3420/* end confdefs.h. */
3421
3422int
3423main ()
3424{
3425
3426 ;
3427 return 0;
3428}
3429_ACEOF
3430rm -f conftest.o conftest.obj
3431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3432 (eval $ac_compile) 2>&5
3433 ac_status=$?
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; then
3436 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3437 case $ac_file in
3438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3439 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3440 break;;
3441 esac
3442done
cac3d6c4 3443else
c6b750e1
DJ
3444 echo "$as_me: failed program was:" >&5
3445sed 's/^/| /' conftest.$ac_ext >&5
3446
3447{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3448See \`config.log' for more details." >&5
3449echo "$as_me: error: cannot compute suffix of object files: cannot compile
3450See \`config.log' for more details." >&2;}
3451 { (exit 1); exit 1; }; }
3452fi
3453
3454rm -f conftest.$ac_cv_objext conftest.$ac_ext
3455fi
3456echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3457echo "${ECHO_T}$ac_cv_objext" >&6
3458OBJEXT=$ac_cv_objext
3459ac_objext=$OBJEXT
3460echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3461echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3462if test "${ac_cv_c_compiler_gnu+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3464else
3465 cat >conftest.$ac_ext <<_ACEOF
3466/* confdefs.h. */
3467_ACEOF
3468cat confdefs.h >>conftest.$ac_ext
3469cat >>conftest.$ac_ext <<_ACEOF
3470/* end confdefs.h. */
3471
3472int
3473main ()
3474{
3475#ifndef __GNUC__
3476 choke me
3477#endif
3478
3479 ;
3480 return 0;
3481}
3482_ACEOF
3483rm -f conftest.$ac_objext
3484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3485 (eval $ac_compile) 2>conftest.er1
3486 ac_status=$?
3487 grep -v '^ *+' conftest.er1 >conftest.err
3488 rm -f conftest.er1
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } &&
3492 { ac_try='test -z "$ac_c_werror_flag"
3493 || test ! -s conftest.err'
3494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495 (eval $ac_try) 2>&5
3496 ac_status=$?
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; } &&
3499 { ac_try='test -s conftest.$ac_objext'
3500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501 (eval $ac_try) 2>&5
3502 ac_status=$?
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; }; then
3505 ac_compiler_gnu=yes
3506else
3507 echo "$as_me: failed program was:" >&5
3508sed 's/^/| /' conftest.$ac_ext >&5
3509
3510ac_compiler_gnu=no
3511fi
3512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3513ac_cv_c_compiler_gnu=$ac_compiler_gnu
3514
3515fi
3516echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3517echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3518GCC=`test $ac_compiler_gnu = yes && echo yes`
3519ac_test_CFLAGS=${CFLAGS+set}
3520ac_save_CFLAGS=$CFLAGS
3521CFLAGS="-g"
3522echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3523echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3524if test "${ac_cv_prog_cc_g+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3526else
3527 cat >conftest.$ac_ext <<_ACEOF
3528/* confdefs.h. */
3529_ACEOF
3530cat confdefs.h >>conftest.$ac_ext
3531cat >>conftest.$ac_ext <<_ACEOF
3532/* end confdefs.h. */
3533
3534int
3535main ()
3536{
3537
3538 ;
3539 return 0;
3540}
3541_ACEOF
3542rm -f conftest.$ac_objext
3543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3544 (eval $ac_compile) 2>conftest.er1
3545 ac_status=$?
3546 grep -v '^ *+' conftest.er1 >conftest.err
3547 rm -f conftest.er1
3548 cat conftest.err >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } &&
3551 { ac_try='test -z "$ac_c_werror_flag"
3552 || test ! -s conftest.err'
3553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554 (eval $ac_try) 2>&5
3555 ac_status=$?
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; } &&
3558 { ac_try='test -s conftest.$ac_objext'
3559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 (eval $ac_try) 2>&5
3561 ac_status=$?
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; }; then
9e07f89d
NN
3564 ac_cv_prog_cc_g=yes
3565else
c6b750e1
DJ
3566 echo "$as_me: failed program was:" >&5
3567sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3568
c6b750e1 3569ac_cv_prog_cc_g=no
376a0e54 3570fi
c6b750e1
DJ
3571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3572fi
3573echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3574echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3575if test "$ac_test_CFLAGS" = set; then
c6b750e1 3576 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3577elif test $ac_cv_prog_cc_g = yes; then
3578 if test "$GCC" = yes; then
3579 CFLAGS="-g -O2"
3580 else
3581 CFLAGS="-g"
3582 fi
3583else
3584 if test "$GCC" = yes; then
3585 CFLAGS="-O2"
3586 else
3587 CFLAGS=
3588 fi
3589fi
c6b750e1
DJ
3590echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3591echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3592if test "${ac_cv_prog_cc_stdc+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3594else
3595 ac_cv_prog_cc_stdc=no
3596ac_save_CC=$CC
3597cat >conftest.$ac_ext <<_ACEOF
3598/* confdefs.h. */
3599_ACEOF
3600cat confdefs.h >>conftest.$ac_ext
3601cat >>conftest.$ac_ext <<_ACEOF
3602/* end confdefs.h. */
3603#include <stdarg.h>
3604#include <stdio.h>
3605#include <sys/types.h>
3606#include <sys/stat.h>
3607/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3608struct buf { int x; };
3609FILE * (*rcsopen) (struct buf *, struct stat *, int);
3610static char *e (p, i)
3611 char **p;
3612 int i;
3613{
3614 return p[i];
3615}
3616static char *f (char * (*g) (char **, int), char **p, ...)
3617{
3618 char *s;
3619 va_list v;
3620 va_start (v,p);
3621 s = g (p, va_arg (v,int));
3622 va_end (v);
3623 return s;
3624}
3625
3626/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3627 function prototypes and stuff, but not '\xHH' hex character constants.
3628 These don't provoke an error unfortunately, instead are silently treated
3629 as 'x'. The following induces an error, until -std1 is added to get
3630 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3631 array size at least. It's necessary to write '\x00'==0 to get something
3632 that's true only with -std1. */
3633int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3634
3635int test (int i, double x);
3636struct s1 {int (*f) (int a);};
3637struct s2 {int (*f) (double a);};
3638int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3639int argc;
3640char **argv;
3641int
3642main ()
3643{
3644return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3645 ;
3646 return 0;
3647}
3648_ACEOF
3649# Don't try gcc -ansi; that turns off useful extensions and
3650# breaks some systems' header files.
3651# AIX -qlanglvl=ansi
3652# Ultrix and OSF/1 -std1
3653# HP-UX 10.20 and later -Ae
3654# HP-UX older versions -Aa -D_HPUX_SOURCE
3655# SVR4 -Xc -D__EXTENSIONS__
3656for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3657do
3658 CC="$ac_save_CC $ac_arg"
3659 rm -f conftest.$ac_objext
3660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3661 (eval $ac_compile) 2>conftest.er1
3662 ac_status=$?
3663 grep -v '^ *+' conftest.er1 >conftest.err
3664 rm -f conftest.er1
3665 cat conftest.err >&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } &&
3668 { ac_try='test -z "$ac_c_werror_flag"
3669 || test ! -s conftest.err'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 (eval $ac_try) 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; } &&
3675 { ac_try='test -s conftest.$ac_objext'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 (eval $ac_try) 2>&5
3678 ac_status=$?
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3681 ac_cv_prog_cc_stdc=$ac_arg
3682break
3683else
3684 echo "$as_me: failed program was:" >&5
3685sed 's/^/| /' conftest.$ac_ext >&5
3686
3687fi
3688rm -f conftest.err conftest.$ac_objext
3689done
3690rm -f conftest.$ac_ext conftest.$ac_objext
3691CC=$ac_save_CC
3692
3693fi
3694
3695case "x$ac_cv_prog_cc_stdc" in
3696 x|xno)
3697 echo "$as_me:$LINENO: result: none needed" >&5
3698echo "${ECHO_T}none needed" >&6 ;;
3699 *)
3700 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3701echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3702 CC="$CC $ac_cv_prog_cc_stdc" ;;
3703esac
3704
3705# Some people use a C++ compiler to compile C. Since we use `exit',
3706# in C++ we need to declare it. In case someone uses the same compiler
3707# for both compiling C and C++ we need to have the C++ compiler decide
3708# the declaration of exit, since it's the most demanding environment.
3709cat >conftest.$ac_ext <<_ACEOF
3710#ifndef __cplusplus
3711 choke me
3712#endif
3713_ACEOF
3714rm -f conftest.$ac_objext
3715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3716 (eval $ac_compile) 2>conftest.er1
3717 ac_status=$?
3718 grep -v '^ *+' conftest.er1 >conftest.err
3719 rm -f conftest.er1
3720 cat conftest.err >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } &&
3723 { ac_try='test -z "$ac_c_werror_flag"
3724 || test ! -s conftest.err'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 (eval $ac_try) 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; } &&
3730 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3736 for ac_declaration in \
3737 '' \
3738 'extern "C" void std::exit (int) throw (); using std::exit;' \
3739 'extern "C" void std::exit (int); using std::exit;' \
3740 'extern "C" void exit (int) throw ();' \
3741 'extern "C" void exit (int);' \
3742 'void exit (int);'
3743do
3744 cat >conftest.$ac_ext <<_ACEOF
3745/* confdefs.h. */
3746_ACEOF
3747cat confdefs.h >>conftest.$ac_ext
3748cat >>conftest.$ac_ext <<_ACEOF
3749/* end confdefs.h. */
3750$ac_declaration
3751#include <stdlib.h>
3752int
3753main ()
3754{
3755exit (42);
3756 ;
3757 return 0;
3758}
3759_ACEOF
3760rm -f conftest.$ac_objext
3761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3762 (eval $ac_compile) 2>conftest.er1
3763 ac_status=$?
3764 grep -v '^ *+' conftest.er1 >conftest.err
3765 rm -f conftest.er1
3766 cat conftest.err >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } &&
3769 { ac_try='test -z "$ac_c_werror_flag"
3770 || test ! -s conftest.err'
3771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3772 (eval $ac_try) 2>&5
3773 ac_status=$?
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); }; } &&
3776 { ac_try='test -s conftest.$ac_objext'
3777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778 (eval $ac_try) 2>&5
3779 ac_status=$?
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; }; then
3782 :
3783else
3784 echo "$as_me: failed program was:" >&5
3785sed 's/^/| /' conftest.$ac_ext >&5
3786
3787continue
3788fi
3789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3790 cat >conftest.$ac_ext <<_ACEOF
3791/* confdefs.h. */
3792_ACEOF
3793cat confdefs.h >>conftest.$ac_ext
3794cat >>conftest.$ac_ext <<_ACEOF
3795/* end confdefs.h. */
3796$ac_declaration
3797int
3798main ()
3799{
3800exit (42);
3801 ;
3802 return 0;
3803}
3804_ACEOF
3805rm -f conftest.$ac_objext
3806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3807 (eval $ac_compile) 2>conftest.er1
3808 ac_status=$?
3809 grep -v '^ *+' conftest.er1 >conftest.err
3810 rm -f conftest.er1
3811 cat conftest.err >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } &&
3814 { ac_try='test -z "$ac_c_werror_flag"
3815 || test ! -s conftest.err'
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 (eval $ac_try) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; } &&
3821 { ac_try='test -s conftest.$ac_objext'
3822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823 (eval $ac_try) 2>&5
3824 ac_status=$?
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
3827 break
3828else
3829 echo "$as_me: failed program was:" >&5
3830sed 's/^/| /' conftest.$ac_ext >&5
3831
3832fi
3833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3834done
3835rm -f conftest*
3836if test -n "$ac_declaration"; then
3837 echo '#ifdef __cplusplus' >>confdefs.h
3838 echo $ac_declaration >>confdefs.h
3839 echo '#endif' >>confdefs.h
3840fi
3841
3842else
3843 echo "$as_me: failed program was:" >&5
3844sed 's/^/| /' conftest.$ac_ext >&5
3845
3846fi
3847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3848ac_ext=c
3849ac_cpp='$CPP $CPPFLAGS'
3850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3853
18f6b6ee
PB
3854ac_ext=cc
3855ac_cpp='$CXXCPP $CPPFLAGS'
3856ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3857ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3858ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3859if test -n "$ac_tool_prefix"; then
3860 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3861 do
3862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3863set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3864echo "$as_me:$LINENO: checking for $ac_word" >&5
3865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3866if test "${ac_cv_prog_CXX+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868else
3869 if test -n "$CXX"; then
3870 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3871else
3872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873for as_dir in $PATH
3874do
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3879 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 break 2
3882 fi
3883done
3884done
512b7dfb 3885
18f6b6ee
PB
3886fi
3887fi
3888CXX=$ac_cv_prog_CXX
3889if test -n "$CXX"; then
3890 echo "$as_me:$LINENO: result: $CXX" >&5
3891echo "${ECHO_T}$CXX" >&6
3892else
3893 echo "$as_me:$LINENO: result: no" >&5
3894echo "${ECHO_T}no" >&6
3895fi
3896
3897 test -n "$CXX" && break
3898 done
3899fi
3900if test -z "$CXX"; then
3901 ac_ct_CXX=$CXX
3902 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3903do
3904 # Extract the first word of "$ac_prog", so it can be a program name with args.
3905set dummy $ac_prog; ac_word=$2
3906echo "$as_me:$LINENO: checking for $ac_word" >&5
3907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3908if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3910else
3911 if test -n "$ac_ct_CXX"; then
3912 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3913else
3914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915for as_dir in $PATH
3916do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3921 ac_cv_prog_ac_ct_CXX="$ac_prog"
3922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 break 2
512b7dfb 3924 fi
18f6b6ee
PB
3925done
3926done
512b7dfb 3927
18f6b6ee
PB
3928fi
3929fi
3930ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3931if test -n "$ac_ct_CXX"; then
3932 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3933echo "${ECHO_T}$ac_ct_CXX" >&6
3934else
3935 echo "$as_me:$LINENO: result: no" >&5
3936echo "${ECHO_T}no" >&6
3937fi
3938
3939 test -n "$ac_ct_CXX" && break
3940done
3941test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3942
3943 CXX=$ac_ct_CXX
3944fi
3945
3946
3947# Provide some information about the compiler.
3948echo "$as_me:$LINENO:" \
3949 "checking for C++ compiler version" >&5
3950ac_compiler=`set X $ac_compile; echo $2`
3951{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3952 (eval $ac_compiler --version </dev/null >&5) 2>&5
3953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }
3956{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3957 (eval $ac_compiler -v </dev/null >&5) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }
3961{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3962 (eval $ac_compiler -V </dev/null >&5) 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }
3966
3967echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3968echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3969if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3971else
3972 cat >conftest.$ac_ext <<_ACEOF
3973/* confdefs.h. */
3974_ACEOF
3975cat confdefs.h >>conftest.$ac_ext
3976cat >>conftest.$ac_ext <<_ACEOF
3977/* end confdefs.h. */
3978
3979int
3980main ()
3981{
3982#ifndef __GNUC__
3983 choke me
3984#endif
3985
3986 ;
3987 return 0;
3988}
3989_ACEOF
3990rm -f conftest.$ac_objext
3991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3992 (eval $ac_compile) 2>conftest.er1
3993 ac_status=$?
3994 grep -v '^ *+' conftest.er1 >conftest.err
3995 rm -f conftest.er1
3996 cat conftest.err >&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } &&
3999 { ac_try='test -z "$ac_cxx_werror_flag"
4000 || test ! -s conftest.err'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 (eval $ac_try) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; } &&
4006 { ac_try='test -s conftest.$ac_objext'
4007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008 (eval $ac_try) 2>&5
4009 ac_status=$?
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); }; }; then
4012 ac_compiler_gnu=yes
4013else
4014 echo "$as_me: failed program was:" >&5
4015sed 's/^/| /' conftest.$ac_ext >&5
4016
4017ac_compiler_gnu=no
4018fi
4019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4020ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4021
4022fi
4023echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4024echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4025GXX=`test $ac_compiler_gnu = yes && echo yes`
4026ac_test_CXXFLAGS=${CXXFLAGS+set}
4027ac_save_CXXFLAGS=$CXXFLAGS
4028CXXFLAGS="-g"
4029echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4030echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4031if test "${ac_cv_prog_cxx_g+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4033else
4034 cat >conftest.$ac_ext <<_ACEOF
4035/* confdefs.h. */
4036_ACEOF
4037cat confdefs.h >>conftest.$ac_ext
4038cat >>conftest.$ac_ext <<_ACEOF
4039/* end confdefs.h. */
4040
4041int
4042main ()
4043{
4044
4045 ;
4046 return 0;
4047}
4048_ACEOF
4049rm -f conftest.$ac_objext
4050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4051 (eval $ac_compile) 2>conftest.er1
4052 ac_status=$?
4053 grep -v '^ *+' conftest.er1 >conftest.err
4054 rm -f conftest.er1
4055 cat conftest.err >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); } &&
4058 { ac_try='test -z "$ac_cxx_werror_flag"
4059 || test ! -s conftest.err'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 (eval $ac_try) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; } &&
4065 { ac_try='test -s conftest.$ac_objext'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 (eval $ac_try) 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; }; then
4071 ac_cv_prog_cxx_g=yes
4072else
4073 echo "$as_me: failed program was:" >&5
4074sed 's/^/| /' conftest.$ac_ext >&5
4075
4076ac_cv_prog_cxx_g=no
4077fi
4078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4079fi
4080echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4081echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4082if test "$ac_test_CXXFLAGS" = set; then
4083 CXXFLAGS=$ac_save_CXXFLAGS
4084elif test $ac_cv_prog_cxx_g = yes; then
4085 if test "$GXX" = yes; then
4086 CXXFLAGS="-g -O2"
4087 else
4088 CXXFLAGS="-g"
4089 fi
4090else
4091 if test "$GXX" = yes; then
4092 CXXFLAGS="-O2"
4093 else
4094 CXXFLAGS=
4095 fi
4096fi
4097for ac_declaration in \
4098 '' \
4099 'extern "C" void std::exit (int) throw (); using std::exit;' \
4100 'extern "C" void std::exit (int); using std::exit;' \
4101 'extern "C" void exit (int) throw ();' \
4102 'extern "C" void exit (int);' \
4103 'void exit (int);'
4104do
4105 cat >conftest.$ac_ext <<_ACEOF
4106/* confdefs.h. */
4107_ACEOF
4108cat confdefs.h >>conftest.$ac_ext
4109cat >>conftest.$ac_ext <<_ACEOF
4110/* end confdefs.h. */
4111$ac_declaration
4112#include <stdlib.h>
4113int
4114main ()
4115{
4116exit (42);
4117 ;
4118 return 0;
4119}
4120_ACEOF
4121rm -f conftest.$ac_objext
4122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4123 (eval $ac_compile) 2>conftest.er1
4124 ac_status=$?
4125 grep -v '^ *+' conftest.er1 >conftest.err
4126 rm -f conftest.er1
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } &&
4130 { ac_try='test -z "$ac_cxx_werror_flag"
4131 || test ! -s conftest.err'
4132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133 (eval $ac_try) 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; } &&
4137 { ac_try='test -s conftest.$ac_objext'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 (eval $ac_try) 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; }; then
4143 :
4144else
4145 echo "$as_me: failed program was:" >&5
4146sed 's/^/| /' conftest.$ac_ext >&5
4147
4148continue
4149fi
4150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4151 cat >conftest.$ac_ext <<_ACEOF
4152/* confdefs.h. */
4153_ACEOF
4154cat confdefs.h >>conftest.$ac_ext
4155cat >>conftest.$ac_ext <<_ACEOF
4156/* end confdefs.h. */
4157$ac_declaration
4158int
4159main ()
4160{
4161exit (42);
4162 ;
4163 return 0;
4164}
4165_ACEOF
4166rm -f conftest.$ac_objext
4167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4168 (eval $ac_compile) 2>conftest.er1
4169 ac_status=$?
4170 grep -v '^ *+' conftest.er1 >conftest.err
4171 rm -f conftest.er1
4172 cat conftest.err >&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } &&
4175 { ac_try='test -z "$ac_cxx_werror_flag"
4176 || test ! -s conftest.err'
4177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178 (eval $ac_try) 2>&5
4179 ac_status=$?
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; } &&
4182 { ac_try='test -s conftest.$ac_objext'
4183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184 (eval $ac_try) 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; }; then
4188 break
4189else
4190 echo "$as_me: failed program was:" >&5
4191sed 's/^/| /' conftest.$ac_ext >&5
4192
4193fi
4194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4195done
4196rm -f conftest*
4197if test -n "$ac_declaration"; then
4198 echo '#ifdef __cplusplus' >>confdefs.h
4199 echo $ac_declaration >>confdefs.h
4200 echo '#endif' >>confdefs.h
4201fi
4202
4203ac_ext=c
4204ac_cpp='$CPP $CPPFLAGS'
4205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4207ac_compiler_gnu=$ac_cv_c_compiler_gnu
4208
4209
4210# We must set the default linker to the linker used by gcc for the correct
4211# operation of libtool. If LD is not defined and we are using gcc, try to
4212# set the LD default to the ld used by gcc.
4213if test -z "$LD"; then
4214 if test "$GCC" = yes; then
4215 case $build in
4216 *-*-mingw*)
4217 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4218 *)
4219 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4220 esac
4221 case $gcc_prog_ld in
4222 # Accept absolute paths.
4223 [\\/]* | [A-Za-z]:[\\/]*)
4224 LD="$gcc_prog_ld" ;;
4225 esac
4226 fi
512b7dfb
PB
4227fi
4228
4229
4230
4231
c6b750e1 4232if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4233 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4234set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4235echo "$as_me:$LINENO: checking for $ac_word" >&5
4236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4237if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4238 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4239else
512b7dfb
PB
4240 if test -n "$GNATBIND"; then
4241 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4242else
c6b750e1
DJ
4243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244for as_dir in $PATH
4245do
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4250 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4252 break 2
4253 fi
4254done
4255done
4256
9e07f89d
NN
4257fi
4258fi
512b7dfb
PB
4259GNATBIND=$ac_cv_prog_GNATBIND
4260if test -n "$GNATBIND"; then
4261 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4262echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4263else
c6b750e1
DJ
4264 echo "$as_me:$LINENO: result: no" >&5
4265echo "${ECHO_T}no" >&6
9e07f89d
NN
4266fi
4267
c6b750e1 4268fi
512b7dfb
PB
4269if test -z "$ac_cv_prog_GNATBIND"; then
4270 ac_ct_GNATBIND=$GNATBIND
4271 # Extract the first word of "gnatbind", so it can be a program name with args.
4272set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4273echo "$as_me:$LINENO: checking for $ac_word" >&5
4274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4275if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4276 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4277else
512b7dfb
PB
4278 if test -n "$ac_ct_GNATBIND"; then
4279 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4280else
c6b750e1
DJ
4281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282for as_dir in $PATH
4283do
4284 IFS=$as_save_IFS
4285 test -z "$as_dir" && as_dir=.
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4288 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 break 2
4291 fi
4292done
4293done
4294
512b7dfb 4295 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4296fi
4297fi
512b7dfb
PB
4298ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4299if test -n "$ac_ct_GNATBIND"; then
4300 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4301echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4302else
c6b750e1
DJ
4303 echo "$as_me:$LINENO: result: no" >&5
4304echo "${ECHO_T}no" >&6
9e07f89d
NN
4305fi
4306
512b7dfb 4307 GNATBIND=$ac_ct_GNATBIND
24ff9987 4308else
512b7dfb 4309 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4310fi
4311
7df2cd5d 4312if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4313 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4314set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4315echo "$as_me:$LINENO: checking for $ac_word" >&5
4316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4317if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4319else
512b7dfb
PB
4320 if test -n "$GNATMAKE"; then
4321 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4322else
4323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324for as_dir in $PATH
4325do
4326 IFS=$as_save_IFS
4327 test -z "$as_dir" && as_dir=.
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4330 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 break 2
4333 fi
4334done
4335done
4336
4337fi
4338fi
512b7dfb
PB
4339GNATMAKE=$ac_cv_prog_GNATMAKE
4340if test -n "$GNATMAKE"; then
4341 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4342echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4343else
4344 echo "$as_me:$LINENO: result: no" >&5
4345echo "${ECHO_T}no" >&6
4346fi
4347
4348fi
512b7dfb
PB
4349if test -z "$ac_cv_prog_GNATMAKE"; then
4350 ac_ct_GNATMAKE=$GNATMAKE
4351 # Extract the first word of "gnatmake", so it can be a program name with args.
4352set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4353echo "$as_me:$LINENO: checking for $ac_word" >&5
4354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4355if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4357else
512b7dfb
PB
4358 if test -n "$ac_ct_GNATMAKE"; then
4359 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4360else
4361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362for as_dir in $PATH
4363do
4364 IFS=$as_save_IFS
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4368 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 break 2
4371 fi
4372done
4373done
4374
512b7dfb 4375 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4376fi
4377fi
512b7dfb
PB
4378ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4379if test -n "$ac_ct_GNATMAKE"; then
4380 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4381echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4382else
4383 echo "$as_me:$LINENO: result: no" >&5
4384echo "${ECHO_T}no" >&6
4385fi
4386
512b7dfb 4387 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4388else
512b7dfb 4389 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4390fi
4391
c6b750e1
DJ
4392echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4393echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4394if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4396else
4397 cat >conftest.adb <<EOF
4398procedure conftest is begin null; end conftest;
4399EOF
4400acx_cv_cc_gcc_supports_ada=no
4401# There is a bug in old released versions of GCC which causes the
4402# driver to exit successfully when the appropriate language module
4403# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4404# Therefore we must check for the error message as well as an
4405# unsuccessful exit.
b8908782
DD
4406# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4407# given a .adb file, but produce no object file. So we must check
4408# if an object file was really produced to guard against this.
9e07f89d 4409errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4410if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4411 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4412fi
4413rm -f conftest.*
4414fi
c6b750e1
DJ
4415echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4416echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4417
512b7dfb 4418if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4419 have_gnat=yes
4420else
4421 have_gnat=no
4422fi
4423
c6b750e1
DJ
4424echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4425echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4426if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4428else
4429 echo abfoo >t1
4430 echo cdfoo >t2
4431 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4432 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4433 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4434 :
4435 else
4436 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4437 fi
4438 fi
b8908782
DD
4439 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4440 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4441 :
b8908782
DD
4442 else
4443 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4444 fi
4445 fi
4446 rm t1 t2
4447
4448fi
c6b750e1
DJ
4449echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4450echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4451do_compare="$gcc_cv_prog_cmp_skip"
4452
4453
9e07f89d 4454
11b04d1f 4455# Check for GMP and MPFR
4b900473 4456gmplibs="-lmpfr -lgmp"
4b1cb4fe 4457gmpinc=
4b900473
PB
4458have_gmp=no
4459
11b04d1f
DD
4460# Specify a location for mpfr
4461# check for this first so it ends up on the link line before gmp.
c6b750e1 4462
11b04d1f
DD
4463# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4464if test "${with_mpfr_dir+set}" = set; then
4465 withval="$with_mpfr_dir"
c6b750e1
DJ
4466 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4467Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4468echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4469Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4470 { (exit 1); exit 1; }; }
4471fi;
11b04d1f
DD
4472
4473
11b04d1f
DD
4474# Check whether --with-mpfr or --without-mpfr was given.
4475if test "${with_mpfr+set}" = set; then
4476 withval="$with_mpfr"
c6b750e1
DJ
4477
4478fi;
11b04d1f 4479
8a0d8a5c
PB
4480# Check whether --with-mpfr_include or --without-mpfr_include was given.
4481if test "${with_mpfr_include+set}" = set; then
4482 withval="$with_mpfr_include"
c6b750e1
DJ
4483
4484fi;
8a0d8a5c
PB
4485
4486# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4487if test "${with_mpfr_lib+set}" = set; then
4488 withval="$with_mpfr_lib"
8a0d8a5c 4489
c6b750e1 4490fi;
11b04d1f
DD
4491
4492if test "x$with_mpfr" != x; then
4493 gmplibs="-L$with_mpfr/lib $gmplibs"
4494 gmpinc="-I$with_mpfr/include"
4495fi
8a0d8a5c
PB
4496if test "x$with_mpfr_include" != x; then
4497 gmpinc="-I$with_mpfr_include"
4498fi
4499if test "x$with_mpfr_lib" != x; then
4500 gmplibs="-L$with_mpfr_lib $gmplibs"
4501fi
4b900473
PB
4502if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4503 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4504 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4505 # Do not test the mpfr version. Assume that it is sufficient, since
4506 # it is in the source tree, and the library has not been built yet
4507 # but it would be included on the link line in the version check below
4508 # hence making the test fail.
4509 have_gmp=yes
4510fi
11b04d1f 4511
4b1cb4fe 4512# Specify a location for gmp
c6b750e1 4513
4b1cb4fe
DD
4514# Check whether --with-gmp-dir or --without-gmp-dir was given.
4515if test "${with_gmp_dir+set}" = set; then
4516 withval="$with_gmp_dir"
c6b750e1
DJ
4517 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4518Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4519echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4520Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4521 { (exit 1); exit 1; }; }
4522fi;
4b1cb4fe
DD
4523
4524
4b1cb4fe
DD
4525# Check whether --with-gmp or --without-gmp was given.
4526if test "${with_gmp+set}" = set; then
4527 withval="$with_gmp"
c6b750e1
DJ
4528
4529fi;
4b1cb4fe 4530
8a0d8a5c
PB
4531# Check whether --with-gmp_include or --without-gmp_include was given.
4532if test "${with_gmp_include+set}" = set; then
4533 withval="$with_gmp_include"
c6b750e1
DJ
4534
4535fi;
8a0d8a5c
PB
4536
4537# Check whether --with-gmp_lib or --without-gmp_lib was given.
4538if test "${with_gmp_lib+set}" = set; then
4539 withval="$with_gmp_lib"
8a0d8a5c 4540
c6b750e1 4541fi;
8a0d8a5c 4542
4b1cb4fe 4543
11b04d1f
DD
4544if test "x$with_gmp" != x; then
4545 gmplibs="-L$with_gmp/lib $gmplibs"
4546 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4547fi
8a0d8a5c
PB
4548if test "x$with_gmp_include" != x; then
4549 gmpinc="-I$with_gmp_include $gmpinc"
4550fi
4551if test "x$with_gmp_lib" != x; then
4552 gmplibs="-L$with_gmp_lib $gmplibs"
4553fi
4b900473
PB
4554if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4555 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4556 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4557 # Do not test the gmp version. Assume that it is sufficient, since
4558 # it is in the source tree, and the library has not been built yet
4559 # but it would be included on the link line in the version check below
4560 # hence making the test fail.
4561 have_gmp=yes
4562fi
4b1cb4fe 4563
ceb92e78 4564if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4565 have_gmp=yes
4566 saved_CFLAGS="$CFLAGS"
4567 CFLAGS="$CFLAGS $gmpinc"
4568 # Check GMP actually works
c6b750e1
DJ
4569 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4570echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4571
4572cat >conftest.$ac_ext <<_ACEOF
4573/* confdefs.h. */
4574_ACEOF
4575cat confdefs.h >>conftest.$ac_ext
4576cat >>conftest.$ac_ext <<_ACEOF
4577/* end confdefs.h. */
4b1cb4fe 4578#include "gmp.h"
c6b750e1
DJ
4579int
4580main ()
4581{
4b1cb4fe 4582
4b900473
PB
4583 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4584 choke me
4585 #endif
c6b750e1
DJ
4586
4587 ;
4588 return 0;
4589}
4590_ACEOF
4591rm -f conftest.$ac_objext
4592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593 (eval $ac_compile) 2>conftest.er1
4594 ac_status=$?
4595 grep -v '^ *+' conftest.er1 >conftest.err
4596 rm -f conftest.er1
4597 cat conftest.err >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try='test -z "$ac_c_werror_flag"
4601 || test ! -s conftest.err'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 (eval $ac_try) 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; } &&
4607 { ac_try='test -s conftest.$ac_objext'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 (eval $ac_try) 2>&5
4610 ac_status=$?
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
4613 echo "$as_me:$LINENO: result: yes" >&5
4614echo "${ECHO_T}yes" >&6
4615else
4616 echo "$as_me: failed program was:" >&5
4617sed 's/^/| /' conftest.$ac_ext >&5
4618
4619echo "$as_me:$LINENO: result: no" >&5
4620echo "${ECHO_T}no" >&6; have_gmp=no
4621fi
4622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4623
4b900473
PB
4624 if test x"$have_gmp" = xyes; then
4625 saved_LIBS="$LIBS"
4626 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4627 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4628echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4629 cat >conftest.$ac_ext <<_ACEOF
4630/* confdefs.h. */
4631_ACEOF
4632cat confdefs.h >>conftest.$ac_ext
4633cat >>conftest.$ac_ext <<_ACEOF
4634/* end confdefs.h. */
9b134994 4635#include <gmp.h>
4b900473 4636 #include <mpfr.h>
c6b750e1
DJ
4637int
4638main ()
4639{
9b134994 4640
57c53b2b 4641 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4b900473
PB
4642 choke me
4643 #endif
a3ca38d2
DD
4644 mpfr_t n;
4645 mpfr_t x;
4b900473 4646 int t;
a3ca38d2
DD
4647 mpfr_init (n);
4648 mpfr_init (x);
4b900473
PB
4649 mpfr_atan2 (n, n, x, GMP_RNDN);
4650 mpfr_erfc (n, x, GMP_RNDN);
4651 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4652
4653 ;
4654 return 0;
4655}
4656_ACEOF
4657rm -f conftest.$ac_objext conftest$ac_exeext
4658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4659 (eval $ac_link) 2>conftest.er1
4660 ac_status=$?
4661 grep -v '^ *+' conftest.er1 >conftest.err
4662 rm -f conftest.er1
4663 cat conftest.err >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } &&
4666 { ac_try='test -z "$ac_c_werror_flag"
4667 || test ! -s conftest.err'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; } &&
4673 { ac_try='test -s conftest$ac_exeext'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 (eval $ac_try) 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; }; then
4679 cat >conftest.$ac_ext <<_ACEOF
4680/* confdefs.h. */
4681_ACEOF
4682cat confdefs.h >>conftest.$ac_ext
4683cat >>conftest.$ac_ext <<_ACEOF
4684/* end confdefs.h. */
4b1cb4fe 4685#include <gmp.h>
4b900473 4686 #include <mpfr.h>
c6b750e1
DJ
4687int
4688main ()
4689{
9dbaa842 4690
57c53b2b 4691 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
4b900473
PB
4692 choke me
4693 #endif
4694 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4695
4696 ;
4697 return 0;
4698}
4699_ACEOF
4700rm -f conftest.$ac_objext conftest$ac_exeext
4701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4702 (eval $ac_link) 2>conftest.er1
4703 ac_status=$?
4704 grep -v '^ *+' conftest.er1 >conftest.err
4705 rm -f conftest.er1
4706 cat conftest.err >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } &&
4709 { ac_try='test -z "$ac_c_werror_flag"
4710 || test ! -s conftest.err'
4711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 (eval $ac_try) 2>&5
4713 ac_status=$?
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }; } &&
4716 { ac_try='test -s conftest$ac_exeext'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 (eval $ac_try) 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; }; then
4722 echo "$as_me:$LINENO: result: yes" >&5
4723echo "${ECHO_T}yes" >&6
4724else
4725 echo "$as_me: failed program was:" >&5
4726sed 's/^/| /' conftest.$ac_ext >&5
4727
4728echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4729echo "${ECHO_T}buggy but acceptable" >&6
4730fi
4731rm -f conftest.err conftest.$ac_objext \
4732 conftest$ac_exeext conftest.$ac_ext
4733else
4734 echo "$as_me: failed program was:" >&5
4735sed 's/^/| /' conftest.$ac_ext >&5
4736
4737echo "$as_me:$LINENO: result: no" >&5
4738echo "${ECHO_T}no" >&6; have_gmp=no
4739fi
4740rm -f conftest.err conftest.$ac_objext \
4741 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4742 LIBS="$saved_LIBS"
4743 fi
4744 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4745
4b900473 4746 if test x$have_gmp != xyes; then
57c53b2b 4747 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
c6b750e1
DJ
4748Try the --with-gmp and/or --with-mpfr options to specify their locations.
4749Copies of these libraries' source code can be found at their respective
4750hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4751See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4752If you obtained GMP and/or MPFR from a vendor distribution package, make
4753sure that you have installed both the libraries and the header files.
4754They may be located in separate packages." >&5
57c53b2b 4755echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
9dbaa842
DD
4756Try the --with-gmp and/or --with-mpfr options to specify their locations.
4757Copies of these libraries' source code can be found at their respective
4758hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4759See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4760If you obtained GMP and/or MPFR from a vendor distribution package, make
4761sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4762They may be located in separate packages." >&2;}
4763 { (exit 1); exit 1; }; }
4b900473 4764 fi
9dbaa842
DD
4765fi
4766
11b04d1f 4767# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4768
4769
4770
947f426e 4771# By default, C is the only stage 1 language.
9b134994 4772stage1_languages=,c,
1d39f329 4773
9e07f89d
NN
4774# Figure out what language subdirectories are present.
4775# Look if the user specified --enable-languages="..."; if not, use
4776# the environment variable $LANGUAGES if defined. $LANGUAGES might
4777# go away some day.
4778# NB: embedded tabs in this IF block -- do not untabify
4779if test -d ${srcdir}/gcc; then
4780 if test x"${enable_languages+set}" != xset; then
4781 if test x"${LANGUAGES+set}" = xset; then
4782 enable_languages="${LANGUAGES}"
4783 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4784 else
4785 enable_languages=all
4786 fi
4787 else
4788 if test x"${enable_languages}" = x ||
4789 test x"${enable_languages}" = xyes;
4790 then
4791 echo configure.in: --enable-languages needs at least one language argument 1>&2
4792 exit 1
4793 fi
4794 fi
4795 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4796
096f7d00
DE
4797 # 'f95' is the old name for the 'fortran' language. We issue a warning
4798 # and make the substitution.
4799 case ,${enable_languages}, in
4800 *,f95,*)
4801 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4802 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4803 ;;
4804 esac
4805
9e07f89d
NN
4806 # First scan to see if an enabled language requires some other language.
4807 # We assume that a given config-lang.in will list all the language
4808 # front ends it requires, even if some are required indirectly.
4809 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4810 case ${lang_frag} in
4811 ..) ;;
4812 # The odd quoting in the next line works around
4813 # an apparent bug in bash 1.12 on linux.
4814 ${srcdir}/gcc/[*]/config-lang.in) ;;
4815 *)
4816 # From the config-lang.in, get $language, $lang_requires
4817 language=
4818 lang_requires=
4819 . ${lang_frag}
4820 for other in ${lang_requires} ; do
4821 case ,${enable_languages}, in
4822 *,$other,*) ;;
4823 *,all,*) ;;
4824 *,$language,*)
4825 echo " \`$other' language required by \`$language'; enabling" 1>&2
4826 enable_languages="${enable_languages},${other}"
4827 ;;
4828 esac
4829 done
4830 ;;
4831 esac
4832 done
4833
9b134994 4834 new_enable_languages=,c,
9e07f89d 4835 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4836 potential_languages=,c,
9e07f89d
NN
4837
4838 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4839 case ${lang_frag} in
4840 ..) ;;
4841 # The odd quoting in the next line works around
4842 # an apparent bug in bash 1.12 on linux.
4843 ${srcdir}/gcc/[*]/config-lang.in) ;;
4844 *)
c6b750e1 4845 # From the config-lang.in, get $language, $target_libs,
1d39f329 4846 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4847 language=
4848 target_libs=
4849 lang_dirs=
64ce424c 4850 subdir_requires=
9b134994
PB
4851 boot_language=no
4852 build_by_default=yes
9e07f89d 4853 . ${lang_frag}
9b134994
PB
4854 if test x${language} = x; then
4855 echo "${lang_frag} doesn't set \$language." 1>&2
4856 exit 1
4857 fi
4858
4859 case ,${enable_languages}, in
4860 *,${language},*)
9e07f89d
NN
4861 # Language was explicitly selected; include it.
4862 add_this_lang=yes
4863 ;;
9b134994
PB
4864 *,all,*)
4865 # 'all' was selected, select it if it is a default language
4866 add_this_lang=${build_by_default}
9e07f89d
NN
4867 ;;
4868 *)
4869 add_this_lang=no
4870 ;;
4871 esac
4b1cb4fe 4872
64ce424c 4873 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4874 for i in $subdir_requires; do
3d3adb43 4875 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4876 case ,${enable_languages}, in
4877 *,${language},*)
4878 # Specifically requested language; tell them.
c6b750e1
DJ
4879 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4880echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4881 { (exit 1); exit 1; }; }
64ce424c
PB
4882 ;;
4883 *)
4884 # Silently disable.
9b134994 4885 add_this_lang=unsupported
64ce424c
PB
4886 ;;
4887 esac
4888 done
4889
9b134994
PB
4890 # Disable Ada if no preexisting GNAT is available.
4891 case ,${enable_languages},:${language}:${have_gnat} in
4892 *,${language},*:ada:no)
4893 # Specifically requested language; tell them.
c6b750e1
DJ
4894 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4895echo "$as_me: error: GNAT is required to build $language" >&2;}
4896 { (exit 1); exit 1; }; }
9b134994
PB
4897 ;;
4898 *:ada:no)
4899 # Silently disable.
4900 add_this_lang=unsupported
4901 ;;
4902 esac
4903
59f7ec45
HPN
4904 # Disable a language that is unsupported by the target.
4905 case " $unsupported_languages " in
4906 *" $language "*)
9b134994 4907 add_this_lang=unsupported
59f7ec45
HPN
4908 ;;
4909 esac
4910
4b1cb4fe 4911 case $add_this_lang in
9b134994 4912 unsupported)
9e07f89d 4913 # Remove language-dependent dirs.
1d39f329
NN
4914 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4915 ;;
9b134994
PB
4916 no)
4917 # Remove language-dependent dirs; still show language as supported.
4918 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4919 potential_languages="${potential_languages}${language},"
4920 ;;
4921 yes)
4922 new_enable_languages="${new_enable_languages}${language},"
4923 potential_languages="${potential_languages}${language},"
1d39f329
NN
4924 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4925 case ${boot_language} in
4926 yes)
4fa63067 4927 # Add to (comma-separated) list of stage 1 languages.
9b134994 4928 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4929 ;;
4930 esac
4931 ;;
9e07f89d
NN
4932 esac
4933 ;;
4934 esac
4935 done
4936
9b134994
PB
4937 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4938if test "${enable_stage1_languages+set}" = set; then
4939 enableval="$enable_stage1_languages"
4940 case ,${enable_stage1_languages}, in
4941 ,no,|,,)
4942 # Set it to something that will have no effect in the loop below
4943 enable_stage1_languages=c ;;
4944 ,yes,)
4945 enable_stage1_languages=`echo $new_enable_languages | \
4946 sed -e "s/^,//" -e "s/,$//" ` ;;
4947 *,all,*)
4948 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4949 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4950 esac
4951
4952 # Add "good" languages from enable_stage1_languages to stage1_languages,
4953 # while "bad" languages go in missing_languages. Leave no duplicates.
4954 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4955 case $potential_languages in
4956 *,$i,*)
4957 case $stage1_languages in
4958 *,$i,*) ;;
4959 *) stage1_languages="$stage1_languages$i," ;;
4960 esac ;;
4961 *)
4962 case $missing_languages in
4963 *,$i,*) ;;
4964 *) missing_languages="$missing_languages$i," ;;
4965 esac ;;
4966 esac
4967 done
c6b750e1 4968fi;
9b134994
PB
4969
4970 # Remove leading/trailing commas that were added for simplicity
4971 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4972 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4973 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4974 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4975
9e07f89d 4976 if test "x$missing_languages" != x; then
c6b750e1 4977 { { echo "$as_me:$LINENO: error:
27258dd4 4978The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4979Supported languages are: ${potential_languages}" >&5
4980echo "$as_me: error:
4981The following requested languages could not be built: ${missing_languages}
4982Supported languages are: ${potential_languages}" >&2;}
4983 { (exit 1); exit 1; }; }
9e07f89d 4984 fi
9e07f89d
NN
4985 if test "x$new_enable_languages" != "x$enable_languages"; then
4986 echo The following languages will be built: ${new_enable_languages}
9b134994 4987 enable_languages="$new_enable_languages"
9e07f89d 4988 fi
9b134994 4989
c6b750e1 4990
81ec575a 4991 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
4992fi
4993
a6df5a19
PB
4994# Handle --disable-<component> generically.
4995for dir in $configdirs $build_configdirs $target_configdirs ; do
4996 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
4997 varname=`echo $dirname | sed -e s/+/_/g`
4998 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
4999 noconfigdirs="$noconfigdirs $dir"
5000 fi
5001done
5002
4f0ef2d8
CD
5003# Check for Boehm's garbage collector
5004# Check whether --enable-objc-gc or --disable-objc-gc was given.
5005if test "${enable_objc_gc+set}" = set; then
5006 enableval="$enable_objc_gc"
5007 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5008 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
5009 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5010echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5011 { (exit 1); exit 1; }; }
4f0ef2d8
CD
5012 ;;
5013esac
c6b750e1 5014fi;
4f0ef2d8
CD
5015
5016# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
5017case ,${enable_languages},:${enable_objc_gc} in
5018 *,objc,*:yes)
4f0ef2d8
CD
5019 # Keep target-boehm-gc if requested for Objective-C.
5020 ;;
4f0ef2d8 5021 *)
d42c4017
DA
5022 # Otherwise remove target-boehm-gc depending on target-libjava.
5023 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5024 noconfigdirs="$noconfigdirs target-boehm-gc"
5025 fi
4f0ef2d8
CD
5026 ;;
5027esac
5028
caeba88f
AL
5029# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5030# $build_configdirs and $target_configdirs.
9e07f89d
NN
5031# If we have the source for $noconfigdirs entries, add them to $notsupp.
5032
5033notsupp=""
5034for dir in . $skipdirs $noconfigdirs ; do
caeba88f 5035 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
5036 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5037 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5038 if test -r $srcdir/$dirname/configure ; then
5039 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5040 true
5041 else
5042 notsupp="$notsupp $dir"
5043 fi
5044 fi
5045 fi
caeba88f
AL
5046 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5047 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5048 if test -r $srcdir/$dirname/configure ; then
5049 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5050 true
5051 else
5052 notsupp="$notsupp $dir"
5053 fi
5054 fi
5055 fi
9e07f89d
NN
5056 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5057 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5058 if test -r $srcdir/$dirname/configure ; then
5059 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5060 true
5061 else
5062 notsupp="$notsupp $dir"
5063 fi
5064 fi
5065 fi
5066done
5067
5068# Sometimes the tools are distributed with libiberty but with no other
5069# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 5070# Don't let libgcc imply libiberty either.
9e07f89d 5071if test -n "${target_configdirs}" ; then
f86e35b8 5072 libgcc=
9e07f89d
NN
5073 others=
5074 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
5075 if test "$i" = "libgcc"; then
5076 libgcc=target-libgcc
5077 elif test "$i" != "libiberty" ; then
9e07f89d
NN
5078 if test -r $srcdir/$i/configure ; then
5079 others=yes;
5080 break;
5081 fi
5082 fi
5083 done
5084 if test -z "${others}" ; then
f86e35b8 5085 target_configdirs=$libgcc
9e07f89d
NN
5086 fi
5087fi
5088
5089# Quietly strip out all directories which aren't configurable in this tree.
5090# This relies on all configurable subdirectories being autoconfiscated, which
5091# is now the case.
6a9cf61e
PB
5092build_configdirs_all="$build_configdirs"
5093build_configdirs=
5094for i in ${build_configdirs_all} ; do
c6b750e1 5095 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5096 if test -f ${srcdir}/$j/configure ; then
5097 build_configdirs="${build_configdirs} $i"
5098 fi
5099done
5100
9e07f89d
NN
5101configdirs_all="$configdirs"
5102configdirs=
5103for i in ${configdirs_all} ; do
5104 if test -f ${srcdir}/$i/configure ; then
5105 configdirs="${configdirs} $i"
5106 fi
5107done
6a9cf61e 5108
9e07f89d
NN
5109target_configdirs_all="$target_configdirs"
5110target_configdirs=
5111for i in ${target_configdirs_all} ; do
c6b750e1 5112 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5113 if test -f ${srcdir}/$j/configure ; then
5114 target_configdirs="${target_configdirs} $i"
5115 fi
5116done
5117
5118# Produce a warning message for the subdirs we can't configure.
5119# This isn't especially interesting in the Cygnus tree, but in the individual
5120# FSF releases, it's important to let people know when their machine isn't
5121# supported by the one or two programs in a package.
5122
5123if test -n "${notsupp}" && test -z "${norecursion}" ; then
5124 # If $appdirs is non-empty, at least one of those directories must still
5125 # be configured, or we error out. (E.g., if the gas release supports a
5126 # specified target in some subdirs but not the gas subdir, we shouldn't
5127 # pretend that all is well.)
5128 if test -n "$appdirs" ; then
5129 for dir in $appdirs ; do
5130 if test -r $dir/Makefile.in ; then
5131 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5132 appdirs=""
5133 break
5134 fi
6a9cf61e 5135 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5136 appdirs=""
5137 break
5138 fi
5139 fi
5140 done
5141 if test -n "$appdirs" ; then
5142 echo "*** This configuration is not supported by this package." 1>&2
5143 exit 1
5144 fi
5145 fi
5146 # Okay, some application will build, or we don't care to check. Still
5147 # notify of subdirs not getting built.
5148 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5149 echo " ${notsupp}" 1>&2
5150 echo " (Any other directories should still work fine.)" 1>&2
5151fi
5152
5153case "$host" in
5154 *msdosdjgpp*)
5155 enable_gdbtk=no ;;
5156esac
5157
18f6b6ee
PB
5158# To find our prefix, in gcc_cv_tool_prefix.
5159
5160# The user is always right.
5161if test "${PATH_SEPARATOR+set}" != set; then
5162 echo "#! /bin/sh" >conf$$.sh
5163 echo "exit 0" >>conf$$.sh
5164 chmod +x conf$$.sh
5165 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5166 PATH_SEPARATOR=';'
5167 else
5168 PATH_SEPARATOR=:
5169 fi
5170 rm -f conf$$.sh
5171fi
5172
5173
5174
5175if test "x$exec_prefix" = xNONE; then
5176 if test "x$prefix" = xNONE; then
5177 gcc_cv_tool_prefix=$ac_default_prefix
5178 else
5179 gcc_cv_tool_prefix=$prefix
5180 fi
5181else
5182 gcc_cv_tool_prefix=$exec_prefix
5183fi
5184
5185# If there is no compiler in the tree, use the PATH only. In any
5186# case, if there is no compiler in the tree nobody should use
5187# AS_FOR_TARGET and LD_FOR_TARGET.
5188if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5189 gcc_version=`cat $srcdir/gcc/BASE-VER`
5190 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5191 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5192 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5193 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5194 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5195 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5196else
5197 gcc_cv_tool_dirs=
5198fi
5199
5200if test x$build = x$target && test -n "$md_exec_prefix"; then
5201 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5202fi
5203
5204
5205
9e07f89d
NN
5206copy_dirs=
5207
c6b750e1 5208
a19b6204
MM
5209# Check whether --with-build-sysroot or --without-build-sysroot was given.
5210if test "${with_build_sysroot+set}" = set; then
5211 withval="$with_build_sysroot"
5212 if test x"$withval" != x ; then
5213 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5214 fi
5215else
5216 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5217fi;
a19b6204
MM
5218
5219
8a6ee3ab
JM
5220
5221# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5222if test "${with_debug_prefix_map+set}" = set; then
5223 withval="$with_debug_prefix_map"
5224 if test x"$withval" != x; then
5225 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5226 for debug_map in $withval; do
5227 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5228 done
5229 fi
5230else
5231 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5232fi;
5233
5234
7f6ef0c0
PB
5235# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5236# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5237# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5238# We want to ensure that TARGET libraries (which we know are built with
5239# gcc) are built with "-O2 -g", so include those options when setting
5240# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5241if test "x$CFLAGS_FOR_TARGET" = x; then
5242 CFLAGS_FOR_TARGET=$CFLAGS
5243 case " $CFLAGS " in
5244 *" -O2 "*) ;;
5245 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5246 esac
5247 case " $CFLAGS " in
5248 *" -g "* | *" -g3 "*) ;;
5249 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5250 esac
5251fi
5252
5253
5254if test "x$CXXFLAGS_FOR_TARGET" = x; then
5255 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5256 case " $CXXFLAGS " in
5257 *" -O2 "*) ;;
5258 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5259 esac
5260 case " $CXXFLAGS " in
5261 *" -g "* | *" -g3 "*) ;;
5262 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5263 esac
5264fi
5265
5266
9e07f89d
NN
5267# Handle --with-headers=XXX. If the value is not "yes", the contents of
5268# the named directory are copied to $(tooldir)/sys-include.
5269if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5270 if test x${is_cross_compiler} = xno ; then
5271 echo 1>&2 '***' --with-headers is only supported when cross compiling
5272 exit 1
5273 fi
5274 if test x"${with_headers}" != xyes ; then
18f6b6ee 5275 x=${gcc_cv_tool_prefix}
c6b750e1 5276 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5277 fi
5278fi
5279
5280# Handle --with-libs=XXX. If the value is not "yes", the contents of
5281# the name directories are copied to $(tooldir)/lib. Multiple directories
5282# are permitted.
5283if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5284 if test x${is_cross_compiler} = xno ; then
5285 echo 1>&2 '***' --with-libs is only supported when cross compiling
5286 exit 1
5287 fi
5288 if test x"${with_libs}" != xyes ; then
5289 # Copy the libraries in reverse order, so that files in the first named
5290 # library override files in subsequent libraries.
18f6b6ee 5291 x=${gcc_cv_tool_prefix}
9e07f89d 5292 for l in ${with_libs}; do
c6b750e1 5293 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5294 done
5295 fi
5296fi
5297
2429c060
PB
5298# Set with_gnu_as and with_gnu_ld as appropriate.
5299#
5300# This is done by determining whether or not the appropriate directory
5301# is available, and by checking whether or not specific configurations
5302# have requested that this magic not happen.
c6b750e1
DJ
5303#
5304# The command line options always override the explicit settings in
2429c060
PB
5305# configure.in, and the settings in configure.in override this magic.
5306#
c6b750e1 5307# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5308# want to do that, then you should use the --without-gnu-as and
5309# --without-gnu-ld options for the configure script.
5310
5311if test x${use_gnu_as} = x &&
5312 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5313 with_gnu_as=yes
5314 extra_host_args="$extra_host_args --with-gnu-as"
5315fi
5316
5317if test x${use_gnu_ld} = x &&
93f9b408 5318 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
5319 with_gnu_ld=yes
5320 extra_host_args="$extra_host_args --with-gnu-ld"
5321fi
5322
5323# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5324# can detect this case.
5325
5326if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5327 with_newlib=yes
5328 extra_host_args="$extra_host_args --with-newlib"
5329fi
5330
9e07f89d
NN
5331# Handle ${copy_dirs}
5332set fnord ${copy_dirs}
5333shift
5334while test $# != 0 ; do
5335 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5336 :
5337 else
5338 echo Copying $1 to $2
5339
5340 # Use the install script to create the directory and all required
5341 # parent directories.
5342 if test -d $2 ; then
5343 :
5344 else
5345 echo >config.temp
5346 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5347 fi
5348
5349 # Copy the directory, assuming we have tar.
5350 # FIXME: Should we use B in the second tar? Not all systems support it.
5351 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5352
5353 # It is the responsibility of the user to correctly adjust all
5354 # symlinks. If somebody can figure out how to handle them correctly
5355 # here, feel free to add the code.
5356
5357 echo $1 > $2/COPIED
5358 fi
5359 shift; shift
5360done
5361
2429c060
PB
5362# Determine a target-dependent exec_prefix that the installed
5363# gcc will search in. Keep this list sorted by triplet, with
5364# the *-*-osname triplets last.
5365md_exec_prefix=
5366case "${target}" in
5367 alpha*-*-*vms*)
5368 md_exec_prefix=/gnu/lib/gcc-lib
5369 ;;
521ec477 5370 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5371 md_exec_prefix=/dev/env/DJDIR/bin
5372 ;;
521ec477 5373 i[34567]86-*-sco3.2v5*)
2429c060
PB
5374 if test $with_gnu_as = yes; then
5375 md_exec_prefix=/usr/gnu/bin
5376 else
5377 md_exec_prefix=/usr/ccs/bin/elf
5378 fi
5379 ;;
5380
5381 mn10300-*-* | \
5382 powerpc-*-chorusos* | \
5383 powerpc*-*-eabi* | \
5384 powerpc*-*-sysv* | \
5385 powerpc*-*-kaos* | \
5386 s390x-ibm-tpf*)
5387 md_exec_prefix=/usr/ccs/bin
5388 ;;
5389 sparc64-*-elf*)
5390 ;;
5391 v850*-*-*)
5392 md_exec_prefix=/usr/ccs/bin
5393 ;;
8b66833e 5394 xtensa*-*-elf*)
2429c060
PB
5395 ;;
5396
5397 *-*-beos* | \
5398 *-*-elf* | \
5399 *-*-hpux* | \
5400 *-*-netware* | \
5401 *-*-nto-qnx* | \
5402 *-*-rtems* | \
5403 *-*-solaris2* | \
521ec477 5404 *-*-sysv[45]* | \
2429c060
PB
5405 *-*-vxworks* | \
5406 *-wrs-windiss)
5407 md_exec_prefix=/usr/ccs/bin
5408 ;;
5409esac
5410
a0da8069
NN
5411extra_arflags_for_target=
5412extra_nmflags_for_target=
5413extra_ranlibflags_for_target=
5414target_makefile_frag=/dev/null
5415case "${target}" in
4e206d7e
DB
5416 mep*-*-*)
5417 target_makefile_frag="config/mt-mep"
5418 ;;
77d7106f
AM
5419 spu-*-*)
5420 target_makefile_frag="config/mt-spu"
5421 ;;
429acdec
RS
5422 mips*-sde-elf*)
5423 target_makefile_frag="config/mt-sde"
5424 ;;
f3b1e08e
RS
5425 mipsisa*-*-elfoabi*)
5426 target_makefile_frag="config/mt-mips-elfoabi"
5427 ;;
2a3124ca 5428 *-*-netware*)
a0da8069
NN
5429 target_makefile_frag="config/mt-netware"
5430 ;;
3d6dfe0f
NN
5431 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5432 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5433 ;;
5434 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5435 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5436 # commands to handle both 32-bit and 64-bit objects. These flags are
5437 # harmless if we're using GNU nm or ar.
5438 extra_arflags_for_target=" -X32_64"
5439 extra_nmflags_for_target=" -B -X32_64"
5440 ;;
5441 *-*-darwin*)
5442 # ranlib from Darwin requires the -c flag to look at common symbols.
5443 extra_ranlibflags_for_target=" -c"
5444 ;;
5445 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5446 target_makefile_frag="config/mt-wince"
5447 ;;
5448esac
5449
5450alphaieee_frag=/dev/null
5451case $target in
5452 alpha*-*-*)
5453 # This just makes sure to use the -mieee option to build target libs.
5454 # This should probably be set individually by each library.
5455 alphaieee_frag="config/mt-alphaieee"
5456 ;;
5457esac
5458
5459# If --enable-target-optspace always use -Os instead of -O2 to build
5460# the target libraries, similarly if it is not specified, use -Os
5461# on selected platforms.
5462ospace_frag=/dev/null
5463case "${enable_target_optspace}:${target}" in
5464 yes:*)
5465 ospace_frag="config/mt-ospace"
5466 ;;
5467 :d30v-*)
5468 ospace_frag="config/mt-d30v"
5469 ;;
5470 :m32r-* | :d10v-* | :fr30-*)
5471 ospace_frag="config/mt-ospace"
5472 ;;
5473 no:* | :*)
5474 ;;
5475 *)
5476 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5477 ;;
5478esac
5479
a0da8069
NN
5480# Default to using --with-stabs for certain targets.
5481if test x${with_stabs} = x ; then
5482 case "${target}" in
e31d1ea3 5483 mips*-*-irix[56]*)
a0da8069
NN
5484 ;;
5485 mips*-*-* | alpha*-*-osf*)
5486 with_stabs=yes;
5487 extra_host_args="${extra_host_args} --with-stabs"
5488 ;;
5489 esac
5490fi
5491
5492# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5493# them automatically.
5494case "${host}" in
c6b750e1 5495 hppa*64*-*-hpux11*)
a0da8069
NN
5496 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5497 ;;
5498esac
5499
a0da8069
NN
5500# Some systems (e.g., one of the i386-aix systems the gas testers are
5501# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5502tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5503build_tooldir=${tooldir}
5504
a0da8069
NN
5505# Create a .gdbinit file which runs the one in srcdir
5506# and tells GDB to look there for source files.
5507
5508if test -r ${srcdir}/.gdbinit ; then
5509 case ${srcdir} in
5510 .) ;;
5511 *) cat > ./.gdbinit <<EOF
5512# ${NO_EDIT}
5513dir ${srcdir}
5514dir .
5515source ${srcdir}/.gdbinit
5516EOF
5517 ;;
5518 esac
5519fi
5520
a0da8069
NN
5521# Make sure that the compiler is able to generate an executable. If it
5522# can't, we are probably in trouble. We don't care whether we can run the
5523# executable--we might be using a cross compiler--we only care whether it
5524# can be created. At this point the main configure script has set CC.
5525we_are_ok=no
5526echo "int main () { return 0; }" > conftest.c
5527${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5528if test $? = 0 ; then
5529 if test -s conftest || test -s conftest.exe ; then
5530 we_are_ok=yes
5531 fi
c6b750e1 5532fi
a0da8069
NN
5533case $we_are_ok in
5534 no)
5535 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5536 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5537 rm -f conftest*
5538 exit 1
5539 ;;
5540esac
5541rm -f conftest*
5542
5543# The Solaris /usr/ucb/cc compiler does not appear to work.
5544case "${host}" in
5545 sparc-sun-solaris2*)
5546 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5547 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5548 could_use=
5549 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5550 if test -d /opt/cygnus/bin ; then
5551 if test "$could_use" = "" ; then
5552 could_use="/opt/cygnus/bin"
5553 else
5554 could_use="$could_use or /opt/cygnus/bin"
5555 fi
5556 fi
5557 if test "$could_use" = "" ; then
5558 echo "Warning: compilation may fail because you're using"
5559 echo "/usr/ucb/cc. You should change your PATH or CC "
5560 echo "variable and rerun configure."
5561 else
5562 echo "Warning: compilation may fail because you're using"
5563 echo "/usr/ucb/cc, when you should use the C compiler from"
5564 echo "$could_use. You should change your"
5565 echo "PATH or CC variable and rerun configure."
5566 fi
5567 fi
5568 ;;
5569esac
5570
a0da8069
NN
5571case "${host}" in
5572 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5573 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5574 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5575esac
5576
5577# Record target_configdirs and the configure arguments for target and
5578# build configuration in Makefile.
5579target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5580build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5581
a0da8069
NN
5582# Determine whether gdb needs tk/tcl or not.
5583# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5584# and in that case we want gdb to be built without tk. Ugh!
5585# In fact I believe gdb is the *only* package directly dependent on tk,
5586# so we should be able to put the 'maybe's in unconditionally and
5587# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5588# 100% sure that that's safe though.
c180f501 5589
675c6968 5590gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5591case "$enable_gdbtk" in
5592 no)
5593 GDB_TK="" ;;
c180f501
AC
5594 yes)
5595 GDB_TK="${gdb_tk}" ;;
a0da8069 5596 *)
c180f501
AC
5597 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5598 # distro. Eventually someone will fix this and move Insight, nee
5599 # gdbtk to a separate directory.
5600 if test -d ${srcdir}/gdb/gdbtk ; then
5601 GDB_TK="${gdb_tk}"
5602 else
5603 GDB_TK=""
5604 fi
5605 ;;
a0da8069 5606esac
907be67c
DJ
5607CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5608INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5609
6bd3dfaa 5610# Strip out unwanted targets.
dd12c3a8
NN
5611
5612# While at that, we remove Makefiles if we were started for recursive
5613# configuration, so that the top-level Makefile reconfigures them,
5614# like we used to do when configure itself was recursive.
dd12c3a8 5615
6bd3dfaa
PB
5616# Loop over modules. $extrasub must be used with care, limiting as
5617# much as possible the usage of range addresses. That's because autoconf
5618# splits the sed script to overcome limits in the number of commands,
5619# and relying on carefully-timed sed passes may turn out to be very hard
5620# to maintain later. In this particular case, you just have to be careful
5621# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5622
319cab08
PB
5623# Check whether --enable-bootstrap or --disable-bootstrap was given.
5624if test "${enable_bootstrap+set}" = set; then
5625 enableval="$enable_bootstrap"
c6b750e1 5626
319cab08 5627else
9cb3fa6f 5628 enable_bootstrap=default
c6b750e1 5629fi;
319cab08 5630
9cb3fa6f
PB
5631# Issue errors and warnings for invalid/strange bootstrap combinations.
5632case "$configdirs" in
5633 *gcc*) have_compiler=yes ;;
5634 *) have_compiler=no ;;
5635esac
5636
5637case "$have_compiler:$host:$target:$enable_bootstrap" in
5638 *:*:*:no) ;;
5639
0aed8855 5640 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5641 # and we are in a native configuration.
5642 yes:$build:$build:default)
0aed8855 5643 enable_bootstrap=yes ;;
9cb3fa6f
PB
5644
5645 *:*:*:default)
5646 enable_bootstrap=no ;;
5647
5648 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5649 yes:$build:$build:yes)
9cb3fa6f
PB
5650 ;;
5651
5652 # Other configurations, but we have a compiler. Assume the user knows
5653 # what he's doing.
80911fe1 5654 yes:*:*:yes)
c6b750e1
DJ
5655 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5656echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5657 ;;
5658
5659 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5660 no:*:*:yes)
c6b750e1
DJ
5661 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5662echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5663 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5664
5665 # Fail if wrong command line
5666 *)
c6b750e1
DJ
5667 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5668echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5669 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5670 ;;
5671esac
5672
5673# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5674case "$enable_bootstrap" in
5675 yes)
498d4a71 5676 bootstrap_suffix=bootstrap ;;
319cab08 5677 no)
498d4a71 5678 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5679esac
5680
6a9cf61e 5681for module in ${build_configdirs} ; do
498d4a71
CF
5682 if test -z "${no_recursion}" \
5683 && test -f ${build_subdir}/${module}/Makefile; then
5684 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5685 rm -f ${build_subdir}/${module}/Makefile
5686 fi
5687 extrasub="$extrasub
5688/^@if build-$module\$/d
5689/^@endif build-$module\$/d
5690/^@if build-$module-$bootstrap_suffix\$/d
5691/^@endif build-$module-$bootstrap_suffix\$/d"
5692done
5693for module in ${configdirs} ; do
80911fe1 5694 if test -z "${no_recursion}"; then
8cf39b1b 5695 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5696 if test -f ${file}; then
5697 echo 1>&2 "*** removing ${file} to force reconfigure"
5698 rm -f ${file}
5699 fi
5700 done
498d4a71
CF
5701 fi
5702 extrasub="$extrasub
5703/^@if $module\$/d
5704/^@endif $module\$/d
5705/^@if $module-$bootstrap_suffix\$/d
5706/^@endif $module-$bootstrap_suffix\$/d"
5707done
5708for module in ${target_configdirs} ; do
5709 if test -z "${no_recursion}" \
5710 && test -f ${target_subdir}/${module}/Makefile; then
5711 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5712 rm -f ${target_subdir}/${module}/Makefile
5713 fi
5714 extrasub="$extrasub
5715/^@if target-$module\$/d
5716/^@endif target-$module\$/d
5717/^@if target-$module-$bootstrap_suffix\$/d
5718/^@endif target-$module-$bootstrap_suffix\$/d"
5719done
5720
6bd3dfaa
PB
5721extrasub="$extrasub
5722/^@if /,/^@endif /d"
a0da8069
NN
5723
5724# Create the serialization dependencies. This uses a temporary file.
5725
e6bfb94a
AO
5726# Check whether --enable-serial-configure or --disable-serial-configure was given.
5727if test "${enable_serial_configure+set}" = set; then
5728 enableval="$enable_serial_configure"
e6bfb94a 5729
c6b750e1 5730fi;
e6bfb94a 5731
1047cb91
DD
5732case ${enable_serial_configure} in
5733 yes)
5734 enable_serial_build_configure=yes
5735 enable_serial_host_configure=yes
5736 enable_serial_target_configure=yes
5737 ;;
5738esac
5739
a0da8069
NN
5740# These force 'configure's to be done one at a time, to avoid problems
5741# with contention over a shared config.cache.
5742rm -f serdep.tmp
e6bfb94a 5743echo '# serdep.tmp' > serdep.tmp
a0da8069 5744olditem=
1047cb91 5745test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5746for item in ${build_configdirs} ; do
5747 case ${olditem} in
5748 "") ;;
e6bfb94a 5749 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5750 esac
5751 olditem=${item}
5752done
5753olditem=
1047cb91 5754test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5755for item in ${configdirs} ; do
5756 case ${olditem} in
5757 "") ;;
e6bfb94a 5758 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5759 esac
5760 olditem=${item}
5761done
5762olditem=
1047cb91 5763test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5764for item in ${target_configdirs} ; do
5765 case ${olditem} in
5766 "") ;;
e6bfb94a 5767 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5768 esac
5769 olditem=${item}
5770done
5771serialization_dependencies=serdep.tmp
5772
5773
e6bfb94a 5774# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5775# target, nonopt, and variable assignments. These are the ones we
5776# might not want to pass down to subconfigures. Also strip
5777# program-prefix, program-suffix, and program-transform-name, so that
5778# we can pass down a consistent program-transform-name.
5779baseargs=
5780keep_next=no
5781skip_next=no
5782eval "set -- $ac_configure_args"
18f6b6ee
PB
5783for ac_arg
5784do
c6b750e1
DJ
5785 if test X"$skip_next" = X"yes"; then
5786 skip_next=no
5787 continue
5788 fi
5789 if test X"$keep_next" = X"yes"; then
5790 case $ac_arg in
5791 *\'*)
5792 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5793 esac
5794 baseargs="$baseargs '$ac_arg'"
5795 keep_next=no
5796 continue
5797 fi
5798
5799 # Handle separated arguments. Based on the logic generated by
5800 # autoconf 2.59.
5801 case $ac_arg in
5802 *=* | --config-cache | -C | -disable-* | --disable-* \
5803 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5804 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5805 | -with-* | --with-* | -without-* | --without-* | --x)
5806 separate_arg=no
5807 ;;
5808 -*)
5809 separate_arg=yes
5810 ;;
5811 *)
5812 separate_arg=no
5813 ;;
5814 esac
5815
5816 case "$ac_arg" in
5817 --no*)
5818 continue
5819 ;;
5820 --c* | \
5821 --sr* | \
5822 --ho* | \
5823 --bu* | \
5824 --t* | \
5825 --program-* | \
5826 -cache_file* | \
5827 -srcdir* | \
5828 -host* | \
5829 -build* | \
5830 -target* | \
5831 -program-prefix* | \
5832 -program-suffix* | \
5833 -program-transform-name* )
5834 skip_next=$separate_arg
5835 continue
5836 ;;
5837 -*)
5838 # An option. Add it.
5839 case $ac_arg in
5840 *\'*)
5841 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5842 esac
5843 baseargs="$baseargs '$ac_arg'"
5844 keep_next=$separate_arg
5845 ;;
5846 *)
5847 # Either a variable assignment, or a nonopt (triplet). Don't
5848 # pass it down; let the Makefile handle this.
5849 continue
5850 ;;
5851 esac
5852done
5853# Remove the initial space we just introduced and, as these will be
5854# expanded by make, quote '$'.
5855baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5856
f27d4f92
DJ
5857# Add in --program-transform-name, after --program-prefix and
5858# --program-suffix have been applied to it. Autoconf has already
5859# doubled dollar signs and backslashes in program_transform_name; we want
5860# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5861# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5862# Also, because we want to override the logic in subdir configure scripts to
5863# choose program_transform_name, replace any s,x,x, with s,y,y,.
5864sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5865${program_transform_name}
5866EOF_SED
5867gcc_transform_name=`cat conftestsed.out`
5868rm -f conftestsed.out
5869baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
5870if test "$silent" = yes; then
5871 baseargs="$baseargs --silent"
5872fi
f27d4f92 5873
a0da8069
NN
5874# For the build-side libraries, we just need to pretend we're native,
5875# and not use the same cache file. Multilibs are neither needed nor
5876# desired.
4b900473 5877build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5878
5879# For host modules, accept cache file option, or specification as blank.
5880case "${cache_file}" in
5881"") # empty
5882 cache_file_option="" ;;
5883/* | [A-Za-z]:[\\/]* ) # absolute path
5884 cache_file_option="--cache-file=${cache_file}" ;;
5885*) # relative path
5886 cache_file_option="--cache-file=../${cache_file}" ;;
5887esac
5888
82252c06
NN
5889# Host dirs don't like to share a cache file either, horribly enough.
5890# This seems to be due to autoconf 2.5x stupidity.
4b900473 5891host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5892
5893target_configargs=${baseargs}
5894
5895# Passing a --with-cross-host argument lets the target libraries know
5896# whether they are being built with a cross-compiler or being built
5897# native. However, it would be better to use other mechanisms to make the
5898# sorts of decisions they want to make on this basis. Please consider
5899# this option to be deprecated. FIXME.
5900if test x${is_cross_compiler} = xyes ; then
c6b750e1 5901 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5902fi
5903
5904# Default to --enable-multilib.
5905if test x${enable_multilib} = x ; then
5906 target_configargs="--enable-multilib ${target_configargs}"
5907fi
5908
5909# Pass --with-newlib if appropriate. Note that target_configdirs has
5910# changed from the earlier setting of with_newlib.
5911if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5912 target_configargs="--with-newlib ${target_configargs}"
5913fi
5914
95036d20
NN
5915# Different target subdirs use different values of certain variables
5916# (notably CXX). Worse, multilibs use *lots* of different values.
5917# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5918# it doesn't automatically accept command-line overrides of them.
5919# This means it's not safe for target subdirs to share a cache file,
5920# which is disgusting, but there you have it. Hopefully this can be
5921# fixed in future. It's still worthwhile to use a cache file for each
5922# directory. I think.
5923
ae380b45
MS
5924# Pass the appropriate --build, --host, --target and --cache-file arguments.
5925# We need to pass --target, as newer autoconf's requires consistency
5926# for target_alias and gcc doesn't manage it consistently.
4b900473 5927target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5928
a0da8069
NN
5929FLAGS_FOR_TARGET=
5930case " $target_configdirs " in
5931 *" newlib "*)
5932 case " $target_configargs " in
5933 *" --with-newlib "*)
5934 case "$target" in
5935 *-cygwin*)
564b43e5 5936 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
5937 esac
5938
5939 # If we're not building GCC, don't discard standard headers.
5940 if test -d ${srcdir}/gcc; then
5941 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5942
5943 if test "${build}" != "${host}"; then
5944 # On Canadian crosses, CC_FOR_TARGET will have already been set
5945 # by `configure', so we won't have an opportunity to add -Bgcc/
5946 # to it. This is right: we don't want to search that directory
5947 # for binaries, but we want the header files in there, so add
5948 # them explicitly.
b00612cc 5949 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5950
5951 # Someone might think of using the pre-installed headers on
5952 # Canadian crosses, in case the installed compiler is not fully
5953 # compatible with the compiler being built. In this case, it
5954 # would be better to flag an error than risking having
5955 # incompatible object files being constructed. We can't
5956 # guarantee that an error will be flagged, but let's hope the
5957 # compiler will do it, when presented with incompatible header
5958 # files.
5959 fi
5960 fi
5961
5962 case "${target}-${is_cross_compiler}" in
ec11bdc6 5963 i[3456789]86-*-linux*-no)
a0da8069
NN
5964 # Here host == target, so we don't need to build gcc,
5965 # so we don't want to discard standard headers.
5966 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5967 ;;
5968 *)
5969 # If we're building newlib, use its generic headers last, but search
5970 # for any libc-related directories first (so make it the last -B
5971 # switch).
5972 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
5973
5974 # If we're building libgloss, find the startup file, simulator library
5975 # and linker script.
5976 case " $target_configdirs " in
5977 *" libgloss "*)
5978 # Look for startup file, simulator library and maybe linker script.
5979 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5980 # Look for libnosys.a in case the target needs it.
5981 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5982 # Most targets have the linker script in the source directory.
5983 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5984 ;;
5985 esac
a0da8069
NN
5986 ;;
5987 esac
5988 ;;
5989 esac
5990 ;;
5991esac
45055374
CV
5992case "$target" in
5993*-mingw*)
5994 # Can't be handled as Cygwin above since Mingw does not use newlib.
5995 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' ;;
5996esac
a0da8069 5997
5fbad20a
DD
5998# Allow the user to override the flags for
5999# our build compiler if desired.
c66487f8
NC
6000if test x"${build}" = x"${host}" ; then
6001 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6002 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6003 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6004fi
5fbad20a 6005
a0da8069
NN
6006# On Canadian crosses, we'll be searching the right directories for
6007# the previously-installed cross compiler, so don't bother to add
6008# flags for directories within the install tree of the compiler
6009# being built; programs in there won't even run.
6010if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6011 # Search for pre-installed headers if nothing else fits.
bba45b8b 6012 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
6013fi
6014
6015if test "x${use_gnu_ld}" = x &&
6016 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6017 # Arrange for us to find uninstalled linker scripts.
b00612cc 6018 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
6019fi
6020
a481dbb7
DD
6021# Search for other target-specific linker scripts and such.
6022case "${target}" in
4e206d7e
DB
6023 mep*)
6024 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6025 ;;
6026esac
6027
a0da8069 6028# Makefile fragments.
3e707e94
PB
6029for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6030do
6031 eval fragval=\$$frag
6032 if test $fragval != /dev/null; then
6033 eval $frag=${srcdir}/$fragval
6034 fi
6035done
a0da8069
NN
6036
6037
6038
6039
6040
6041# Miscellanea: directories, flags, etc.
6042
6043
6044
6045
6046
6047
6048
6a9cf61e 6049# Build module lists & subconfigure args.
a0da8069
NN
6050
6051
6052
be01d343
PB
6053# Host module lists & subconfigure args.
6054
6055
6056
6057# Target module lists & subconfigure args.
6058
6059
6060
6061# Build tools.
6062
6063
6064
1576798e
PB
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
be01d343
PB
6079# Generate default definitions for YACC, M4, LEX and other programs that run
6080# on the build machine. These are used if the Makefile can't locate these
6081# programs in objdir.
6082MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6083
6084for ac_prog in 'bison -y' byacc yacc
6085do
c6b750e1 6086 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6087set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6088echo "$as_me:$LINENO: checking for $ac_word" >&5
6089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6090if test "${ac_cv_prog_YACC+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6092else
6093 if test -n "$YACC"; then
6094 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6095else
c6b750e1
DJ
6096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097for as_dir in $PATH
6098do
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6103 ac_cv_prog_YACC="$ac_prog"
6104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 break 2
6106 fi
6107done
6108done
6109
be01d343
PB
6110fi
6111fi
c6b750e1 6112YACC=$ac_cv_prog_YACC
be01d343 6113if test -n "$YACC"; then
c6b750e1
DJ
6114 echo "$as_me:$LINENO: result: $YACC" >&5
6115echo "${ECHO_T}$YACC" >&6
be01d343 6116else
c6b750e1
DJ
6117 echo "$as_me:$LINENO: result: no" >&5
6118echo "${ECHO_T}no" >&6
be01d343
PB
6119fi
6120
c6b750e1 6121 test -n "$YACC" && break
be01d343
PB
6122done
6123test -n "$YACC" || YACC="$MISSING bison -y"
6124
6125case " $build_configdirs " in
6126 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6127 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6128esac
6129
6130for ac_prog in bison
6131do
c6b750e1 6132 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6133set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6134echo "$as_me:$LINENO: checking for $ac_word" >&5
6135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6136if test "${ac_cv_prog_BISON+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6138else
6139 if test -n "$BISON"; then
6140 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6141else
c6b750e1
DJ
6142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143for as_dir in $PATH
6144do
6145 IFS=$as_save_IFS
6146 test -z "$as_dir" && as_dir=.
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6149 ac_cv_prog_BISON="$ac_prog"
6150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 break 2
6152 fi
6153done
6154done
6155
be01d343
PB
6156fi
6157fi
c6b750e1 6158BISON=$ac_cv_prog_BISON
be01d343 6159if test -n "$BISON"; then
c6b750e1
DJ
6160 echo "$as_me:$LINENO: result: $BISON" >&5
6161echo "${ECHO_T}$BISON" >&6
be01d343 6162else
c6b750e1
DJ
6163 echo "$as_me:$LINENO: result: no" >&5
6164echo "${ECHO_T}no" >&6
be01d343
PB
6165fi
6166
c6b750e1 6167 test -n "$BISON" && break
be01d343
PB
6168done
6169test -n "$BISON" || BISON="$MISSING bison"
6170
6171case " $build_configdirs " in
6172 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6173esac
6174
6175for ac_prog in gm4 gnum4 m4
6176do
c6b750e1 6177 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6178set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6179echo "$as_me:$LINENO: checking for $ac_word" >&5
6180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6181if test "${ac_cv_prog_M4+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6183else
6184 if test -n "$M4"; then
6185 ac_cv_prog_M4="$M4" # Let the user override the test.
6186else
c6b750e1
DJ
6187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188for as_dir in $PATH
6189do
6190 IFS=$as_save_IFS
6191 test -z "$as_dir" && as_dir=.
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6194 ac_cv_prog_M4="$ac_prog"
6195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 break 2
6197 fi
6198done
6199done
6200
be01d343
PB
6201fi
6202fi
c6b750e1 6203M4=$ac_cv_prog_M4
be01d343 6204if test -n "$M4"; then
c6b750e1
DJ
6205 echo "$as_me:$LINENO: result: $M4" >&5
6206echo "${ECHO_T}$M4" >&6
be01d343 6207else
c6b750e1
DJ
6208 echo "$as_me:$LINENO: result: no" >&5
6209echo "${ECHO_T}no" >&6
be01d343
PB
6210fi
6211
c6b750e1 6212 test -n "$M4" && break
be01d343
PB
6213done
6214test -n "$M4" || M4="$MISSING m4"
6215
6216case " $build_configdirs " in
6217 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6218esac
6219
6220for ac_prog in flex lex
6221do
c6b750e1 6222 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6223set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6224echo "$as_me:$LINENO: checking for $ac_word" >&5
6225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6226if test "${ac_cv_prog_LEX+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6228else
6229 if test -n "$LEX"; then
6230 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6231else
c6b750e1
DJ
6232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233for as_dir in $PATH
6234do
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6239 ac_cv_prog_LEX="$ac_prog"
6240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 break 2
6242 fi
6243done
6244done
6245
be01d343
PB
6246fi
6247fi
c6b750e1 6248LEX=$ac_cv_prog_LEX
be01d343 6249if test -n "$LEX"; then
c6b750e1
DJ
6250 echo "$as_me:$LINENO: result: $LEX" >&5
6251echo "${ECHO_T}$LEX" >&6
be01d343 6252else
c6b750e1
DJ
6253 echo "$as_me:$LINENO: result: no" >&5
6254echo "${ECHO_T}no" >&6
be01d343
PB
6255fi
6256
c6b750e1 6257 test -n "$LEX" && break
be01d343
PB
6258done
6259test -n "$LEX" || LEX="$MISSING flex"
6260
6261case " $build_configdirs " in
6262 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6263 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6264esac
6265
6266for ac_prog in flex
6267do
c6b750e1 6268 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6269set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6270echo "$as_me:$LINENO: checking for $ac_word" >&5
6271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6272if test "${ac_cv_prog_FLEX+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6274else
6275 if test -n "$FLEX"; then
6276 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6277else
c6b750e1
DJ
6278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279for as_dir in $PATH
6280do
6281 IFS=$as_save_IFS
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6285 ac_cv_prog_FLEX="$ac_prog"
6286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 break 2
6288 fi
6289done
6290done
6291
be01d343
PB
6292fi
6293fi
c6b750e1 6294FLEX=$ac_cv_prog_FLEX
be01d343 6295if test -n "$FLEX"; then
c6b750e1
DJ
6296 echo "$as_me:$LINENO: result: $FLEX" >&5
6297echo "${ECHO_T}$FLEX" >&6
be01d343 6298else
c6b750e1
DJ
6299 echo "$as_me:$LINENO: result: no" >&5
6300echo "${ECHO_T}no" >&6
be01d343
PB
6301fi
6302
c6b750e1 6303 test -n "$FLEX" && break
be01d343
PB
6304done
6305test -n "$FLEX" || FLEX="$MISSING flex"
6306
6307case " $build_configdirs " in
6308 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6309esac
6310
6311for ac_prog in makeinfo
6312do
c6b750e1 6313 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6314set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6315echo "$as_me:$LINENO: checking for $ac_word" >&5
6316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6317if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6319else
6320 if test -n "$MAKEINFO"; then
6321 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6322else
c6b750e1
DJ
6323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324for as_dir in $PATH
6325do
6326 IFS=$as_save_IFS
6327 test -z "$as_dir" && as_dir=.
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6330 ac_cv_prog_MAKEINFO="$ac_prog"
6331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 break 2
6333 fi
6334done
6335done
6336
be01d343
PB
6337fi
6338fi
c6b750e1 6339MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6340if test -n "$MAKEINFO"; then
c6b750e1
DJ
6341 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6342echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6343else
c6b750e1
DJ
6344 echo "$as_me:$LINENO: result: no" >&5
6345echo "${ECHO_T}no" >&6
be01d343
PB
6346fi
6347
c6b750e1 6348 test -n "$MAKEINFO" && break
be01d343
PB
6349done
6350test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6351
6352case " $build_configdirs " in
6353 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6354 *)
6355
625a61cd 6356 # For an installed makeinfo, we require it to be from texinfo 4.6 or
be01d343
PB
6357 # higher, else we use the "missing" dummy.
6358 if ${MAKEINFO} --version \
625a61cd 6359 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
6360 :
6361 else
6362 MAKEINFO="$MISSING makeinfo"
6363 fi
6364 ;;
6365
6366esac
a0da8069 6367
be01d343 6368# FIXME: expect and dejagnu may become build tools?
a0da8069 6369
be01d343
PB
6370for ac_prog in expect
6371do
c6b750e1 6372 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6373set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6374echo "$as_me:$LINENO: checking for $ac_word" >&5
6375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6376if test "${ac_cv_prog_EXPECT+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6378else
6379 if test -n "$EXPECT"; then
6380 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6381else
c6b750e1
DJ
6382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383for as_dir in $PATH
6384do
6385 IFS=$as_save_IFS
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6389 ac_cv_prog_EXPECT="$ac_prog"
6390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 break 2
6392 fi
6393done
6394done
6395
be01d343
PB
6396fi
6397fi
c6b750e1 6398EXPECT=$ac_cv_prog_EXPECT
be01d343 6399if test -n "$EXPECT"; then
c6b750e1
DJ
6400 echo "$as_me:$LINENO: result: $EXPECT" >&5
6401echo "${ECHO_T}$EXPECT" >&6
be01d343 6402else
c6b750e1
DJ
6403 echo "$as_me:$LINENO: result: no" >&5
6404echo "${ECHO_T}no" >&6
be01d343 6405fi
a0da8069 6406
c6b750e1 6407 test -n "$EXPECT" && break
be01d343
PB
6408done
6409test -n "$EXPECT" || EXPECT="expect"
a0da8069 6410
be01d343
PB
6411case " $configdirs " in
6412 *" expect "*)
6413 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6414 ;;
6415esac
a0da8069 6416
be01d343
PB
6417for ac_prog in runtest
6418do
c6b750e1 6419 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6420set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6421echo "$as_me:$LINENO: checking for $ac_word" >&5
6422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6423if test "${ac_cv_prog_RUNTEST+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6425else
6426 if test -n "$RUNTEST"; then
6427 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6428else
c6b750e1
DJ
6429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430for as_dir in $PATH
6431do
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436 ac_cv_prog_RUNTEST="$ac_prog"
6437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 break 2
6439 fi
6440done
6441done
6442
be01d343
PB
6443fi
6444fi
c6b750e1 6445RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6446if test -n "$RUNTEST"; then
c6b750e1
DJ
6447 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6448echo "${ECHO_T}$RUNTEST" >&6
be01d343 6449else
c6b750e1
DJ
6450 echo "$as_me:$LINENO: result: no" >&5
6451echo "${ECHO_T}no" >&6
be01d343 6452fi
a0da8069 6453
c6b750e1 6454 test -n "$RUNTEST" && break
be01d343
PB
6455done
6456test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6457
be01d343
PB
6458case " $configdirs " in
6459 *" dejagnu "*)
6b89cc21 6460 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6461 ;;
6462esac
a0da8069
NN
6463
6464
a0da8069 6465# Host tools.
859789af
AC
6466ncn_tool_prefix=
6467test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6468ncn_target_tool_prefix=
6469test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6470
9a819804
AO
6471
6472
6473if test -n "$AR"; then
6474 ac_cv_prog_AR=$AR
6475elif test -n "$ac_cv_prog_AR"; then
6476 AR=$ac_cv_prog_AR
6477fi
6478
6479if test -n "$ac_cv_prog_AR"; then
6480 for ncn_progname in ar; do
6481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6482set dummy ${ncn_progname}; ac_word=$2
6483echo "$as_me:$LINENO: checking for $ac_word" >&5
6484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6485if test "${ac_cv_prog_AR+set}" = set; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6487else
6488 if test -n "$AR"; then
6489 ac_cv_prog_AR="$AR" # Let the user override the test.
6490else
6491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492for as_dir in $PATH
6493do
6494 IFS=$as_save_IFS
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6498 ac_cv_prog_AR="${ncn_progname}"
6499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 break 2
6501 fi
6502done
6503done
6504
6505fi
6506fi
6507AR=$ac_cv_prog_AR
6508if test -n "$AR"; then
6509 echo "$as_me:$LINENO: result: $AR" >&5
6510echo "${ECHO_T}$AR" >&6
6511else
6512 echo "$as_me:$LINENO: result: no" >&5
6513echo "${ECHO_T}no" >&6
6514fi
6515
6516 done
6517fi
6518
6519for ncn_progname in ar; do
05cbd757
PB
6520 if test -n "$ncn_tool_prefix"; then
6521 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6522set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6523echo "$as_me:$LINENO: checking for $ac_word" >&5
6524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6525if test "${ac_cv_prog_AR+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6527else
6528 if test -n "$AR"; then
6529 ac_cv_prog_AR="$AR" # Let the user override the test.
6530else
c6b750e1
DJ
6531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532for as_dir in $PATH
6533do
6534 IFS=$as_save_IFS
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6538 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 break 2
6541 fi
6542done
6543done
6544
859789af
AC
6545fi
6546fi
c6b750e1 6547AR=$ac_cv_prog_AR
859789af 6548if test -n "$AR"; then
c6b750e1
DJ
6549 echo "$as_me:$LINENO: result: $AR" >&5
6550echo "${ECHO_T}$AR" >&6
859789af 6551else
c6b750e1
DJ
6552 echo "$as_me:$LINENO: result: no" >&5
6553echo "${ECHO_T}no" >&6
859789af
AC
6554fi
6555
05cbd757
PB
6556 fi
6557 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6558 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6559set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6560echo "$as_me:$LINENO: checking for $ac_word" >&5
6561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6562if test "${ac_cv_prog_AR+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6564else
05cbd757
PB
6565 if test -n "$AR"; then
6566 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6567else
c6b750e1
DJ
6568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569for as_dir in $PATH
6570do
6571 IFS=$as_save_IFS
6572 test -z "$as_dir" && as_dir=.
6573 for ac_exec_ext in '' $ac_executable_extensions; do
6574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6575 ac_cv_prog_AR="${ncn_progname}"
6576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 break 2
6578 fi
6579done
6580done
6581
859789af
AC
6582fi
6583fi
c6b750e1 6584AR=$ac_cv_prog_AR
05cbd757 6585if test -n "$AR"; then
c6b750e1
DJ
6586 echo "$as_me:$LINENO: result: $AR" >&5
6587echo "${ECHO_T}$AR" >&6
859789af 6588else
c6b750e1
DJ
6589 echo "$as_me:$LINENO: result: no" >&5
6590echo "${ECHO_T}no" >&6
859789af 6591fi
c6b750e1 6592
05cbd757
PB
6593 fi
6594 test -n "$ac_cv_prog_AR" && break
6595done
6596
6597if test -z "$ac_cv_prog_AR" ; then
6598 set dummy ar
6599 if test $build = $host ; then
6600 AR="$2"
859789af 6601 else
05cbd757 6602 AR="${ncn_tool_prefix}$2"
859789af 6603 fi
859789af
AC
6604fi
6605
9a819804
AO
6606
6607
6608if test -n "$AS"; then
6609 ac_cv_prog_AS=$AS
6610elif test -n "$ac_cv_prog_AS"; then
6611 AS=$ac_cv_prog_AS
6612fi
6613
6614if test -n "$ac_cv_prog_AS"; then
6615 for ncn_progname in as; do
6616 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6617set dummy ${ncn_progname}; ac_word=$2
6618echo "$as_me:$LINENO: checking for $ac_word" >&5
6619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6620if test "${ac_cv_prog_AS+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6622else
6623 if test -n "$AS"; then
6624 ac_cv_prog_AS="$AS" # Let the user override the test.
6625else
6626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627for as_dir in $PATH
6628do
6629 IFS=$as_save_IFS
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6633 ac_cv_prog_AS="${ncn_progname}"
6634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 break 2
6636 fi
6637done
6638done
6639
6640fi
6641fi
6642AS=$ac_cv_prog_AS
6643if test -n "$AS"; then
6644 echo "$as_me:$LINENO: result: $AS" >&5
6645echo "${ECHO_T}$AS" >&6
6646else
6647 echo "$as_me:$LINENO: result: no" >&5
6648echo "${ECHO_T}no" >&6
6649fi
6650
6651 done
6652fi
6653
6654for ncn_progname in as; do
05cbd757
PB
6655 if test -n "$ncn_tool_prefix"; then
6656 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6657set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6658echo "$as_me:$LINENO: checking for $ac_word" >&5
6659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6660if test "${ac_cv_prog_AS+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6662else
6663 if test -n "$AS"; then
6664 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6665else
6666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6673 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6676 fi
6677done
6678done
6679
859789af
AC
6680fi
6681fi
c6b750e1 6682AS=$ac_cv_prog_AS
859789af 6683if test -n "$AS"; then
c6b750e1
DJ
6684 echo "$as_me:$LINENO: result: $AS" >&5
6685echo "${ECHO_T}$AS" >&6
859789af 6686else
c6b750e1
DJ
6687 echo "$as_me:$LINENO: result: no" >&5
6688echo "${ECHO_T}no" >&6
859789af
AC
6689fi
6690
05cbd757
PB
6691 fi
6692 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6693 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6694set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6695echo "$as_me:$LINENO: checking for $ac_word" >&5
6696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6697if test "${ac_cv_prog_AS+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6699else
05cbd757
PB
6700 if test -n "$AS"; then
6701 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6702else
c6b750e1
DJ
6703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704for as_dir in $PATH
6705do
6706 IFS=$as_save_IFS
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6710 ac_cv_prog_AS="${ncn_progname}"
6711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 break 2
6713 fi
6714done
6715done
6716
859789af
AC
6717fi
6718fi
c6b750e1 6719AS=$ac_cv_prog_AS
05cbd757 6720if test -n "$AS"; then
c6b750e1
DJ
6721 echo "$as_me:$LINENO: result: $AS" >&5
6722echo "${ECHO_T}$AS" >&6
859789af 6723else
c6b750e1
DJ
6724 echo "$as_me:$LINENO: result: no" >&5
6725echo "${ECHO_T}no" >&6
859789af 6726fi
c6b750e1 6727
05cbd757
PB
6728 fi
6729 test -n "$ac_cv_prog_AS" && break
6730done
6731
6732if test -z "$ac_cv_prog_AS" ; then
6733 set dummy as
6734 if test $build = $host ; then
6735 AS="$2"
859789af 6736 else
05cbd757 6737 AS="${ncn_tool_prefix}$2"
859789af 6738 fi
859789af
AC
6739fi
6740
9a819804
AO
6741
6742
6743if test -n "$DLLTOOL"; then
6744 ac_cv_prog_DLLTOOL=$DLLTOOL
6745elif test -n "$ac_cv_prog_DLLTOOL"; then
6746 DLLTOOL=$ac_cv_prog_DLLTOOL
6747fi
6748
6749if test -n "$ac_cv_prog_DLLTOOL"; then
6750 for ncn_progname in dlltool; do
6751 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6752set dummy ${ncn_progname}; ac_word=$2
6753echo "$as_me:$LINENO: checking for $ac_word" >&5
6754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6755if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757else
6758 if test -n "$DLLTOOL"; then
6759 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6760else
6761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762for as_dir in $PATH
6763do
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6768 ac_cv_prog_DLLTOOL="${ncn_progname}"
6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6771 fi
6772done
6773done
6774
6775fi
6776fi
6777DLLTOOL=$ac_cv_prog_DLLTOOL
6778if test -n "$DLLTOOL"; then
6779 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6780echo "${ECHO_T}$DLLTOOL" >&6
6781else
6782 echo "$as_me:$LINENO: result: no" >&5
6783echo "${ECHO_T}no" >&6
6784fi
6785
6786 done
6787fi
6788
6789for ncn_progname in dlltool; do
05cbd757
PB
6790 if test -n "$ncn_tool_prefix"; then
6791 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6792set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6793echo "$as_me:$LINENO: checking for $ac_word" >&5
6794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6795if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6797else
6798 if test -n "$DLLTOOL"; then
6799 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6800else
c6b750e1
DJ
6801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802for as_dir in $PATH
6803do
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6811 fi
6812done
6813done
6814
859789af
AC
6815fi
6816fi
c6b750e1 6817DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6818if test -n "$DLLTOOL"; then
c6b750e1
DJ
6819 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6820echo "${ECHO_T}$DLLTOOL" >&6
859789af 6821else
c6b750e1
DJ
6822 echo "$as_me:$LINENO: result: no" >&5
6823echo "${ECHO_T}no" >&6
859789af
AC
6824fi
6825
05cbd757
PB
6826 fi
6827 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6828 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6829set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6830echo "$as_me:$LINENO: checking for $ac_word" >&5
6831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6832if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6834else
05cbd757
PB
6835 if test -n "$DLLTOOL"; then
6836 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6837else
c6b750e1
DJ
6838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839for as_dir in $PATH
6840do
6841 IFS=$as_save_IFS
6842 test -z "$as_dir" && as_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6845 ac_cv_prog_DLLTOOL="${ncn_progname}"
6846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 break 2
6848 fi
6849done
6850done
6851
859789af
AC
6852fi
6853fi
c6b750e1 6854DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6855if test -n "$DLLTOOL"; then
c6b750e1
DJ
6856 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6857echo "${ECHO_T}$DLLTOOL" >&6
859789af 6858else
c6b750e1
DJ
6859 echo "$as_me:$LINENO: result: no" >&5
6860echo "${ECHO_T}no" >&6
859789af 6861fi
c6b750e1 6862
05cbd757
PB
6863 fi
6864 test -n "$ac_cv_prog_DLLTOOL" && break
6865done
6866
6867if test -z "$ac_cv_prog_DLLTOOL" ; then
6868 set dummy dlltool
6869 if test $build = $host ; then
6870 DLLTOOL="$2"
859789af 6871 else
05cbd757 6872 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6873 fi
859789af
AC
6874fi
6875
9a819804
AO
6876
6877
6878if test -n "$LD"; then
6879 ac_cv_prog_LD=$LD
6880elif test -n "$ac_cv_prog_LD"; then
6881 LD=$ac_cv_prog_LD
6882fi
6883
6884if test -n "$ac_cv_prog_LD"; then
6885 for ncn_progname in ld; do
6886 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6887set dummy ${ncn_progname}; ac_word=$2
6888echo "$as_me:$LINENO: checking for $ac_word" >&5
6889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6890if test "${ac_cv_prog_LD+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6892else
6893 if test -n "$LD"; then
6894 ac_cv_prog_LD="$LD" # Let the user override the test.
6895else
6896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897for as_dir in $PATH
6898do
6899 IFS=$as_save_IFS
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6903 ac_cv_prog_LD="${ncn_progname}"
6904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 break 2
6906 fi
6907done
6908done
6909
6910fi
6911fi
6912LD=$ac_cv_prog_LD
6913if test -n "$LD"; then
6914 echo "$as_me:$LINENO: result: $LD" >&5
6915echo "${ECHO_T}$LD" >&6
6916else
6917 echo "$as_me:$LINENO: result: no" >&5
6918echo "${ECHO_T}no" >&6
6919fi
6920
6921 done
6922fi
6923
6924for ncn_progname in ld; do
05cbd757
PB
6925 if test -n "$ncn_tool_prefix"; then
6926 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6927set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6928echo "$as_me:$LINENO: checking for $ac_word" >&5
6929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6930if test "${ac_cv_prog_LD+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6932else
6933 if test -n "$LD"; then
6934 ac_cv_prog_LD="$LD" # Let the user override the test.
6935else
c6b750e1
DJ
6936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937for as_dir in $PATH
6938do
6939 IFS=$as_save_IFS
6940 test -z "$as_dir" && as_dir=.
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6943 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 break 2
6946 fi
6947done
6948done
6949
859789af
AC
6950fi
6951fi
c6b750e1 6952LD=$ac_cv_prog_LD
859789af 6953if test -n "$LD"; then
c6b750e1
DJ
6954 echo "$as_me:$LINENO: result: $LD" >&5
6955echo "${ECHO_T}$LD" >&6
859789af 6956else
c6b750e1
DJ
6957 echo "$as_me:$LINENO: result: no" >&5
6958echo "${ECHO_T}no" >&6
859789af
AC
6959fi
6960
05cbd757
PB
6961 fi
6962 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6963 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6964set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6965echo "$as_me:$LINENO: checking for $ac_word" >&5
6966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6967if test "${ac_cv_prog_LD+set}" = set; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6969else
05cbd757
PB
6970 if test -n "$LD"; then
6971 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6972else
c6b750e1
DJ
6973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974for as_dir in $PATH
6975do
6976 IFS=$as_save_IFS
6977 test -z "$as_dir" && as_dir=.
6978 for ac_exec_ext in '' $ac_executable_extensions; do
6979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6980 ac_cv_prog_LD="${ncn_progname}"
6981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6982 break 2
6983 fi
6984done
6985done
6986
859789af
AC
6987fi
6988fi
c6b750e1 6989LD=$ac_cv_prog_LD
05cbd757 6990if test -n "$LD"; then
c6b750e1
DJ
6991 echo "$as_me:$LINENO: result: $LD" >&5
6992echo "${ECHO_T}$LD" >&6
859789af 6993else
c6b750e1
DJ
6994 echo "$as_me:$LINENO: result: no" >&5
6995echo "${ECHO_T}no" >&6
859789af 6996fi
c6b750e1 6997
05cbd757
PB
6998 fi
6999 test -n "$ac_cv_prog_LD" && break
7000done
7001
7002if test -z "$ac_cv_prog_LD" ; then
7003 set dummy ld
7004 if test $build = $host ; then
7005 LD="$2"
859789af 7006 else
05cbd757 7007 LD="${ncn_tool_prefix}$2"
859789af 7008 fi
859789af
AC
7009fi
7010
9a819804
AO
7011
7012
7013if test -n "$LIPO"; then
7014 ac_cv_prog_LIPO=$LIPO
7015elif test -n "$ac_cv_prog_LIPO"; then
7016 LIPO=$ac_cv_prog_LIPO
7017fi
7018
7019if test -n "$ac_cv_prog_LIPO"; then
7020 for ncn_progname in lipo; do
7021 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7022set dummy ${ncn_progname}; ac_word=$2
7023echo "$as_me:$LINENO: checking for $ac_word" >&5
7024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7025if test "${ac_cv_prog_LIPO+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7027else
7028 if test -n "$LIPO"; then
7029 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7030else
7031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032for as_dir in $PATH
7033do
7034 IFS=$as_save_IFS
7035 test -z "$as_dir" && as_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7038 ac_cv_prog_LIPO="${ncn_progname}"
7039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7040 break 2
7041 fi
7042done
7043done
7044
7045fi
7046fi
7047LIPO=$ac_cv_prog_LIPO
7048if test -n "$LIPO"; then
7049 echo "$as_me:$LINENO: result: $LIPO" >&5
7050echo "${ECHO_T}$LIPO" >&6
7051else
7052 echo "$as_me:$LINENO: result: no" >&5
7053echo "${ECHO_T}no" >&6
7054fi
7055
7056 done
7057fi
7058
7059for ncn_progname in lipo; do
be01d343
PB
7060 if test -n "$ncn_tool_prefix"; then
7061 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7062set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7063echo "$as_me:$LINENO: checking for $ac_word" >&5
7064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7065if test "${ac_cv_prog_LIPO+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7067else
7068 if test -n "$LIPO"; then
7069 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7070else
c6b750e1
DJ
7071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072for as_dir in $PATH
7073do
7074 IFS=$as_save_IFS
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7078 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 break 2
7081 fi
7082done
7083done
7084
be01d343
PB
7085fi
7086fi
c6b750e1 7087LIPO=$ac_cv_prog_LIPO
be01d343 7088if test -n "$LIPO"; then
c6b750e1
DJ
7089 echo "$as_me:$LINENO: result: $LIPO" >&5
7090echo "${ECHO_T}$LIPO" >&6
be01d343 7091else
c6b750e1
DJ
7092 echo "$as_me:$LINENO: result: no" >&5
7093echo "${ECHO_T}no" >&6
be01d343
PB
7094fi
7095
7096 fi
7097 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7098 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7099set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7100echo "$as_me:$LINENO: checking for $ac_word" >&5
7101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7102if test "${ac_cv_prog_LIPO+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7104else
7105 if test -n "$LIPO"; then
7106 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7107else
c6b750e1
DJ
7108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109for as_dir in $PATH
7110do
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7115 ac_cv_prog_LIPO="${ncn_progname}"
7116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7118 fi
7119done
7120done
7121
be01d343
PB
7122fi
7123fi
c6b750e1 7124LIPO=$ac_cv_prog_LIPO
be01d343 7125if test -n "$LIPO"; then
c6b750e1
DJ
7126 echo "$as_me:$LINENO: result: $LIPO" >&5
7127echo "${ECHO_T}$LIPO" >&6
be01d343 7128else
c6b750e1
DJ
7129 echo "$as_me:$LINENO: result: no" >&5
7130echo "${ECHO_T}no" >&6
be01d343 7131fi
c6b750e1 7132
be01d343
PB
7133 fi
7134 test -n "$ac_cv_prog_LIPO" && break
7135done
7136
7137if test -z "$ac_cv_prog_LIPO" ; then
7138 set dummy lipo
7139 if test $build = $host ; then
7140 LIPO="$2"
7141 else
7142 LIPO="${ncn_tool_prefix}$2"
7143 fi
7144fi
7145
9a819804
AO
7146
7147
7148if test -n "$NM"; then
7149 ac_cv_prog_NM=$NM
7150elif test -n "$ac_cv_prog_NM"; then
7151 NM=$ac_cv_prog_NM
7152fi
7153
7154if test -n "$ac_cv_prog_NM"; then
7155 for ncn_progname in nm; do
7156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7157set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7158echo "$as_me:$LINENO: checking for $ac_word" >&5
7159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7160if test "${ac_cv_prog_NM+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7162else
7163 if test -n "$NM"; then
7164 ac_cv_prog_NM="$NM" # Let the user override the test.
7165else
c6b750e1
DJ
7166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167for as_dir in $PATH
7168do
7169 IFS=$as_save_IFS
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7173 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 break 2
7176 fi
7177done
7178done
7179
859789af
AC
7180fi
7181fi
c6b750e1 7182NM=$ac_cv_prog_NM
859789af 7183if test -n "$NM"; then
c6b750e1
DJ
7184 echo "$as_me:$LINENO: result: $NM" >&5
7185echo "${ECHO_T}$NM" >&6
859789af 7186else
c6b750e1
DJ
7187 echo "$as_me:$LINENO: result: no" >&5
7188echo "${ECHO_T}no" >&6
859789af
AC
7189fi
7190
9a819804
AO
7191 done
7192fi
7193
7194for ncn_progname in nm; do
7195 if test -n "$ncn_tool_prefix"; then
7196 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7197set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7198echo "$as_me:$LINENO: checking for $ac_word" >&5
7199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7200if test "${ac_cv_prog_NM+set}" = set; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7202else
05cbd757
PB
7203 if test -n "$NM"; then
7204 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7205else
c6b750e1
DJ
7206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207for as_dir in $PATH
7208do
7209 IFS=$as_save_IFS
7210 test -z "$as_dir" && as_dir=.
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7213 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7215 break 2
7216 fi
7217done
7218done
7219
859789af
AC
7220fi
7221fi
c6b750e1 7222NM=$ac_cv_prog_NM
05cbd757 7223if test -n "$NM"; then
c6b750e1
DJ
7224 echo "$as_me:$LINENO: result: $NM" >&5
7225echo "${ECHO_T}$NM" >&6
859789af 7226else
c6b750e1
DJ
7227 echo "$as_me:$LINENO: result: no" >&5
7228echo "${ECHO_T}no" >&6
859789af 7229fi
c6b750e1 7230
05cbd757 7231 fi
9a819804
AO
7232 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7233 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7234set dummy ${ncn_progname}; ac_word=$2
7235echo "$as_me:$LINENO: checking for $ac_word" >&5
7236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7237if test "${ac_cv_prog_NM+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7239else
7240 if test -n "$NM"; then
7241 ac_cv_prog_NM="$NM" # Let the user override the test.
7242else
7243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244for as_dir in $PATH
7245do
7246 IFS=$as_save_IFS
7247 test -z "$as_dir" && as_dir=.
7248 for ac_exec_ext in '' $ac_executable_extensions; do
7249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7250 ac_cv_prog_NM="${ncn_progname}"
7251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 break 2
7253 fi
7254done
7255done
7256
7257fi
7258fi
7259NM=$ac_cv_prog_NM
7260if test -n "$NM"; then
7261 echo "$as_me:$LINENO: result: $NM" >&5
7262echo "${ECHO_T}$NM" >&6
7263else
7264 echo "$as_me:$LINENO: result: no" >&5
7265echo "${ECHO_T}no" >&6
7266fi
7267
7268 fi
7269 test -n "$ac_cv_prog_NM" && break
7270done
7271
7272if test -z "$ac_cv_prog_NM" ; then
7273 set dummy nm
7274 if test $build = $host ; then
7275 NM="$2"
7276 else
7277 NM="${ncn_tool_prefix}$2"
7278 fi
7279fi
7280
7281
7282
7283if test -n "$RANLIB"; then
7284 ac_cv_prog_RANLIB=$RANLIB
7285elif test -n "$ac_cv_prog_RANLIB"; then
7286 RANLIB=$ac_cv_prog_RANLIB
7287fi
7288
7289if test -n "$ac_cv_prog_RANLIB"; then
7290 for ncn_progname in ranlib; do
7291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7292set dummy ${ncn_progname}; ac_word=$2
7293echo "$as_me:$LINENO: checking for $ac_word" >&5
7294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7295if test "${ac_cv_prog_RANLIB+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7297else
7298 if test -n "$RANLIB"; then
7299 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7300else
7301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302for as_dir in $PATH
7303do
7304 IFS=$as_save_IFS
7305 test -z "$as_dir" && as_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7308 ac_cv_prog_RANLIB="${ncn_progname}"
7309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7310 break 2
7311 fi
7312done
7313done
7314
7315fi
7316fi
7317RANLIB=$ac_cv_prog_RANLIB
7318if test -n "$RANLIB"; then
7319 echo "$as_me:$LINENO: result: $RANLIB" >&5
7320echo "${ECHO_T}$RANLIB" >&6
7321else
7322 echo "$as_me:$LINENO: result: no" >&5
7323echo "${ECHO_T}no" >&6
7324fi
7325
7326 done
7327fi
859789af 7328
9a819804 7329for ncn_progname in ranlib; do
05cbd757
PB
7330 if test -n "$ncn_tool_prefix"; then
7331 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7332set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7333echo "$as_me:$LINENO: checking for $ac_word" >&5
7334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7335if test "${ac_cv_prog_RANLIB+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7337else
7338 if test -n "$RANLIB"; then
7339 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7340else
c6b750e1
DJ
7341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342for as_dir in $PATH
7343do
7344 IFS=$as_save_IFS
7345 test -z "$as_dir" && as_dir=.
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7348 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7350 break 2
7351 fi
7352done
7353done
7354
859789af
AC
7355fi
7356fi
c6b750e1 7357RANLIB=$ac_cv_prog_RANLIB
859789af 7358if test -n "$RANLIB"; then
c6b750e1
DJ
7359 echo "$as_me:$LINENO: result: $RANLIB" >&5
7360echo "${ECHO_T}$RANLIB" >&6
859789af 7361else
c6b750e1
DJ
7362 echo "$as_me:$LINENO: result: no" >&5
7363echo "${ECHO_T}no" >&6
859789af
AC
7364fi
7365
05cbd757
PB
7366 fi
7367 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7369set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7370echo "$as_me:$LINENO: checking for $ac_word" >&5
7371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7372if test "${ac_cv_prog_RANLIB+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7374else
05cbd757
PB
7375 if test -n "$RANLIB"; then
7376 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7377else
c6b750e1
DJ
7378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379for as_dir in $PATH
7380do
7381 IFS=$as_save_IFS
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385 ac_cv_prog_RANLIB="${ncn_progname}"
7386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 break 2
7388 fi
7389done
7390done
7391
859789af
AC
7392fi
7393fi
c6b750e1 7394RANLIB=$ac_cv_prog_RANLIB
05cbd757 7395if test -n "$RANLIB"; then
c6b750e1
DJ
7396 echo "$as_me:$LINENO: result: $RANLIB" >&5
7397echo "${ECHO_T}$RANLIB" >&6
859789af 7398else
c6b750e1
DJ
7399 echo "$as_me:$LINENO: result: no" >&5
7400echo "${ECHO_T}no" >&6
859789af 7401fi
c6b750e1 7402
859789af 7403 fi
05cbd757
PB
7404 test -n "$ac_cv_prog_RANLIB" && break
7405done
7406
7407if test -z "$ac_cv_prog_RANLIB" ; then
7408 RANLIB=":"
859789af
AC
7409fi
7410
9a819804
AO
7411
7412
7413if test -n "$STRIP"; then
7414 ac_cv_prog_STRIP=$STRIP
7415elif test -n "$ac_cv_prog_STRIP"; then
7416 STRIP=$ac_cv_prog_STRIP
7417fi
7418
7419if test -n "$ac_cv_prog_STRIP"; then
7420 for ncn_progname in strip; do
7421 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7422set dummy ${ncn_progname}; ac_word=$2
7423echo "$as_me:$LINENO: checking for $ac_word" >&5
7424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7425if test "${ac_cv_prog_STRIP+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7427else
7428 if test -n "$STRIP"; then
7429 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7430else
7431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432for as_dir in $PATH
7433do
7434 IFS=$as_save_IFS
7435 test -z "$as_dir" && as_dir=.
7436 for ac_exec_ext in '' $ac_executable_extensions; do
7437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7438 ac_cv_prog_STRIP="${ncn_progname}"
7439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 break 2
7441 fi
7442done
7443done
7444
7445fi
7446fi
7447STRIP=$ac_cv_prog_STRIP
7448if test -n "$STRIP"; then
7449 echo "$as_me:$LINENO: result: $STRIP" >&5
7450echo "${ECHO_T}$STRIP" >&6
7451else
7452 echo "$as_me:$LINENO: result: no" >&5
7453echo "${ECHO_T}no" >&6
7454fi
7455
7456 done
7457fi
7458
7459for ncn_progname in strip; do
be01d343
PB
7460 if test -n "$ncn_tool_prefix"; then
7461 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7462set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7463echo "$as_me:$LINENO: checking for $ac_word" >&5
7464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7465if test "${ac_cv_prog_STRIP+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7467else
7468 if test -n "$STRIP"; then
7469 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7470else
c6b750e1
DJ
7471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472for as_dir in $PATH
7473do
7474 IFS=$as_save_IFS
7475 test -z "$as_dir" && as_dir=.
7476 for ac_exec_ext in '' $ac_executable_extensions; do
7477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7478 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 break 2
7481 fi
7482done
7483done
7484
be01d343
PB
7485fi
7486fi
c6b750e1 7487STRIP=$ac_cv_prog_STRIP
be01d343 7488if test -n "$STRIP"; then
c6b750e1
DJ
7489 echo "$as_me:$LINENO: result: $STRIP" >&5
7490echo "${ECHO_T}$STRIP" >&6
be01d343 7491else
c6b750e1
DJ
7492 echo "$as_me:$LINENO: result: no" >&5
7493echo "${ECHO_T}no" >&6
be01d343
PB
7494fi
7495
7496 fi
7497 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7498 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7499set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7500echo "$as_me:$LINENO: checking for $ac_word" >&5
7501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7502if test "${ac_cv_prog_STRIP+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7504else
7505 if test -n "$STRIP"; then
7506 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7507else
c6b750e1
DJ
7508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509for as_dir in $PATH
7510do
7511 IFS=$as_save_IFS
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7515 ac_cv_prog_STRIP="${ncn_progname}"
7516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 break 2
7518 fi
7519done
7520done
7521
be01d343
PB
7522fi
7523fi
c6b750e1 7524STRIP=$ac_cv_prog_STRIP
be01d343 7525if test -n "$STRIP"; then
c6b750e1
DJ
7526 echo "$as_me:$LINENO: result: $STRIP" >&5
7527echo "${ECHO_T}$STRIP" >&6
be01d343 7528else
c6b750e1
DJ
7529 echo "$as_me:$LINENO: result: no" >&5
7530echo "${ECHO_T}no" >&6
be01d343 7531fi
c6b750e1 7532
be01d343
PB
7533 fi
7534 test -n "$ac_cv_prog_STRIP" && break
7535done
7536
7537if test -z "$ac_cv_prog_STRIP" ; then
7538 STRIP=":"
7539fi
7540
9a819804
AO
7541
7542
7543if test -n "$WINDRES"; then
7544 ac_cv_prog_WINDRES=$WINDRES
7545elif test -n "$ac_cv_prog_WINDRES"; then
7546 WINDRES=$ac_cv_prog_WINDRES
7547fi
7548
7549if test -n "$ac_cv_prog_WINDRES"; then
7550 for ncn_progname in windres; do
7551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7552set dummy ${ncn_progname}; ac_word=$2
7553echo "$as_me:$LINENO: checking for $ac_word" >&5
7554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7555if test "${ac_cv_prog_WINDRES+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7557else
7558 if test -n "$WINDRES"; then
7559 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7560else
7561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562for as_dir in $PATH
7563do
7564 IFS=$as_save_IFS
7565 test -z "$as_dir" && as_dir=.
7566 for ac_exec_ext in '' $ac_executable_extensions; do
7567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7568 ac_cv_prog_WINDRES="${ncn_progname}"
7569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570 break 2
7571 fi
7572done
7573done
7574
7575fi
7576fi
7577WINDRES=$ac_cv_prog_WINDRES
7578if test -n "$WINDRES"; then
7579 echo "$as_me:$LINENO: result: $WINDRES" >&5
7580echo "${ECHO_T}$WINDRES" >&6
7581else
7582 echo "$as_me:$LINENO: result: no" >&5
7583echo "${ECHO_T}no" >&6
7584fi
7585
7586 done
7587fi
7588
7589for ncn_progname in windres; do
05cbd757
PB
7590 if test -n "$ncn_tool_prefix"; then
7591 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7592set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7593echo "$as_me:$LINENO: checking for $ac_word" >&5
7594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7595if test "${ac_cv_prog_WINDRES+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7597else
7598 if test -n "$WINDRES"; then
7599 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7600else
c6b750e1
DJ
7601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602for as_dir in $PATH
7603do
7604 IFS=$as_save_IFS
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7608 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 break 2
7611 fi
7612done
7613done
7614
859789af
AC
7615fi
7616fi
c6b750e1 7617WINDRES=$ac_cv_prog_WINDRES
859789af 7618if test -n "$WINDRES"; then
c6b750e1
DJ
7619 echo "$as_me:$LINENO: result: $WINDRES" >&5
7620echo "${ECHO_T}$WINDRES" >&6
859789af 7621else
c6b750e1
DJ
7622 echo "$as_me:$LINENO: result: no" >&5
7623echo "${ECHO_T}no" >&6
859789af
AC
7624fi
7625
05cbd757
PB
7626 fi
7627 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7628 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7629set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7630echo "$as_me:$LINENO: checking for $ac_word" >&5
7631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7632if test "${ac_cv_prog_WINDRES+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7634else
05cbd757
PB
7635 if test -n "$WINDRES"; then
7636 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7637else
c6b750e1
DJ
7638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639for as_dir in $PATH
7640do
7641 IFS=$as_save_IFS
7642 test -z "$as_dir" && as_dir=.
7643 for ac_exec_ext in '' $ac_executable_extensions; do
7644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7645 ac_cv_prog_WINDRES="${ncn_progname}"
7646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7647 break 2
7648 fi
7649done
7650done
7651
859789af
AC
7652fi
7653fi
c6b750e1 7654WINDRES=$ac_cv_prog_WINDRES
05cbd757 7655if test -n "$WINDRES"; then
c6b750e1
DJ
7656 echo "$as_me:$LINENO: result: $WINDRES" >&5
7657echo "${ECHO_T}$WINDRES" >&6
859789af 7658else
c6b750e1
DJ
7659 echo "$as_me:$LINENO: result: no" >&5
7660echo "${ECHO_T}no" >&6
859789af 7661fi
c6b750e1 7662
05cbd757
PB
7663 fi
7664 test -n "$ac_cv_prog_WINDRES" && break
7665done
7666
7667if test -z "$ac_cv_prog_WINDRES" ; then
7668 set dummy windres
7669 if test $build = $host ; then
7670 WINDRES="$2"
859789af 7671 else
05cbd757 7672 WINDRES="${ncn_tool_prefix}$2"
859789af 7673 fi
859789af
AC
7674fi
7675
9a819804
AO
7676
7677
0c24b341
NC
7678if test -n "$WINDMC"; then
7679 ac_cv_prog_WINDMC=$WINDMC
7680elif test -n "$ac_cv_prog_WINDMC"; then
7681 WINDMC=$ac_cv_prog_WINDMC
7682fi
7683
7684if test -n "$ac_cv_prog_WINDMC"; then
7685 for ncn_progname in windmc; do
7686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7687set dummy ${ncn_progname}; ac_word=$2
7688echo "$as_me:$LINENO: checking for $ac_word" >&5
7689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7690if test "${ac_cv_prog_WINDMC+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7692else
7693 if test -n "$WINDMC"; then
7694 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7695else
7696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697for as_dir in $PATH
7698do
7699 IFS=$as_save_IFS
7700 test -z "$as_dir" && as_dir=.
7701 for ac_exec_ext in '' $ac_executable_extensions; do
7702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7703 ac_cv_prog_WINDMC="${ncn_progname}"
7704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7705 break 2
7706 fi
7707done
7708done
7709
7710fi
7711fi
7712WINDMC=$ac_cv_prog_WINDMC
7713if test -n "$WINDMC"; then
7714 echo "$as_me:$LINENO: result: $WINDMC" >&5
7715echo "${ECHO_T}$WINDMC" >&6
7716else
7717 echo "$as_me:$LINENO: result: no" >&5
7718echo "${ECHO_T}no" >&6
7719fi
7720
7721 done
7722fi
7723
7724for ncn_progname in windmc; do
7725 if test -n "$ncn_tool_prefix"; then
7726 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7727set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7728echo "$as_me:$LINENO: checking for $ac_word" >&5
7729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7730if test "${ac_cv_prog_WINDMC+set}" = set; then
7731 echo $ECHO_N "(cached) $ECHO_C" >&6
7732else
7733 if test -n "$WINDMC"; then
7734 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7735else
7736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737for as_dir in $PATH
7738do
7739 IFS=$as_save_IFS
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 break 2
7746 fi
7747done
7748done
7749
7750fi
7751fi
7752WINDMC=$ac_cv_prog_WINDMC
7753if test -n "$WINDMC"; then
7754 echo "$as_me:$LINENO: result: $WINDMC" >&5
7755echo "${ECHO_T}$WINDMC" >&6
7756else
7757 echo "$as_me:$LINENO: result: no" >&5
7758echo "${ECHO_T}no" >&6
7759fi
7760
7761 fi
7762 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7764set dummy ${ncn_progname}; ac_word=$2
7765echo "$as_me:$LINENO: checking for $ac_word" >&5
7766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7767if test "${ac_cv_prog_WINDMC+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7769else
7770 if test -n "$WINDMC"; then
7771 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7772else
7773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774for as_dir in $PATH
7775do
7776 IFS=$as_save_IFS
7777 test -z "$as_dir" && as_dir=.
7778 for ac_exec_ext in '' $ac_executable_extensions; do
7779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7780 ac_cv_prog_WINDMC="${ncn_progname}"
7781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7782 break 2
7783 fi
7784done
7785done
7786
7787fi
7788fi
7789WINDMC=$ac_cv_prog_WINDMC
7790if test -n "$WINDMC"; then
7791 echo "$as_me:$LINENO: result: $WINDMC" >&5
7792echo "${ECHO_T}$WINDMC" >&6
7793else
7794 echo "$as_me:$LINENO: result: no" >&5
7795echo "${ECHO_T}no" >&6
7796fi
7797
7798 fi
7799 test -n "$ac_cv_prog_WINDMC" && break
7800done
7801
7802if test -z "$ac_cv_prog_WINDMC" ; then
7803 set dummy windmc
7804 if test $build = $host ; then
7805 WINDMC="$2"
7806 else
7807 WINDMC="${ncn_tool_prefix}$2"
7808 fi
7809fi
7810
7811
7812
9a819804
AO
7813if test -n "$OBJCOPY"; then
7814 ac_cv_prog_OBJCOPY=$OBJCOPY
7815elif test -n "$ac_cv_prog_OBJCOPY"; then
7816 OBJCOPY=$ac_cv_prog_OBJCOPY
7817fi
7818
7819if test -n "$ac_cv_prog_OBJCOPY"; then
7820 for ncn_progname in objcopy; do
7821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7822set dummy ${ncn_progname}; ac_word=$2
7823echo "$as_me:$LINENO: checking for $ac_word" >&5
7824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7825if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7827else
7828 if test -n "$OBJCOPY"; then
7829 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7830else
7831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832for as_dir in $PATH
7833do
7834 IFS=$as_save_IFS
7835 test -z "$as_dir" && as_dir=.
7836 for ac_exec_ext in '' $ac_executable_extensions; do
7837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7838 ac_cv_prog_OBJCOPY="${ncn_progname}"
7839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7840 break 2
7841 fi
7842done
7843done
7844
7845fi
7846fi
7847OBJCOPY=$ac_cv_prog_OBJCOPY
7848if test -n "$OBJCOPY"; then
7849 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7850echo "${ECHO_T}$OBJCOPY" >&6
7851else
7852 echo "$as_me:$LINENO: result: no" >&5
7853echo "${ECHO_T}no" >&6
7854fi
7855
7856 done
7857fi
7858
7859for ncn_progname in objcopy; do
05cbd757
PB
7860 if test -n "$ncn_tool_prefix"; then
7861 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7862set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7863echo "$as_me:$LINENO: checking for $ac_word" >&5
7864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7865if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7867else
7868 if test -n "$OBJCOPY"; then
7869 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7870else
c6b750e1
DJ
7871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872for as_dir in $PATH
7873do
7874 IFS=$as_save_IFS
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7878 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 break 2
7881 fi
7882done
7883done
7884
859789af
AC
7885fi
7886fi
c6b750e1 7887OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7888if test -n "$OBJCOPY"; then
c6b750e1
DJ
7889 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7890echo "${ECHO_T}$OBJCOPY" >&6
859789af 7891else
c6b750e1
DJ
7892 echo "$as_me:$LINENO: result: no" >&5
7893echo "${ECHO_T}no" >&6
859789af
AC
7894fi
7895
05cbd757
PB
7896 fi
7897 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7898 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7899set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7900echo "$as_me:$LINENO: checking for $ac_word" >&5
7901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7902if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7904else
05cbd757
PB
7905 if test -n "$OBJCOPY"; then
7906 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7907else
c6b750e1
DJ
7908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909for as_dir in $PATH
7910do
7911 IFS=$as_save_IFS
7912 test -z "$as_dir" && as_dir=.
7913 for ac_exec_ext in '' $ac_executable_extensions; do
7914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7915 ac_cv_prog_OBJCOPY="${ncn_progname}"
7916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7917 break 2
7918 fi
7919done
7920done
7921
859789af
AC
7922fi
7923fi
c6b750e1 7924OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7925if test -n "$OBJCOPY"; then
c6b750e1
DJ
7926 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7927echo "${ECHO_T}$OBJCOPY" >&6
859789af 7928else
c6b750e1
DJ
7929 echo "$as_me:$LINENO: result: no" >&5
7930echo "${ECHO_T}no" >&6
859789af 7931fi
c6b750e1 7932
05cbd757
PB
7933 fi
7934 test -n "$ac_cv_prog_OBJCOPY" && break
7935done
7936
7937if test -z "$ac_cv_prog_OBJCOPY" ; then
7938 set dummy objcopy
7939 if test $build = $host ; then
7940 OBJCOPY="$2"
859789af 7941 else
05cbd757 7942 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7943 fi
859789af
AC
7944fi
7945
9a819804
AO
7946
7947
7948if test -n "$OBJDUMP"; then
7949 ac_cv_prog_OBJDUMP=$OBJDUMP
7950elif test -n "$ac_cv_prog_OBJDUMP"; then
7951 OBJDUMP=$ac_cv_prog_OBJDUMP
7952fi
7953
7954if test -n "$ac_cv_prog_OBJDUMP"; then
7955 for ncn_progname in objdump; do
7956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7957set dummy ${ncn_progname}; ac_word=$2
7958echo "$as_me:$LINENO: checking for $ac_word" >&5
7959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7960if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7962else
7963 if test -n "$OBJDUMP"; then
7964 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7965else
7966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967for as_dir in $PATH
7968do
7969 IFS=$as_save_IFS
7970 test -z "$as_dir" && as_dir=.
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7973 ac_cv_prog_OBJDUMP="${ncn_progname}"
7974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 break 2
7976 fi
7977done
7978done
7979
7980fi
7981fi
7982OBJDUMP=$ac_cv_prog_OBJDUMP
7983if test -n "$OBJDUMP"; then
7984 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7985echo "${ECHO_T}$OBJDUMP" >&6
7986else
7987 echo "$as_me:$LINENO: result: no" >&5
7988echo "${ECHO_T}no" >&6
7989fi
7990
7991 done
7992fi
7993
7994for ncn_progname in objdump; do
05cbd757
PB
7995 if test -n "$ncn_tool_prefix"; then
7996 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7997set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7998echo "$as_me:$LINENO: checking for $ac_word" >&5
7999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8000if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
8002else
8003 if test -n "$OBJDUMP"; then
8004 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8005else
c6b750e1
DJ
8006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007for as_dir in $PATH
8008do
8009 IFS=$as_save_IFS
8010 test -z "$as_dir" && as_dir=.
8011 for ac_exec_ext in '' $ac_executable_extensions; do
8012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8013 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8015 break 2
8016 fi
8017done
8018done
8019
859789af
AC
8020fi
8021fi
c6b750e1 8022OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 8023if test -n "$OBJDUMP"; then
c6b750e1
DJ
8024 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8025echo "${ECHO_T}$OBJDUMP" >&6
859789af 8026else
c6b750e1
DJ
8027 echo "$as_me:$LINENO: result: no" >&5
8028echo "${ECHO_T}no" >&6
859789af
AC
8029fi
8030
05cbd757
PB
8031 fi
8032 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8033 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8034set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8035echo "$as_me:$LINENO: checking for $ac_word" >&5
8036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8037if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8039else
05cbd757
PB
8040 if test -n "$OBJDUMP"; then
8041 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 8042else
c6b750e1
DJ
8043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044for as_dir in $PATH
8045do
8046 IFS=$as_save_IFS
8047 test -z "$as_dir" && as_dir=.
8048 for ac_exec_ext in '' $ac_executable_extensions; do
8049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8050 ac_cv_prog_OBJDUMP="${ncn_progname}"
8051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8052 break 2
8053 fi
8054done
8055done
8056
859789af
AC
8057fi
8058fi
c6b750e1 8059OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 8060if test -n "$OBJDUMP"; then
c6b750e1
DJ
8061 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8062echo "${ECHO_T}$OBJDUMP" >&6
859789af 8063else
c6b750e1
DJ
8064 echo "$as_me:$LINENO: result: no" >&5
8065echo "${ECHO_T}no" >&6
859789af 8066fi
c6b750e1 8067
05cbd757
PB
8068 fi
8069 test -n "$ac_cv_prog_OBJDUMP" && break
8070done
8071
8072if test -z "$ac_cv_prog_OBJDUMP" ; then
8073 set dummy objdump
8074 if test $build = $host ; then
8075 OBJDUMP="$2"
859789af 8076 else
05cbd757 8077 OBJDUMP="${ncn_tool_prefix}$2"
859789af 8078 fi
859789af
AC
8079fi
8080
a0da8069
NN
8081
8082
8083
8084
8085
be01d343 8086# Target tools.
c6b750e1 8087
2429c060
PB
8088# Check whether --with-build-time-tools or --without-build-time-tools was given.
8089if test "${with_build_time_tools+set}" = set; then
8090 withval="$with_build_time_tools"
8091 case x"$withval" in
8092 x/*) ;;
8093 *)
8094 with_build_time_tools=
c6b750e1
DJ
8095 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8096echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
8097 ;;
8098 esac
859789af 8099else
2429c060 8100 with_build_time_tools=
c6b750e1 8101fi;
859789af 8102
9a819804
AO
8103
8104
8105if test -n "$CC_FOR_TARGET"; then
8106 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8107elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8108 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8109fi
8110
8111if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8112 for ncn_progname in cc gcc; do
8113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8114set dummy ${ncn_progname}; ac_word=$2
8115echo "$as_me:$LINENO: checking for $ac_word" >&5
8116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8117if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8119else
8120 if test -n "$CC_FOR_TARGET"; then
8121 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8122else
8123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124for as_dir in $PATH
8125do
8126 IFS=$as_save_IFS
8127 test -z "$as_dir" && as_dir=.
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8130 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8132 break 2
8133 fi
8134done
8135done
8136
8137fi
8138fi
8139CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8140if test -n "$CC_FOR_TARGET"; then
8141 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8142echo "${ECHO_T}$CC_FOR_TARGET" >&6
8143else
8144 echo "$as_me:$LINENO: result: no" >&5
8145echo "${ECHO_T}no" >&6
8146fi
8147
8148 done
8149fi
8150
8151if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8152 for ncn_progname in cc gcc; do
c6b750e1
DJ
8153 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8154echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8155 if test -x $with_build_time_tools/${ncn_progname}; then
8156 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8157 echo "$as_me:$LINENO: result: yes" >&5
8158echo "${ECHO_T}yes" >&6
cac3d6c4 8159 break
2429c060 8160 else
c6b750e1
DJ
8161 echo "$as_me:$LINENO: result: no" >&5
8162echo "${ECHO_T}no" >&6
cac3d6c4
CM
8163 fi
8164 done
55db4b87
PB
8165fi
8166
2429c060
PB
8167if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8168 for ncn_progname in cc gcc; do
8169 if test -n "$ncn_target_tool_prefix"; then
8170 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8171set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8172echo "$as_me:$LINENO: checking for $ac_word" >&5
8173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8174if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8176else
8177 if test -n "$CC_FOR_TARGET"; then
8178 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8179else
c6b750e1
DJ
8180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181for as_dir in $PATH
8182do
8183 IFS=$as_save_IFS
8184 test -z "$as_dir" && as_dir=.
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8187 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 break 2
8190 fi
8191done
8192done
8193
55db4b87
PB
8194fi
8195fi
c6b750e1 8196CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8197if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8198 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8199echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8200else
c6b750e1
DJ
8201 echo "$as_me:$LINENO: result: no" >&5
8202echo "${ECHO_T}no" >&6
55db4b87
PB
8203fi
8204
2429c060
PB
8205 fi
8206 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8208set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8209echo "$as_me:$LINENO: checking for $ac_word" >&5
8210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8211if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8213else
05cbd757
PB
8214 if test -n "$CC_FOR_TARGET"; then
8215 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8216else
c6b750e1
DJ
8217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218for as_dir in $PATH
8219do
8220 IFS=$as_save_IFS
8221 test -z "$as_dir" && as_dir=.
8222 for ac_exec_ext in '' $ac_executable_extensions; do
8223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8224 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8226 break 2
8227 fi
8228done
8229done
8230
55db4b87
PB
8231fi
8232fi
c6b750e1 8233CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8234if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8235 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8236echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8237else
c6b750e1
DJ
8238 echo "$as_me:$LINENO: result: no" >&5
8239echo "${ECHO_T}no" >&6
55db4b87 8240fi
c6b750e1 8241
2429c060
PB
8242 fi
8243 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8244 done
8245fi
c6b750e1 8246
05cbd757
PB
8247if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8248 set dummy cc gcc
8249 if test $build = $target ; then
8250 CC_FOR_TARGET="$2"
55db4b87 8251 else
05cbd757 8252 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8253 fi
d3f5afc4
MS
8254else
8255 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8256fi
8257
9a819804
AO
8258
8259
8260if test -n "$CXX_FOR_TARGET"; then
8261 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8262elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8263 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8264fi
8265
8266if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8267 for ncn_progname in c++ g++ cxx gxx; do
8268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8269set dummy ${ncn_progname}; ac_word=$2
8270echo "$as_me:$LINENO: checking for $ac_word" >&5
8271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8272if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8274else
8275 if test -n "$CXX_FOR_TARGET"; then
8276 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8277else
8278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279for as_dir in $PATH
8280do
8281 IFS=$as_save_IFS
8282 test -z "$as_dir" && as_dir=.
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8285 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8287 break 2
8288 fi
8289done
8290done
8291
8292fi
8293fi
8294CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8295if test -n "$CXX_FOR_TARGET"; then
8296 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8297echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8298else
8299 echo "$as_me:$LINENO: result: no" >&5
8300echo "${ECHO_T}no" >&6
8301fi
8302
8303 done
8304fi
8305
8306if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8307 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8308 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8309echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8310 if test -x $with_build_time_tools/${ncn_progname}; then
8311 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8312 echo "$as_me:$LINENO: result: yes" >&5
8313echo "${ECHO_T}yes" >&6
2429c060
PB
8314 break
8315 else
c6b750e1
DJ
8316 echo "$as_me:$LINENO: result: no" >&5
8317echo "${ECHO_T}no" >&6
2429c060
PB
8318 fi
8319 done
8320fi
8321
8322if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8323 for ncn_progname in c++ g++ cxx gxx; do
8324 if test -n "$ncn_target_tool_prefix"; then
8325 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8326set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8327echo "$as_me:$LINENO: checking for $ac_word" >&5
8328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8329if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8330 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8331else
8332 if test -n "$CXX_FOR_TARGET"; then
8333 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8334else
c6b750e1
DJ
8335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336for as_dir in $PATH
8337do
8338 IFS=$as_save_IFS
8339 test -z "$as_dir" && as_dir=.
8340 for ac_exec_ext in '' $ac_executable_extensions; do
8341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8342 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8344 break 2
8345 fi
8346done
8347done
8348
55db4b87
PB
8349fi
8350fi
c6b750e1 8351CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8352if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8353 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8354echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8355else
c6b750e1
DJ
8356 echo "$as_me:$LINENO: result: no" >&5
8357echo "${ECHO_T}no" >&6
55db4b87
PB
8358fi
8359
2429c060
PB
8360 fi
8361 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8362 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8363set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8364echo "$as_me:$LINENO: checking for $ac_word" >&5
8365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8366if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8368else
05cbd757
PB
8369 if test -n "$CXX_FOR_TARGET"; then
8370 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8371else
c6b750e1
DJ
8372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373for as_dir in $PATH
8374do
8375 IFS=$as_save_IFS
8376 test -z "$as_dir" && as_dir=.
8377 for ac_exec_ext in '' $ac_executable_extensions; do
8378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8379 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8381 break 2
8382 fi
8383done
8384done
8385
55db4b87
PB
8386fi
8387fi
c6b750e1 8388CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8389if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8390 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8391echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8392else
c6b750e1
DJ
8393 echo "$as_me:$LINENO: result: no" >&5
8394echo "${ECHO_T}no" >&6
55db4b87 8395fi
c6b750e1 8396
2429c060
PB
8397 fi
8398 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8399 done
8400fi
c6b750e1 8401
05cbd757
PB
8402if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8403 set dummy c++ g++ cxx gxx
8404 if test $build = $target ; then
8405 CXX_FOR_TARGET="$2"
55db4b87 8406 else
05cbd757 8407 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8408 fi
d3f5afc4
MS
8409else
8410 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8411fi
8412
9a819804
AO
8413
8414
8415if test -n "$GCC_FOR_TARGET"; then
8416 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8417elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8418 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8419fi
8420
8421if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8422 for ncn_progname in gcc; do
8423 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8424set dummy ${ncn_progname}; ac_word=$2
8425echo "$as_me:$LINENO: checking for $ac_word" >&5
8426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8427if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8429else
8430 if test -n "$GCC_FOR_TARGET"; then
8431 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8432else
8433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434for as_dir in $PATH
8435do
8436 IFS=$as_save_IFS
8437 test -z "$as_dir" && as_dir=.
8438 for ac_exec_ext in '' $ac_executable_extensions; do
8439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8440 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8442 break 2
8443 fi
8444done
8445done
8446
8447fi
8448fi
8449GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8450if test -n "$GCC_FOR_TARGET"; then
8451 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8452echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8453else
8454 echo "$as_me:$LINENO: result: no" >&5
8455echo "${ECHO_T}no" >&6
8456fi
8457
8458 done
8459fi
8460
8461if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8462 for ncn_progname in gcc; do
c6b750e1
DJ
8463 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8464echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8465 if test -x $with_build_time_tools/${ncn_progname}; then
8466 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8467 echo "$as_me:$LINENO: result: yes" >&5
8468echo "${ECHO_T}yes" >&6
2429c060
PB
8469 break
8470 else
c6b750e1
DJ
8471 echo "$as_me:$LINENO: result: no" >&5
8472echo "${ECHO_T}no" >&6
2429c060
PB
8473 fi
8474 done
8475fi
8476
8477if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8478 for ncn_progname in gcc; do
8479 if test -n "$ncn_target_tool_prefix"; then
8480 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8481set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8482echo "$as_me:$LINENO: checking for $ac_word" >&5
8483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8484if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8485 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8486else
2429c060
PB
8487 if test -n "$GCC_FOR_TARGET"; then
8488 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8489else
c6b750e1
DJ
8490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8491for as_dir in $PATH
8492do
8493 IFS=$as_save_IFS
8494 test -z "$as_dir" && as_dir=.
8495 for ac_exec_ext in '' $ac_executable_extensions; do
8496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8497 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8499 break 2
8500 fi
8501done
8502done
8503
55db4b87
PB
8504fi
8505fi
c6b750e1 8506GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8507if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8508 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8509echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8510else
c6b750e1
DJ
8511 echo "$as_me:$LINENO: result: no" >&5
8512echo "${ECHO_T}no" >&6
55db4b87
PB
8513fi
8514
2429c060
PB
8515 fi
8516 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8518set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8519echo "$as_me:$LINENO: checking for $ac_word" >&5
8520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8521if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8523else
05cbd757
PB
8524 if test -n "$GCC_FOR_TARGET"; then
8525 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8526else
c6b750e1
DJ
8527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528for as_dir in $PATH
8529do
8530 IFS=$as_save_IFS
8531 test -z "$as_dir" && as_dir=.
8532 for ac_exec_ext in '' $ac_executable_extensions; do
8533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8534 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8536 break 2
8537 fi
8538done
8539done
8540
55db4b87
PB
8541fi
8542fi
c6b750e1 8543GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8544if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8545 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8546echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8547else
c6b750e1
DJ
8548 echo "$as_me:$LINENO: result: no" >&5
8549echo "${ECHO_T}no" >&6
55db4b87 8550fi
c6b750e1 8551
2429c060
PB
8552 fi
8553 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8554 done
8555fi
c6b750e1 8556
05cbd757
PB
8557if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8558 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8559else
8560 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8561fi
8562
9a819804
AO
8563
8564
8565if test -n "$GCJ_FOR_TARGET"; then
8566 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8567elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8568 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8569fi
8570
8571if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8572 for ncn_progname in gcj; do
8573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8574set dummy ${ncn_progname}; ac_word=$2
8575echo "$as_me:$LINENO: checking for $ac_word" >&5
8576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8577if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8578 echo $ECHO_N "(cached) $ECHO_C" >&6
8579else
8580 if test -n "$GCJ_FOR_TARGET"; then
8581 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8582else
8583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584for as_dir in $PATH
8585do
8586 IFS=$as_save_IFS
8587 test -z "$as_dir" && as_dir=.
8588 for ac_exec_ext in '' $ac_executable_extensions; do
8589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8590 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8592 break 2
8593 fi
8594done
8595done
8596
8597fi
8598fi
8599GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8600if test -n "$GCJ_FOR_TARGET"; then
8601 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8602echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8603else
8604 echo "$as_me:$LINENO: result: no" >&5
8605echo "${ECHO_T}no" >&6
8606fi
8607
8608 done
8609fi
8610
8611if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8612 for ncn_progname in gcj; do
c6b750e1
DJ
8613 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8614echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8615 if test -x $with_build_time_tools/${ncn_progname}; then
8616 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8617 echo "$as_me:$LINENO: result: yes" >&5
8618echo "${ECHO_T}yes" >&6
2429c060
PB
8619 break
8620 else
c6b750e1
DJ
8621 echo "$as_me:$LINENO: result: no" >&5
8622echo "${ECHO_T}no" >&6
2429c060
PB
8623 fi
8624 done
8625fi
8626
8627if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8628 for ncn_progname in gcj; do
8629 if test -n "$ncn_target_tool_prefix"; then
8630 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8631set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8632echo "$as_me:$LINENO: checking for $ac_word" >&5
8633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8634if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8635 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8636else
8637 if test -n "$GCJ_FOR_TARGET"; then
8638 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8639else
c6b750e1
DJ
8640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8641for as_dir in $PATH
8642do
8643 IFS=$as_save_IFS
8644 test -z "$as_dir" && as_dir=.
8645 for ac_exec_ext in '' $ac_executable_extensions; do
8646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8647 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8649 break 2
8650 fi
8651done
8652done
8653
55db4b87
PB
8654fi
8655fi
9a819804
AO
8656GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8657if test -n "$GCJ_FOR_TARGET"; then
8658 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8659echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8660else
8661 echo "$as_me:$LINENO: result: no" >&5
8662echo "${ECHO_T}no" >&6
8663fi
8664
8665 fi
8666 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8668set dummy ${ncn_progname}; ac_word=$2
8669echo "$as_me:$LINENO: checking for $ac_word" >&5
8670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8671if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8673else
8674 if test -n "$GCJ_FOR_TARGET"; then
8675 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8676else
8677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8678for as_dir in $PATH
8679do
8680 IFS=$as_save_IFS
8681 test -z "$as_dir" && as_dir=.
8682 for ac_exec_ext in '' $ac_executable_extensions; do
8683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8684 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8686 break 2
8687 fi
8688done
8689done
8690
8691fi
8692fi
8693GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8694if test -n "$GCJ_FOR_TARGET"; then
8695 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8696echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8697else
8698 echo "$as_me:$LINENO: result: no" >&5
8699echo "${ECHO_T}no" >&6
8700fi
8701
8702 fi
8703 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8704 done
8705fi
8706
8707if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8708 set dummy gcj
8709 if test $build = $target ; then
8710 GCJ_FOR_TARGET="$2"
8711 else
8712 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8713 fi
d3f5afc4
MS
8714else
8715 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8716fi
8717
8718
8719
8720if test -n "$GFORTRAN_FOR_TARGET"; then
8721 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8722elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8723 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8724fi
8725
9a819804
AO
8726if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8727 for ncn_progname in gfortran; do
8728 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8729set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8730echo "$as_me:$LINENO: checking for $ac_word" >&5
8731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8732if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8733 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8734else
9a819804
AO
8735 if test -n "$GFORTRAN_FOR_TARGET"; then
8736 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8737else
c6b750e1
DJ
8738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739for as_dir in $PATH
8740do
8741 IFS=$as_save_IFS
8742 test -z "$as_dir" && as_dir=.
8743 for ac_exec_ext in '' $ac_executable_extensions; do
8744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8745 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8747 break 2
8748 fi
8749done
8750done
8751
55db4b87
PB
8752fi
8753fi
9a819804
AO
8754GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8755if test -n "$GFORTRAN_FOR_TARGET"; then
8756 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8757echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8758else
c6b750e1
DJ
8759 echo "$as_me:$LINENO: result: no" >&5
8760echo "${ECHO_T}no" >&6
55db4b87 8761fi
c6b750e1 8762
2429c060
PB
8763 done
8764fi
c6b750e1 8765
9a819804 8766if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8767 for ncn_progname in gfortran; do
c6b750e1
DJ
8768 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8769echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8770 if test -x $with_build_time_tools/${ncn_progname}; then
8771 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8772 echo "$as_me:$LINENO: result: yes" >&5
8773echo "${ECHO_T}yes" >&6
2429c060
PB
8774 break
8775 else
c6b750e1
DJ
8776 echo "$as_me:$LINENO: result: no" >&5
8777echo "${ECHO_T}no" >&6
2429c060
PB
8778 fi
8779 done
8780fi
8781
8782if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8783 for ncn_progname in gfortran; do
8784 if test -n "$ncn_target_tool_prefix"; then
8785 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8786set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8787echo "$as_me:$LINENO: checking for $ac_word" >&5
8788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8789if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8791else
8792 if test -n "$GFORTRAN_FOR_TARGET"; then
8793 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8794else
c6b750e1
DJ
8795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8796for as_dir in $PATH
8797do
8798 IFS=$as_save_IFS
8799 test -z "$as_dir" && as_dir=.
8800 for ac_exec_ext in '' $ac_executable_extensions; do
8801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8802 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8804 break 2
8805 fi
8806done
8807done
8808
55db4b87
PB
8809fi
8810fi
c6b750e1 8811GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8812if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8813 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8814echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8815else
c6b750e1
DJ
8816 echo "$as_me:$LINENO: result: no" >&5
8817echo "${ECHO_T}no" >&6
55db4b87
PB
8818fi
8819
2429c060
PB
8820 fi
8821 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8822 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8823set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8824echo "$as_me:$LINENO: checking for $ac_word" >&5
8825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8826if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8828else
05cbd757 8829 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8830 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8831else
8832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833for as_dir in $PATH
8834do
8835 IFS=$as_save_IFS
8836 test -z "$as_dir" && as_dir=.
8837 for ac_exec_ext in '' $ac_executable_extensions; do
8838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8839 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8841 break 2
8842 fi
8843done
8844done
8845
55db4b87
PB
8846fi
8847fi
c6b750e1 8848GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8849if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8850 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8851echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8852else
c6b750e1
DJ
8853 echo "$as_me:$LINENO: result: no" >&5
8854echo "${ECHO_T}no" >&6
55db4b87 8855fi
c6b750e1 8856
2429c060
PB
8857 fi
8858 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8859 done
8860fi
c6b750e1 8861
05cbd757
PB
8862if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8863 set dummy gfortran
8864 if test $build = $target ; then
8865 GFORTRAN_FOR_TARGET="$2"
55db4b87 8866 else
05cbd757 8867 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8868 fi
d3f5afc4
MS
8869else
8870 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8871fi
8872
2429c060
PB
8873
8874
2429c060
PB
8875cat > conftest.c << \EOF
8876#ifdef __GNUC__
8877 gcc_yay;
8878#endif
8879EOF
8880if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8881 have_gcc_for_target=yes
859789af 8882else
2429c060
PB
8883 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8884 have_gcc_for_target=no
859789af 8885fi
2429c060
PB
8886rm conftest.c
8887
8888
8889
859789af 8890
2429c060
PB
8891if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8892 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8893 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8894echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8895 if test -x $with_build_time_tools/ar; then
8896 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8897 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8898 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8899echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8900 else
c6b750e1
DJ
8901 echo "$as_me:$LINENO: result: no" >&5
8902echo "${ECHO_T}no" >&6
3a35eeb3 8903 fi
2429c060
PB
8904 elif test $build != $host && test $have_gcc_for_target = yes; then
8905 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8906 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8907 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8908 fi
2429c060 8909fi
c6b750e1 8910if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8911 # Extract the first word of "ar", so it can be a program name with args.
8912set dummy ar; ac_word=$2
c6b750e1
DJ
8913echo "$as_me:$LINENO: checking for $ac_word" >&5
8914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8915if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8916 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8917else
c6b750e1
DJ
8918 case $AR_FOR_TARGET in
8919 [\\/]* | ?:[\\/]*)
2429c060
PB
8920 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8921 ;;
2429c060 8922 *)
c6b750e1
DJ
8923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8924for as_dir in $gcc_cv_tool_dirs
8925do
8926 IFS=$as_save_IFS
8927 test -z "$as_dir" && as_dir=.
8928 for ac_exec_ext in '' $ac_executable_extensions; do
8929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8930 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8932 break 2
8933 fi
8934done
8935done
8936
2429c060
PB
8937 ;;
8938esac
859789af 8939fi
c6b750e1
DJ
8940AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8941
2429c060 8942if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8943 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8944echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8945else
c6b750e1
DJ
8946 echo "$as_me:$LINENO: result: no" >&5
8947echo "${ECHO_T}no" >&6
859789af 8948fi
05cbd757 8949
2429c060
PB
8950fi
8951if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8952
8953
8954if test -n "$AR_FOR_TARGET"; then
8955 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8956elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8957 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8958fi
8959
8960if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8961 for ncn_progname in ar; do
8962 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8963set dummy ${ncn_progname}; ac_word=$2
8964echo "$as_me:$LINENO: checking for $ac_word" >&5
8965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8966if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8967 echo $ECHO_N "(cached) $ECHO_C" >&6
8968else
8969 if test -n "$AR_FOR_TARGET"; then
8970 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8971else
8972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973for as_dir in $PATH
8974do
8975 IFS=$as_save_IFS
8976 test -z "$as_dir" && as_dir=.
8977 for ac_exec_ext in '' $ac_executable_extensions; do
8978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8979 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8981 break 2
8982 fi
8983done
8984done
8985
8986fi
8987fi
8988AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8989if test -n "$AR_FOR_TARGET"; then
8990 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8991echo "${ECHO_T}$AR_FOR_TARGET" >&6
8992else
8993 echo "$as_me:$LINENO: result: no" >&5
8994echo "${ECHO_T}no" >&6
8995fi
8996
8997 done
8998fi
8999
9000if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9001 for ncn_progname in ar; do
c6b750e1
DJ
9002 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9003echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9004 if test -x $with_build_time_tools/${ncn_progname}; then
9005 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9006 echo "$as_me:$LINENO: result: yes" >&5
9007echo "${ECHO_T}yes" >&6
2429c060
PB
9008 break
9009 else
c6b750e1
DJ
9010 echo "$as_me:$LINENO: result: no" >&5
9011echo "${ECHO_T}no" >&6
2429c060
PB
9012 fi
9013 done
859789af
AC
9014fi
9015
2429c060
PB
9016if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9017 for ncn_progname in ar; do
9018 if test -n "$ncn_target_tool_prefix"; then
9019 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9020set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9021echo "$as_me:$LINENO: checking for $ac_word" >&5
9022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9023if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9025else
2429c060
PB
9026 if test -n "$AR_FOR_TARGET"; then
9027 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 9028else
c6b750e1
DJ
9029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030for as_dir in $PATH
9031do
9032 IFS=$as_save_IFS
9033 test -z "$as_dir" && as_dir=.
9034 for ac_exec_ext in '' $ac_executable_extensions; do
9035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9036 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9038 break 2
9039 fi
9040done
9041done
9042
7e0f7140
GK
9043fi
9044fi
c6b750e1 9045AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9046if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9047 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9048echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9049else
c6b750e1
DJ
9050 echo "$as_me:$LINENO: result: no" >&5
9051echo "${ECHO_T}no" >&6
7e0f7140
GK
9052fi
9053
2429c060
PB
9054 fi
9055 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9056 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 9057set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9058echo "$as_me:$LINENO: checking for $ac_word" >&5
9059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9060if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9061 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9062else
2429c060
PB
9063 if test -n "$AR_FOR_TARGET"; then
9064 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 9065else
c6b750e1
DJ
9066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9067for as_dir in $PATH
9068do
9069 IFS=$as_save_IFS
9070 test -z "$as_dir" && as_dir=.
9071 for ac_exec_ext in '' $ac_executable_extensions; do
9072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9073 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9075 break 2
9076 fi
9077done
9078done
9079
7e0f7140
GK
9080fi
9081fi
c6b750e1 9082AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9083if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9084 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9085echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9086else
c6b750e1
DJ
9087 echo "$as_me:$LINENO: result: no" >&5
9088echo "${ECHO_T}no" >&6
7e0f7140 9089fi
c6b750e1 9090
2429c060
PB
9091 fi
9092 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9093 done
9094fi
c6b750e1 9095
2429c060
PB
9096if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9097 set dummy ar
7e0f7140 9098 if test $build = $target ; then
2429c060 9099 AR_FOR_TARGET="$2"
7e0f7140 9100 else
2429c060 9101 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 9102 fi
d3f5afc4
MS
9103else
9104 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
9105fi
9106
3a35eeb3
PB
9107else
9108 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
9109fi
9110
9111
9112
9113
9114if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9115 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9116 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9117echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9118 if test -x $with_build_time_tools/as; then
9119 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9120 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
9121 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9122echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 9123 else
c6b750e1
DJ
9124 echo "$as_me:$LINENO: result: no" >&5
9125echo "${ECHO_T}no" >&6
3a35eeb3 9126 fi
2429c060
PB
9127 elif test $build != $host && test $have_gcc_for_target = yes; then
9128 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
9129 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9130 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
9131 fi
9132fi
c6b750e1 9133if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9134 # Extract the first word of "as", so it can be a program name with args.
9135set dummy as; ac_word=$2
c6b750e1
DJ
9136echo "$as_me:$LINENO: checking for $ac_word" >&5
9137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9138if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9139 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9140else
c6b750e1
DJ
9141 case $AS_FOR_TARGET in
9142 [\\/]* | ?:[\\/]*)
2429c060
PB
9143 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9144 ;;
2429c060 9145 *)
c6b750e1
DJ
9146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9147for as_dir in $gcc_cv_tool_dirs
9148do
9149 IFS=$as_save_IFS
9150 test -z "$as_dir" && as_dir=.
9151 for ac_exec_ext in '' $ac_executable_extensions; do
9152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9153 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9155 break 2
9156 fi
9157done
9158done
9159
2429c060
PB
9160 ;;
9161esac
9162fi
c6b750e1
DJ
9163AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9164
2429c060 9165if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9166 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9167echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9168else
c6b750e1
DJ
9169 echo "$as_me:$LINENO: result: no" >&5
9170echo "${ECHO_T}no" >&6
2429c060
PB
9171fi
9172
9173fi
9174if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9175
9176
9177if test -n "$AS_FOR_TARGET"; then
9178 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9179elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9180 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9181fi
9182
9183if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9184 for ncn_progname in as; do
9185 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9186set dummy ${ncn_progname}; ac_word=$2
9187echo "$as_me:$LINENO: checking for $ac_word" >&5
9188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9189if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9191else
9192 if test -n "$AS_FOR_TARGET"; then
9193 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9194else
9195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9196for as_dir in $PATH
9197do
9198 IFS=$as_save_IFS
9199 test -z "$as_dir" && as_dir=.
9200 for ac_exec_ext in '' $ac_executable_extensions; do
9201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9202 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9204 break 2
9205 fi
9206done
9207done
9208
9209fi
9210fi
9211AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9212if test -n "$AS_FOR_TARGET"; then
9213 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9214echo "${ECHO_T}$AS_FOR_TARGET" >&6
9215else
9216 echo "$as_me:$LINENO: result: no" >&5
9217echo "${ECHO_T}no" >&6
9218fi
9219
9220 done
9221fi
9222
9223if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9224 for ncn_progname in as; do
c6b750e1
DJ
9225 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9226echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9227 if test -x $with_build_time_tools/${ncn_progname}; then
9228 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9229 echo "$as_me:$LINENO: result: yes" >&5
9230echo "${ECHO_T}yes" >&6
2429c060
PB
9231 break
9232 else
c6b750e1
DJ
9233 echo "$as_me:$LINENO: result: no" >&5
9234echo "${ECHO_T}no" >&6
2429c060
PB
9235 fi
9236 done
9237fi
9238
9239if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9240 for ncn_progname in as; do
9241 if test -n "$ncn_target_tool_prefix"; then
9242 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9243set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9244echo "$as_me:$LINENO: checking for $ac_word" >&5
9245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9246if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9247 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9248else
9249 if test -n "$AS_FOR_TARGET"; then
9250 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9251else
c6b750e1
DJ
9252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253for as_dir in $PATH
9254do
9255 IFS=$as_save_IFS
9256 test -z "$as_dir" && as_dir=.
9257 for ac_exec_ext in '' $ac_executable_extensions; do
9258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9259 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9261 break 2
9262 fi
9263done
9264done
9265
2429c060
PB
9266fi
9267fi
c6b750e1 9268AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9269if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9270 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9271echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9272else
c6b750e1
DJ
9273 echo "$as_me:$LINENO: result: no" >&5
9274echo "${ECHO_T}no" >&6
2429c060
PB
9275fi
9276
9277 fi
9278 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9279 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9280set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9281echo "$as_me:$LINENO: checking for $ac_word" >&5
9282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9283if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9285else
9286 if test -n "$AS_FOR_TARGET"; then
9287 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9288else
c6b750e1
DJ
9289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9290for as_dir in $PATH
9291do
9292 IFS=$as_save_IFS
9293 test -z "$as_dir" && as_dir=.
9294 for ac_exec_ext in '' $ac_executable_extensions; do
9295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9296 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9298 break 2
9299 fi
9300done
9301done
9302
2429c060
PB
9303fi
9304fi
c6b750e1 9305AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9306if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9307 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9308echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9309else
c6b750e1
DJ
9310 echo "$as_me:$LINENO: result: no" >&5
9311echo "${ECHO_T}no" >&6
2429c060 9312fi
c6b750e1 9313
2429c060
PB
9314 fi
9315 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9316 done
9317fi
c6b750e1 9318
2429c060
PB
9319if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9320 set dummy as
9321 if test $build = $target ; then
9322 AS_FOR_TARGET="$2"
9323 else
9324 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9325 fi
d3f5afc4
MS
9326else
9327 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9328fi
9329
3a35eeb3
PB
9330else
9331 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9332fi
9333
9334
9335
9336
9337if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9338 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9339 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9340echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9341 if test -x $with_build_time_tools/dlltool; then
9342 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9343 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9344 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9345echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9346 else
c6b750e1
DJ
9347 echo "$as_me:$LINENO: result: no" >&5
9348echo "${ECHO_T}no" >&6
3a35eeb3 9349 fi
2429c060
PB
9350 elif test $build != $host && test $have_gcc_for_target = yes; then
9351 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9352 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9353 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9354 fi
9355fi
c6b750e1 9356if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9357 # Extract the first word of "dlltool", so it can be a program name with args.
9358set dummy dlltool; ac_word=$2
c6b750e1
DJ
9359echo "$as_me:$LINENO: checking for $ac_word" >&5
9360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9361if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9362 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9363else
c6b750e1
DJ
9364 case $DLLTOOL_FOR_TARGET in
9365 [\\/]* | ?:[\\/]*)
2429c060
PB
9366 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9367 ;;
2429c060 9368 *)
c6b750e1
DJ
9369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9370for as_dir in $gcc_cv_tool_dirs
9371do
9372 IFS=$as_save_IFS
9373 test -z "$as_dir" && as_dir=.
9374 for ac_exec_ext in '' $ac_executable_extensions; do
9375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9376 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9378 break 2
9379 fi
9380done
9381done
9382
2429c060
PB
9383 ;;
9384esac
9385fi
c6b750e1
DJ
9386DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9387
2429c060 9388if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9389 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9390echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9391else
c6b750e1
DJ
9392 echo "$as_me:$LINENO: result: no" >&5
9393echo "${ECHO_T}no" >&6
2429c060
PB
9394fi
9395
9396fi
9397if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9398
9399
9400if test -n "$DLLTOOL_FOR_TARGET"; then
9401 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9402elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9403 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9404fi
9405
9406if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9407 for ncn_progname in dlltool; do
9408 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9409set dummy ${ncn_progname}; ac_word=$2
9410echo "$as_me:$LINENO: checking for $ac_word" >&5
9411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9412if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9413 echo $ECHO_N "(cached) $ECHO_C" >&6
9414else
9415 if test -n "$DLLTOOL_FOR_TARGET"; then
9416 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9417else
9418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9419for as_dir in $PATH
9420do
9421 IFS=$as_save_IFS
9422 test -z "$as_dir" && as_dir=.
9423 for ac_exec_ext in '' $ac_executable_extensions; do
9424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9425 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9427 break 2
9428 fi
9429done
9430done
9431
9432fi
9433fi
9434DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9435if test -n "$DLLTOOL_FOR_TARGET"; then
9436 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9437echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9438else
9439 echo "$as_me:$LINENO: result: no" >&5
9440echo "${ECHO_T}no" >&6
9441fi
9442
9443 done
9444fi
9445
9446if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9447 for ncn_progname in dlltool; do
c6b750e1
DJ
9448 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9449echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9450 if test -x $with_build_time_tools/${ncn_progname}; then
9451 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9452 echo "$as_me:$LINENO: result: yes" >&5
9453echo "${ECHO_T}yes" >&6
2429c060
PB
9454 break
9455 else
c6b750e1
DJ
9456 echo "$as_me:$LINENO: result: no" >&5
9457echo "${ECHO_T}no" >&6
2429c060
PB
9458 fi
9459 done
9460fi
9461
9462if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9463 for ncn_progname in dlltool; do
9464 if test -n "$ncn_target_tool_prefix"; then
9465 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9466set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9467echo "$as_me:$LINENO: checking for $ac_word" >&5
9468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9469if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9471else
9472 if test -n "$DLLTOOL_FOR_TARGET"; then
9473 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9474else
c6b750e1
DJ
9475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9476for as_dir in $PATH
9477do
9478 IFS=$as_save_IFS
9479 test -z "$as_dir" && as_dir=.
9480 for ac_exec_ext in '' $ac_executable_extensions; do
9481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9482 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9484 break 2
9485 fi
9486done
9487done
9488
2429c060
PB
9489fi
9490fi
c6b750e1 9491DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9492if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9493 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9494echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9495else
c6b750e1
DJ
9496 echo "$as_me:$LINENO: result: no" >&5
9497echo "${ECHO_T}no" >&6
2429c060
PB
9498fi
9499
9500 fi
9501 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9502 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9503set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9504echo "$as_me:$LINENO: checking for $ac_word" >&5
9505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9506if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9508else
9509 if test -n "$DLLTOOL_FOR_TARGET"; then
9510 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9511else
c6b750e1
DJ
9512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9513for as_dir in $PATH
9514do
9515 IFS=$as_save_IFS
9516 test -z "$as_dir" && as_dir=.
9517 for ac_exec_ext in '' $ac_executable_extensions; do
9518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9519 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9521 break 2
9522 fi
9523done
9524done
9525
2429c060
PB
9526fi
9527fi
c6b750e1 9528DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9529if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9530 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9531echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9532else
c6b750e1
DJ
9533 echo "$as_me:$LINENO: result: no" >&5
9534echo "${ECHO_T}no" >&6
2429c060 9535fi
c6b750e1 9536
2429c060
PB
9537 fi
9538 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9539 done
9540fi
c6b750e1 9541
2429c060
PB
9542if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9543 set dummy dlltool
9544 if test $build = $target ; then
9545 DLLTOOL_FOR_TARGET="$2"
9546 else
9547 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9548 fi
d3f5afc4
MS
9549else
9550 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9551fi
9552
3a35eeb3
PB
9553else
9554 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9555fi
9556
9557
9558
9559
9560if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9561 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9562 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9563echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9564 if test -x $with_build_time_tools/ld; then
9565 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9566 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9567 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9568echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9569 else
c6b750e1
DJ
9570 echo "$as_me:$LINENO: result: no" >&5
9571echo "${ECHO_T}no" >&6
3a35eeb3 9572 fi
2429c060
PB
9573 elif test $build != $host && test $have_gcc_for_target = yes; then
9574 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9575 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9576 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9577 fi
9578fi
c6b750e1 9579if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9580 # Extract the first word of "ld", so it can be a program name with args.
9581set dummy ld; ac_word=$2
c6b750e1
DJ
9582echo "$as_me:$LINENO: checking for $ac_word" >&5
9583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9584if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9586else
c6b750e1
DJ
9587 case $LD_FOR_TARGET in
9588 [\\/]* | ?:[\\/]*)
2429c060
PB
9589 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9590 ;;
2429c060 9591 *)
c6b750e1
DJ
9592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9593for as_dir in $gcc_cv_tool_dirs
9594do
9595 IFS=$as_save_IFS
9596 test -z "$as_dir" && as_dir=.
9597 for ac_exec_ext in '' $ac_executable_extensions; do
9598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9599 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9601 break 2
9602 fi
9603done
9604done
9605
2429c060
PB
9606 ;;
9607esac
9608fi
c6b750e1
DJ
9609LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9610
2429c060 9611if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9612 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9613echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9614else
c6b750e1
DJ
9615 echo "$as_me:$LINENO: result: no" >&5
9616echo "${ECHO_T}no" >&6
2429c060
PB
9617fi
9618
9619fi
9620if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9621
9622
9623if test -n "$LD_FOR_TARGET"; then
9624 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9625elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9626 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9627fi
9628
9629if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9630 for ncn_progname in ld; do
9631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9632set dummy ${ncn_progname}; ac_word=$2
9633echo "$as_me:$LINENO: checking for $ac_word" >&5
9634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9635if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9637else
9638 if test -n "$LD_FOR_TARGET"; then
9639 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9640else
9641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9642for as_dir in $PATH
9643do
9644 IFS=$as_save_IFS
9645 test -z "$as_dir" && as_dir=.
9646 for ac_exec_ext in '' $ac_executable_extensions; do
9647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9648 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9650 break 2
9651 fi
9652done
9653done
9654
9655fi
9656fi
9657LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9658if test -n "$LD_FOR_TARGET"; then
9659 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9660echo "${ECHO_T}$LD_FOR_TARGET" >&6
9661else
9662 echo "$as_me:$LINENO: result: no" >&5
9663echo "${ECHO_T}no" >&6
9664fi
9665
9666 done
9667fi
9668
9669if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9670 for ncn_progname in ld; do
c6b750e1
DJ
9671 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9672echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9673 if test -x $with_build_time_tools/${ncn_progname}; then
9674 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9675 echo "$as_me:$LINENO: result: yes" >&5
9676echo "${ECHO_T}yes" >&6
2429c060
PB
9677 break
9678 else
c6b750e1
DJ
9679 echo "$as_me:$LINENO: result: no" >&5
9680echo "${ECHO_T}no" >&6
2429c060
PB
9681 fi
9682 done
9683fi
9684
9685if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9686 for ncn_progname in ld; do
9687 if test -n "$ncn_target_tool_prefix"; then
9688 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9689set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9690echo "$as_me:$LINENO: checking for $ac_word" >&5
9691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9692if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9694else
9695 if test -n "$LD_FOR_TARGET"; then
9696 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9697else
c6b750e1
DJ
9698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9699for as_dir in $PATH
9700do
9701 IFS=$as_save_IFS
9702 test -z "$as_dir" && as_dir=.
9703 for ac_exec_ext in '' $ac_executable_extensions; do
9704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9705 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9707 break 2
9708 fi
9709done
9710done
9711
2429c060
PB
9712fi
9713fi
c6b750e1 9714LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9715if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9716 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9717echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9718else
c6b750e1
DJ
9719 echo "$as_me:$LINENO: result: no" >&5
9720echo "${ECHO_T}no" >&6
2429c060
PB
9721fi
9722
9723 fi
9724 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9726set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9727echo "$as_me:$LINENO: checking for $ac_word" >&5
9728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9729if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9731else
9732 if test -n "$LD_FOR_TARGET"; then
9733 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9734else
c6b750e1
DJ
9735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9736for as_dir in $PATH
9737do
9738 IFS=$as_save_IFS
9739 test -z "$as_dir" && as_dir=.
9740 for ac_exec_ext in '' $ac_executable_extensions; do
9741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9742 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9744 break 2
9745 fi
9746done
9747done
9748
2429c060
PB
9749fi
9750fi
c6b750e1 9751LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9752if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9753 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9754echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9755else
c6b750e1
DJ
9756 echo "$as_me:$LINENO: result: no" >&5
9757echo "${ECHO_T}no" >&6
2429c060 9758fi
c6b750e1 9759
2429c060
PB
9760 fi
9761 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9762 done
9763fi
c6b750e1 9764
2429c060
PB
9765if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9766 set dummy ld
9767 if test $build = $target ; then
9768 LD_FOR_TARGET="$2"
9769 else
9770 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9771 fi
d3f5afc4
MS
9772else
9773 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9774fi
9775
3a35eeb3
PB
9776else
9777 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9778fi
9779
9780
9781
9782
9783if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9784 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9785 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9786echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9787 if test -x $with_build_time_tools/lipo; then
9788 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9789 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9790 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9791echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9792 else
c6b750e1
DJ
9793 echo "$as_me:$LINENO: result: no" >&5
9794echo "${ECHO_T}no" >&6
3a35eeb3 9795 fi
2429c060
PB
9796 elif test $build != $host && test $have_gcc_for_target = yes; then
9797 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9798 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9799 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9800 fi
9801fi
9a819804
AO
9802if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9803 # Extract the first word of "lipo", so it can be a program name with args.
9804set dummy lipo; ac_word=$2
9805echo "$as_me:$LINENO: checking for $ac_word" >&5
9806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9807if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9809else
9810 case $LIPO_FOR_TARGET in
9811 [\\/]* | ?:[\\/]*)
9812 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9813 ;;
9814 *)
9815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816for as_dir in $gcc_cv_tool_dirs
9817do
9818 IFS=$as_save_IFS
9819 test -z "$as_dir" && as_dir=.
9820 for ac_exec_ext in '' $ac_executable_extensions; do
9821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9822 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9824 break 2
9825 fi
9826done
9827done
9828
9829 ;;
9830esac
9831fi
9832LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9833
9834if test -n "$LIPO_FOR_TARGET"; then
9835 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9836echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9837else
9838 echo "$as_me:$LINENO: result: no" >&5
9839echo "${ECHO_T}no" >&6
9840fi
9841
9842fi
9843if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9844
9845
9846if test -n "$LIPO_FOR_TARGET"; then
9847 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9848elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9849 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9850fi
9851
9852if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9853 for ncn_progname in lipo; do
9854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9855set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9856echo "$as_me:$LINENO: checking for $ac_word" >&5
9857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9858if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9859 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9860else
9a819804
AO
9861 if test -n "$LIPO_FOR_TARGET"; then
9862 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9863else
9864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865for as_dir in $PATH
c6b750e1
DJ
9866do
9867 IFS=$as_save_IFS
9868 test -z "$as_dir" && as_dir=.
9869 for ac_exec_ext in '' $ac_executable_extensions; do
9870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9871 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9873 break 2
9874 fi
9875done
9876done
9877
2429c060 9878fi
9a819804
AO
9879fi
9880LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9881if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9882 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9883echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9884else
c6b750e1
DJ
9885 echo "$as_me:$LINENO: result: no" >&5
9886echo "${ECHO_T}no" >&6
2429c060
PB
9887fi
9888
9a819804 9889 done
2429c060 9890fi
9a819804
AO
9891
9892if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9893 for ncn_progname in lipo; do
c6b750e1
DJ
9894 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9895echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9896 if test -x $with_build_time_tools/${ncn_progname}; then
9897 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9898 echo "$as_me:$LINENO: result: yes" >&5
9899echo "${ECHO_T}yes" >&6
2429c060
PB
9900 break
9901 else
c6b750e1
DJ
9902 echo "$as_me:$LINENO: result: no" >&5
9903echo "${ECHO_T}no" >&6
2429c060
PB
9904 fi
9905 done
9906fi
9907
9908if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9909 for ncn_progname in lipo; do
9910 if test -n "$ncn_target_tool_prefix"; then
9911 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9912set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9913echo "$as_me:$LINENO: checking for $ac_word" >&5
9914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9915if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9917else
9918 if test -n "$LIPO_FOR_TARGET"; then
9919 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9920else
c6b750e1
DJ
9921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9922for as_dir in $PATH
9923do
9924 IFS=$as_save_IFS
9925 test -z "$as_dir" && as_dir=.
9926 for ac_exec_ext in '' $ac_executable_extensions; do
9927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9928 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9930 break 2
9931 fi
9932done
9933done
9934
2429c060
PB
9935fi
9936fi
c6b750e1 9937LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9938if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9939 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9940echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9941else
c6b750e1
DJ
9942 echo "$as_me:$LINENO: result: no" >&5
9943echo "${ECHO_T}no" >&6
2429c060
PB
9944fi
9945
9946 fi
9947 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9949set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9950echo "$as_me:$LINENO: checking for $ac_word" >&5
9951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9952if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9954else
9955 if test -n "$LIPO_FOR_TARGET"; then
9956 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9957else
c6b750e1
DJ
9958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959for as_dir in $PATH
9960do
9961 IFS=$as_save_IFS
9962 test -z "$as_dir" && as_dir=.
9963 for ac_exec_ext in '' $ac_executable_extensions; do
9964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9965 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9967 break 2
9968 fi
9969done
9970done
9971
2429c060
PB
9972fi
9973fi
c6b750e1 9974LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9975if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9976 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9977echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9978else
c6b750e1
DJ
9979 echo "$as_me:$LINENO: result: no" >&5
9980echo "${ECHO_T}no" >&6
2429c060 9981fi
c6b750e1 9982
2429c060
PB
9983 fi
9984 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9985 done
9986fi
c6b750e1 9987
2429c060
PB
9988if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9989 set dummy lipo
9990 if test $build = $target ; then
9991 LIPO_FOR_TARGET="$2"
9992 else
9993 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9994 fi
d3f5afc4
MS
9995else
9996 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
9997fi
9998
3a35eeb3
PB
9999else
10000 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
10001fi
10002
10003
10004
10005
10006if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10007 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10008 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10009echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10010 if test -x $with_build_time_tools/nm; then
10011 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10012 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
10013 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10014echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 10015 else
c6b750e1
DJ
10016 echo "$as_me:$LINENO: result: no" >&5
10017echo "${ECHO_T}no" >&6
3a35eeb3 10018 fi
2429c060
PB
10019 elif test $build != $host && test $have_gcc_for_target = yes; then
10020 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
10021 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10022 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
10023 fi
10024fi
c6b750e1 10025if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10026 # Extract the first word of "nm", so it can be a program name with args.
10027set dummy nm; ac_word=$2
c6b750e1
DJ
10028echo "$as_me:$LINENO: checking for $ac_word" >&5
10029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10030if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10031 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10032else
c6b750e1
DJ
10033 case $NM_FOR_TARGET in
10034 [\\/]* | ?:[\\/]*)
2429c060
PB
10035 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10036 ;;
2429c060 10037 *)
c6b750e1
DJ
10038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10039for as_dir in $gcc_cv_tool_dirs
10040do
10041 IFS=$as_save_IFS
10042 test -z "$as_dir" && as_dir=.
10043 for ac_exec_ext in '' $ac_executable_extensions; do
10044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10045 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10047 break 2
10048 fi
10049done
10050done
10051
2429c060
PB
10052 ;;
10053esac
10054fi
c6b750e1
DJ
10055NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10056
2429c060 10057if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10058 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10059echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 10060else
c6b750e1
DJ
10061 echo "$as_me:$LINENO: result: no" >&5
10062echo "${ECHO_T}no" >&6
2429c060
PB
10063fi
10064
10065fi
10066if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
10067
10068
10069if test -n "$NM_FOR_TARGET"; then
10070 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10071elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10072 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10073fi
10074
10075if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10076 for ncn_progname in nm; do
10077 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10078set dummy ${ncn_progname}; ac_word=$2
10079echo "$as_me:$LINENO: checking for $ac_word" >&5
10080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10081if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10083else
10084 if test -n "$NM_FOR_TARGET"; then
10085 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10086else
10087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10088for as_dir in $PATH
10089do
10090 IFS=$as_save_IFS
10091 test -z "$as_dir" && as_dir=.
10092 for ac_exec_ext in '' $ac_executable_extensions; do
10093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10094 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10096 break 2
10097 fi
10098done
10099done
10100
10101fi
10102fi
10103NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10104if test -n "$NM_FOR_TARGET"; then
10105 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10106echo "${ECHO_T}$NM_FOR_TARGET" >&6
10107else
10108 echo "$as_me:$LINENO: result: no" >&5
10109echo "${ECHO_T}no" >&6
10110fi
10111
10112 done
10113fi
10114
10115if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10116 for ncn_progname in nm; do
c6b750e1
DJ
10117 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10118echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10119 if test -x $with_build_time_tools/${ncn_progname}; then
10120 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10121 echo "$as_me:$LINENO: result: yes" >&5
10122echo "${ECHO_T}yes" >&6
2429c060
PB
10123 break
10124 else
c6b750e1
DJ
10125 echo "$as_me:$LINENO: result: no" >&5
10126echo "${ECHO_T}no" >&6
2429c060
PB
10127 fi
10128 done
10129fi
10130
10131if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10132 for ncn_progname in nm; do
10133 if test -n "$ncn_target_tool_prefix"; then
10134 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10135set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10136echo "$as_me:$LINENO: checking for $ac_word" >&5
10137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10138if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10139 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10140else
55db4b87
PB
10141 if test -n "$NM_FOR_TARGET"; then
10142 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10143else
c6b750e1
DJ
10144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10145for as_dir in $PATH
10146do
10147 IFS=$as_save_IFS
10148 test -z "$as_dir" && as_dir=.
10149 for ac_exec_ext in '' $ac_executable_extensions; do
10150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10151 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10153 break 2
10154 fi
10155done
10156done
10157
859789af
AC
10158fi
10159fi
c6b750e1 10160NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 10161if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10162 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10163echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10164else
c6b750e1
DJ
10165 echo "$as_me:$LINENO: result: no" >&5
10166echo "${ECHO_T}no" >&6
859789af
AC
10167fi
10168
2429c060
PB
10169 fi
10170 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10172set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10173echo "$as_me:$LINENO: checking for $ac_word" >&5
10174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10175if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10177else
05cbd757
PB
10178 if test -n "$NM_FOR_TARGET"; then
10179 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10180else
c6b750e1
DJ
10181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182for as_dir in $PATH
10183do
10184 IFS=$as_save_IFS
10185 test -z "$as_dir" && as_dir=.
10186 for ac_exec_ext in '' $ac_executable_extensions; do
10187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10188 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10190 break 2
10191 fi
10192done
10193done
10194
859789af
AC
10195fi
10196fi
c6b750e1 10197NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10198if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10199 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10200echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10201else
c6b750e1
DJ
10202 echo "$as_me:$LINENO: result: no" >&5
10203echo "${ECHO_T}no" >&6
859789af 10204fi
c6b750e1 10205
2429c060
PB
10206 fi
10207 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10208 done
10209fi
c6b750e1 10210
05cbd757
PB
10211if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10212 set dummy nm
10213 if test $build = $target ; then
10214 NM_FOR_TARGET="$2"
859789af 10215 else
05cbd757 10216 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10217 fi
d3f5afc4
MS
10218else
10219 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10220fi
10221
3a35eeb3
PB
10222else
10223 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10224fi
10225
10226
10227
10228
10229if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10230 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10231 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10232echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10233 if test -x $with_build_time_tools/objdump; then
10234 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10235 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10236 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10237echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10238 else
c6b750e1
DJ
10239 echo "$as_me:$LINENO: result: no" >&5
10240echo "${ECHO_T}no" >&6
3a35eeb3 10241 fi
2429c060
PB
10242 elif test $build != $host && test $have_gcc_for_target = yes; then
10243 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10244 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10245 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10246 fi
10247fi
c6b750e1 10248if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10249 # Extract the first word of "objdump", so it can be a program name with args.
10250set dummy objdump; ac_word=$2
c6b750e1
DJ
10251echo "$as_me:$LINENO: checking for $ac_word" >&5
10252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10253if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10255else
c6b750e1
DJ
10256 case $OBJDUMP_FOR_TARGET in
10257 [\\/]* | ?:[\\/]*)
2429c060
PB
10258 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10259 ;;
2429c060 10260 *)
c6b750e1
DJ
10261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10262for as_dir in $gcc_cv_tool_dirs
10263do
10264 IFS=$as_save_IFS
10265 test -z "$as_dir" && as_dir=.
10266 for ac_exec_ext in '' $ac_executable_extensions; do
10267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10268 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10270 break 2
10271 fi
10272done
10273done
10274
2429c060
PB
10275 ;;
10276esac
10277fi
c6b750e1
DJ
10278OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10279
2429c060 10280if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10281 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10282echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10283else
c6b750e1
DJ
10284 echo "$as_me:$LINENO: result: no" >&5
10285echo "${ECHO_T}no" >&6
2429c060
PB
10286fi
10287
10288fi
10289if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10290
10291
10292if test -n "$OBJDUMP_FOR_TARGET"; then
10293 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10294elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10295 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10296fi
10297
10298if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10299 for ncn_progname in objdump; do
10300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10301set dummy ${ncn_progname}; ac_word=$2
10302echo "$as_me:$LINENO: checking for $ac_word" >&5
10303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10304if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306else
10307 if test -n "$OBJDUMP_FOR_TARGET"; then
10308 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10309else
10310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10311for as_dir in $PATH
10312do
10313 IFS=$as_save_IFS
10314 test -z "$as_dir" && as_dir=.
10315 for ac_exec_ext in '' $ac_executable_extensions; do
10316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10317 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10319 break 2
10320 fi
10321done
10322done
10323
10324fi
10325fi
10326OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10327if test -n "$OBJDUMP_FOR_TARGET"; then
10328 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10329echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10330else
10331 echo "$as_me:$LINENO: result: no" >&5
10332echo "${ECHO_T}no" >&6
10333fi
10334
10335 done
10336fi
10337
10338if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10339 for ncn_progname in objdump; do
c6b750e1
DJ
10340 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10341echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10342 if test -x $with_build_time_tools/${ncn_progname}; then
10343 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10344 echo "$as_me:$LINENO: result: yes" >&5
10345echo "${ECHO_T}yes" >&6
2429c060
PB
10346 break
10347 else
c6b750e1
DJ
10348 echo "$as_me:$LINENO: result: no" >&5
10349echo "${ECHO_T}no" >&6
2429c060
PB
10350 fi
10351 done
10352fi
10353
10354if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10355 for ncn_progname in objdump; do
10356 if test -n "$ncn_target_tool_prefix"; then
10357 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10358set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10359echo "$as_me:$LINENO: checking for $ac_word" >&5
10360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10361if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10362 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10363else
10364 if test -n "$OBJDUMP_FOR_TARGET"; then
10365 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10366else
c6b750e1
DJ
10367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10368for as_dir in $PATH
10369do
10370 IFS=$as_save_IFS
10371 test -z "$as_dir" && as_dir=.
10372 for ac_exec_ext in '' $ac_executable_extensions; do
10373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10374 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10376 break 2
10377 fi
10378done
10379done
10380
5ae72758
DJ
10381fi
10382fi
c6b750e1 10383OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10384if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10385 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10386echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10387else
c6b750e1
DJ
10388 echo "$as_me:$LINENO: result: no" >&5
10389echo "${ECHO_T}no" >&6
5ae72758
DJ
10390fi
10391
2429c060
PB
10392 fi
10393 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10395set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10396echo "$as_me:$LINENO: checking for $ac_word" >&5
10397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10398if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10399 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10400else
10401 if test -n "$OBJDUMP_FOR_TARGET"; then
10402 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10403else
c6b750e1
DJ
10404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10405for as_dir in $PATH
10406do
10407 IFS=$as_save_IFS
10408 test -z "$as_dir" && as_dir=.
10409 for ac_exec_ext in '' $ac_executable_extensions; do
10410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10411 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10413 break 2
10414 fi
10415done
10416done
10417
5ae72758
DJ
10418fi
10419fi
c6b750e1 10420OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10421if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10422 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10423echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10424else
c6b750e1
DJ
10425 echo "$as_me:$LINENO: result: no" >&5
10426echo "${ECHO_T}no" >&6
5ae72758 10427fi
c6b750e1 10428
2429c060
PB
10429 fi
10430 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10431 done
10432fi
c6b750e1 10433
5ae72758
DJ
10434if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10435 set dummy objdump
10436 if test $build = $target ; then
10437 OBJDUMP_FOR_TARGET="$2"
10438 else
10439 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10440 fi
d3f5afc4
MS
10441else
10442 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10443fi
10444
3a35eeb3
PB
10445else
10446 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10447fi
10448
10449
10450
10451
10452if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10453 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10454 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10455echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10456 if test -x $with_build_time_tools/ranlib; then
10457 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10458 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10459 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10460echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10461 else
c6b750e1
DJ
10462 echo "$as_me:$LINENO: result: no" >&5
10463echo "${ECHO_T}no" >&6
3a35eeb3 10464 fi
2429c060
PB
10465 elif test $build != $host && test $have_gcc_for_target = yes; then
10466 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10467 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10468 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10469 fi
10470fi
c6b750e1 10471if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10472 # Extract the first word of "ranlib", so it can be a program name with args.
10473set dummy ranlib; ac_word=$2
c6b750e1
DJ
10474echo "$as_me:$LINENO: checking for $ac_word" >&5
10475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10476if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10477 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10478else
c6b750e1
DJ
10479 case $RANLIB_FOR_TARGET in
10480 [\\/]* | ?:[\\/]*)
2429c060
PB
10481 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10482 ;;
2429c060 10483 *)
c6b750e1
DJ
10484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10485for as_dir in $gcc_cv_tool_dirs
10486do
10487 IFS=$as_save_IFS
10488 test -z "$as_dir" && as_dir=.
10489 for ac_exec_ext in '' $ac_executable_extensions; do
10490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10491 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10493 break 2
10494 fi
10495done
10496done
10497
2429c060
PB
10498 ;;
10499esac
10500fi
c6b750e1
DJ
10501RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10502
2429c060 10503if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10504 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10505echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10506else
c6b750e1
DJ
10507 echo "$as_me:$LINENO: result: no" >&5
10508echo "${ECHO_T}no" >&6
2429c060
PB
10509fi
10510
10511fi
10512if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10513
10514
10515if test -n "$RANLIB_FOR_TARGET"; then
10516 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10517elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10518 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10519fi
10520
10521if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10522 for ncn_progname in ranlib; do
10523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10524set dummy ${ncn_progname}; ac_word=$2
10525echo "$as_me:$LINENO: checking for $ac_word" >&5
10526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10527if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10529else
10530 if test -n "$RANLIB_FOR_TARGET"; then
10531 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10532else
10533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10534for as_dir in $PATH
10535do
10536 IFS=$as_save_IFS
10537 test -z "$as_dir" && as_dir=.
10538 for ac_exec_ext in '' $ac_executable_extensions; do
10539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10540 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10542 break 2
10543 fi
10544done
10545done
10546
10547fi
10548fi
10549RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10550if test -n "$RANLIB_FOR_TARGET"; then
10551 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10552echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10553else
10554 echo "$as_me:$LINENO: result: no" >&5
10555echo "${ECHO_T}no" >&6
10556fi
10557
10558 done
10559fi
10560
10561if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10562 for ncn_progname in ranlib; do
c6b750e1
DJ
10563 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10564echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10565 if test -x $with_build_time_tools/${ncn_progname}; then
10566 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10567 echo "$as_me:$LINENO: result: yes" >&5
10568echo "${ECHO_T}yes" >&6
2429c060
PB
10569 break
10570 else
c6b750e1
DJ
10571 echo "$as_me:$LINENO: result: no" >&5
10572echo "${ECHO_T}no" >&6
2429c060
PB
10573 fi
10574 done
10575fi
10576
10577if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10578 for ncn_progname in ranlib; do
10579 if test -n "$ncn_target_tool_prefix"; then
10580 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10581set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10582echo "$as_me:$LINENO: checking for $ac_word" >&5
10583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10584if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10585 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10586else
55db4b87
PB
10587 if test -n "$RANLIB_FOR_TARGET"; then
10588 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10589else
c6b750e1
DJ
10590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591for as_dir in $PATH
10592do
10593 IFS=$as_save_IFS
10594 test -z "$as_dir" && as_dir=.
10595 for ac_exec_ext in '' $ac_executable_extensions; do
10596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10597 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10599 break 2
10600 fi
10601done
10602done
10603
859789af
AC
10604fi
10605fi
c6b750e1 10606RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10607if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10608 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10609echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10610else
c6b750e1
DJ
10611 echo "$as_me:$LINENO: result: no" >&5
10612echo "${ECHO_T}no" >&6
859789af
AC
10613fi
10614
2429c060
PB
10615 fi
10616 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10618set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10619echo "$as_me:$LINENO: checking for $ac_word" >&5
10620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10621if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10623else
05cbd757
PB
10624 if test -n "$RANLIB_FOR_TARGET"; then
10625 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10626else
c6b750e1
DJ
10627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10628for as_dir in $PATH
10629do
10630 IFS=$as_save_IFS
10631 test -z "$as_dir" && as_dir=.
10632 for ac_exec_ext in '' $ac_executable_extensions; do
10633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10634 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10636 break 2
10637 fi
10638done
10639done
10640
859789af
AC
10641fi
10642fi
c6b750e1 10643RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10644if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10645 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10646echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10647else
c6b750e1
DJ
10648 echo "$as_me:$LINENO: result: no" >&5
10649echo "${ECHO_T}no" >&6
859789af 10650fi
c6b750e1 10651
2429c060
PB
10652 fi
10653 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10654 done
10655fi
c6b750e1 10656
2429c060
PB
10657if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10658 set dummy ranlib
10659 if test $build = $target ; then
10660 RANLIB_FOR_TARGET="$2"
10661 else
10662 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10663 fi
d3f5afc4
MS
10664else
10665 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10666fi
05cbd757 10667
3a35eeb3
PB
10668else
10669 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10670fi
10671
2429c060
PB
10672
10673
10674
10675if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10676 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10677 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10678echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10679 if test -x $with_build_time_tools/strip; then
10680 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10681 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10682 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10683echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10684 else
c6b750e1
DJ
10685 echo "$as_me:$LINENO: result: no" >&5
10686echo "${ECHO_T}no" >&6
3a35eeb3 10687 fi
2429c060
PB
10688 elif test $build != $host && test $have_gcc_for_target = yes; then
10689 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10690 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10691 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10692 fi
10693fi
c6b750e1 10694if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10695 # Extract the first word of "strip", so it can be a program name with args.
10696set dummy strip; ac_word=$2
c6b750e1
DJ
10697echo "$as_me:$LINENO: checking for $ac_word" >&5
10698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10699if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10701else
c6b750e1
DJ
10702 case $STRIP_FOR_TARGET in
10703 [\\/]* | ?:[\\/]*)
2429c060
PB
10704 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10705 ;;
2429c060 10706 *)
c6b750e1
DJ
10707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10708for as_dir in $gcc_cv_tool_dirs
10709do
10710 IFS=$as_save_IFS
10711 test -z "$as_dir" && as_dir=.
10712 for ac_exec_ext in '' $ac_executable_extensions; do
10713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10714 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10716 break 2
10717 fi
10718done
10719done
10720
2429c060
PB
10721 ;;
10722esac
10723fi
c6b750e1
DJ
10724STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10725
2429c060 10726if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10727 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10728echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10729else
c6b750e1
DJ
10730 echo "$as_me:$LINENO: result: no" >&5
10731echo "${ECHO_T}no" >&6
2429c060
PB
10732fi
10733
10734fi
10735if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10736
10737
10738if test -n "$STRIP_FOR_TARGET"; then
10739 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10740elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10741 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10742fi
10743
10744if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10745 for ncn_progname in strip; do
10746 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10747set dummy ${ncn_progname}; ac_word=$2
10748echo "$as_me:$LINENO: checking for $ac_word" >&5
10749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10750if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10752else
10753 if test -n "$STRIP_FOR_TARGET"; then
10754 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10755else
10756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757for as_dir in $PATH
10758do
10759 IFS=$as_save_IFS
10760 test -z "$as_dir" && as_dir=.
10761 for ac_exec_ext in '' $ac_executable_extensions; do
10762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10763 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10765 break 2
10766 fi
10767done
10768done
10769
10770fi
10771fi
10772STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10773if test -n "$STRIP_FOR_TARGET"; then
10774 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10775echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10776else
10777 echo "$as_me:$LINENO: result: no" >&5
10778echo "${ECHO_T}no" >&6
10779fi
10780
10781 done
10782fi
10783
10784if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10785 for ncn_progname in strip; do
c6b750e1
DJ
10786 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10787echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10788 if test -x $with_build_time_tools/${ncn_progname}; then
10789 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10790 echo "$as_me:$LINENO: result: yes" >&5
10791echo "${ECHO_T}yes" >&6
2429c060
PB
10792 break
10793 else
c6b750e1
DJ
10794 echo "$as_me:$LINENO: result: no" >&5
10795echo "${ECHO_T}no" >&6
2429c060
PB
10796 fi
10797 done
10798fi
10799
10800if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10801 for ncn_progname in strip; do
10802 if test -n "$ncn_target_tool_prefix"; then
10803 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10804set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10805echo "$as_me:$LINENO: checking for $ac_word" >&5
10806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10807if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10808 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10809else
10810 if test -n "$STRIP_FOR_TARGET"; then
10811 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10812else
10813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10814for as_dir in $PATH
10815do
10816 IFS=$as_save_IFS
10817 test -z "$as_dir" && as_dir=.
10818 for ac_exec_ext in '' $ac_executable_extensions; do
10819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10820 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10822 break 2
10823 fi
10824done
10825done
10826
7e0f7140
GK
10827fi
10828fi
c6b750e1 10829STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10830if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10831 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10832echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10833else
c6b750e1
DJ
10834 echo "$as_me:$LINENO: result: no" >&5
10835echo "${ECHO_T}no" >&6
7e0f7140
GK
10836fi
10837
2429c060
PB
10838 fi
10839 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10841set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10842echo "$as_me:$LINENO: checking for $ac_word" >&5
10843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10844if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10845 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10846else
10847 if test -n "$STRIP_FOR_TARGET"; then
10848 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10849else
c6b750e1
DJ
10850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10851for as_dir in $PATH
10852do
10853 IFS=$as_save_IFS
10854 test -z "$as_dir" && as_dir=.
10855 for ac_exec_ext in '' $ac_executable_extensions; do
10856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10857 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10859 break 2
10860 fi
10861done
10862done
10863
7e0f7140
GK
10864fi
10865fi
c6b750e1 10866STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10867if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10868 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10869echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10870else
c6b750e1
DJ
10871 echo "$as_me:$LINENO: result: no" >&5
10872echo "${ECHO_T}no" >&6
7e0f7140 10873fi
c6b750e1 10874
2429c060
PB
10875 fi
10876 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10877 done
10878fi
c6b750e1 10879
7e0f7140
GK
10880if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10881 set dummy strip
10882 if test $build = $target ; then
10883 STRIP_FOR_TARGET="$2"
10884 else
10885 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10886 fi
d3f5afc4
MS
10887else
10888 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10889fi
10890
3a35eeb3
PB
10891else
10892 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10893fi
10894
10895
10896
10897
10898if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10899 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10900 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10901echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10902 if test -x $with_build_time_tools/windres; then
10903 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10904 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10905 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10906echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10907 else
c6b750e1
DJ
10908 echo "$as_me:$LINENO: result: no" >&5
10909echo "${ECHO_T}no" >&6
3a35eeb3 10910 fi
2429c060
PB
10911 elif test $build != $host && test $have_gcc_for_target = yes; then
10912 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10913 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10914 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10915 fi
10916fi
c6b750e1 10917if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10918 # Extract the first word of "windres", so it can be a program name with args.
10919set dummy windres; ac_word=$2
c6b750e1
DJ
10920echo "$as_me:$LINENO: checking for $ac_word" >&5
10921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10922if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10924else
c6b750e1
DJ
10925 case $WINDRES_FOR_TARGET in
10926 [\\/]* | ?:[\\/]*)
2429c060
PB
10927 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10928 ;;
2429c060 10929 *)
c6b750e1
DJ
10930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10931for as_dir in $gcc_cv_tool_dirs
10932do
10933 IFS=$as_save_IFS
10934 test -z "$as_dir" && as_dir=.
10935 for ac_exec_ext in '' $ac_executable_extensions; do
10936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10937 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10939 break 2
10940 fi
10941done
10942done
10943
2429c060
PB
10944 ;;
10945esac
10946fi
c6b750e1
DJ
10947WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10948
2429c060 10949if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10950 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10951echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10952else
c6b750e1
DJ
10953 echo "$as_me:$LINENO: result: no" >&5
10954echo "${ECHO_T}no" >&6
2429c060
PB
10955fi
10956
10957fi
10958if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10959
10960
10961if test -n "$WINDRES_FOR_TARGET"; then
10962 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10963elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10964 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10965fi
10966
10967if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10968 for ncn_progname in windres; do
10969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10970set dummy ${ncn_progname}; ac_word=$2
10971echo "$as_me:$LINENO: checking for $ac_word" >&5
10972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10973if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10975else
10976 if test -n "$WINDRES_FOR_TARGET"; then
10977 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10978else
10979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10980for as_dir in $PATH
10981do
10982 IFS=$as_save_IFS
10983 test -z "$as_dir" && as_dir=.
10984 for ac_exec_ext in '' $ac_executable_extensions; do
10985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10986 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10988 break 2
10989 fi
10990done
10991done
10992
10993fi
10994fi
10995WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10996if test -n "$WINDRES_FOR_TARGET"; then
10997 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10998echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10999else
11000 echo "$as_me:$LINENO: result: no" >&5
11001echo "${ECHO_T}no" >&6
11002fi
11003
11004 done
11005fi
11006
11007if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11008 for ncn_progname in windres; do
c6b750e1
DJ
11009 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11010echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11011 if test -x $with_build_time_tools/${ncn_progname}; then
11012 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11013 echo "$as_me:$LINENO: result: yes" >&5
11014echo "${ECHO_T}yes" >&6
2429c060
PB
11015 break
11016 else
c6b750e1
DJ
11017 echo "$as_me:$LINENO: result: no" >&5
11018echo "${ECHO_T}no" >&6
2429c060
PB
11019 fi
11020 done
11021fi
11022
11023if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11024 for ncn_progname in windres; do
11025 if test -n "$ncn_target_tool_prefix"; then
11026 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11027set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11028echo "$as_me:$LINENO: checking for $ac_word" >&5
11029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11030if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11031 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11032else
55db4b87
PB
11033 if test -n "$WINDRES_FOR_TARGET"; then
11034 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11035else
c6b750e1
DJ
11036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037for as_dir in $PATH
11038do
11039 IFS=$as_save_IFS
11040 test -z "$as_dir" && as_dir=.
11041 for ac_exec_ext in '' $ac_executable_extensions; do
11042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11043 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11045 break 2
11046 fi
11047done
11048done
11049
859789af
AC
11050fi
11051fi
c6b750e1 11052WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 11053if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11054 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11055echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11056else
c6b750e1
DJ
11057 echo "$as_me:$LINENO: result: no" >&5
11058echo "${ECHO_T}no" >&6
859789af
AC
11059fi
11060
2429c060
PB
11061 fi
11062 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11063 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11064set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11065echo "$as_me:$LINENO: checking for $ac_word" >&5
11066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11067if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11069else
05cbd757
PB
11070 if test -n "$WINDRES_FOR_TARGET"; then
11071 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11072else
c6b750e1
DJ
11073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11074for as_dir in $PATH
11075do
11076 IFS=$as_save_IFS
11077 test -z "$as_dir" && as_dir=.
11078 for ac_exec_ext in '' $ac_executable_extensions; do
11079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11080 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11082 break 2
11083 fi
11084done
11085done
11086
859789af
AC
11087fi
11088fi
c6b750e1 11089WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 11090if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11091 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11092echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11093else
c6b750e1
DJ
11094 echo "$as_me:$LINENO: result: no" >&5
11095echo "${ECHO_T}no" >&6
859789af 11096fi
c6b750e1 11097
2429c060
PB
11098 fi
11099 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11100 done
11101fi
c6b750e1 11102
05cbd757
PB
11103if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11104 set dummy windres
11105 if test $build = $target ; then
11106 WINDRES_FOR_TARGET="$2"
859789af 11107 else
05cbd757 11108 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11109 fi
d3f5afc4
MS
11110else
11111 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
11112fi
11113
3a35eeb3
PB
11114else
11115 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
11116fi
11117
852e5f18 11118
0c24b341
NC
11119
11120
11121if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11122 if test -n "$with_build_time_tools"; then
11123 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11124echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11125 if test -x $with_build_time_tools/windmc; then
11126 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11127 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11128 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11129echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11130 else
11131 echo "$as_me:$LINENO: result: no" >&5
11132echo "${ECHO_T}no" >&6
11133 fi
11134 elif test $build != $host && test $have_gcc_for_target = yes; then
11135 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11136 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11137 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11138 fi
11139fi
11140if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11141 # Extract the first word of "windmc", so it can be a program name with args.
11142set dummy windmc; ac_word=$2
11143echo "$as_me:$LINENO: checking for $ac_word" >&5
11144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11145if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11147else
11148 case $WINDMC_FOR_TARGET in
11149 [\\/]* | ?:[\\/]*)
11150 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11151 ;;
11152 *)
11153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11154for as_dir in $gcc_cv_tool_dirs
11155do
11156 IFS=$as_save_IFS
11157 test -z "$as_dir" && as_dir=.
11158 for ac_exec_ext in '' $ac_executable_extensions; do
11159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11160 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11162 break 2
11163 fi
11164done
11165done
11166
11167 ;;
11168esac
11169fi
11170WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11171
11172if test -n "$WINDMC_FOR_TARGET"; then
11173 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11174echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11175else
11176 echo "$as_me:$LINENO: result: no" >&5
11177echo "${ECHO_T}no" >&6
11178fi
11179
11180fi
11181if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11182
11183
11184if test -n "$WINDMC_FOR_TARGET"; then
11185 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11186elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11187 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11188fi
11189
11190if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11191 for ncn_progname in windmc; do
11192 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11193set dummy ${ncn_progname}; ac_word=$2
11194echo "$as_me:$LINENO: checking for $ac_word" >&5
11195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11196if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11198else
11199 if test -n "$WINDMC_FOR_TARGET"; then
11200 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11201else
11202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203for as_dir in $PATH
11204do
11205 IFS=$as_save_IFS
11206 test -z "$as_dir" && as_dir=.
11207 for ac_exec_ext in '' $ac_executable_extensions; do
11208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11209 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11211 break 2
11212 fi
11213done
11214done
11215
11216fi
11217fi
11218WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11219if test -n "$WINDMC_FOR_TARGET"; then
11220 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11221echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11222else
11223 echo "$as_me:$LINENO: result: no" >&5
11224echo "${ECHO_T}no" >&6
11225fi
11226
11227 done
11228fi
11229
11230if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11231 for ncn_progname in windmc; do
11232 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11233echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11234 if test -x $with_build_time_tools/${ncn_progname}; then
11235 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11236 echo "$as_me:$LINENO: result: yes" >&5
11237echo "${ECHO_T}yes" >&6
11238 break
11239 else
11240 echo "$as_me:$LINENO: result: no" >&5
11241echo "${ECHO_T}no" >&6
11242 fi
11243 done
11244fi
11245
11246if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11247 for ncn_progname in windmc; do
11248 if test -n "$ncn_target_tool_prefix"; then
11249 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11250set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11251echo "$as_me:$LINENO: checking for $ac_word" >&5
11252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11253if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11255else
11256 if test -n "$WINDMC_FOR_TARGET"; then
11257 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11258else
11259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260for as_dir in $PATH
11261do
11262 IFS=$as_save_IFS
11263 test -z "$as_dir" && as_dir=.
11264 for ac_exec_ext in '' $ac_executable_extensions; do
11265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11266 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11268 break 2
11269 fi
11270done
11271done
11272
11273fi
11274fi
11275WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11276if test -n "$WINDMC_FOR_TARGET"; then
11277 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11278echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11279else
11280 echo "$as_me:$LINENO: result: no" >&5
11281echo "${ECHO_T}no" >&6
11282fi
11283
11284 fi
11285 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11286 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11287set dummy ${ncn_progname}; ac_word=$2
11288echo "$as_me:$LINENO: checking for $ac_word" >&5
11289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11290if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11292else
11293 if test -n "$WINDMC_FOR_TARGET"; then
11294 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11295else
11296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297for as_dir in $PATH
11298do
11299 IFS=$as_save_IFS
11300 test -z "$as_dir" && as_dir=.
11301 for ac_exec_ext in '' $ac_executable_extensions; do
11302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11303 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11305 break 2
11306 fi
11307done
11308done
11309
11310fi
11311fi
11312WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11313if test -n "$WINDMC_FOR_TARGET"; then
11314 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11315echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11316else
11317 echo "$as_me:$LINENO: result: no" >&5
11318echo "${ECHO_T}no" >&6
11319fi
11320
11321 fi
11322 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11323 done
11324fi
11325
11326if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11327 set dummy windmc
11328 if test $build = $target ; then
11329 WINDMC_FOR_TARGET="$2"
11330 else
11331 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11332 fi
11333else
11334 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11335fi
11336
11337else
11338 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11339fi
11340
11341
be01d343
PB
11342RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11343
c6b750e1
DJ
11344echo "$as_me:$LINENO: checking where to find the target ar" >&5
11345echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11346if test "x${build}" != "x${host}" ; then
2429c060
PB
11347 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11348 # We already found the complete path
b8025f34
AS
11349 ac_dir=`dirname $AR_FOR_TARGET`
11350 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11351echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11352 else
11353 # Canadian cross, just use what we found
c6b750e1
DJ
11354 echo "$as_me:$LINENO: result: pre-installed" >&5
11355echo "${ECHO_T}pre-installed" >&6
2429c060 11356 fi
be01d343
PB
11357else
11358 ok=yes
11359 case " ${configdirs} " in
11360 *" binutils "*) ;;
11361 *) ok=no ;;
11362 esac
c6b750e1 11363
be01d343
PB
11364 if test $ok = yes; then
11365 # An in-tree tool is available and we can use it
11366 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11367 echo "$as_me:$LINENO: result: just compiled" >&5
11368echo "${ECHO_T}just compiled" >&6
2429c060
PB
11369 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11370 # We already found the complete path
b8025f34
AS
11371 ac_dir=`dirname $AR_FOR_TARGET`
11372 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11373echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11374 elif test "x$target" = "x$host"; then
11375 # We can use an host tool
11376 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11377 echo "$as_me:$LINENO: result: host tool" >&5
11378echo "${ECHO_T}host tool" >&6
be01d343
PB
11379 else
11380 # We need a cross tool
c6b750e1
DJ
11381 echo "$as_me:$LINENO: result: pre-installed" >&5
11382echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11383 fi
11384fi
4b900473 11385
c6b750e1
DJ
11386echo "$as_me:$LINENO: checking where to find the target as" >&5
11387echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11388if test "x${build}" != "x${host}" ; then
2429c060
PB
11389 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11390 # We already found the complete path
b8025f34
AS
11391 ac_dir=`dirname $AS_FOR_TARGET`
11392 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11393echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11394 else
11395 # Canadian cross, just use what we found
c6b750e1
DJ
11396 echo "$as_me:$LINENO: result: pre-installed" >&5
11397echo "${ECHO_T}pre-installed" >&6
2429c060 11398 fi
be01d343
PB
11399else
11400 ok=yes
11401 case " ${configdirs} " in
11402 *" gas "*) ;;
11403 *) ok=no ;;
11404 esac
c6b750e1 11405
be01d343
PB
11406 if test $ok = yes; then
11407 # An in-tree tool is available and we can use it
11408 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11409 echo "$as_me:$LINENO: result: just compiled" >&5
11410echo "${ECHO_T}just compiled" >&6
2429c060
PB
11411 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11412 # We already found the complete path
b8025f34
AS
11413 ac_dir=`dirname $AS_FOR_TARGET`
11414 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11415echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11416 elif test "x$target" = "x$host"; then
11417 # We can use an host tool
11418 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11419 echo "$as_me:$LINENO: result: host tool" >&5
11420echo "${ECHO_T}host tool" >&6
be01d343
PB
11421 else
11422 # We need a cross tool
c6b750e1
DJ
11423 echo "$as_me:$LINENO: result: pre-installed" >&5
11424echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11425 fi
11426fi
4b900473 11427
c6b750e1
DJ
11428echo "$as_me:$LINENO: checking where to find the target cc" >&5
11429echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11430if test "x${build}" != "x${host}" ; then
2429c060
PB
11431 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11432 # We already found the complete path
b8025f34
AS
11433 ac_dir=`dirname $CC_FOR_TARGET`
11434 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11435echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11436 else
11437 # Canadian cross, just use what we found
c6b750e1
DJ
11438 echo "$as_me:$LINENO: result: pre-installed" >&5
11439echo "${ECHO_T}pre-installed" >&6
2429c060 11440 fi
be01d343
PB
11441else
11442 ok=yes
11443 case " ${configdirs} " in
11444 *" gcc "*) ;;
11445 *) ok=no ;;
11446 esac
c6b750e1 11447
be01d343
PB
11448 if test $ok = yes; then
11449 # An in-tree tool is available and we can use it
11450 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11451 echo "$as_me:$LINENO: result: just compiled" >&5
11452echo "${ECHO_T}just compiled" >&6
2429c060
PB
11453 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11454 # We already found the complete path
b8025f34
AS
11455 ac_dir=`dirname $CC_FOR_TARGET`
11456 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11457echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11458 elif test "x$target" = "x$host"; then
11459 # We can use an host tool
11460 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11461 echo "$as_me:$LINENO: result: host tool" >&5
11462echo "${ECHO_T}host tool" >&6
be01d343
PB
11463 else
11464 # We need a cross tool
c6b750e1
DJ
11465 echo "$as_me:$LINENO: result: pre-installed" >&5
11466echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11467 fi
11468fi
4b900473 11469
c6b750e1
DJ
11470echo "$as_me:$LINENO: checking where to find the target c++" >&5
11471echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11472if test "x${build}" != "x${host}" ; then
2429c060
PB
11473 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11474 # We already found the complete path
b8025f34
AS
11475 ac_dir=`dirname $CXX_FOR_TARGET`
11476 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11477echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11478 else
11479 # Canadian cross, just use what we found
c6b750e1
DJ
11480 echo "$as_me:$LINENO: result: pre-installed" >&5
11481echo "${ECHO_T}pre-installed" >&6
2429c060 11482 fi
be01d343
PB
11483else
11484 ok=yes
11485 case " ${configdirs} " in
11486 *" gcc "*) ;;
11487 *) ok=no ;;
11488 esac
11489 case ,${enable_languages}, in
11490 *,c++,*) ;;
11491 *) ok=no ;;
11492 esac
11493 if test $ok = yes; then
11494 # An in-tree tool is available and we can use it
11495 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
11496 echo "$as_me:$LINENO: result: just compiled" >&5
11497echo "${ECHO_T}just compiled" >&6
2429c060
PB
11498 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11499 # We already found the complete path
b8025f34
AS
11500 ac_dir=`dirname $CXX_FOR_TARGET`
11501 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11502echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11503 elif test "x$target" = "x$host"; then
11504 # We can use an host tool
11505 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11506 echo "$as_me:$LINENO: result: host tool" >&5
11507echo "${ECHO_T}host tool" >&6
be01d343
PB
11508 else
11509 # We need a cross tool
c6b750e1
DJ
11510 echo "$as_me:$LINENO: result: pre-installed" >&5
11511echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11512 fi
11513fi
4b900473 11514
c6b750e1
DJ
11515echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11516echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11517if test "x${build}" != "x${host}" ; then
2429c060
PB
11518 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11519 # We already found the complete path
b8025f34
AS
11520 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11521 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11522echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11523 else
11524 # Canadian cross, just use what we found
c6b750e1
DJ
11525 echo "$as_me:$LINENO: result: pre-installed" >&5
11526echo "${ECHO_T}pre-installed" >&6
2429c060 11527 fi
be01d343
PB
11528else
11529 ok=yes
11530 case " ${configdirs} " in
11531 *" gcc "*) ;;
11532 *) ok=no ;;
11533 esac
11534 case ,${enable_languages}, in
11535 *,c++,*) ;;
11536 *) ok=no ;;
11537 esac
11538 if test $ok = yes; then
11539 # An in-tree tool is available and we can use it
11540 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
11541 echo "$as_me:$LINENO: result: just compiled" >&5
11542echo "${ECHO_T}just compiled" >&6
2429c060
PB
11543 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11544 # We already found the complete path
b8025f34
AS
11545 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11546 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11547echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11548 elif test "x$target" = "x$host"; then
11549 # We can use an host tool
11550 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11551 echo "$as_me:$LINENO: result: host tool" >&5
11552echo "${ECHO_T}host tool" >&6
be01d343
PB
11553 else
11554 # We need a cross tool
c6b750e1
DJ
11555 echo "$as_me:$LINENO: result: pre-installed" >&5
11556echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11557 fi
11558fi
4b900473 11559
c6b750e1
DJ
11560echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11561echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11562if test "x${build}" != "x${host}" ; then
2429c060
PB
11563 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11564 # We already found the complete path
b8025f34
AS
11565 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11566 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11567echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11568 else
11569 # Canadian cross, just use what we found
c6b750e1
DJ
11570 echo "$as_me:$LINENO: result: pre-installed" >&5
11571echo "${ECHO_T}pre-installed" >&6
2429c060 11572 fi
be01d343
PB
11573else
11574 ok=yes
11575 case " ${configdirs} " in
11576 *" binutils "*) ;;
11577 *) ok=no ;;
11578 esac
c6b750e1 11579
be01d343
PB
11580 if test $ok = yes; then
11581 # An in-tree tool is available and we can use it
11582 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11583 echo "$as_me:$LINENO: result: just compiled" >&5
11584echo "${ECHO_T}just compiled" >&6
2429c060
PB
11585 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11586 # We already found the complete path
b8025f34
AS
11587 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11588 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11589echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11590 elif test "x$target" = "x$host"; then
11591 # We can use an host tool
11592 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11593 echo "$as_me:$LINENO: result: host tool" >&5
11594echo "${ECHO_T}host tool" >&6
be01d343
PB
11595 else
11596 # We need a cross tool
c6b750e1
DJ
11597 echo "$as_me:$LINENO: result: pre-installed" >&5
11598echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11599 fi
11600fi
4b900473 11601
c6b750e1
DJ
11602echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11603echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11604if test "x${build}" != "x${host}" ; then
2429c060
PB
11605 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11606 # We already found the complete path
b8025f34
AS
11607 ac_dir=`dirname $GCC_FOR_TARGET`
11608 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11609echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11610 else
11611 # Canadian cross, just use what we found
c6b750e1
DJ
11612 echo "$as_me:$LINENO: result: pre-installed" >&5
11613echo "${ECHO_T}pre-installed" >&6
2429c060 11614 fi
be01d343
PB
11615else
11616 ok=yes
11617 case " ${configdirs} " in
11618 *" gcc "*) ;;
11619 *) ok=no ;;
11620 esac
c6b750e1 11621
be01d343
PB
11622 if test $ok = yes; then
11623 # An in-tree tool is available and we can use it
11624 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11625 echo "$as_me:$LINENO: result: just compiled" >&5
11626echo "${ECHO_T}just compiled" >&6
2429c060
PB
11627 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11628 # We already found the complete path
b8025f34
AS
11629 ac_dir=`dirname $GCC_FOR_TARGET`
11630 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11631echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11632 elif test "x$target" = "x$host"; then
11633 # We can use an host tool
11634 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11635 echo "$as_me:$LINENO: result: host tool" >&5
11636echo "${ECHO_T}host tool" >&6
be01d343
PB
11637 else
11638 # We need a cross tool
c6b750e1
DJ
11639 echo "$as_me:$LINENO: result: pre-installed" >&5
11640echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11641 fi
11642fi
4b900473 11643
c6b750e1
DJ
11644echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11645echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11646if test "x${build}" != "x${host}" ; then
2429c060
PB
11647 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11648 # We already found the complete path
b8025f34
AS
11649 ac_dir=`dirname $GCJ_FOR_TARGET`
11650 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11651echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11652 else
11653 # Canadian cross, just use what we found
c6b750e1
DJ
11654 echo "$as_me:$LINENO: result: pre-installed" >&5
11655echo "${ECHO_T}pre-installed" >&6
2429c060 11656 fi
be01d343
PB
11657else
11658 ok=yes
11659 case " ${configdirs} " in
11660 *" gcc "*) ;;
11661 *) ok=no ;;
11662 esac
11663 case ,${enable_languages}, in
11664 *,java,*) ;;
11665 *) ok=no ;;
11666 esac
11667 if test $ok = yes; then
11668 # An in-tree tool is available and we can use it
11669 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11670 echo "$as_me:$LINENO: result: just compiled" >&5
11671echo "${ECHO_T}just compiled" >&6
2429c060
PB
11672 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11673 # We already found the complete path
b8025f34
AS
11674 ac_dir=`dirname $GCJ_FOR_TARGET`
11675 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11676echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11677 elif test "x$target" = "x$host"; then
11678 # We can use an host tool
11679 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11680 echo "$as_me:$LINENO: result: host tool" >&5
11681echo "${ECHO_T}host tool" >&6
be01d343
PB
11682 else
11683 # We need a cross tool
c6b750e1
DJ
11684 echo "$as_me:$LINENO: result: pre-installed" >&5
11685echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11686 fi
11687fi
4b900473 11688
c6b750e1
DJ
11689echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11690echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11691if test "x${build}" != "x${host}" ; then
2429c060
PB
11692 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11693 # We already found the complete path
b8025f34
AS
11694 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11695 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11696echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11697 else
11698 # Canadian cross, just use what we found
c6b750e1
DJ
11699 echo "$as_me:$LINENO: result: pre-installed" >&5
11700echo "${ECHO_T}pre-installed" >&6
2429c060 11701 fi
be01d343
PB
11702else
11703 ok=yes
11704 case " ${configdirs} " in
11705 *" gcc "*) ;;
11706 *) ok=no ;;
11707 esac
11708 case ,${enable_languages}, in
11709 *,fortran,*) ;;
11710 *) ok=no ;;
11711 esac
11712 if test $ok = yes; then
11713 # An in-tree tool is available and we can use it
11714 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11715 echo "$as_me:$LINENO: result: just compiled" >&5
11716echo "${ECHO_T}just compiled" >&6
2429c060
PB
11717 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11718 # We already found the complete path
b8025f34
AS
11719 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11720 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11721echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11722 elif test "x$target" = "x$host"; then
11723 # We can use an host tool
11724 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11725 echo "$as_me:$LINENO: result: host tool" >&5
11726echo "${ECHO_T}host tool" >&6
be01d343
PB
11727 else
11728 # We need a cross tool
c6b750e1
DJ
11729 echo "$as_me:$LINENO: result: pre-installed" >&5
11730echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11731 fi
11732fi
4b900473 11733
c6b750e1
DJ
11734echo "$as_me:$LINENO: checking where to find the target ld" >&5
11735echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11736if test "x${build}" != "x${host}" ; then
2429c060
PB
11737 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11738 # We already found the complete path
b8025f34
AS
11739 ac_dir=`dirname $LD_FOR_TARGET`
11740 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11741echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11742 else
11743 # Canadian cross, just use what we found
c6b750e1
DJ
11744 echo "$as_me:$LINENO: result: pre-installed" >&5
11745echo "${ECHO_T}pre-installed" >&6
2429c060 11746 fi
be01d343
PB
11747else
11748 ok=yes
11749 case " ${configdirs} " in
11750 *" ld "*) ;;
11751 *) ok=no ;;
11752 esac
c6b750e1 11753
be01d343
PB
11754 if test $ok = yes; then
11755 # An in-tree tool is available and we can use it
11756 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11757 echo "$as_me:$LINENO: result: just compiled" >&5
11758echo "${ECHO_T}just compiled" >&6
2429c060
PB
11759 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11760 # We already found the complete path
b8025f34
AS
11761 ac_dir=`dirname $LD_FOR_TARGET`
11762 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11763echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11764 elif test "x$target" = "x$host"; then
11765 # We can use an host tool
11766 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11767 echo "$as_me:$LINENO: result: host tool" >&5
11768echo "${ECHO_T}host tool" >&6
be01d343
PB
11769 else
11770 # We need a cross tool
c6b750e1
DJ
11771 echo "$as_me:$LINENO: result: pre-installed" >&5
11772echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11773 fi
11774fi
4b900473 11775
c6b750e1
DJ
11776echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11777echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11778if test "x${build}" != "x${host}" ; then
2429c060
PB
11779 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11780 # We already found the complete path
b8025f34
AS
11781 ac_dir=`dirname $LIPO_FOR_TARGET`
11782 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11783echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11784 else
11785 # Canadian cross, just use what we found
c6b750e1
DJ
11786 echo "$as_me:$LINENO: result: pre-installed" >&5
11787echo "${ECHO_T}pre-installed" >&6
2429c060 11788 fi
be01d343 11789else
2429c060
PB
11790 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11791 # We already found the complete path
b8025f34
AS
11792 ac_dir=`dirname $LIPO_FOR_TARGET`
11793 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11794echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11795 elif test "x$target" = "x$host"; then
be01d343
PB
11796 # We can use an host tool
11797 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11798 echo "$as_me:$LINENO: result: host tool" >&5
11799echo "${ECHO_T}host tool" >&6
be01d343
PB
11800 else
11801 # We need a cross tool
c6b750e1
DJ
11802 echo "$as_me:$LINENO: result: pre-installed" >&5
11803echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11804 fi
11805fi
4b900473 11806
c6b750e1
DJ
11807echo "$as_me:$LINENO: checking where to find the target nm" >&5
11808echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11809if test "x${build}" != "x${host}" ; then
2429c060
PB
11810 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11811 # We already found the complete path
b8025f34
AS
11812 ac_dir=`dirname $NM_FOR_TARGET`
11813 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11814echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11815 else
11816 # Canadian cross, just use what we found
c6b750e1
DJ
11817 echo "$as_me:$LINENO: result: pre-installed" >&5
11818echo "${ECHO_T}pre-installed" >&6
2429c060 11819 fi
be01d343
PB
11820else
11821 ok=yes
11822 case " ${configdirs} " in
11823 *" binutils "*) ;;
11824 *) ok=no ;;
11825 esac
c6b750e1 11826
be01d343
PB
11827 if test $ok = yes; then
11828 # An in-tree tool is available and we can use it
11829 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11830 echo "$as_me:$LINENO: result: just compiled" >&5
11831echo "${ECHO_T}just compiled" >&6
2429c060
PB
11832 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11833 # We already found the complete path
b8025f34
AS
11834 ac_dir=`dirname $NM_FOR_TARGET`
11835 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11836echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11837 elif test "x$target" = "x$host"; then
11838 # We can use an host tool
11839 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11840 echo "$as_me:$LINENO: result: host tool" >&5
11841echo "${ECHO_T}host tool" >&6
be01d343
PB
11842 else
11843 # We need a cross tool
c6b750e1
DJ
11844 echo "$as_me:$LINENO: result: pre-installed" >&5
11845echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11846 fi
11847fi
4b900473 11848
c6b750e1
DJ
11849echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11850echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11851if test "x${build}" != "x${host}" ; then
2429c060
PB
11852 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11853 # We already found the complete path
b8025f34
AS
11854 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11855 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11856echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11857 else
11858 # Canadian cross, just use what we found
c6b750e1
DJ
11859 echo "$as_me:$LINENO: result: pre-installed" >&5
11860echo "${ECHO_T}pre-installed" >&6
2429c060 11861 fi
be01d343
PB
11862else
11863 ok=yes
11864 case " ${configdirs} " in
11865 *" binutils "*) ;;
11866 *) ok=no ;;
11867 esac
c6b750e1 11868
be01d343
PB
11869 if test $ok = yes; then
11870 # An in-tree tool is available and we can use it
11871 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11872 echo "$as_me:$LINENO: result: just compiled" >&5
11873echo "${ECHO_T}just compiled" >&6
2429c060
PB
11874 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11875 # We already found the complete path
b8025f34
AS
11876 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11877 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11878echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11879 elif test "x$target" = "x$host"; then
11880 # We can use an host tool
11881 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11882 echo "$as_me:$LINENO: result: host tool" >&5
11883echo "${ECHO_T}host tool" >&6
be01d343
PB
11884 else
11885 # We need a cross tool
c6b750e1
DJ
11886 echo "$as_me:$LINENO: result: pre-installed" >&5
11887echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11888 fi
11889fi
4b900473 11890
c6b750e1
DJ
11891echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11892echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11893if test "x${build}" != "x${host}" ; then
2429c060
PB
11894 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11895 # We already found the complete path
b8025f34
AS
11896 ac_dir=`dirname $RANLIB_FOR_TARGET`
11897 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11898echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11899 else
11900 # Canadian cross, just use what we found
c6b750e1
DJ
11901 echo "$as_me:$LINENO: result: pre-installed" >&5
11902echo "${ECHO_T}pre-installed" >&6
2429c060 11903 fi
be01d343
PB
11904else
11905 ok=yes
11906 case " ${configdirs} " in
11907 *" binutils "*) ;;
11908 *) ok=no ;;
11909 esac
c6b750e1 11910
be01d343
PB
11911 if test $ok = yes; then
11912 # An in-tree tool is available and we can use it
11913 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11914 echo "$as_me:$LINENO: result: just compiled" >&5
11915echo "${ECHO_T}just compiled" >&6
2429c060
PB
11916 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11917 # We already found the complete path
b8025f34
AS
11918 ac_dir=`dirname $RANLIB_FOR_TARGET`
11919 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11920echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11921 elif test "x$target" = "x$host"; then
11922 # We can use an host tool
11923 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11924 echo "$as_me:$LINENO: result: host tool" >&5
11925echo "${ECHO_T}host tool" >&6
be01d343
PB
11926 else
11927 # We need a cross tool
c6b750e1
DJ
11928 echo "$as_me:$LINENO: result: pre-installed" >&5
11929echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11930 fi
11931fi
4b900473 11932
c6b750e1
DJ
11933echo "$as_me:$LINENO: checking where to find the target strip" >&5
11934echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11935if test "x${build}" != "x${host}" ; then
2429c060
PB
11936 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11937 # We already found the complete path
b8025f34
AS
11938 ac_dir=`dirname $STRIP_FOR_TARGET`
11939 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11940echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11941 else
11942 # Canadian cross, just use what we found
c6b750e1
DJ
11943 echo "$as_me:$LINENO: result: pre-installed" >&5
11944echo "${ECHO_T}pre-installed" >&6
2429c060 11945 fi
be01d343
PB
11946else
11947 ok=yes
11948 case " ${configdirs} " in
11949 *" binutils "*) ;;
11950 *) ok=no ;;
11951 esac
c6b750e1 11952
be01d343
PB
11953 if test $ok = yes; then
11954 # An in-tree tool is available and we can use it
11955 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11956 echo "$as_me:$LINENO: result: just compiled" >&5
11957echo "${ECHO_T}just compiled" >&6
2429c060
PB
11958 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11959 # We already found the complete path
b8025f34
AS
11960 ac_dir=`dirname $STRIP_FOR_TARGET`
11961 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11962echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11963 elif test "x$target" = "x$host"; then
11964 # We can use an host tool
11965 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11966 echo "$as_me:$LINENO: result: host tool" >&5
11967echo "${ECHO_T}host tool" >&6
be01d343
PB
11968 else
11969 # We need a cross tool
c6b750e1
DJ
11970 echo "$as_me:$LINENO: result: pre-installed" >&5
11971echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11972 fi
11973fi
4b900473 11974
c6b750e1
DJ
11975echo "$as_me:$LINENO: checking where to find the target windres" >&5
11976echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 11977if test "x${build}" != "x${host}" ; then
2429c060
PB
11978 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11979 # We already found the complete path
b8025f34
AS
11980 ac_dir=`dirname $WINDRES_FOR_TARGET`
11981 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11982echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11983 else
11984 # Canadian cross, just use what we found
c6b750e1
DJ
11985 echo "$as_me:$LINENO: result: pre-installed" >&5
11986echo "${ECHO_T}pre-installed" >&6
2429c060 11987 fi
be01d343
PB
11988else
11989 ok=yes
11990 case " ${configdirs} " in
11991 *" binutils "*) ;;
11992 *) ok=no ;;
11993 esac
c6b750e1 11994
be01d343
PB
11995 if test $ok = yes; then
11996 # An in-tree tool is available and we can use it
11997 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
11998 echo "$as_me:$LINENO: result: just compiled" >&5
11999echo "${ECHO_T}just compiled" >&6
2429c060
PB
12000 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12001 # We already found the complete path
b8025f34
AS
12002 ac_dir=`dirname $WINDRES_FOR_TARGET`
12003 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12004echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12005 elif test "x$target" = "x$host"; then
12006 # We can use an host tool
12007 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
12008 echo "$as_me:$LINENO: result: host tool" >&5
12009echo "${ECHO_T}host tool" >&6
be01d343
PB
12010 else
12011 # We need a cross tool
c6b750e1
DJ
12012 echo "$as_me:$LINENO: result: pre-installed" >&5
12013echo "${ECHO_T}pre-installed" >&6
be01d343 12014 fi
a0da8069 12015fi
54752a6b 12016
0c24b341
NC
12017echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12018echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12019if test "x${build}" != "x${host}" ; then
12020 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12021 # We already found the complete path
12022 ac_dir=`dirname $WINDMC_FOR_TARGET`
12023 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12024echo "${ECHO_T}pre-installed in $ac_dir" >&6
12025 else
12026 # Canadian cross, just use what we found
12027 echo "$as_me:$LINENO: result: pre-installed" >&5
12028echo "${ECHO_T}pre-installed" >&6
12029 fi
12030else
12031 ok=yes
12032 case " ${configdirs} " in
12033 *" binutils "*) ;;
12034 *) ok=no ;;
12035 esac
12036
12037 if test $ok = yes; then
12038 # An in-tree tool is available and we can use it
12039 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12040 echo "$as_me:$LINENO: result: just compiled" >&5
12041echo "${ECHO_T}just compiled" >&6
12042 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12043 # We already found the complete path
12044 ac_dir=`dirname $WINDMC_FOR_TARGET`
12045 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12046echo "${ECHO_T}pre-installed in $ac_dir" >&6
12047 elif test "x$target" = "x$host"; then
12048 # We can use an host tool
12049 WINDMC_FOR_TARGET='$(WINDMC)'
12050 echo "$as_me:$LINENO: result: host tool" >&5
12051echo "${ECHO_T}host tool" >&6
12052 else
12053 # We need a cross tool
12054 echo "$as_me:$LINENO: result: pre-installed" >&5
12055echo "${ECHO_T}pre-installed" >&6
12056 fi
12057fi
12058
54752a6b
NN
12059
12060
be01d343 12061
4b900473 12062
a0da8069
NN
12063# Certain tools may need extra flags.
12064AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12065RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12066NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12067
be01d343
PB
12068# When building target libraries, except in a Canadian cross, we use
12069# the same toolchain as the compiler we just built.
12070COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12071COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12072COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12073if test $host = $build; then
12074 case " $configdirs " in
12075 *" gcc "*)
12076 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12077 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12078 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12079 ;;
12080 esac
12081fi
12082
12083
12084
12085
12086
c6b750e1
DJ
12087echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12088echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
12089# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12090if test "${enable_maintainer_mode+set}" = set; then
12091 enableval="$enable_maintainer_mode"
12092 USE_MAINTAINER_MODE=$enableval
12093else
12094 USE_MAINTAINER_MODE=no
c6b750e1
DJ
12095fi;
12096echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12097echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
12098
12099
12100if test "$USE_MAINTAINER_MODE" = yes; then
12101 MAINTAINER_MODE_TRUE=
12102 MAINTAINER_MODE_FALSE='#'
12103else
12104 MAINTAINER_MODE_TRUE='#'
12105 MAINTAINER_MODE_FALSE=
c6b750e1 12106fi
3d5e36ae
AO
12107MAINT=$MAINTAINER_MODE_TRUE
12108
1d39f329
NN
12109# ---------------------
12110# GCC bootstrap support
12111# ---------------------
12112
12113# Stage specific cflags for build.
12114stage1_cflags="-g"
12115case $build in
12116 vax-*-*)
12117 case ${GCC} in
12118 yes) stage1_cflags="-g -Wa,-J" ;;
12119 *) stage1_cflags="-g -J" ;;
12120 esac ;;
1d39f329
NN
12121esac
12122
1d89b610
PB
12123# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12124if test "$GCC" = yes; then
12125 saved_CFLAGS="$CFLAGS"
12126
12127 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12128 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
12129 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12130echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12131 cat >conftest.$ac_ext <<_ACEOF
12132/* confdefs.h. */
12133_ACEOF
12134cat confdefs.h >>conftest.$ac_ext
12135cat >>conftest.$ac_ext <<_ACEOF
12136/* end confdefs.h. */
12137
2038f525
PB
12138#if (__GNUC__ < 3) \
12139 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12140 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12141#error http://gcc.gnu.org/PR29382
12142#endif
12143
c6b750e1
DJ
12144int
12145main ()
12146{
12147
12148 ;
12149 return 0;
12150}
12151_ACEOF
12152rm -f conftest.$ac_objext
12153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12154 (eval $ac_compile) 2>conftest.er1
12155 ac_status=$?
12156 grep -v '^ *+' conftest.er1 >conftest.err
12157 rm -f conftest.er1
12158 cat conftest.err >&5
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); } &&
12161 { ac_try='test -z "$ac_c_werror_flag"
12162 || test ! -s conftest.err'
12163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164 (eval $ac_try) 2>&5
12165 ac_status=$?
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); }; } &&
12168 { ac_try='test -s conftest.$ac_objext'
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12171 ac_status=$?
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; }; then
12174 echo "$as_me:$LINENO: result: yes" >&5
12175echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12176else
12177 echo "$as_me: failed program was:" >&5
12178sed 's/^/| /' conftest.$ac_ext >&5
12179
12180echo "$as_me:$LINENO: result: no" >&5
12181echo "${ECHO_T}no" >&6
12182fi
12183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12184
12185 CFLAGS="$saved_CFLAGS"
12186fi
12187
12188
1d39f329 12189
8a0d8a5c
PB
12190# Enable --enable-checking in stage1 of the compiler.
12191# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12192if test "${enable_stage1_checking+set}" = set; then
12193 enableval="$enable_stage1_checking"
12194 stage1_checking=--enable-checking=${enable_stage1_checking}
12195else
5566c1fa 12196 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12197 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12198else
5566c1fa 12199 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12200fi
c6b750e1 12201fi;
8a0d8a5c
PB
12202
12203
1d39f329 12204# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12205# Check whether --enable-werror or --disable-werror was given.
12206if test "${enable_werror+set}" = set; then
12207 enableval="$enable_werror"
c6b750e1 12208
1d39f329 12209else
a0323144 12210 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12211 enable_werror=yes
79fcd0ec
PB
12212else
12213 enable_werror=no
12214fi
c6b750e1 12215fi;
1a6f2dc7
NN
12216case ${enable_werror} in
12217 yes) stage2_werror_flag="--enable-werror-always" ;;
12218 *) stage2_werror_flag="" ;;
1d39f329
NN
12219esac
12220
12221
108a6f8e 12222# Flags needed to enable html installing and building
c6b750e1 12223
108a6f8e
CD
12224# Check whether --with-datarootdir or --without-datarootdir was given.
12225if test "${with_datarootdir+set}" = set; then
12226 withval="$with_datarootdir"
12227 datarootdir="\${prefix}/${withval}"
12228else
12229 datarootdir="\${prefix}/share"
c6b750e1 12230fi;
108a6f8e
CD
12231
12232
12233# Check whether --with-docdir or --without-docdir was given.
12234if test "${with_docdir+set}" = set; then
12235 withval="$with_docdir"
12236 docdir="\${prefix}/${withval}"
12237else
12238 docdir="\${datarootdir}/doc"
c6b750e1 12239fi;
108a6f8e
CD
12240
12241
a3ca38d2
DD
12242# Check whether --with-pdfdir or --without-pdfdir was given.
12243if test "${with_pdfdir+set}" = set; then
12244 withval="$with_pdfdir"
12245 pdfdir="\${prefix}/${withval}"
12246else
12247 pdfdir="\${docdir}"
12248fi;
12249
12250
108a6f8e
CD
12251# Check whether --with-htmldir or --without-htmldir was given.
12252if test "${with_htmldir+set}" = set; then
12253 withval="$with_htmldir"
12254 htmldir="\${prefix}/${withval}"
12255else
12256 htmldir="\${docdir}"
c6b750e1 12257fi;
108a6f8e
CD
12258
12259
12260
12261
12262
b8025f34 12263
c6b750e1
DJ
12264 ac_config_files="$ac_config_files Makefile"
12265cat >confcache <<\_ACEOF
a0da8069
NN
12266# This file is a shell script that caches the results of configure
12267# tests run on this system so they can be shared between configure
c6b750e1
DJ
12268# scripts and configure runs, see configure's option --config-cache.
12269# It is not useful on other systems. If it contains results you don't
12270# want to keep, you may remove or edit it.
a0da8069 12271#
c6b750e1
DJ
12272# config.status only pays attention to the cache file if you give it
12273# the --recheck option to rerun configure.
a0da8069 12274#
c6b750e1
DJ
12275# `ac_cv_env_foo' variables (set or unset) will be overridden when
12276# loading this file, other *unset* `ac_cv_foo' will be assigned the
12277# following values.
12278
12279_ACEOF
12280
a0da8069
NN
12281# The following way of writing the cache mishandles newlines in values,
12282# but we know of no workaround that is simple, portable, and efficient.
12283# So, don't put newlines in cache variables' values.
12284# Ultrix sh set writes to stderr and can't be redirected directly,
12285# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12286{
12287 (set) 2>&1 |
12288 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12289 *ac_space=\ *)
12290 # `set' does not quote correctly, so add quotes (double-quote
12291 # substitution turns \\\\ into \\, and sed turns \\ into \).
12292 sed -n \
12293 "s/'/'\\\\''/g;
12294 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12295 ;;
12296 *)
12297 # `set' quotes correctly as required by POSIX, so do not add quotes.
12298 sed -n \
12299 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12300 ;;
12301 esac;
12302} |
12303 sed '
12304 t clear
12305 : clear
12306 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12307 t end
12308 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12309 : end' >>confcache
12310if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12311 if test -w $cache_file; then
c6b750e1
DJ
12312 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12313 cat confcache >$cache_file
a0da8069
NN
12314 else
12315 echo "not updating unwritable cache $cache_file"
12316 fi
852e5f18 12317fi
a0da8069 12318rm -f confcache
852e5f18 12319
a0da8069
NN
12320test "x$prefix" = xNONE && prefix=$ac_default_prefix
12321# Let make expand exec_prefix.
12322test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12323
c6b750e1
DJ
12324# VPATH may cause trouble with some makes, so we remove $(srcdir),
12325# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12326# trailing colons and then remove the whole line if VPATH becomes empty
12327# (actually we leave an empty line to preserve line numbers).
a0da8069 12328if test "x$srcdir" = x.; then
c6b750e1
DJ
12329 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12330s/:*\$(srcdir):*/:/;
12331s/:*\${srcdir}:*/:/;
12332s/:*@srcdir@:*/:/;
12333s/^\([^=]*=[ ]*\):*/\1/;
12334s/:*$//;
12335s/^[^=]*=[ ]*$//;
12336}'
a0da8069 12337fi
252b5132 12338
a0da8069
NN
12339# Transform confdefs.h into DEFS.
12340# Protect against shell expansion while executing Makefile rules.
12341# Protect against Makefile macro expansion.
c6b750e1
DJ
12342#
12343# If the first sed substitution is executed (which looks for macros that
12344# take arguments), then we branch to the quote section. Otherwise,
12345# look for a macro that doesn't take arguments.
12346cat >confdef2opt.sed <<\_ACEOF
12347t clear
12348: clear
12349s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12350t quote
12351s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12352t quote
12353d
12354: quote
12355s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12356s,\[,\\&,g
12357s,\],\\&,g
12358s,\$,$$,g
12359p
12360_ACEOF
12361# We use echo to avoid assuming a particular line-breaking character.
12362# The extra dot is to prevent the shell from consuming trailing
12363# line-breaks from the sub-command output. A line-break within
12364# single-quotes doesn't work because, if this script is created in a
12365# platform that uses two characters for line-breaks (e.g., DOS), tr
12366# would break.
12367ac_LF_and_DOT=`echo; echo .`
12368DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12369rm -f confdef2opt.sed
12370
12371
12372ac_libobjs=
12373ac_ltlibobjs=
12374for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12375 # 1. Remove the extension, and $U if already installed.
12376 ac_i=`echo "$ac_i" |
12377 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12378 # 2. Add them.
12379 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12380 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12381done
12382LIBOBJS=$ac_libobjs
852e5f18 12383
c6b750e1 12384LTLIBOBJS=$ac_ltlibobjs
376a0e54 12385
cac3d6c4 12386
c6b750e1
DJ
12387
12388: ${CONFIG_STATUS=./config.status}
12389ac_clean_files_save=$ac_clean_files
12390ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12391{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12392echo "$as_me: creating $CONFIG_STATUS" >&6;}
12393cat >$CONFIG_STATUS <<_ACEOF
12394#! $SHELL
12395# Generated by $as_me.
a0da8069 12396# Run this file to recreate the current configuration.
a0da8069 12397# Compiler output produced by configure, useful for debugging
c6b750e1 12398# configure, is in config.log if it exists.
376a0e54 12399
c6b750e1
DJ
12400debug=false
12401ac_cs_recheck=false
12402ac_cs_silent=false
12403SHELL=\${CONFIG_SHELL-$SHELL}
12404_ACEOF
12405
12406cat >>$CONFIG_STATUS <<\_ACEOF
12407## --------------------- ##
12408## M4sh Initialization. ##
12409## --------------------- ##
12410
12411# Be Bourne compatible
12412if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12413 emulate sh
12414 NULLCMD=:
12415 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12416 # is contrary to our usage. Disable this feature.
12417 alias -g '${1+"$@"}'='"$@"'
12418elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12419 set -o posix
12420fi
12421DUALCASE=1; export DUALCASE # for MKS sh
12422
12423# Support unset when possible.
12424if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12425 as_unset=unset
12426else
12427 as_unset=false
12428fi
12429
12430
12431# Work around bugs in pre-3.0 UWIN ksh.
12432$as_unset ENV MAIL MAILPATH
12433PS1='$ '
12434PS2='> '
12435PS4='+ '
12436
12437# NLS nuisances.
12438for as_var in \
12439 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12440 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12441 LC_TELEPHONE LC_TIME
12442do
12443 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12444 eval $as_var=C; export $as_var
12445 else
12446 $as_unset $as_var
12447 fi
12448done
12449
12450# Required to use basename.
12451if expr a : '\(a\)' >/dev/null 2>&1; then
12452 as_expr=expr
12453else
12454 as_expr=false
12455fi
12456
12457if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12458 as_basename=basename
12459else
12460 as_basename=false
12461fi
12462
12463
12464# Name of the executable.
12465as_me=`$as_basename "$0" ||
12466$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12467 X"$0" : 'X\(//\)$' \| \
12468 X"$0" : 'X\(/\)$' \| \
12469 . : '\(.\)' 2>/dev/null ||
12470echo X/"$0" |
12471 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12472 /^X\/\(\/\/\)$/{ s//\1/; q; }
12473 /^X\/\(\/\).*/{ s//\1/; q; }
12474 s/.*/./; q'`
12475
12476
12477# PATH needs CR, and LINENO needs CR and PATH.
12478# Avoid depending upon Character Ranges.
12479as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12480as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12481as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12482as_cr_digits='0123456789'
12483as_cr_alnum=$as_cr_Letters$as_cr_digits
12484
12485# The user is always right.
12486if test "${PATH_SEPARATOR+set}" != set; then
12487 echo "#! /bin/sh" >conf$$.sh
12488 echo "exit 0" >>conf$$.sh
12489 chmod +x conf$$.sh
12490 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12491 PATH_SEPARATOR=';'
12492 else
12493 PATH_SEPARATOR=:
12494 fi
12495 rm -f conf$$.sh
12496fi
12497
12498
12499 as_lineno_1=$LINENO
12500 as_lineno_2=$LINENO
12501 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12502 test "x$as_lineno_1" != "x$as_lineno_2" &&
12503 test "x$as_lineno_3" = "x$as_lineno_2" || {
12504 # Find who we are. Look in the path if we contain no path at all
12505 # relative or not.
12506 case $0 in
12507 *[\\/]* ) as_myself=$0 ;;
12508 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12509for as_dir in $PATH
12510do
12511 IFS=$as_save_IFS
12512 test -z "$as_dir" && as_dir=.
12513 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12514done
12515
12516 ;;
12517 esac
12518 # We did not find ourselves, most probably we were run as `sh COMMAND'
12519 # in which case we are not to be found in the path.
12520 if test "x$as_myself" = x; then
12521 as_myself=$0
12522 fi
12523 if test ! -f "$as_myself"; then
12524 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12525echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12526 { (exit 1); exit 1; }; }
12527 fi
12528 case $CONFIG_SHELL in
12529 '')
12530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12531for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12532do
12533 IFS=$as_save_IFS
12534 test -z "$as_dir" && as_dir=.
12535 for as_base in sh bash ksh sh5; do
12536 case $as_dir in
12537 /*)
12538 if ("$as_dir/$as_base" -c '
12539 as_lineno_1=$LINENO
12540 as_lineno_2=$LINENO
12541 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12542 test "x$as_lineno_1" != "x$as_lineno_2" &&
12543 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12544 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12545 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12546 CONFIG_SHELL=$as_dir/$as_base
12547 export CONFIG_SHELL
12548 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12549 fi;;
12550 esac
12551 done
12552done
12553;;
12554 esac
12555
12556 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12557 # uniformly replaced by the line number. The first 'sed' inserts a
12558 # line-number line before each line; the second 'sed' does the real
12559 # work. The second script uses 'N' to pair each line-number line
12560 # with the numbered line, and appends trailing '-' during
12561 # substitution so that $LINENO is not a special case at line end.
12562 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12563 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12564 sed '=' <$as_myself |
12565 sed '
12566 N
12567 s,$,-,
12568 : loop
12569 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12570 t loop
12571 s,-$,,
12572 s,^['$as_cr_digits']*\n,,
12573 ' >$as_me.lineno &&
12574 chmod +x $as_me.lineno ||
12575 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12576echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12577 { (exit 1); exit 1; }; }
12578
12579 # Don't try to exec as it changes $[0], causing all sort of problems
12580 # (the dirname of $[0] is not the place where we might find the
12581 # original and so on. Autoconf is especially sensible to this).
12582 . ./$as_me.lineno
12583 # Exit status is that of the last command.
12584 exit
12585}
12586
12587
12588case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12589 *c*,-n*) ECHO_N= ECHO_C='
12590' ECHO_T=' ' ;;
12591 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12592 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12593esac
12594
12595if expr a : '\(a\)' >/dev/null 2>&1; then
12596 as_expr=expr
12597else
12598 as_expr=false
12599fi
12600
12601rm -f conf$$ conf$$.exe conf$$.file
12602echo >conf$$.file
12603if ln -s conf$$.file conf$$ 2>/dev/null; then
12604 # We could just check for DJGPP; but this test a) works b) is more generic
12605 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12606 if test -f conf$$.exe; then
12607 # Don't use ln at all; we don't have any links
12608 as_ln_s='cp -p'
12609 else
12610 as_ln_s='ln -s'
12611 fi
12612elif ln conf$$.file conf$$ 2>/dev/null; then
12613 as_ln_s=ln
12614else
12615 as_ln_s='cp -p'
12616fi
12617rm -f conf$$ conf$$.exe conf$$.file
12618
12619if mkdir -p . 2>/dev/null; then
12620 as_mkdir_p=:
12621else
12622 test -d ./-p && rmdir ./-p
12623 as_mkdir_p=false
12624fi
12625
12626as_executable_p="test -f"
12627
12628# Sed expression to map a string onto a valid CPP name.
12629as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12630
12631# Sed expression to map a string onto a valid variable name.
12632as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12633
12634
12635# IFS
12636# We need space, tab and new line, in precisely that order.
12637as_nl='
12638'
12639IFS=" $as_nl"
12640
12641# CDPATH.
12642$as_unset CDPATH
12643
12644exec 6>&1
12645
12646# Open the log real soon, to keep \$[0] and so on meaningful, and to
12647# report actual input values of CONFIG_FILES etc. instead of their
12648# values after options handling. Logging --version etc. is OK.
12649exec 5>>config.log
12650{
12651 echo
12652 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12653## Running $as_me. ##
12654_ASBOX
12655} >&5
12656cat >&5 <<_CSEOF
12657
12658This file was extended by $as_me, which was
12659generated by GNU Autoconf 2.59. Invocation command line was
12660
12661 CONFIG_FILES = $CONFIG_FILES
12662 CONFIG_HEADERS = $CONFIG_HEADERS
12663 CONFIG_LINKS = $CONFIG_LINKS
12664 CONFIG_COMMANDS = $CONFIG_COMMANDS
12665 $ $0 $@
12666
12667_CSEOF
12668echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12669echo >&5
12670_ACEOF
12671
12672# Files that config.status was made for.
12673if test -n "$ac_config_files"; then
12674 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12675fi
12676
12677if test -n "$ac_config_headers"; then
12678 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12679fi
12680
12681if test -n "$ac_config_links"; then
12682 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12683fi
12684
12685if test -n "$ac_config_commands"; then
12686 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12687fi
12688
12689cat >>$CONFIG_STATUS <<\_ACEOF
12690
12691ac_cs_usage="\
12692\`$as_me' instantiates files from templates according to the
12693current configuration.
12694
12695Usage: $0 [OPTIONS] [FILE]...
12696
12697 -h, --help print this help, then exit
12698 -V, --version print version number, then exit
12699 -q, --quiet do not print progress messages
12700 -d, --debug don't remove temporary files
12701 --recheck update $as_me by reconfiguring in the same conditions
12702 --file=FILE[:TEMPLATE]
12703 instantiate the configuration file FILE
12704
12705Configuration files:
12706$config_files
12707
12708Report bugs to <bug-autoconf@gnu.org>."
12709_ACEOF
12710
12711cat >>$CONFIG_STATUS <<_ACEOF
12712ac_cs_version="\\
12713config.status
12714configured by $0, generated by GNU Autoconf 2.59,
12715 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12716
12717Copyright (C) 2003 Free Software Foundation, Inc.
12718This config.status script is free software; the Free Software Foundation
12719gives unlimited permission to copy, distribute and modify it."
12720srcdir=$srcdir
12721INSTALL="$INSTALL"
12722_ACEOF
12723
12724cat >>$CONFIG_STATUS <<\_ACEOF
12725# If no file are specified by the user, then we need to provide default
12726# value. By we need to know if files were specified by the user.
12727ac_need_defaults=:
12728while test $# != 0
a0da8069 12729do
c6b750e1
DJ
12730 case $1 in
12731 --*=*)
12732 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12733 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12734 ac_shift=:
12735 ;;
12736 -*)
12737 ac_option=$1
12738 ac_optarg=$2
12739 ac_shift=shift
12740 ;;
12741 *) # This is not an option, so the user has probably given explicit
12742 # arguments.
12743 ac_option=$1
12744 ac_need_defaults=false;;
12745 esac
12746
12747 case $ac_option in
12748 # Handling of the options.
12749_ACEOF
12750cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12751 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12752 ac_cs_recheck=: ;;
12753 --version | --vers* | -V )
12754 echo "$ac_cs_version"; exit 0 ;;
12755 --he | --h)
12756 # Conflict between --help and --header
12757 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12758Try \`$0 --help' for more information." >&5
12759echo "$as_me: error: ambiguous option: $1
12760Try \`$0 --help' for more information." >&2;}
12761 { (exit 1); exit 1; }; };;
12762 --help | --hel | -h )
12763 echo "$ac_cs_usage"; exit 0 ;;
12764 --debug | --d* | -d )
12765 debug=: ;;
12766 --file | --fil | --fi | --f )
12767 $ac_shift
12768 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12769 ac_need_defaults=false;;
12770 --header | --heade | --head | --hea )
12771 $ac_shift
12772 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12773 ac_need_defaults=false;;
12774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12775 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12776 ac_cs_silent=: ;;
12777
12778 # This is an error.
12779 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12780Try \`$0 --help' for more information." >&5
12781echo "$as_me: error: unrecognized option: $1
12782Try \`$0 --help' for more information." >&2;}
12783 { (exit 1); exit 1; }; } ;;
12784
12785 *) ac_config_targets="$ac_config_targets $1" ;;
12786
376a0e54 12787 esac
c6b750e1 12788 shift
376a0e54
CM
12789done
12790
c6b750e1 12791ac_configure_extra_args=
376a0e54 12792
c6b750e1
DJ
12793if $ac_cs_silent; then
12794 exec 6>/dev/null
12795 ac_configure_extra_args="$ac_configure_extra_args --silent"
12796fi
376a0e54 12797
c6b750e1
DJ
12798_ACEOF
12799cat >>$CONFIG_STATUS <<_ACEOF
12800if \$ac_cs_recheck; then
12801 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12802 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12803fi
12804
12805_ACEOF
12806
12807
12808
12809
12810
12811cat >>$CONFIG_STATUS <<\_ACEOF
12812for ac_config_target in $ac_config_targets
12813do
12814 case "$ac_config_target" in
12815 # Handling of arguments.
12816 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12817 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12818echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12819 { (exit 1); exit 1; }; };;
12820 esac
12821done
12822
12823# If the user did not use the arguments to specify the items to instantiate,
12824# then the envvar interface is used. Set only those that are not.
12825# We use the long form for the default assignment because of an extremely
12826# bizarre bug on SunOS 4.1.3.
12827if $ac_need_defaults; then
12828 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12829fi
12830
12831# Have a temporary directory for convenience. Make it in the build tree
12832# simply because there is no reason to put it here, and in addition,
12833# creating and moving files from /tmp can sometimes cause problems.
12834# Create a temporary directory, and hook for its removal unless debugging.
12835$debug ||
12836{
12837 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12838 trap '{ (exit 1); exit 1; }' 1 2 13 15
12839}
12840
12841# Create a (secure) tmp directory for tmp files.
12842
12843{
12844 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12845 test -n "$tmp" && test -d "$tmp"
12846} ||
12847{
12848 tmp=./confstat$$-$RANDOM
12849 (umask 077 && mkdir $tmp)
12850} ||
12851{
12852 echo "$me: cannot create a temporary directory in ." >&2
12853 { (exit 1); exit 1; }
12854}
12855
12856_ACEOF
12857
12858cat >>$CONFIG_STATUS <<_ACEOF
12859
12860#
12861# CONFIG_FILES section.
12862#
12863
12864# No need to generate the scripts if there are no CONFIG_FILES.
12865# This happens for instance when ./config.status config.h
12866if test -n "\$CONFIG_FILES"; then
12867 # Protect against being on the right side of a sed subst in config.status.
12868 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12869 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12870s,@SHELL@,$SHELL,;t t
12871s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12872s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12873s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12874s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12875s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12876s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12877s,@exec_prefix@,$exec_prefix,;t t
12878s,@prefix@,$prefix,;t t
12879s,@program_transform_name@,$program_transform_name,;t t
12880s,@bindir@,$bindir,;t t
12881s,@sbindir@,$sbindir,;t t
12882s,@libexecdir@,$libexecdir,;t t
12883s,@datadir@,$datadir,;t t
12884s,@sysconfdir@,$sysconfdir,;t t
12885s,@sharedstatedir@,$sharedstatedir,;t t
12886s,@localstatedir@,$localstatedir,;t t
12887s,@libdir@,$libdir,;t t
12888s,@includedir@,$includedir,;t t
12889s,@oldincludedir@,$oldincludedir,;t t
12890s,@infodir@,$infodir,;t t
12891s,@mandir@,$mandir,;t t
12892s,@build_alias@,$build_alias,;t t
12893s,@host_alias@,$host_alias,;t t
12894s,@target_alias@,$target_alias,;t t
12895s,@DEFS@,$DEFS,;t t
12896s,@ECHO_C@,$ECHO_C,;t t
12897s,@ECHO_N@,$ECHO_N,;t t
12898s,@ECHO_T@,$ECHO_T,;t t
12899s,@LIBS@,$LIBS,;t t
12900s,@build@,$build,;t t
12901s,@build_cpu@,$build_cpu,;t t
12902s,@build_vendor@,$build_vendor,;t t
12903s,@build_os@,$build_os,;t t
12904s,@build_noncanonical@,$build_noncanonical,;t t
12905s,@host_noncanonical@,$host_noncanonical,;t t
12906s,@target_noncanonical@,$target_noncanonical,;t t
12907s,@host@,$host,;t t
12908s,@host_cpu@,$host_cpu,;t t
12909s,@host_vendor@,$host_vendor,;t t
12910s,@host_os@,$host_os,;t t
12911s,@target@,$target,;t t
12912s,@target_cpu@,$target_cpu,;t t
12913s,@target_vendor@,$target_vendor,;t t
12914s,@target_os@,$target_os,;t t
12915s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12916s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12917s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12918s,@LN@,$LN,;t t
12919s,@LN_S@,$LN_S,;t t
12920s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12921s,@build_libsubdir@,$build_libsubdir,;t t
12922s,@build_subdir@,$build_subdir,;t t
12923s,@host_subdir@,$host_subdir,;t t
12924s,@target_subdir@,$target_subdir,;t t
12925s,@CC@,$CC,;t t
12926s,@CFLAGS@,$CFLAGS,;t t
12927s,@LDFLAGS@,$LDFLAGS,;t t
12928s,@CPPFLAGS@,$CPPFLAGS,;t t
12929s,@ac_ct_CC@,$ac_ct_CC,;t t
12930s,@EXEEXT@,$EXEEXT,;t t
12931s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12932s,@CXX@,$CXX,;t t
12933s,@CXXFLAGS@,$CXXFLAGS,;t t
12934s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12935s,@GNATBIND@,$GNATBIND,;t t
12936s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12937s,@GNATMAKE@,$GNATMAKE,;t t
12938s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12939s,@do_compare@,$do_compare,;t t
12940s,@gmplibs@,$gmplibs,;t t
12941s,@gmpinc@,$gmpinc,;t t
12942s,@stage1_languages@,$stage1_languages,;t t
12943s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 12944s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
7f6ef0c0
PB
12945s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
12946s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
c6b750e1
DJ
12947s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12948s,@tooldir@,$tooldir,;t t
12949s,@build_tooldir@,$build_tooldir,;t t
12950s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12951s,@GDB_TK@,$GDB_TK,;t t
12952s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12953s,@build_configargs@,$build_configargs,;t t
12954s,@build_configdirs@,$build_configdirs,;t t
12955s,@host_configargs@,$host_configargs,;t t
12956s,@configdirs@,$configdirs,;t t
12957s,@target_configargs@,$target_configargs,;t t
1576798e
PB
12958s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
12959s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
c6b750e1 12960s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
1576798e
PB
12961s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12962s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
12963s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
12964s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
12965s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
12966s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
12967s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
12968s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
12969s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
12970s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
12971s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
12972s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
c6b750e1
DJ
12973s,@config_shell@,$config_shell,;t t
12974s,@YACC@,$YACC,;t t
12975s,@BISON@,$BISON,;t t
12976s,@M4@,$M4,;t t
12977s,@LEX@,$LEX,;t t
12978s,@FLEX@,$FLEX,;t t
12979s,@MAKEINFO@,$MAKEINFO,;t t
12980s,@EXPECT@,$EXPECT,;t t
12981s,@RUNTEST@,$RUNTEST,;t t
12982s,@AR@,$AR,;t t
12983s,@AS@,$AS,;t t
12984s,@DLLTOOL@,$DLLTOOL,;t t
12985s,@LD@,$LD,;t t
12986s,@LIPO@,$LIPO,;t t
12987s,@NM@,$NM,;t t
12988s,@RANLIB@,$RANLIB,;t t
12989s,@STRIP@,$STRIP,;t t
12990s,@WINDRES@,$WINDRES,;t t
0c24b341 12991s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
12992s,@OBJCOPY@,$OBJCOPY,;t t
12993s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1
DJ
12994s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12995s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12996s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12997s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12998s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12999s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13000s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13001s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13002s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13003s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13004s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13005s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13006s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13007s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13008s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 13009s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
13010s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13011s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13012s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13013s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13014s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13015s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13016s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13017s,@MAINT@,$MAINT,;t t
13018s,@stage1_cflags@,$stage1_cflags,;t t
13019s,@stage1_checking@,$stage1_checking,;t t
13020s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13021s,@datarootdir@,$datarootdir,;t t
13022s,@docdir@,$docdir,;t t
a3ca38d2 13023s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
13024s,@htmldir@,$htmldir,;t t
13025s,@LIBOBJS@,$LIBOBJS,;t t
13026s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 13027/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 13028s,@serialization_dependencies@,,;t t
a0da8069 13029/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 13030s,@host_makefile_frag@,,;t t
a0da8069 13031/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 13032s,@target_makefile_frag@,,;t t
a0da8069 13033/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 13034s,@alphaieee_frag@,,;t t
a0da8069 13035/@ospace_frag@/r $ospace_frag
c6b750e1 13036s,@ospace_frag@,,;t t
a0da8069 13037CEOF
252b5132 13038
c6b750e1
DJ
13039_ACEOF
13040
13041 cat >>$CONFIG_STATUS <<\_ACEOF
13042 # Split the substitutions into bite-sized pieces for seds with
13043 # small command number limits, like on Digital OSF/1 and HP-UX.
13044 ac_max_sed_lines=48
13045 ac_sed_frag=1 # Number of current file.
13046 ac_beg=1 # First line for current file.
13047 ac_end=$ac_max_sed_lines # Line after last line for current file.
13048 ac_more_lines=:
13049 ac_sed_cmds=
13050 while $ac_more_lines; do
13051 if test $ac_beg -gt 1; then
13052 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13053 else
13054 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13055 fi
13056 if test ! -s $tmp/subs.frag; then
13057 ac_more_lines=false
a0da8069 13058 else
c6b750e1
DJ
13059 # The purpose of the label and of the branching condition is to
13060 # speed up the sed processing (if there are no `@' at all, there
13061 # is no need to browse any of the substitutions).
13062 # These are the two extra sed commands mentioned above.
13063 (echo ':t
13064 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13065 if test -z "$ac_sed_cmds"; then
13066 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13067 else
13068 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13069 fi
13070 ac_sed_frag=`expr $ac_sed_frag + 1`
13071 ac_beg=$ac_end
13072 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 13073 fi
c6b750e1
DJ
13074 done
13075 if test -z "$ac_sed_cmds"; then
13076 ac_sed_cmds=cat
852e5f18 13077 fi
c6b750e1 13078fi # test -n "$CONFIG_FILES"
cac3d6c4 13079
c6b750e1
DJ
13080_ACEOF
13081cat >>$CONFIG_STATUS <<\_ACEOF
13082for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 13083 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
13084 case $ac_file in
13085 - | *:- | *:-:* ) # input from stdin
13086 cat >$tmp/stdin
13087 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13088 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13089 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13090 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13091 * ) ac_file_in=$ac_file.in ;;
a0da8069 13092 esac
252b5132 13093
c6b750e1
DJ
13094 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13095 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13096$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13097 X"$ac_file" : 'X\(//\)[^/]' \| \
13098 X"$ac_file" : 'X\(//\)$' \| \
13099 X"$ac_file" : 'X\(/\)' \| \
13100 . : '\(.\)' 2>/dev/null ||
13101echo X"$ac_file" |
13102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13103 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13104 /^X\(\/\/\)$/{ s//\1/; q; }
13105 /^X\(\/\).*/{ s//\1/; q; }
13106 s/.*/./; q'`
13107 { if $as_mkdir_p; then
13108 mkdir -p "$ac_dir"
cac3d6c4 13109 else
c6b750e1
DJ
13110 as_dir="$ac_dir"
13111 as_dirs=
13112 while test ! -d "$as_dir"; do
13113 as_dirs="$as_dir $as_dirs"
13114 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13115$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13116 X"$as_dir" : 'X\(//\)[^/]' \| \
13117 X"$as_dir" : 'X\(//\)$' \| \
13118 X"$as_dir" : 'X\(/\)' \| \
13119 . : '\(.\)' 2>/dev/null ||
13120echo X"$as_dir" |
13121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13122 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13123 /^X\(\/\/\)$/{ s//\1/; q; }
13124 /^X\(\/\).*/{ s//\1/; q; }
13125 s/.*/./; q'`
13126 done
13127 test ! -n "$as_dirs" || mkdir $as_dirs
13128 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13129echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13130 { (exit 1); exit 1; }; }; }
13131
13132 ac_builddir=.
252b5132 13133
c6b750e1
DJ
13134if test "$ac_dir" != .; then
13135 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13136 # A "../" for each directory in $ac_dir_suffix.
13137 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13138else
13139 ac_dir_suffix= ac_top_builddir=
13140fi
13141
13142case $srcdir in
13143 .) # No --srcdir option. We are building in place.
13144 ac_srcdir=.
13145 if test -z "$ac_top_builddir"; then
13146 ac_top_srcdir=.
13147 else
13148 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13149 fi ;;
13150 [\\/]* | ?:[\\/]* ) # Absolute path.
13151 ac_srcdir=$srcdir$ac_dir_suffix;
13152 ac_top_srcdir=$srcdir ;;
a0da8069 13153 *) # Relative path.
c6b750e1
DJ
13154 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13155 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13156esac
252b5132 13157
c6b750e1
DJ
13158# Do not use `cd foo && pwd` to compute absolute paths, because
13159# the directories may not exist.
13160case `pwd` in
13161.) ac_abs_builddir="$ac_dir";;
13162*)
13163 case "$ac_dir" in
13164 .) ac_abs_builddir=`pwd`;;
13165 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13166 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13167 esac;;
13168esac
13169case $ac_abs_builddir in
13170.) ac_abs_top_builddir=${ac_top_builddir}.;;
13171*)
13172 case ${ac_top_builddir}. in
13173 .) ac_abs_top_builddir=$ac_abs_builddir;;
13174 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13175 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13176 esac;;
13177esac
13178case $ac_abs_builddir in
13179.) ac_abs_srcdir=$ac_srcdir;;
13180*)
13181 case $ac_srcdir in
13182 .) ac_abs_srcdir=$ac_abs_builddir;;
13183 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13184 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13185 esac;;
13186esac
13187case $ac_abs_builddir in
13188.) ac_abs_top_srcdir=$ac_top_srcdir;;
13189*)
13190 case $ac_top_srcdir in
13191 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13192 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13193 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13194 esac;;
13195esac
252b5132 13196
c6b750e1
DJ
13197
13198 case $INSTALL in
13199 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13200 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13201 esac
252b5132 13202
c6b750e1
DJ
13203 if test x"$ac_file" != x-; then
13204 { echo "$as_me:$LINENO: creating $ac_file" >&5
13205echo "$as_me: creating $ac_file" >&6;}
13206 rm -f "$ac_file"
13207 fi
13208 # Let's still pretend it is `configure' which instantiates (i.e., don't
13209 # use $as_me), people would be surprised to read:
13210 # /* config.h. Generated by config.status. */
13211 if test x"$ac_file" = x-; then
13212 configure_input=
13213 else
13214 configure_input="$ac_file. "
13215 fi
13216 configure_input=$configure_input"Generated from `echo $ac_file_in |
13217 sed 's,.*/,,'` by configure."
13218
13219 # First look for the input files in the build tree, otherwise in the
13220 # src tree.
13221 ac_file_inputs=`IFS=:
13222 for f in $ac_file_in; do
13223 case $f in
13224 -) echo $tmp/stdin ;;
13225 [\\/$]*)
13226 # Absolute (can't be DOS-style, as IFS=:)
13227 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13228echo "$as_me: error: cannot find input file: $f" >&2;}
13229 { (exit 1); exit 1; }; }
13230 echo "$f";;
13231 *) # Relative
13232 if test -f "$f"; then
13233 # Build tree
13234 echo "$f"
13235 elif test -f "$srcdir/$f"; then
13236 # Source tree
13237 echo "$srcdir/$f"
13238 else
13239 # /dev/null tree
13240 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13241echo "$as_me: error: cannot find input file: $f" >&2;}
13242 { (exit 1); exit 1; }; }
13243 fi;;
13244 esac
13245 done` || { (exit 1); exit 1; }
13246_ACEOF
13247cat >>$CONFIG_STATUS <<_ACEOF
13248 sed "$ac_vpsub
13249$extrasub
13250_ACEOF
13251cat >>$CONFIG_STATUS <<\_ACEOF
13252:t
13253/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13254s,@configure_input@,$configure_input,;t t
13255s,@srcdir@,$ac_srcdir,;t t
13256s,@abs_srcdir@,$ac_abs_srcdir,;t t
13257s,@top_srcdir@,$ac_top_srcdir,;t t
13258s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13259s,@builddir@,$ac_builddir,;t t
13260s,@abs_builddir@,$ac_abs_builddir,;t t
13261s,@top_builddir@,$ac_top_builddir,;t t
13262s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13263s,@INSTALL@,$ac_INSTALL,;t t
13264" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13265 rm -f $tmp/stdin
13266 if test x"$ac_file" != x-; then
13267 mv $tmp/out $ac_file
13268 else
13269 cat $tmp/out
13270 rm -f $tmp/out
13271 fi
c148b4cb 13272
c6b750e1
DJ
13273done
13274_ACEOF
c148b4cb 13275
c6b750e1 13276cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13277
c6b750e1
DJ
13278{ (exit 0); exit 0; }
13279_ACEOF
c148b4cb 13280chmod +x $CONFIG_STATUS
c6b750e1
DJ
13281ac_clean_files=$ac_clean_files_save
13282
13283
13284# configure is writing to config.log, and then calls config.status.
13285# config.status does its own redirection, appending to config.log.
13286# Unfortunately, on DOS this fails, as config.log is still kept open
13287# by configure, so config.status won't be able to write to it; its
13288# output is simply discarded. So we exec the FD to /dev/null,
13289# effectively closing config.log, so it can be properly (re)opened and
13290# appended to by config.status. When coming back to configure, we
13291# need to make the FD available again.
13292if test "$no_create" != yes; then
13293 ac_cs_success=:
13294 ac_config_status_args=
13295 test "$silent" = yes &&
13296 ac_config_status_args="$ac_config_status_args --quiet"
13297 exec 5>/dev/null
13298 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13299 exec 5>>config.log
13300 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13301 # would make configure fail if this is the last instruction.
13302 $ac_cs_success || { (exit 1); exit 1; }
13303fi
c148b4cb 13304
This page took 1.130003 seconds and 4 git commands to generate.