*** empty log message ***
[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"
b0aaa663 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 GNATBIND ac_ct_GNATBIND do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES OBJCOPY OBJDUMP CXX CFLAGS_FOR_BUILD CXXFLAGS 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 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 htmldir LIBOBJS LTLIBOBJS'
c6b750e1 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
a0da8069
NN
277
278# Initialize some variables set by options.
c6b750e1
DJ
279ac_init_help=
280ac_init_version=false
a0da8069
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
c6b750e1 283cache_file=/dev/null
a0da8069 284exec_prefix=NONE
a0da8069 285no_create=
a0da8069
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
a0da8069
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
c6b750e1
DJ
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
a0da8069
NN
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
252b5132 315
a0da8069
NN
316ac_prev=
317for ac_option
318do
a0da8069
NN
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
324 fi
252b5132 325
c6b750e1 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
a0da8069
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
c6b750e1 330 case $ac_option in
a0da8069
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 335 bindir=$ac_optarg ;;
a0da8069
NN
336
337 -build | --build | --buil | --bui | --bu)
c6b750e1 338 ac_prev=build_alias ;;
a0da8069 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 340 build_alias=$ac_optarg ;;
a0da8069
NN
341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
a0da8069
NN
351
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
c6b750e1 356 datadir=$ac_optarg ;;
a0da8069
NN
357
358 -disable-* | --disable-*)
c6b750e1 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 360 # Reject names that are not valid shell variable names.
c6b750e1
DJ
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
a0da8069
NN
366
367 -enable-* | --enable-*)
c6b750e1 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 369 # Reject names that are not valid shell variable names.
c6b750e1
DJ
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
376 *) ac_optarg=yes ;;
377 esac
c6b750e1 378 eval "enable_$ac_feature='$ac_optarg'" ;;
a0da8069
NN
379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
c6b750e1 387 exec_prefix=$ac_optarg ;;
a0da8069
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
c6b750e1
DJ
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
a0da8069
NN
399
400 -host | --host | --hos | --ho)
c6b750e1 401 ac_prev=host_alias ;;
a0da8069 402 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 403 host_alias=$ac_optarg ;;
a0da8069
NN
404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 410 includedir=$ac_optarg ;;
a0da8069
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 415 infodir=$ac_optarg ;;
a0da8069
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 420 libdir=$ac_optarg ;;
a0da8069
NN
421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
c6b750e1 427 libexecdir=$ac_optarg ;;
a0da8069
NN
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
c6b750e1 436 localstatedir=$ac_optarg ;;
a0da8069
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 441 mandir=$ac_optarg ;;
a0da8069
NN
442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 448 | --no-cr | --no-c | -n)
a0da8069
NN
449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 462 oldincludedir=$ac_optarg ;;
a0da8069
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 467 prefix=$ac_optarg ;;
a0da8069
NN
468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 474 program_prefix=$ac_optarg ;;
a0da8069
NN
475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 481 program_suffix=$ac_optarg ;;
a0da8069
NN
482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 498 program_transform_name=$ac_optarg ;;
a0da8069
NN
499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
c6b750e1 508 sbindir=$ac_optarg ;;
a0da8069
NN
509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
c6b750e1 519 sharedstatedir=$ac_optarg ;;
a0da8069
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
c6b750e1 524 site=$ac_optarg ;;
a0da8069
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 529 srcdir=$ac_optarg ;;
a0da8069
NN
530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 536 sysconfdir=$ac_optarg ;;
a0da8069
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 539 ac_prev=target_alias ;;
a0da8069 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 541 target_alias=$ac_optarg ;;
a0da8069
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
c6b750e1
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
a0da8069
NN
548
549 -with-* | --with-*)
c6b750e1 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 551 # Reject names that are not valid shell variable names.
c6b750e1
DJ
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
a0da8069 555 ac_package=`echo $ac_package| sed 's/-/_/g'`
c6b750e1
DJ
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
558 *) ac_optarg=yes ;;
559 esac
c6b750e1 560 eval "with_$ac_package='$ac_optarg'" ;;
a0da8069
NN
561
562 -without-* | --without-*)
c6b750e1 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 564 # Reject names that are not valid shell variable names.
c6b750e1
DJ
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
a0da8069
NN
570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 580 x_includes=$ac_optarg ;;
a0da8069
NN
581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 587 x_libraries=$ac_optarg ;;
a0da8069 588
c6b750e1
DJ
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
a0da8069
NN
592 ;;
593
c6b750e1
DJ
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
603
a0da8069 604 *)
c6b750e1
DJ
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
c6b750e1
DJ
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
a0da8069 619fi
a0da8069 620
c6b750e1
DJ
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
623do
624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630done
a0da8069 631
c6b750e1
DJ
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
a0da8069 635do
c6b750e1
DJ
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
a0da8069
NN
641 esac
642done
643
c6b750e1
DJ
644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
376a0e54 650
c6b750e1
DJ
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
a0da8069 666
a0da8069
NN
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
c6b750e1
DJ
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
a0da8069
NN
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
c6b750e1
DJ
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
a0da8069 695 else
c6b750e1
DJ
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
698 fi
699fi
700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716ac_env_CC_set=${CC+set}
717ac_env_CC_value=$CC
718ac_cv_env_CC_set=${CC+set}
719ac_cv_env_CC_value=$CC
720ac_env_CFLAGS_set=${CFLAGS+set}
721ac_env_CFLAGS_value=$CFLAGS
722ac_cv_env_CFLAGS_set=${CFLAGS+set}
723ac_cv_env_CFLAGS_value=$CFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732
733#
734# Report the --help message.
735#
736if test "$ac_init_help" = "long"; then
737 # Omit some internal or obsolete options to make the list less imposing.
738 # This message is too long to be a string in the A/UX 3.1 sh.
739 cat <<_ACEOF
740\`configure' configures this package to adapt to many kinds of systems.
741
742Usage: $0 [OPTION]... [VAR=VALUE]...
743
744To assign environment variables (e.g., CC, CFLAGS...), specify them as
745VAR=VALUE. See below for descriptions of some of the useful variables.
746
747Defaults for the options are specified in brackets.
748
749Configuration:
750 -h, --help display this help and exit
751 --help=short display options specific to this package
752 --help=recursive display the short help of all the included packages
753 -V, --version display version information and exit
754 -q, --quiet, --silent do not print \`checking...' messages
755 --cache-file=FILE cache test results in FILE [disabled]
756 -C, --config-cache alias for \`--cache-file=config.cache'
757 -n, --no-create do not create output files
758 --srcdir=DIR find the sources in DIR [configure dir or \`..']
759
760_ACEOF
761
762 cat <<_ACEOF
763Installation directories:
764 --prefix=PREFIX install architecture-independent files in PREFIX
765 [$ac_default_prefix]
766 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
767 [PREFIX]
768
769By default, \`make install' will install all the files in
770\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
771an installation prefix other than \`$ac_default_prefix' using \`--prefix',
772for instance \`--prefix=\$HOME'.
773
774For better control, use the options below.
775
776Fine tuning of the installation directories:
777 --bindir=DIR user executables [EPREFIX/bin]
778 --sbindir=DIR system admin executables [EPREFIX/sbin]
779 --libexecdir=DIR program executables [EPREFIX/libexec]
780 --datadir=DIR read-only architecture-independent data [PREFIX/share]
781 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
782 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
783 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
784 --libdir=DIR object code libraries [EPREFIX/lib]
785 --includedir=DIR C header files [PREFIX/include]
786 --oldincludedir=DIR C header files for non-gcc [/usr/include]
787 --infodir=DIR info documentation [PREFIX/info]
788 --mandir=DIR man documentation [PREFIX/man]
789_ACEOF
790
791 cat <<\_ACEOF
792
793Program names:
794 --program-prefix=PREFIX prepend PREFIX to installed program names
795 --program-suffix=SUFFIX append SUFFIX to installed program names
796 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
797
798System types:
799 --build=BUILD configure for building on BUILD [guessed]
800 --host=HOST cross-compile to build programs to run on HOST [BUILD]
801 --target=TARGET configure for building compilers for TARGET [HOST]
802_ACEOF
a0da8069 803fi
a0da8069 804
c6b750e1
DJ
805if test -n "$ac_init_help"; then
806
807 cat <<\_ACEOF
808
809Optional Features:
810 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
811 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
812 --enable-libada Builds libada directory
813 --enable-libssp Builds libssp directory
814 --enable-stage1-languages=all choose additional languages to build during
815 stage1. Mostly useful for compiler development.
816 --enable-objc-gc enable the use of Boehm's garbage collector with
817 the GNU Objective-C runtime.
818 --enable-bootstrap Enable bootstrapping yes if native build
819 --enable-serial-{host,target,build}-configure
820 Force sequential configuration of
821 sub-packages for the host, target or build
822 machine, or all sub-packages
823 --enable-maintainer-mode enable make rules and dependencies not useful
824 (and sometimes confusing) to the casual installer
825 --enable-stage1-checking=all choose additional checking for stage1
826 of the compiler.
827 --enable-werror enable -Werror in bootstrap stage2 and later
828
829Optional Packages:
830 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
831 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
832 --with-build-libsubdir=DIR Directory where to find libraries for build system
833 --with-mpfr-dir=PATH This option has been REMOVED
834 --with-mpfr=PATH Specify prefix directory for installed MPFR package
835 Equivalent to --with-mpfr-include=PATH/include
836 plus --with-mpfr-lib=PATH/lib
837 --with-mpfr-include=PATH
838 Specify directory for installed MPFR include files
839 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library
840 --with-gmp-dir=PATH This option has been REMOVED
841 --with-gmp=PATH Specify prefix directory for the installed GMP package
842 Equivalent to --with-gmp-include=PATH/include
843 plus --with-gmp-lib=PATH/lib
844 --with-gmp-include=PATH Specify directory for installed GMP include files
845 --with-gmp-lib=PATH Specify the directory for the installed GMP library
846 --with-build-sysroot=sysroot
847 use sysroot as the system root during the build
848 --with-build-time-tools=path
849 use given path to find target tools during the build
850 --with-datarootdir Use datarootdir as the data root directory.
851 --with-docdir Install documentation in this directory.
852 --with-htmldir Install html in this directory.
853
854Some influential environment variables:
855 CC C compiler command
856 CFLAGS C compiler flags
857 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
858 nonstandard directory <lib dir>
859 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
860 headers in a nonstandard directory <include dir>
861
862Use these variables to override the choices made by `configure' or to help
863it to find libraries and programs with nonstandard names/locations.
864
865_ACEOF
866fi
867
868if test "$ac_init_help" = "recursive"; then
869 # If there are subdirs, report their specific --help.
870 ac_popdir=`pwd`
871 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
872 test -d $ac_dir || continue
873 ac_builddir=.
874
875if test "$ac_dir" != .; then
876 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
877 # A "../" for each directory in $ac_dir_suffix.
878 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
879else
880 ac_dir_suffix= ac_top_builddir=
881fi
882
883case $srcdir in
884 .) # No --srcdir option. We are building in place.
885 ac_srcdir=.
886 if test -z "$ac_top_builddir"; then
887 ac_top_srcdir=.
888 else
889 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
890 fi ;;
891 [\\/]* | ?:[\\/]* ) # Absolute path.
892 ac_srcdir=$srcdir$ac_dir_suffix;
893 ac_top_srcdir=$srcdir ;;
894 *) # Relative path.
895 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
896 ac_top_srcdir=$ac_top_builddir$srcdir ;;
897esac
898
899# Do not use `cd foo && pwd` to compute absolute paths, because
900# the directories may not exist.
901case `pwd` in
902.) ac_abs_builddir="$ac_dir";;
903*)
904 case "$ac_dir" in
905 .) ac_abs_builddir=`pwd`;;
906 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
907 *) ac_abs_builddir=`pwd`/"$ac_dir";;
908 esac;;
909esac
910case $ac_abs_builddir in
911.) ac_abs_top_builddir=${ac_top_builddir}.;;
912*)
913 case ${ac_top_builddir}. in
914 .) ac_abs_top_builddir=$ac_abs_builddir;;
915 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
916 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
917 esac;;
918esac
919case $ac_abs_builddir in
920.) ac_abs_srcdir=$ac_srcdir;;
921*)
922 case $ac_srcdir in
923 .) ac_abs_srcdir=$ac_abs_builddir;;
924 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
925 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
926 esac;;
927esac
928case $ac_abs_builddir in
929.) ac_abs_top_srcdir=$ac_top_srcdir;;
930*)
931 case $ac_top_srcdir in
932 .) ac_abs_top_srcdir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
934 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
935 esac;;
936esac
937
938 cd $ac_dir
939 # Check for guested configure; otherwise get Cygnus style configure.
940 if test -f $ac_srcdir/configure.gnu; then
941 echo
942 $SHELL $ac_srcdir/configure.gnu --help=recursive
943 elif test -f $ac_srcdir/configure; then
944 echo
945 $SHELL $ac_srcdir/configure --help=recursive
946 elif test -f $ac_srcdir/configure.ac ||
947 test -f $ac_srcdir/configure.in; then
948 echo
949 $ac_configure --help
950 else
951 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
952 fi
953 cd $ac_popdir
954 done
955fi
956
957test -n "$ac_init_help" && exit 0
958if $ac_init_version; then
959 cat <<\_ACEOF
960
961Copyright (C) 2003 Free Software Foundation, Inc.
962This configure script is free software; the Free Software Foundation
963gives unlimited permission to copy, distribute and modify it.
964_ACEOF
965 exit 0
966fi
967exec 5>config.log
968cat >&5 <<_ACEOF
969This file contains any messages produced by compilers while
970running configure, to aid debugging if configure makes a mistake.
971
972It was created by $as_me, which was
973generated by GNU Autoconf 2.59. Invocation command line was
974
975 $ $0 $@
976
977_ACEOF
978{
979cat <<_ASUNAME
980## --------- ##
981## Platform. ##
982## --------- ##
983
984hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
985uname -m = `(uname -m) 2>/dev/null || echo unknown`
986uname -r = `(uname -r) 2>/dev/null || echo unknown`
987uname -s = `(uname -s) 2>/dev/null || echo unknown`
988uname -v = `(uname -v) 2>/dev/null || echo unknown`
989
990/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
991/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
992
993/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
994/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
995/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
996hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
997/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
998/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
999/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1000
1001_ASUNAME
1002
1003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004for as_dir in $PATH
1005do
1006 IFS=$as_save_IFS
1007 test -z "$as_dir" && as_dir=.
1008 echo "PATH: $as_dir"
1009done
1010
1011} >&5
1012
1013cat >&5 <<_ACEOF
1014
1015
1016## ----------- ##
1017## Core tests. ##
1018## ----------- ##
1019
1020_ACEOF
1021
1022
1023# Keep a trace of the command line.
1024# Strip out --no-create and --no-recursion so they do not pile up.
1025# Strip out --silent because we don't want to record it for future runs.
1026# Also quote any args containing shell meta-characters.
1027# Make two passes to allow for proper duplicate-argument suppression.
1028ac_configure_args=
1029ac_configure_args0=
1030ac_configure_args1=
1031ac_sep=
1032ac_must_keep_next=false
1033for ac_pass in 1 2
1034do
1035 for ac_arg
1036 do
1037 case $ac_arg in
1038 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040 | -silent | --silent | --silen | --sile | --sil)
1041 continue ;;
1042 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1043 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1044 esac
1045 case $ac_pass in
1046 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1047 2)
1048 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1049 if test $ac_must_keep_next = true; then
1050 ac_must_keep_next=false # Got value, back to normal.
1051 else
1052 case $ac_arg in
1053 *=* | --config-cache | -C | -disable-* | --disable-* \
1054 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1055 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1056 | -with-* | --with-* | -without-* | --without-* | --x)
1057 case "$ac_configure_args0 " in
1058 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1059 esac
1060 ;;
1061 -* ) ac_must_keep_next=true ;;
1062 esac
1063 fi
1064 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1065 # Get rid of the leading space.
1066 ac_sep=" "
1067 ;;
1068 esac
1069 done
1070done
1071$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1072$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1073
1074# When interrupted or exit'd, cleanup temporary files, and complete
1075# config.log. We remove comments because anyway the quotes in there
1076# would cause problems or look ugly.
1077# WARNING: Be sure not to use single quotes in there, as some shells,
1078# such as our DU 5.0 friend, will then `close' the trap.
1079trap 'exit_status=$?
1080 # Save into config.log some information that might help in debugging.
1081 {
1082 echo
1083
1084 cat <<\_ASBOX
1085## ---------------- ##
1086## Cache variables. ##
1087## ---------------- ##
1088_ASBOX
1089 echo
1090 # The following way of writing the cache mishandles newlines in values,
1091{
1092 (set) 2>&1 |
1093 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1094 *ac_space=\ *)
1095 sed -n \
1096 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1098 ;;
1099 *)
1100 sed -n \
1101 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1102 ;;
1103 esac;
1104}
1105 echo
1106
1107 cat <<\_ASBOX
1108## ----------------- ##
1109## Output variables. ##
1110## ----------------- ##
1111_ASBOX
1112 echo
1113 for ac_var in $ac_subst_vars
1114 do
1115 eval ac_val=$`echo $ac_var`
1116 echo "$ac_var='"'"'$ac_val'"'"'"
1117 done | sort
1118 echo
1119
1120 if test -n "$ac_subst_files"; then
1121 cat <<\_ASBOX
1122## ------------- ##
1123## Output files. ##
1124## ------------- ##
1125_ASBOX
1126 echo
1127 for ac_var in $ac_subst_files
1128 do
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1131 done | sort
1132 echo
1133 fi
1134
1135 if test -s confdefs.h; then
1136 cat <<\_ASBOX
1137## ----------- ##
1138## confdefs.h. ##
1139## ----------- ##
1140_ASBOX
1141 echo
1142 sed "/^$/d" confdefs.h | sort
1143 echo
1144 fi
1145 test "$ac_signal" != 0 &&
1146 echo "$as_me: caught signal $ac_signal"
1147 echo "$as_me: exit $exit_status"
1148 } >&5
1149 rm -f core *.core &&
1150 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1151 exit $exit_status
1152 ' 0
1153for ac_signal in 1 2 13 15; do
1154 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1155done
1156ac_signal=0
1157
1158# confdefs.h avoids OS command line length limits that DEFS can exceed.
1159rm -rf conftest* confdefs.h
1160# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1161echo >confdefs.h
1162
1163# Predefined preprocessor variables.
1164
1165cat >>confdefs.h <<_ACEOF
1166#define PACKAGE_NAME "$PACKAGE_NAME"
1167_ACEOF
1168
1169
1170cat >>confdefs.h <<_ACEOF
1171#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1172_ACEOF
1173
1174
1175cat >>confdefs.h <<_ACEOF
1176#define PACKAGE_VERSION "$PACKAGE_VERSION"
1177_ACEOF
1178
1179
1180cat >>confdefs.h <<_ACEOF
1181#define PACKAGE_STRING "$PACKAGE_STRING"
1182_ACEOF
1183
1184
1185cat >>confdefs.h <<_ACEOF
1186#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1187_ACEOF
1188
1189
1190# Let the site file select an alternate cache file if it wants to.
a0da8069 1191# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1192if test -z "$CONFIG_SITE"; then
1193 if test "x$prefix" != xNONE; then
1194 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1195 else
1196 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1197 fi
1198fi
1199for ac_site_file in $CONFIG_SITE; do
1200 if test -r "$ac_site_file"; then
c6b750e1
DJ
1201 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1202echo "$as_me: loading site script $ac_site_file" >&6;}
1203 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1204 . "$ac_site_file"
1205 fi
1206done
1207
1208if test -r "$cache_file"; then
c6b750e1
DJ
1209 # Some versions of bash will fail to source /dev/null (special
1210 # files actually), so we avoid doing that.
1211 if test -f "$cache_file"; then
1212 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1213echo "$as_me: loading cache $cache_file" >&6;}
1214 case $cache_file in
1215 [\\/]* | ?:[\\/]* ) . $cache_file;;
1216 *) . ./$cache_file;;
1217 esac
1218 fi
a0da8069 1219else
c6b750e1
DJ
1220 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1221echo "$as_me: creating cache $cache_file" >&6;}
1222 >$cache_file
1223fi
1224
1225# Check that the precious variables saved in the cache have kept the same
1226# value.
1227ac_cache_corrupted=false
1228for ac_var in `(set) 2>&1 |
1229 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1230 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1231 eval ac_new_set=\$ac_env_${ac_var}_set
1232 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1233 eval ac_new_val="\$ac_env_${ac_var}_value"
1234 case $ac_old_set,$ac_new_set in
1235 set,)
1236 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1237echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1238 ac_cache_corrupted=: ;;
1239 ,set)
1240 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1241echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1242 ac_cache_corrupted=: ;;
1243 ,);;
1244 *)
1245 if test "x$ac_old_val" != "x$ac_new_val"; then
1246 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1247echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1248 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1249echo "$as_me: former value: $ac_old_val" >&2;}
1250 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1251echo "$as_me: current value: $ac_new_val" >&2;}
1252 ac_cache_corrupted=:
1253 fi;;
1254 esac
1255 # Pass precious variables to config.status.
1256 if test "$ac_new_set" = set; then
1257 case $ac_new_val in
1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1260 *) ac_arg=$ac_var=$ac_new_val ;;
1261 esac
1262 case " $ac_configure_args " in
1263 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1264 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1265 esac
1266 fi
1267done
1268if $ac_cache_corrupted; then
1269 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1270echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1271 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1272echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1273 { (exit 1); exit 1; }; }
a0da8069
NN
1274fi
1275
1276ac_ext=c
a0da8069 1277ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1280ac_compiler_gnu=$ac_cv_c_compiler_gnu
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
a0da8069
NN
1294
1295
75778ec4 1296
c6b750e1
DJ
1297
1298
1299
1300
1301
1302# Find the build, host, and target systems.
a0da8069 1303ac_aux_dir=
315b3b02 1304for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1305 if test -f $ac_dir/install-sh; then
1306 ac_aux_dir=$ac_dir
1307 ac_install_sh="$ac_aux_dir/install-sh -c"
1308 break
1309 elif test -f $ac_dir/install.sh; then
1310 ac_aux_dir=$ac_dir
1311 ac_install_sh="$ac_aux_dir/install.sh -c"
1312 break
c6b750e1
DJ
1313 elif test -f $ac_dir/shtool; then
1314 ac_aux_dir=$ac_dir
1315 ac_install_sh="$ac_aux_dir/shtool install -c"
1316 break
a0da8069
NN
1317 fi
1318done
1319if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1320 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1321echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1322 { (exit 1); exit 1; }; }
a0da8069 1323fi
c6b750e1
DJ
1324ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1325ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1326ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1327
c6b750e1
DJ
1328# Make sure we can run config.sub.
1329$ac_config_sub sun4 >/dev/null 2>&1 ||
1330 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1331echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1332 { (exit 1); exit 1; }; }
1333
1334echo "$as_me:$LINENO: checking build system type" >&5
1335echo $ECHO_N "checking build system type... $ECHO_C" >&6
1336if test "${ac_cv_build+set}" = set; then
1337 echo $ECHO_N "(cached) $ECHO_C" >&6
1338else
1339 ac_cv_build_alias=$build_alias
1340test -z "$ac_cv_build_alias" &&
1341 ac_cv_build_alias=`$ac_config_guess`
1342test -z "$ac_cv_build_alias" &&
1343 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1344echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1345 { (exit 1); exit 1; }; }
1346ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1347 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1348echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1349 { (exit 1); exit 1; }; }
1350
1351fi
1352echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1353echo "${ECHO_T}$ac_cv_build" >&6
1354build=$ac_cv_build
1355build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1356build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1357build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1358
a0da8069 1359
c6b750e1
DJ
1360 case ${build_alias} in
1361 "") build_noncanonical=${build} ;;
1362 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1363esac
1364
1365
cac3d6c4 1366
c6b750e1
DJ
1367 case ${host_alias} in
1368 "") host_noncanonical=${build_noncanonical} ;;
1369 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1370esac
1371
cac3d6c4 1372
c6b750e1
DJ
1373
1374 case ${target_alias} in
1375 "") target_noncanonical=${host_noncanonical} ;;
1376 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1377esac
1378
cac3d6c4 1379
c6b750e1
DJ
1380
1381
1382test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1383 test "$program_prefix$program_suffix$program_transform_name" = \
1384 NONENONEs,x,x, &&
c6b750e1 1385 program_transform_name=s,y,y,
cac3d6c4 1386
c6b750e1
DJ
1387echo "$as_me:$LINENO: checking host system type" >&5
1388echo $ECHO_N "checking host system type... $ECHO_C" >&6
1389if test "${ac_cv_host+set}" = set; then
1390 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1391else
c6b750e1
DJ
1392 ac_cv_host_alias=$host_alias
1393test -z "$ac_cv_host_alias" &&
1394 ac_cv_host_alias=$ac_cv_build_alias
1395ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1396 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1397echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1398 { (exit 1); exit 1; }; }
1399
1400fi
1401echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1402echo "${ECHO_T}$ac_cv_host" >&6
1403host=$ac_cv_host
1404host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1405host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1406host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1407
1408
1409echo "$as_me:$LINENO: checking target system type" >&5
1410echo $ECHO_N "checking target system type... $ECHO_C" >&6
1411if test "${ac_cv_target+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1413else
1414 ac_cv_target_alias=$target_alias
1415test "x$ac_cv_target_alias" = "x" &&
1416 ac_cv_target_alias=$ac_cv_host_alias
1417ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1418 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1419echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1420 { (exit 1); exit 1; }; }
1421
cac3d6c4 1422fi
c6b750e1
DJ
1423echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1424echo "${ECHO_T}$ac_cv_target" >&6
1425target=$ac_cv_target
1426target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1427target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1428target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1429
1430
1431# The aliases save the names the user supplied, while $host etc.
1432# will get canonicalized.
1433test -n "$target_alias" &&
1434 test "$program_prefix$program_suffix$program_transform_name" = \
1435 NONENONEs,x,x, &&
1436 program_prefix=${target_alias}-
a0da8069 1437test "$program_prefix" != NONE &&
c6b750e1 1438 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1439# Use a double $ so make ignores it.
1440test "$program_suffix" != NONE &&
c6b750e1
DJ
1441 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1442# Double any \ or $. echo might interpret backslashes.
1443# By default was `s,x,x', remove it if useless.
1444cat <<\_ACEOF >conftest.sed
1445s/[\\$]/&&/g;s/;s,x,x,$//
1446_ACEOF
1447program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1448rm conftest.sed
cac3d6c4 1449
a0da8069
NN
1450
1451
e5c3f801
NN
1452# Get 'install' or 'install-sh' and its variants.
1453# Find a good install program. We prefer a C program (faster),
1454# so one script is as good as another. But avoid the broken or
1455# incompatible versions:
1456# SysV /etc/install, /usr/sbin/install
1457# SunOS /usr/etc/install
1458# IRIX /sbin/install
1459# AIX /bin/install
c6b750e1 1460# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1461# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1462# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1463# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1464# OS/2's system install, which has a completely different semantic
e5c3f801 1465# ./install, which can be erroneously created by make from ./install.sh.
c6b750e1
DJ
1466echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1467echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1468if test -z "$INSTALL"; then
c6b750e1
DJ
1469if test "${ac_cv_path_install+set}" = set; then
1470 echo $ECHO_N "(cached) $ECHO_C" >&6
1471else
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473for as_dir in $PATH
1474do
1475 IFS=$as_save_IFS
1476 test -z "$as_dir" && as_dir=.
1477 # Account for people who put trailing slashes in PATH elements.
1478case $as_dir/ in
1479 ./ | .// | /cC/* | \
1480 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1481 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1482 /usr/ucb/* ) ;;
1483 *)
1484 # OSF1 and SCO ODT 3.0 have their own names for install.
1485 # Don't use installbsd from OSF since it installs stuff as root
1486 # by default.
1487 for ac_prog in ginstall scoinst install; do
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1490 if test $ac_prog = install &&
c6b750e1 1491 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1492 # AIX install. It has an incompatible calling convention.
1493 :
c6b750e1
DJ
1494 elif test $ac_prog = install &&
1495 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1496 # program-specific install script used by HP pwplus--don't use.
1497 :
e5c3f801 1498 else
c6b750e1
DJ
1499 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1500 break 3
e5c3f801
NN
1501 fi
1502 fi
1503 done
c6b750e1
DJ
1504 done
1505 ;;
1506esac
1507done
1508
e5c3f801
NN
1509
1510fi
1511 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1512 INSTALL=$ac_cv_path_install
e5c3f801
NN
1513 else
1514 # As a last resort, use the slow shell script. We don't cache a
1515 # path for INSTALL within a source directory, because that will
1516 # break other packages using the cache if that directory is
1517 # removed, or if the path is relative.
c6b750e1 1518 INSTALL=$ac_install_sh
e5c3f801
NN
1519 fi
1520fi
c6b750e1
DJ
1521echo "$as_me:$LINENO: result: $INSTALL" >&5
1522echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1523
1524# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1525# It thinks the first close brace ends the variable substitution.
1526test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1527
c6b750e1 1528test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1529
1530test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1531
c6b750e1
DJ
1532echo "$as_me:$LINENO: checking whether ln works" >&5
1533echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1534if test "${acx_cv_prog_LN+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1536else
1537 rm -f conftestdata_t
1538echo >conftestdata_f
1539if ln conftestdata_f conftestdata_t 2>/dev/null
1540then
1541 acx_cv_prog_LN=ln
1542else
1543 acx_cv_prog_LN=no
1544fi
1545rm -f conftestdata_f conftestdata_t
1546
1547fi
1548if test $acx_cv_prog_LN = no; then
1549 LN="cp"
c6b750e1
DJ
1550 echo "$as_me:$LINENO: result: no, using $LN" >&5
1551echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1552else
1553 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1554 echo "$as_me:$LINENO: result: yes" >&5
1555echo "${ECHO_T}yes" >&6
656fdd47
PB
1556fi
1557
c6b750e1
DJ
1558echo "$as_me:$LINENO: checking whether ln -s works" >&5
1559echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1560LN_S=$as_ln_s
1561if test "$LN_S" = "ln -s"; then
1562 echo "$as_me:$LINENO: result: yes" >&5
1563echo "${ECHO_T}yes" >&6
cac3d6c4 1564else
c6b750e1
DJ
1565 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1566echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1567fi
1568
e5c3f801 1569
252b5132 1570### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1571### If we are on Windows, search for the shell. This will permit people
1572### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1573### without also having to set CONFIG_SHELL. This code will work when
1574### using bash, which sets OSTYPE.
1575case "${OSTYPE}" in
1576*win32*)
a0da8069
NN
1577 if test x${CONFIG_SHELL} = x ; then
1578 if test ! -f /bin/sh ; then
1579 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1580 CONFIG_SHELL=${SHELL}
1581 export CONFIG_SHELL
1582 else
1583 for prog in sh sh.exe bash bash.exe; do
1584 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1585 for dir in $PATH; do
1586 test -z "$dir" && dir=.
1587 if test -f $dir/$prog; then
1588 CONFIG_SHELL=$dir/$prog
1589 export CONFIG_SHELL
1590 break
1591 fi
1592 done
1593 IFS="$save_ifs"
1594 test -n "${CONFIG_SHELL}" && break
1595 done
1596 fi
1597 fi
1598 fi
1599 ;;
1600esac
1601
1602config_shell=${CONFIG_SHELL-/bin/sh}
1603
252b5132
RH
1604progname=$0
1605# if PWD already has a value, it is probably wrong.
a0da8069 1606if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
252b5132 1607
d2cc0e0d 1608# Export original configure arguments for use by sub-configures. These
8ff944f6
DJ
1609# will be expanded by make, so quote '$'.
1610tmp="$progname $@"
1611sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
1612$tmp
d2cc0e0d 1613EOF_SED
8ff944f6
DJ
1614TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
1615rm -f conftestsed.out
586c0873 1616
75205f78 1617
a0da8069 1618moveifchange=${srcdir}/move-if-change
252b5132 1619
0fdbe983
DJ
1620srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1621
1622# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1623# a relative path.
1624if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1625 INSTALL="${srcpwd}/install-sh -c"
1626fi
1627
a0da8069
NN
1628# Set srcdir to "." if that's what it is.
1629# This is important for multilib support.
1630pwd=`${PWDCMD-pwd}`
a0da8069
NN
1631if test "${pwd}" = "${srcpwd}" ; then
1632 srcdir=.
252b5132
RH
1633fi
1634
a0da8069 1635topsrcdir=$srcpwd
252b5132 1636
a0da8069 1637extra_host_args=
afefada0 1638
a0da8069
NN
1639### To add a new directory to the tree, first choose whether it is a target
1640### or a host dependent tool. Then put it into the appropriate list
1641### (library or tools, host or target), doing a dependency sort.
252b5132 1642
c6b750e1 1643# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1644# configdirs, or target_configdirs; see the serialization section below.
252b5132 1645
c6b750e1
DJ
1646# Dependency sorting is only needed when *configuration* must be done in
1647# a particular order. In all cases a dependency should be specified in
a0da8069 1648# the Makefile, whether or not it's implicitly specified here.
252b5132 1649
a0da8069
NN
1650# Double entries in build_configdirs, configdirs, or target_configdirs may
1651# cause circular dependencies and break everything horribly.
252b5132 1652
6a9cf61e
PB
1653# these library is used by various programs built for the build
1654# environment
1655#
1656build_libs="build-libiberty"
1657
1658# these tools are built for the build environment
ee025550 1659build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1660
a0da8069
NN
1661# these libraries are used by various programs built for the host environment
1662#
4b900473 1663host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
a0da8069 1664
a0da8069
NN
1665# these tools are built for the host environment
1666# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1667# know that we are building the simulator.
1668# binutils, gas and ld appear in that order because it makes sense to run
1669# "make check" in that particular order.
b00612cc 1670host_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
1671
1672# libgcj represents the runtime libraries only used by gcj.
1673libgcj="target-libffi \
a0da8069
NN
1674 target-zlib \
1675 target-qthreads \
1676 target-libjava"
1677
1678# these libraries are built for the target environment, and are built after
1679# the host libraries and the host tools (which may be a cross compiler)
1680#
9c14acb8 1681target_libraries="target-libiberty \
6aa8ef82 1682 target-libgcc \
a0da8069
NN
1683 target-libgloss \
1684 target-newlib \
b9459e83 1685 target-libstdc++-v3 \
4b1cb4fe 1686 target-libmudflap \
bb780410 1687 target-libssp \
4b1cb4fe 1688 target-libgfortran \
4f0ef2d8 1689 target-boehm-gc \
83326456 1690 ${libgcj} \
a2592b1b 1691 target-libobjc \
b3ded179
PB
1692 target-libada \
1693 target-libgomp"
a0da8069 1694
9c14acb8
NN
1695# these tools are built using the target libraries, and are intended to
1696# run only in the target environment
a0da8069 1697#
9c14acb8 1698# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1699# list belongs in this list. those programs are also very likely
1700# candidates for the "native_only" list which follows
1701#
a3dd767d 1702target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1703
a0da8069 1704################################################################################
252b5132 1705
a0da8069
NN
1706## All tools belong in one of the four categories, and are assigned above
1707## We assign ${configdirs} this way to remove all embedded newlines. This
1708## is important because configure will choke if they ever get through.
1709## ${configdirs} is directories we build using the host tools.
1710## ${target_configdirs} is directories we build using the target tools.
a0da8069 1711configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1712target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1713build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1714
a0da8069 1715################################################################################
252b5132 1716
a0da8069 1717srcname="gnu development package"
252b5132 1718
a0da8069
NN
1719# This gets set non-empty for some net releases of packages.
1720appdirs=""
252b5132 1721
a0da8069
NN
1722# Define is_cross_compiler to save on calls to 'test'.
1723is_cross_compiler=
1724if test x"${host}" = x"${target}" ; then
1725 is_cross_compiler=no
252b5132 1726else
a0da8069 1727 is_cross_compiler=yes
c6b750e1 1728fi
252b5132 1729
9175bfc0 1730# Find the build and target subdir names.
dd12c3a8 1731
66a79c16
DJ
1732# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1733# have matching libraries, they should use host libraries: Makefile.tpl
1734# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1735# However, they still use the build modules, because the corresponding
1736# host modules (e.g. bison) are only built for the host when bootstrap
1737# finishes. So:
1738# - build_subdir is where we find build modules, and never changes.
1739# - build_libsubdir is where we find build libraries, and can be overridden.
1740
1741# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1742build_subdir="build-${build_noncanonical}"
c6b750e1 1743
66a79c16
DJ
1744# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1745if test "${with_build_libsubdir+set}" = set; then
1746 withval="$with_build_libsubdir"
1747 build_libsubdir="$withval"
1748else
1749 build_libsubdir="$build_subdir"
c6b750e1 1750fi;
b00612cc
PB
1751# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1752if ( test $srcdir = . && test -d gcc ) \
1753 || test -d $srcdir/../host-${host_noncanonical}; then
1754 host_subdir="host-${host_noncanonical}"
1755else
1756 host_subdir=.
1757fi
dd12c3a8
NN
1758# No prefix.
1759target_subdir=${target_noncanonical}
c6b750e1 1760
252b5132 1761
a0da8069
NN
1762# Skipdirs are removed silently.
1763skipdirs=
1764# Noconfigdirs are removed loudly.
1765noconfigdirs=""
252b5132 1766
a0da8069
NN
1767use_gnu_ld=
1768# Make sure we don't let GNU ld be added if we didn't want it.
1769if test x$with_gnu_ld = xno ; then
1770 use_gnu_ld=no
1771 noconfigdirs="$noconfigdirs ld"
252b5132
RH
1772fi
1773
a0da8069
NN
1774use_gnu_as=
1775# Make sure we don't let GNU as be added if we didn't want it.
1776if test x$with_gnu_as = xno ; then
1777 use_gnu_as=no
1778 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1779fi
1780
c6b750e1 1781# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1782# it's not even worth trying to configure, much less build, that tool.
252b5132 1783
a0da8069
NN
1784case ${with_x} in
1785 yes | "") ;; # the default value for this tree is that X11 is available
1786 no)
675c6968 1787 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 1788 # We won't be able to build gdbtk without X.
c6b750e1 1789 enable_gdbtk=no
a0da8069
NN
1790 ;;
1791 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1792esac
252b5132 1793
a0da8069 1794# Some tools are only suitable for building in a "native" situation.
c6b750e1 1795# Remove these if host!=target.
701628f5 1796native_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 1797
a0da8069
NN
1798# Similarly, some are only suitable for cross toolchains.
1799# Remove these if host=target.
1800cross_only="target-libgloss target-newlib target-opcodes"
1801
1802case $is_cross_compiler in
1803 no) skipdirs="${skipdirs} ${cross_only}" ;;
1804 yes) skipdirs="${skipdirs} ${native_only}" ;;
1805esac
252b5132 1806
a0da8069
NN
1807# If both --with-headers and --with-libs are specified, default to
1808# --without-newlib.
32be62b5
RS
1809if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1810 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
1811 if test x"${with_newlib}" = x ; then
1812 with_newlib=no
1813 fi
252b5132
RH
1814fi
1815
a0da8069
NN
1816# Recognize --with-newlib/--without-newlib.
1817case ${with_newlib} in
1818 no) skipdirs="${skipdirs} target-newlib" ;;
1819 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1820esac
252b5132 1821
a0da8069 1822# Configure extra directories which are host specific
252b5132 1823
a0da8069
NN
1824case "${host}" in
1825 *-cygwin*)
1826 configdirs="$configdirs libtermcap" ;;
1827esac
252b5132 1828
59f7ec45
HPN
1829# A target can indicate whether a language isn't supported for some reason.
1830# Only spaces may be used in this macro; not newlines or tabs.
1831unsupported_languages=
1832
c6b750e1 1833# Remove more programs from consideration, based on the host or
a0da8069
NN
1834# target this usually means that a port of the program doesn't
1835# exist yet.
252b5132 1836
a0da8069
NN
1837case "${host}" in
1838 hppa*64*-*-*)
1839 noconfigdirs="$noconfigdirs byacc"
1840 ;;
ec11bdc6 1841 i[3456789]86-*-vsta)
675c6968 1842 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 1843 ;;
ec11bdc6 1844 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 1845 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 1846 ;;
2d1e8239
NC
1847 x86_64-*-mingw*)
1848 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1849 ;;
ec11bdc6 1850 i[3456789]86-*-mingw32*)
675c6968 1851 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 1852 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 1853 ;;
ec11bdc6 1854 i[3456789]86-*-beos*)
675c6968 1855 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 1856 ;;
a0da8069 1857 *-*-cygwin*)
a92834c8 1858 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
1859 ;;
1860 *-*-netbsd*)
a92834c8 1861 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
1862 ;;
1863 ppc*-*-pe)
675c6968 1864 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
1865 ;;
1866 powerpc-*-beos*)
675c6968 1867 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 1868 ;;
a0da8069 1869esac
252b5132 1870
4b1cb4fe 1871
a2592b1b
DD
1872# Check whether --enable-libada or --disable-libada was given.
1873if test "${enable_libada+set}" = set; then
1874 enableval="$enable_libada"
1875 ENABLE_LIBADA=$enableval
1876else
1877 ENABLE_LIBADA=yes
c6b750e1 1878fi;
a2592b1b 1879if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 1880 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
1881fi
1882
5f128533
KH
1883# Check whether --enable-libssp or --disable-libssp was given.
1884if test "${enable_libssp+set}" = set; then
1885 enableval="$enable_libssp"
1886 ENABLE_LIBSSP=$enableval
1887else
1888 ENABLE_LIBSSP=yes
c6b750e1 1889fi;
5f128533 1890
a0da8069
NN
1891# Save it here so that, even in case of --enable-libgcj, if the Java
1892# front-end isn't enabled, we still get libgcj disabled.
1893libgcj_saved=$libgcj
1894case $enable_libgcj in
1895yes)
1896 # If we reset it here, it won't get added to noconfigdirs in the
1897 # target-specific build rules, so it will be forcibly enabled
1898 # (unless the Java language itself isn't enabled).
1899 libgcj=
1900 ;;
1901no)
1902 # Make sure we get it printed in the list of not supported target libs.
1903 noconfigdirs="$noconfigdirs ${libgcj}"
1904 ;;
1905esac
252b5132 1906
4b1cb4fe 1907
a6df5a19
PB
1908# Disable libmudflap on some systems.
1909if test x$enable_libmudflap = x ; then
3e707e94 1910 case "${target}" in
b3ded179 1911 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
3d6dfe0f 1912 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
1913 ;;
1914 *-*-freebsd*)
1915 # Enable libmudflap by default in FreeBSD.
1916 ;;
1917 *)
1918 # Disable it by default everywhere else.
1919 noconfigdirs="$noconfigdirs target-libmudflap"
1920 ;;
1921 esac
a6df5a19 1922fi
4b1cb4fe 1923
a6df5a19
PB
1924# Disable libgomp on non POSIX hosted systems.
1925if test x$enable_libgomp = x ; then
b3ded179
PB
1926 # Enable libgomp by default on hosted POSIX systems.
1927 case "${target}" in
1928 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1929 ;;
1930 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1931 ;;
64ce424c 1932 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
1933 ;;
1934 *-*-darwin* | *-*-aix*)
1935 ;;
1936 *)
1937 noconfigdirs="$noconfigdirs target-libgomp"
1938 ;;
1939 esac
a6df5a19 1940fi
b3ded179 1941
4b1cb4fe 1942
a0da8069
NN
1943case "${target}" in
1944 *-*-chorusos)
54d1c879 1945 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 1946 ;;
790c0838 1947 powerpc-*-darwin* | i[3456789]86-*-darwin*)
b3f16a9b 1948 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 1949 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 1950 ;;
04d1ab34 1951 *-*-darwin*)
d320aacb 1952 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 1953 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 1954 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 1955 ;;
a0da8069 1956 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 1957 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 1958 ;;
de0b4a87 1959 *-*-freebsd*)
4b1cb4fe
DD
1960 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1961 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1962 && test -f /usr/local/include/gmp.h; then
1963 with_gmp=/usr/local
1964 fi
1965
1966 # Skip some stuff that's unsupported on some FreeBSD configurations.
1967 case "${target}" in
1968 i*86-*-*) ;;
1969 alpha*-*-*) ;;
1970 *)
54d1c879 1971 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
1972 ;;
1973 esac
1974 ;;
f8a495c8
NC
1975 *-*-kaos*)
1976 # Remove unsupported stuff on all kaOS configurations.
54d1c879 1977 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
1978 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1979 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1980 noconfigdirs="$noconfigdirs target-libgloss"
1981 ;;
a0da8069
NN
1982 *-*-netbsd*)
1983 # Skip some stuff on all NetBSD configurations.
1984 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1985
1986 # Skip some stuff that's unsupported on some NetBSD configurations.
1987 case "${target}" in
1988 i*86-*-netbsdelf*) ;;
5b474aa8 1989 arm*-*-netbsdelf*) ;;
a0da8069 1990 *)
54d1c879 1991 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
1992 ;;
1993 esac
1994 ;;
2a3124ca 1995 *-*-netware*)
54d1c879 1996 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
1997 ;;
1998 *-*-rtems*)
54d1c879 1999 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2000 ;;
1587117a
EC
2001 # The tpf target doesn't support gdb yet.
2002 *-*-tpf*)
54d1c879 2003 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2004 ;;
c1968181 2005 *-*-uclinux*)
54d1c879 2006 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2007 ;;
a0da8069 2008 *-*-vxworks*)
54d1c879 2009 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2010 ;;
2011 alpha*-dec-osf*)
2012 # ld works, but does not support shared libraries.
2013 # newlib is not 64 bit ready. I'm not sure about fileutils.
2014 # gas doesn't generate exception information.
2015 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2016 ;;
2017 alpha*-*-*vms*)
54d1c879 2018 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2019 ;;
2020 alpha*-*-linux*)
2021 # newlib is not 64 bit ready
2022 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2023 ;;
a0da8069
NN
2024 alpha*-*-*)
2025 # newlib is not 64 bit ready
54d1c879 2026 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2027 ;;
4a18bd6b 2028 am33_2.0-*-linux*)
54d1c879 2029 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2030 ;;
a0da8069 2031 sh-*-linux*)
54d1c879 2032 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2033 ;;
a0da8069 2034 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2035 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2036 noconfigdirs="$noconfigdirs target-examples"
2037 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2038 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2039 noconfigdirs="$noconfigdirs expect dejagnu"
2040 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2041 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2042 noconfigdirs="$noconfigdirs target-newlib"
2043 case "${host}" in
2044 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2045 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2046 ;;
2047 esac
2048 ;;
2049 arc-*-*)
54d1c879 2050 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2051 ;;
caeba88f 2052 arm-semi-aof )
caeba88f 2053 ;;
a0da8069 2054 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2055 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2056 ;;
11b04d1f 2057 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069
NN
2058 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2059 ;;
bd70a46f
KH
2060 arm*-*-linux-gnueabi)
2061 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2062 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2063 ;;
df4a6958 2064 arm*-*-symbianelf*)
54d1c879 2065 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
df4a6958 2066 ;;
a0da8069 2067 arm-*-pe*)
54d1c879 2068 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2069 ;;
a0da8069 2070 thumb-*-coff)
54d1c879 2071 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2072 ;;
2073 thumb-*-elf)
54d1c879 2074 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2075 ;;
a0da8069 2076 thumb-*-pe)
54d1c879 2077 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2078 ;;
2079 arm-*-riscix*)
54d1c879 2080 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2081 ;;
2082 avr-*-*)
54d1c879 2083 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2084 ;;
376a0e54 2085 bfin-*-*)
00d89675 2086 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2087 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2088 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2089 fi
2090 ;;
a0da8069 2091 c4x-*-* | tic4x-*-*)
54d1c879 2092 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2093 ;;
2094 c54x*-*-* | tic54x-*-*)
54d1c879 2095 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2096 ;;
c7e66c6d 2097 cris-*-* | crisv32-*-*)
59f7ec45 2098 unsupported_languages="$unsupported_languages java"
c7e66c6d 2099 case "${target}" in
2faa2958 2100 *-*-aout)
096f7d00 2101 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2102 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2103 *-*-elf)
096f7d00 2104 unsupported_languages="$unsupported_languages fortran"
5e818318 2105 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2106 *-*-linux*)
5e818318 2107 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2108 *)
096f7d00 2109 unsupported_languages="$unsupported_languages fortran"
54d1c879 2110 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2111 esac
a0da8069 2112 ;;
3e707e94 2113 crx-*-*)
54d1c879 2114 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2115 ;;
a0da8069 2116 d10v-*-*)
54d1c879 2117 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2118 ;;
2119 d30v-*-*)
54d1c879 2120 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2121 ;;
2122 fr30-*-elf*)
54d1c879 2123 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2124 ;;
2125 frv-*-*)
54d1c879 2126 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2127 ;;
2128 h8300*-*-*)
54d1c879 2129 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2130 ;;
2131 h8500-*-*)
54d1c879 2132 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2133 ;;
caeba88f 2134 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2135 ;;
a0da8069
NN
2136 hppa*64*-*-linux* | parisc*64*-*-linux*)
2137 # In this case, it's because the hppa64-linux target is for
2138 # the kernel only at this point and has no libc, and thus no
2139 # headers, crt*.o, etc., all of which are needed by these.
2140 noconfigdirs="$noconfigdirs target-zlib"
2141 ;;
5dcac624
DA
2142 parisc*-*-linux* | hppa*-*-linux*)
2143 ;;
a0da8069 2144 hppa*-*-*elf* | \
a0da8069
NN
2145 hppa*-*-lites* | \
2146 hppa*-*-openbsd* | \
2147 hppa*64*-*-*)
54d1c879 2148 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2149 ;;
2150 hppa*-hp-hpux11*)
2151 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069
NN
2152 ;;
2153 hppa*-*-*)
2154 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2155 # build on HP-UX 10.20.
54d1c879 2156 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2157 ;;
b07c2aad 2158 i960-*-*)
54d1c879 2159 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2160 ;;
a0da8069
NN
2161 ia64*-*-elf*)
2162 # No gdb support yet.
675c6968 2163 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2164 ;;
2165 ia64*-**-hpux*)
2166 # No gdb or ld support yet.
54d1c879 2167 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2168 ;;
caeba88f 2169 i370-*-opened*)
caeba88f 2170 ;;
ec11bdc6 2171 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2172 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2173 ;;
ec11bdc6 2174 i[3456789]86-*-linux*)
a0da8069
NN
2175 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2176 # not build java stuff by default.
2177 case "${target}" in
2178 *-*-*libc1*)
54d1c879 2179 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2180 esac
2181
2182 # This section makes it possible to build newlib natively on linux.
2183 # If we are using a cross compiler then don't configure newlib.
2184 if test x${is_cross_compiler} != xno ; then
bba45b8b 2185 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2186 fi
2187 noconfigdirs="$noconfigdirs target-libgloss"
2188 # If we are not using a cross compiler, do configure newlib.
2189 # Note however, that newlib will only be configured in this situation
2190 # if the --with-newlib option has been given, because otherwise
2191 # 'target-newlib' will appear in skipdirs.
2192 ;;
ec11bdc6 2193 i[3456789]86-*-mingw32*)
45055374
CV
2194 target_configdirs="$target_configdirs target-winsup"
2195 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2196 ;;
2d1e8239
NC
2197 x86_64-*-mingw*)
2198 target_configdirs="$target_configdirs target-winsup"
2199 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2200 ;;
a0da8069
NN
2201 *-*-cygwin*)
2202 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2203 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2204 # always build newlib if winsup directory is present.
45055374 2205 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2206 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2207 elif test -d "$srcdir/newlib"; then
45055374 2208 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2209 fi
c6b750e1 2210 ;;
caeba88f
AL
2211 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2212 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2213 ;;
ec11bdc6 2214 i[3456789]86-*-pe)
54d1c879 2215 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2216 ;;
ec11bdc6 2217 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2218 # The linker does not yet know about weak symbols in COFF,
2219 # and is not configured to handle mixed ELF and COFF.
54d1c879 2220 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2221 ;;
ec11bdc6 2222 i[3456789]86-*-sco*)
54d1c879 2223 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2224 ;;
ec11bdc6 2225 i[3456789]86-*-solaris2*)
a0da8069
NN
2226 noconfigdirs="$noconfigdirs target-libgloss"
2227 ;;
ec11bdc6 2228 i[3456789]86-*-sysv4*)
54d1c879 2229 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2230 ;;
ec11bdc6 2231 i[3456789]86-*-beos*)
54d1c879 2232 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2233 ;;
b59bea8a 2234 i[3456789]86-*-rdos*)
2429c060
PB
2235 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2236 ;;
b07c2aad 2237 m32r-*-*)
54d1c879 2238 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2239 ;;
a0da8069 2240 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2241 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2242 ;;
2243 m68k-*-elf*)
54d1c879 2244 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2245 ;;
2246 m68k-*-coff*)
54d1c879 2247 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2248 ;;
2249 mcore-*-pe*)
2250 # The EPOC C++ environment does not support exceptions or rtti,
2251 # and so building libstdc++-v3 tends not to always work.
2252 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2253 ;;
2254 mmix-*-*)
59f7ec45 2255 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2256 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2257 ;;
2258 mn10200-*-*)
54d1c879 2259 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2260 ;;
2261 mn10300-*-*)
54d1c879 2262 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2263 ;;
4970f871 2264 mt-*-*)
cdb9b172
AH
2265 noconfigdirs="$noconfigdirs sim"
2266 ;;
a0da8069
NN
2267 powerpc-*-aix*)
2268 # copied from rs6000-*-* entry
54d1c879 2269 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2270 ;;
2271 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2272 target_configdirs="$target_configdirs target-winsup"
54d1c879 2273 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2274 # always build newlib.
2275 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2276 ;;
2277 # This is temporary until we can link against shared libraries
2278 powerpcle-*-solaris*)
54d1c879 2279 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
a0da8069
NN
2280 ;;
2281 powerpc-*-beos*)
54d1c879 2282 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2283 ;;
a0da8069 2284 powerpc-*-eabi)
54d1c879 2285 noconfigdirs="$noconfigdirs ${libgcj}"
caeba88f
AL
2286 ;;
2287 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
a0da8069 2288 ;;
a0da8069 2289 rs6000-*-lynxos*)
54d1c879 2290 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2291 ;;
2292 rs6000-*-aix*)
54d1c879 2293 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2294 ;;
2295 rs6000-*-*)
54d1c879 2296 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2297 ;;
2298 m68k-apollo-*)
54d1c879 2299 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069
NN
2300 ;;
2301 mips*-*-irix5*)
54d1c879 2302 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2303 ;;
2304 mips*-*-irix6*)
a0da8069
NN
2305 # Linking libjava exceeds command-line length limits on at least
2306 # IRIX 6.2, but not on IRIX 6.5.
2307 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2308 # <oldham@codesourcery.com>
54d1c879 2309 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2310 ;;
a0da8069 2311 mips*-*-bsd*)
54d1c879 2312 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2313 ;;
1712ab83 2314 mips64*-*-linux*)
f3529cf1 2315 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1712ab83 2316 ;;
a0da8069
NN
2317 mips*-*-linux*)
2318 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2319 ;;
2320 mips*-*-*)
54d1c879 2321 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2322 ;;
2323 romp-*-*)
54d1c879 2324 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2325 ;;
dbf85af7 2326 sh-*-* | sh64-*-*)
a0da8069 2327 case "${host}" in
ec11bdc6
DD
2328 i[3456789]86-*-vsta) ;; # don't add gprof back in
2329 i[3456789]86-*-go32*) ;; # don't add gprof back in
2330 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2331 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2332 esac
54d1c879 2333 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2334 ;;
a0da8069 2335 sparc-*-elf*)
54d1c879 2336 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2337 ;;
2338 sparc64-*-elf*)
54d1c879 2339 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2340 ;;
2341 sparclite-*-*)
54d1c879 2342 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2343 ;;
2344 sparc-*-sunos4*)
54d1c879 2345 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2346 if test x${is_cross_compiler} != xno ; then
2347 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2348 else
2349 use_gnu_ld=no
2350 fi
2351 ;;
e3c770b1 2352 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2353 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2354 ;;
a0da8069
NN
2355 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2356 ;;
2839fe5d
BE
2357 spu-*-*)
2358 skipdirs="target-libssp"
2359 ;;
a0da8069 2360 v810-*-*)
54d1c879 2361 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2362 ;;
2363 v850-*-*)
54d1c879 2364 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2365 ;;
2366 v850e-*-*)
54d1c879 2367 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2368 ;;
2369 v850ea-*-*)
54d1c879 2370 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2371 ;;
2372 vax-*-vms)
54d1c879 2373 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2374 ;;
2375 vax-*-*)
54d1c879 2376 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2377 ;;
fbd1054d 2378 xtensa-*-*)
54d1c879 2379 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2380 ;;
a0da8069 2381 ip2k-*-*)
54d1c879 2382 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2383 ;;
de0b4a87 2384 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2385 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2386 ;;
2387 *-*-lynxos*)
54d1c879 2388 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2389 ;;
a0da8069 2390 *-*-*)
54d1c879 2391 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2392 ;;
2393esac
252b5132 2394
a0da8069
NN
2395# If we aren't building newlib, then don't build libgloss, since libgloss
2396# depends upon some newlib header files.
2397case "${noconfigdirs}" in
2398 *target-libgloss*) ;;
2399 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2400esac
2401
a0da8069
NN
2402# Work in distributions that contain no compiler tools, like Autoconf.
2403tentative_cc=""
2404host_makefile_frag=/dev/null
2405if test -d ${srcdir}/config ; then
2406case "${host}" in
2407 m68k-hp-hpux*)
2408 # Avoid "too much defining" errors from HPUX compiler.
2409 tentative_cc="cc -Wp,-H256000"
2410 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2411 # If it's HP/UX ar, this should be harmless.
2412 RANLIB="ar ts"
2413 ;;
2414 m68k-apollo-sysv*)
2415 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2416 ;;
2417 m68k-apollo-bsd*)
2418 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2419 # chokes on bfd, the compiler won't let you assign integers to enums, and
2420 # other problems. Defining CC to gcc is a questionable way to say "don't use
2421 # the apollo compiler" (the preferred version of GCC could be called cc,
2422 # or whatever), but I'm not sure leaving CC as cc is any better...
2423 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2424 # Used to have BISON=yacc.
2425 tentative_cc=gcc
2426 ;;
2427 m88k-dg-dgux*)
2428 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2429 ;;
2430 m88k-harris-cxux*)
2431 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2432 tentative_cc="cc -Xa"
2433 host_makefile_frag="config/mh-cxux"
2434 ;;
2435 m88k-motorola-sysv*)
2436 ;;
2437 mips*-dec-ultrix*)
2438 tentative_cc="cc -Wf,-XNg1000"
2439 host_makefile_frag="config/mh-decstation"
2440 ;;
2441 mips*-nec-sysv4*)
2442 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2443 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2444 host_makefile_frag="config/mh-necv4"
2445 ;;
2446 mips*-sgi-irix4*)
2447 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2448 # environment. Also bump switch table size so that cp-parse will
2449 # compile. Bump string length limit so linker builds.
2450 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2451 ;;
2452 mips*-*-sysv4*)
2453 host_makefile_frag="config/mh-sysv4"
2454 ;;
2455 mips*-*-sysv*)
2456 # This is for a MIPS running RISC/os 4.52C.
2457
2458 # This is needed for GDB, but needs to be in the top-level make because
2459 # if a library is compiled with the bsd headers and gets linked with the
2460 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2461 # a different size).
2462 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2463 # known except to select the sysv environment. Could we use /proc instead?
2464 # These "sysv environments" and "bsd environments" often end up being a pain.
2465 #
2466 # This is not part of CFLAGS because perhaps not all C compilers have this
2467 # option.
2468 tentative_cc="cc -systype sysv"
2469 ;;
2470 i370-ibm-opened*)
2471 tentative_cc="c89"
2472 ;;
ec11bdc6 2473 i[3456789]86-*-sysv5*)
a0da8069
NN
2474 host_makefile_frag="config/mh-sysv5"
2475 ;;
ec11bdc6 2476 i[3456789]86-*-dgux*)
a0da8069
NN
2477 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2478 host_makefile_frag="config/mh-dgux386"
2479 ;;
ec11bdc6 2480 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2481 # The MetaWare compiler will generate a copyright message unless you
2482 # turn it off by adding the -Hnocopyr flag.
2483 tentative_cc="cc -Hnocopyr"
2484 ;;
ec11bdc6 2485 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2486 # for an NCR 3000 (i486/SVR4) system.
2487 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2488 # This compiler not only emits obnoxious copyright messages every time
2489 # you run it, but it chokes and dies on a whole bunch of GNU source
2490 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2491 tentative_cc="/usr/ccs/ATT/cc"
2492 host_makefile_frag="config/mh-ncr3000"
2493 ;;
ec11bdc6 2494 i[3456789]86-*-sco3.2v5*)
a0da8069 2495 ;;
ec11bdc6 2496 i[3456789]86-*-sco*)
a0da8069
NN
2497 # The native C compiler botches some simple uses of const. Unfortunately,
2498 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2499 tentative_cc="cc -Dconst="
2500 host_makefile_frag="config/mh-sco"
2501 ;;
ec11bdc6 2502 i[3456789]86-*-udk*)
a0da8069
NN
2503 host_makefile_frag="config/mh-sysv5"
2504 ;;
ec11bdc6 2505 i[3456789]86-*-solaris2*)
a0da8069
NN
2506 host_makefile_frag="config/mh-sysv4"
2507 ;;
ec11bdc6 2508 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2509 host_makefile_frag="config/mh-djgpp"
2510 ;;
2511 *-cygwin*)
2512 host_makefile_frag="config/mh-cygwin"
2513 ;;
2514 *-mingw32*)
a0da8069 2515 ;;
2d1e8239
NC
2516 *-mingw64*)
2517 ;;
a0da8069
NN
2518 *-interix*)
2519 host_makefile_frag="config/mh-interix"
2520 ;;
2521 vax-*-ultrix2*)
2522 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2523 tentative_cc=gcc
2524 ;;
2525 *-*-solaris2*)
2526 host_makefile_frag="config/mh-solaris"
2527 ;;
2528 m68k-sun-sunos*)
2529 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2530 # without overflowing the jump tables (-J says to use a 32 bit table)
2531 tentative_cc="cc -J"
2532 ;;
2533 *-hp-hpux*)
2534 tentative_cc="cc -Wp,-H256000"
2535 ;;
2536 *-*-hiux*)
2537 tentative_cc="cc -Wp,-H256000"
2538 ;;
2539 rs6000-*-lynxos*)
2540 # /bin/cc is less than useful for our purposes. Always use GCC
2541 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2542 host_makefile_frag="config/mh-lynxrs6k"
2543 ;;
0df3d27f
PB
2544 powerpc-*-darwin*)
2545 host_makefile_frag="config/mh-ppc-darwin"
2546 ;;
f6d183c0
PB
2547 powerpc-*-aix*)
2548 host_makefile_frag="config/mh-ppc-aix"
2549 ;;
2550 rs6000-*-aix*)
2551 host_makefile_frag="config/mh-ppc-aix"
2552 ;;
a0da8069
NN
2553 *-*-lynxos*)
2554 # /bin/cc is less than useful for our purposes. Always use GCC
2555 tentative_cc="/bin/gcc"
2556 ;;
2557 *-*-sysv4*)
2558 host_makefile_frag="config/mh-sysv4"
2559 ;;
fe69863c
DD
2560 # This is placed last to prevent interfering with the cases above.
2561 i[3456789]86-*-*)
2562 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2563 host_makefile_frag="config/mh-x86omitfp"
2564 ;;
a0da8069
NN
2565esac
2566fi
2567
9e07f89d
NN
2568# If we aren't going to be using gcc, see if we can extract a definition
2569# of CC from the fragment.
2570# Actually, use the 'pre-extracted' version above.
2571if test -z "${CC}" && test "${build}" = "${host}" ; then
2572 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2573 found=
2574 for dir in $PATH; do
2575 test -z "$dir" && dir=.
2576 if test -f $dir/gcc; then
2577 found=yes
2578 break
2579 fi
2580 done
2581 IFS="$save_ifs"
2582 if test -z "${found}" && test -n "${tentative_cc}" ; then
2583 CC=$tentative_cc
2584 fi
2585fi
2586
2587if test "${build}" != "${host}" ; then
2588 # If we are doing a Canadian Cross, in which the host and build systems
2589 # are not the same, we set reasonable default values for the tools.
2590
c6b750e1 2591 CC=${CC-${host_noncanonical}-gcc}
9e07f89d 2592 CFLAGS=${CFLAGS-"-g -O2"}
c6b750e1 2593 CXX=${CXX-${host_noncanonical}-c++}
9e07f89d
NN
2594 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2595 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
9e07f89d
NN
2596
2597else
2598 # Set reasonable default values for some tools even if not Canadian.
2599 # Of course, these are different reasonable default values, originally
2600 # specified directly in the Makefile.
2601 # We don't export, so that autoconf can do its job.
2602 # Note that all these settings are above the fragment inclusion point
2603 # in Makefile.in, so can still be overridden by fragments.
2604 # This is all going to change when we autoconfiscate...
2605
9e07f89d 2606 CC_FOR_BUILD="\$(CC)"
c6b750e1
DJ
2607 ac_ext=c
2608ac_cpp='$CPP $CPPFLAGS'
2609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2611ac_compiler_gnu=$ac_cv_c_compiler_gnu
2612if test -n "$ac_tool_prefix"; then
2613 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2614set dummy ${ac_tool_prefix}gcc; ac_word=$2
2615echo "$as_me:$LINENO: checking for $ac_word" >&5
2616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2617if test "${ac_cv_prog_CC+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2619else
2620 if test -n "$CC"; then
2621 ac_cv_prog_CC="$CC" # Let the user override the test.
2622else
2623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624for as_dir in $PATH
2625do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2633 fi
2634done
2635done
2636
2637fi
2638fi
2639CC=$ac_cv_prog_CC
2640if test -n "$CC"; then
2641 echo "$as_me:$LINENO: result: $CC" >&5
2642echo "${ECHO_T}$CC" >&6
2643else
2644 echo "$as_me:$LINENO: result: no" >&5
2645echo "${ECHO_T}no" >&6
2646fi
2647
2648fi
2649if test -z "$ac_cv_prog_CC"; then
2650 ac_ct_CC=$CC
6a9cf61e 2651 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2652set dummy gcc; ac_word=$2
c6b750e1
DJ
2653echo "$as_me:$LINENO: checking for $ac_word" >&5
2654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2655if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657else
2658 if test -n "$ac_ct_CC"; then
2659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2660else
2661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH
2663do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 ac_cv_prog_ac_ct_CC="gcc"
2669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2671 fi
2672done
2673done
2674
2675fi
2676fi
2677ac_ct_CC=$ac_cv_prog_ac_ct_CC
2678if test -n "$ac_ct_CC"; then
2679 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2680echo "${ECHO_T}$ac_ct_CC" >&6
2681else
2682 echo "$as_me:$LINENO: result: no" >&5
2683echo "${ECHO_T}no" >&6
2684fi
2685
2686 CC=$ac_ct_CC
2687else
2688 CC="$ac_cv_prog_CC"
2689fi
2690
2691if test -z "$CC"; then
2692 if test -n "$ac_tool_prefix"; then
2693 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2694set dummy ${ac_tool_prefix}cc; ac_word=$2
2695echo "$as_me:$LINENO: checking for $ac_word" >&5
2696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2697if test "${ac_cv_prog_CC+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2699else
2700 if test -n "$CC"; then
2701 ac_cv_prog_CC="$CC" # Let the user override the test.
2702else
c6b750e1
DJ
2703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704for as_dir in $PATH
2705do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710 ac_cv_prog_CC="${ac_tool_prefix}cc"
2711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2713 fi
2714done
2715done
2716
9e07f89d
NN
2717fi
2718fi
c6b750e1 2719CC=$ac_cv_prog_CC
9e07f89d 2720if test -n "$CC"; then
c6b750e1
DJ
2721 echo "$as_me:$LINENO: result: $CC" >&5
2722echo "${ECHO_T}$CC" >&6
9e07f89d 2723else
c6b750e1
DJ
2724 echo "$as_me:$LINENO: result: no" >&5
2725echo "${ECHO_T}no" >&6
9e07f89d
NN
2726fi
2727
c6b750e1
DJ
2728fi
2729if test -z "$ac_cv_prog_CC"; then
2730 ac_ct_CC=$CC
2731 # Extract the first word of "cc", so it can be a program name with args.
2732set dummy cc; ac_word=$2
2733echo "$as_me:$LINENO: checking for $ac_word" >&5
2734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2735if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2737else
2738 if test -n "$ac_ct_CC"; then
2739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2740else
2741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742for as_dir in $PATH
2743do
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748 ac_cv_prog_ac_ct_CC="cc"
2749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2751 fi
2752done
2753done
2754
2755fi
2756fi
2757ac_ct_CC=$ac_cv_prog_ac_ct_CC
2758if test -n "$ac_ct_CC"; then
2759 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2760echo "${ECHO_T}$ac_ct_CC" >&6
2761else
2762 echo "$as_me:$LINENO: result: no" >&5
2763echo "${ECHO_T}no" >&6
2764fi
2765
2766 CC=$ac_ct_CC
2767else
2768 CC="$ac_cv_prog_CC"
2769fi
2770
2771fi
9e07f89d
NN
2772if test -z "$CC"; then
2773 # Extract the first word of "cc", so it can be a program name with args.
2774set dummy cc; ac_word=$2
c6b750e1
DJ
2775echo "$as_me:$LINENO: checking for $ac_word" >&5
2776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2777if test "${ac_cv_prog_CC+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2779else
2780 if test -n "$CC"; then
2781 ac_cv_prog_CC="$CC" # Let the user override the test.
2782else
9e07f89d 2783 ac_prog_rejected=no
c6b750e1
DJ
2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785for as_dir in $PATH
2786do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2792 ac_prog_rejected=yes
2793 continue
2794 fi
2795 ac_cv_prog_CC="cc"
2796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2798 fi
2799done
2800done
2801
9e07f89d
NN
2802if test $ac_prog_rejected = yes; then
2803 # We found a bogon in the path, so make sure we never use it.
2804 set dummy $ac_cv_prog_CC
2805 shift
c6b750e1 2806 if test $# != 0; then
9e07f89d
NN
2807 # We chose a different compiler from the bogus one.
2808 # However, it has the same basename, so the bogon will be chosen
2809 # first if we set CC to just the basename; use the full file name.
2810 shift
c6b750e1 2811 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
2812 fi
2813fi
2814fi
2815fi
c6b750e1 2816CC=$ac_cv_prog_CC
9e07f89d 2817if test -n "$CC"; then
c6b750e1
DJ
2818 echo "$as_me:$LINENO: result: $CC" >&5
2819echo "${ECHO_T}$CC" >&6
9e07f89d 2820else
c6b750e1
DJ
2821 echo "$as_me:$LINENO: result: no" >&5
2822echo "${ECHO_T}no" >&6
9e07f89d
NN
2823fi
2824
c6b750e1
DJ
2825fi
2826if test -z "$CC"; then
2827 if test -n "$ac_tool_prefix"; then
2828 for ac_prog in cl
2829 do
2830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2831set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2832echo "$as_me:$LINENO: checking for $ac_word" >&5
2833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2834if test "${ac_cv_prog_CC+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2836else
2837 if test -n "$CC"; then
2838 ac_cv_prog_CC="$CC" # Let the user override the test.
2839else
c6b750e1
DJ
2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
376a0e54 2850 fi
c6b750e1
DJ
2851done
2852done
cac3d6c4 2853
c6b750e1
DJ
2854fi
2855fi
2856CC=$ac_cv_prog_CC
2857if test -n "$CC"; then
2858 echo "$as_me:$LINENO: result: $CC" >&5
2859echo "${ECHO_T}$CC" >&6
cac3d6c4 2860else
c6b750e1
DJ
2861 echo "$as_me:$LINENO: result: no" >&5
2862echo "${ECHO_T}no" >&6
9e07f89d 2863fi
cac3d6c4 2864
c6b750e1
DJ
2865 test -n "$CC" && break
2866 done
cac3d6c4 2867fi
c6b750e1
DJ
2868if test -z "$CC"; then
2869 ac_ct_CC=$CC
2870 for ac_prog in cl
2871do
2872 # Extract the first word of "$ac_prog", so it can be a program name with args.
2873set dummy $ac_prog; ac_word=$2
2874echo "$as_me:$LINENO: checking for $ac_word" >&5
2875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2876if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 2878else
c6b750e1
DJ
2879 if test -n "$ac_ct_CC"; then
2880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 2881else
c6b750e1
DJ
2882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883for as_dir in $PATH
2884do
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_ac_ct_CC="$ac_prog"
2890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2892 fi
2893done
2894done
2895
cac3d6c4
CM
2896fi
2897fi
c6b750e1
DJ
2898ac_ct_CC=$ac_cv_prog_ac_ct_CC
2899if test -n "$ac_ct_CC"; then
2900 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2901echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 2902else
c6b750e1
DJ
2903 echo "$as_me:$LINENO: result: no" >&5
2904echo "${ECHO_T}no" >&6
cac3d6c4 2905fi
376a0e54 2906
c6b750e1
DJ
2907 test -n "$ac_ct_CC" && break
2908done
2909
2910 CC=$ac_ct_CC
2911fi
2912
2913fi
2914
2915
2916test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2917See \`config.log' for more details." >&5
2918echo "$as_me: error: no acceptable C compiler found in \$PATH
2919See \`config.log' for more details." >&2;}
2920 { (exit 1); exit 1; }; }
2921
2922# Provide some information about the compiler.
2923echo "$as_me:$LINENO:" \
2924 "checking for C compiler version" >&5
2925ac_compiler=`set X $ac_compile; echo $2`
2926{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2927 (eval $ac_compiler --version </dev/null >&5) 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }
2931{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2932 (eval $ac_compiler -v </dev/null >&5) 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }
2936{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2937 (eval $ac_compiler -V </dev/null >&5) 2>&5
2938 ac_status=$?
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }
2941
2942cat >conftest.$ac_ext <<_ACEOF
2943/* confdefs.h. */
2944_ACEOF
2945cat confdefs.h >>conftest.$ac_ext
2946cat >>conftest.$ac_ext <<_ACEOF
2947/* end confdefs.h. */
2948
2949int
2950main ()
2951{
2952
2953 ;
2954 return 0;
2955}
2956_ACEOF
2957ac_clean_files_save=$ac_clean_files
2958ac_clean_files="$ac_clean_files a.out a.exe b.out"
2959# Try to create an executable without -o first, disregard a.out.
2960# It will help us diagnose broken compilers, and finding out an intuition
2961# of exeext.
2962echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2963echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2964ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2965if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2966 (eval $ac_link_default) 2>&5
2967 ac_status=$?
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; then
2970 # Find the output, starting from the most likely. This scheme is
2971# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2972# resort.
2973
2974# Be careful to initialize this variable, since it used to be cached.
2975# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2976ac_cv_exeext=
2977# b.out is created by i960 compilers.
2978for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2979do
2980 test -f "$ac_file" || continue
2981 case $ac_file in
2982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2983 ;;
2984 conftest.$ac_ext )
2985 # This is the source file.
2986 ;;
2987 [ab].out )
2988 # We found the default executable, but exeext='' is most
2989 # certainly right.
2990 break;;
2991 *.* )
2992 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2993 # FIXME: I believe we export ac_cv_exeext for Libtool,
2994 # but it would be cool to find out if it's true. Does anybody
2995 # maintain Libtool? --akim.
2996 export ac_cv_exeext
2997 break;;
2998 * )
2999 break;;
3000 esac
3001done
3002else
3003 echo "$as_me: failed program was:" >&5
3004sed 's/^/| /' conftest.$ac_ext >&5
3005
3006{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3007See \`config.log' for more details." >&5
3008echo "$as_me: error: C compiler cannot create executables
3009See \`config.log' for more details." >&2;}
3010 { (exit 77); exit 77; }; }
3011fi
3012
3013ac_exeext=$ac_cv_exeext
3014echo "$as_me:$LINENO: result: $ac_file" >&5
3015echo "${ECHO_T}$ac_file" >&6
3016
3017# Check the compiler produces executables we can run. If not, either
3018# the compiler is broken, or we cross compile.
3019echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3020echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3021# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3022# If not cross compiling, check that we can run a simple program.
3023if test "$cross_compiling" != yes; then
3024 if { ac_try='./$ac_file'
3025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026 (eval $ac_try) 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; }; then
3030 cross_compiling=no
3031 else
3032 if test "$cross_compiling" = maybe; then
3033 cross_compiling=yes
3034 else
3035 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3036If you meant to cross compile, use \`--host'.
3037See \`config.log' for more details." >&5
3038echo "$as_me: error: cannot run C compiled programs.
3039If you meant to cross compile, use \`--host'.
3040See \`config.log' for more details." >&2;}
3041 { (exit 1); exit 1; }; }
3042 fi
3043 fi
3044fi
3045echo "$as_me:$LINENO: result: yes" >&5
3046echo "${ECHO_T}yes" >&6
3047
3048rm -f a.out a.exe conftest$ac_cv_exeext b.out
3049ac_clean_files=$ac_clean_files_save
3050# Check the compiler produces executables we can run. If not, either
3051# the compiler is broken, or we cross compile.
3052echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3053echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3054echo "$as_me:$LINENO: result: $cross_compiling" >&5
3055echo "${ECHO_T}$cross_compiling" >&6
3056
3057echo "$as_me:$LINENO: checking for suffix of executables" >&5
3058echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3060 (eval $ac_link) 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; then
3064 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3065# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3066# work properly (i.e., refer to `conftest.exe'), while it won't with
3067# `rm'.
3068for ac_file in conftest.exe conftest conftest.*; do
3069 test -f "$ac_file" || continue
3070 case $ac_file in
3071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3072 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3073 export ac_cv_exeext
3074 break;;
3075 * ) break;;
3076 esac
3077done
3078else
3079 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3080See \`config.log' for more details." >&5
3081echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3082See \`config.log' for more details." >&2;}
3083 { (exit 1); exit 1; }; }
3084fi
3085
3086rm -f conftest$ac_cv_exeext
3087echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3088echo "${ECHO_T}$ac_cv_exeext" >&6
3089
3090rm -f conftest.$ac_ext
3091EXEEXT=$ac_cv_exeext
3092ac_exeext=$EXEEXT
3093echo "$as_me:$LINENO: checking for suffix of object files" >&5
3094echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3095if test "${ac_cv_objext+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
3097else
3098 cat >conftest.$ac_ext <<_ACEOF
3099/* confdefs.h. */
3100_ACEOF
3101cat confdefs.h >>conftest.$ac_ext
3102cat >>conftest.$ac_ext <<_ACEOF
3103/* end confdefs.h. */
3104
3105int
3106main ()
3107{
3108
3109 ;
3110 return 0;
3111}
3112_ACEOF
3113rm -f conftest.o conftest.obj
3114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3115 (eval $ac_compile) 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; then
3119 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3120 case $ac_file in
3121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3122 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3123 break;;
3124 esac
3125done
cac3d6c4 3126else
c6b750e1
DJ
3127 echo "$as_me: failed program was:" >&5
3128sed 's/^/| /' conftest.$ac_ext >&5
3129
3130{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3131See \`config.log' for more details." >&5
3132echo "$as_me: error: cannot compute suffix of object files: cannot compile
3133See \`config.log' for more details." >&2;}
3134 { (exit 1); exit 1; }; }
3135fi
3136
3137rm -f conftest.$ac_cv_objext conftest.$ac_ext
3138fi
3139echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3140echo "${ECHO_T}$ac_cv_objext" >&6
3141OBJEXT=$ac_cv_objext
3142ac_objext=$OBJEXT
3143echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3144echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3145if test "${ac_cv_c_compiler_gnu+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3147else
3148 cat >conftest.$ac_ext <<_ACEOF
3149/* confdefs.h. */
3150_ACEOF
3151cat confdefs.h >>conftest.$ac_ext
3152cat >>conftest.$ac_ext <<_ACEOF
3153/* end confdefs.h. */
3154
3155int
3156main ()
3157{
3158#ifndef __GNUC__
3159 choke me
3160#endif
3161
3162 ;
3163 return 0;
3164}
3165_ACEOF
3166rm -f conftest.$ac_objext
3167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3168 (eval $ac_compile) 2>conftest.er1
3169 ac_status=$?
3170 grep -v '^ *+' conftest.er1 >conftest.err
3171 rm -f conftest.er1
3172 cat conftest.err >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } &&
3175 { ac_try='test -z "$ac_c_werror_flag"
3176 || test ! -s conftest.err'
3177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 (eval $ac_try) 2>&5
3179 ac_status=$?
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; } &&
3182 { ac_try='test -s conftest.$ac_objext'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 (eval $ac_try) 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; }; then
3188 ac_compiler_gnu=yes
3189else
3190 echo "$as_me: failed program was:" >&5
3191sed 's/^/| /' conftest.$ac_ext >&5
3192
3193ac_compiler_gnu=no
3194fi
3195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3196ac_cv_c_compiler_gnu=$ac_compiler_gnu
3197
3198fi
3199echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3200echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3201GCC=`test $ac_compiler_gnu = yes && echo yes`
3202ac_test_CFLAGS=${CFLAGS+set}
3203ac_save_CFLAGS=$CFLAGS
3204CFLAGS="-g"
3205echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3206echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3207if test "${ac_cv_prog_cc_g+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3209else
3210 cat >conftest.$ac_ext <<_ACEOF
3211/* confdefs.h. */
3212_ACEOF
3213cat confdefs.h >>conftest.$ac_ext
3214cat >>conftest.$ac_ext <<_ACEOF
3215/* end confdefs.h. */
3216
3217int
3218main ()
3219{
3220
3221 ;
3222 return 0;
3223}
3224_ACEOF
3225rm -f conftest.$ac_objext
3226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3227 (eval $ac_compile) 2>conftest.er1
3228 ac_status=$?
3229 grep -v '^ *+' conftest.er1 >conftest.err
3230 rm -f conftest.er1
3231 cat conftest.err >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); } &&
3234 { ac_try='test -z "$ac_c_werror_flag"
3235 || test ! -s conftest.err'
3236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237 (eval $ac_try) 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; } &&
3241 { ac_try='test -s conftest.$ac_objext'
3242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 (eval $ac_try) 2>&5
3244 ac_status=$?
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; }; then
9e07f89d
NN
3247 ac_cv_prog_cc_g=yes
3248else
c6b750e1
DJ
3249 echo "$as_me: failed program was:" >&5
3250sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3251
c6b750e1 3252ac_cv_prog_cc_g=no
376a0e54 3253fi
c6b750e1
DJ
3254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3255fi
3256echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3257echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3258if test "$ac_test_CFLAGS" = set; then
c6b750e1 3259 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3260elif test $ac_cv_prog_cc_g = yes; then
3261 if test "$GCC" = yes; then
3262 CFLAGS="-g -O2"
3263 else
3264 CFLAGS="-g"
3265 fi
3266else
3267 if test "$GCC" = yes; then
3268 CFLAGS="-O2"
3269 else
3270 CFLAGS=
3271 fi
3272fi
c6b750e1
DJ
3273echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3274echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3275if test "${ac_cv_prog_cc_stdc+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277else
3278 ac_cv_prog_cc_stdc=no
3279ac_save_CC=$CC
3280cat >conftest.$ac_ext <<_ACEOF
3281/* confdefs.h. */
3282_ACEOF
3283cat confdefs.h >>conftest.$ac_ext
3284cat >>conftest.$ac_ext <<_ACEOF
3285/* end confdefs.h. */
3286#include <stdarg.h>
3287#include <stdio.h>
3288#include <sys/types.h>
3289#include <sys/stat.h>
3290/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3291struct buf { int x; };
3292FILE * (*rcsopen) (struct buf *, struct stat *, int);
3293static char *e (p, i)
3294 char **p;
3295 int i;
3296{
3297 return p[i];
3298}
3299static char *f (char * (*g) (char **, int), char **p, ...)
3300{
3301 char *s;
3302 va_list v;
3303 va_start (v,p);
3304 s = g (p, va_arg (v,int));
3305 va_end (v);
3306 return s;
3307}
3308
3309/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3310 function prototypes and stuff, but not '\xHH' hex character constants.
3311 These don't provoke an error unfortunately, instead are silently treated
3312 as 'x'. The following induces an error, until -std1 is added to get
3313 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3314 array size at least. It's necessary to write '\x00'==0 to get something
3315 that's true only with -std1. */
3316int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3317
3318int test (int i, double x);
3319struct s1 {int (*f) (int a);};
3320struct s2 {int (*f) (double a);};
3321int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3322int argc;
3323char **argv;
3324int
3325main ()
3326{
3327return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3328 ;
3329 return 0;
3330}
3331_ACEOF
3332# Don't try gcc -ansi; that turns off useful extensions and
3333# breaks some systems' header files.
3334# AIX -qlanglvl=ansi
3335# Ultrix and OSF/1 -std1
3336# HP-UX 10.20 and later -Ae
3337# HP-UX older versions -Aa -D_HPUX_SOURCE
3338# SVR4 -Xc -D__EXTENSIONS__
3339for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3340do
3341 CC="$ac_save_CC $ac_arg"
3342 rm -f conftest.$ac_objext
3343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3344 (eval $ac_compile) 2>conftest.er1
3345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } &&
3351 { ac_try='test -z "$ac_c_werror_flag"
3352 || test ! -s conftest.err'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 (eval $ac_try) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; } &&
3358 { ac_try='test -s conftest.$ac_objext'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 (eval $ac_try) 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 ac_cv_prog_cc_stdc=$ac_arg
3365break
3366else
3367 echo "$as_me: failed program was:" >&5
3368sed 's/^/| /' conftest.$ac_ext >&5
3369
3370fi
3371rm -f conftest.err conftest.$ac_objext
3372done
3373rm -f conftest.$ac_ext conftest.$ac_objext
3374CC=$ac_save_CC
3375
3376fi
3377
3378case "x$ac_cv_prog_cc_stdc" in
3379 x|xno)
3380 echo "$as_me:$LINENO: result: none needed" >&5
3381echo "${ECHO_T}none needed" >&6 ;;
3382 *)
3383 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3384echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3385 CC="$CC $ac_cv_prog_cc_stdc" ;;
3386esac
3387
3388# Some people use a C++ compiler to compile C. Since we use `exit',
3389# in C++ we need to declare it. In case someone uses the same compiler
3390# for both compiling C and C++ we need to have the C++ compiler decide
3391# the declaration of exit, since it's the most demanding environment.
3392cat >conftest.$ac_ext <<_ACEOF
3393#ifndef __cplusplus
3394 choke me
3395#endif
3396_ACEOF
3397rm -f conftest.$ac_objext
3398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3399 (eval $ac_compile) 2>conftest.er1
3400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } &&
3406 { ac_try='test -z "$ac_c_werror_flag"
3407 || test ! -s conftest.err'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 (eval $ac_try) 2>&5
3410 ac_status=$?
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; } &&
3413 { ac_try='test -s conftest.$ac_objext'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 (eval $ac_try) 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; }; then
3419 for ac_declaration in \
3420 '' \
3421 'extern "C" void std::exit (int) throw (); using std::exit;' \
3422 'extern "C" void std::exit (int); using std::exit;' \
3423 'extern "C" void exit (int) throw ();' \
3424 'extern "C" void exit (int);' \
3425 'void exit (int);'
3426do
3427 cat >conftest.$ac_ext <<_ACEOF
3428/* confdefs.h. */
3429_ACEOF
3430cat confdefs.h >>conftest.$ac_ext
3431cat >>conftest.$ac_ext <<_ACEOF
3432/* end confdefs.h. */
3433$ac_declaration
3434#include <stdlib.h>
3435int
3436main ()
3437{
3438exit (42);
3439 ;
3440 return 0;
3441}
3442_ACEOF
3443rm -f conftest.$ac_objext
3444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445 (eval $ac_compile) 2>conftest.er1
3446 ac_status=$?
3447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -z "$ac_c_werror_flag"
3453 || test ! -s conftest.err'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 (eval $ac_try) 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; } &&
3459 { ac_try='test -s conftest.$ac_objext'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 (eval $ac_try) 2>&5
3462 ac_status=$?
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; }; then
3465 :
3466else
3467 echo "$as_me: failed program was:" >&5
3468sed 's/^/| /' conftest.$ac_ext >&5
3469
3470continue
3471fi
3472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3473 cat >conftest.$ac_ext <<_ACEOF
3474/* confdefs.h. */
3475_ACEOF
3476cat confdefs.h >>conftest.$ac_ext
3477cat >>conftest.$ac_ext <<_ACEOF
3478/* end confdefs.h. */
3479$ac_declaration
3480int
3481main ()
3482{
3483exit (42);
3484 ;
3485 return 0;
3486}
3487_ACEOF
3488rm -f conftest.$ac_objext
3489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3490 (eval $ac_compile) 2>conftest.er1
3491 ac_status=$?
3492 grep -v '^ *+' conftest.er1 >conftest.err
3493 rm -f conftest.er1
3494 cat conftest.err >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } &&
3497 { ac_try='test -z "$ac_c_werror_flag"
3498 || test ! -s conftest.err'
3499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500 (eval $ac_try) 2>&5
3501 ac_status=$?
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }; } &&
3504 { ac_try='test -s conftest.$ac_objext'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 (eval $ac_try) 2>&5
3507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3510 break
3511else
3512 echo "$as_me: failed program was:" >&5
3513sed 's/^/| /' conftest.$ac_ext >&5
3514
3515fi
3516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3517done
3518rm -f conftest*
3519if test -n "$ac_declaration"; then
3520 echo '#ifdef __cplusplus' >>confdefs.h
3521 echo $ac_declaration >>confdefs.h
3522 echo '#endif' >>confdefs.h
3523fi
3524
3525else
3526 echo "$as_me: failed program was:" >&5
3527sed 's/^/| /' conftest.$ac_ext >&5
3528
3529fi
3530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3531ac_ext=c
3532ac_cpp='$CPP $CPPFLAGS'
3533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d
NN
3536
3537
6a9cf61e
PB
3538 # We must set the default linker to the linker used by gcc for the correct
3539 # operation of libtool. If LD is not defined and we are using gcc, try to
3540 # set the LD default to the ld used by gcc.
3541 if test -z "$LD"; then
3542 if test "$GCC" = yes; then
3543 case $build in
3544 *-*-mingw*)
3545 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
3546 *)
3547 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
3548 esac
3549 case $gcc_prog_ld in
3550 # Accept absolute paths.
3551 [\\/]* | [A-Za-z]:[\\/]*)
3552 LD="$gcc_prog_ld" ;;
3553 esac
3554 fi
3555 fi
3556
3557 CXX=${CXX-"c++"}
3558 CFLAGS=${CFLAGS-"-g"}
3559 CXXFLAGS=${CXXFLAGS-"-g -O2"}
3560fi
3561
6a9cf61e
PB
3562
3563
9e07f89d 3564
c6b750e1
DJ
3565if test -n "$ac_tool_prefix"; then
3566 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
9e07f89d 3567set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
3568echo "$as_me:$LINENO: checking for $ac_word" >&5
3569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3570if test "${ac_cv_prog_GNATBIND+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3572else
3573 if test -n "$GNATBIND"; then
3574 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3575else
c6b750e1
DJ
3576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577for as_dir in $PATH
3578do
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3583 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 break 2
3586 fi
3587done
3588done
3589
9e07f89d
NN
3590fi
3591fi
c6b750e1 3592GNATBIND=$ac_cv_prog_GNATBIND
9e07f89d 3593if test -n "$GNATBIND"; then
c6b750e1
DJ
3594 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3595echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 3596else
c6b750e1
DJ
3597 echo "$as_me:$LINENO: result: no" >&5
3598echo "${ECHO_T}no" >&6
9e07f89d
NN
3599fi
3600
c6b750e1 3601fi
9e07f89d 3602if test -z "$ac_cv_prog_GNATBIND"; then
c6b750e1 3603 ac_ct_GNATBIND=$GNATBIND
9e07f89d
NN
3604 # Extract the first word of "gnatbind", so it can be a program name with args.
3605set dummy gnatbind; ac_word=$2
c6b750e1
DJ
3606echo "$as_me:$LINENO: checking for $ac_word" >&5
3607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3608if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 3610else
c6b750e1
DJ
3611 if test -n "$ac_ct_GNATBIND"; then
3612 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 3613else
c6b750e1
DJ
3614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615for as_dir in $PATH
3616do
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3621 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 break 2
3624 fi
3625done
3626done
3627
3628 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
3629fi
3630fi
c6b750e1
DJ
3631ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3632if test -n "$ac_ct_GNATBIND"; then
3633 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3634echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 3635else
c6b750e1
DJ
3636 echo "$as_me:$LINENO: result: no" >&5
3637echo "${ECHO_T}no" >&6
9e07f89d
NN
3638fi
3639
c6b750e1 3640 GNATBIND=$ac_ct_GNATBIND
9e07f89d 3641else
c6b750e1 3642 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
3643fi
3644
c6b750e1
DJ
3645echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3646echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3647if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3649else
3650 cat >conftest.adb <<EOF
3651procedure conftest is begin null; end conftest;
3652EOF
3653acx_cv_cc_gcc_supports_ada=no
3654# There is a bug in old released versions of GCC which causes the
3655# driver to exit successfully when the appropriate language module
3656# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3657# Therefore we must check for the error message as well as an
3658# unsuccessful exit.
b8908782
DD
3659# Other compilers, like HP Tru64 UNIX cc, exit successfully when
3660# given a .adb file, but produce no object file. So we must check
3661# if an object file was really produced to guard against this.
9e07f89d 3662errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 3663if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 3664 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
3665fi
3666rm -f conftest.*
3667fi
c6b750e1
DJ
3668echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3669echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 3670
b0aaa663 3671if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
3672 have_gnat=yes
3673else
3674 have_gnat=no
3675fi
3676
c6b750e1
DJ
3677echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
3678echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
3679if test "${gcc_cv_prog_cmp_skip+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
3681else
3682 echo abfoo >t1
3683 echo cdfoo >t2
3684 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
3685 if cmp t1 t2 2 2 > /dev/null 2>&1; then
3686 if cmp t1 t2 1 1 > /dev/null 2>&1; then
3687 :
3688 else
3689 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
3690 fi
3691 fi
b8908782
DD
3692 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
3693 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 3694 :
b8908782
DD
3695 else
3696 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
3697 fi
3698 fi
3699 rm t1 t2
3700
3701fi
c6b750e1
DJ
3702echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
3703echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
3704do_compare="$gcc_cv_prog_cmp_skip"
3705
3706
9e07f89d 3707
11b04d1f 3708# Check for GMP and MPFR
4b900473 3709gmplibs="-lmpfr -lgmp"
4b1cb4fe 3710gmpinc=
4b900473
PB
3711have_gmp=no
3712
11b04d1f
DD
3713# Specify a location for mpfr
3714# check for this first so it ends up on the link line before gmp.
c6b750e1 3715
11b04d1f
DD
3716# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
3717if test "${with_mpfr_dir+set}" = set; then
3718 withval="$with_mpfr_dir"
c6b750e1
DJ
3719 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
3720Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
3721echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
3722Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
3723 { (exit 1); exit 1; }; }
3724fi;
11b04d1f
DD
3725
3726
11b04d1f
DD
3727# Check whether --with-mpfr or --without-mpfr was given.
3728if test "${with_mpfr+set}" = set; then
3729 withval="$with_mpfr"
c6b750e1
DJ
3730
3731fi;
11b04d1f 3732
8a0d8a5c
PB
3733# Check whether --with-mpfr_include or --without-mpfr_include was given.
3734if test "${with_mpfr_include+set}" = set; then
3735 withval="$with_mpfr_include"
c6b750e1
DJ
3736
3737fi;
8a0d8a5c
PB
3738
3739# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
3740if test "${with_mpfr_lib+set}" = set; then
3741 withval="$with_mpfr_lib"
8a0d8a5c 3742
c6b750e1 3743fi;
11b04d1f
DD
3744
3745if test "x$with_mpfr" != x; then
3746 gmplibs="-L$with_mpfr/lib $gmplibs"
3747 gmpinc="-I$with_mpfr/include"
3748fi
8a0d8a5c
PB
3749if test "x$with_mpfr_include" != x; then
3750 gmpinc="-I$with_mpfr_include"
3751fi
3752if test "x$with_mpfr_lib" != x; then
3753 gmplibs="-L$with_mpfr_lib $gmplibs"
3754fi
4b900473
PB
3755if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
3756 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
3757 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
3758 # Do not test the mpfr version. Assume that it is sufficient, since
3759 # it is in the source tree, and the library has not been built yet
3760 # but it would be included on the link line in the version check below
3761 # hence making the test fail.
3762 have_gmp=yes
3763fi
11b04d1f 3764
4b1cb4fe 3765# Specify a location for gmp
c6b750e1 3766
4b1cb4fe
DD
3767# Check whether --with-gmp-dir or --without-gmp-dir was given.
3768if test "${with_gmp_dir+set}" = set; then
3769 withval="$with_gmp_dir"
c6b750e1
DJ
3770 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
3771Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
3772echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
3773Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
3774 { (exit 1); exit 1; }; }
3775fi;
4b1cb4fe
DD
3776
3777
4b1cb4fe
DD
3778# Check whether --with-gmp or --without-gmp was given.
3779if test "${with_gmp+set}" = set; then
3780 withval="$with_gmp"
c6b750e1
DJ
3781
3782fi;
4b1cb4fe 3783
8a0d8a5c
PB
3784# Check whether --with-gmp_include or --without-gmp_include was given.
3785if test "${with_gmp_include+set}" = set; then
3786 withval="$with_gmp_include"
c6b750e1
DJ
3787
3788fi;
8a0d8a5c
PB
3789
3790# Check whether --with-gmp_lib or --without-gmp_lib was given.
3791if test "${with_gmp_lib+set}" = set; then
3792 withval="$with_gmp_lib"
8a0d8a5c 3793
c6b750e1 3794fi;
8a0d8a5c 3795
4b1cb4fe 3796
11b04d1f
DD
3797if test "x$with_gmp" != x; then
3798 gmplibs="-L$with_gmp/lib $gmplibs"
3799 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 3800fi
8a0d8a5c
PB
3801if test "x$with_gmp_include" != x; then
3802 gmpinc="-I$with_gmp_include $gmpinc"
3803fi
3804if test "x$with_gmp_lib" != x; then
3805 gmplibs="-L$with_gmp_lib $gmplibs"
3806fi
4b900473
PB
3807if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
3808 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
3809 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
3810 # Do not test the gmp version. Assume that it is sufficient, since
3811 # it is in the source tree, and the library has not been built yet
3812 # but it would be included on the link line in the version check below
3813 # hence making the test fail.
3814 have_gmp=yes
3815fi
4b1cb4fe 3816
ceb92e78 3817if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
3818 have_gmp=yes
3819 saved_CFLAGS="$CFLAGS"
3820 CFLAGS="$CFLAGS $gmpinc"
3821 # Check GMP actually works
c6b750e1
DJ
3822 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
3823echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
3824
3825cat >conftest.$ac_ext <<_ACEOF
3826/* confdefs.h. */
3827_ACEOF
3828cat confdefs.h >>conftest.$ac_ext
3829cat >>conftest.$ac_ext <<_ACEOF
3830/* end confdefs.h. */
4b1cb4fe 3831#include "gmp.h"
c6b750e1
DJ
3832int
3833main ()
3834{
4b1cb4fe 3835
4b900473
PB
3836 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
3837 choke me
3838 #endif
c6b750e1
DJ
3839
3840 ;
3841 return 0;
3842}
3843_ACEOF
3844rm -f conftest.$ac_objext
3845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846 (eval $ac_compile) 2>conftest.er1
3847 ac_status=$?
3848 grep -v '^ *+' conftest.er1 >conftest.err
3849 rm -f conftest.er1
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } &&
3853 { ac_try='test -z "$ac_c_werror_flag"
3854 || test ! -s conftest.err'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856 (eval $ac_try) 2>&5
3857 ac_status=$?
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; } &&
3860 { ac_try='test -s conftest.$ac_objext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 (eval $ac_try) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 echo "$as_me:$LINENO: result: yes" >&5
3867echo "${ECHO_T}yes" >&6
3868else
3869 echo "$as_me: failed program was:" >&5
3870sed 's/^/| /' conftest.$ac_ext >&5
3871
3872echo "$as_me:$LINENO: result: no" >&5
3873echo "${ECHO_T}no" >&6; have_gmp=no
3874fi
3875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 3876
4b900473
PB
3877 if test x"$have_gmp" = xyes; then
3878 saved_LIBS="$LIBS"
3879 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
3880 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
3881echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
3882 cat >conftest.$ac_ext <<_ACEOF
3883/* confdefs.h. */
3884_ACEOF
3885cat confdefs.h >>conftest.$ac_ext
3886cat >>conftest.$ac_ext <<_ACEOF
3887/* end confdefs.h. */
9b134994 3888#include <gmp.h>
4b900473 3889 #include <mpfr.h>
c6b750e1
DJ
3890int
3891main ()
3892{
9b134994 3893
4b900473
PB
3894 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
3895 choke me
3896 #endif
3897 mpfr_t n; mpfr_init(n);
3898 mpfr_t x; mpfr_init(x);
3899 int t;
3900 mpfr_atan2 (n, n, x, GMP_RNDN);
3901 mpfr_erfc (n, x, GMP_RNDN);
3902 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
3903
3904 ;
3905 return 0;
3906}
3907_ACEOF
3908rm -f conftest.$ac_objext conftest$ac_exeext
3909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3910 (eval $ac_link) 2>conftest.er1
3911 ac_status=$?
3912 grep -v '^ *+' conftest.er1 >conftest.err
3913 rm -f conftest.er1
3914 cat conftest.err >&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } &&
3917 { ac_try='test -z "$ac_c_werror_flag"
3918 || test ! -s conftest.err'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; } &&
3924 { ac_try='test -s conftest$ac_exeext'
3925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926 (eval $ac_try) 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); }; }; then
3930 cat >conftest.$ac_ext <<_ACEOF
3931/* confdefs.h. */
3932_ACEOF
3933cat confdefs.h >>conftest.$ac_ext
3934cat >>conftest.$ac_ext <<_ACEOF
3935/* end confdefs.h. */
4b1cb4fe 3936#include <gmp.h>
4b900473 3937 #include <mpfr.h>
c6b750e1
DJ
3938int
3939main ()
3940{
9dbaa842 3941
4b900473
PB
3942 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
3943 choke me
3944 #endif
3945 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
3946
3947 ;
3948 return 0;
3949}
3950_ACEOF
3951rm -f conftest.$ac_objext conftest$ac_exeext
3952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3953 (eval $ac_link) 2>conftest.er1
3954 ac_status=$?
3955 grep -v '^ *+' conftest.er1 >conftest.err
3956 rm -f conftest.er1
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } &&
3960 { ac_try='test -z "$ac_c_werror_flag"
3961 || test ! -s conftest.err'
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963 (eval $ac_try) 2>&5
3964 ac_status=$?
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; } &&
3967 { ac_try='test -s conftest$ac_exeext'
3968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969 (eval $ac_try) 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
3973 echo "$as_me:$LINENO: result: yes" >&5
3974echo "${ECHO_T}yes" >&6
3975else
3976 echo "$as_me: failed program was:" >&5
3977sed 's/^/| /' conftest.$ac_ext >&5
3978
3979echo "$as_me:$LINENO: result: buggy but acceptable" >&5
3980echo "${ECHO_T}buggy but acceptable" >&6
3981fi
3982rm -f conftest.err conftest.$ac_objext \
3983 conftest$ac_exeext conftest.$ac_ext
3984else
3985 echo "$as_me: failed program was:" >&5
3986sed 's/^/| /' conftest.$ac_ext >&5
3987
3988echo "$as_me:$LINENO: result: no" >&5
3989echo "${ECHO_T}no" >&6; have_gmp=no
3990fi
3991rm -f conftest.err conftest.$ac_objext \
3992 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
3993 LIBS="$saved_LIBS"
3994 fi
3995 CFLAGS="$saved_CFLAGS"
4b1cb4fe 3996
4b900473 3997 if test x$have_gmp != xyes; then
c6b750e1
DJ
3998 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
3999Try the --with-gmp and/or --with-mpfr options to specify their locations.
4000Copies of these libraries' source code can be found at their respective
4001hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4002See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4003If you obtained GMP and/or MPFR from a vendor distribution package, make
4004sure that you have installed both the libraries and the header files.
4005They may be located in separate packages." >&5
4006echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
9dbaa842
DD
4007Try the --with-gmp and/or --with-mpfr options to specify their locations.
4008Copies of these libraries' source code can be found at their respective
4009hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4010See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4011If you obtained GMP and/or MPFR from a vendor distribution package, make
4012sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4013They may be located in separate packages." >&2;}
4014 { (exit 1); exit 1; }; }
4b900473 4015 fi
9dbaa842
DD
4016fi
4017
11b04d1f 4018# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4019
4020
4021
947f426e 4022# By default, C is the only stage 1 language.
9b134994 4023stage1_languages=,c,
1d39f329 4024
9e07f89d
NN
4025# Figure out what language subdirectories are present.
4026# Look if the user specified --enable-languages="..."; if not, use
4027# the environment variable $LANGUAGES if defined. $LANGUAGES might
4028# go away some day.
4029# NB: embedded tabs in this IF block -- do not untabify
4030if test -d ${srcdir}/gcc; then
4031 if test x"${enable_languages+set}" != xset; then
4032 if test x"${LANGUAGES+set}" = xset; then
4033 enable_languages="${LANGUAGES}"
4034 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4035 else
4036 enable_languages=all
4037 fi
4038 else
4039 if test x"${enable_languages}" = x ||
4040 test x"${enable_languages}" = xyes;
4041 then
4042 echo configure.in: --enable-languages needs at least one language argument 1>&2
4043 exit 1
4044 fi
4045 fi
4046 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4047
096f7d00
DE
4048 # 'f95' is the old name for the 'fortran' language. We issue a warning
4049 # and make the substitution.
4050 case ,${enable_languages}, in
4051 *,f95,*)
4052 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4053 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4054 ;;
4055 esac
4056
9e07f89d
NN
4057 # First scan to see if an enabled language requires some other language.
4058 # We assume that a given config-lang.in will list all the language
4059 # front ends it requires, even if some are required indirectly.
4060 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4061 case ${lang_frag} in
4062 ..) ;;
4063 # The odd quoting in the next line works around
4064 # an apparent bug in bash 1.12 on linux.
4065 ${srcdir}/gcc/[*]/config-lang.in) ;;
4066 *)
4067 # From the config-lang.in, get $language, $lang_requires
4068 language=
4069 lang_requires=
4070 . ${lang_frag}
4071 for other in ${lang_requires} ; do
4072 case ,${enable_languages}, in
4073 *,$other,*) ;;
4074 *,all,*) ;;
4075 *,$language,*)
4076 echo " \`$other' language required by \`$language'; enabling" 1>&2
4077 enable_languages="${enable_languages},${other}"
4078 ;;
4079 esac
4080 done
4081 ;;
4082 esac
4083 done
4084
9b134994 4085 new_enable_languages=,c,
9e07f89d 4086 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4087 potential_languages=,c,
9e07f89d
NN
4088
4089 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4090 case ${lang_frag} in
4091 ..) ;;
4092 # The odd quoting in the next line works around
4093 # an apparent bug in bash 1.12 on linux.
4094 ${srcdir}/gcc/[*]/config-lang.in) ;;
4095 *)
c6b750e1 4096 # From the config-lang.in, get $language, $target_libs,
1d39f329 4097 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4098 language=
4099 target_libs=
4100 lang_dirs=
64ce424c 4101 subdir_requires=
9b134994
PB
4102 boot_language=no
4103 build_by_default=yes
9e07f89d 4104 . ${lang_frag}
9b134994
PB
4105 if test x${language} = x; then
4106 echo "${lang_frag} doesn't set \$language." 1>&2
4107 exit 1
4108 fi
4109
4110 case ,${enable_languages}, in
4111 *,${language},*)
9e07f89d
NN
4112 # Language was explicitly selected; include it.
4113 add_this_lang=yes
4114 ;;
9b134994
PB
4115 *,all,*)
4116 # 'all' was selected, select it if it is a default language
4117 add_this_lang=${build_by_default}
9e07f89d
NN
4118 ;;
4119 *)
4120 add_this_lang=no
4121 ;;
4122 esac
4b1cb4fe 4123
64ce424c 4124 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4125 for i in $subdir_requires; do
3d3adb43 4126 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4127 case ,${enable_languages}, in
4128 *,${language},*)
4129 # Specifically requested language; tell them.
c6b750e1
DJ
4130 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4131echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4132 { (exit 1); exit 1; }; }
64ce424c
PB
4133 ;;
4134 *)
4135 # Silently disable.
9b134994 4136 add_this_lang=unsupported
64ce424c
PB
4137 ;;
4138 esac
4139 done
4140
9b134994
PB
4141 # Disable Ada if no preexisting GNAT is available.
4142 case ,${enable_languages},:${language}:${have_gnat} in
4143 *,${language},*:ada:no)
4144 # Specifically requested language; tell them.
c6b750e1
DJ
4145 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4146echo "$as_me: error: GNAT is required to build $language" >&2;}
4147 { (exit 1); exit 1; }; }
9b134994
PB
4148 ;;
4149 *:ada:no)
4150 # Silently disable.
4151 add_this_lang=unsupported
4152 ;;
4153 esac
4154
59f7ec45
HPN
4155 # Disable a language that is unsupported by the target.
4156 case " $unsupported_languages " in
4157 *" $language "*)
9b134994 4158 add_this_lang=unsupported
59f7ec45
HPN
4159 ;;
4160 esac
4161
4b1cb4fe 4162 case $add_this_lang in
9b134994 4163 unsupported)
9e07f89d 4164 # Remove language-dependent dirs.
1d39f329
NN
4165 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4166 ;;
9b134994
PB
4167 no)
4168 # Remove language-dependent dirs; still show language as supported.
4169 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4170 potential_languages="${potential_languages}${language},"
4171 ;;
4172 yes)
4173 new_enable_languages="${new_enable_languages}${language},"
4174 potential_languages="${potential_languages}${language},"
1d39f329
NN
4175 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4176 case ${boot_language} in
4177 yes)
4fa63067 4178 # Add to (comma-separated) list of stage 1 languages.
9b134994 4179 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4180 ;;
4181 esac
4182 ;;
9e07f89d
NN
4183 esac
4184 ;;
4185 esac
4186 done
4187
9b134994
PB
4188 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4189if test "${enable_stage1_languages+set}" = set; then
4190 enableval="$enable_stage1_languages"
4191 case ,${enable_stage1_languages}, in
4192 ,no,|,,)
4193 # Set it to something that will have no effect in the loop below
4194 enable_stage1_languages=c ;;
4195 ,yes,)
4196 enable_stage1_languages=`echo $new_enable_languages | \
4197 sed -e "s/^,//" -e "s/,$//" ` ;;
4198 *,all,*)
4199 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4200 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4201 esac
4202
4203 # Add "good" languages from enable_stage1_languages to stage1_languages,
4204 # while "bad" languages go in missing_languages. Leave no duplicates.
4205 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4206 case $potential_languages in
4207 *,$i,*)
4208 case $stage1_languages in
4209 *,$i,*) ;;
4210 *) stage1_languages="$stage1_languages$i," ;;
4211 esac ;;
4212 *)
4213 case $missing_languages in
4214 *,$i,*) ;;
4215 *) missing_languages="$missing_languages$i," ;;
4216 esac ;;
4217 esac
4218 done
c6b750e1 4219fi;
9b134994
PB
4220
4221 # Remove leading/trailing commas that were added for simplicity
4222 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4223 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4224 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4225 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4226
9e07f89d 4227 if test "x$missing_languages" != x; then
c6b750e1 4228 { { echo "$as_me:$LINENO: error:
27258dd4 4229The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4230Supported languages are: ${potential_languages}" >&5
4231echo "$as_me: error:
4232The following requested languages could not be built: ${missing_languages}
4233Supported languages are: ${potential_languages}" >&2;}
4234 { (exit 1); exit 1; }; }
9e07f89d 4235 fi
9e07f89d
NN
4236 if test "x$new_enable_languages" != "x$enable_languages"; then
4237 echo The following languages will be built: ${new_enable_languages}
9b134994 4238 enable_languages="$new_enable_languages"
9e07f89d 4239 fi
9b134994 4240
c6b750e1 4241
2e70b094 4242 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
9e07f89d
NN
4243fi
4244
a6df5a19
PB
4245# Handle --disable-<component> generically.
4246for dir in $configdirs $build_configdirs $target_configdirs ; do
4247 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4248 if eval test x\${enable_${dirname}} "=" xno ; then
4249 noconfigdirs="$noconfigdirs $dir"
4250 fi
4251done
4252
4f0ef2d8
CD
4253# Check for Boehm's garbage collector
4254# Check whether --enable-objc-gc or --disable-objc-gc was given.
4255if test "${enable_objc_gc+set}" = set; then
4256 enableval="$enable_objc_gc"
4257 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4258 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
4259 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4260echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4261 { (exit 1); exit 1; }; }
4f0ef2d8
CD
4262 ;;
4263esac
c6b750e1 4264fi;
4f0ef2d8
CD
4265
4266# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
4267case ,${enable_languages},:${enable_objc_gc} in
4268 *,objc,*:yes)
4f0ef2d8
CD
4269 # Keep target-boehm-gc if requested for Objective-C.
4270 ;;
4f0ef2d8 4271 *)
d42c4017
DA
4272 # Otherwise remove target-boehm-gc depending on target-libjava.
4273 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4274 noconfigdirs="$noconfigdirs target-boehm-gc"
4275 fi
4f0ef2d8
CD
4276 ;;
4277esac
4278
caeba88f
AL
4279# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4280# $build_configdirs and $target_configdirs.
9e07f89d
NN
4281# If we have the source for $noconfigdirs entries, add them to $notsupp.
4282
4283notsupp=""
4284for dir in . $skipdirs $noconfigdirs ; do
caeba88f 4285 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
4286 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4287 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4288 if test -r $srcdir/$dirname/configure ; then
4289 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4290 true
4291 else
4292 notsupp="$notsupp $dir"
4293 fi
4294 fi
4295 fi
caeba88f
AL
4296 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4297 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4298 if test -r $srcdir/$dirname/configure ; then
4299 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4300 true
4301 else
4302 notsupp="$notsupp $dir"
4303 fi
4304 fi
4305 fi
9e07f89d
NN
4306 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4307 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4308 if test -r $srcdir/$dirname/configure ; then
4309 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4310 true
4311 else
4312 notsupp="$notsupp $dir"
4313 fi
4314 fi
4315 fi
4316done
4317
4318# Sometimes the tools are distributed with libiberty but with no other
4319# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 4320# Don't let libgcc imply libiberty either.
9e07f89d 4321if test -n "${target_configdirs}" ; then
f86e35b8 4322 libgcc=
9e07f89d
NN
4323 others=
4324 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
4325 if test "$i" = "libgcc"; then
4326 libgcc=target-libgcc
4327 elif test "$i" != "libiberty" ; then
9e07f89d
NN
4328 if test -r $srcdir/$i/configure ; then
4329 others=yes;
4330 break;
4331 fi
4332 fi
4333 done
4334 if test -z "${others}" ; then
f86e35b8 4335 target_configdirs=$libgcc
9e07f89d
NN
4336 fi
4337fi
4338
4339# Quietly strip out all directories which aren't configurable in this tree.
4340# This relies on all configurable subdirectories being autoconfiscated, which
4341# is now the case.
6a9cf61e
PB
4342build_configdirs_all="$build_configdirs"
4343build_configdirs=
4344for i in ${build_configdirs_all} ; do
c6b750e1 4345 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
4346 if test -f ${srcdir}/$j/configure ; then
4347 build_configdirs="${build_configdirs} $i"
4348 fi
4349done
4350
9e07f89d
NN
4351configdirs_all="$configdirs"
4352configdirs=
4353for i in ${configdirs_all} ; do
4354 if test -f ${srcdir}/$i/configure ; then
4355 configdirs="${configdirs} $i"
4356 fi
4357done
6a9cf61e 4358
9e07f89d
NN
4359target_configdirs_all="$target_configdirs"
4360target_configdirs=
4361for i in ${target_configdirs_all} ; do
c6b750e1 4362 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
4363 if test -f ${srcdir}/$j/configure ; then
4364 target_configdirs="${target_configdirs} $i"
4365 fi
4366done
4367
4368# Produce a warning message for the subdirs we can't configure.
4369# This isn't especially interesting in the Cygnus tree, but in the individual
4370# FSF releases, it's important to let people know when their machine isn't
4371# supported by the one or two programs in a package.
4372
4373if test -n "${notsupp}" && test -z "${norecursion}" ; then
4374 # If $appdirs is non-empty, at least one of those directories must still
4375 # be configured, or we error out. (E.g., if the gas release supports a
4376 # specified target in some subdirs but not the gas subdir, we shouldn't
4377 # pretend that all is well.)
4378 if test -n "$appdirs" ; then
4379 for dir in $appdirs ; do
4380 if test -r $dir/Makefile.in ; then
4381 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4382 appdirs=""
4383 break
4384 fi
6a9cf61e 4385 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
4386 appdirs=""
4387 break
4388 fi
4389 fi
4390 done
4391 if test -n "$appdirs" ; then
4392 echo "*** This configuration is not supported by this package." 1>&2
4393 exit 1
4394 fi
4395 fi
4396 # Okay, some application will build, or we don't care to check. Still
4397 # notify of subdirs not getting built.
4398 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4399 echo " ${notsupp}" 1>&2
4400 echo " (Any other directories should still work fine.)" 1>&2
4401fi
4402
4403case "$host" in
4404 *msdosdjgpp*)
4405 enable_gdbtk=no ;;
4406esac
4407
4408copy_dirs=
4409
c6b750e1 4410
a19b6204
MM
4411# Check whether --with-build-sysroot or --without-build-sysroot was given.
4412if test "${with_build_sysroot+set}" = set; then
4413 withval="$with_build_sysroot"
4414 if test x"$withval" != x ; then
4415 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
4416 fi
4417else
4418 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 4419fi;
a19b6204
MM
4420
4421
9e07f89d
NN
4422# Handle --with-headers=XXX. If the value is not "yes", the contents of
4423# the named directory are copied to $(tooldir)/sys-include.
4424if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
4425 if test x${is_cross_compiler} = xno ; then
4426 echo 1>&2 '***' --with-headers is only supported when cross compiling
4427 exit 1
4428 fi
4429 if test x"${with_headers}" != xyes ; then
4430 case "${exec_prefixoption}" in
4431 "") x=${prefix} ;;
4432 *) x=${exec_prefix} ;;
4433 esac
c6b750e1 4434 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
4435 fi
4436fi
4437
4438# Handle --with-libs=XXX. If the value is not "yes", the contents of
4439# the name directories are copied to $(tooldir)/lib. Multiple directories
4440# are permitted.
4441if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
4442 if test x${is_cross_compiler} = xno ; then
4443 echo 1>&2 '***' --with-libs is only supported when cross compiling
4444 exit 1
4445 fi
4446 if test x"${with_libs}" != xyes ; then
4447 # Copy the libraries in reverse order, so that files in the first named
4448 # library override files in subsequent libraries.
4449 case "${exec_prefixoption}" in
4450 "") x=${prefix} ;;
4451 *) x=${exec_prefix} ;;
4452 esac
4453 for l in ${with_libs}; do
c6b750e1 4454 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
4455 done
4456 fi
4457fi
4458
2429c060
PB
4459# Set with_gnu_as and with_gnu_ld as appropriate.
4460#
4461# This is done by determining whether or not the appropriate directory
4462# is available, and by checking whether or not specific configurations
4463# have requested that this magic not happen.
c6b750e1
DJ
4464#
4465# The command line options always override the explicit settings in
2429c060
PB
4466# configure.in, and the settings in configure.in override this magic.
4467#
c6b750e1 4468# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
4469# want to do that, then you should use the --without-gnu-as and
4470# --without-gnu-ld options for the configure script.
4471
4472if test x${use_gnu_as} = x &&
4473 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
4474 with_gnu_as=yes
4475 extra_host_args="$extra_host_args --with-gnu-as"
4476fi
4477
4478if test x${use_gnu_ld} = x &&
4479 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
4480 with_gnu_ld=yes
4481 extra_host_args="$extra_host_args --with-gnu-ld"
4482fi
4483
4484# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
4485# can detect this case.
4486
4487if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
4488 with_newlib=yes
4489 extra_host_args="$extra_host_args --with-newlib"
4490fi
4491
9e07f89d
NN
4492# Handle ${copy_dirs}
4493set fnord ${copy_dirs}
4494shift
4495while test $# != 0 ; do
4496 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
4497 :
4498 else
4499 echo Copying $1 to $2
4500
4501 # Use the install script to create the directory and all required
4502 # parent directories.
4503 if test -d $2 ; then
4504 :
4505 else
4506 echo >config.temp
4507 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
4508 fi
4509
4510 # Copy the directory, assuming we have tar.
4511 # FIXME: Should we use B in the second tar? Not all systems support it.
4512 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
4513
4514 # It is the responsibility of the user to correctly adjust all
4515 # symlinks. If somebody can figure out how to handle them correctly
4516 # here, feel free to add the code.
4517
4518 echo $1 > $2/COPIED
4519 fi
4520 shift; shift
4521done
4522
2429c060
PB
4523# Determine a target-dependent exec_prefix that the installed
4524# gcc will search in. Keep this list sorted by triplet, with
4525# the *-*-osname triplets last.
4526md_exec_prefix=
4527case "${target}" in
4528 alpha*-*-*vms*)
4529 md_exec_prefix=/gnu/lib/gcc-lib
4530 ;;
4531 i3456786-pc-msdosdjgpp*)
4532 md_exec_prefix=/dev/env/DJDIR/bin
4533 ;;
4534 i3456786-*-sco3.2v5*)
4535 if test $with_gnu_as = yes; then
4536 md_exec_prefix=/usr/gnu/bin
4537 else
4538 md_exec_prefix=/usr/ccs/bin/elf
4539 fi
4540 ;;
4541
4542 mn10300-*-* | \
4543 powerpc-*-chorusos* | \
4544 powerpc*-*-eabi* | \
4545 powerpc*-*-sysv* | \
4546 powerpc*-*-kaos* | \
4547 s390x-ibm-tpf*)
4548 md_exec_prefix=/usr/ccs/bin
4549 ;;
4550 sparc64-*-elf*)
4551 ;;
4552 v850*-*-*)
4553 md_exec_prefix=/usr/ccs/bin
4554 ;;
4555 xtensa-*-elf*)
4556 ;;
4557
4558 *-*-beos* | \
4559 *-*-elf* | \
4560 *-*-hpux* | \
4561 *-*-netware* | \
4562 *-*-nto-qnx* | \
4563 *-*-rtems* | \
4564 *-*-solaris2* | \
4565 *-*-sysv45* | \
4566 *-*-vxworks* | \
4567 *-wrs-windiss)
4568 md_exec_prefix=/usr/ccs/bin
4569 ;;
4570esac
4571
a0da8069
NN
4572extra_arflags_for_target=
4573extra_nmflags_for_target=
4574extra_ranlibflags_for_target=
4575target_makefile_frag=/dev/null
4576case "${target}" in
4e206d7e
DB
4577 mep*-*-*)
4578 target_makefile_frag="config/mt-mep"
4579 ;;
77d7106f
AM
4580 spu-*-*)
4581 target_makefile_frag="config/mt-spu"
4582 ;;
2a3124ca 4583 *-*-netware*)
a0da8069
NN
4584 target_makefile_frag="config/mt-netware"
4585 ;;
3d6dfe0f
NN
4586 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
4587 target_makefile_frag="config/mt-gnu"
a0da8069
NN
4588 ;;
4589 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 4590 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
4591 # commands to handle both 32-bit and 64-bit objects. These flags are
4592 # harmless if we're using GNU nm or ar.
4593 extra_arflags_for_target=" -X32_64"
4594 extra_nmflags_for_target=" -B -X32_64"
4595 ;;
4596 *-*-darwin*)
4597 # ranlib from Darwin requires the -c flag to look at common symbols.
4598 extra_ranlibflags_for_target=" -c"
4599 ;;
4600 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
4601 target_makefile_frag="config/mt-wince"
4602 ;;
4603esac
4604
4605alphaieee_frag=/dev/null
4606case $target in
4607 alpha*-*-*)
4608 # This just makes sure to use the -mieee option to build target libs.
4609 # This should probably be set individually by each library.
4610 alphaieee_frag="config/mt-alphaieee"
4611 ;;
4612esac
4613
4614# If --enable-target-optspace always use -Os instead of -O2 to build
4615# the target libraries, similarly if it is not specified, use -Os
4616# on selected platforms.
4617ospace_frag=/dev/null
4618case "${enable_target_optspace}:${target}" in
4619 yes:*)
4620 ospace_frag="config/mt-ospace"
4621 ;;
4622 :d30v-*)
4623 ospace_frag="config/mt-d30v"
4624 ;;
4625 :m32r-* | :d10v-* | :fr30-*)
4626 ospace_frag="config/mt-ospace"
4627 ;;
4628 no:* | :*)
4629 ;;
4630 *)
4631 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
4632 ;;
4633esac
4634
a0da8069
NN
4635# Default to using --with-stabs for certain targets.
4636if test x${with_stabs} = x ; then
4637 case "${target}" in
e31d1ea3 4638 mips*-*-irix[56]*)
a0da8069
NN
4639 ;;
4640 mips*-*-* | alpha*-*-osf*)
4641 with_stabs=yes;
4642 extra_host_args="${extra_host_args} --with-stabs"
4643 ;;
4644 esac
4645fi
4646
4647# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
4648# them automatically.
4649case "${host}" in
c6b750e1 4650 hppa*64*-*-hpux11*)
a0da8069
NN
4651 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
4652 ;;
4653esac
4654
a0da8069
NN
4655# Some systems (e.g., one of the i386-aix systems the gas testers are
4656# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 4657tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
4658build_tooldir=${tooldir}
4659
a0da8069
NN
4660# Create a .gdbinit file which runs the one in srcdir
4661# and tells GDB to look there for source files.
4662
4663if test -r ${srcdir}/.gdbinit ; then
4664 case ${srcdir} in
4665 .) ;;
4666 *) cat > ./.gdbinit <<EOF
4667# ${NO_EDIT}
4668dir ${srcdir}
4669dir .
4670source ${srcdir}/.gdbinit
4671EOF
4672 ;;
4673 esac
4674fi
4675
a0da8069
NN
4676# Make sure that the compiler is able to generate an executable. If it
4677# can't, we are probably in trouble. We don't care whether we can run the
4678# executable--we might be using a cross compiler--we only care whether it
4679# can be created. At this point the main configure script has set CC.
4680we_are_ok=no
4681echo "int main () { return 0; }" > conftest.c
4682${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
4683if test $? = 0 ; then
4684 if test -s conftest || test -s conftest.exe ; then
4685 we_are_ok=yes
4686 fi
c6b750e1 4687fi
a0da8069
NN
4688case $we_are_ok in
4689 no)
4690 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
4691 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
4692 rm -f conftest*
4693 exit 1
4694 ;;
4695esac
4696rm -f conftest*
4697
4698# The Solaris /usr/ucb/cc compiler does not appear to work.
4699case "${host}" in
4700 sparc-sun-solaris2*)
4701 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
4702 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
4703 could_use=
4704 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
4705 if test -d /opt/cygnus/bin ; then
4706 if test "$could_use" = "" ; then
4707 could_use="/opt/cygnus/bin"
4708 else
4709 could_use="$could_use or /opt/cygnus/bin"
4710 fi
4711 fi
4712 if test "$could_use" = "" ; then
4713 echo "Warning: compilation may fail because you're using"
4714 echo "/usr/ucb/cc. You should change your PATH or CC "
4715 echo "variable and rerun configure."
4716 else
4717 echo "Warning: compilation may fail because you're using"
4718 echo "/usr/ucb/cc, when you should use the C compiler from"
4719 echo "$could_use. You should change your"
4720 echo "PATH or CC variable and rerun configure."
4721 fi
4722 fi
4723 ;;
4724esac
4725
a0da8069
NN
4726case "${host}" in
4727 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 4728 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
4729 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
4730esac
4731
4732# Record target_configdirs and the configure arguments for target and
4733# build configuration in Makefile.
4734target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 4735build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 4736
a0da8069
NN
4737# Determine whether gdb needs tk/tcl or not.
4738# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
4739# and in that case we want gdb to be built without tk. Ugh!
4740# In fact I believe gdb is the *only* package directly dependent on tk,
4741# so we should be able to put the 'maybe's in unconditionally and
4742# leave out the maybe dependencies when enable_gdbtk is false. I'm not
4743# 100% sure that that's safe though.
c180f501 4744
675c6968 4745gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
4746case "$enable_gdbtk" in
4747 no)
4748 GDB_TK="" ;;
c180f501
AC
4749 yes)
4750 GDB_TK="${gdb_tk}" ;;
a0da8069 4751 *)
c180f501
AC
4752 # Only add the dependency on gdbtk when GDBtk is part of the gdb
4753 # distro. Eventually someone will fix this and move Insight, nee
4754 # gdbtk to a separate directory.
4755 if test -d ${srcdir}/gdb/gdbtk ; then
4756 GDB_TK="${gdb_tk}"
4757 else
4758 GDB_TK=""
4759 fi
4760 ;;
a0da8069 4761esac
907be67c
DJ
4762CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
4763INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 4764
6bd3dfaa 4765# Strip out unwanted targets.
dd12c3a8
NN
4766
4767# While at that, we remove Makefiles if we were started for recursive
4768# configuration, so that the top-level Makefile reconfigures them,
4769# like we used to do when configure itself was recursive.
dd12c3a8 4770
6bd3dfaa
PB
4771# Loop over modules. $extrasub must be used with care, limiting as
4772# much as possible the usage of range addresses. That's because autoconf
4773# splits the sed script to overcome limits in the number of commands,
4774# and relying on carefully-timed sed passes may turn out to be very hard
4775# to maintain later. In this particular case, you just have to be careful
4776# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 4777
319cab08
PB
4778# Check whether --enable-bootstrap or --disable-bootstrap was given.
4779if test "${enable_bootstrap+set}" = set; then
4780 enableval="$enable_bootstrap"
c6b750e1 4781
319cab08 4782else
9cb3fa6f 4783 enable_bootstrap=default
c6b750e1 4784fi;
319cab08 4785
9cb3fa6f
PB
4786# Issue errors and warnings for invalid/strange bootstrap combinations.
4787case "$configdirs" in
4788 *gcc*) have_compiler=yes ;;
4789 *) have_compiler=no ;;
4790esac
4791
4792case "$have_compiler:$host:$target:$enable_bootstrap" in
4793 *:*:*:no) ;;
4794
0aed8855 4795 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
4796 # and we are in a native configuration.
4797 yes:$build:$build:default)
0aed8855 4798 enable_bootstrap=yes ;;
9cb3fa6f
PB
4799
4800 *:*:*:default)
4801 enable_bootstrap=no ;;
4802
4803 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 4804 yes:$build:$build:yes)
9cb3fa6f
PB
4805 ;;
4806
4807 # Other configurations, but we have a compiler. Assume the user knows
4808 # what he's doing.
80911fe1 4809 yes:*:*:yes)
c6b750e1
DJ
4810 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
4811echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
4812 ;;
4813
4814 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 4815 no:*:*:yes)
c6b750e1
DJ
4816 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
4817echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
4818 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
4819
4820 # Fail if wrong command line
4821 *)
c6b750e1
DJ
4822 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
4823echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
4824 { (exit 1); exit 1; }; }
9cb3fa6f
PB
4825 ;;
4826esac
4827
4828# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
4829case "$enable_bootstrap" in
4830 yes)
498d4a71 4831 bootstrap_suffix=bootstrap ;;
319cab08 4832 no)
498d4a71 4833 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
4834esac
4835
6a9cf61e 4836for module in ${build_configdirs} ; do
498d4a71
CF
4837 if test -z "${no_recursion}" \
4838 && test -f ${build_subdir}/${module}/Makefile; then
4839 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
4840 rm -f ${build_subdir}/${module}/Makefile
4841 fi
4842 extrasub="$extrasub
4843/^@if build-$module\$/d
4844/^@endif build-$module\$/d
4845/^@if build-$module-$bootstrap_suffix\$/d
4846/^@endif build-$module-$bootstrap_suffix\$/d"
4847done
4848for module in ${configdirs} ; do
80911fe1 4849 if test -z "${no_recursion}"; then
8cf39b1b 4850 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
4851 if test -f ${file}; then
4852 echo 1>&2 "*** removing ${file} to force reconfigure"
4853 rm -f ${file}
4854 fi
4855 done
498d4a71
CF
4856 fi
4857 extrasub="$extrasub
4858/^@if $module\$/d
4859/^@endif $module\$/d
4860/^@if $module-$bootstrap_suffix\$/d
4861/^@endif $module-$bootstrap_suffix\$/d"
4862done
4863for module in ${target_configdirs} ; do
4864 if test -z "${no_recursion}" \
4865 && test -f ${target_subdir}/${module}/Makefile; then
4866 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
4867 rm -f ${target_subdir}/${module}/Makefile
4868 fi
4869 extrasub="$extrasub
4870/^@if target-$module\$/d
4871/^@endif target-$module\$/d
4872/^@if target-$module-$bootstrap_suffix\$/d
4873/^@endif target-$module-$bootstrap_suffix\$/d"
4874done
4875
6bd3dfaa
PB
4876extrasub="$extrasub
4877/^@if /,/^@endif /d"
a0da8069
NN
4878
4879# Create the serialization dependencies. This uses a temporary file.
4880
e6bfb94a
AO
4881# Check whether --enable-serial-configure or --disable-serial-configure was given.
4882if test "${enable_serial_configure+set}" = set; then
4883 enableval="$enable_serial_configure"
e6bfb94a 4884
c6b750e1 4885fi;
e6bfb94a 4886
1047cb91
DD
4887case ${enable_serial_configure} in
4888 yes)
4889 enable_serial_build_configure=yes
4890 enable_serial_host_configure=yes
4891 enable_serial_target_configure=yes
4892 ;;
4893esac
4894
a0da8069
NN
4895# These force 'configure's to be done one at a time, to avoid problems
4896# with contention over a shared config.cache.
4897rm -f serdep.tmp
e6bfb94a 4898echo '# serdep.tmp' > serdep.tmp
a0da8069 4899olditem=
1047cb91 4900test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
4901for item in ${build_configdirs} ; do
4902 case ${olditem} in
4903 "") ;;
e6bfb94a 4904 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
4905 esac
4906 olditem=${item}
4907done
4908olditem=
1047cb91 4909test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
4910for item in ${configdirs} ; do
4911 case ${olditem} in
4912 "") ;;
e6bfb94a 4913 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
4914 esac
4915 olditem=${item}
4916done
4917olditem=
1047cb91 4918test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
4919for item in ${target_configdirs} ; do
4920 case ${olditem} in
4921 "") ;;
e6bfb94a 4922 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
4923 esac
4924 olditem=${item}
4925done
4926serialization_dependencies=serdep.tmp
4927
4928
e6bfb94a 4929# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
4930# target, nonopt, and variable assignments. These are the ones we
4931# might not want to pass down to subconfigures. Also strip
4932# program-prefix, program-suffix, and program-transform-name, so that
4933# we can pass down a consistent program-transform-name.
4934baseargs=
4935keep_next=no
4936skip_next=no
4937eval "set -- $ac_configure_args"
b0aaa663
DJ
4938for ac_arg
4939do
c6b750e1
DJ
4940 if test X"$skip_next" = X"yes"; then
4941 skip_next=no
4942 continue
4943 fi
4944 if test X"$keep_next" = X"yes"; then
4945 case $ac_arg in
4946 *\'*)
4947 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4948 esac
4949 baseargs="$baseargs '$ac_arg'"
4950 keep_next=no
4951 continue
4952 fi
4953
4954 # Handle separated arguments. Based on the logic generated by
4955 # autoconf 2.59.
4956 case $ac_arg in
4957 *=* | --config-cache | -C | -disable-* | --disable-* \
4958 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
4959 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
4960 | -with-* | --with-* | -without-* | --without-* | --x)
4961 separate_arg=no
4962 ;;
4963 -*)
4964 separate_arg=yes
4965 ;;
4966 *)
4967 separate_arg=no
4968 ;;
4969 esac
4970
4971 case "$ac_arg" in
4972 --no*)
4973 continue
4974 ;;
4975 --c* | \
4976 --sr* | \
4977 --ho* | \
4978 --bu* | \
4979 --t* | \
4980 --program-* | \
4981 -cache_file* | \
4982 -srcdir* | \
4983 -host* | \
4984 -build* | \
4985 -target* | \
4986 -program-prefix* | \
4987 -program-suffix* | \
4988 -program-transform-name* )
4989 skip_next=$separate_arg
4990 continue
4991 ;;
4992 -*)
4993 # An option. Add it.
4994 case $ac_arg in
4995 *\'*)
4996 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4997 esac
4998 baseargs="$baseargs '$ac_arg'"
4999 keep_next=$separate_arg
5000 ;;
5001 *)
5002 # Either a variable assignment, or a nonopt (triplet). Don't
5003 # pass it down; let the Makefile handle this.
5004 continue
5005 ;;
5006 esac
5007done
5008# Remove the initial space we just introduced and, as these will be
5009# expanded by make, quote '$'.
5010baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5011
f27d4f92
DJ
5012# Add in --program-transform-name, after --program-prefix and
5013# --program-suffix have been applied to it. Autoconf has already
5014# doubled dollar signs and backslashes in program_transform_name; we want
5015# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5016# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5017# Also, because we want to override the logic in subdir configure scripts to
5018# choose program_transform_name, replace any s,x,x, with s,y,y,.
5019sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5020${program_transform_name}
5021EOF_SED
5022gcc_transform_name=`cat conftestsed.out`
5023rm -f conftestsed.out
5024baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5025
a0da8069
NN
5026# For the build-side libraries, we just need to pretend we're native,
5027# and not use the same cache file. Multilibs are neither needed nor
5028# desired.
4b900473 5029build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5030
5031# For host modules, accept cache file option, or specification as blank.
5032case "${cache_file}" in
5033"") # empty
5034 cache_file_option="" ;;
5035/* | [A-Za-z]:[\\/]* ) # absolute path
5036 cache_file_option="--cache-file=${cache_file}" ;;
5037*) # relative path
5038 cache_file_option="--cache-file=../${cache_file}" ;;
5039esac
5040
82252c06
NN
5041# Host dirs don't like to share a cache file either, horribly enough.
5042# This seems to be due to autoconf 2.5x stupidity.
4b900473 5043host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5044
5045target_configargs=${baseargs}
5046
5047# Passing a --with-cross-host argument lets the target libraries know
5048# whether they are being built with a cross-compiler or being built
5049# native. However, it would be better to use other mechanisms to make the
5050# sorts of decisions they want to make on this basis. Please consider
5051# this option to be deprecated. FIXME.
5052if test x${is_cross_compiler} = xyes ; then
c6b750e1 5053 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5054fi
5055
5056# Default to --enable-multilib.
5057if test x${enable_multilib} = x ; then
5058 target_configargs="--enable-multilib ${target_configargs}"
5059fi
5060
5061# Pass --with-newlib if appropriate. Note that target_configdirs has
5062# changed from the earlier setting of with_newlib.
5063if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5064 target_configargs="--with-newlib ${target_configargs}"
5065fi
5066
95036d20
NN
5067# Different target subdirs use different values of certain variables
5068# (notably CXX). Worse, multilibs use *lots* of different values.
5069# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5070# it doesn't automatically accept command-line overrides of them.
5071# This means it's not safe for target subdirs to share a cache file,
5072# which is disgusting, but there you have it. Hopefully this can be
5073# fixed in future. It's still worthwhile to use a cache file for each
5074# directory. I think.
5075
ae380b45
MS
5076# Pass the appropriate --build, --host, --target and --cache-file arguments.
5077# We need to pass --target, as newer autoconf's requires consistency
5078# for target_alias and gcc doesn't manage it consistently.
4b900473 5079target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5080
a0da8069
NN
5081FLAGS_FOR_TARGET=
5082case " $target_configdirs " in
5083 *" newlib "*)
5084 case " $target_configargs " in
5085 *" --with-newlib "*)
5086 case "$target" in
5087 *-cygwin*)
564b43e5 5088 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
5089 esac
5090
5091 # If we're not building GCC, don't discard standard headers.
5092 if test -d ${srcdir}/gcc; then
5093 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5094
5095 if test "${build}" != "${host}"; then
5096 # On Canadian crosses, CC_FOR_TARGET will have already been set
5097 # by `configure', so we won't have an opportunity to add -Bgcc/
5098 # to it. This is right: we don't want to search that directory
5099 # for binaries, but we want the header files in there, so add
5100 # them explicitly.
b00612cc 5101 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5102
5103 # Someone might think of using the pre-installed headers on
5104 # Canadian crosses, in case the installed compiler is not fully
5105 # compatible with the compiler being built. In this case, it
5106 # would be better to flag an error than risking having
5107 # incompatible object files being constructed. We can't
5108 # guarantee that an error will be flagged, but let's hope the
5109 # compiler will do it, when presented with incompatible header
5110 # files.
5111 fi
5112 fi
5113
5114 case "${target}-${is_cross_compiler}" in
ec11bdc6 5115 i[3456789]86-*-linux*-no)
a0da8069
NN
5116 # Here host == target, so we don't need to build gcc,
5117 # so we don't want to discard standard headers.
5118 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5119 ;;
5120 *)
5121 # If we're building newlib, use its generic headers last, but search
5122 # for any libc-related directories first (so make it the last -B
5123 # switch).
5124 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5125 ;;
5126 esac
5127 ;;
5128 esac
5129 ;;
5130esac
45055374
CV
5131case "$target" in
5132*-mingw*)
5133 # Can't be handled as Cygwin above since Mingw does not use newlib.
5134 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' ;;
5135esac
a0da8069 5136
5fbad20a
DD
5137# Allow the user to override the flags for
5138# our build compiler if desired.
5139CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5140
a0da8069
NN
5141# On Canadian crosses, we'll be searching the right directories for
5142# the previously-installed cross compiler, so don't bother to add
5143# flags for directories within the install tree of the compiler
5144# being built; programs in there won't even run.
5145if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5146 # Search for pre-installed headers if nothing else fits.
bba45b8b 5147 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
5148fi
5149
5150if test "x${use_gnu_ld}" = x &&
5151 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5152 # Arrange for us to find uninstalled linker scripts.
b00612cc 5153 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
5154fi
5155
a481dbb7
DD
5156# Search for other target-specific linker scripts and such.
5157case "${target}" in
5158 m32c-*-* )
5159 if test -d ${srcdir}/libgloss/m32c; then
5160 # This is for crt0.o
5161 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5162 # This is for r8c.ld
5163 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5164 # This is for libnosys.a
5165 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5166 fi
5167 ;;
4e206d7e
DB
5168 mep*)
5169 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5170 ;;
5171esac
5172
a0da8069 5173# Makefile fragments.
3e707e94
PB
5174for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5175do
5176 eval fragval=\$$frag
5177 if test $fragval != /dev/null; then
5178 eval $frag=${srcdir}/$fragval
5179 fi
5180done
a0da8069
NN
5181
5182
5183
5184
5185
5186# Miscellanea: directories, flags, etc.
5187
5188
5189
5190
5191
5192
5193
6a9cf61e 5194# Build module lists & subconfigure args.
a0da8069
NN
5195
5196
5197
be01d343
PB
5198# Host module lists & subconfigure args.
5199
5200
5201
5202# Target module lists & subconfigure args.
5203
5204
5205
5206# Build tools.
5207
5208
5209
5210# Generate default definitions for YACC, M4, LEX and other programs that run
5211# on the build machine. These are used if the Makefile can't locate these
5212# programs in objdir.
5213MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5214
5215for ac_prog in 'bison -y' byacc yacc
5216do
c6b750e1 5217 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5218set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5219echo "$as_me:$LINENO: checking for $ac_word" >&5
5220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5221if test "${ac_cv_prog_YACC+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5223else
5224 if test -n "$YACC"; then
5225 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5226else
c6b750e1
DJ
5227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228for as_dir in $PATH
5229do
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234 ac_cv_prog_YACC="$ac_prog"
5235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5237 fi
5238done
5239done
5240
be01d343
PB
5241fi
5242fi
c6b750e1 5243YACC=$ac_cv_prog_YACC
be01d343 5244if test -n "$YACC"; then
c6b750e1
DJ
5245 echo "$as_me:$LINENO: result: $YACC" >&5
5246echo "${ECHO_T}$YACC" >&6
be01d343 5247else
c6b750e1
DJ
5248 echo "$as_me:$LINENO: result: no" >&5
5249echo "${ECHO_T}no" >&6
be01d343
PB
5250fi
5251
c6b750e1 5252 test -n "$YACC" && break
be01d343
PB
5253done
5254test -n "$YACC" || YACC="$MISSING bison -y"
5255
5256case " $build_configdirs " in
5257 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5258 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5259esac
5260
5261for ac_prog in bison
5262do
c6b750e1 5263 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5264set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5265echo "$as_me:$LINENO: checking for $ac_word" >&5
5266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5267if test "${ac_cv_prog_BISON+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5269else
5270 if test -n "$BISON"; then
5271 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5272else
c6b750e1
DJ
5273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274for as_dir in $PATH
5275do
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5280 ac_cv_prog_BISON="$ac_prog"
5281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 break 2
5283 fi
5284done
5285done
5286
be01d343
PB
5287fi
5288fi
c6b750e1 5289BISON=$ac_cv_prog_BISON
be01d343 5290if test -n "$BISON"; then
c6b750e1
DJ
5291 echo "$as_me:$LINENO: result: $BISON" >&5
5292echo "${ECHO_T}$BISON" >&6
be01d343 5293else
c6b750e1
DJ
5294 echo "$as_me:$LINENO: result: no" >&5
5295echo "${ECHO_T}no" >&6
be01d343
PB
5296fi
5297
c6b750e1 5298 test -n "$BISON" && break
be01d343
PB
5299done
5300test -n "$BISON" || BISON="$MISSING bison"
5301
5302case " $build_configdirs " in
5303 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5304esac
5305
5306for ac_prog in gm4 gnum4 m4
5307do
c6b750e1 5308 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5309set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5310echo "$as_me:$LINENO: checking for $ac_word" >&5
5311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5312if test "${ac_cv_prog_M4+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5314else
5315 if test -n "$M4"; then
5316 ac_cv_prog_M4="$M4" # Let the user override the test.
5317else
c6b750e1
DJ
5318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319for as_dir in $PATH
5320do
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_M4="$ac_prog"
5326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5328 fi
5329done
5330done
5331
be01d343
PB
5332fi
5333fi
c6b750e1 5334M4=$ac_cv_prog_M4
be01d343 5335if test -n "$M4"; then
c6b750e1
DJ
5336 echo "$as_me:$LINENO: result: $M4" >&5
5337echo "${ECHO_T}$M4" >&6
be01d343 5338else
c6b750e1
DJ
5339 echo "$as_me:$LINENO: result: no" >&5
5340echo "${ECHO_T}no" >&6
be01d343
PB
5341fi
5342
c6b750e1 5343 test -n "$M4" && break
be01d343
PB
5344done
5345test -n "$M4" || M4="$MISSING m4"
5346
5347case " $build_configdirs " in
5348 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5349esac
5350
5351for ac_prog in flex lex
5352do
c6b750e1 5353 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5354set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5355echo "$as_me:$LINENO: checking for $ac_word" >&5
5356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5357if test "${ac_cv_prog_LEX+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5359else
5360 if test -n "$LEX"; then
5361 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5362else
c6b750e1
DJ
5363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364for as_dir in $PATH
5365do
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5370 ac_cv_prog_LEX="$ac_prog"
5371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 break 2
5373 fi
5374done
5375done
5376
be01d343
PB
5377fi
5378fi
c6b750e1 5379LEX=$ac_cv_prog_LEX
be01d343 5380if test -n "$LEX"; then
c6b750e1
DJ
5381 echo "$as_me:$LINENO: result: $LEX" >&5
5382echo "${ECHO_T}$LEX" >&6
be01d343 5383else
c6b750e1
DJ
5384 echo "$as_me:$LINENO: result: no" >&5
5385echo "${ECHO_T}no" >&6
be01d343
PB
5386fi
5387
c6b750e1 5388 test -n "$LEX" && break
be01d343
PB
5389done
5390test -n "$LEX" || LEX="$MISSING flex"
5391
5392case " $build_configdirs " in
5393 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5394 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
5395esac
5396
5397for ac_prog in flex
5398do
c6b750e1 5399 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5400set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5401echo "$as_me:$LINENO: checking for $ac_word" >&5
5402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5403if test "${ac_cv_prog_FLEX+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5405else
5406 if test -n "$FLEX"; then
5407 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5408else
c6b750e1
DJ
5409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410for as_dir in $PATH
5411do
5412 IFS=$as_save_IFS
5413 test -z "$as_dir" && as_dir=.
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5416 ac_cv_prog_FLEX="$ac_prog"
5417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 break 2
5419 fi
5420done
5421done
5422
be01d343
PB
5423fi
5424fi
c6b750e1 5425FLEX=$ac_cv_prog_FLEX
be01d343 5426if test -n "$FLEX"; then
c6b750e1
DJ
5427 echo "$as_me:$LINENO: result: $FLEX" >&5
5428echo "${ECHO_T}$FLEX" >&6
be01d343 5429else
c6b750e1
DJ
5430 echo "$as_me:$LINENO: result: no" >&5
5431echo "${ECHO_T}no" >&6
be01d343
PB
5432fi
5433
c6b750e1 5434 test -n "$FLEX" && break
be01d343
PB
5435done
5436test -n "$FLEX" || FLEX="$MISSING flex"
5437
5438case " $build_configdirs " in
5439 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5440esac
5441
5442for ac_prog in makeinfo
5443do
c6b750e1 5444 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5445set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5446echo "$as_me:$LINENO: checking for $ac_word" >&5
5447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5448if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5450else
5451 if test -n "$MAKEINFO"; then
5452 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5453else
c6b750e1
DJ
5454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455for as_dir in $PATH
5456do
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5461 ac_cv_prog_MAKEINFO="$ac_prog"
5462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 break 2
5464 fi
5465done
5466done
5467
be01d343
PB
5468fi
5469fi
c6b750e1 5470MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 5471if test -n "$MAKEINFO"; then
c6b750e1
DJ
5472 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5473echo "${ECHO_T}$MAKEINFO" >&6
be01d343 5474else
c6b750e1
DJ
5475 echo "$as_me:$LINENO: result: no" >&5
5476echo "${ECHO_T}no" >&6
be01d343
PB
5477fi
5478
c6b750e1 5479 test -n "$MAKEINFO" && break
be01d343
PB
5480done
5481test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
5482
5483case " $build_configdirs " in
5484 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
5485 *)
5486
a4ef73e9 5487 # For an installed makeinfo, we require it to be from texinfo 4.4 or
be01d343
PB
5488 # higher, else we use the "missing" dummy.
5489 if ${MAKEINFO} --version \
a4ef73e9 5490 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
be01d343
PB
5491 :
5492 else
5493 MAKEINFO="$MISSING makeinfo"
5494 fi
5495 ;;
5496
5497esac
a0da8069 5498
be01d343 5499# FIXME: expect and dejagnu may become build tools?
a0da8069 5500
be01d343
PB
5501for ac_prog in expect
5502do
c6b750e1 5503 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5504set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5505echo "$as_me:$LINENO: checking for $ac_word" >&5
5506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5507if test "${ac_cv_prog_EXPECT+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5509else
5510 if test -n "$EXPECT"; then
5511 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
5512else
c6b750e1
DJ
5513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514for as_dir in $PATH
5515do
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520 ac_cv_prog_EXPECT="$ac_prog"
5521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 break 2
5523 fi
5524done
5525done
5526
be01d343
PB
5527fi
5528fi
c6b750e1 5529EXPECT=$ac_cv_prog_EXPECT
be01d343 5530if test -n "$EXPECT"; then
c6b750e1
DJ
5531 echo "$as_me:$LINENO: result: $EXPECT" >&5
5532echo "${ECHO_T}$EXPECT" >&6
be01d343 5533else
c6b750e1
DJ
5534 echo "$as_me:$LINENO: result: no" >&5
5535echo "${ECHO_T}no" >&6
be01d343 5536fi
a0da8069 5537
c6b750e1 5538 test -n "$EXPECT" && break
be01d343
PB
5539done
5540test -n "$EXPECT" || EXPECT="expect"
a0da8069 5541
be01d343
PB
5542case " $configdirs " in
5543 *" expect "*)
5544 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
5545 ;;
5546esac
a0da8069 5547
be01d343
PB
5548for ac_prog in runtest
5549do
c6b750e1 5550 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5551set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5552echo "$as_me:$LINENO: checking for $ac_word" >&5
5553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5554if test "${ac_cv_prog_RUNTEST+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5556else
5557 if test -n "$RUNTEST"; then
5558 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
5559else
c6b750e1
DJ
5560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561for as_dir in $PATH
5562do
5563 IFS=$as_save_IFS
5564 test -z "$as_dir" && as_dir=.
5565 for ac_exec_ext in '' $ac_executable_extensions; do
5566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5567 ac_cv_prog_RUNTEST="$ac_prog"
5568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5569 break 2
5570 fi
5571done
5572done
5573
be01d343
PB
5574fi
5575fi
c6b750e1 5576RUNTEST=$ac_cv_prog_RUNTEST
be01d343 5577if test -n "$RUNTEST"; then
c6b750e1
DJ
5578 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5579echo "${ECHO_T}$RUNTEST" >&6
be01d343 5580else
c6b750e1
DJ
5581 echo "$as_me:$LINENO: result: no" >&5
5582echo "${ECHO_T}no" >&6
be01d343 5583fi
a0da8069 5584
c6b750e1 5585 test -n "$RUNTEST" && break
be01d343
PB
5586done
5587test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 5588
be01d343
PB
5589case " $configdirs " in
5590 *" dejagnu "*)
6b89cc21 5591 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
5592 ;;
5593esac
a0da8069
NN
5594
5595
a0da8069 5596# Host tools.
859789af
AC
5597ncn_tool_prefix=
5598test -n "$host_alias" && ncn_tool_prefix=$host_alias-
5599ncn_target_tool_prefix=
5600test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
5601
05cbd757
PB
5602 for ncn_progname in ar; do
5603 if test -n "$ncn_tool_prefix"; then
5604 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5605set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
5606echo "$as_me:$LINENO: checking for $ac_word" >&5
5607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5608if test "${ac_cv_prog_AR+set}" = set; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
5610else
5611 if test -n "$AR"; then
5612 ac_cv_prog_AR="$AR" # Let the user override the test.
5613else
c6b750e1
DJ
5614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615for as_dir in $PATH
5616do
5617 IFS=$as_save_IFS
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 break 2
5624 fi
5625done
5626done
5627
859789af
AC
5628fi
5629fi
c6b750e1 5630AR=$ac_cv_prog_AR
859789af 5631if test -n "$AR"; then
c6b750e1
DJ
5632 echo "$as_me:$LINENO: result: $AR" >&5
5633echo "${ECHO_T}$AR" >&6
859789af 5634else
c6b750e1
DJ
5635 echo "$as_me:$LINENO: result: no" >&5
5636echo "${ECHO_T}no" >&6
859789af
AC
5637fi
5638
05cbd757
PB
5639 fi
5640 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
5641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5642set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
5643echo "$as_me:$LINENO: checking for $ac_word" >&5
5644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5645if test "${ac_cv_prog_AR+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 5647else
05cbd757
PB
5648 if test -n "$AR"; then
5649 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 5650else
c6b750e1
DJ
5651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652for as_dir in $PATH
5653do
5654 IFS=$as_save_IFS
5655 test -z "$as_dir" && as_dir=.
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658 ac_cv_prog_AR="${ncn_progname}"
5659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 break 2
5661 fi
5662done
5663done
5664
859789af
AC
5665fi
5666fi
c6b750e1 5667AR=$ac_cv_prog_AR
05cbd757 5668if test -n "$AR"; then
c6b750e1
DJ
5669 echo "$as_me:$LINENO: result: $AR" >&5
5670echo "${ECHO_T}$AR" >&6
859789af 5671else
c6b750e1
DJ
5672 echo "$as_me:$LINENO: result: no" >&5
5673echo "${ECHO_T}no" >&6
859789af 5674fi
c6b750e1 5675
05cbd757
PB
5676 fi
5677 test -n "$ac_cv_prog_AR" && break
5678done
5679
5680if test -z "$ac_cv_prog_AR" ; then
5681 set dummy ar
5682 if test $build = $host ; then
5683 AR="$2"
859789af 5684 else
05cbd757 5685 AR="${ncn_tool_prefix}$2"
859789af 5686 fi
859789af
AC
5687fi
5688
05cbd757
PB
5689 for ncn_progname in as; do
5690 if test -n "$ncn_tool_prefix"; then
5691 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5692set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
5693echo "$as_me:$LINENO: checking for $ac_word" >&5
5694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5695if test "${ac_cv_prog_AS+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
5697else
5698 if test -n "$AS"; then
5699 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
5700else
5701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702for as_dir in $PATH
5703do
5704 IFS=$as_save_IFS
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5708 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5710 break 2
5711 fi
5712done
5713done
5714
859789af
AC
5715fi
5716fi
c6b750e1 5717AS=$ac_cv_prog_AS
859789af 5718if test -n "$AS"; then
c6b750e1
DJ
5719 echo "$as_me:$LINENO: result: $AS" >&5
5720echo "${ECHO_T}$AS" >&6
859789af 5721else
c6b750e1
DJ
5722 echo "$as_me:$LINENO: result: no" >&5
5723echo "${ECHO_T}no" >&6
859789af
AC
5724fi
5725
05cbd757
PB
5726 fi
5727 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
5728 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5729set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
5730echo "$as_me:$LINENO: checking for $ac_word" >&5
5731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5732if test "${ac_cv_prog_AS+set}" = set; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 5734else
05cbd757
PB
5735 if test -n "$AS"; then
5736 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 5737else
c6b750e1
DJ
5738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739for as_dir in $PATH
5740do
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745 ac_cv_prog_AS="${ncn_progname}"
5746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 break 2
5748 fi
5749done
5750done
5751
859789af
AC
5752fi
5753fi
c6b750e1 5754AS=$ac_cv_prog_AS
05cbd757 5755if test -n "$AS"; then
c6b750e1
DJ
5756 echo "$as_me:$LINENO: result: $AS" >&5
5757echo "${ECHO_T}$AS" >&6
859789af 5758else
c6b750e1
DJ
5759 echo "$as_me:$LINENO: result: no" >&5
5760echo "${ECHO_T}no" >&6
859789af 5761fi
c6b750e1 5762
05cbd757
PB
5763 fi
5764 test -n "$ac_cv_prog_AS" && break
5765done
5766
5767if test -z "$ac_cv_prog_AS" ; then
5768 set dummy as
5769 if test $build = $host ; then
5770 AS="$2"
859789af 5771 else
05cbd757 5772 AS="${ncn_tool_prefix}$2"
859789af 5773 fi
859789af
AC
5774fi
5775
05cbd757
PB
5776 for ncn_progname in dlltool; do
5777 if test -n "$ncn_tool_prefix"; then
5778 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5779set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
5780echo "$as_me:$LINENO: checking for $ac_word" >&5
5781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5782if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
5784else
5785 if test -n "$DLLTOOL"; then
5786 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5787else
c6b750e1
DJ
5788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789for as_dir in $PATH
5790do
5791 IFS=$as_save_IFS
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 break 2
5798 fi
5799done
5800done
5801
859789af
AC
5802fi
5803fi
c6b750e1 5804DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 5805if test -n "$DLLTOOL"; then
c6b750e1
DJ
5806 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5807echo "${ECHO_T}$DLLTOOL" >&6
859789af 5808else
c6b750e1
DJ
5809 echo "$as_me:$LINENO: result: no" >&5
5810echo "${ECHO_T}no" >&6
859789af
AC
5811fi
5812
05cbd757
PB
5813 fi
5814 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
5815 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5816set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
5817echo "$as_me:$LINENO: checking for $ac_word" >&5
5818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5819if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 5821else
05cbd757
PB
5822 if test -n "$DLLTOOL"; then
5823 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 5824else
c6b750e1
DJ
5825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826for as_dir in $PATH
5827do
5828 IFS=$as_save_IFS
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5832 ac_cv_prog_DLLTOOL="${ncn_progname}"
5833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 break 2
5835 fi
5836done
5837done
5838
859789af
AC
5839fi
5840fi
c6b750e1 5841DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 5842if test -n "$DLLTOOL"; then
c6b750e1
DJ
5843 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5844echo "${ECHO_T}$DLLTOOL" >&6
859789af 5845else
c6b750e1
DJ
5846 echo "$as_me:$LINENO: result: no" >&5
5847echo "${ECHO_T}no" >&6
859789af 5848fi
c6b750e1 5849
05cbd757
PB
5850 fi
5851 test -n "$ac_cv_prog_DLLTOOL" && break
5852done
5853
5854if test -z "$ac_cv_prog_DLLTOOL" ; then
5855 set dummy dlltool
5856 if test $build = $host ; then
5857 DLLTOOL="$2"
859789af 5858 else
05cbd757 5859 DLLTOOL="${ncn_tool_prefix}$2"
859789af 5860 fi
859789af
AC
5861fi
5862
05cbd757
PB
5863 for ncn_progname in ld; do
5864 if test -n "$ncn_tool_prefix"; then
5865 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5866set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
5867echo "$as_me:$LINENO: checking for $ac_word" >&5
5868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5869if test "${ac_cv_prog_LD+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
5871else
5872 if test -n "$LD"; then
5873 ac_cv_prog_LD="$LD" # Let the user override the test.
5874else
c6b750e1
DJ
5875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876for as_dir in $PATH
5877do
5878 IFS=$as_save_IFS
5879 test -z "$as_dir" && as_dir=.
5880 for ac_exec_ext in '' $ac_executable_extensions; do
5881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5882 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5884 break 2
5885 fi
5886done
5887done
5888
859789af
AC
5889fi
5890fi
c6b750e1 5891LD=$ac_cv_prog_LD
859789af 5892if test -n "$LD"; then
c6b750e1
DJ
5893 echo "$as_me:$LINENO: result: $LD" >&5
5894echo "${ECHO_T}$LD" >&6
859789af 5895else
c6b750e1
DJ
5896 echo "$as_me:$LINENO: result: no" >&5
5897echo "${ECHO_T}no" >&6
859789af
AC
5898fi
5899
05cbd757
PB
5900 fi
5901 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
5902 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5903set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
5904echo "$as_me:$LINENO: checking for $ac_word" >&5
5905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5906if test "${ac_cv_prog_LD+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 5908else
05cbd757
PB
5909 if test -n "$LD"; then
5910 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 5911else
c6b750e1
DJ
5912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913for as_dir in $PATH
5914do
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919 ac_cv_prog_LD="${ncn_progname}"
5920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
5922 fi
5923done
5924done
5925
859789af
AC
5926fi
5927fi
c6b750e1 5928LD=$ac_cv_prog_LD
05cbd757 5929if test -n "$LD"; then
c6b750e1
DJ
5930 echo "$as_me:$LINENO: result: $LD" >&5
5931echo "${ECHO_T}$LD" >&6
859789af 5932else
c6b750e1
DJ
5933 echo "$as_me:$LINENO: result: no" >&5
5934echo "${ECHO_T}no" >&6
859789af 5935fi
c6b750e1 5936
05cbd757
PB
5937 fi
5938 test -n "$ac_cv_prog_LD" && break
5939done
5940
5941if test -z "$ac_cv_prog_LD" ; then
5942 set dummy ld
5943 if test $build = $host ; then
5944 LD="$2"
859789af 5945 else
05cbd757 5946 LD="${ncn_tool_prefix}$2"
859789af 5947 fi
859789af
AC
5948fi
5949
be01d343
PB
5950 for ncn_progname in lipo; do
5951 if test -n "$ncn_tool_prefix"; then
5952 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5953set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
5954echo "$as_me:$LINENO: checking for $ac_word" >&5
5955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5956if test "${ac_cv_prog_LIPO+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5958else
5959 if test -n "$LIPO"; then
5960 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5961else
c6b750e1
DJ
5962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963for as_dir in $PATH
5964do
5965 IFS=$as_save_IFS
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 break 2
5972 fi
5973done
5974done
5975
be01d343
PB
5976fi
5977fi
c6b750e1 5978LIPO=$ac_cv_prog_LIPO
be01d343 5979if test -n "$LIPO"; then
c6b750e1
DJ
5980 echo "$as_me:$LINENO: result: $LIPO" >&5
5981echo "${ECHO_T}$LIPO" >&6
be01d343 5982else
c6b750e1
DJ
5983 echo "$as_me:$LINENO: result: no" >&5
5984echo "${ECHO_T}no" >&6
be01d343
PB
5985fi
5986
5987 fi
5988 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
5989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5990set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
5991echo "$as_me:$LINENO: checking for $ac_word" >&5
5992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5993if test "${ac_cv_prog_LIPO+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5995else
5996 if test -n "$LIPO"; then
5997 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5998else
c6b750e1
DJ
5999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000for as_dir in $PATH
6001do
6002 IFS=$as_save_IFS
6003 test -z "$as_dir" && as_dir=.
6004 for ac_exec_ext in '' $ac_executable_extensions; do
6005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6006 ac_cv_prog_LIPO="${ncn_progname}"
6007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 break 2
6009 fi
6010done
6011done
6012
be01d343
PB
6013fi
6014fi
c6b750e1 6015LIPO=$ac_cv_prog_LIPO
be01d343 6016if test -n "$LIPO"; then
c6b750e1
DJ
6017 echo "$as_me:$LINENO: result: $LIPO" >&5
6018echo "${ECHO_T}$LIPO" >&6
be01d343 6019else
c6b750e1
DJ
6020 echo "$as_me:$LINENO: result: no" >&5
6021echo "${ECHO_T}no" >&6
be01d343 6022fi
c6b750e1 6023
be01d343
PB
6024 fi
6025 test -n "$ac_cv_prog_LIPO" && break
6026done
6027
6028if test -z "$ac_cv_prog_LIPO" ; then
6029 set dummy lipo
6030 if test $build = $host ; then
6031 LIPO="$2"
6032 else
6033 LIPO="${ncn_tool_prefix}$2"
6034 fi
6035fi
6036
05cbd757
PB
6037 for ncn_progname in nm; do
6038 if test -n "$ncn_tool_prefix"; then
6039 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6040set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6041echo "$as_me:$LINENO: checking for $ac_word" >&5
6042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6043if test "${ac_cv_prog_NM+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6045else
6046 if test -n "$NM"; then
6047 ac_cv_prog_NM="$NM" # Let the user override the test.
6048else
c6b750e1
DJ
6049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050for as_dir in $PATH
6051do
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6056 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
6057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 break 2
6059 fi
6060done
6061done
6062
859789af
AC
6063fi
6064fi
c6b750e1 6065NM=$ac_cv_prog_NM
859789af 6066if test -n "$NM"; then
c6b750e1
DJ
6067 echo "$as_me:$LINENO: result: $NM" >&5
6068echo "${ECHO_T}$NM" >&6
859789af 6069else
c6b750e1
DJ
6070 echo "$as_me:$LINENO: result: no" >&5
6071echo "${ECHO_T}no" >&6
859789af
AC
6072fi
6073
05cbd757
PB
6074 fi
6075 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
6076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6077set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6078echo "$as_me:$LINENO: checking for $ac_word" >&5
6079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6080if test "${ac_cv_prog_NM+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6082else
05cbd757
PB
6083 if test -n "$NM"; then
6084 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 6085else
c6b750e1
DJ
6086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087for as_dir in $PATH
6088do
6089 IFS=$as_save_IFS
6090 test -z "$as_dir" && as_dir=.
6091 for ac_exec_ext in '' $ac_executable_extensions; do
6092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6093 ac_cv_prog_NM="${ncn_progname}"
6094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 break 2
6096 fi
6097done
6098done
6099
859789af
AC
6100fi
6101fi
c6b750e1 6102NM=$ac_cv_prog_NM
05cbd757 6103if test -n "$NM"; then
c6b750e1
DJ
6104 echo "$as_me:$LINENO: result: $NM" >&5
6105echo "${ECHO_T}$NM" >&6
859789af 6106else
c6b750e1
DJ
6107 echo "$as_me:$LINENO: result: no" >&5
6108echo "${ECHO_T}no" >&6
859789af 6109fi
c6b750e1 6110
05cbd757
PB
6111 fi
6112 test -n "$ac_cv_prog_NM" && break
6113done
6114
6115if test -z "$ac_cv_prog_NM" ; then
6116 set dummy nm
6117 if test $build = $host ; then
6118 NM="$2"
859789af 6119 else
05cbd757 6120 NM="${ncn_tool_prefix}$2"
859789af 6121 fi
859789af
AC
6122fi
6123
05cbd757
PB
6124 for ncn_progname in ranlib; do
6125 if test -n "$ncn_tool_prefix"; then
6126 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6127set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6128echo "$as_me:$LINENO: checking for $ac_word" >&5
6129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6130if test "${ac_cv_prog_RANLIB+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6132else
6133 if test -n "$RANLIB"; then
6134 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6135else
c6b750e1
DJ
6136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137for as_dir in $PATH
6138do
6139 IFS=$as_save_IFS
6140 test -z "$as_dir" && as_dir=.
6141 for ac_exec_ext in '' $ac_executable_extensions; do
6142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6143 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
6144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6145 break 2
6146 fi
6147done
6148done
6149
859789af
AC
6150fi
6151fi
c6b750e1 6152RANLIB=$ac_cv_prog_RANLIB
859789af 6153if test -n "$RANLIB"; then
c6b750e1
DJ
6154 echo "$as_me:$LINENO: result: $RANLIB" >&5
6155echo "${ECHO_T}$RANLIB" >&6
859789af 6156else
c6b750e1
DJ
6157 echo "$as_me:$LINENO: result: no" >&5
6158echo "${ECHO_T}no" >&6
859789af
AC
6159fi
6160
05cbd757
PB
6161 fi
6162 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
6163 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6164set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6165echo "$as_me:$LINENO: checking for $ac_word" >&5
6166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6167if test "${ac_cv_prog_RANLIB+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6169else
05cbd757
PB
6170 if test -n "$RANLIB"; then
6171 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 6172else
c6b750e1
DJ
6173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174for as_dir in $PATH
6175do
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6180 ac_cv_prog_RANLIB="${ncn_progname}"
6181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6182 break 2
6183 fi
6184done
6185done
6186
859789af
AC
6187fi
6188fi
c6b750e1 6189RANLIB=$ac_cv_prog_RANLIB
05cbd757 6190if test -n "$RANLIB"; then
c6b750e1
DJ
6191 echo "$as_me:$LINENO: result: $RANLIB" >&5
6192echo "${ECHO_T}$RANLIB" >&6
859789af 6193else
c6b750e1
DJ
6194 echo "$as_me:$LINENO: result: no" >&5
6195echo "${ECHO_T}no" >&6
859789af 6196fi
c6b750e1 6197
859789af 6198 fi
05cbd757
PB
6199 test -n "$ac_cv_prog_RANLIB" && break
6200done
6201
6202if test -z "$ac_cv_prog_RANLIB" ; then
6203 RANLIB=":"
859789af
AC
6204fi
6205
be01d343
PB
6206 for ncn_progname in strip; do
6207 if test -n "$ncn_tool_prefix"; then
6208 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6209set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6210echo "$as_me:$LINENO: checking for $ac_word" >&5
6211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6212if test "${ac_cv_prog_STRIP+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6214else
6215 if test -n "$STRIP"; then
6216 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6217else
c6b750e1
DJ
6218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219for as_dir in $PATH
6220do
6221 IFS=$as_save_IFS
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6225 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
6226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 break 2
6228 fi
6229done
6230done
6231
be01d343
PB
6232fi
6233fi
c6b750e1 6234STRIP=$ac_cv_prog_STRIP
be01d343 6235if test -n "$STRIP"; then
c6b750e1
DJ
6236 echo "$as_me:$LINENO: result: $STRIP" >&5
6237echo "${ECHO_T}$STRIP" >&6
be01d343 6238else
c6b750e1
DJ
6239 echo "$as_me:$LINENO: result: no" >&5
6240echo "${ECHO_T}no" >&6
be01d343
PB
6241fi
6242
6243 fi
6244 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
6245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6246set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6247echo "$as_me:$LINENO: checking for $ac_word" >&5
6248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6249if test "${ac_cv_prog_STRIP+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6251else
6252 if test -n "$STRIP"; then
6253 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6254else
c6b750e1
DJ
6255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256for as_dir in $PATH
6257do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6262 ac_cv_prog_STRIP="${ncn_progname}"
6263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 break 2
6265 fi
6266done
6267done
6268
be01d343
PB
6269fi
6270fi
c6b750e1 6271STRIP=$ac_cv_prog_STRIP
be01d343 6272if test -n "$STRIP"; then
c6b750e1
DJ
6273 echo "$as_me:$LINENO: result: $STRIP" >&5
6274echo "${ECHO_T}$STRIP" >&6
be01d343 6275else
c6b750e1
DJ
6276 echo "$as_me:$LINENO: result: no" >&5
6277echo "${ECHO_T}no" >&6
be01d343 6278fi
c6b750e1 6279
be01d343
PB
6280 fi
6281 test -n "$ac_cv_prog_STRIP" && break
6282done
6283
6284if test -z "$ac_cv_prog_STRIP" ; then
6285 STRIP=":"
6286fi
6287
05cbd757
PB
6288 for ncn_progname in windres; do
6289 if test -n "$ncn_tool_prefix"; then
6290 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6291set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6292echo "$as_me:$LINENO: checking for $ac_word" >&5
6293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6294if test "${ac_cv_prog_WINDRES+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6296else
6297 if test -n "$WINDRES"; then
6298 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6299else
c6b750e1
DJ
6300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301for as_dir in $PATH
6302do
6303 IFS=$as_save_IFS
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6307 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
6308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6309 break 2
6310 fi
6311done
6312done
6313
859789af
AC
6314fi
6315fi
c6b750e1 6316WINDRES=$ac_cv_prog_WINDRES
859789af 6317if test -n "$WINDRES"; then
c6b750e1
DJ
6318 echo "$as_me:$LINENO: result: $WINDRES" >&5
6319echo "${ECHO_T}$WINDRES" >&6
859789af 6320else
c6b750e1
DJ
6321 echo "$as_me:$LINENO: result: no" >&5
6322echo "${ECHO_T}no" >&6
859789af
AC
6323fi
6324
05cbd757
PB
6325 fi
6326 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
6327 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6328set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6329echo "$as_me:$LINENO: checking for $ac_word" >&5
6330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6331if test "${ac_cv_prog_WINDRES+set}" = set; then
6332 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6333else
05cbd757
PB
6334 if test -n "$WINDRES"; then
6335 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 6336else
c6b750e1
DJ
6337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338for as_dir in $PATH
6339do
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6344 ac_cv_prog_WINDRES="${ncn_progname}"
6345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 break 2
6347 fi
6348done
6349done
6350
859789af
AC
6351fi
6352fi
c6b750e1 6353WINDRES=$ac_cv_prog_WINDRES
05cbd757 6354if test -n "$WINDRES"; then
c6b750e1
DJ
6355 echo "$as_me:$LINENO: result: $WINDRES" >&5
6356echo "${ECHO_T}$WINDRES" >&6
859789af 6357else
c6b750e1
DJ
6358 echo "$as_me:$LINENO: result: no" >&5
6359echo "${ECHO_T}no" >&6
859789af 6360fi
c6b750e1 6361
05cbd757
PB
6362 fi
6363 test -n "$ac_cv_prog_WINDRES" && break
6364done
6365
6366if test -z "$ac_cv_prog_WINDRES" ; then
6367 set dummy windres
6368 if test $build = $host ; then
6369 WINDRES="$2"
859789af 6370 else
05cbd757 6371 WINDRES="${ncn_tool_prefix}$2"
859789af 6372 fi
859789af
AC
6373fi
6374
05cbd757
PB
6375 for ncn_progname in objcopy; do
6376 if test -n "$ncn_tool_prefix"; then
6377 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6378set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6379echo "$as_me:$LINENO: checking for $ac_word" >&5
6380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6381if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6383else
6384 if test -n "$OBJCOPY"; then
6385 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6386else
c6b750e1
DJ
6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388for as_dir in $PATH
6389do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
6395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398done
6399done
6400
859789af
AC
6401fi
6402fi
c6b750e1 6403OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 6404if test -n "$OBJCOPY"; then
c6b750e1
DJ
6405 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6406echo "${ECHO_T}$OBJCOPY" >&6
859789af 6407else
c6b750e1
DJ
6408 echo "$as_me:$LINENO: result: no" >&5
6409echo "${ECHO_T}no" >&6
859789af
AC
6410fi
6411
05cbd757
PB
6412 fi
6413 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
6414 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6415set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6416echo "$as_me:$LINENO: checking for $ac_word" >&5
6417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6418if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6420else
05cbd757
PB
6421 if test -n "$OBJCOPY"; then
6422 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 6423else
c6b750e1
DJ
6424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425for as_dir in $PATH
6426do
6427 IFS=$as_save_IFS
6428 test -z "$as_dir" && as_dir=.
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6431 ac_cv_prog_OBJCOPY="${ncn_progname}"
6432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 break 2
6434 fi
6435done
6436done
6437
859789af
AC
6438fi
6439fi
c6b750e1 6440OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 6441if test -n "$OBJCOPY"; then
c6b750e1
DJ
6442 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6443echo "${ECHO_T}$OBJCOPY" >&6
859789af 6444else
c6b750e1
DJ
6445 echo "$as_me:$LINENO: result: no" >&5
6446echo "${ECHO_T}no" >&6
859789af 6447fi
c6b750e1 6448
05cbd757
PB
6449 fi
6450 test -n "$ac_cv_prog_OBJCOPY" && break
6451done
6452
6453if test -z "$ac_cv_prog_OBJCOPY" ; then
6454 set dummy objcopy
6455 if test $build = $host ; then
6456 OBJCOPY="$2"
859789af 6457 else
05cbd757 6458 OBJCOPY="${ncn_tool_prefix}$2"
859789af 6459 fi
859789af
AC
6460fi
6461
05cbd757
PB
6462 for ncn_progname in objdump; do
6463 if test -n "$ncn_tool_prefix"; then
6464 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6465set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6466echo "$as_me:$LINENO: checking for $ac_word" >&5
6467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6468if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6470else
6471 if test -n "$OBJDUMP"; then
6472 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6473else
c6b750e1
DJ
6474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475for as_dir in $PATH
6476do
6477 IFS=$as_save_IFS
6478 test -z "$as_dir" && as_dir=.
6479 for ac_exec_ext in '' $ac_executable_extensions; do
6480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6481 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
6482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6483 break 2
6484 fi
6485done
6486done
6487
859789af
AC
6488fi
6489fi
c6b750e1 6490OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 6491if test -n "$OBJDUMP"; then
c6b750e1
DJ
6492 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6493echo "${ECHO_T}$OBJDUMP" >&6
859789af 6494else
c6b750e1
DJ
6495 echo "$as_me:$LINENO: result: no" >&5
6496echo "${ECHO_T}no" >&6
859789af
AC
6497fi
6498
05cbd757
PB
6499 fi
6500 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
6501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6502set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6503echo "$as_me:$LINENO: checking for $ac_word" >&5
6504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6505if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6507else
05cbd757
PB
6508 if test -n "$OBJDUMP"; then
6509 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 6510else
c6b750e1
DJ
6511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512for as_dir in $PATH
6513do
6514 IFS=$as_save_IFS
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6518 ac_cv_prog_OBJDUMP="${ncn_progname}"
6519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6520 break 2
6521 fi
6522done
6523done
6524
859789af
AC
6525fi
6526fi
c6b750e1 6527OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 6528if test -n "$OBJDUMP"; then
c6b750e1
DJ
6529 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6530echo "${ECHO_T}$OBJDUMP" >&6
859789af 6531else
c6b750e1
DJ
6532 echo "$as_me:$LINENO: result: no" >&5
6533echo "${ECHO_T}no" >&6
859789af 6534fi
c6b750e1 6535
05cbd757
PB
6536 fi
6537 test -n "$ac_cv_prog_OBJDUMP" && break
6538done
6539
6540if test -z "$ac_cv_prog_OBJDUMP" ; then
6541 set dummy objdump
6542 if test $build = $host ; then
6543 OBJDUMP="$2"
859789af 6544 else
05cbd757 6545 OBJDUMP="${ncn_tool_prefix}$2"
859789af 6546 fi
859789af
AC
6547fi
6548
a0da8069
NN
6549
6550
6551
6552
6553
6554
be01d343 6555# Target tools.
c6b750e1 6556
2429c060
PB
6557# Check whether --with-build-time-tools or --without-build-time-tools was given.
6558if test "${with_build_time_tools+set}" = set; then
6559 withval="$with_build_time_tools"
6560 case x"$withval" in
6561 x/*) ;;
6562 *)
6563 with_build_time_tools=
c6b750e1
DJ
6564 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
6565echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
6566 ;;
6567 esac
859789af 6568else
2429c060 6569 with_build_time_tools=
c6b750e1 6570fi;
859789af 6571
2429c060
PB
6572 if test -n "$with_build_time_tools"; then
6573 for ncn_progname in cc gcc; do
c6b750e1
DJ
6574 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6575echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
6576 if test -x $with_build_time_tools/${ncn_progname}; then
6577 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
6578 echo "$as_me:$LINENO: result: yes" >&5
6579echo "${ECHO_T}yes" >&6
cac3d6c4 6580 break
2429c060 6581 else
c6b750e1
DJ
6582 echo "$as_me:$LINENO: result: no" >&5
6583echo "${ECHO_T}no" >&6
cac3d6c4
CM
6584 fi
6585 done
55db4b87
PB
6586fi
6587
2429c060
PB
6588if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
6589 for ncn_progname in cc gcc; do
6590 if test -n "$ncn_target_tool_prefix"; then
6591 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 6592set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6593echo "$as_me:$LINENO: checking for $ac_word" >&5
6594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6595if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
6597else
6598 if test -n "$CC_FOR_TARGET"; then
6599 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
6600else
c6b750e1
DJ
6601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602for as_dir in $PATH
6603do
6604 IFS=$as_save_IFS
6605 test -z "$as_dir" && as_dir=.
6606 for ac_exec_ext in '' $ac_executable_extensions; do
6607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6608 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6610 break 2
6611 fi
6612done
6613done
6614
55db4b87
PB
6615fi
6616fi
c6b750e1 6617CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 6618if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
6619 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
6620echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 6621else
c6b750e1
DJ
6622 echo "$as_me:$LINENO: result: no" >&5
6623echo "${ECHO_T}no" >&6
55db4b87
PB
6624fi
6625
2429c060
PB
6626 fi
6627 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
6628 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 6629set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6630echo "$as_me:$LINENO: checking for $ac_word" >&5
6631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6632if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 6634else
05cbd757
PB
6635 if test -n "$CC_FOR_TARGET"; then
6636 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 6637else
c6b750e1
DJ
6638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639for as_dir in $PATH
6640do
6641 IFS=$as_save_IFS
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6645 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
6646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 break 2
6648 fi
6649done
6650done
6651
55db4b87
PB
6652fi
6653fi
c6b750e1 6654CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 6655if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
6656 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
6657echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 6658else
c6b750e1
DJ
6659 echo "$as_me:$LINENO: result: no" >&5
6660echo "${ECHO_T}no" >&6
55db4b87 6661fi
c6b750e1 6662
2429c060
PB
6663 fi
6664 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
6665 done
6666fi
c6b750e1 6667
05cbd757
PB
6668if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
6669 set dummy cc gcc
6670 if test $build = $target ; then
6671 CC_FOR_TARGET="$2"
55db4b87 6672 else
05cbd757 6673 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 6674 fi
55db4b87
PB
6675fi
6676
2429c060
PB
6677 if test -n "$with_build_time_tools"; then
6678 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
6679 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6680echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
6681 if test -x $with_build_time_tools/${ncn_progname}; then
6682 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
6683 echo "$as_me:$LINENO: result: yes" >&5
6684echo "${ECHO_T}yes" >&6
2429c060
PB
6685 break
6686 else
c6b750e1
DJ
6687 echo "$as_me:$LINENO: result: no" >&5
6688echo "${ECHO_T}no" >&6
2429c060
PB
6689 fi
6690 done
6691fi
6692
6693if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
6694 for ncn_progname in c++ g++ cxx gxx; do
6695 if test -n "$ncn_target_tool_prefix"; then
6696 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 6697set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6698echo "$as_me:$LINENO: checking for $ac_word" >&5
6699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6700if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
6702else
6703 if test -n "$CXX_FOR_TARGET"; then
6704 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
6705else
c6b750e1
DJ
6706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707for as_dir in $PATH
6708do
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6713 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 break 2
6716 fi
6717done
6718done
6719
55db4b87
PB
6720fi
6721fi
c6b750e1 6722CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 6723if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
6724 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
6725echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 6726else
c6b750e1
DJ
6727 echo "$as_me:$LINENO: result: no" >&5
6728echo "${ECHO_T}no" >&6
55db4b87
PB
6729fi
6730
2429c060
PB
6731 fi
6732 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
6733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 6734set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6735echo "$as_me:$LINENO: checking for $ac_word" >&5
6736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6737if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 6739else
05cbd757
PB
6740 if test -n "$CXX_FOR_TARGET"; then
6741 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 6742else
c6b750e1
DJ
6743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744for as_dir in $PATH
6745do
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6750 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
6751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6753 fi
6754done
6755done
6756
55db4b87
PB
6757fi
6758fi
c6b750e1 6759CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 6760if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
6761 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
6762echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 6763else
c6b750e1
DJ
6764 echo "$as_me:$LINENO: result: no" >&5
6765echo "${ECHO_T}no" >&6
55db4b87 6766fi
c6b750e1 6767
2429c060
PB
6768 fi
6769 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
6770 done
6771fi
c6b750e1 6772
05cbd757
PB
6773if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
6774 set dummy c++ g++ cxx gxx
6775 if test $build = $target ; then
6776 CXX_FOR_TARGET="$2"
55db4b87 6777 else
05cbd757 6778 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 6779 fi
859789af
AC
6780fi
6781
2429c060
PB
6782 if test -n "$with_build_time_tools"; then
6783 for ncn_progname in gcc; do
c6b750e1
DJ
6784 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6785echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
6786 if test -x $with_build_time_tools/${ncn_progname}; then
6787 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
6788 echo "$as_me:$LINENO: result: yes" >&5
6789echo "${ECHO_T}yes" >&6
2429c060
PB
6790 break
6791 else
c6b750e1
DJ
6792 echo "$as_me:$LINENO: result: no" >&5
6793echo "${ECHO_T}no" >&6
2429c060
PB
6794 fi
6795 done
6796fi
6797
6798if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
6799 for ncn_progname in gcc; do
6800 if test -n "$ncn_target_tool_prefix"; then
6801 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 6802set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6803echo "$as_me:$LINENO: checking for $ac_word" >&5
6804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6805if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6807else
2429c060
PB
6808 if test -n "$GCC_FOR_TARGET"; then
6809 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 6810else
c6b750e1
DJ
6811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812for as_dir in $PATH
6813do
6814 IFS=$as_save_IFS
6815 test -z "$as_dir" && as_dir=.
6816 for ac_exec_ext in '' $ac_executable_extensions; do
6817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6818 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 break 2
6821 fi
6822done
6823done
6824
55db4b87
PB
6825fi
6826fi
c6b750e1 6827GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 6828if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
6829 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
6830echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 6831else
c6b750e1
DJ
6832 echo "$as_me:$LINENO: result: no" >&5
6833echo "${ECHO_T}no" >&6
55db4b87
PB
6834fi
6835
2429c060
PB
6836 fi
6837 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
6838 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 6839set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6840echo "$as_me:$LINENO: checking for $ac_word" >&5
6841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6842if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 6844else
05cbd757
PB
6845 if test -n "$GCC_FOR_TARGET"; then
6846 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 6847else
c6b750e1
DJ
6848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849for as_dir in $PATH
6850do
6851 IFS=$as_save_IFS
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6855 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
6856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 break 2
6858 fi
6859done
6860done
6861
55db4b87
PB
6862fi
6863fi
c6b750e1 6864GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 6865if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
6866 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
6867echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 6868else
c6b750e1
DJ
6869 echo "$as_me:$LINENO: result: no" >&5
6870echo "${ECHO_T}no" >&6
55db4b87 6871fi
c6b750e1 6872
2429c060
PB
6873 fi
6874 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
6875 done
6876fi
c6b750e1 6877
05cbd757
PB
6878if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
6879 GCC_FOR_TARGET="${CC_FOR_TARGET}"
55db4b87
PB
6880fi
6881
2429c060
PB
6882 if test -n "$with_build_time_tools"; then
6883 for ncn_progname in gcj; do
c6b750e1
DJ
6884 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6885echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
6886 if test -x $with_build_time_tools/${ncn_progname}; then
6887 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
6888 echo "$as_me:$LINENO: result: yes" >&5
6889echo "${ECHO_T}yes" >&6
2429c060
PB
6890 break
6891 else
c6b750e1
DJ
6892 echo "$as_me:$LINENO: result: no" >&5
6893echo "${ECHO_T}no" >&6
2429c060
PB
6894 fi
6895 done
6896fi
6897
6898if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
6899 for ncn_progname in gcj; do
6900 if test -n "$ncn_target_tool_prefix"; then
6901 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 6902set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6903echo "$as_me:$LINENO: checking for $ac_word" >&5
6904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6905if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
6907else
6908 if test -n "$GCJ_FOR_TARGET"; then
6909 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
6910else
c6b750e1
DJ
6911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912for as_dir in $PATH
6913do
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6918 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 break 2
6921 fi
6922done
6923done
6924
55db4b87
PB
6925fi
6926fi
c6b750e1 6927GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
55db4b87 6928if test -n "$GCJ_FOR_TARGET"; then
c6b750e1
DJ
6929 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
6930echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
55db4b87 6931else
c6b750e1
DJ
6932 echo "$as_me:$LINENO: result: no" >&5
6933echo "${ECHO_T}no" >&6
55db4b87
PB
6934fi
6935
2429c060
PB
6936 fi
6937 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
6938 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 6939set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6940echo "$as_me:$LINENO: checking for $ac_word" >&5
6941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6942if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 6944else
05cbd757
PB
6945 if test -n "$GCJ_FOR_TARGET"; then
6946 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
55db4b87 6947else
c6b750e1
DJ
6948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949for as_dir in $PATH
6950do
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
6956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 break 2
6958 fi
6959done
6960done
6961
55db4b87
PB
6962fi
6963fi
c6b750e1 6964GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
05cbd757 6965if test -n "$GCJ_FOR_TARGET"; then
c6b750e1
DJ
6966 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
6967echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
55db4b87 6968else
c6b750e1
DJ
6969 echo "$as_me:$LINENO: result: no" >&5
6970echo "${ECHO_T}no" >&6
55db4b87 6971fi
c6b750e1 6972
2429c060
PB
6973 fi
6974 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
6975 done
6976fi
c6b750e1 6977
05cbd757
PB
6978if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
6979 set dummy gcj
6980 if test $build = $target ; then
6981 GCJ_FOR_TARGET="$2"
55db4b87 6982 else
05cbd757 6983 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 6984 fi
55db4b87
PB
6985fi
6986
2429c060
PB
6987 if test -n "$with_build_time_tools"; then
6988 for ncn_progname in gfortran; do
c6b750e1
DJ
6989 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6990echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
6991 if test -x $with_build_time_tools/${ncn_progname}; then
6992 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
6993 echo "$as_me:$LINENO: result: yes" >&5
6994echo "${ECHO_T}yes" >&6
2429c060
PB
6995 break
6996 else
c6b750e1
DJ
6997 echo "$as_me:$LINENO: result: no" >&5
6998echo "${ECHO_T}no" >&6
2429c060
PB
6999 fi
7000 done
7001fi
7002
7003if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
7004 for ncn_progname in gfortran; do
7005 if test -n "$ncn_target_tool_prefix"; then
7006 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7007set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7008echo "$as_me:$LINENO: checking for $ac_word" >&5
7009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7010if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
7012else
7013 if test -n "$GFORTRAN_FOR_TARGET"; then
7014 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7015else
c6b750e1
DJ
7016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017for as_dir in $PATH
7018do
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7023 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7026 fi
7027done
7028done
7029
55db4b87
PB
7030fi
7031fi
c6b750e1 7032GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 7033if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
7034 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
7035echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 7036else
c6b750e1
DJ
7037 echo "$as_me:$LINENO: result: no" >&5
7038echo "${ECHO_T}no" >&6
55db4b87
PB
7039fi
7040
2429c060
PB
7041 fi
7042 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
7043 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 7044set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7045echo "$as_me:$LINENO: checking for $ac_word" >&5
7046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7047if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 7049else
05cbd757 7050 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
7051 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7052else
7053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054for as_dir in $PATH
7055do
7056 IFS=$as_save_IFS
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7060 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
7061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 break 2
7063 fi
7064done
7065done
7066
55db4b87
PB
7067fi
7068fi
c6b750e1 7069GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 7070if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
7071 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
7072echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 7073else
c6b750e1
DJ
7074 echo "$as_me:$LINENO: result: no" >&5
7075echo "${ECHO_T}no" >&6
55db4b87 7076fi
c6b750e1 7077
2429c060
PB
7078 fi
7079 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
7080 done
7081fi
c6b750e1 7082
05cbd757
PB
7083if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
7084 set dummy gfortran
7085 if test $build = $target ; then
7086 GFORTRAN_FOR_TARGET="$2"
55db4b87 7087 else
05cbd757 7088 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 7089 fi
859789af
AC
7090fi
7091
2429c060
PB
7092
7093
7094# The user is always right.
7095if test "${PATH_SEPARATOR+set}" != set; then
7096 echo "#! /bin/sh" >conf$$.sh
7097 echo "exit 0" >>conf$$.sh
7098 chmod +x conf$$.sh
7099 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7100 PATH_SEPARATOR=';'
7101 else
c6b750e1 7102 PATH_SEPARATOR=:
2429c060
PB
7103 fi
7104 rm -f conf$$.sh
7105fi
7106
7107
7108
7109if test "x$exec_prefix" = xNONE; then
7110 if test "x$prefix" = xNONE; then
7111 gcc_cv_tool_prefix=$ac_default_prefix
7112 else
7113 gcc_cv_tool_prefix=$prefix
7114 fi
859789af 7115else
2429c060
PB
7116 gcc_cv_tool_prefix=$exec_prefix
7117fi
7118
7119# If there is no compiler in the tree, use the PATH only. In any
7120# case, if there is no compiler in the tree nobody should use
7121# AS_FOR_TARGET and LD_FOR_TARGET.
7122if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
7123 gcc_version=`cat $srcdir/gcc/BASE-VER`
7124 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7125 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7126 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7127 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7128 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7129 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
859789af 7130else
2429c060 7131 gcc_cv_tool_dirs=
859789af 7132fi
2429c060
PB
7133
7134if test x$build = x$target && test -n "$md_exec_prefix"; then
7135 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
859789af 7136fi
2429c060
PB
7137
7138
7139
7140cat > conftest.c << \EOF
7141#ifdef __GNUC__
7142 gcc_yay;
7143#endif
7144EOF
7145if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
7146 have_gcc_for_target=yes
859789af 7147else
2429c060
PB
7148 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
7149 have_gcc_for_target=no
859789af 7150fi
2429c060
PB
7151rm conftest.c
7152
7153
7154
859789af 7155
2429c060
PB
7156if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7157 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
7158 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
7159echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7160 if test -x $with_build_time_tools/ar; then
7161 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
7162 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
7163 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
7164echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 7165 else
c6b750e1
DJ
7166 echo "$as_me:$LINENO: result: no" >&5
7167echo "${ECHO_T}no" >&6
3a35eeb3 7168 fi
2429c060
PB
7169 elif test $build != $host && test $have_gcc_for_target = yes; then
7170 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
7171 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
7172 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 7173 fi
2429c060 7174fi
c6b750e1 7175if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
7176 # Extract the first word of "ar", so it can be a program name with args.
7177set dummy ar; ac_word=$2
c6b750e1
DJ
7178echo "$as_me:$LINENO: checking for $ac_word" >&5
7179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7180if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7182else
c6b750e1
DJ
7183 case $AR_FOR_TARGET in
7184 [\\/]* | ?:[\\/]*)
2429c060
PB
7185 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
7186 ;;
2429c060 7187 *)
c6b750e1
DJ
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189for as_dir in $gcc_cv_tool_dirs
7190do
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7195 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 break 2
7198 fi
7199done
7200done
7201
2429c060
PB
7202 ;;
7203esac
859789af 7204fi
c6b750e1
DJ
7205AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
7206
2429c060 7207if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
7208 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7209echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 7210else
c6b750e1
DJ
7211 echo "$as_me:$LINENO: result: no" >&5
7212echo "${ECHO_T}no" >&6
859789af 7213fi
05cbd757 7214
2429c060
PB
7215fi
7216if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7217 if test -n "$with_build_time_tools"; then
7218 for ncn_progname in ar; do
c6b750e1
DJ
7219 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7220echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7221 if test -x $with_build_time_tools/${ncn_progname}; then
7222 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7223 echo "$as_me:$LINENO: result: yes" >&5
7224echo "${ECHO_T}yes" >&6
2429c060
PB
7225 break
7226 else
c6b750e1
DJ
7227 echo "$as_me:$LINENO: result: no" >&5
7228echo "${ECHO_T}no" >&6
2429c060
PB
7229 fi
7230 done
859789af
AC
7231fi
7232
2429c060
PB
7233if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
7234 for ncn_progname in ar; do
7235 if test -n "$ncn_target_tool_prefix"; then
7236 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7237set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7238echo "$as_me:$LINENO: checking for $ac_word" >&5
7239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7240if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 7242else
2429c060
PB
7243 if test -n "$AR_FOR_TARGET"; then
7244 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 7245else
c6b750e1
DJ
7246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247for as_dir in $PATH
7248do
7249 IFS=$as_save_IFS
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7253 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 break 2
7256 fi
7257done
7258done
7259
7e0f7140
GK
7260fi
7261fi
c6b750e1 7262AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 7263if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
7264 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7265echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 7266else
c6b750e1
DJ
7267 echo "$as_me:$LINENO: result: no" >&5
7268echo "${ECHO_T}no" >&6
7e0f7140
GK
7269fi
7270
2429c060
PB
7271 fi
7272 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
7273 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 7274set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7275echo "$as_me:$LINENO: checking for $ac_word" >&5
7276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7277if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 7279else
2429c060
PB
7280 if test -n "$AR_FOR_TARGET"; then
7281 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 7282else
c6b750e1
DJ
7283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284for as_dir in $PATH
7285do
7286 IFS=$as_save_IFS
7287 test -z "$as_dir" && as_dir=.
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7290 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
7291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 break 2
7293 fi
7294done
7295done
7296
7e0f7140
GK
7297fi
7298fi
c6b750e1 7299AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 7300if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
7301 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7302echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 7303else
c6b750e1
DJ
7304 echo "$as_me:$LINENO: result: no" >&5
7305echo "${ECHO_T}no" >&6
7e0f7140 7306fi
c6b750e1 7307
2429c060
PB
7308 fi
7309 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
7310 done
7311fi
c6b750e1 7312
2429c060
PB
7313if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
7314 set dummy ar
7e0f7140 7315 if test $build = $target ; then
2429c060 7316 AR_FOR_TARGET="$2"
7e0f7140 7317 else
2429c060 7318 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140
GK
7319 fi
7320fi
7321
3a35eeb3
PB
7322else
7323 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
7324fi
7325
7326
7327
7328
7329if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7330 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
7331 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
7332echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7333 if test -x $with_build_time_tools/as; then
7334 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
7335 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
7336 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
7337echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 7338 else
c6b750e1
DJ
7339 echo "$as_me:$LINENO: result: no" >&5
7340echo "${ECHO_T}no" >&6
3a35eeb3 7341 fi
2429c060
PB
7342 elif test $build != $host && test $have_gcc_for_target = yes; then
7343 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
7344 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
7345 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7346 fi
7347fi
c6b750e1 7348if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
7349 # Extract the first word of "as", so it can be a program name with args.
7350set dummy as; ac_word=$2
c6b750e1
DJ
7351echo "$as_me:$LINENO: checking for $ac_word" >&5
7352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7353if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 7355else
c6b750e1
DJ
7356 case $AS_FOR_TARGET in
7357 [\\/]* | ?:[\\/]*)
2429c060
PB
7358 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
7359 ;;
2429c060 7360 *)
c6b750e1
DJ
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362for as_dir in $gcc_cv_tool_dirs
7363do
7364 IFS=$as_save_IFS
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 break 2
7371 fi
7372done
7373done
7374
2429c060
PB
7375 ;;
7376esac
7377fi
c6b750e1
DJ
7378AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7379
2429c060 7380if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
7381 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7382echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 7383else
c6b750e1
DJ
7384 echo "$as_me:$LINENO: result: no" >&5
7385echo "${ECHO_T}no" >&6
2429c060
PB
7386fi
7387
7388fi
7389if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7390 if test -n "$with_build_time_tools"; then
7391 for ncn_progname in as; do
c6b750e1
DJ
7392 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7393echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7394 if test -x $with_build_time_tools/${ncn_progname}; then
7395 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7396 echo "$as_me:$LINENO: result: yes" >&5
7397echo "${ECHO_T}yes" >&6
2429c060
PB
7398 break
7399 else
c6b750e1
DJ
7400 echo "$as_me:$LINENO: result: no" >&5
7401echo "${ECHO_T}no" >&6
2429c060
PB
7402 fi
7403 done
7404fi
7405
7406if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
7407 for ncn_progname in as; do
7408 if test -n "$ncn_target_tool_prefix"; then
7409 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7410set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7411echo "$as_me:$LINENO: checking for $ac_word" >&5
7412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7413if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
7415else
7416 if test -n "$AS_FOR_TARGET"; then
7417 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7418else
c6b750e1
DJ
7419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420for as_dir in $PATH
7421do
7422 IFS=$as_save_IFS
7423 test -z "$as_dir" && as_dir=.
7424 for ac_exec_ext in '' $ac_executable_extensions; do
7425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7426 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7428 break 2
7429 fi
7430done
7431done
7432
2429c060
PB
7433fi
7434fi
c6b750e1 7435AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 7436if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
7437 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7438echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 7439else
c6b750e1
DJ
7440 echo "$as_me:$LINENO: result: no" >&5
7441echo "${ECHO_T}no" >&6
2429c060
PB
7442fi
7443
7444 fi
7445 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
7446 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7447set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7448echo "$as_me:$LINENO: checking for $ac_word" >&5
7449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7450if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
7452else
7453 if test -n "$AS_FOR_TARGET"; then
7454 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7455else
c6b750e1
DJ
7456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457for as_dir in $PATH
7458do
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7463 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
7464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 break 2
7466 fi
7467done
7468done
7469
2429c060
PB
7470fi
7471fi
c6b750e1 7472AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 7473if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
7474 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7475echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 7476else
c6b750e1
DJ
7477 echo "$as_me:$LINENO: result: no" >&5
7478echo "${ECHO_T}no" >&6
2429c060 7479fi
c6b750e1 7480
2429c060
PB
7481 fi
7482 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
7483 done
7484fi
c6b750e1 7485
2429c060
PB
7486if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
7487 set dummy as
7488 if test $build = $target ; then
7489 AS_FOR_TARGET="$2"
7490 else
7491 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
7492 fi
7493fi
7494
3a35eeb3
PB
7495else
7496 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
7497fi
7498
7499
7500
7501
7502if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7503 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
7504 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
7505echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7506 if test -x $with_build_time_tools/dlltool; then
7507 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
7508 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
7509 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
7510echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 7511 else
c6b750e1
DJ
7512 echo "$as_me:$LINENO: result: no" >&5
7513echo "${ECHO_T}no" >&6
3a35eeb3 7514 fi
2429c060
PB
7515 elif test $build != $host && test $have_gcc_for_target = yes; then
7516 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
7517 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
7518 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7519 fi
7520fi
c6b750e1 7521if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
7522 # Extract the first word of "dlltool", so it can be a program name with args.
7523set dummy dlltool; ac_word=$2
c6b750e1
DJ
7524echo "$as_me:$LINENO: checking for $ac_word" >&5
7525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7526if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 7528else
c6b750e1
DJ
7529 case $DLLTOOL_FOR_TARGET in
7530 [\\/]* | ?:[\\/]*)
2429c060
PB
7531 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
7532 ;;
2429c060 7533 *)
c6b750e1
DJ
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535for as_dir in $gcc_cv_tool_dirs
7536do
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7541 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 break 2
7544 fi
7545done
7546done
7547
2429c060
PB
7548 ;;
7549esac
7550fi
c6b750e1
DJ
7551DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
7552
2429c060 7553if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
7554 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7555echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 7556else
c6b750e1
DJ
7557 echo "$as_me:$LINENO: result: no" >&5
7558echo "${ECHO_T}no" >&6
2429c060
PB
7559fi
7560
7561fi
7562if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7563 if test -n "$with_build_time_tools"; then
7564 for ncn_progname in dlltool; do
c6b750e1
DJ
7565 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7566echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7567 if test -x $with_build_time_tools/${ncn_progname}; then
7568 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7569 echo "$as_me:$LINENO: result: yes" >&5
7570echo "${ECHO_T}yes" >&6
2429c060
PB
7571 break
7572 else
c6b750e1
DJ
7573 echo "$as_me:$LINENO: result: no" >&5
7574echo "${ECHO_T}no" >&6
2429c060
PB
7575 fi
7576 done
7577fi
7578
7579if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
7580 for ncn_progname in dlltool; do
7581 if test -n "$ncn_target_tool_prefix"; then
7582 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7583set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7584echo "$as_me:$LINENO: checking for $ac_word" >&5
7585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7586if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
7588else
7589 if test -n "$DLLTOOL_FOR_TARGET"; then
7590 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
7591else
c6b750e1
DJ
7592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593for as_dir in $PATH
7594do
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7599 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 break 2
7602 fi
7603done
7604done
7605
2429c060
PB
7606fi
7607fi
c6b750e1 7608DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 7609if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
7610 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7611echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 7612else
c6b750e1
DJ
7613 echo "$as_me:$LINENO: result: no" >&5
7614echo "${ECHO_T}no" >&6
2429c060
PB
7615fi
7616
7617 fi
7618 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
7619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7620set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7621echo "$as_me:$LINENO: checking for $ac_word" >&5
7622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7623if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
7625else
7626 if test -n "$DLLTOOL_FOR_TARGET"; then
7627 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
7628else
c6b750e1
DJ
7629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630for as_dir in $PATH
7631do
7632 IFS=$as_save_IFS
7633 test -z "$as_dir" && as_dir=.
7634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7636 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
7637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 break 2
7639 fi
7640done
7641done
7642
2429c060
PB
7643fi
7644fi
c6b750e1 7645DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 7646if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
7647 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7648echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 7649else
c6b750e1
DJ
7650 echo "$as_me:$LINENO: result: no" >&5
7651echo "${ECHO_T}no" >&6
2429c060 7652fi
c6b750e1 7653
2429c060
PB
7654 fi
7655 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
7656 done
7657fi
c6b750e1 7658
2429c060
PB
7659if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
7660 set dummy dlltool
7661 if test $build = $target ; then
7662 DLLTOOL_FOR_TARGET="$2"
7663 else
7664 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
7665 fi
7666fi
7667
3a35eeb3
PB
7668else
7669 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
7670fi
7671
7672
7673
7674
7675if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
7676 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
7677 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
7678echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7679 if test -x $with_build_time_tools/ld; then
7680 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
7681 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
7682 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
7683echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 7684 else
c6b750e1
DJ
7685 echo "$as_me:$LINENO: result: no" >&5
7686echo "${ECHO_T}no" >&6
3a35eeb3 7687 fi
2429c060
PB
7688 elif test $build != $host && test $have_gcc_for_target = yes; then
7689 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
7690 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
7691 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
7692 fi
7693fi
c6b750e1 7694if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
7695 # Extract the first word of "ld", so it can be a program name with args.
7696set dummy ld; ac_word=$2
c6b750e1
DJ
7697echo "$as_me:$LINENO: checking for $ac_word" >&5
7698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7699if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 7701else
c6b750e1
DJ
7702 case $LD_FOR_TARGET in
7703 [\\/]* | ?:[\\/]*)
2429c060
PB
7704 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
7705 ;;
2429c060 7706 *)
c6b750e1
DJ
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708for as_dir in $gcc_cv_tool_dirs
7709do
7710 IFS=$as_save_IFS
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 break 2
7717 fi
7718done
7719done
7720
2429c060
PB
7721 ;;
7722esac
7723fi
c6b750e1
DJ
7724LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
7725
2429c060 7726if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
7727 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7728echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 7729else
c6b750e1
DJ
7730 echo "$as_me:$LINENO: result: no" >&5
7731echo "${ECHO_T}no" >&6
2429c060
PB
7732fi
7733
7734fi
7735if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
7736 if test -n "$with_build_time_tools"; then
7737 for ncn_progname in ld; do
c6b750e1
DJ
7738 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7739echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7740 if test -x $with_build_time_tools/${ncn_progname}; then
7741 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7742 echo "$as_me:$LINENO: result: yes" >&5
7743echo "${ECHO_T}yes" >&6
2429c060
PB
7744 break
7745 else
c6b750e1
DJ
7746 echo "$as_me:$LINENO: result: no" >&5
7747echo "${ECHO_T}no" >&6
2429c060
PB
7748 fi
7749 done
7750fi
7751
7752if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
7753 for ncn_progname in ld; do
7754 if test -n "$ncn_target_tool_prefix"; then
7755 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7756set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7757echo "$as_me:$LINENO: checking for $ac_word" >&5
7758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7759if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
7761else
7762 if test -n "$LD_FOR_TARGET"; then
7763 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
7764else
c6b750e1
DJ
7765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766for as_dir in $PATH
7767do
7768 IFS=$as_save_IFS
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7772 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 break 2
7775 fi
7776done
7777done
7778
2429c060
PB
7779fi
7780fi
c6b750e1 7781LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 7782if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
7783 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7784echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 7785else
c6b750e1
DJ
7786 echo "$as_me:$LINENO: result: no" >&5
7787echo "${ECHO_T}no" >&6
2429c060
PB
7788fi
7789
7790 fi
7791 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
7792 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7793set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7794echo "$as_me:$LINENO: checking for $ac_word" >&5
7795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7796if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
7798else
7799 if test -n "$LD_FOR_TARGET"; then
7800 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
7801else
c6b750e1
DJ
7802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803for as_dir in $PATH
7804do
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7809 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
7810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7812 fi
7813done
7814done
7815
2429c060
PB
7816fi
7817fi
c6b750e1 7818LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 7819if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
7820 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7821echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 7822else
c6b750e1
DJ
7823 echo "$as_me:$LINENO: result: no" >&5
7824echo "${ECHO_T}no" >&6
2429c060 7825fi
c6b750e1 7826
2429c060
PB
7827 fi
7828 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
7829 done
7830fi
c6b750e1 7831
2429c060
PB
7832if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
7833 set dummy ld
7834 if test $build = $target ; then
7835 LD_FOR_TARGET="$2"
7836 else
7837 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
7838 fi
7839fi
7840
3a35eeb3
PB
7841else
7842 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
7843fi
7844
7845
7846
7847
7848if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
7849 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
7850 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
7851echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7852 if test -x $with_build_time_tools/lipo; then
7853 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
7854 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
7855 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
7856echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 7857 else
c6b750e1
DJ
7858 echo "$as_me:$LINENO: result: no" >&5
7859echo "${ECHO_T}no" >&6
3a35eeb3 7860 fi
2429c060
PB
7861 elif test $build != $host && test $have_gcc_for_target = yes; then
7862 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
7863 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
7864 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
7865 fi
7866fi
c6b750e1 7867if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
7868 # Extract the first word of "lipo", so it can be a program name with args.
7869set dummy lipo; ac_word=$2
c6b750e1
DJ
7870echo "$as_me:$LINENO: checking for $ac_word" >&5
7871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7872if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 7874else
c6b750e1
DJ
7875 case $LIPO_FOR_TARGET in
7876 [\\/]* | ?:[\\/]*)
2429c060
PB
7877 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
7878 ;;
2429c060 7879 *)
c6b750e1
DJ
7880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881for as_dir in $gcc_cv_tool_dirs
7882do
7883 IFS=$as_save_IFS
7884 test -z "$as_dir" && as_dir=.
7885 for ac_exec_ext in '' $ac_executable_extensions; do
7886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7887 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7889 break 2
7890 fi
7891done
7892done
7893
2429c060
PB
7894 ;;
7895esac
7896fi
c6b750e1
DJ
7897LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
7898
2429c060 7899if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
7900 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
7901echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 7902else
c6b750e1
DJ
7903 echo "$as_me:$LINENO: result: no" >&5
7904echo "${ECHO_T}no" >&6
2429c060
PB
7905fi
7906
7907fi
7908if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
7909 if test -n "$with_build_time_tools"; then
7910 for ncn_progname in lipo; do
c6b750e1
DJ
7911 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7912echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7913 if test -x $with_build_time_tools/${ncn_progname}; then
7914 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7915 echo "$as_me:$LINENO: result: yes" >&5
7916echo "${ECHO_T}yes" >&6
2429c060
PB
7917 break
7918 else
c6b750e1
DJ
7919 echo "$as_me:$LINENO: result: no" >&5
7920echo "${ECHO_T}no" >&6
2429c060
PB
7921 fi
7922 done
7923fi
7924
7925if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
7926 for ncn_progname in lipo; do
7927 if test -n "$ncn_target_tool_prefix"; then
7928 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7929set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7930echo "$as_me:$LINENO: checking for $ac_word" >&5
7931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7932if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
7934else
7935 if test -n "$LIPO_FOR_TARGET"; then
7936 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
7937else
c6b750e1
DJ
7938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939for as_dir in $PATH
7940do
7941 IFS=$as_save_IFS
7942 test -z "$as_dir" && as_dir=.
7943 for ac_exec_ext in '' $ac_executable_extensions; do
7944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7945 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7947 break 2
7948 fi
7949done
7950done
7951
2429c060
PB
7952fi
7953fi
c6b750e1 7954LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 7955if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
7956 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
7957echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 7958else
c6b750e1
DJ
7959 echo "$as_me:$LINENO: result: no" >&5
7960echo "${ECHO_T}no" >&6
2429c060
PB
7961fi
7962
7963 fi
7964 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
7965 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7966set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7967echo "$as_me:$LINENO: checking for $ac_word" >&5
7968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7969if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
7971else
7972 if test -n "$LIPO_FOR_TARGET"; then
7973 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
7974else
c6b750e1
DJ
7975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7976for as_dir in $PATH
7977do
7978 IFS=$as_save_IFS
7979 test -z "$as_dir" && as_dir=.
7980 for ac_exec_ext in '' $ac_executable_extensions; do
7981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7982 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
7983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7984 break 2
7985 fi
7986done
7987done
7988
2429c060
PB
7989fi
7990fi
c6b750e1 7991LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 7992if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
7993 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
7994echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 7995else
c6b750e1
DJ
7996 echo "$as_me:$LINENO: result: no" >&5
7997echo "${ECHO_T}no" >&6
2429c060 7998fi
c6b750e1 7999
2429c060
PB
8000 fi
8001 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
8002 done
8003fi
c6b750e1 8004
2429c060
PB
8005if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
8006 set dummy lipo
8007 if test $build = $target ; then
8008 LIPO_FOR_TARGET="$2"
8009 else
8010 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
8011 fi
8012fi
8013
3a35eeb3
PB
8014else
8015 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
8016fi
8017
8018
8019
8020
8021if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8022 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8023 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
8024echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8025 if test -x $with_build_time_tools/nm; then
8026 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
8027 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
8028 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
8029echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 8030 else
c6b750e1
DJ
8031 echo "$as_me:$LINENO: result: no" >&5
8032echo "${ECHO_T}no" >&6
3a35eeb3 8033 fi
2429c060
PB
8034 elif test $build != $host && test $have_gcc_for_target = yes; then
8035 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
8036 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
8037 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
8038 fi
8039fi
c6b750e1 8040if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8041 # Extract the first word of "nm", so it can be a program name with args.
8042set dummy nm; ac_word=$2
c6b750e1
DJ
8043echo "$as_me:$LINENO: checking for $ac_word" >&5
8044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8045if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
8046 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8047else
c6b750e1
DJ
8048 case $NM_FOR_TARGET in
8049 [\\/]* | ?:[\\/]*)
2429c060
PB
8050 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
8051 ;;
2429c060 8052 *)
c6b750e1
DJ
8053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054for as_dir in $gcc_cv_tool_dirs
8055do
8056 IFS=$as_save_IFS
8057 test -z "$as_dir" && as_dir=.
8058 for ac_exec_ext in '' $ac_executable_extensions; do
8059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8060 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8062 break 2
8063 fi
8064done
8065done
8066
2429c060
PB
8067 ;;
8068esac
8069fi
c6b750e1
DJ
8070NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
8071
2429c060 8072if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
8073 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8074echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 8075else
c6b750e1
DJ
8076 echo "$as_me:$LINENO: result: no" >&5
8077echo "${ECHO_T}no" >&6
2429c060
PB
8078fi
8079
8080fi
8081if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8082 if test -n "$with_build_time_tools"; then
8083 for ncn_progname in nm; do
c6b750e1
DJ
8084 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8085echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8086 if test -x $with_build_time_tools/${ncn_progname}; then
8087 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8088 echo "$as_me:$LINENO: result: yes" >&5
8089echo "${ECHO_T}yes" >&6
2429c060
PB
8090 break
8091 else
c6b750e1
DJ
8092 echo "$as_me:$LINENO: result: no" >&5
8093echo "${ECHO_T}no" >&6
2429c060
PB
8094 fi
8095 done
8096fi
8097
8098if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
8099 for ncn_progname in nm; do
8100 if test -n "$ncn_target_tool_prefix"; then
8101 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 8102set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8103echo "$as_me:$LINENO: checking for $ac_word" >&5
8104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8105if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8107else
55db4b87
PB
8108 if test -n "$NM_FOR_TARGET"; then
8109 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 8110else
c6b750e1
DJ
8111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112for as_dir in $PATH
8113do
8114 IFS=$as_save_IFS
8115 test -z "$as_dir" && as_dir=.
8116 for ac_exec_ext in '' $ac_executable_extensions; do
8117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8118 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8120 break 2
8121 fi
8122done
8123done
8124
859789af
AC
8125fi
8126fi
c6b750e1 8127NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 8128if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
8129 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8130echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 8131else
c6b750e1
DJ
8132 echo "$as_me:$LINENO: result: no" >&5
8133echo "${ECHO_T}no" >&6
859789af
AC
8134fi
8135
2429c060
PB
8136 fi
8137 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
8138 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8139set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8140echo "$as_me:$LINENO: checking for $ac_word" >&5
8141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8142if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8144else
05cbd757
PB
8145 if test -n "$NM_FOR_TARGET"; then
8146 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 8147else
c6b750e1
DJ
8148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149for as_dir in $PATH
8150do
8151 IFS=$as_save_IFS
8152 test -z "$as_dir" && as_dir=.
8153 for ac_exec_ext in '' $ac_executable_extensions; do
8154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8155 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
8156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8157 break 2
8158 fi
8159done
8160done
8161
859789af
AC
8162fi
8163fi
c6b750e1 8164NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 8165if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
8166 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8167echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 8168else
c6b750e1
DJ
8169 echo "$as_me:$LINENO: result: no" >&5
8170echo "${ECHO_T}no" >&6
859789af 8171fi
c6b750e1 8172
2429c060
PB
8173 fi
8174 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
8175 done
8176fi
c6b750e1 8177
05cbd757
PB
8178if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
8179 set dummy nm
8180 if test $build = $target ; then
8181 NM_FOR_TARGET="$2"
859789af 8182 else
05cbd757 8183 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 8184 fi
859789af
AC
8185fi
8186
3a35eeb3
PB
8187else
8188 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
8189fi
8190
8191
8192
8193
8194if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8195 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8196 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
8197echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8198 if test -x $with_build_time_tools/objdump; then
8199 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
8200 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
8201 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
8202echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 8203 else
c6b750e1
DJ
8204 echo "$as_me:$LINENO: result: no" >&5
8205echo "${ECHO_T}no" >&6
3a35eeb3 8206 fi
2429c060
PB
8207 elif test $build != $host && test $have_gcc_for_target = yes; then
8208 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
8209 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
8210 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
8211 fi
8212fi
c6b750e1 8213if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8214 # Extract the first word of "objdump", so it can be a program name with args.
8215set dummy objdump; ac_word=$2
c6b750e1
DJ
8216echo "$as_me:$LINENO: checking for $ac_word" >&5
8217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8218if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8220else
c6b750e1
DJ
8221 case $OBJDUMP_FOR_TARGET in
8222 [\\/]* | ?:[\\/]*)
2429c060
PB
8223 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
8224 ;;
2429c060 8225 *)
c6b750e1
DJ
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227for as_dir in $gcc_cv_tool_dirs
8228do
8229 IFS=$as_save_IFS
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8233 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8235 break 2
8236 fi
8237done
8238done
8239
2429c060
PB
8240 ;;
8241esac
8242fi
c6b750e1
DJ
8243OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8244
2429c060 8245if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
8246 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8247echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 8248else
c6b750e1
DJ
8249 echo "$as_me:$LINENO: result: no" >&5
8250echo "${ECHO_T}no" >&6
2429c060
PB
8251fi
8252
8253fi
8254if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8255 if test -n "$with_build_time_tools"; then
8256 for ncn_progname in objdump; do
c6b750e1
DJ
8257 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8258echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8259 if test -x $with_build_time_tools/${ncn_progname}; then
8260 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8261 echo "$as_me:$LINENO: result: yes" >&5
8262echo "${ECHO_T}yes" >&6
2429c060
PB
8263 break
8264 else
c6b750e1
DJ
8265 echo "$as_me:$LINENO: result: no" >&5
8266echo "${ECHO_T}no" >&6
2429c060
PB
8267 fi
8268 done
8269fi
8270
8271if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
8272 for ncn_progname in objdump; do
8273 if test -n "$ncn_target_tool_prefix"; then
8274 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8275set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8276echo "$as_me:$LINENO: checking for $ac_word" >&5
8277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8278if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
8280else
8281 if test -n "$OBJDUMP_FOR_TARGET"; then
8282 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8283else
c6b750e1
DJ
8284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285for as_dir in $PATH
8286do
8287 IFS=$as_save_IFS
8288 test -z "$as_dir" && as_dir=.
8289 for ac_exec_ext in '' $ac_executable_extensions; do
8290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8291 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8293 break 2
8294 fi
8295done
8296done
8297
5ae72758
DJ
8298fi
8299fi
c6b750e1 8300OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 8301if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
8302 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8303echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 8304else
c6b750e1
DJ
8305 echo "$as_me:$LINENO: result: no" >&5
8306echo "${ECHO_T}no" >&6
5ae72758
DJ
8307fi
8308
2429c060
PB
8309 fi
8310 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
8311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 8312set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8313echo "$as_me:$LINENO: checking for $ac_word" >&5
8314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8315if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
8317else
8318 if test -n "$OBJDUMP_FOR_TARGET"; then
8319 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8320else
c6b750e1
DJ
8321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322for as_dir in $PATH
8323do
8324 IFS=$as_save_IFS
8325 test -z "$as_dir" && as_dir=.
8326 for ac_exec_ext in '' $ac_executable_extensions; do
8327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8328 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
8329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8330 break 2
8331 fi
8332done
8333done
8334
5ae72758
DJ
8335fi
8336fi
c6b750e1 8337OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 8338if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
8339 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8340echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 8341else
c6b750e1
DJ
8342 echo "$as_me:$LINENO: result: no" >&5
8343echo "${ECHO_T}no" >&6
5ae72758 8344fi
c6b750e1 8345
2429c060
PB
8346 fi
8347 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
8348 done
8349fi
c6b750e1 8350
5ae72758
DJ
8351if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
8352 set dummy objdump
8353 if test $build = $target ; then
8354 OBJDUMP_FOR_TARGET="$2"
8355 else
8356 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8357 fi
8358fi
8359
3a35eeb3
PB
8360else
8361 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
8362fi
8363
8364
8365
8366
8367if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8368 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8369 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
8370echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8371 if test -x $with_build_time_tools/ranlib; then
8372 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
8373 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
8374 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
8375echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 8376 else
c6b750e1
DJ
8377 echo "$as_me:$LINENO: result: no" >&5
8378echo "${ECHO_T}no" >&6
3a35eeb3 8379 fi
2429c060
PB
8380 elif test $build != $host && test $have_gcc_for_target = yes; then
8381 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
8382 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
8383 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8384 fi
8385fi
c6b750e1 8386if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8387 # Extract the first word of "ranlib", so it can be a program name with args.
8388set dummy ranlib; ac_word=$2
c6b750e1
DJ
8389echo "$as_me:$LINENO: checking for $ac_word" >&5
8390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8391if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8393else
c6b750e1
DJ
8394 case $RANLIB_FOR_TARGET in
8395 [\\/]* | ?:[\\/]*)
2429c060
PB
8396 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
8397 ;;
2429c060 8398 *)
c6b750e1
DJ
8399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400for as_dir in $gcc_cv_tool_dirs
8401do
8402 IFS=$as_save_IFS
8403 test -z "$as_dir" && as_dir=.
8404 for ac_exec_ext in '' $ac_executable_extensions; do
8405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8406 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8408 break 2
8409 fi
8410done
8411done
8412
2429c060
PB
8413 ;;
8414esac
8415fi
c6b750e1
DJ
8416RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8417
2429c060 8418if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
8419 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8420echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 8421else
c6b750e1
DJ
8422 echo "$as_me:$LINENO: result: no" >&5
8423echo "${ECHO_T}no" >&6
2429c060
PB
8424fi
8425
8426fi
8427if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8428 if test -n "$with_build_time_tools"; then
8429 for ncn_progname in ranlib; do
c6b750e1
DJ
8430 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8431echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8432 if test -x $with_build_time_tools/${ncn_progname}; then
8433 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8434 echo "$as_me:$LINENO: result: yes" >&5
8435echo "${ECHO_T}yes" >&6
2429c060
PB
8436 break
8437 else
c6b750e1
DJ
8438 echo "$as_me:$LINENO: result: no" >&5
8439echo "${ECHO_T}no" >&6
2429c060
PB
8440 fi
8441 done
8442fi
8443
8444if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
8445 for ncn_progname in ranlib; do
8446 if test -n "$ncn_target_tool_prefix"; then
8447 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 8448set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8449echo "$as_me:$LINENO: checking for $ac_word" >&5
8450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8451if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8452 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8453else
55db4b87
PB
8454 if test -n "$RANLIB_FOR_TARGET"; then
8455 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 8456else
c6b750e1
DJ
8457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458for as_dir in $PATH
8459do
8460 IFS=$as_save_IFS
8461 test -z "$as_dir" && as_dir=.
8462 for ac_exec_ext in '' $ac_executable_extensions; do
8463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8464 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8466 break 2
8467 fi
8468done
8469done
8470
859789af
AC
8471fi
8472fi
c6b750e1 8473RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 8474if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
8475 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8476echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 8477else
c6b750e1
DJ
8478 echo "$as_me:$LINENO: result: no" >&5
8479echo "${ECHO_T}no" >&6
859789af
AC
8480fi
8481
2429c060
PB
8482 fi
8483 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
8484 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8485set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8486echo "$as_me:$LINENO: checking for $ac_word" >&5
8487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8488if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8489 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8490else
05cbd757
PB
8491 if test -n "$RANLIB_FOR_TARGET"; then
8492 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 8493else
c6b750e1
DJ
8494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8495for as_dir in $PATH
8496do
8497 IFS=$as_save_IFS
8498 test -z "$as_dir" && as_dir=.
8499 for ac_exec_ext in '' $ac_executable_extensions; do
8500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8501 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
8502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8503 break 2
8504 fi
8505done
8506done
8507
859789af
AC
8508fi
8509fi
c6b750e1 8510RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 8511if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
8512 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8513echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 8514else
c6b750e1
DJ
8515 echo "$as_me:$LINENO: result: no" >&5
8516echo "${ECHO_T}no" >&6
859789af 8517fi
c6b750e1 8518
2429c060
PB
8519 fi
8520 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
8521 done
8522fi
c6b750e1 8523
2429c060
PB
8524if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
8525 set dummy ranlib
8526 if test $build = $target ; then
8527 RANLIB_FOR_TARGET="$2"
8528 else
8529 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 8530 fi
2429c060 8531fi
05cbd757 8532
3a35eeb3
PB
8533else
8534 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
8535fi
8536
2429c060
PB
8537
8538
8539
8540if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8541 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8542 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
8543echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8544 if test -x $with_build_time_tools/strip; then
8545 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
8546 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
8547 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
8548echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 8549 else
c6b750e1
DJ
8550 echo "$as_me:$LINENO: result: no" >&5
8551echo "${ECHO_T}no" >&6
3a35eeb3 8552 fi
2429c060
PB
8553 elif test $build != $host && test $have_gcc_for_target = yes; then
8554 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
8555 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
8556 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8557 fi
8558fi
c6b750e1 8559if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8560 # Extract the first word of "strip", so it can be a program name with args.
8561set dummy strip; ac_word=$2
c6b750e1
DJ
8562echo "$as_me:$LINENO: checking for $ac_word" >&5
8563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8564if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8566else
c6b750e1
DJ
8567 case $STRIP_FOR_TARGET in
8568 [\\/]* | ?:[\\/]*)
2429c060
PB
8569 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
8570 ;;
2429c060 8571 *)
c6b750e1
DJ
8572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8573for as_dir in $gcc_cv_tool_dirs
8574do
8575 IFS=$as_save_IFS
8576 test -z "$as_dir" && as_dir=.
8577 for ac_exec_ext in '' $ac_executable_extensions; do
8578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8579 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8581 break 2
8582 fi
8583done
8584done
8585
2429c060
PB
8586 ;;
8587esac
8588fi
c6b750e1
DJ
8589STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
8590
2429c060 8591if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
8592 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8593echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 8594else
c6b750e1
DJ
8595 echo "$as_me:$LINENO: result: no" >&5
8596echo "${ECHO_T}no" >&6
2429c060
PB
8597fi
8598
8599fi
8600if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8601 if test -n "$with_build_time_tools"; then
8602 for ncn_progname in strip; do
c6b750e1
DJ
8603 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8604echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8605 if test -x $with_build_time_tools/${ncn_progname}; then
8606 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8607 echo "$as_me:$LINENO: result: yes" >&5
8608echo "${ECHO_T}yes" >&6
2429c060
PB
8609 break
8610 else
c6b750e1
DJ
8611 echo "$as_me:$LINENO: result: no" >&5
8612echo "${ECHO_T}no" >&6
2429c060
PB
8613 fi
8614 done
8615fi
8616
8617if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
8618 for ncn_progname in strip; do
8619 if test -n "$ncn_target_tool_prefix"; then
8620 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 8621set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8622echo "$as_me:$LINENO: checking for $ac_word" >&5
8623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8624if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
8625 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
8626else
8627 if test -n "$STRIP_FOR_TARGET"; then
8628 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
8629else
8630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631for as_dir in $PATH
8632do
8633 IFS=$as_save_IFS
8634 test -z "$as_dir" && as_dir=.
8635 for ac_exec_ext in '' $ac_executable_extensions; do
8636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8637 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8639 break 2
8640 fi
8641done
8642done
8643
7e0f7140
GK
8644fi
8645fi
c6b750e1 8646STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 8647if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
8648 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8649echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 8650else
c6b750e1
DJ
8651 echo "$as_me:$LINENO: result: no" >&5
8652echo "${ECHO_T}no" >&6
7e0f7140
GK
8653fi
8654
2429c060
PB
8655 fi
8656 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
8657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 8658set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8659echo "$as_me:$LINENO: checking for $ac_word" >&5
8660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8661if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
8663else
8664 if test -n "$STRIP_FOR_TARGET"; then
8665 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
8666else
c6b750e1
DJ
8667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668for as_dir in $PATH
8669do
8670 IFS=$as_save_IFS
8671 test -z "$as_dir" && as_dir=.
8672 for ac_exec_ext in '' $ac_executable_extensions; do
8673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8674 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
8675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8676 break 2
8677 fi
8678done
8679done
8680
7e0f7140
GK
8681fi
8682fi
c6b750e1 8683STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 8684if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
8685 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8686echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 8687else
c6b750e1
DJ
8688 echo "$as_me:$LINENO: result: no" >&5
8689echo "${ECHO_T}no" >&6
7e0f7140 8690fi
c6b750e1 8691
2429c060
PB
8692 fi
8693 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
8694 done
8695fi
c6b750e1 8696
7e0f7140
GK
8697if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
8698 set dummy strip
8699 if test $build = $target ; then
8700 STRIP_FOR_TARGET="$2"
8701 else
8702 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8703 fi
8704fi
8705
3a35eeb3
PB
8706else
8707 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
8708fi
8709
8710
8711
8712
8713if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
8714 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8715 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
8716echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8717 if test -x $with_build_time_tools/windres; then
8718 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
8719 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
8720 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
8721echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 8722 else
c6b750e1
DJ
8723 echo "$as_me:$LINENO: result: no" >&5
8724echo "${ECHO_T}no" >&6
3a35eeb3 8725 fi
2429c060
PB
8726 elif test $build != $host && test $have_gcc_for_target = yes; then
8727 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
8728 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
8729 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
8730 fi
8731fi
c6b750e1 8732if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8733 # Extract the first word of "windres", so it can be a program name with args.
8734set dummy windres; ac_word=$2
c6b750e1
DJ
8735echo "$as_me:$LINENO: checking for $ac_word" >&5
8736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8737if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8739else
c6b750e1
DJ
8740 case $WINDRES_FOR_TARGET in
8741 [\\/]* | ?:[\\/]*)
2429c060
PB
8742 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
8743 ;;
2429c060 8744 *)
c6b750e1
DJ
8745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746for as_dir in $gcc_cv_tool_dirs
8747do
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
8751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8752 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 break 2
8755 fi
8756done
8757done
8758
2429c060
PB
8759 ;;
8760esac
8761fi
c6b750e1
DJ
8762WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
8763
2429c060 8764if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
8765 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8766echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 8767else
c6b750e1
DJ
8768 echo "$as_me:$LINENO: result: no" >&5
8769echo "${ECHO_T}no" >&6
2429c060
PB
8770fi
8771
8772fi
8773if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
8774 if test -n "$with_build_time_tools"; then
8775 for ncn_progname in windres; do
c6b750e1
DJ
8776 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8777echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8778 if test -x $with_build_time_tools/${ncn_progname}; then
8779 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8780 echo "$as_me:$LINENO: result: yes" >&5
8781echo "${ECHO_T}yes" >&6
2429c060
PB
8782 break
8783 else
c6b750e1
DJ
8784 echo "$as_me:$LINENO: result: no" >&5
8785echo "${ECHO_T}no" >&6
2429c060
PB
8786 fi
8787 done
8788fi
8789
8790if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
8791 for ncn_progname in windres; do
8792 if test -n "$ncn_target_tool_prefix"; then
8793 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8794set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8795echo "$as_me:$LINENO: checking for $ac_word" >&5
8796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8797if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
8798 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8799else
55db4b87
PB
8800 if test -n "$WINDRES_FOR_TARGET"; then
8801 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 8802else
c6b750e1
DJ
8803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8804for as_dir in $PATH
8805do
8806 IFS=$as_save_IFS
8807 test -z "$as_dir" && as_dir=.
8808 for ac_exec_ext in '' $ac_executable_extensions; do
8809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8810 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8812 break 2
8813 fi
8814done
8815done
8816
859789af
AC
8817fi
8818fi
c6b750e1 8819WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 8820if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
8821 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8822echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 8823else
c6b750e1
DJ
8824 echo "$as_me:$LINENO: result: no" >&5
8825echo "${ECHO_T}no" >&6
859789af
AC
8826fi
8827
2429c060
PB
8828 fi
8829 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
8830 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8831set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8832echo "$as_me:$LINENO: checking for $ac_word" >&5
8833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8834if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
8835 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8836else
05cbd757
PB
8837 if test -n "$WINDRES_FOR_TARGET"; then
8838 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 8839else
c6b750e1
DJ
8840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8841for as_dir in $PATH
8842do
8843 IFS=$as_save_IFS
8844 test -z "$as_dir" && as_dir=.
8845 for ac_exec_ext in '' $ac_executable_extensions; do
8846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8847 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
8848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8849 break 2
8850 fi
8851done
8852done
8853
859789af
AC
8854fi
8855fi
c6b750e1 8856WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 8857if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
8858 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8859echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 8860else
c6b750e1
DJ
8861 echo "$as_me:$LINENO: result: no" >&5
8862echo "${ECHO_T}no" >&6
859789af 8863fi
c6b750e1 8864
2429c060
PB
8865 fi
8866 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
8867 done
8868fi
c6b750e1 8869
05cbd757
PB
8870if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
8871 set dummy windres
8872 if test $build = $target ; then
8873 WINDRES_FOR_TARGET="$2"
859789af 8874 else
05cbd757 8875 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 8876 fi
859789af
AC
8877fi
8878
3a35eeb3
PB
8879else
8880 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
8881fi
8882
852e5f18 8883
be01d343
PB
8884RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
8885
c6b750e1
DJ
8886echo "$as_me:$LINENO: checking where to find the target ar" >&5
8887echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 8888if test "x${build}" != "x${host}" ; then
2429c060
PB
8889 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
8890 # We already found the complete path
c6b750e1
DJ
8891 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
8892echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
2429c060
PB
8893 else
8894 # Canadian cross, just use what we found
c6b750e1
DJ
8895 echo "$as_me:$LINENO: result: pre-installed" >&5
8896echo "${ECHO_T}pre-installed" >&6
2429c060 8897 fi
be01d343
PB
8898else
8899 ok=yes
8900 case " ${configdirs} " in
8901 *" binutils "*) ;;
8902 *) ok=no ;;
8903 esac
c6b750e1 8904
be01d343
PB
8905 if test $ok = yes; then
8906 # An in-tree tool is available and we can use it
8907 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
8908 echo "$as_me:$LINENO: result: just compiled" >&5
8909echo "${ECHO_T}just compiled" >&6
2429c060
PB
8910 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
8911 # We already found the complete path
c6b750e1
DJ
8912 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
8913echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
be01d343
PB
8914 elif test "x$target" = "x$host"; then
8915 # We can use an host tool
8916 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
8917 echo "$as_me:$LINENO: result: host tool" >&5
8918echo "${ECHO_T}host tool" >&6
be01d343
PB
8919 else
8920 # We need a cross tool
c6b750e1
DJ
8921 echo "$as_me:$LINENO: result: pre-installed" >&5
8922echo "${ECHO_T}pre-installed" >&6
be01d343
PB
8923 fi
8924fi
4b900473 8925
c6b750e1
DJ
8926echo "$as_me:$LINENO: checking where to find the target as" >&5
8927echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 8928if test "x${build}" != "x${host}" ; then
2429c060
PB
8929 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
8930 # We already found the complete path
c6b750e1
DJ
8931 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
8932echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
2429c060
PB
8933 else
8934 # Canadian cross, just use what we found
c6b750e1
DJ
8935 echo "$as_me:$LINENO: result: pre-installed" >&5
8936echo "${ECHO_T}pre-installed" >&6
2429c060 8937 fi
be01d343
PB
8938else
8939 ok=yes
8940 case " ${configdirs} " in
8941 *" gas "*) ;;
8942 *) ok=no ;;
8943 esac
c6b750e1 8944
be01d343
PB
8945 if test $ok = yes; then
8946 # An in-tree tool is available and we can use it
8947 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
8948 echo "$as_me:$LINENO: result: just compiled" >&5
8949echo "${ECHO_T}just compiled" >&6
2429c060
PB
8950 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
8951 # We already found the complete path
c6b750e1
DJ
8952 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
8953echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
be01d343
PB
8954 elif test "x$target" = "x$host"; then
8955 # We can use an host tool
8956 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
8957 echo "$as_me:$LINENO: result: host tool" >&5
8958echo "${ECHO_T}host tool" >&6
be01d343
PB
8959 else
8960 # We need a cross tool
c6b750e1
DJ
8961 echo "$as_me:$LINENO: result: pre-installed" >&5
8962echo "${ECHO_T}pre-installed" >&6
be01d343
PB
8963 fi
8964fi
4b900473 8965
c6b750e1
DJ
8966echo "$as_me:$LINENO: checking where to find the target cc" >&5
8967echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 8968if test "x${build}" != "x${host}" ; then
2429c060
PB
8969 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
8970 # We already found the complete path
c6b750e1
DJ
8971 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
8972echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
2429c060
PB
8973 else
8974 # Canadian cross, just use what we found
c6b750e1
DJ
8975 echo "$as_me:$LINENO: result: pre-installed" >&5
8976echo "${ECHO_T}pre-installed" >&6
2429c060 8977 fi
be01d343
PB
8978else
8979 ok=yes
8980 case " ${configdirs} " in
8981 *" gcc "*) ;;
8982 *) ok=no ;;
8983 esac
c6b750e1 8984
be01d343
PB
8985 if test $ok = yes; then
8986 # An in-tree tool is available and we can use it
8987 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
8988 echo "$as_me:$LINENO: result: just compiled" >&5
8989echo "${ECHO_T}just compiled" >&6
2429c060
PB
8990 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
8991 # We already found the complete path
c6b750e1
DJ
8992 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
8993echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
be01d343
PB
8994 elif test "x$target" = "x$host"; then
8995 # We can use an host tool
8996 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
8997 echo "$as_me:$LINENO: result: host tool" >&5
8998echo "${ECHO_T}host tool" >&6
be01d343
PB
8999 else
9000 # We need a cross tool
c6b750e1
DJ
9001 echo "$as_me:$LINENO: result: pre-installed" >&5
9002echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9003 fi
9004fi
4b900473 9005
c6b750e1
DJ
9006echo "$as_me:$LINENO: checking where to find the target c++" >&5
9007echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 9008if test "x${build}" != "x${host}" ; then
2429c060
PB
9009 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
9010 # We already found the complete path
c6b750e1
DJ
9011 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
9012echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
2429c060
PB
9013 else
9014 # Canadian cross, just use what we found
c6b750e1
DJ
9015 echo "$as_me:$LINENO: result: pre-installed" >&5
9016echo "${ECHO_T}pre-installed" >&6
2429c060 9017 fi
be01d343
PB
9018else
9019 ok=yes
9020 case " ${configdirs} " in
9021 *" gcc "*) ;;
9022 *) ok=no ;;
9023 esac
9024 case ,${enable_languages}, in
9025 *,c++,*) ;;
9026 *) ok=no ;;
9027 esac
9028 if test $ok = yes; then
9029 # An in-tree tool is available and we can use it
9030 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
9031 echo "$as_me:$LINENO: result: just compiled" >&5
9032echo "${ECHO_T}just compiled" >&6
2429c060
PB
9033 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
9034 # We already found the complete path
c6b750e1
DJ
9035 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
9036echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
be01d343
PB
9037 elif test "x$target" = "x$host"; then
9038 # We can use an host tool
9039 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
9040 echo "$as_me:$LINENO: result: host tool" >&5
9041echo "${ECHO_T}host tool" >&6
be01d343
PB
9042 else
9043 # We need a cross tool
c6b750e1
DJ
9044 echo "$as_me:$LINENO: result: pre-installed" >&5
9045echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9046 fi
9047fi
4b900473 9048
c6b750e1
DJ
9049echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
9050echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 9051if test "x${build}" != "x${host}" ; then
2429c060
PB
9052 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
9053 # We already found the complete path
c6b750e1
DJ
9054 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
9055echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
2429c060
PB
9056 else
9057 # Canadian cross, just use what we found
c6b750e1
DJ
9058 echo "$as_me:$LINENO: result: pre-installed" >&5
9059echo "${ECHO_T}pre-installed" >&6
2429c060 9060 fi
be01d343
PB
9061else
9062 ok=yes
9063 case " ${configdirs} " in
9064 *" gcc "*) ;;
9065 *) ok=no ;;
9066 esac
9067 case ,${enable_languages}, in
9068 *,c++,*) ;;
9069 *) ok=no ;;
9070 esac
9071 if test $ok = yes; then
9072 # An in-tree tool is available and we can use it
9073 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
9074 echo "$as_me:$LINENO: result: just compiled" >&5
9075echo "${ECHO_T}just compiled" >&6
2429c060
PB
9076 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
9077 # We already found the complete path
c6b750e1
DJ
9078 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
9079echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
be01d343
PB
9080 elif test "x$target" = "x$host"; then
9081 # We can use an host tool
9082 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
9083 echo "$as_me:$LINENO: result: host tool" >&5
9084echo "${ECHO_T}host tool" >&6
be01d343
PB
9085 else
9086 # We need a cross tool
c6b750e1
DJ
9087 echo "$as_me:$LINENO: result: pre-installed" >&5
9088echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9089 fi
9090fi
4b900473 9091
c6b750e1
DJ
9092echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
9093echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 9094if test "x${build}" != "x${host}" ; then
2429c060
PB
9095 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
9096 # We already found the complete path
c6b750e1
DJ
9097 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
9098echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
2429c060
PB
9099 else
9100 # Canadian cross, just use what we found
c6b750e1
DJ
9101 echo "$as_me:$LINENO: result: pre-installed" >&5
9102echo "${ECHO_T}pre-installed" >&6
2429c060 9103 fi
be01d343
PB
9104else
9105 ok=yes
9106 case " ${configdirs} " in
9107 *" binutils "*) ;;
9108 *) ok=no ;;
9109 esac
c6b750e1 9110
be01d343
PB
9111 if test $ok = yes; then
9112 # An in-tree tool is available and we can use it
9113 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
9114 echo "$as_me:$LINENO: result: just compiled" >&5
9115echo "${ECHO_T}just compiled" >&6
2429c060
PB
9116 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
9117 # We already found the complete path
c6b750e1
DJ
9118 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
9119echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
be01d343
PB
9120 elif test "x$target" = "x$host"; then
9121 # We can use an host tool
9122 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
9123 echo "$as_me:$LINENO: result: host tool" >&5
9124echo "${ECHO_T}host tool" >&6
be01d343
PB
9125 else
9126 # We need a cross tool
c6b750e1
DJ
9127 echo "$as_me:$LINENO: result: pre-installed" >&5
9128echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9129 fi
9130fi
4b900473 9131
c6b750e1
DJ
9132echo "$as_me:$LINENO: checking where to find the target gcc" >&5
9133echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 9134if test "x${build}" != "x${host}" ; then
2429c060
PB
9135 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
9136 # We already found the complete path
c6b750e1
DJ
9137 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
9138echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
2429c060
PB
9139 else
9140 # Canadian cross, just use what we found
c6b750e1
DJ
9141 echo "$as_me:$LINENO: result: pre-installed" >&5
9142echo "${ECHO_T}pre-installed" >&6
2429c060 9143 fi
be01d343
PB
9144else
9145 ok=yes
9146 case " ${configdirs} " in
9147 *" gcc "*) ;;
9148 *) ok=no ;;
9149 esac
c6b750e1 9150
be01d343
PB
9151 if test $ok = yes; then
9152 # An in-tree tool is available and we can use it
9153 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
9154 echo "$as_me:$LINENO: result: just compiled" >&5
9155echo "${ECHO_T}just compiled" >&6
2429c060
PB
9156 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
9157 # We already found the complete path
c6b750e1
DJ
9158 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
9159echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
be01d343
PB
9160 elif test "x$target" = "x$host"; then
9161 # We can use an host tool
9162 GCC_FOR_TARGET='$()'
c6b750e1
DJ
9163 echo "$as_me:$LINENO: result: host tool" >&5
9164echo "${ECHO_T}host tool" >&6
be01d343
PB
9165 else
9166 # We need a cross tool
c6b750e1
DJ
9167 echo "$as_me:$LINENO: result: pre-installed" >&5
9168echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9169 fi
9170fi
4b900473 9171
c6b750e1
DJ
9172echo "$as_me:$LINENO: checking where to find the target gcj" >&5
9173echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 9174if test "x${build}" != "x${host}" ; then
2429c060
PB
9175 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
9176 # We already found the complete path
c6b750e1
DJ
9177 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
9178echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
2429c060
PB
9179 else
9180 # Canadian cross, just use what we found
c6b750e1
DJ
9181 echo "$as_me:$LINENO: result: pre-installed" >&5
9182echo "${ECHO_T}pre-installed" >&6
2429c060 9183 fi
be01d343
PB
9184else
9185 ok=yes
9186 case " ${configdirs} " in
9187 *" gcc "*) ;;
9188 *) ok=no ;;
9189 esac
9190 case ,${enable_languages}, in
9191 *,java,*) ;;
9192 *) ok=no ;;
9193 esac
9194 if test $ok = yes; then
9195 # An in-tree tool is available and we can use it
9196 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
9197 echo "$as_me:$LINENO: result: just compiled" >&5
9198echo "${ECHO_T}just compiled" >&6
2429c060
PB
9199 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
9200 # We already found the complete path
c6b750e1
DJ
9201 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
9202echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
be01d343
PB
9203 elif test "x$target" = "x$host"; then
9204 # We can use an host tool
9205 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
9206 echo "$as_me:$LINENO: result: host tool" >&5
9207echo "${ECHO_T}host tool" >&6
be01d343
PB
9208 else
9209 # We need a cross tool
c6b750e1
DJ
9210 echo "$as_me:$LINENO: result: pre-installed" >&5
9211echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9212 fi
9213fi
4b900473 9214
c6b750e1
DJ
9215echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
9216echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 9217if test "x${build}" != "x${host}" ; then
2429c060
PB
9218 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9219 # We already found the complete path
c6b750e1
DJ
9220 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9221echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
2429c060
PB
9222 else
9223 # Canadian cross, just use what we found
c6b750e1
DJ
9224 echo "$as_me:$LINENO: result: pre-installed" >&5
9225echo "${ECHO_T}pre-installed" >&6
2429c060 9226 fi
be01d343
PB
9227else
9228 ok=yes
9229 case " ${configdirs} " in
9230 *" gcc "*) ;;
9231 *) ok=no ;;
9232 esac
9233 case ,${enable_languages}, in
9234 *,fortran,*) ;;
9235 *) ok=no ;;
9236 esac
9237 if test $ok = yes; then
9238 # An in-tree tool is available and we can use it
9239 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
9240 echo "$as_me:$LINENO: result: just compiled" >&5
9241echo "${ECHO_T}just compiled" >&6
2429c060
PB
9242 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9243 # We already found the complete path
c6b750e1
DJ
9244 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9245echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
be01d343
PB
9246 elif test "x$target" = "x$host"; then
9247 # We can use an host tool
9248 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
9249 echo "$as_me:$LINENO: result: host tool" >&5
9250echo "${ECHO_T}host tool" >&6
be01d343
PB
9251 else
9252 # We need a cross tool
c6b750e1
DJ
9253 echo "$as_me:$LINENO: result: pre-installed" >&5
9254echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9255 fi
9256fi
4b900473 9257
c6b750e1
DJ
9258echo "$as_me:$LINENO: checking where to find the target ld" >&5
9259echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 9260if test "x${build}" != "x${host}" ; then
2429c060
PB
9261 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9262 # We already found the complete path
c6b750e1
DJ
9263 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9264echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
2429c060
PB
9265 else
9266 # Canadian cross, just use what we found
c6b750e1
DJ
9267 echo "$as_me:$LINENO: result: pre-installed" >&5
9268echo "${ECHO_T}pre-installed" >&6
2429c060 9269 fi
be01d343
PB
9270else
9271 ok=yes
9272 case " ${configdirs} " in
9273 *" ld "*) ;;
9274 *) ok=no ;;
9275 esac
c6b750e1 9276
be01d343
PB
9277 if test $ok = yes; then
9278 # An in-tree tool is available and we can use it
9279 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
9280 echo "$as_me:$LINENO: result: just compiled" >&5
9281echo "${ECHO_T}just compiled" >&6
2429c060
PB
9282 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9283 # We already found the complete path
c6b750e1
DJ
9284 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9285echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
be01d343
PB
9286 elif test "x$target" = "x$host"; then
9287 # We can use an host tool
9288 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
9289 echo "$as_me:$LINENO: result: host tool" >&5
9290echo "${ECHO_T}host tool" >&6
be01d343
PB
9291 else
9292 # We need a cross tool
c6b750e1
DJ
9293 echo "$as_me:$LINENO: result: pre-installed" >&5
9294echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9295 fi
9296fi
4b900473 9297
c6b750e1
DJ
9298echo "$as_me:$LINENO: checking where to find the target lipo" >&5
9299echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 9300if test "x${build}" != "x${host}" ; then
2429c060
PB
9301 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9302 # We already found the complete path
c6b750e1
DJ
9303 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9304echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
2429c060
PB
9305 else
9306 # Canadian cross, just use what we found
c6b750e1
DJ
9307 echo "$as_me:$LINENO: result: pre-installed" >&5
9308echo "${ECHO_T}pre-installed" >&6
2429c060 9309 fi
be01d343 9310else
2429c060
PB
9311 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9312 # We already found the complete path
c6b750e1
DJ
9313 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9314echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
2429c060 9315 elif test "x$target" = "x$host"; then
be01d343
PB
9316 # We can use an host tool
9317 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
9318 echo "$as_me:$LINENO: result: host tool" >&5
9319echo "${ECHO_T}host tool" >&6
be01d343
PB
9320 else
9321 # We need a cross tool
c6b750e1
DJ
9322 echo "$as_me:$LINENO: result: pre-installed" >&5
9323echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9324 fi
9325fi
4b900473 9326
c6b750e1
DJ
9327echo "$as_me:$LINENO: checking where to find the target nm" >&5
9328echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 9329if test "x${build}" != "x${host}" ; then
2429c060
PB
9330 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9331 # We already found the complete path
c6b750e1
DJ
9332 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9333echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
2429c060
PB
9334 else
9335 # Canadian cross, just use what we found
c6b750e1
DJ
9336 echo "$as_me:$LINENO: result: pre-installed" >&5
9337echo "${ECHO_T}pre-installed" >&6
2429c060 9338 fi
be01d343
PB
9339else
9340 ok=yes
9341 case " ${configdirs} " in
9342 *" binutils "*) ;;
9343 *) ok=no ;;
9344 esac
c6b750e1 9345
be01d343
PB
9346 if test $ok = yes; then
9347 # An in-tree tool is available and we can use it
9348 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
9349 echo "$as_me:$LINENO: result: just compiled" >&5
9350echo "${ECHO_T}just compiled" >&6
2429c060
PB
9351 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9352 # We already found the complete path
c6b750e1
DJ
9353 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9354echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
be01d343
PB
9355 elif test "x$target" = "x$host"; then
9356 # We can use an host tool
9357 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
9358 echo "$as_me:$LINENO: result: host tool" >&5
9359echo "${ECHO_T}host tool" >&6
be01d343
PB
9360 else
9361 # We need a cross tool
c6b750e1
DJ
9362 echo "$as_me:$LINENO: result: pre-installed" >&5
9363echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9364 fi
9365fi
4b900473 9366
c6b750e1
DJ
9367echo "$as_me:$LINENO: checking where to find the target objdump" >&5
9368echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 9369if test "x${build}" != "x${host}" ; then
2429c060
PB
9370 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9371 # We already found the complete path
c6b750e1
DJ
9372 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9373echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
2429c060
PB
9374 else
9375 # Canadian cross, just use what we found
c6b750e1
DJ
9376 echo "$as_me:$LINENO: result: pre-installed" >&5
9377echo "${ECHO_T}pre-installed" >&6
2429c060 9378 fi
be01d343
PB
9379else
9380 ok=yes
9381 case " ${configdirs} " in
9382 *" binutils "*) ;;
9383 *) ok=no ;;
9384 esac
c6b750e1 9385
be01d343
PB
9386 if test $ok = yes; then
9387 # An in-tree tool is available and we can use it
9388 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
9389 echo "$as_me:$LINENO: result: just compiled" >&5
9390echo "${ECHO_T}just compiled" >&6
2429c060
PB
9391 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9392 # We already found the complete path
c6b750e1
DJ
9393 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9394echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
be01d343
PB
9395 elif test "x$target" = "x$host"; then
9396 # We can use an host tool
9397 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
9398 echo "$as_me:$LINENO: result: host tool" >&5
9399echo "${ECHO_T}host tool" >&6
be01d343
PB
9400 else
9401 # We need a cross tool
c6b750e1
DJ
9402 echo "$as_me:$LINENO: result: pre-installed" >&5
9403echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9404 fi
9405fi
4b900473 9406
c6b750e1
DJ
9407echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
9408echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 9409if test "x${build}" != "x${host}" ; then
2429c060
PB
9410 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9411 # We already found the complete path
c6b750e1
DJ
9412 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9413echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
2429c060
PB
9414 else
9415 # Canadian cross, just use what we found
c6b750e1
DJ
9416 echo "$as_me:$LINENO: result: pre-installed" >&5
9417echo "${ECHO_T}pre-installed" >&6
2429c060 9418 fi
be01d343
PB
9419else
9420 ok=yes
9421 case " ${configdirs} " in
9422 *" binutils "*) ;;
9423 *) ok=no ;;
9424 esac
c6b750e1 9425
be01d343
PB
9426 if test $ok = yes; then
9427 # An in-tree tool is available and we can use it
9428 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
9429 echo "$as_me:$LINENO: result: just compiled" >&5
9430echo "${ECHO_T}just compiled" >&6
2429c060
PB
9431 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9432 # We already found the complete path
c6b750e1
DJ
9433 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9434echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
be01d343
PB
9435 elif test "x$target" = "x$host"; then
9436 # We can use an host tool
9437 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
9438 echo "$as_me:$LINENO: result: host tool" >&5
9439echo "${ECHO_T}host tool" >&6
be01d343
PB
9440 else
9441 # We need a cross tool
c6b750e1
DJ
9442 echo "$as_me:$LINENO: result: pre-installed" >&5
9443echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9444 fi
9445fi
4b900473 9446
c6b750e1
DJ
9447echo "$as_me:$LINENO: checking where to find the target strip" >&5
9448echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 9449if test "x${build}" != "x${host}" ; then
2429c060
PB
9450 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9451 # We already found the complete path
c6b750e1
DJ
9452 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9453echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
2429c060
PB
9454 else
9455 # Canadian cross, just use what we found
c6b750e1
DJ
9456 echo "$as_me:$LINENO: result: pre-installed" >&5
9457echo "${ECHO_T}pre-installed" >&6
2429c060 9458 fi
be01d343
PB
9459else
9460 ok=yes
9461 case " ${configdirs} " in
9462 *" binutils "*) ;;
9463 *) ok=no ;;
9464 esac
c6b750e1 9465
be01d343
PB
9466 if test $ok = yes; then
9467 # An in-tree tool is available and we can use it
9468 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
9469 echo "$as_me:$LINENO: result: just compiled" >&5
9470echo "${ECHO_T}just compiled" >&6
2429c060
PB
9471 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9472 # We already found the complete path
c6b750e1
DJ
9473 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9474echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
be01d343
PB
9475 elif test "x$target" = "x$host"; then
9476 # We can use an host tool
9477 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
9478 echo "$as_me:$LINENO: result: host tool" >&5
9479echo "${ECHO_T}host tool" >&6
be01d343
PB
9480 else
9481 # We need a cross tool
c6b750e1
DJ
9482 echo "$as_me:$LINENO: result: pre-installed" >&5
9483echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9484 fi
9485fi
4b900473 9486
c6b750e1
DJ
9487echo "$as_me:$LINENO: checking where to find the target windres" >&5
9488echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 9489if test "x${build}" != "x${host}" ; then
2429c060
PB
9490 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9491 # We already found the complete path
c6b750e1
DJ
9492 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9493echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
2429c060
PB
9494 else
9495 # Canadian cross, just use what we found
c6b750e1
DJ
9496 echo "$as_me:$LINENO: result: pre-installed" >&5
9497echo "${ECHO_T}pre-installed" >&6
2429c060 9498 fi
be01d343
PB
9499else
9500 ok=yes
9501 case " ${configdirs} " in
9502 *" binutils "*) ;;
9503 *) ok=no ;;
9504 esac
c6b750e1 9505
be01d343
PB
9506 if test $ok = yes; then
9507 # An in-tree tool is available and we can use it
9508 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
9509 echo "$as_me:$LINENO: result: just compiled" >&5
9510echo "${ECHO_T}just compiled" >&6
2429c060
PB
9511 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9512 # We already found the complete path
c6b750e1
DJ
9513 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9514echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
be01d343
PB
9515 elif test "x$target" = "x$host"; then
9516 # We can use an host tool
9517 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
9518 echo "$as_me:$LINENO: result: host tool" >&5
9519echo "${ECHO_T}host tool" >&6
be01d343
PB
9520 else
9521 # We need a cross tool
c6b750e1
DJ
9522 echo "$as_me:$LINENO: result: pre-installed" >&5
9523echo "${ECHO_T}pre-installed" >&6
be01d343 9524 fi
a0da8069 9525fi
54752a6b
NN
9526
9527
9528
be01d343 9529
4b900473 9530
a0da8069
NN
9531# Certain tools may need extra flags.
9532AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
9533RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
9534NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
9535
be01d343
PB
9536# When building target libraries, except in a Canadian cross, we use
9537# the same toolchain as the compiler we just built.
9538COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
9539COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
9540COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
9541if test $host = $build; then
9542 case " $configdirs " in
9543 *" gcc "*)
9544 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
9545 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
9546 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
9547 ;;
9548 esac
9549fi
9550
9551
9552
9553
9554
c6b750e1
DJ
9555echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9556echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
9557# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9558if test "${enable_maintainer_mode+set}" = set; then
9559 enableval="$enable_maintainer_mode"
9560 USE_MAINTAINER_MODE=$enableval
9561else
9562 USE_MAINTAINER_MODE=no
c6b750e1
DJ
9563fi;
9564echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9565echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
9566
9567
9568if test "$USE_MAINTAINER_MODE" = yes; then
9569 MAINTAINER_MODE_TRUE=
9570 MAINTAINER_MODE_FALSE='#'
9571else
9572 MAINTAINER_MODE_TRUE='#'
9573 MAINTAINER_MODE_FALSE=
c6b750e1 9574fi
3d5e36ae
AO
9575MAINT=$MAINTAINER_MODE_TRUE
9576
1d39f329
NN
9577# ---------------------
9578# GCC bootstrap support
9579# ---------------------
9580
9581# Stage specific cflags for build.
9582stage1_cflags="-g"
9583case $build in
9584 vax-*-*)
9585 case ${GCC} in
9586 yes) stage1_cflags="-g -Wa,-J" ;;
9587 *) stage1_cflags="-g -J" ;;
9588 esac ;;
1d39f329
NN
9589esac
9590
1d89b610
PB
9591# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
9592if test "$GCC" = yes; then
9593 saved_CFLAGS="$CFLAGS"
9594
9595 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
9596 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
9597 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
9598echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
9599 cat >conftest.$ac_ext <<_ACEOF
9600/* confdefs.h. */
9601_ACEOF
9602cat confdefs.h >>conftest.$ac_ext
9603cat >>conftest.$ac_ext <<_ACEOF
9604/* end confdefs.h. */
9605
9606int
9607main ()
9608{
9609
9610 ;
9611 return 0;
9612}
9613_ACEOF
9614rm -f conftest.$ac_objext
9615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9616 (eval $ac_compile) 2>conftest.er1
9617 ac_status=$?
9618 grep -v '^ *+' conftest.er1 >conftest.err
9619 rm -f conftest.er1
9620 cat conftest.err >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } &&
9623 { ac_try='test -z "$ac_c_werror_flag"
9624 || test ! -s conftest.err'
9625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 (eval $ac_try) 2>&5
9627 ac_status=$?
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); }; } &&
9630 { ac_try='test -s conftest.$ac_objext'
9631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9632 (eval $ac_try) 2>&5
9633 ac_status=$?
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); }; }; then
9636 echo "$as_me:$LINENO: result: yes" >&5
9637echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
9638else
9639 echo "$as_me: failed program was:" >&5
9640sed 's/^/| /' conftest.$ac_ext >&5
9641
9642echo "$as_me:$LINENO: result: no" >&5
9643echo "${ECHO_T}no" >&6
9644fi
9645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
9646
9647 CFLAGS="$saved_CFLAGS"
9648fi
9649
9650
1d39f329 9651
8a0d8a5c
PB
9652# Enable --enable-checking in stage1 of the compiler.
9653# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
9654if test "${enable_stage1_checking+set}" = set; then
9655 enableval="$enable_stage1_checking"
9656 stage1_checking=--enable-checking=${enable_stage1_checking}
9657else
9658 if test "x$enable_checking" = xno; then
9659 stage1_checking=--enable-checking
9660else
9661 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
9662fi
c6b750e1 9663fi;
8a0d8a5c
PB
9664
9665
1d39f329 9666# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
9667# Check whether --enable-werror or --disable-werror was given.
9668if test "${enable_werror+set}" = set; then
9669 enableval="$enable_werror"
c6b750e1 9670
1d39f329 9671else
a0323144 9672 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 9673 enable_werror=yes
79fcd0ec
PB
9674else
9675 enable_werror=no
9676fi
c6b750e1 9677fi;
1a6f2dc7
NN
9678case ${enable_werror} in
9679 yes) stage2_werror_flag="--enable-werror-always" ;;
9680 *) stage2_werror_flag="" ;;
1d39f329
NN
9681esac
9682
9683
108a6f8e 9684# Flags needed to enable html installing and building
c6b750e1 9685
108a6f8e
CD
9686# Check whether --with-datarootdir or --without-datarootdir was given.
9687if test "${with_datarootdir+set}" = set; then
9688 withval="$with_datarootdir"
9689 datarootdir="\${prefix}/${withval}"
9690else
9691 datarootdir="\${prefix}/share"
c6b750e1 9692fi;
108a6f8e
CD
9693
9694
9695# Check whether --with-docdir or --without-docdir was given.
9696if test "${with_docdir+set}" = set; then
9697 withval="$with_docdir"
9698 docdir="\${prefix}/${withval}"
9699else
9700 docdir="\${datarootdir}/doc"
c6b750e1 9701fi;
108a6f8e
CD
9702
9703
9704# Check whether --with-htmldir or --without-htmldir was given.
9705if test "${with_htmldir+set}" = set; then
9706 withval="$with_htmldir"
9707 htmldir="\${prefix}/${withval}"
9708else
9709 htmldir="\${docdir}"
c6b750e1 9710fi;
108a6f8e
CD
9711
9712
9713
9714
9715
c6b750e1
DJ
9716 ac_config_files="$ac_config_files Makefile"
9717cat >confcache <<\_ACEOF
a0da8069
NN
9718# This file is a shell script that caches the results of configure
9719# tests run on this system so they can be shared between configure
c6b750e1
DJ
9720# scripts and configure runs, see configure's option --config-cache.
9721# It is not useful on other systems. If it contains results you don't
9722# want to keep, you may remove or edit it.
a0da8069 9723#
c6b750e1
DJ
9724# config.status only pays attention to the cache file if you give it
9725# the --recheck option to rerun configure.
a0da8069 9726#
c6b750e1
DJ
9727# `ac_cv_env_foo' variables (set or unset) will be overridden when
9728# loading this file, other *unset* `ac_cv_foo' will be assigned the
9729# following values.
9730
9731_ACEOF
9732
a0da8069
NN
9733# The following way of writing the cache mishandles newlines in values,
9734# but we know of no workaround that is simple, portable, and efficient.
9735# So, don't put newlines in cache variables' values.
9736# Ultrix sh set writes to stderr and can't be redirected directly,
9737# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
9738{
9739 (set) 2>&1 |
9740 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9741 *ac_space=\ *)
9742 # `set' does not quote correctly, so add quotes (double-quote
9743 # substitution turns \\\\ into \\, and sed turns \\ into \).
9744 sed -n \
9745 "s/'/'\\\\''/g;
9746 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9747 ;;
9748 *)
9749 # `set' quotes correctly as required by POSIX, so do not add quotes.
9750 sed -n \
9751 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9752 ;;
9753 esac;
9754} |
9755 sed '
9756 t clear
9757 : clear
9758 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9759 t end
9760 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9761 : end' >>confcache
9762if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 9763 if test -w $cache_file; then
c6b750e1
DJ
9764 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9765 cat confcache >$cache_file
a0da8069
NN
9766 else
9767 echo "not updating unwritable cache $cache_file"
9768 fi
852e5f18 9769fi
a0da8069 9770rm -f confcache
852e5f18 9771
a0da8069
NN
9772test "x$prefix" = xNONE && prefix=$ac_default_prefix
9773# Let make expand exec_prefix.
9774test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 9775
c6b750e1
DJ
9776# VPATH may cause trouble with some makes, so we remove $(srcdir),
9777# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9778# trailing colons and then remove the whole line if VPATH becomes empty
9779# (actually we leave an empty line to preserve line numbers).
a0da8069 9780if test "x$srcdir" = x.; then
c6b750e1
DJ
9781 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9782s/:*\$(srcdir):*/:/;
9783s/:*\${srcdir}:*/:/;
9784s/:*@srcdir@:*/:/;
9785s/^\([^=]*=[ ]*\):*/\1/;
9786s/:*$//;
9787s/^[^=]*=[ ]*$//;
9788}'
a0da8069 9789fi
252b5132 9790
a0da8069
NN
9791# Transform confdefs.h into DEFS.
9792# Protect against shell expansion while executing Makefile rules.
9793# Protect against Makefile macro expansion.
c6b750e1
DJ
9794#
9795# If the first sed substitution is executed (which looks for macros that
9796# take arguments), then we branch to the quote section. Otherwise,
9797# look for a macro that doesn't take arguments.
9798cat >confdef2opt.sed <<\_ACEOF
9799t clear
9800: clear
9801s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
9802t quote
9803s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
9804t quote
9805d
9806: quote
9807s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
9808s,\[,\\&,g
9809s,\],\\&,g
9810s,\$,$$,g
9811p
9812_ACEOF
9813# We use echo to avoid assuming a particular line-breaking character.
9814# The extra dot is to prevent the shell from consuming trailing
9815# line-breaks from the sub-command output. A line-break within
9816# single-quotes doesn't work because, if this script is created in a
9817# platform that uses two characters for line-breaks (e.g., DOS), tr
9818# would break.
9819ac_LF_and_DOT=`echo; echo .`
9820DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
9821rm -f confdef2opt.sed
9822
9823
9824ac_libobjs=
9825ac_ltlibobjs=
9826for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9827 # 1. Remove the extension, and $U if already installed.
9828 ac_i=`echo "$ac_i" |
9829 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9830 # 2. Add them.
9831 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9832 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9833done
9834LIBOBJS=$ac_libobjs
852e5f18 9835
c6b750e1 9836LTLIBOBJS=$ac_ltlibobjs
376a0e54 9837
cac3d6c4 9838
c6b750e1
DJ
9839
9840: ${CONFIG_STATUS=./config.status}
9841ac_clean_files_save=$ac_clean_files
9842ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9843{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9844echo "$as_me: creating $CONFIG_STATUS" >&6;}
9845cat >$CONFIG_STATUS <<_ACEOF
9846#! $SHELL
9847# Generated by $as_me.
a0da8069 9848# Run this file to recreate the current configuration.
a0da8069 9849# Compiler output produced by configure, useful for debugging
c6b750e1 9850# configure, is in config.log if it exists.
376a0e54 9851
c6b750e1
DJ
9852debug=false
9853ac_cs_recheck=false
9854ac_cs_silent=false
9855SHELL=\${CONFIG_SHELL-$SHELL}
9856_ACEOF
9857
9858cat >>$CONFIG_STATUS <<\_ACEOF
9859## --------------------- ##
9860## M4sh Initialization. ##
9861## --------------------- ##
9862
9863# Be Bourne compatible
9864if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9865 emulate sh
9866 NULLCMD=:
9867 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9868 # is contrary to our usage. Disable this feature.
9869 alias -g '${1+"$@"}'='"$@"'
9870elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9871 set -o posix
9872fi
9873DUALCASE=1; export DUALCASE # for MKS sh
9874
9875# Support unset when possible.
9876if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9877 as_unset=unset
9878else
9879 as_unset=false
9880fi
9881
9882
9883# Work around bugs in pre-3.0 UWIN ksh.
9884$as_unset ENV MAIL MAILPATH
9885PS1='$ '
9886PS2='> '
9887PS4='+ '
9888
9889# NLS nuisances.
9890for as_var in \
9891 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9892 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9893 LC_TELEPHONE LC_TIME
9894do
9895 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9896 eval $as_var=C; export $as_var
9897 else
9898 $as_unset $as_var
9899 fi
9900done
9901
9902# Required to use basename.
9903if expr a : '\(a\)' >/dev/null 2>&1; then
9904 as_expr=expr
9905else
9906 as_expr=false
9907fi
9908
9909if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9910 as_basename=basename
9911else
9912 as_basename=false
9913fi
9914
9915
9916# Name of the executable.
9917as_me=`$as_basename "$0" ||
9918$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9919 X"$0" : 'X\(//\)$' \| \
9920 X"$0" : 'X\(/\)$' \| \
9921 . : '\(.\)' 2>/dev/null ||
9922echo X/"$0" |
9923 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9924 /^X\/\(\/\/\)$/{ s//\1/; q; }
9925 /^X\/\(\/\).*/{ s//\1/; q; }
9926 s/.*/./; q'`
9927
9928
9929# PATH needs CR, and LINENO needs CR and PATH.
9930# Avoid depending upon Character Ranges.
9931as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9932as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9933as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9934as_cr_digits='0123456789'
9935as_cr_alnum=$as_cr_Letters$as_cr_digits
9936
9937# The user is always right.
9938if test "${PATH_SEPARATOR+set}" != set; then
9939 echo "#! /bin/sh" >conf$$.sh
9940 echo "exit 0" >>conf$$.sh
9941 chmod +x conf$$.sh
9942 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9943 PATH_SEPARATOR=';'
9944 else
9945 PATH_SEPARATOR=:
9946 fi
9947 rm -f conf$$.sh
9948fi
9949
9950
9951 as_lineno_1=$LINENO
9952 as_lineno_2=$LINENO
9953 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9954 test "x$as_lineno_1" != "x$as_lineno_2" &&
9955 test "x$as_lineno_3" = "x$as_lineno_2" || {
9956 # Find who we are. Look in the path if we contain no path at all
9957 # relative or not.
9958 case $0 in
9959 *[\\/]* ) as_myself=$0 ;;
9960 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9961for as_dir in $PATH
9962do
9963 IFS=$as_save_IFS
9964 test -z "$as_dir" && as_dir=.
9965 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9966done
9967
9968 ;;
9969 esac
9970 # We did not find ourselves, most probably we were run as `sh COMMAND'
9971 # in which case we are not to be found in the path.
9972 if test "x$as_myself" = x; then
9973 as_myself=$0
9974 fi
9975 if test ! -f "$as_myself"; then
9976 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9977echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9978 { (exit 1); exit 1; }; }
9979 fi
9980 case $CONFIG_SHELL in
9981 '')
9982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9984do
9985 IFS=$as_save_IFS
9986 test -z "$as_dir" && as_dir=.
9987 for as_base in sh bash ksh sh5; do
9988 case $as_dir in
9989 /*)
9990 if ("$as_dir/$as_base" -c '
9991 as_lineno_1=$LINENO
9992 as_lineno_2=$LINENO
9993 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9994 test "x$as_lineno_1" != "x$as_lineno_2" &&
9995 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9996 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9997 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9998 CONFIG_SHELL=$as_dir/$as_base
9999 export CONFIG_SHELL
10000 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10001 fi;;
10002 esac
10003 done
10004done
10005;;
10006 esac
10007
10008 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10009 # uniformly replaced by the line number. The first 'sed' inserts a
10010 # line-number line before each line; the second 'sed' does the real
10011 # work. The second script uses 'N' to pair each line-number line
10012 # with the numbered line, and appends trailing '-' during
10013 # substitution so that $LINENO is not a special case at line end.
10014 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10015 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10016 sed '=' <$as_myself |
10017 sed '
10018 N
10019 s,$,-,
10020 : loop
10021 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10022 t loop
10023 s,-$,,
10024 s,^['$as_cr_digits']*\n,,
10025 ' >$as_me.lineno &&
10026 chmod +x $as_me.lineno ||
10027 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10028echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10029 { (exit 1); exit 1; }; }
10030
10031 # Don't try to exec as it changes $[0], causing all sort of problems
10032 # (the dirname of $[0] is not the place where we might find the
10033 # original and so on. Autoconf is especially sensible to this).
10034 . ./$as_me.lineno
10035 # Exit status is that of the last command.
10036 exit
10037}
10038
10039
10040case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10041 *c*,-n*) ECHO_N= ECHO_C='
10042' ECHO_T=' ' ;;
10043 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10044 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10045esac
10046
10047if expr a : '\(a\)' >/dev/null 2>&1; then
10048 as_expr=expr
10049else
10050 as_expr=false
10051fi
10052
10053rm -f conf$$ conf$$.exe conf$$.file
10054echo >conf$$.file
10055if ln -s conf$$.file conf$$ 2>/dev/null; then
10056 # We could just check for DJGPP; but this test a) works b) is more generic
10057 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10058 if test -f conf$$.exe; then
10059 # Don't use ln at all; we don't have any links
10060 as_ln_s='cp -p'
10061 else
10062 as_ln_s='ln -s'
10063 fi
10064elif ln conf$$.file conf$$ 2>/dev/null; then
10065 as_ln_s=ln
10066else
10067 as_ln_s='cp -p'
10068fi
10069rm -f conf$$ conf$$.exe conf$$.file
10070
10071if mkdir -p . 2>/dev/null; then
10072 as_mkdir_p=:
10073else
10074 test -d ./-p && rmdir ./-p
10075 as_mkdir_p=false
10076fi
10077
10078as_executable_p="test -f"
10079
10080# Sed expression to map a string onto a valid CPP name.
10081as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10082
10083# Sed expression to map a string onto a valid variable name.
10084as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10085
10086
10087# IFS
10088# We need space, tab and new line, in precisely that order.
10089as_nl='
10090'
10091IFS=" $as_nl"
10092
10093# CDPATH.
10094$as_unset CDPATH
10095
10096exec 6>&1
10097
10098# Open the log real soon, to keep \$[0] and so on meaningful, and to
10099# report actual input values of CONFIG_FILES etc. instead of their
10100# values after options handling. Logging --version etc. is OK.
10101exec 5>>config.log
10102{
10103 echo
10104 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10105## Running $as_me. ##
10106_ASBOX
10107} >&5
10108cat >&5 <<_CSEOF
10109
10110This file was extended by $as_me, which was
10111generated by GNU Autoconf 2.59. Invocation command line was
10112
10113 CONFIG_FILES = $CONFIG_FILES
10114 CONFIG_HEADERS = $CONFIG_HEADERS
10115 CONFIG_LINKS = $CONFIG_LINKS
10116 CONFIG_COMMANDS = $CONFIG_COMMANDS
10117 $ $0 $@
10118
10119_CSEOF
10120echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10121echo >&5
10122_ACEOF
10123
10124# Files that config.status was made for.
10125if test -n "$ac_config_files"; then
10126 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10127fi
10128
10129if test -n "$ac_config_headers"; then
10130 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10131fi
10132
10133if test -n "$ac_config_links"; then
10134 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10135fi
10136
10137if test -n "$ac_config_commands"; then
10138 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10139fi
10140
10141cat >>$CONFIG_STATUS <<\_ACEOF
10142
10143ac_cs_usage="\
10144\`$as_me' instantiates files from templates according to the
10145current configuration.
10146
10147Usage: $0 [OPTIONS] [FILE]...
10148
10149 -h, --help print this help, then exit
10150 -V, --version print version number, then exit
10151 -q, --quiet do not print progress messages
10152 -d, --debug don't remove temporary files
10153 --recheck update $as_me by reconfiguring in the same conditions
10154 --file=FILE[:TEMPLATE]
10155 instantiate the configuration file FILE
10156
10157Configuration files:
10158$config_files
10159
10160Report bugs to <bug-autoconf@gnu.org>."
10161_ACEOF
10162
10163cat >>$CONFIG_STATUS <<_ACEOF
10164ac_cs_version="\\
10165config.status
10166configured by $0, generated by GNU Autoconf 2.59,
10167 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10168
10169Copyright (C) 2003 Free Software Foundation, Inc.
10170This config.status script is free software; the Free Software Foundation
10171gives unlimited permission to copy, distribute and modify it."
10172srcdir=$srcdir
10173INSTALL="$INSTALL"
10174_ACEOF
10175
10176cat >>$CONFIG_STATUS <<\_ACEOF
10177# If no file are specified by the user, then we need to provide default
10178# value. By we need to know if files were specified by the user.
10179ac_need_defaults=:
10180while test $# != 0
a0da8069 10181do
c6b750e1
DJ
10182 case $1 in
10183 --*=*)
10184 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10185 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10186 ac_shift=:
10187 ;;
10188 -*)
10189 ac_option=$1
10190 ac_optarg=$2
10191 ac_shift=shift
10192 ;;
10193 *) # This is not an option, so the user has probably given explicit
10194 # arguments.
10195 ac_option=$1
10196 ac_need_defaults=false;;
10197 esac
10198
10199 case $ac_option in
10200 # Handling of the options.
10201_ACEOF
10202cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 10203 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
10204 ac_cs_recheck=: ;;
10205 --version | --vers* | -V )
10206 echo "$ac_cs_version"; exit 0 ;;
10207 --he | --h)
10208 # Conflict between --help and --header
10209 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10210Try \`$0 --help' for more information." >&5
10211echo "$as_me: error: ambiguous option: $1
10212Try \`$0 --help' for more information." >&2;}
10213 { (exit 1); exit 1; }; };;
10214 --help | --hel | -h )
10215 echo "$ac_cs_usage"; exit 0 ;;
10216 --debug | --d* | -d )
10217 debug=: ;;
10218 --file | --fil | --fi | --f )
10219 $ac_shift
10220 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10221 ac_need_defaults=false;;
10222 --header | --heade | --head | --hea )
10223 $ac_shift
10224 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10225 ac_need_defaults=false;;
10226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10227 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10228 ac_cs_silent=: ;;
10229
10230 # This is an error.
10231 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10232Try \`$0 --help' for more information." >&5
10233echo "$as_me: error: unrecognized option: $1
10234Try \`$0 --help' for more information." >&2;}
10235 { (exit 1); exit 1; }; } ;;
10236
10237 *) ac_config_targets="$ac_config_targets $1" ;;
10238
376a0e54 10239 esac
c6b750e1 10240 shift
376a0e54
CM
10241done
10242
c6b750e1 10243ac_configure_extra_args=
376a0e54 10244
c6b750e1
DJ
10245if $ac_cs_silent; then
10246 exec 6>/dev/null
10247 ac_configure_extra_args="$ac_configure_extra_args --silent"
10248fi
376a0e54 10249
c6b750e1
DJ
10250_ACEOF
10251cat >>$CONFIG_STATUS <<_ACEOF
10252if \$ac_cs_recheck; then
10253 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10254 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10255fi
10256
10257_ACEOF
10258
10259
10260
10261
10262
10263cat >>$CONFIG_STATUS <<\_ACEOF
10264for ac_config_target in $ac_config_targets
10265do
10266 case "$ac_config_target" in
10267 # Handling of arguments.
10268 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10269 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10270echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10271 { (exit 1); exit 1; }; };;
10272 esac
10273done
10274
10275# If the user did not use the arguments to specify the items to instantiate,
10276# then the envvar interface is used. Set only those that are not.
10277# We use the long form for the default assignment because of an extremely
10278# bizarre bug on SunOS 4.1.3.
10279if $ac_need_defaults; then
10280 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10281fi
10282
10283# Have a temporary directory for convenience. Make it in the build tree
10284# simply because there is no reason to put it here, and in addition,
10285# creating and moving files from /tmp can sometimes cause problems.
10286# Create a temporary directory, and hook for its removal unless debugging.
10287$debug ||
10288{
10289 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10290 trap '{ (exit 1); exit 1; }' 1 2 13 15
10291}
10292
10293# Create a (secure) tmp directory for tmp files.
10294
10295{
10296 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10297 test -n "$tmp" && test -d "$tmp"
10298} ||
10299{
10300 tmp=./confstat$$-$RANDOM
10301 (umask 077 && mkdir $tmp)
10302} ||
10303{
10304 echo "$me: cannot create a temporary directory in ." >&2
10305 { (exit 1); exit 1; }
10306}
10307
10308_ACEOF
10309
10310cat >>$CONFIG_STATUS <<_ACEOF
10311
10312#
10313# CONFIG_FILES section.
10314#
10315
10316# No need to generate the scripts if there are no CONFIG_FILES.
10317# This happens for instance when ./config.status config.h
10318if test -n "\$CONFIG_FILES"; then
10319 # Protect against being on the right side of a sed subst in config.status.
10320 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10321 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10322s,@SHELL@,$SHELL,;t t
10323s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10324s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10325s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10326s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10327s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10328s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10329s,@exec_prefix@,$exec_prefix,;t t
10330s,@prefix@,$prefix,;t t
10331s,@program_transform_name@,$program_transform_name,;t t
10332s,@bindir@,$bindir,;t t
10333s,@sbindir@,$sbindir,;t t
10334s,@libexecdir@,$libexecdir,;t t
10335s,@datadir@,$datadir,;t t
10336s,@sysconfdir@,$sysconfdir,;t t
10337s,@sharedstatedir@,$sharedstatedir,;t t
10338s,@localstatedir@,$localstatedir,;t t
10339s,@libdir@,$libdir,;t t
10340s,@includedir@,$includedir,;t t
10341s,@oldincludedir@,$oldincludedir,;t t
10342s,@infodir@,$infodir,;t t
10343s,@mandir@,$mandir,;t t
10344s,@build_alias@,$build_alias,;t t
10345s,@host_alias@,$host_alias,;t t
10346s,@target_alias@,$target_alias,;t t
10347s,@DEFS@,$DEFS,;t t
10348s,@ECHO_C@,$ECHO_C,;t t
10349s,@ECHO_N@,$ECHO_N,;t t
10350s,@ECHO_T@,$ECHO_T,;t t
10351s,@LIBS@,$LIBS,;t t
10352s,@build@,$build,;t t
10353s,@build_cpu@,$build_cpu,;t t
10354s,@build_vendor@,$build_vendor,;t t
10355s,@build_os@,$build_os,;t t
10356s,@build_noncanonical@,$build_noncanonical,;t t
10357s,@host_noncanonical@,$host_noncanonical,;t t
10358s,@target_noncanonical@,$target_noncanonical,;t t
10359s,@host@,$host,;t t
10360s,@host_cpu@,$host_cpu,;t t
10361s,@host_vendor@,$host_vendor,;t t
10362s,@host_os@,$host_os,;t t
10363s,@target@,$target,;t t
10364s,@target_cpu@,$target_cpu,;t t
10365s,@target_vendor@,$target_vendor,;t t
10366s,@target_os@,$target_os,;t t
10367s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10368s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10369s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10370s,@LN@,$LN,;t t
10371s,@LN_S@,$LN_S,;t t
10372s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
10373s,@build_libsubdir@,$build_libsubdir,;t t
10374s,@build_subdir@,$build_subdir,;t t
10375s,@host_subdir@,$host_subdir,;t t
10376s,@target_subdir@,$target_subdir,;t t
10377s,@CC@,$CC,;t t
10378s,@CFLAGS@,$CFLAGS,;t t
10379s,@LDFLAGS@,$LDFLAGS,;t t
10380s,@CPPFLAGS@,$CPPFLAGS,;t t
10381s,@ac_ct_CC@,$ac_ct_CC,;t t
10382s,@EXEEXT@,$EXEEXT,;t t
10383s,@OBJEXT@,$OBJEXT,;t t
10384s,@GNATBIND@,$GNATBIND,;t t
10385s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
10386s,@do_compare@,$do_compare,;t t
10387s,@gmplibs@,$gmplibs,;t t
10388s,@gmpinc@,$gmpinc,;t t
10389s,@stage1_languages@,$stage1_languages,;t t
10390s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
10391s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
10392s,@tooldir@,$tooldir,;t t
10393s,@build_tooldir@,$build_tooldir,;t t
10394s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
10395s,@GDB_TK@,$GDB_TK,;t t
10396s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
10397s,@build_configargs@,$build_configargs,;t t
10398s,@build_configdirs@,$build_configdirs,;t t
10399s,@host_configargs@,$host_configargs,;t t
10400s,@configdirs@,$configdirs,;t t
10401s,@target_configargs@,$target_configargs,;t t
10402s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
10403s,@config_shell@,$config_shell,;t t
10404s,@YACC@,$YACC,;t t
10405s,@BISON@,$BISON,;t t
10406s,@M4@,$M4,;t t
10407s,@LEX@,$LEX,;t t
10408s,@FLEX@,$FLEX,;t t
10409s,@MAKEINFO@,$MAKEINFO,;t t
10410s,@EXPECT@,$EXPECT,;t t
10411s,@RUNTEST@,$RUNTEST,;t t
10412s,@AR@,$AR,;t t
10413s,@AS@,$AS,;t t
10414s,@DLLTOOL@,$DLLTOOL,;t t
10415s,@LD@,$LD,;t t
10416s,@LIPO@,$LIPO,;t t
10417s,@NM@,$NM,;t t
10418s,@RANLIB@,$RANLIB,;t t
10419s,@STRIP@,$STRIP,;t t
10420s,@WINDRES@,$WINDRES,;t t
10421s,@OBJCOPY@,$OBJCOPY,;t t
10422s,@OBJDUMP@,$OBJDUMP,;t t
10423s,@CXX@,$CXX,;t t
10424s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
10425s,@CXXFLAGS@,$CXXFLAGS,;t t
10426s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
10427s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
10428s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
10429s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
10430s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
10431s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
10432s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
10433s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
10434s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
10435s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
10436s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
10437s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
10438s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
10439s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
10440s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
10441s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
10442s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
10443s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
10444s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
10445s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
10446s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10447s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10448s,@MAINT@,$MAINT,;t t
10449s,@stage1_cflags@,$stage1_cflags,;t t
10450s,@stage1_checking@,$stage1_checking,;t t
10451s,@stage2_werror_flag@,$stage2_werror_flag,;t t
10452s,@datarootdir@,$datarootdir,;t t
10453s,@docdir@,$docdir,;t t
10454s,@htmldir@,$htmldir,;t t
10455s,@LIBOBJS@,$LIBOBJS,;t t
10456s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 10457/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 10458s,@serialization_dependencies@,,;t t
a0da8069 10459/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 10460s,@host_makefile_frag@,,;t t
a0da8069 10461/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 10462s,@target_makefile_frag@,,;t t
a0da8069 10463/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 10464s,@alphaieee_frag@,,;t t
a0da8069 10465/@ospace_frag@/r $ospace_frag
c6b750e1 10466s,@ospace_frag@,,;t t
a0da8069 10467CEOF
252b5132 10468
c6b750e1
DJ
10469_ACEOF
10470
10471 cat >>$CONFIG_STATUS <<\_ACEOF
10472 # Split the substitutions into bite-sized pieces for seds with
10473 # small command number limits, like on Digital OSF/1 and HP-UX.
10474 ac_max_sed_lines=48
10475 ac_sed_frag=1 # Number of current file.
10476 ac_beg=1 # First line for current file.
10477 ac_end=$ac_max_sed_lines # Line after last line for current file.
10478 ac_more_lines=:
10479 ac_sed_cmds=
10480 while $ac_more_lines; do
10481 if test $ac_beg -gt 1; then
10482 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10483 else
10484 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10485 fi
10486 if test ! -s $tmp/subs.frag; then
10487 ac_more_lines=false
a0da8069 10488 else
c6b750e1
DJ
10489 # The purpose of the label and of the branching condition is to
10490 # speed up the sed processing (if there are no `@' at all, there
10491 # is no need to browse any of the substitutions).
10492 # These are the two extra sed commands mentioned above.
10493 (echo ':t
10494 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10495 if test -z "$ac_sed_cmds"; then
10496 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10497 else
10498 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10499 fi
10500 ac_sed_frag=`expr $ac_sed_frag + 1`
10501 ac_beg=$ac_end
10502 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 10503 fi
c6b750e1
DJ
10504 done
10505 if test -z "$ac_sed_cmds"; then
10506 ac_sed_cmds=cat
852e5f18 10507 fi
c6b750e1 10508fi # test -n "$CONFIG_FILES"
cac3d6c4 10509
c6b750e1
DJ
10510_ACEOF
10511cat >>$CONFIG_STATUS <<\_ACEOF
10512for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 10513 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
10514 case $ac_file in
10515 - | *:- | *:-:* ) # input from stdin
10516 cat >$tmp/stdin
10517 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10518 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10519 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10520 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10521 * ) ac_file_in=$ac_file.in ;;
a0da8069 10522 esac
252b5132 10523
c6b750e1
DJ
10524 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10525 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10526$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10527 X"$ac_file" : 'X\(//\)[^/]' \| \
10528 X"$ac_file" : 'X\(//\)$' \| \
10529 X"$ac_file" : 'X\(/\)' \| \
10530 . : '\(.\)' 2>/dev/null ||
10531echo X"$ac_file" |
10532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10533 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10534 /^X\(\/\/\)$/{ s//\1/; q; }
10535 /^X\(\/\).*/{ s//\1/; q; }
10536 s/.*/./; q'`
10537 { if $as_mkdir_p; then
10538 mkdir -p "$ac_dir"
cac3d6c4 10539 else
c6b750e1
DJ
10540 as_dir="$ac_dir"
10541 as_dirs=
10542 while test ! -d "$as_dir"; do
10543 as_dirs="$as_dir $as_dirs"
10544 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10545$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10546 X"$as_dir" : 'X\(//\)[^/]' \| \
10547 X"$as_dir" : 'X\(//\)$' \| \
10548 X"$as_dir" : 'X\(/\)' \| \
10549 . : '\(.\)' 2>/dev/null ||
10550echo X"$as_dir" |
10551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10552 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10553 /^X\(\/\/\)$/{ s//\1/; q; }
10554 /^X\(\/\).*/{ s//\1/; q; }
10555 s/.*/./; q'`
10556 done
10557 test ! -n "$as_dirs" || mkdir $as_dirs
10558 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10559echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10560 { (exit 1); exit 1; }; }; }
10561
10562 ac_builddir=.
252b5132 10563
c6b750e1
DJ
10564if test "$ac_dir" != .; then
10565 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10566 # A "../" for each directory in $ac_dir_suffix.
10567 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10568else
10569 ac_dir_suffix= ac_top_builddir=
10570fi
10571
10572case $srcdir in
10573 .) # No --srcdir option. We are building in place.
10574 ac_srcdir=.
10575 if test -z "$ac_top_builddir"; then
10576 ac_top_srcdir=.
10577 else
10578 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10579 fi ;;
10580 [\\/]* | ?:[\\/]* ) # Absolute path.
10581 ac_srcdir=$srcdir$ac_dir_suffix;
10582 ac_top_srcdir=$srcdir ;;
a0da8069 10583 *) # Relative path.
c6b750e1
DJ
10584 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10585 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10586esac
252b5132 10587
c6b750e1
DJ
10588# Do not use `cd foo && pwd` to compute absolute paths, because
10589# the directories may not exist.
10590case `pwd` in
10591.) ac_abs_builddir="$ac_dir";;
10592*)
10593 case "$ac_dir" in
10594 .) ac_abs_builddir=`pwd`;;
10595 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10596 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10597 esac;;
10598esac
10599case $ac_abs_builddir in
10600.) ac_abs_top_builddir=${ac_top_builddir}.;;
10601*)
10602 case ${ac_top_builddir}. in
10603 .) ac_abs_top_builddir=$ac_abs_builddir;;
10604 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10605 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10606 esac;;
10607esac
10608case $ac_abs_builddir in
10609.) ac_abs_srcdir=$ac_srcdir;;
10610*)
10611 case $ac_srcdir in
10612 .) ac_abs_srcdir=$ac_abs_builddir;;
10613 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10614 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10615 esac;;
10616esac
10617case $ac_abs_builddir in
10618.) ac_abs_top_srcdir=$ac_top_srcdir;;
10619*)
10620 case $ac_top_srcdir in
10621 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10622 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10623 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10624 esac;;
10625esac
252b5132 10626
c6b750e1
DJ
10627
10628 case $INSTALL in
10629 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10630 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 10631 esac
252b5132 10632
c6b750e1
DJ
10633 if test x"$ac_file" != x-; then
10634 { echo "$as_me:$LINENO: creating $ac_file" >&5
10635echo "$as_me: creating $ac_file" >&6;}
10636 rm -f "$ac_file"
10637 fi
10638 # Let's still pretend it is `configure' which instantiates (i.e., don't
10639 # use $as_me), people would be surprised to read:
10640 # /* config.h. Generated by config.status. */
10641 if test x"$ac_file" = x-; then
10642 configure_input=
10643 else
10644 configure_input="$ac_file. "
10645 fi
10646 configure_input=$configure_input"Generated from `echo $ac_file_in |
10647 sed 's,.*/,,'` by configure."
10648
10649 # First look for the input files in the build tree, otherwise in the
10650 # src tree.
10651 ac_file_inputs=`IFS=:
10652 for f in $ac_file_in; do
10653 case $f in
10654 -) echo $tmp/stdin ;;
10655 [\\/$]*)
10656 # Absolute (can't be DOS-style, as IFS=:)
10657 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10658echo "$as_me: error: cannot find input file: $f" >&2;}
10659 { (exit 1); exit 1; }; }
10660 echo "$f";;
10661 *) # Relative
10662 if test -f "$f"; then
10663 # Build tree
10664 echo "$f"
10665 elif test -f "$srcdir/$f"; then
10666 # Source tree
10667 echo "$srcdir/$f"
10668 else
10669 # /dev/null tree
10670 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10671echo "$as_me: error: cannot find input file: $f" >&2;}
10672 { (exit 1); exit 1; }; }
10673 fi;;
10674 esac
10675 done` || { (exit 1); exit 1; }
10676_ACEOF
10677cat >>$CONFIG_STATUS <<_ACEOF
10678 sed "$ac_vpsub
10679$extrasub
10680_ACEOF
10681cat >>$CONFIG_STATUS <<\_ACEOF
10682:t
10683/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10684s,@configure_input@,$configure_input,;t t
10685s,@srcdir@,$ac_srcdir,;t t
10686s,@abs_srcdir@,$ac_abs_srcdir,;t t
10687s,@top_srcdir@,$ac_top_srcdir,;t t
10688s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10689s,@builddir@,$ac_builddir,;t t
10690s,@abs_builddir@,$ac_abs_builddir,;t t
10691s,@top_builddir@,$ac_top_builddir,;t t
10692s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10693s,@INSTALL@,$ac_INSTALL,;t t
10694" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10695 rm -f $tmp/stdin
10696 if test x"$ac_file" != x-; then
10697 mv $tmp/out $ac_file
10698 else
10699 cat $tmp/out
10700 rm -f $tmp/out
10701 fi
c148b4cb 10702
c6b750e1
DJ
10703done
10704_ACEOF
c148b4cb 10705
c6b750e1 10706cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 10707
c6b750e1
DJ
10708{ (exit 0); exit 0; }
10709_ACEOF
c148b4cb 10710chmod +x $CONFIG_STATUS
c6b750e1
DJ
10711ac_clean_files=$ac_clean_files_save
10712
10713
10714# configure is writing to config.log, and then calls config.status.
10715# config.status does its own redirection, appending to config.log.
10716# Unfortunately, on DOS this fails, as config.log is still kept open
10717# by configure, so config.status won't be able to write to it; its
10718# output is simply discarded. So we exec the FD to /dev/null,
10719# effectively closing config.log, so it can be properly (re)opened and
10720# appended to by config.status. When coming back to configure, we
10721# need to make the FD available again.
10722if test "$no_create" != yes; then
10723 ac_cs_success=:
10724 ac_config_status_args=
10725 test "$silent" = yes &&
10726 ac_config_status_args="$ac_config_status_args --quiet"
10727 exec 5>/dev/null
10728 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10729 exec 5>>config.log
10730 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10731 # would make configure fail if this is the last instruction.
10732 $ac_cs_success || { (exit 1); exit 1; }
10733fi
c148b4cb 10734
This page took 0.927573 seconds and 4 git commands to generate.