]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - configure
* breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
[thirdparty/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"
a3ca38d2 275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET 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 CFLAGS_FOR_BUILD 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 pdfdir htmldir LIBOBJS LTLIBOBJS'
c6b750e1 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
a0da8069
NN
277
278# Initialize some variables set by options.
c6b750e1
DJ
279ac_init_help=
280ac_init_version=false
a0da8069
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
c6b750e1 283cache_file=/dev/null
a0da8069 284exec_prefix=NONE
a0da8069 285no_create=
a0da8069
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
a0da8069
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
c6b750e1
DJ
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
a0da8069
NN
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
252b5132 315
a0da8069
NN
316ac_prev=
317for ac_option
318do
a0da8069
NN
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
324 fi
252b5132 325
c6b750e1 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
a0da8069
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
c6b750e1 330 case $ac_option in
a0da8069
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 335 bindir=$ac_optarg ;;
a0da8069
NN
336
337 -build | --build | --buil | --bui | --bu)
c6b750e1 338 ac_prev=build_alias ;;
a0da8069 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 340 build_alias=$ac_optarg ;;
a0da8069
NN
341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
a0da8069
NN
351
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
c6b750e1 356 datadir=$ac_optarg ;;
a0da8069
NN
357
358 -disable-* | --disable-*)
c6b750e1 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 360 # Reject names that are not valid shell variable names.
c6b750e1
DJ
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
a0da8069
NN
366
367 -enable-* | --enable-*)
c6b750e1 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 369 # Reject names that are not valid shell variable names.
c6b750e1
DJ
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
376 *) ac_optarg=yes ;;
377 esac
c6b750e1 378 eval "enable_$ac_feature='$ac_optarg'" ;;
a0da8069
NN
379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
c6b750e1 387 exec_prefix=$ac_optarg ;;
a0da8069
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
c6b750e1
DJ
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
a0da8069
NN
399
400 -host | --host | --hos | --ho)
c6b750e1 401 ac_prev=host_alias ;;
a0da8069 402 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 403 host_alias=$ac_optarg ;;
a0da8069
NN
404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 410 includedir=$ac_optarg ;;
a0da8069
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 415 infodir=$ac_optarg ;;
a0da8069
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 420 libdir=$ac_optarg ;;
a0da8069
NN
421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
c6b750e1 427 libexecdir=$ac_optarg ;;
a0da8069
NN
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
c6b750e1 436 localstatedir=$ac_optarg ;;
a0da8069
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 441 mandir=$ac_optarg ;;
a0da8069
NN
442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 448 | --no-cr | --no-c | -n)
a0da8069
NN
449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 462 oldincludedir=$ac_optarg ;;
a0da8069
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 467 prefix=$ac_optarg ;;
a0da8069
NN
468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 474 program_prefix=$ac_optarg ;;
a0da8069
NN
475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 481 program_suffix=$ac_optarg ;;
a0da8069
NN
482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 498 program_transform_name=$ac_optarg ;;
a0da8069
NN
499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
c6b750e1 508 sbindir=$ac_optarg ;;
a0da8069
NN
509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
c6b750e1 519 sharedstatedir=$ac_optarg ;;
a0da8069
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
c6b750e1 524 site=$ac_optarg ;;
a0da8069
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 529 srcdir=$ac_optarg ;;
a0da8069
NN
530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 536 sysconfdir=$ac_optarg ;;
a0da8069
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 539 ac_prev=target_alias ;;
a0da8069 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 541 target_alias=$ac_optarg ;;
a0da8069
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
c6b750e1
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
a0da8069
NN
548
549 -with-* | --with-*)
c6b750e1 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 551 # Reject names that are not valid shell variable names.
c6b750e1
DJ
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
a0da8069 555 ac_package=`echo $ac_package| sed 's/-/_/g'`
c6b750e1
DJ
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
558 *) ac_optarg=yes ;;
559 esac
c6b750e1 560 eval "with_$ac_package='$ac_optarg'" ;;
a0da8069
NN
561
562 -without-* | --without-*)
c6b750e1 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 564 # Reject names that are not valid shell variable names.
c6b750e1
DJ
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
a0da8069
NN
570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 580 x_includes=$ac_optarg ;;
a0da8069
NN
581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 587 x_libraries=$ac_optarg ;;
a0da8069 588
c6b750e1
DJ
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
a0da8069
NN
592 ;;
593
c6b750e1
DJ
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
603
a0da8069 604 *)
c6b750e1
DJ
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
c6b750e1
DJ
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
a0da8069 619fi
a0da8069 620
c6b750e1
DJ
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
623do
624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630done
a0da8069 631
c6b750e1
DJ
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
a0da8069 635do
c6b750e1
DJ
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
a0da8069
NN
641 esac
642done
643
c6b750e1
DJ
644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
376a0e54 650
c6b750e1
DJ
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
a0da8069 666
a0da8069
NN
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
c6b750e1
DJ
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
a0da8069
NN
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
c6b750e1
DJ
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
a0da8069 695 else
c6b750e1
DJ
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
698 fi
699fi
700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716ac_env_CC_set=${CC+set}
717ac_env_CC_value=$CC
718ac_cv_env_CC_set=${CC+set}
719ac_cv_env_CC_value=$CC
720ac_env_CFLAGS_set=${CFLAGS+set}
721ac_env_CFLAGS_value=$CFLAGS
722ac_cv_env_CFLAGS_set=${CFLAGS+set}
723ac_cv_env_CFLAGS_value=$CFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
18f6b6ee
PB
732ac_env_CXX_set=${CXX+set}
733ac_env_CXX_value=$CXX
734ac_cv_env_CXX_set=${CXX+set}
735ac_cv_env_CXX_value=$CXX
736ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737ac_env_CXXFLAGS_value=$CXXFLAGS
738ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_cv_env_CXXFLAGS_value=$CXXFLAGS
9a819804
AO
740ac_env_AR_set=${AR+set}
741ac_env_AR_value=$AR
742ac_cv_env_AR_set=${AR+set}
743ac_cv_env_AR_value=$AR
744ac_env_AS_set=${AS+set}
745ac_env_AS_value=$AS
746ac_cv_env_AS_set=${AS+set}
747ac_cv_env_AS_value=$AS
748ac_env_DLLTOOL_set=${DLLTOOL+set}
749ac_env_DLLTOOL_value=$DLLTOOL
750ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
751ac_cv_env_DLLTOOL_value=$DLLTOOL
752ac_env_LD_set=${LD+set}
753ac_env_LD_value=$LD
754ac_cv_env_LD_set=${LD+set}
755ac_cv_env_LD_value=$LD
756ac_env_LIPO_set=${LIPO+set}
757ac_env_LIPO_value=$LIPO
758ac_cv_env_LIPO_set=${LIPO+set}
759ac_cv_env_LIPO_value=$LIPO
760ac_env_NM_set=${NM+set}
761ac_env_NM_value=$NM
762ac_cv_env_NM_set=${NM+set}
763ac_cv_env_NM_value=$NM
764ac_env_RANLIB_set=${RANLIB+set}
765ac_env_RANLIB_value=$RANLIB
766ac_cv_env_RANLIB_set=${RANLIB+set}
767ac_cv_env_RANLIB_value=$RANLIB
768ac_env_STRIP_set=${STRIP+set}
769ac_env_STRIP_value=$STRIP
770ac_cv_env_STRIP_set=${STRIP+set}
771ac_cv_env_STRIP_value=$STRIP
772ac_env_WINDRES_set=${WINDRES+set}
773ac_env_WINDRES_value=$WINDRES
774ac_cv_env_WINDRES_set=${WINDRES+set}
775ac_cv_env_WINDRES_value=$WINDRES
776ac_env_OBJCOPY_set=${OBJCOPY+set}
777ac_env_OBJCOPY_value=$OBJCOPY
778ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
779ac_cv_env_OBJCOPY_value=$OBJCOPY
780ac_env_OBJDUMP_set=${OBJDUMP+set}
781ac_env_OBJDUMP_value=$OBJDUMP
782ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
783ac_cv_env_OBJDUMP_value=$OBJDUMP
784ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
785ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
786ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
787ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
788ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
789ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
790ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
791ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
792ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
793ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
794ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
795ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
796ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
797ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
798ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
799ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
800ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
801ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
802ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
803ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
804ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
805ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
806ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
807ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
808ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
809ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
810ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
811ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
812ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
813ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
814ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
815ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
816ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
817ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
818ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
819ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
820ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
821ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
822ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
823ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
824ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
825ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
826ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
827ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
828ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
829ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
830ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
831ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
832ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
833ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
834ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
835ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
836ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
837ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
838ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
839ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
840ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
841ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
842ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
843ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
c6b750e1
DJ
844
845#
846# Report the --help message.
847#
848if test "$ac_init_help" = "long"; then
849 # Omit some internal or obsolete options to make the list less imposing.
850 # This message is too long to be a string in the A/UX 3.1 sh.
851 cat <<_ACEOF
852\`configure' configures this package to adapt to many kinds of systems.
853
854Usage: $0 [OPTION]... [VAR=VALUE]...
855
856To assign environment variables (e.g., CC, CFLAGS...), specify them as
857VAR=VALUE. See below for descriptions of some of the useful variables.
858
859Defaults for the options are specified in brackets.
860
861Configuration:
862 -h, --help display this help and exit
863 --help=short display options specific to this package
864 --help=recursive display the short help of all the included packages
865 -V, --version display version information and exit
866 -q, --quiet, --silent do not print \`checking...' messages
867 --cache-file=FILE cache test results in FILE [disabled]
868 -C, --config-cache alias for \`--cache-file=config.cache'
869 -n, --no-create do not create output files
870 --srcdir=DIR find the sources in DIR [configure dir or \`..']
871
872_ACEOF
873
874 cat <<_ACEOF
875Installation directories:
876 --prefix=PREFIX install architecture-independent files in PREFIX
877 [$ac_default_prefix]
878 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
879 [PREFIX]
880
881By default, \`make install' will install all the files in
882\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
883an installation prefix other than \`$ac_default_prefix' using \`--prefix',
884for instance \`--prefix=\$HOME'.
885
886For better control, use the options below.
887
888Fine tuning of the installation directories:
889 --bindir=DIR user executables [EPREFIX/bin]
890 --sbindir=DIR system admin executables [EPREFIX/sbin]
891 --libexecdir=DIR program executables [EPREFIX/libexec]
892 --datadir=DIR read-only architecture-independent data [PREFIX/share]
893 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
894 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
895 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
896 --libdir=DIR object code libraries [EPREFIX/lib]
897 --includedir=DIR C header files [PREFIX/include]
898 --oldincludedir=DIR C header files for non-gcc [/usr/include]
899 --infodir=DIR info documentation [PREFIX/info]
900 --mandir=DIR man documentation [PREFIX/man]
901_ACEOF
902
903 cat <<\_ACEOF
904
905Program names:
906 --program-prefix=PREFIX prepend PREFIX to installed program names
907 --program-suffix=SUFFIX append SUFFIX to installed program names
908 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
909
910System types:
911 --build=BUILD configure for building on BUILD [guessed]
912 --host=HOST cross-compile to build programs to run on HOST [BUILD]
913 --target=TARGET configure for building compilers for TARGET [HOST]
914_ACEOF
a0da8069 915fi
a0da8069 916
c6b750e1
DJ
917if test -n "$ac_init_help"; then
918
919 cat <<\_ACEOF
920
921Optional Features:
922 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
923 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
924 --enable-libada Builds libada directory
925 --enable-libssp Builds libssp directory
926 --enable-stage1-languages=all choose additional languages to build during
927 stage1. Mostly useful for compiler development.
928 --enable-objc-gc enable the use of Boehm's garbage collector with
929 the GNU Objective-C runtime.
930 --enable-bootstrap Enable bootstrapping yes if native build
931 --enable-serial-{host,target,build}-configure
932 Force sequential configuration of
933 sub-packages for the host, target or build
934 machine, or all sub-packages
935 --enable-maintainer-mode enable make rules and dependencies not useful
936 (and sometimes confusing) to the casual installer
937 --enable-stage1-checking=all choose additional checking for stage1
938 of the compiler.
939 --enable-werror enable -Werror in bootstrap stage2 and later
940
941Optional Packages:
942 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
943 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
944 --with-build-libsubdir=DIR Directory where to find libraries for build system
945 --with-mpfr-dir=PATH This option has been REMOVED
946 --with-mpfr=PATH Specify prefix directory for installed MPFR package
947 Equivalent to --with-mpfr-include=PATH/include
948 plus --with-mpfr-lib=PATH/lib
949 --with-mpfr-include=PATH
950 Specify directory for installed MPFR include files
951 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library
952 --with-gmp-dir=PATH This option has been REMOVED
953 --with-gmp=PATH Specify prefix directory for the installed GMP package
954 Equivalent to --with-gmp-include=PATH/include
955 plus --with-gmp-lib=PATH/lib
956 --with-gmp-include=PATH Specify directory for installed GMP include files
957 --with-gmp-lib=PATH Specify the directory for the installed GMP library
958 --with-build-sysroot=sysroot
959 use sysroot as the system root during the build
960 --with-build-time-tools=path
961 use given path to find target tools during the build
962 --with-datarootdir Use datarootdir as the data root directory.
963 --with-docdir Install documentation in this directory.
a3ca38d2 964 --with-pdfdir Install pdf in this directory.
c6b750e1
DJ
965 --with-htmldir Install html in this directory.
966
967Some influential environment variables:
968 CC C compiler command
969 CFLAGS C compiler flags
970 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
971 nonstandard directory <lib dir>
972 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
973 headers in a nonstandard directory <include dir>
18f6b6ee
PB
974 CXX C++ compiler command
975 CXXFLAGS C++ compiler flags
9a819804
AO
976 AR AR for the host
977 AS AS for the host
978 DLLTOOL DLLTOOL for the host
979 LD LD for the host
980 LIPO LIPO for the host
981 NM NM for the host
982 RANLIB RANLIB for the host
983 STRIP STRIP for the host
984 WINDRES WINDRES for the host
985 OBJCOPY OBJCOPY for the host
986 OBJDUMP OBJDUMP for the host
987 CC_FOR_TARGET
988 CC for the target
989 CXX_FOR_TARGET
990 CXX for the target
991 GCC_FOR_TARGET
992 GCC for the target
993 GCJ_FOR_TARGET
994 GCJ for the target
995 GFORTRAN_FOR_TARGET
996 GFORTRAN for the target
997 AR_FOR_TARGET
998 AR for the target
999 AS_FOR_TARGET
1000 AS for the target
1001 DLLTOOL_FOR_TARGET
1002 DLLTOOL for the target
1003 LD_FOR_TARGET
1004 LD for the target
1005 LIPO_FOR_TARGET
1006 LIPO for the target
1007 NM_FOR_TARGET
1008 NM for the target
1009 OBJDUMP_FOR_TARGET
1010 OBJDUMP for the target
1011 RANLIB_FOR_TARGET
1012 RANLIB for the target
1013 STRIP_FOR_TARGET
1014 STRIP for the target
1015 WINDRES_FOR_TARGET
1016 WINDRES for the target
c6b750e1
DJ
1017
1018Use these variables to override the choices made by `configure' or to help
1019it to find libraries and programs with nonstandard names/locations.
1020
1021_ACEOF
1022fi
1023
1024if test "$ac_init_help" = "recursive"; then
1025 # If there are subdirs, report their specific --help.
1026 ac_popdir=`pwd`
1027 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1028 test -d $ac_dir || continue
1029 ac_builddir=.
1030
1031if test "$ac_dir" != .; then
1032 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1033 # A "../" for each directory in $ac_dir_suffix.
1034 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1035else
1036 ac_dir_suffix= ac_top_builddir=
1037fi
1038
1039case $srcdir in
1040 .) # No --srcdir option. We are building in place.
1041 ac_srcdir=.
1042 if test -z "$ac_top_builddir"; then
1043 ac_top_srcdir=.
1044 else
1045 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1046 fi ;;
1047 [\\/]* | ?:[\\/]* ) # Absolute path.
1048 ac_srcdir=$srcdir$ac_dir_suffix;
1049 ac_top_srcdir=$srcdir ;;
1050 *) # Relative path.
1051 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1052 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1053esac
1054
1055# Do not use `cd foo && pwd` to compute absolute paths, because
1056# the directories may not exist.
1057case `pwd` in
1058.) ac_abs_builddir="$ac_dir";;
1059*)
1060 case "$ac_dir" in
1061 .) ac_abs_builddir=`pwd`;;
1062 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1063 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1064 esac;;
1065esac
1066case $ac_abs_builddir in
1067.) ac_abs_top_builddir=${ac_top_builddir}.;;
1068*)
1069 case ${ac_top_builddir}. in
1070 .) ac_abs_top_builddir=$ac_abs_builddir;;
1071 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1072 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1073 esac;;
1074esac
1075case $ac_abs_builddir in
1076.) ac_abs_srcdir=$ac_srcdir;;
1077*)
1078 case $ac_srcdir in
1079 .) ac_abs_srcdir=$ac_abs_builddir;;
1080 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1081 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1082 esac;;
1083esac
1084case $ac_abs_builddir in
1085.) ac_abs_top_srcdir=$ac_top_srcdir;;
1086*)
1087 case $ac_top_srcdir in
1088 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1089 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1090 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1091 esac;;
1092esac
1093
1094 cd $ac_dir
1095 # Check for guested configure; otherwise get Cygnus style configure.
1096 if test -f $ac_srcdir/configure.gnu; then
1097 echo
1098 $SHELL $ac_srcdir/configure.gnu --help=recursive
1099 elif test -f $ac_srcdir/configure; then
1100 echo
1101 $SHELL $ac_srcdir/configure --help=recursive
1102 elif test -f $ac_srcdir/configure.ac ||
1103 test -f $ac_srcdir/configure.in; then
1104 echo
1105 $ac_configure --help
1106 else
1107 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1108 fi
1109 cd $ac_popdir
1110 done
1111fi
1112
1113test -n "$ac_init_help" && exit 0
1114if $ac_init_version; then
1115 cat <<\_ACEOF
1116
1117Copyright (C) 2003 Free Software Foundation, Inc.
1118This configure script is free software; the Free Software Foundation
1119gives unlimited permission to copy, distribute and modify it.
1120_ACEOF
1121 exit 0
1122fi
1123exec 5>config.log
1124cat >&5 <<_ACEOF
1125This file contains any messages produced by compilers while
1126running configure, to aid debugging if configure makes a mistake.
1127
1128It was created by $as_me, which was
1129generated by GNU Autoconf 2.59. Invocation command line was
1130
1131 $ $0 $@
1132
1133_ACEOF
1134{
1135cat <<_ASUNAME
1136## --------- ##
1137## Platform. ##
1138## --------- ##
1139
1140hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1141uname -m = `(uname -m) 2>/dev/null || echo unknown`
1142uname -r = `(uname -r) 2>/dev/null || echo unknown`
1143uname -s = `(uname -s) 2>/dev/null || echo unknown`
1144uname -v = `(uname -v) 2>/dev/null || echo unknown`
1145
1146/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1147/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1148
1149/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1150/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1151/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1152hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1153/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1154/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1155/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1156
1157_ASUNAME
1158
1159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1160for as_dir in $PATH
1161do
1162 IFS=$as_save_IFS
1163 test -z "$as_dir" && as_dir=.
1164 echo "PATH: $as_dir"
1165done
1166
1167} >&5
1168
1169cat >&5 <<_ACEOF
1170
1171
1172## ----------- ##
1173## Core tests. ##
1174## ----------- ##
1175
1176_ACEOF
1177
1178
1179# Keep a trace of the command line.
1180# Strip out --no-create and --no-recursion so they do not pile up.
1181# Strip out --silent because we don't want to record it for future runs.
1182# Also quote any args containing shell meta-characters.
1183# Make two passes to allow for proper duplicate-argument suppression.
1184ac_configure_args=
1185ac_configure_args0=
1186ac_configure_args1=
1187ac_sep=
1188ac_must_keep_next=false
1189for ac_pass in 1 2
1190do
1191 for ac_arg
1192 do
1193 case $ac_arg in
1194 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1195 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1196 | -silent | --silent | --silen | --sile | --sil)
1197 continue ;;
1198 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1200 esac
1201 case $ac_pass in
1202 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1203 2)
1204 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1205 if test $ac_must_keep_next = true; then
1206 ac_must_keep_next=false # Got value, back to normal.
1207 else
1208 case $ac_arg in
1209 *=* | --config-cache | -C | -disable-* | --disable-* \
1210 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1211 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1212 | -with-* | --with-* | -without-* | --without-* | --x)
1213 case "$ac_configure_args0 " in
1214 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1215 esac
1216 ;;
1217 -* ) ac_must_keep_next=true ;;
1218 esac
1219 fi
1220 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1221 # Get rid of the leading space.
1222 ac_sep=" "
1223 ;;
1224 esac
1225 done
1226done
1227$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1228$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1229
1230# When interrupted or exit'd, cleanup temporary files, and complete
1231# config.log. We remove comments because anyway the quotes in there
1232# would cause problems or look ugly.
1233# WARNING: Be sure not to use single quotes in there, as some shells,
1234# such as our DU 5.0 friend, will then `close' the trap.
1235trap 'exit_status=$?
1236 # Save into config.log some information that might help in debugging.
1237 {
1238 echo
1239
1240 cat <<\_ASBOX
1241## ---------------- ##
1242## Cache variables. ##
1243## ---------------- ##
1244_ASBOX
1245 echo
1246 # The following way of writing the cache mishandles newlines in values,
1247{
1248 (set) 2>&1 |
1249 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1250 *ac_space=\ *)
1251 sed -n \
1252 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1253 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1254 ;;
1255 *)
1256 sed -n \
1257 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1258 ;;
1259 esac;
1260}
1261 echo
1262
1263 cat <<\_ASBOX
1264## ----------------- ##
1265## Output variables. ##
1266## ----------------- ##
1267_ASBOX
1268 echo
1269 for ac_var in $ac_subst_vars
1270 do
1271 eval ac_val=$`echo $ac_var`
1272 echo "$ac_var='"'"'$ac_val'"'"'"
1273 done | sort
1274 echo
1275
1276 if test -n "$ac_subst_files"; then
1277 cat <<\_ASBOX
1278## ------------- ##
1279## Output files. ##
1280## ------------- ##
1281_ASBOX
1282 echo
1283 for ac_var in $ac_subst_files
1284 do
1285 eval ac_val=$`echo $ac_var`
1286 echo "$ac_var='"'"'$ac_val'"'"'"
1287 done | sort
1288 echo
1289 fi
1290
1291 if test -s confdefs.h; then
1292 cat <<\_ASBOX
1293## ----------- ##
1294## confdefs.h. ##
1295## ----------- ##
1296_ASBOX
1297 echo
1298 sed "/^$/d" confdefs.h | sort
1299 echo
1300 fi
1301 test "$ac_signal" != 0 &&
1302 echo "$as_me: caught signal $ac_signal"
1303 echo "$as_me: exit $exit_status"
1304 } >&5
1305 rm -f core *.core &&
1306 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1307 exit $exit_status
1308 ' 0
1309for ac_signal in 1 2 13 15; do
1310 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1311done
1312ac_signal=0
1313
1314# confdefs.h avoids OS command line length limits that DEFS can exceed.
1315rm -rf conftest* confdefs.h
1316# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1317echo >confdefs.h
1318
1319# Predefined preprocessor variables.
1320
1321cat >>confdefs.h <<_ACEOF
1322#define PACKAGE_NAME "$PACKAGE_NAME"
1323_ACEOF
1324
1325
1326cat >>confdefs.h <<_ACEOF
1327#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1328_ACEOF
1329
1330
1331cat >>confdefs.h <<_ACEOF
1332#define PACKAGE_VERSION "$PACKAGE_VERSION"
1333_ACEOF
1334
1335
1336cat >>confdefs.h <<_ACEOF
1337#define PACKAGE_STRING "$PACKAGE_STRING"
1338_ACEOF
1339
1340
1341cat >>confdefs.h <<_ACEOF
1342#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1343_ACEOF
1344
1345
1346# Let the site file select an alternate cache file if it wants to.
a0da8069 1347# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1348if test -z "$CONFIG_SITE"; then
1349 if test "x$prefix" != xNONE; then
1350 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1351 else
1352 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1353 fi
1354fi
1355for ac_site_file in $CONFIG_SITE; do
1356 if test -r "$ac_site_file"; then
c6b750e1
DJ
1357 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1358echo "$as_me: loading site script $ac_site_file" >&6;}
1359 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1360 . "$ac_site_file"
1361 fi
1362done
1363
1364if test -r "$cache_file"; then
c6b750e1
DJ
1365 # Some versions of bash will fail to source /dev/null (special
1366 # files actually), so we avoid doing that.
1367 if test -f "$cache_file"; then
1368 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1369echo "$as_me: loading cache $cache_file" >&6;}
1370 case $cache_file in
1371 [\\/]* | ?:[\\/]* ) . $cache_file;;
1372 *) . ./$cache_file;;
1373 esac
1374 fi
a0da8069 1375else
c6b750e1
DJ
1376 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1377echo "$as_me: creating cache $cache_file" >&6;}
1378 >$cache_file
1379fi
1380
1381# Check that the precious variables saved in the cache have kept the same
1382# value.
1383ac_cache_corrupted=false
1384for ac_var in `(set) 2>&1 |
1385 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1386 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1387 eval ac_new_set=\$ac_env_${ac_var}_set
1388 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1389 eval ac_new_val="\$ac_env_${ac_var}_value"
1390 case $ac_old_set,$ac_new_set in
1391 set,)
1392 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1393echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1394 ac_cache_corrupted=: ;;
1395 ,set)
1396 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1397echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1398 ac_cache_corrupted=: ;;
1399 ,);;
1400 *)
1401 if test "x$ac_old_val" != "x$ac_new_val"; then
1402 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1403echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1404 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1405echo "$as_me: former value: $ac_old_val" >&2;}
1406 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1407echo "$as_me: current value: $ac_new_val" >&2;}
1408 ac_cache_corrupted=:
1409 fi;;
1410 esac
1411 # Pass precious variables to config.status.
1412 if test "$ac_new_set" = set; then
1413 case $ac_new_val in
1414 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1415 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1416 *) ac_arg=$ac_var=$ac_new_val ;;
1417 esac
1418 case " $ac_configure_args " in
1419 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1420 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1421 esac
1422 fi
1423done
1424if $ac_cache_corrupted; then
1425 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1426echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1427 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1428echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1429 { (exit 1); exit 1; }; }
a0da8069
NN
1430fi
1431
1432ac_ext=c
a0da8069 1433ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1436ac_compiler_gnu=$ac_cv_c_compiler_gnu
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
a0da8069
NN
1450
1451
75778ec4 1452
c6b750e1
DJ
1453
1454
1455
1456
1457
1458# Find the build, host, and target systems.
a0da8069 1459ac_aux_dir=
315b3b02 1460for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1461 if test -f $ac_dir/install-sh; then
1462 ac_aux_dir=$ac_dir
1463 ac_install_sh="$ac_aux_dir/install-sh -c"
1464 break
1465 elif test -f $ac_dir/install.sh; then
1466 ac_aux_dir=$ac_dir
1467 ac_install_sh="$ac_aux_dir/install.sh -c"
1468 break
c6b750e1
DJ
1469 elif test -f $ac_dir/shtool; then
1470 ac_aux_dir=$ac_dir
1471 ac_install_sh="$ac_aux_dir/shtool install -c"
1472 break
a0da8069
NN
1473 fi
1474done
1475if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1476 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1477echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1478 { (exit 1); exit 1; }; }
a0da8069 1479fi
c6b750e1
DJ
1480ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1481ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1482ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1483
c6b750e1
DJ
1484# Make sure we can run config.sub.
1485$ac_config_sub sun4 >/dev/null 2>&1 ||
1486 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1487echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1488 { (exit 1); exit 1; }; }
1489
1490echo "$as_me:$LINENO: checking build system type" >&5
1491echo $ECHO_N "checking build system type... $ECHO_C" >&6
1492if test "${ac_cv_build+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1494else
1495 ac_cv_build_alias=$build_alias
1496test -z "$ac_cv_build_alias" &&
1497 ac_cv_build_alias=`$ac_config_guess`
1498test -z "$ac_cv_build_alias" &&
1499 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1500echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1501 { (exit 1); exit 1; }; }
1502ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1503 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1504echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1505 { (exit 1); exit 1; }; }
1506
1507fi
1508echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1509echo "${ECHO_T}$ac_cv_build" >&6
1510build=$ac_cv_build
1511build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1512build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1513build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1514
a0da8069 1515
c6b750e1
DJ
1516 case ${build_alias} in
1517 "") build_noncanonical=${build} ;;
1518 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1519esac
1520
1521
cac3d6c4 1522
c6b750e1
DJ
1523 case ${host_alias} in
1524 "") host_noncanonical=${build_noncanonical} ;;
1525 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1526esac
1527
cac3d6c4 1528
c6b750e1
DJ
1529
1530 case ${target_alias} in
1531 "") target_noncanonical=${host_noncanonical} ;;
1532 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1533esac
1534
cac3d6c4 1535
c6b750e1
DJ
1536
1537
1538test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1539 test "$program_prefix$program_suffix$program_transform_name" = \
1540 NONENONEs,x,x, &&
c6b750e1 1541 program_transform_name=s,y,y,
cac3d6c4 1542
c6b750e1
DJ
1543echo "$as_me:$LINENO: checking host system type" >&5
1544echo $ECHO_N "checking host system type... $ECHO_C" >&6
1545if test "${ac_cv_host+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1547else
c6b750e1
DJ
1548 ac_cv_host_alias=$host_alias
1549test -z "$ac_cv_host_alias" &&
1550 ac_cv_host_alias=$ac_cv_build_alias
1551ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1552 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1553echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1554 { (exit 1); exit 1; }; }
1555
1556fi
1557echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1558echo "${ECHO_T}$ac_cv_host" >&6
1559host=$ac_cv_host
1560host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1561host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1562host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1563
1564
1565echo "$as_me:$LINENO: checking target system type" >&5
1566echo $ECHO_N "checking target system type... $ECHO_C" >&6
1567if test "${ac_cv_target+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1569else
1570 ac_cv_target_alias=$target_alias
1571test "x$ac_cv_target_alias" = "x" &&
1572 ac_cv_target_alias=$ac_cv_host_alias
1573ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1574 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1575echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1576 { (exit 1); exit 1; }; }
1577
cac3d6c4 1578fi
c6b750e1
DJ
1579echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1580echo "${ECHO_T}$ac_cv_target" >&6
1581target=$ac_cv_target
1582target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1585
1586
1587# The aliases save the names the user supplied, while $host etc.
1588# will get canonicalized.
1589test -n "$target_alias" &&
1590 test "$program_prefix$program_suffix$program_transform_name" = \
1591 NONENONEs,x,x, &&
1592 program_prefix=${target_alias}-
a0da8069 1593test "$program_prefix" != NONE &&
c6b750e1 1594 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1595# Use a double $ so make ignores it.
1596test "$program_suffix" != NONE &&
c6b750e1
DJ
1597 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1598# Double any \ or $. echo might interpret backslashes.
1599# By default was `s,x,x', remove it if useless.
1600cat <<\_ACEOF >conftest.sed
1601s/[\\$]/&&/g;s/;s,x,x,$//
1602_ACEOF
1603program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1604rm conftest.sed
cac3d6c4 1605
a0da8069
NN
1606
1607
e5c3f801
NN
1608# Get 'install' or 'install-sh' and its variants.
1609# Find a good install program. We prefer a C program (faster),
1610# so one script is as good as another. But avoid the broken or
1611# incompatible versions:
1612# SysV /etc/install, /usr/sbin/install
1613# SunOS /usr/etc/install
1614# IRIX /sbin/install
1615# AIX /bin/install
c6b750e1 1616# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1617# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1618# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1619# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1620# OS/2's system install, which has a completely different semantic
e5c3f801 1621# ./install, which can be erroneously created by make from ./install.sh.
c6b750e1
DJ
1622echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1623echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1624if test -z "$INSTALL"; then
c6b750e1
DJ
1625if test "${ac_cv_path_install+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629for as_dir in $PATH
1630do
1631 IFS=$as_save_IFS
1632 test -z "$as_dir" && as_dir=.
1633 # Account for people who put trailing slashes in PATH elements.
1634case $as_dir/ in
1635 ./ | .// | /cC/* | \
1636 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1637 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1638 /usr/ucb/* ) ;;
1639 *)
1640 # OSF1 and SCO ODT 3.0 have their own names for install.
1641 # Don't use installbsd from OSF since it installs stuff as root
1642 # by default.
1643 for ac_prog in ginstall scoinst install; do
1644 for ac_exec_ext in '' $ac_executable_extensions; do
1645 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1646 if test $ac_prog = install &&
c6b750e1 1647 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1648 # AIX install. It has an incompatible calling convention.
1649 :
c6b750e1
DJ
1650 elif test $ac_prog = install &&
1651 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1652 # program-specific install script used by HP pwplus--don't use.
1653 :
e5c3f801 1654 else
c6b750e1
DJ
1655 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1656 break 3
e5c3f801
NN
1657 fi
1658 fi
1659 done
c6b750e1
DJ
1660 done
1661 ;;
1662esac
1663done
1664
e5c3f801
NN
1665
1666fi
1667 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1668 INSTALL=$ac_cv_path_install
e5c3f801
NN
1669 else
1670 # As a last resort, use the slow shell script. We don't cache a
1671 # path for INSTALL within a source directory, because that will
1672 # break other packages using the cache if that directory is
1673 # removed, or if the path is relative.
c6b750e1 1674 INSTALL=$ac_install_sh
e5c3f801
NN
1675 fi
1676fi
c6b750e1
DJ
1677echo "$as_me:$LINENO: result: $INSTALL" >&5
1678echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1679
1680# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1681# It thinks the first close brace ends the variable substitution.
1682test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1683
c6b750e1 1684test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1685
1686test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1687
c6b750e1
DJ
1688echo "$as_me:$LINENO: checking whether ln works" >&5
1689echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1690if test "${acx_cv_prog_LN+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1692else
1693 rm -f conftestdata_t
1694echo >conftestdata_f
1695if ln conftestdata_f conftestdata_t 2>/dev/null
1696then
1697 acx_cv_prog_LN=ln
1698else
1699 acx_cv_prog_LN=no
1700fi
1701rm -f conftestdata_f conftestdata_t
1702
1703fi
1704if test $acx_cv_prog_LN = no; then
1705 LN="cp"
c6b750e1
DJ
1706 echo "$as_me:$LINENO: result: no, using $LN" >&5
1707echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1708else
1709 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1710 echo "$as_me:$LINENO: result: yes" >&5
1711echo "${ECHO_T}yes" >&6
656fdd47
PB
1712fi
1713
c6b750e1
DJ
1714echo "$as_me:$LINENO: checking whether ln -s works" >&5
1715echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1716LN_S=$as_ln_s
1717if test "$LN_S" = "ln -s"; then
1718 echo "$as_me:$LINENO: result: yes" >&5
1719echo "${ECHO_T}yes" >&6
cac3d6c4 1720else
c6b750e1
DJ
1721 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1722echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1723fi
1724
e5c3f801 1725
252b5132 1726### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1727### If we are on Windows, search for the shell. This will permit people
1728### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1729### without also having to set CONFIG_SHELL. This code will work when
1730### using bash, which sets OSTYPE.
1731case "${OSTYPE}" in
1732*win32*)
a0da8069
NN
1733 if test x${CONFIG_SHELL} = x ; then
1734 if test ! -f /bin/sh ; then
1735 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1736 CONFIG_SHELL=${SHELL}
1737 export CONFIG_SHELL
1738 else
1739 for prog in sh sh.exe bash bash.exe; do
1740 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1741 for dir in $PATH; do
1742 test -z "$dir" && dir=.
1743 if test -f $dir/$prog; then
1744 CONFIG_SHELL=$dir/$prog
1745 export CONFIG_SHELL
1746 break
1747 fi
1748 done
1749 IFS="$save_ifs"
1750 test -n "${CONFIG_SHELL}" && break
1751 done
1752 fi
1753 fi
1754 fi
1755 ;;
1756esac
1757
1758config_shell=${CONFIG_SHELL-/bin/sh}
1759
252b5132
RH
1760progname=$0
1761# if PWD already has a value, it is probably wrong.
a0da8069 1762if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
252b5132 1763
92f01d61
JM
1764# Export original configure arguments for use by sub-configures.
1765# Quote arguments with shell meta charatcers.
1766TOPLEVEL_CONFIGURE_ARGUMENTS=
1767set -- "$progname" "$@"
a4708fba
JM
1768for ac_arg
1769do
92f01d61 1770 case "$ac_arg" in
ffa8bd48 1771 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
92f01d61
JM
1772 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1773 # if the argument is of the form -foo=baz, quote the baz part only
1774 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1775 *) ;;
1776 esac
1777 # Add the quoted argument to the list.
1778 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1779done
1780# Remove the initial space we just introduced and, as these will be
1781# expanded by make, quote '$'.
1782TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
586c0873 1783
75205f78 1784
a0da8069 1785moveifchange=${srcdir}/move-if-change
252b5132 1786
0fdbe983
DJ
1787srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1788
1789# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1790# a relative path.
1791if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1792 INSTALL="${srcpwd}/install-sh -c"
1793fi
1794
a0da8069
NN
1795# Set srcdir to "." if that's what it is.
1796# This is important for multilib support.
1797pwd=`${PWDCMD-pwd}`
a0da8069
NN
1798if test "${pwd}" = "${srcpwd}" ; then
1799 srcdir=.
252b5132
RH
1800fi
1801
a0da8069 1802topsrcdir=$srcpwd
252b5132 1803
a0da8069 1804extra_host_args=
afefada0 1805
a0da8069
NN
1806### To add a new directory to the tree, first choose whether it is a target
1807### or a host dependent tool. Then put it into the appropriate list
1808### (library or tools, host or target), doing a dependency sort.
252b5132 1809
c6b750e1 1810# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1811# configdirs, or target_configdirs; see the serialization section below.
252b5132 1812
c6b750e1
DJ
1813# Dependency sorting is only needed when *configuration* must be done in
1814# a particular order. In all cases a dependency should be specified in
a0da8069 1815# the Makefile, whether or not it's implicitly specified here.
252b5132 1816
a0da8069
NN
1817# Double entries in build_configdirs, configdirs, or target_configdirs may
1818# cause circular dependencies and break everything horribly.
252b5132 1819
6a9cf61e
PB
1820# these library is used by various programs built for the build
1821# environment
1822#
1823build_libs="build-libiberty"
1824
1825# these tools are built for the build environment
ee025550 1826build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1827
a0da8069
NN
1828# these libraries are used by various programs built for the host environment
1829#
4b900473 1830host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
a0da8069 1831
a0da8069
NN
1832# these tools are built for the host environment
1833# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1834# know that we are building the simulator.
1835# binutils, gas and ld appear in that order because it makes sense to run
1836# "make check" in that particular order.
b00612cc 1837host_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
1838
1839# libgcj represents the runtime libraries only used by gcj.
1840libgcj="target-libffi \
a0da8069
NN
1841 target-zlib \
1842 target-qthreads \
1843 target-libjava"
1844
1845# these libraries are built for the target environment, and are built after
1846# the host libraries and the host tools (which may be a cross compiler)
1847#
b1299c4e
DJ
1848target_libraries="target-libgcc \
1849 target-libiberty \
a0da8069
NN
1850 target-libgloss \
1851 target-newlib \
b9459e83 1852 target-libstdc++-v3 \
4b1cb4fe 1853 target-libmudflap \
bb780410 1854 target-libssp \
4b1cb4fe 1855 target-libgfortran \
4f0ef2d8 1856 target-boehm-gc \
83326456 1857 ${libgcj} \
a2592b1b 1858 target-libobjc \
b3ded179
PB
1859 target-libada \
1860 target-libgomp"
a0da8069 1861
9c14acb8
NN
1862# these tools are built using the target libraries, and are intended to
1863# run only in the target environment
a0da8069 1864#
9c14acb8 1865# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1866# list belongs in this list. those programs are also very likely
1867# candidates for the "native_only" list which follows
1868#
a3dd767d 1869target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1870
a0da8069 1871################################################################################
252b5132 1872
a0da8069
NN
1873## All tools belong in one of the four categories, and are assigned above
1874## We assign ${configdirs} this way to remove all embedded newlines. This
1875## is important because configure will choke if they ever get through.
1876## ${configdirs} is directories we build using the host tools.
1877## ${target_configdirs} is directories we build using the target tools.
a0da8069 1878configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1879target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1880build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1881
a0da8069 1882################################################################################
252b5132 1883
a0da8069 1884srcname="gnu development package"
252b5132 1885
a0da8069
NN
1886# This gets set non-empty for some net releases of packages.
1887appdirs=""
252b5132 1888
a0da8069
NN
1889# Define is_cross_compiler to save on calls to 'test'.
1890is_cross_compiler=
1891if test x"${host}" = x"${target}" ; then
1892 is_cross_compiler=no
252b5132 1893else
a0da8069 1894 is_cross_compiler=yes
c6b750e1 1895fi
252b5132 1896
9175bfc0 1897# Find the build and target subdir names.
dd12c3a8 1898
66a79c16
DJ
1899# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1900# have matching libraries, they should use host libraries: Makefile.tpl
1901# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1902# However, they still use the build modules, because the corresponding
1903# host modules (e.g. bison) are only built for the host when bootstrap
1904# finishes. So:
1905# - build_subdir is where we find build modules, and never changes.
1906# - build_libsubdir is where we find build libraries, and can be overridden.
1907
1908# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1909build_subdir="build-${build_noncanonical}"
c6b750e1 1910
66a79c16
DJ
1911# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1912if test "${with_build_libsubdir+set}" = set; then
1913 withval="$with_build_libsubdir"
1914 build_libsubdir="$withval"
1915else
1916 build_libsubdir="$build_subdir"
c6b750e1 1917fi;
b00612cc
PB
1918# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1919if ( test $srcdir = . && test -d gcc ) \
1920 || test -d $srcdir/../host-${host_noncanonical}; then
1921 host_subdir="host-${host_noncanonical}"
1922else
1923 host_subdir=.
1924fi
dd12c3a8
NN
1925# No prefix.
1926target_subdir=${target_noncanonical}
c6b750e1 1927
252b5132 1928
a0da8069
NN
1929# Skipdirs are removed silently.
1930skipdirs=
1931# Noconfigdirs are removed loudly.
1932noconfigdirs=""
252b5132 1933
a0da8069
NN
1934use_gnu_ld=
1935# Make sure we don't let GNU ld be added if we didn't want it.
1936if test x$with_gnu_ld = xno ; then
1937 use_gnu_ld=no
1938 noconfigdirs="$noconfigdirs ld"
252b5132
RH
1939fi
1940
a0da8069
NN
1941use_gnu_as=
1942# Make sure we don't let GNU as be added if we didn't want it.
1943if test x$with_gnu_as = xno ; then
1944 use_gnu_as=no
1945 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1946fi
1947
c6b750e1 1948# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1949# it's not even worth trying to configure, much less build, that tool.
252b5132 1950
a0da8069
NN
1951case ${with_x} in
1952 yes | "") ;; # the default value for this tree is that X11 is available
1953 no)
675c6968 1954 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 1955 # We won't be able to build gdbtk without X.
c6b750e1 1956 enable_gdbtk=no
a0da8069
NN
1957 ;;
1958 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1959esac
252b5132 1960
a0da8069 1961# Some tools are only suitable for building in a "native" situation.
c6b750e1 1962# Remove these if host!=target.
701628f5 1963native_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 1964
a0da8069
NN
1965# Similarly, some are only suitable for cross toolchains.
1966# Remove these if host=target.
1967cross_only="target-libgloss target-newlib target-opcodes"
1968
1969case $is_cross_compiler in
1970 no) skipdirs="${skipdirs} ${cross_only}" ;;
1971 yes) skipdirs="${skipdirs} ${native_only}" ;;
1972esac
252b5132 1973
a0da8069
NN
1974# If both --with-headers and --with-libs are specified, default to
1975# --without-newlib.
32be62b5
RS
1976if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1977 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
1978 if test x"${with_newlib}" = x ; then
1979 with_newlib=no
1980 fi
252b5132
RH
1981fi
1982
a0da8069
NN
1983# Recognize --with-newlib/--without-newlib.
1984case ${with_newlib} in
1985 no) skipdirs="${skipdirs} target-newlib" ;;
1986 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1987esac
252b5132 1988
a0da8069 1989# Configure extra directories which are host specific
252b5132 1990
a0da8069
NN
1991case "${host}" in
1992 *-cygwin*)
1993 configdirs="$configdirs libtermcap" ;;
1994esac
252b5132 1995
59f7ec45
HPN
1996# A target can indicate whether a language isn't supported for some reason.
1997# Only spaces may be used in this macro; not newlines or tabs.
1998unsupported_languages=
1999
c6b750e1 2000# Remove more programs from consideration, based on the host or
a0da8069
NN
2001# target this usually means that a port of the program doesn't
2002# exist yet.
252b5132 2003
a0da8069
NN
2004case "${host}" in
2005 hppa*64*-*-*)
2006 noconfigdirs="$noconfigdirs byacc"
2007 ;;
ec11bdc6 2008 i[3456789]86-*-vsta)
675c6968 2009 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2010 ;;
ec11bdc6 2011 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2012 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2013 ;;
2d1e8239
NC
2014 x86_64-*-mingw*)
2015 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2016 ;;
ec11bdc6 2017 i[3456789]86-*-mingw32*)
675c6968 2018 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2019 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2020 ;;
ec11bdc6 2021 i[3456789]86-*-beos*)
675c6968 2022 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2023 ;;
a0da8069 2024 *-*-cygwin*)
a92834c8 2025 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2026 ;;
2027 *-*-netbsd*)
a92834c8 2028 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2029 ;;
2030 ppc*-*-pe)
675c6968 2031 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2032 ;;
2033 powerpc-*-beos*)
675c6968 2034 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2035 ;;
a0da8069 2036esac
252b5132 2037
4b1cb4fe 2038
a2592b1b
DD
2039# Check whether --enable-libada or --disable-libada was given.
2040if test "${enable_libada+set}" = set; then
2041 enableval="$enable_libada"
2042 ENABLE_LIBADA=$enableval
2043else
2044 ENABLE_LIBADA=yes
c6b750e1 2045fi;
a2592b1b 2046if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2047 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2048fi
2049
5f128533
KH
2050# Check whether --enable-libssp or --disable-libssp was given.
2051if test "${enable_libssp+set}" = set; then
2052 enableval="$enable_libssp"
2053 ENABLE_LIBSSP=$enableval
2054else
2055 ENABLE_LIBSSP=yes
c6b750e1 2056fi;
5f128533 2057
a0da8069
NN
2058# Save it here so that, even in case of --enable-libgcj, if the Java
2059# front-end isn't enabled, we still get libgcj disabled.
2060libgcj_saved=$libgcj
2061case $enable_libgcj in
2062yes)
2063 # If we reset it here, it won't get added to noconfigdirs in the
2064 # target-specific build rules, so it will be forcibly enabled
2065 # (unless the Java language itself isn't enabled).
2066 libgcj=
2067 ;;
2068no)
2069 # Make sure we get it printed in the list of not supported target libs.
2070 noconfigdirs="$noconfigdirs ${libgcj}"
2071 ;;
2072esac
252b5132 2073
4b1cb4fe 2074
a6df5a19
PB
2075# Disable libmudflap on some systems.
2076if test x$enable_libmudflap = x ; then
3e707e94 2077 case "${target}" in
7c3e1d12 2078 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-linux-uclibc* | *-*-uclinux*)
3d6dfe0f 2079 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2080 ;;
2081 *-*-freebsd*)
2082 # Enable libmudflap by default in FreeBSD.
2083 ;;
2084 *)
2085 # Disable it by default everywhere else.
2086 noconfigdirs="$noconfigdirs target-libmudflap"
2087 ;;
2088 esac
a6df5a19 2089fi
4b1cb4fe 2090
a6df5a19
PB
2091# Disable libgomp on non POSIX hosted systems.
2092if test x$enable_libgomp = x ; then
b3ded179
PB
2093 # Enable libgomp by default on hosted POSIX systems.
2094 case "${target}" in
2095 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2096 ;;
2097 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2098 ;;
64ce424c 2099 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2100 ;;
2101 *-*-darwin* | *-*-aix*)
2102 ;;
2103 *)
2104 noconfigdirs="$noconfigdirs target-libgomp"
2105 ;;
2106 esac
a6df5a19 2107fi
b3ded179 2108
4b1cb4fe 2109
a0da8069
NN
2110case "${target}" in
2111 *-*-chorusos)
54d1c879 2112 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2113 ;;
790c0838 2114 powerpc-*-darwin* | i[3456789]86-*-darwin*)
b3f16a9b 2115 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 2116 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2117 ;;
04d1ab34 2118 *-*-darwin*)
d320aacb 2119 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2120 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2121 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2122 ;;
a0da8069 2123 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2124 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2125 ;;
de0b4a87 2126 *-*-freebsd*)
4b1cb4fe
DD
2127 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2128 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2129 && test -f /usr/local/include/gmp.h; then
2130 with_gmp=/usr/local
2131 fi
2132
2133 # Skip some stuff that's unsupported on some FreeBSD configurations.
2134 case "${target}" in
2135 i*86-*-*) ;;
2136 alpha*-*-*) ;;
2137 *)
54d1c879 2138 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2139 ;;
2140 esac
2141 ;;
f8a495c8
NC
2142 *-*-kaos*)
2143 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2144 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2145 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2146 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2147 noconfigdirs="$noconfigdirs target-libgloss"
2148 ;;
a0da8069
NN
2149 *-*-netbsd*)
2150 # Skip some stuff on all NetBSD configurations.
2151 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2152
2153 # Skip some stuff that's unsupported on some NetBSD configurations.
2154 case "${target}" in
2155 i*86-*-netbsdelf*) ;;
5b474aa8 2156 arm*-*-netbsdelf*) ;;
a0da8069 2157 *)
54d1c879 2158 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2159 ;;
2160 esac
2161 ;;
2a3124ca 2162 *-*-netware*)
54d1c879 2163 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2164 ;;
2165 *-*-rtems*)
54d1c879 2166 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2167 ;;
1587117a
EC
2168 # The tpf target doesn't support gdb yet.
2169 *-*-tpf*)
54d1c879 2170 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2171 ;;
c1968181 2172 *-*-uclinux*)
54d1c879 2173 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2174 ;;
a0da8069 2175 *-*-vxworks*)
54d1c879 2176 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2177 ;;
2178 alpha*-dec-osf*)
2179 # ld works, but does not support shared libraries.
2180 # newlib is not 64 bit ready. I'm not sure about fileutils.
2181 # gas doesn't generate exception information.
2182 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2183 ;;
2184 alpha*-*-*vms*)
54d1c879 2185 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2186 ;;
2187 alpha*-*-linux*)
2188 # newlib is not 64 bit ready
2189 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2190 ;;
a0da8069
NN
2191 alpha*-*-*)
2192 # newlib is not 64 bit ready
54d1c879 2193 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2194 ;;
4a18bd6b 2195 am33_2.0-*-linux*)
54d1c879 2196 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2197 ;;
a0da8069 2198 sh-*-linux*)
54d1c879 2199 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2200 ;;
a0da8069 2201 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2202 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2203 noconfigdirs="$noconfigdirs target-examples"
2204 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2205 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2206 noconfigdirs="$noconfigdirs expect dejagnu"
2207 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2208 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2209 noconfigdirs="$noconfigdirs target-newlib"
2210 case "${host}" in
2211 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2212 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2213 ;;
2214 esac
2215 ;;
2216 arc-*-*)
54d1c879 2217 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2218 ;;
caeba88f 2219 arm-semi-aof )
caeba88f 2220 ;;
a0da8069 2221 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2222 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2223 ;;
11b04d1f 2224 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069
NN
2225 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2226 ;;
bd70a46f
KH
2227 arm*-*-linux-gnueabi)
2228 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2229 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
a5b3b4dd
DD
2230 case ${with_newlib} in
2231 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2232 esac
bd70a46f 2233 ;;
df4a6958 2234 arm*-*-symbianelf*)
54d1c879 2235 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
df4a6958 2236 ;;
a0da8069 2237 arm-*-pe*)
54d1c879 2238 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2239 ;;
a0da8069 2240 thumb-*-coff)
54d1c879 2241 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2242 ;;
2243 thumb-*-elf)
54d1c879 2244 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2245 ;;
a0da8069 2246 thumb-*-pe)
54d1c879 2247 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2248 ;;
2249 arm-*-riscix*)
54d1c879 2250 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2251 ;;
2252 avr-*-*)
54d1c879 2253 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2254 ;;
376a0e54 2255 bfin-*-*)
00d89675 2256 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2257 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2258 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2259 fi
2260 ;;
a0da8069 2261 c4x-*-* | tic4x-*-*)
54d1c879 2262 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2263 ;;
2264 c54x*-*-* | tic54x-*-*)
54d1c879 2265 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2266 ;;
c7e66c6d 2267 cris-*-* | crisv32-*-*)
59f7ec45 2268 unsupported_languages="$unsupported_languages java"
c7e66c6d 2269 case "${target}" in
2faa2958 2270 *-*-aout)
096f7d00 2271 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2272 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2273 *-*-elf)
096f7d00 2274 unsupported_languages="$unsupported_languages fortran"
5e818318 2275 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2276 *-*-linux*)
5e818318 2277 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2278 *)
096f7d00 2279 unsupported_languages="$unsupported_languages fortran"
54d1c879 2280 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2281 esac
a0da8069 2282 ;;
3e707e94 2283 crx-*-*)
54d1c879 2284 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2285 ;;
a0da8069 2286 d10v-*-*)
54d1c879 2287 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2288 ;;
2289 d30v-*-*)
54d1c879 2290 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2291 ;;
2292 fr30-*-elf*)
54d1c879 2293 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2294 ;;
2295 frv-*-*)
54d1c879 2296 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2297 ;;
2298 h8300*-*-*)
54d1c879 2299 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2300 ;;
2301 h8500-*-*)
54d1c879 2302 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2303 ;;
caeba88f 2304 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2305 ;;
a0da8069
NN
2306 hppa*64*-*-linux* | parisc*64*-*-linux*)
2307 # In this case, it's because the hppa64-linux target is for
2308 # the kernel only at this point and has no libc, and thus no
2309 # headers, crt*.o, etc., all of which are needed by these.
2310 noconfigdirs="$noconfigdirs target-zlib"
2311 ;;
5dcac624
DA
2312 parisc*-*-linux* | hppa*-*-linux*)
2313 ;;
a0da8069 2314 hppa*-*-*elf* | \
a0da8069
NN
2315 hppa*-*-lites* | \
2316 hppa*-*-openbsd* | \
2317 hppa*64*-*-*)
54d1c879 2318 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2319 ;;
2320 hppa*-hp-hpux11*)
2321 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069
NN
2322 ;;
2323 hppa*-*-*)
2324 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2325 # build on HP-UX 10.20.
54d1c879 2326 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2327 ;;
b07c2aad 2328 i960-*-*)
54d1c879 2329 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2330 ;;
a0da8069
NN
2331 ia64*-*-elf*)
2332 # No gdb support yet.
675c6968 2333 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2334 ;;
2335 ia64*-**-hpux*)
2336 # No gdb or ld support yet.
54d1c879 2337 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2338 ;;
caeba88f 2339 i370-*-opened*)
caeba88f 2340 ;;
ec11bdc6 2341 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2342 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2343 ;;
ec11bdc6 2344 i[3456789]86-*-linux*)
a0da8069
NN
2345 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2346 # not build java stuff by default.
2347 case "${target}" in
2348 *-*-*libc1*)
54d1c879 2349 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2350 esac
2351
2352 # This section makes it possible to build newlib natively on linux.
2353 # If we are using a cross compiler then don't configure newlib.
2354 if test x${is_cross_compiler} != xno ; then
bba45b8b 2355 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2356 fi
2357 noconfigdirs="$noconfigdirs target-libgloss"
2358 # If we are not using a cross compiler, do configure newlib.
2359 # Note however, that newlib will only be configured in this situation
2360 # if the --with-newlib option has been given, because otherwise
2361 # 'target-newlib' will appear in skipdirs.
2362 ;;
ec11bdc6 2363 i[3456789]86-*-mingw32*)
45055374
CV
2364 target_configdirs="$target_configdirs target-winsup"
2365 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2366 ;;
2d1e8239
NC
2367 x86_64-*-mingw*)
2368 target_configdirs="$target_configdirs target-winsup"
2369 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2370 ;;
a0da8069
NN
2371 *-*-cygwin*)
2372 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2373 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2374 # always build newlib if winsup directory is present.
45055374 2375 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2376 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2377 elif test -d "$srcdir/newlib"; then
45055374 2378 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2379 fi
c6b750e1 2380 ;;
caeba88f
AL
2381 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2382 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2383 ;;
ec11bdc6 2384 i[3456789]86-*-pe)
54d1c879 2385 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2386 ;;
ec11bdc6 2387 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2388 # The linker does not yet know about weak symbols in COFF,
2389 # and is not configured to handle mixed ELF and COFF.
54d1c879 2390 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2391 ;;
ec11bdc6 2392 i[3456789]86-*-sco*)
54d1c879 2393 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2394 ;;
ec11bdc6 2395 i[3456789]86-*-solaris2*)
a0da8069
NN
2396 noconfigdirs="$noconfigdirs target-libgloss"
2397 ;;
ec11bdc6 2398 i[3456789]86-*-sysv4*)
54d1c879 2399 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2400 ;;
ec11bdc6 2401 i[3456789]86-*-beos*)
54d1c879 2402 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2403 ;;
b59bea8a 2404 i[3456789]86-*-rdos*)
2429c060
PB
2405 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2406 ;;
b07c2aad 2407 m32r-*-*)
54d1c879 2408 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2409 ;;
a0da8069 2410 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2411 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2412 ;;
2413 m68k-*-elf*)
54d1c879 2414 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2415 ;;
2416 m68k-*-coff*)
54d1c879 2417 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2418 ;;
2419 mcore-*-pe*)
2420 # The EPOC C++ environment does not support exceptions or rtti,
2421 # and so building libstdc++-v3 tends not to always work.
2422 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2423 ;;
2424 mmix-*-*)
59f7ec45 2425 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2426 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2427 ;;
2428 mn10200-*-*)
54d1c879 2429 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2430 ;;
2431 mn10300-*-*)
54d1c879 2432 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2433 ;;
4970f871 2434 mt-*-*)
cdb9b172
AH
2435 noconfigdirs="$noconfigdirs sim"
2436 ;;
a0da8069
NN
2437 powerpc-*-aix*)
2438 # copied from rs6000-*-* entry
54d1c879 2439 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2440 ;;
2441 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2442 target_configdirs="$target_configdirs target-winsup"
54d1c879 2443 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2444 # always build newlib.
2445 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2446 ;;
2447 # This is temporary until we can link against shared libraries
2448 powerpcle-*-solaris*)
54d1c879 2449 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
a0da8069
NN
2450 ;;
2451 powerpc-*-beos*)
54d1c879 2452 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2453 ;;
a0da8069 2454 powerpc-*-eabi)
54d1c879 2455 noconfigdirs="$noconfigdirs ${libgcj}"
caeba88f
AL
2456 ;;
2457 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
a0da8069 2458 ;;
a0da8069 2459 rs6000-*-lynxos*)
54d1c879 2460 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2461 ;;
2462 rs6000-*-aix*)
54d1c879 2463 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2464 ;;
2465 rs6000-*-*)
54d1c879 2466 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2467 ;;
2468 m68k-apollo-*)
54d1c879 2469 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069
NN
2470 ;;
2471 mips*-*-irix5*)
54d1c879 2472 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2473 ;;
2474 mips*-*-irix6*)
a0da8069
NN
2475 # Linking libjava exceeds command-line length limits on at least
2476 # IRIX 6.2, but not on IRIX 6.5.
2477 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2478 # <oldham@codesourcery.com>
54d1c879 2479 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2480 ;;
a0da8069 2481 mips*-*-bsd*)
54d1c879 2482 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2483 ;;
1712ab83 2484 mips64*-*-linux*)
f3529cf1 2485 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1712ab83 2486 ;;
a0da8069
NN
2487 mips*-*-linux*)
2488 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2489 ;;
2490 mips*-*-*)
54d1c879 2491 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2492 ;;
2493 romp-*-*)
54d1c879 2494 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2495 ;;
dbf85af7 2496 sh-*-* | sh64-*-*)
a0da8069 2497 case "${host}" in
ec11bdc6
DD
2498 i[3456789]86-*-vsta) ;; # don't add gprof back in
2499 i[3456789]86-*-go32*) ;; # don't add gprof back in
2500 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2501 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2502 esac
54d1c879 2503 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2504 ;;
a0da8069 2505 sparc-*-elf*)
54d1c879 2506 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2507 ;;
2508 sparc64-*-elf*)
54d1c879 2509 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2510 ;;
2511 sparclite-*-*)
54d1c879 2512 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2513 ;;
2514 sparc-*-sunos4*)
54d1c879 2515 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2516 if test x${is_cross_compiler} != xno ; then
2517 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2518 else
2519 use_gnu_ld=no
2520 fi
2521 ;;
e3c770b1 2522 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2523 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2524 ;;
a0da8069
NN
2525 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2526 ;;
2839fe5d
BE
2527 spu-*-*)
2528 skipdirs="target-libssp"
2529 ;;
a0da8069 2530 v810-*-*)
54d1c879 2531 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2532 ;;
2533 v850-*-*)
54d1c879 2534 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2535 ;;
2536 v850e-*-*)
54d1c879 2537 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2538 ;;
2539 v850ea-*-*)
54d1c879 2540 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2541 ;;
2542 vax-*-vms)
54d1c879 2543 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2544 ;;
2545 vax-*-*)
54d1c879 2546 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2547 ;;
fbd1054d 2548 xtensa-*-*)
54d1c879 2549 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2550 ;;
a0da8069 2551 ip2k-*-*)
54d1c879 2552 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2553 ;;
de0b4a87 2554 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2555 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2556 ;;
2557 *-*-lynxos*)
54d1c879 2558 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2559 ;;
a0da8069 2560 *-*-*)
54d1c879 2561 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2562 ;;
2563esac
252b5132 2564
a0da8069
NN
2565# If we aren't building newlib, then don't build libgloss, since libgloss
2566# depends upon some newlib header files.
2567case "${noconfigdirs}" in
2568 *target-libgloss*) ;;
2569 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2570esac
2571
a0da8069
NN
2572# Work in distributions that contain no compiler tools, like Autoconf.
2573tentative_cc=""
2574host_makefile_frag=/dev/null
2575if test -d ${srcdir}/config ; then
2576case "${host}" in
2577 m68k-hp-hpux*)
2578 # Avoid "too much defining" errors from HPUX compiler.
2579 tentative_cc="cc -Wp,-H256000"
2580 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2581 # If it's HP/UX ar, this should be harmless.
2582 RANLIB="ar ts"
2583 ;;
2584 m68k-apollo-sysv*)
2585 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2586 ;;
2587 m68k-apollo-bsd*)
2588 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2589 # chokes on bfd, the compiler won't let you assign integers to enums, and
2590 # other problems. Defining CC to gcc is a questionable way to say "don't use
2591 # the apollo compiler" (the preferred version of GCC could be called cc,
2592 # or whatever), but I'm not sure leaving CC as cc is any better...
2593 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2594 # Used to have BISON=yacc.
2595 tentative_cc=gcc
2596 ;;
2597 m88k-dg-dgux*)
2598 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2599 ;;
2600 m88k-harris-cxux*)
2601 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2602 tentative_cc="cc -Xa"
2603 host_makefile_frag="config/mh-cxux"
2604 ;;
2605 m88k-motorola-sysv*)
2606 ;;
2607 mips*-dec-ultrix*)
2608 tentative_cc="cc -Wf,-XNg1000"
2609 host_makefile_frag="config/mh-decstation"
2610 ;;
2611 mips*-nec-sysv4*)
2612 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2613 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2614 host_makefile_frag="config/mh-necv4"
2615 ;;
2616 mips*-sgi-irix4*)
2617 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2618 # environment. Also bump switch table size so that cp-parse will
2619 # compile. Bump string length limit so linker builds.
2620 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2621 ;;
2622 mips*-*-sysv4*)
2623 host_makefile_frag="config/mh-sysv4"
2624 ;;
2625 mips*-*-sysv*)
2626 # This is for a MIPS running RISC/os 4.52C.
2627
2628 # This is needed for GDB, but needs to be in the top-level make because
2629 # if a library is compiled with the bsd headers and gets linked with the
2630 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2631 # a different size).
2632 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2633 # known except to select the sysv environment. Could we use /proc instead?
2634 # These "sysv environments" and "bsd environments" often end up being a pain.
2635 #
2636 # This is not part of CFLAGS because perhaps not all C compilers have this
2637 # option.
2638 tentative_cc="cc -systype sysv"
2639 ;;
2640 i370-ibm-opened*)
2641 tentative_cc="c89"
2642 ;;
ec11bdc6 2643 i[3456789]86-*-sysv5*)
a0da8069
NN
2644 host_makefile_frag="config/mh-sysv5"
2645 ;;
ec11bdc6 2646 i[3456789]86-*-dgux*)
a0da8069
NN
2647 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2648 host_makefile_frag="config/mh-dgux386"
2649 ;;
ec11bdc6 2650 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2651 # The MetaWare compiler will generate a copyright message unless you
2652 # turn it off by adding the -Hnocopyr flag.
2653 tentative_cc="cc -Hnocopyr"
2654 ;;
ec11bdc6 2655 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2656 # for an NCR 3000 (i486/SVR4) system.
2657 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2658 # This compiler not only emits obnoxious copyright messages every time
2659 # you run it, but it chokes and dies on a whole bunch of GNU source
2660 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2661 tentative_cc="/usr/ccs/ATT/cc"
2662 host_makefile_frag="config/mh-ncr3000"
2663 ;;
ec11bdc6 2664 i[3456789]86-*-sco3.2v5*)
a0da8069 2665 ;;
ec11bdc6 2666 i[3456789]86-*-sco*)
a0da8069
NN
2667 # The native C compiler botches some simple uses of const. Unfortunately,
2668 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2669 tentative_cc="cc -Dconst="
2670 host_makefile_frag="config/mh-sco"
2671 ;;
ec11bdc6 2672 i[3456789]86-*-udk*)
a0da8069
NN
2673 host_makefile_frag="config/mh-sysv5"
2674 ;;
ec11bdc6 2675 i[3456789]86-*-solaris2*)
a0da8069
NN
2676 host_makefile_frag="config/mh-sysv4"
2677 ;;
ec11bdc6 2678 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2679 host_makefile_frag="config/mh-djgpp"
2680 ;;
2681 *-cygwin*)
2682 host_makefile_frag="config/mh-cygwin"
2683 ;;
2684 *-mingw32*)
a0da8069 2685 ;;
2d1e8239
NC
2686 *-mingw64*)
2687 ;;
a0da8069
NN
2688 *-interix*)
2689 host_makefile_frag="config/mh-interix"
2690 ;;
2691 vax-*-ultrix2*)
2692 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2693 tentative_cc=gcc
2694 ;;
2695 *-*-solaris2*)
2696 host_makefile_frag="config/mh-solaris"
2697 ;;
2698 m68k-sun-sunos*)
2699 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2700 # without overflowing the jump tables (-J says to use a 32 bit table)
2701 tentative_cc="cc -J"
2702 ;;
2703 *-hp-hpux*)
2704 tentative_cc="cc -Wp,-H256000"
2705 ;;
2706 *-*-hiux*)
2707 tentative_cc="cc -Wp,-H256000"
2708 ;;
2709 rs6000-*-lynxos*)
2710 # /bin/cc is less than useful for our purposes. Always use GCC
2711 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2712 host_makefile_frag="config/mh-lynxrs6k"
2713 ;;
0df3d27f
PB
2714 powerpc-*-darwin*)
2715 host_makefile_frag="config/mh-ppc-darwin"
2716 ;;
f6d183c0
PB
2717 powerpc-*-aix*)
2718 host_makefile_frag="config/mh-ppc-aix"
2719 ;;
2720 rs6000-*-aix*)
2721 host_makefile_frag="config/mh-ppc-aix"
2722 ;;
a0da8069
NN
2723 *-*-lynxos*)
2724 # /bin/cc is less than useful for our purposes. Always use GCC
2725 tentative_cc="/bin/gcc"
2726 ;;
2727 *-*-sysv4*)
2728 host_makefile_frag="config/mh-sysv4"
2729 ;;
fe69863c
DD
2730 # This is placed last to prevent interfering with the cases above.
2731 i[3456789]86-*-*)
2732 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2733 host_makefile_frag="config/mh-x86omitfp"
2734 ;;
a0da8069
NN
2735esac
2736fi
2737
9e07f89d
NN
2738# If we aren't going to be using gcc, see if we can extract a definition
2739# of CC from the fragment.
2740# Actually, use the 'pre-extracted' version above.
2741if test -z "${CC}" && test "${build}" = "${host}" ; then
2742 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2743 found=
2744 for dir in $PATH; do
2745 test -z "$dir" && dir=.
2746 if test -f $dir/gcc; then
2747 found=yes
2748 break
2749 fi
2750 done
2751 IFS="$save_ifs"
2752 if test -z "${found}" && test -n "${tentative_cc}" ; then
2753 CC=$tentative_cc
2754 fi
2755fi
2756
2757if test "${build}" != "${host}" ; then
9e07f89d 2758 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
9e07f89d 2759else
512b7dfb 2760 CC_FOR_BUILD="\$(CC)"
18f6b6ee
PB
2761fi
2762
2763ac_ext=c
c6b750e1
DJ
2764ac_cpp='$CPP $CPPFLAGS'
2765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768if test -n "$ac_tool_prefix"; then
2769 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2770set dummy ${ac_tool_prefix}gcc; ac_word=$2
2771echo "$as_me:$LINENO: checking for $ac_word" >&5
2772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2773if test "${ac_cv_prog_CC+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2775else
2776 if test -n "$CC"; then
2777 ac_cv_prog_CC="$CC" # Let the user override the test.
2778else
2779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780for as_dir in $PATH
2781do
2782 IFS=$as_save_IFS
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 break 2
2789 fi
2790done
2791done
2792
2793fi
2794fi
2795CC=$ac_cv_prog_CC
2796if test -n "$CC"; then
2797 echo "$as_me:$LINENO: result: $CC" >&5
2798echo "${ECHO_T}$CC" >&6
2799else
2800 echo "$as_me:$LINENO: result: no" >&5
2801echo "${ECHO_T}no" >&6
2802fi
2803
2804fi
2805if test -z "$ac_cv_prog_CC"; then
2806 ac_ct_CC=$CC
6a9cf61e 2807 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2808set dummy gcc; ac_word=$2
c6b750e1
DJ
2809echo "$as_me:$LINENO: checking for $ac_word" >&5
2810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2811if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2812 echo $ECHO_N "(cached) $ECHO_C" >&6
2813else
2814 if test -n "$ac_ct_CC"; then
2815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2816else
2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818for as_dir in $PATH
2819do
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2824 ac_cv_prog_ac_ct_CC="gcc"
2825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2827 fi
2828done
2829done
2830
2831fi
2832fi
2833ac_ct_CC=$ac_cv_prog_ac_ct_CC
2834if test -n "$ac_ct_CC"; then
2835 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2836echo "${ECHO_T}$ac_ct_CC" >&6
2837else
2838 echo "$as_me:$LINENO: result: no" >&5
2839echo "${ECHO_T}no" >&6
2840fi
2841
2842 CC=$ac_ct_CC
2843else
2844 CC="$ac_cv_prog_CC"
2845fi
2846
2847if test -z "$CC"; then
2848 if test -n "$ac_tool_prefix"; then
2849 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2850set dummy ${ac_tool_prefix}cc; ac_word=$2
2851echo "$as_me:$LINENO: checking for $ac_word" >&5
2852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2853if test "${ac_cv_prog_CC+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2855else
2856 if test -n "$CC"; then
2857 ac_cv_prog_CC="$CC" # Let the user override the test.
2858else
c6b750e1
DJ
2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860for as_dir in $PATH
2861do
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_CC="${ac_tool_prefix}cc"
2867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 break 2
2869 fi
2870done
2871done
2872
9e07f89d
NN
2873fi
2874fi
c6b750e1 2875CC=$ac_cv_prog_CC
9e07f89d 2876if test -n "$CC"; then
c6b750e1
DJ
2877 echo "$as_me:$LINENO: result: $CC" >&5
2878echo "${ECHO_T}$CC" >&6
9e07f89d 2879else
c6b750e1
DJ
2880 echo "$as_me:$LINENO: result: no" >&5
2881echo "${ECHO_T}no" >&6
9e07f89d
NN
2882fi
2883
c6b750e1
DJ
2884fi
2885if test -z "$ac_cv_prog_CC"; then
2886 ac_ct_CC=$CC
2887 # Extract the first word of "cc", so it can be a program name with args.
2888set dummy cc; ac_word=$2
2889echo "$as_me:$LINENO: checking for $ac_word" >&5
2890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2891if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2893else
2894 if test -n "$ac_ct_CC"; then
2895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2896else
2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898for as_dir in $PATH
2899do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904 ac_cv_prog_ac_ct_CC="cc"
2905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2907 fi
2908done
2909done
2910
2911fi
2912fi
2913ac_ct_CC=$ac_cv_prog_ac_ct_CC
2914if test -n "$ac_ct_CC"; then
2915 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2916echo "${ECHO_T}$ac_ct_CC" >&6
2917else
2918 echo "$as_me:$LINENO: result: no" >&5
2919echo "${ECHO_T}no" >&6
2920fi
2921
2922 CC=$ac_ct_CC
2923else
2924 CC="$ac_cv_prog_CC"
2925fi
2926
2927fi
9e07f89d
NN
2928if test -z "$CC"; then
2929 # Extract the first word of "cc", so it can be a program name with args.
2930set dummy cc; ac_word=$2
c6b750e1
DJ
2931echo "$as_me:$LINENO: checking for $ac_word" >&5
2932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2933if test "${ac_cv_prog_CC+set}" = set; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2935else
2936 if test -n "$CC"; then
2937 ac_cv_prog_CC="$CC" # Let the user override the test.
2938else
9e07f89d 2939 ac_prog_rejected=no
c6b750e1
DJ
2940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941for as_dir in $PATH
2942do
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2948 ac_prog_rejected=yes
2949 continue
2950 fi
2951 ac_cv_prog_CC="cc"
2952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 break 2
2954 fi
2955done
2956done
2957
9e07f89d
NN
2958if test $ac_prog_rejected = yes; then
2959 # We found a bogon in the path, so make sure we never use it.
2960 set dummy $ac_cv_prog_CC
2961 shift
c6b750e1 2962 if test $# != 0; then
9e07f89d
NN
2963 # We chose a different compiler from the bogus one.
2964 # However, it has the same basename, so the bogon will be chosen
2965 # first if we set CC to just the basename; use the full file name.
2966 shift
c6b750e1 2967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
2968 fi
2969fi
2970fi
2971fi
c6b750e1 2972CC=$ac_cv_prog_CC
9e07f89d 2973if test -n "$CC"; then
c6b750e1
DJ
2974 echo "$as_me:$LINENO: result: $CC" >&5
2975echo "${ECHO_T}$CC" >&6
9e07f89d 2976else
c6b750e1
DJ
2977 echo "$as_me:$LINENO: result: no" >&5
2978echo "${ECHO_T}no" >&6
9e07f89d
NN
2979fi
2980
c6b750e1
DJ
2981fi
2982if test -z "$CC"; then
2983 if test -n "$ac_tool_prefix"; then
2984 for ac_prog in cl
2985 do
2986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2987set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2988echo "$as_me:$LINENO: checking for $ac_word" >&5
2989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2990if test "${ac_cv_prog_CC+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2992else
2993 if test -n "$CC"; then
2994 ac_cv_prog_CC="$CC" # Let the user override the test.
2995else
c6b750e1
DJ
2996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997for as_dir in $PATH
2998do
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
376a0e54 3006 fi
c6b750e1
DJ
3007done
3008done
cac3d6c4 3009
c6b750e1
DJ
3010fi
3011fi
3012CC=$ac_cv_prog_CC
3013if test -n "$CC"; then
3014 echo "$as_me:$LINENO: result: $CC" >&5
3015echo "${ECHO_T}$CC" >&6
cac3d6c4 3016else
c6b750e1
DJ
3017 echo "$as_me:$LINENO: result: no" >&5
3018echo "${ECHO_T}no" >&6
9e07f89d 3019fi
cac3d6c4 3020
c6b750e1
DJ
3021 test -n "$CC" && break
3022 done
cac3d6c4 3023fi
c6b750e1
DJ
3024if test -z "$CC"; then
3025 ac_ct_CC=$CC
3026 for ac_prog in cl
3027do
3028 # Extract the first word of "$ac_prog", so it can be a program name with args.
3029set dummy $ac_prog; ac_word=$2
3030echo "$as_me:$LINENO: checking for $ac_word" >&5
3031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3032if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3034else
c6b750e1
DJ
3035 if test -n "$ac_ct_CC"; then
3036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3037else
c6b750e1
DJ
3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039for as_dir in $PATH
3040do
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045 ac_cv_prog_ac_ct_CC="$ac_prog"
3046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 break 2
3048 fi
3049done
3050done
3051
cac3d6c4
CM
3052fi
3053fi
c6b750e1
DJ
3054ac_ct_CC=$ac_cv_prog_ac_ct_CC
3055if test -n "$ac_ct_CC"; then
3056 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3057echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3058else
c6b750e1
DJ
3059 echo "$as_me:$LINENO: result: no" >&5
3060echo "${ECHO_T}no" >&6
cac3d6c4 3061fi
376a0e54 3062
c6b750e1
DJ
3063 test -n "$ac_ct_CC" && break
3064done
3065
3066 CC=$ac_ct_CC
3067fi
3068
3069fi
3070
3071
3072test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3073See \`config.log' for more details." >&5
3074echo "$as_me: error: no acceptable C compiler found in \$PATH
3075See \`config.log' for more details." >&2;}
3076 { (exit 1); exit 1; }; }
3077
3078# Provide some information about the compiler.
3079echo "$as_me:$LINENO:" \
3080 "checking for C compiler version" >&5
3081ac_compiler=`set X $ac_compile; echo $2`
3082{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3083 (eval $ac_compiler --version </dev/null >&5) 2>&5
3084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }
3087{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3088 (eval $ac_compiler -v </dev/null >&5) 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }
3092{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3093 (eval $ac_compiler -V </dev/null >&5) 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }
3097
3098cat >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
3113ac_clean_files_save=$ac_clean_files
3114ac_clean_files="$ac_clean_files a.out a.exe b.out"
3115# Try to create an executable without -o first, disregard a.out.
3116# It will help us diagnose broken compilers, and finding out an intuition
3117# of exeext.
3118echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3119echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3120ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3121if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3122 (eval $ac_link_default) 2>&5
3123 ac_status=$?
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }; then
3126 # Find the output, starting from the most likely. This scheme is
3127# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3128# resort.
3129
3130# Be careful to initialize this variable, since it used to be cached.
3131# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3132ac_cv_exeext=
3133# b.out is created by i960 compilers.
3134for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3135do
3136 test -f "$ac_file" || continue
3137 case $ac_file in
3138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3139 ;;
3140 conftest.$ac_ext )
3141 # This is the source file.
3142 ;;
3143 [ab].out )
3144 # We found the default executable, but exeext='' is most
3145 # certainly right.
3146 break;;
3147 *.* )
3148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3149 # FIXME: I believe we export ac_cv_exeext for Libtool,
3150 # but it would be cool to find out if it's true. Does anybody
3151 # maintain Libtool? --akim.
3152 export ac_cv_exeext
3153 break;;
3154 * )
3155 break;;
3156 esac
3157done
3158else
3159 echo "$as_me: failed program was:" >&5
3160sed 's/^/| /' conftest.$ac_ext >&5
3161
3162{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3163See \`config.log' for more details." >&5
3164echo "$as_me: error: C compiler cannot create executables
3165See \`config.log' for more details." >&2;}
3166 { (exit 77); exit 77; }; }
3167fi
3168
3169ac_exeext=$ac_cv_exeext
3170echo "$as_me:$LINENO: result: $ac_file" >&5
3171echo "${ECHO_T}$ac_file" >&6
3172
3173# Check the compiler produces executables we can run. If not, either
3174# the compiler is broken, or we cross compile.
3175echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3176echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3177# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3178# If not cross compiling, check that we can run a simple program.
3179if test "$cross_compiling" != yes; then
3180 if { ac_try='./$ac_file'
3181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182 (eval $ac_try) 2>&5
3183 ac_status=$?
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; }; then
3186 cross_compiling=no
3187 else
3188 if test "$cross_compiling" = maybe; then
3189 cross_compiling=yes
3190 else
3191 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3192If you meant to cross compile, use \`--host'.
3193See \`config.log' for more details." >&5
3194echo "$as_me: error: cannot run C compiled programs.
3195If you meant to cross compile, use \`--host'.
3196See \`config.log' for more details." >&2;}
3197 { (exit 1); exit 1; }; }
3198 fi
3199 fi
3200fi
3201echo "$as_me:$LINENO: result: yes" >&5
3202echo "${ECHO_T}yes" >&6
3203
3204rm -f a.out a.exe conftest$ac_cv_exeext b.out
3205ac_clean_files=$ac_clean_files_save
3206# Check the compiler produces executables we can run. If not, either
3207# the compiler is broken, or we cross compile.
3208echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3209echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3210echo "$as_me:$LINENO: result: $cross_compiling" >&5
3211echo "${ECHO_T}$cross_compiling" >&6
3212
3213echo "$as_me:$LINENO: checking for suffix of executables" >&5
3214echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3216 (eval $ac_link) 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; then
3220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3221# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3222# work properly (i.e., refer to `conftest.exe'), while it won't with
3223# `rm'.
3224for ac_file in conftest.exe conftest conftest.*; do
3225 test -f "$ac_file" || continue
3226 case $ac_file in
3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3229 export ac_cv_exeext
3230 break;;
3231 * ) break;;
3232 esac
3233done
3234else
3235 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3236See \`config.log' for more details." >&5
3237echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3238See \`config.log' for more details." >&2;}
3239 { (exit 1); exit 1; }; }
3240fi
3241
3242rm -f conftest$ac_cv_exeext
3243echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3244echo "${ECHO_T}$ac_cv_exeext" >&6
3245
3246rm -f conftest.$ac_ext
3247EXEEXT=$ac_cv_exeext
3248ac_exeext=$EXEEXT
3249echo "$as_me:$LINENO: checking for suffix of object files" >&5
3250echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3251if test "${ac_cv_objext+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253else
3254 cat >conftest.$ac_ext <<_ACEOF
3255/* confdefs.h. */
3256_ACEOF
3257cat confdefs.h >>conftest.$ac_ext
3258cat >>conftest.$ac_ext <<_ACEOF
3259/* end confdefs.h. */
3260
3261int
3262main ()
3263{
3264
3265 ;
3266 return 0;
3267}
3268_ACEOF
3269rm -f conftest.o conftest.obj
3270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3271 (eval $ac_compile) 2>&5
3272 ac_status=$?
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; then
3275 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3276 case $ac_file in
3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3278 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3279 break;;
3280 esac
3281done
cac3d6c4 3282else
c6b750e1
DJ
3283 echo "$as_me: failed program was:" >&5
3284sed 's/^/| /' conftest.$ac_ext >&5
3285
3286{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3287See \`config.log' for more details." >&5
3288echo "$as_me: error: cannot compute suffix of object files: cannot compile
3289See \`config.log' for more details." >&2;}
3290 { (exit 1); exit 1; }; }
3291fi
3292
3293rm -f conftest.$ac_cv_objext conftest.$ac_ext
3294fi
3295echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3296echo "${ECHO_T}$ac_cv_objext" >&6
3297OBJEXT=$ac_cv_objext
3298ac_objext=$OBJEXT
3299echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3300echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3301if test "${ac_cv_c_compiler_gnu+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3303else
3304 cat >conftest.$ac_ext <<_ACEOF
3305/* confdefs.h. */
3306_ACEOF
3307cat confdefs.h >>conftest.$ac_ext
3308cat >>conftest.$ac_ext <<_ACEOF
3309/* end confdefs.h. */
3310
3311int
3312main ()
3313{
3314#ifndef __GNUC__
3315 choke me
3316#endif
3317
3318 ;
3319 return 0;
3320}
3321_ACEOF
3322rm -f conftest.$ac_objext
3323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3324 (eval $ac_compile) 2>conftest.er1
3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -z "$ac_c_werror_flag"
3332 || test ! -s conftest.err'
3333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334 (eval $ac_try) 2>&5
3335 ac_status=$?
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; } &&
3338 { ac_try='test -s conftest.$ac_objext'
3339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340 (eval $ac_try) 2>&5
3341 ac_status=$?
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; }; then
3344 ac_compiler_gnu=yes
3345else
3346 echo "$as_me: failed program was:" >&5
3347sed 's/^/| /' conftest.$ac_ext >&5
3348
3349ac_compiler_gnu=no
3350fi
3351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3352ac_cv_c_compiler_gnu=$ac_compiler_gnu
3353
3354fi
3355echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3356echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3357GCC=`test $ac_compiler_gnu = yes && echo yes`
3358ac_test_CFLAGS=${CFLAGS+set}
3359ac_save_CFLAGS=$CFLAGS
3360CFLAGS="-g"
3361echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3362echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3363if test "${ac_cv_prog_cc_g+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3365else
3366 cat >conftest.$ac_ext <<_ACEOF
3367/* confdefs.h. */
3368_ACEOF
3369cat confdefs.h >>conftest.$ac_ext
3370cat >>conftest.$ac_ext <<_ACEOF
3371/* end confdefs.h. */
3372
3373int
3374main ()
3375{
3376
3377 ;
3378 return 0;
3379}
3380_ACEOF
3381rm -f conftest.$ac_objext
3382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3383 (eval $ac_compile) 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } &&
3390 { ac_try='test -z "$ac_c_werror_flag"
3391 || test ! -s conftest.err'
3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393 (eval $ac_try) 2>&5
3394 ac_status=$?
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; } &&
3397 { ac_try='test -s conftest.$ac_objext'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 (eval $ac_try) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
9e07f89d
NN
3403 ac_cv_prog_cc_g=yes
3404else
c6b750e1
DJ
3405 echo "$as_me: failed program was:" >&5
3406sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3407
c6b750e1 3408ac_cv_prog_cc_g=no
376a0e54 3409fi
c6b750e1
DJ
3410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3411fi
3412echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3413echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3414if test "$ac_test_CFLAGS" = set; then
c6b750e1 3415 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3416elif test $ac_cv_prog_cc_g = yes; then
3417 if test "$GCC" = yes; then
3418 CFLAGS="-g -O2"
3419 else
3420 CFLAGS="-g"
3421 fi
3422else
3423 if test "$GCC" = yes; then
3424 CFLAGS="-O2"
3425 else
3426 CFLAGS=
3427 fi
3428fi
c6b750e1
DJ
3429echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3430echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3431if test "${ac_cv_prog_cc_stdc+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3433else
3434 ac_cv_prog_cc_stdc=no
3435ac_save_CC=$CC
3436cat >conftest.$ac_ext <<_ACEOF
3437/* confdefs.h. */
3438_ACEOF
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
3441/* end confdefs.h. */
3442#include <stdarg.h>
3443#include <stdio.h>
3444#include <sys/types.h>
3445#include <sys/stat.h>
3446/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3447struct buf { int x; };
3448FILE * (*rcsopen) (struct buf *, struct stat *, int);
3449static char *e (p, i)
3450 char **p;
3451 int i;
3452{
3453 return p[i];
3454}
3455static char *f (char * (*g) (char **, int), char **p, ...)
3456{
3457 char *s;
3458 va_list v;
3459 va_start (v,p);
3460 s = g (p, va_arg (v,int));
3461 va_end (v);
3462 return s;
3463}
3464
3465/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3466 function prototypes and stuff, but not '\xHH' hex character constants.
3467 These don't provoke an error unfortunately, instead are silently treated
3468 as 'x'. The following induces an error, until -std1 is added to get
3469 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3470 array size at least. It's necessary to write '\x00'==0 to get something
3471 that's true only with -std1. */
3472int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3473
3474int test (int i, double x);
3475struct s1 {int (*f) (int a);};
3476struct s2 {int (*f) (double a);};
3477int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3478int argc;
3479char **argv;
3480int
3481main ()
3482{
3483return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3484 ;
3485 return 0;
3486}
3487_ACEOF
3488# Don't try gcc -ansi; that turns off useful extensions and
3489# breaks some systems' header files.
3490# AIX -qlanglvl=ansi
3491# Ultrix and OSF/1 -std1
3492# HP-UX 10.20 and later -Ae
3493# HP-UX older versions -Aa -D_HPUX_SOURCE
3494# SVR4 -Xc -D__EXTENSIONS__
3495for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3496do
3497 CC="$ac_save_CC $ac_arg"
3498 rm -f conftest.$ac_objext
3499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500 (eval $ac_compile) 2>conftest.er1
3501 ac_status=$?
3502 grep -v '^ *+' conftest.er1 >conftest.err
3503 rm -f conftest.er1
3504 cat conftest.err >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try='test -z "$ac_c_werror_flag"
3508 || test ! -s conftest.err'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 (eval $ac_try) 2>&5
3511 ac_status=$?
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; } &&
3514 { ac_try='test -s conftest.$ac_objext'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516 (eval $ac_try) 2>&5
3517 ac_status=$?
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; }; then
3520 ac_cv_prog_cc_stdc=$ac_arg
3521break
3522else
3523 echo "$as_me: failed program was:" >&5
3524sed 's/^/| /' conftest.$ac_ext >&5
3525
3526fi
3527rm -f conftest.err conftest.$ac_objext
3528done
3529rm -f conftest.$ac_ext conftest.$ac_objext
3530CC=$ac_save_CC
3531
3532fi
3533
3534case "x$ac_cv_prog_cc_stdc" in
3535 x|xno)
3536 echo "$as_me:$LINENO: result: none needed" >&5
3537echo "${ECHO_T}none needed" >&6 ;;
3538 *)
3539 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3540echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3541 CC="$CC $ac_cv_prog_cc_stdc" ;;
3542esac
3543
3544# Some people use a C++ compiler to compile C. Since we use `exit',
3545# in C++ we need to declare it. In case someone uses the same compiler
3546# for both compiling C and C++ we need to have the C++ compiler decide
3547# the declaration of exit, since it's the most demanding environment.
3548cat >conftest.$ac_ext <<_ACEOF
3549#ifndef __cplusplus
3550 choke me
3551#endif
3552_ACEOF
3553rm -f conftest.$ac_objext
3554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3555 (eval $ac_compile) 2>conftest.er1
3556 ac_status=$?
3557 grep -v '^ *+' conftest.er1 >conftest.err
3558 rm -f conftest.er1
3559 cat conftest.err >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } &&
3562 { ac_try='test -z "$ac_c_werror_flag"
3563 || test ! -s conftest.err'
3564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565 (eval $ac_try) 2>&5
3566 ac_status=$?
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }; } &&
3569 { ac_try='test -s conftest.$ac_objext'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 (eval $ac_try) 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; }; then
3575 for ac_declaration in \
3576 '' \
3577 'extern "C" void std::exit (int) throw (); using std::exit;' \
3578 'extern "C" void std::exit (int); using std::exit;' \
3579 'extern "C" void exit (int) throw ();' \
3580 'extern "C" void exit (int);' \
3581 'void exit (int);'
3582do
3583 cat >conftest.$ac_ext <<_ACEOF
3584/* confdefs.h. */
3585_ACEOF
3586cat confdefs.h >>conftest.$ac_ext
3587cat >>conftest.$ac_ext <<_ACEOF
3588/* end confdefs.h. */
3589$ac_declaration
3590#include <stdlib.h>
3591int
3592main ()
3593{
3594exit (42);
3595 ;
3596 return 0;
3597}
3598_ACEOF
3599rm -f conftest.$ac_objext
3600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3601 (eval $ac_compile) 2>conftest.er1
3602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } &&
3608 { ac_try='test -z "$ac_c_werror_flag"
3609 || test ! -s conftest.err'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 (eval $ac_try) 2>&5
3612 ac_status=$?
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; } &&
3615 { ac_try='test -s conftest.$ac_objext'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 (eval $ac_try) 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; }; then
3621 :
3622else
3623 echo "$as_me: failed program was:" >&5
3624sed 's/^/| /' conftest.$ac_ext >&5
3625
3626continue
3627fi
3628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3629 cat >conftest.$ac_ext <<_ACEOF
3630/* confdefs.h. */
3631_ACEOF
3632cat confdefs.h >>conftest.$ac_ext
3633cat >>conftest.$ac_ext <<_ACEOF
3634/* end confdefs.h. */
3635$ac_declaration
3636int
3637main ()
3638{
3639exit (42);
3640 ;
3641 return 0;
3642}
3643_ACEOF
3644rm -f conftest.$ac_objext
3645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3646 (eval $ac_compile) 2>conftest.er1
3647 ac_status=$?
3648 grep -v '^ *+' conftest.er1 >conftest.err
3649 rm -f conftest.er1
3650 cat conftest.err >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } &&
3653 { ac_try='test -z "$ac_c_werror_flag"
3654 || test ! -s conftest.err'
3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656 (eval $ac_try) 2>&5
3657 ac_status=$?
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; } &&
3660 { ac_try='test -s conftest.$ac_objext'
3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 (eval $ac_try) 2>&5
3663 ac_status=$?
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; }; then
3666 break
3667else
3668 echo "$as_me: failed program was:" >&5
3669sed 's/^/| /' conftest.$ac_ext >&5
3670
3671fi
3672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3673done
3674rm -f conftest*
3675if test -n "$ac_declaration"; then
3676 echo '#ifdef __cplusplus' >>confdefs.h
3677 echo $ac_declaration >>confdefs.h
3678 echo '#endif' >>confdefs.h
3679fi
3680
3681else
3682 echo "$as_me: failed program was:" >&5
3683sed 's/^/| /' conftest.$ac_ext >&5
3684
3685fi
3686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3687ac_ext=c
3688ac_cpp='$CPP $CPPFLAGS'
3689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3692
18f6b6ee
PB
3693ac_ext=cc
3694ac_cpp='$CXXCPP $CPPFLAGS'
3695ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3698if test -n "$ac_tool_prefix"; then
3699 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3700 do
3701 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3702set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3703echo "$as_me:$LINENO: checking for $ac_word" >&5
3704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3705if test "${ac_cv_prog_CXX+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707else
3708 if test -n "$CXX"; then
3709 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3710else
3711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712for as_dir in $PATH
3713do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3721 fi
3722done
3723done
512b7dfb 3724
18f6b6ee
PB
3725fi
3726fi
3727CXX=$ac_cv_prog_CXX
3728if test -n "$CXX"; then
3729 echo "$as_me:$LINENO: result: $CXX" >&5
3730echo "${ECHO_T}$CXX" >&6
3731else
3732 echo "$as_me:$LINENO: result: no" >&5
3733echo "${ECHO_T}no" >&6
3734fi
3735
3736 test -n "$CXX" && break
3737 done
3738fi
3739if test -z "$CXX"; then
3740 ac_ct_CXX=$CXX
3741 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3742do
3743 # Extract the first word of "$ac_prog", so it can be a program name with args.
3744set dummy $ac_prog; ac_word=$2
3745echo "$as_me:$LINENO: checking for $ac_word" >&5
3746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3747if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749else
3750 if test -n "$ac_ct_CXX"; then
3751 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3752else
3753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754for as_dir in $PATH
3755do
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760 ac_cv_prog_ac_ct_CXX="$ac_prog"
3761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
512b7dfb 3763 fi
18f6b6ee
PB
3764done
3765done
512b7dfb 3766
18f6b6ee
PB
3767fi
3768fi
3769ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3770if test -n "$ac_ct_CXX"; then
3771 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3772echo "${ECHO_T}$ac_ct_CXX" >&6
3773else
3774 echo "$as_me:$LINENO: result: no" >&5
3775echo "${ECHO_T}no" >&6
3776fi
3777
3778 test -n "$ac_ct_CXX" && break
3779done
3780test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3781
3782 CXX=$ac_ct_CXX
3783fi
3784
3785
3786# Provide some information about the compiler.
3787echo "$as_me:$LINENO:" \
3788 "checking for C++ compiler version" >&5
3789ac_compiler=`set X $ac_compile; echo $2`
3790{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3791 (eval $ac_compiler --version </dev/null >&5) 2>&5
3792 ac_status=$?
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); }
3795{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3796 (eval $ac_compiler -v </dev/null >&5) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }
3800{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3801 (eval $ac_compiler -V </dev/null >&5) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }
3805
3806echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3807echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3808if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810else
3811 cat >conftest.$ac_ext <<_ACEOF
3812/* confdefs.h. */
3813_ACEOF
3814cat confdefs.h >>conftest.$ac_ext
3815cat >>conftest.$ac_ext <<_ACEOF
3816/* end confdefs.h. */
3817
3818int
3819main ()
3820{
3821#ifndef __GNUC__
3822 choke me
3823#endif
3824
3825 ;
3826 return 0;
3827}
3828_ACEOF
3829rm -f conftest.$ac_objext
3830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831 (eval $ac_compile) 2>conftest.er1
3832 ac_status=$?
3833 grep -v '^ *+' conftest.er1 >conftest.err
3834 rm -f conftest.er1
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
3838 { ac_try='test -z "$ac_cxx_werror_flag"
3839 || test ! -s conftest.err'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 (eval $ac_try) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; } &&
3845 { ac_try='test -s conftest.$ac_objext'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 (eval $ac_try) 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; }; then
3851 ac_compiler_gnu=yes
3852else
3853 echo "$as_me: failed program was:" >&5
3854sed 's/^/| /' conftest.$ac_ext >&5
3855
3856ac_compiler_gnu=no
3857fi
3858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3859ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3860
3861fi
3862echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3863echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3864GXX=`test $ac_compiler_gnu = yes && echo yes`
3865ac_test_CXXFLAGS=${CXXFLAGS+set}
3866ac_save_CXXFLAGS=$CXXFLAGS
3867CXXFLAGS="-g"
3868echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3869echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3870if test "${ac_cv_prog_cxx_g+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3872else
3873 cat >conftest.$ac_ext <<_ACEOF
3874/* confdefs.h. */
3875_ACEOF
3876cat confdefs.h >>conftest.$ac_ext
3877cat >>conftest.$ac_ext <<_ACEOF
3878/* end confdefs.h. */
3879
3880int
3881main ()
3882{
3883
3884 ;
3885 return 0;
3886}
3887_ACEOF
3888rm -f conftest.$ac_objext
3889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3890 (eval $ac_compile) 2>conftest.er1
3891 ac_status=$?
3892 grep -v '^ *+' conftest.er1 >conftest.err
3893 rm -f conftest.er1
3894 cat conftest.err >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } &&
3897 { ac_try='test -z "$ac_cxx_werror_flag"
3898 || test ! -s conftest.err'
3899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3900 (eval $ac_try) 2>&5
3901 ac_status=$?
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }; } &&
3904 { ac_try='test -s conftest.$ac_objext'
3905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906 (eval $ac_try) 2>&5
3907 ac_status=$?
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; }; then
3910 ac_cv_prog_cxx_g=yes
3911else
3912 echo "$as_me: failed program was:" >&5
3913sed 's/^/| /' conftest.$ac_ext >&5
3914
3915ac_cv_prog_cxx_g=no
3916fi
3917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3918fi
3919echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3920echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3921if test "$ac_test_CXXFLAGS" = set; then
3922 CXXFLAGS=$ac_save_CXXFLAGS
3923elif test $ac_cv_prog_cxx_g = yes; then
3924 if test "$GXX" = yes; then
3925 CXXFLAGS="-g -O2"
3926 else
3927 CXXFLAGS="-g"
3928 fi
3929else
3930 if test "$GXX" = yes; then
3931 CXXFLAGS="-O2"
3932 else
3933 CXXFLAGS=
3934 fi
3935fi
3936for ac_declaration in \
3937 '' \
3938 'extern "C" void std::exit (int) throw (); using std::exit;' \
3939 'extern "C" void std::exit (int); using std::exit;' \
3940 'extern "C" void exit (int) throw ();' \
3941 'extern "C" void exit (int);' \
3942 'void exit (int);'
3943do
3944 cat >conftest.$ac_ext <<_ACEOF
3945/* confdefs.h. */
3946_ACEOF
3947cat confdefs.h >>conftest.$ac_ext
3948cat >>conftest.$ac_ext <<_ACEOF
3949/* end confdefs.h. */
3950$ac_declaration
3951#include <stdlib.h>
3952int
3953main ()
3954{
3955exit (42);
3956 ;
3957 return 0;
3958}
3959_ACEOF
3960rm -f conftest.$ac_objext
3961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3962 (eval $ac_compile) 2>conftest.er1
3963 ac_status=$?
3964 grep -v '^ *+' conftest.er1 >conftest.err
3965 rm -f conftest.er1
3966 cat conftest.err >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } &&
3969 { ac_try='test -z "$ac_cxx_werror_flag"
3970 || test ! -s conftest.err'
3971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972 (eval $ac_try) 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; } &&
3976 { ac_try='test -s conftest.$ac_objext'
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978 (eval $ac_try) 2>&5
3979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; }; then
3982 :
3983else
3984 echo "$as_me: failed program was:" >&5
3985sed 's/^/| /' conftest.$ac_ext >&5
3986
3987continue
3988fi
3989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3990 cat >conftest.$ac_ext <<_ACEOF
3991/* confdefs.h. */
3992_ACEOF
3993cat confdefs.h >>conftest.$ac_ext
3994cat >>conftest.$ac_ext <<_ACEOF
3995/* end confdefs.h. */
3996$ac_declaration
3997int
3998main ()
3999{
4000exit (42);
4001 ;
4002 return 0;
4003}
4004_ACEOF
4005rm -f conftest.$ac_objext
4006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4007 (eval $ac_compile) 2>conftest.er1
4008 ac_status=$?
4009 grep -v '^ *+' conftest.er1 >conftest.err
4010 rm -f conftest.er1
4011 cat conftest.err >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); } &&
4014 { ac_try='test -z "$ac_cxx_werror_flag"
4015 || test ! -s conftest.err'
4016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017 (eval $ac_try) 2>&5
4018 ac_status=$?
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; } &&
4021 { ac_try='test -s conftest.$ac_objext'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023 (eval $ac_try) 2>&5
4024 ac_status=$?
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; }; then
4027 break
4028else
4029 echo "$as_me: failed program was:" >&5
4030sed 's/^/| /' conftest.$ac_ext >&5
4031
4032fi
4033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4034done
4035rm -f conftest*
4036if test -n "$ac_declaration"; then
4037 echo '#ifdef __cplusplus' >>confdefs.h
4038 echo $ac_declaration >>confdefs.h
4039 echo '#endif' >>confdefs.h
4040fi
4041
4042ac_ext=c
4043ac_cpp='$CPP $CPPFLAGS'
4044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4046ac_compiler_gnu=$ac_cv_c_compiler_gnu
4047
4048
4049# We must set the default linker to the linker used by gcc for the correct
4050# operation of libtool. If LD is not defined and we are using gcc, try to
4051# set the LD default to the ld used by gcc.
4052if test -z "$LD"; then
4053 if test "$GCC" = yes; then
4054 case $build in
4055 *-*-mingw*)
4056 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4057 *)
4058 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4059 esac
4060 case $gcc_prog_ld in
4061 # Accept absolute paths.
4062 [\\/]* | [A-Za-z]:[\\/]*)
4063 LD="$gcc_prog_ld" ;;
4064 esac
4065 fi
512b7dfb
PB
4066fi
4067
4068
4069
4070
c6b750e1 4071if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4072 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4073set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4074echo "$as_me:$LINENO: checking for $ac_word" >&5
4075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4076if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4077 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4078else
512b7dfb
PB
4079 if test -n "$GNATBIND"; then
4080 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4081else
c6b750e1
DJ
4082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083for as_dir in $PATH
4084do
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4089 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4091 break 2
4092 fi
4093done
4094done
4095
9e07f89d
NN
4096fi
4097fi
512b7dfb
PB
4098GNATBIND=$ac_cv_prog_GNATBIND
4099if test -n "$GNATBIND"; then
4100 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4101echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4102else
c6b750e1
DJ
4103 echo "$as_me:$LINENO: result: no" >&5
4104echo "${ECHO_T}no" >&6
9e07f89d
NN
4105fi
4106
c6b750e1 4107fi
512b7dfb
PB
4108if test -z "$ac_cv_prog_GNATBIND"; then
4109 ac_ct_GNATBIND=$GNATBIND
4110 # Extract the first word of "gnatbind", so it can be a program name with args.
4111set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4112echo "$as_me:$LINENO: checking for $ac_word" >&5
4113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4114if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4115 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4116else
512b7dfb
PB
4117 if test -n "$ac_ct_GNATBIND"; then
4118 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4119else
c6b750e1
DJ
4120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121for as_dir in $PATH
4122do
4123 IFS=$as_save_IFS
4124 test -z "$as_dir" && as_dir=.
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4127 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4129 break 2
4130 fi
4131done
4132done
4133
512b7dfb 4134 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4135fi
4136fi
512b7dfb
PB
4137ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4138if test -n "$ac_ct_GNATBIND"; then
4139 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4140echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4141else
c6b750e1
DJ
4142 echo "$as_me:$LINENO: result: no" >&5
4143echo "${ECHO_T}no" >&6
9e07f89d
NN
4144fi
4145
512b7dfb 4146 GNATBIND=$ac_ct_GNATBIND
24ff9987 4147else
512b7dfb 4148 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4149fi
4150
7df2cd5d 4151if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4152 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4153set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4154echo "$as_me:$LINENO: checking for $ac_word" >&5
4155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4156if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4158else
512b7dfb
PB
4159 if test -n "$GNATMAKE"; then
4160 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4161else
4162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163for as_dir in $PATH
4164do
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4169 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 break 2
4172 fi
4173done
4174done
4175
4176fi
4177fi
512b7dfb
PB
4178GNATMAKE=$ac_cv_prog_GNATMAKE
4179if test -n "$GNATMAKE"; then
4180 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4181echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4182else
4183 echo "$as_me:$LINENO: result: no" >&5
4184echo "${ECHO_T}no" >&6
4185fi
4186
4187fi
512b7dfb
PB
4188if test -z "$ac_cv_prog_GNATMAKE"; then
4189 ac_ct_GNATMAKE=$GNATMAKE
4190 # Extract the first word of "gnatmake", so it can be a program name with args.
4191set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4192echo "$as_me:$LINENO: checking for $ac_word" >&5
4193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4194if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196else
512b7dfb
PB
4197 if test -n "$ac_ct_GNATMAKE"; then
4198 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4199else
4200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201for as_dir in $PATH
4202do
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4207 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4209 break 2
4210 fi
4211done
4212done
4213
512b7dfb 4214 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4215fi
4216fi
512b7dfb
PB
4217ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4218if test -n "$ac_ct_GNATMAKE"; then
4219 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4220echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4221else
4222 echo "$as_me:$LINENO: result: no" >&5
4223echo "${ECHO_T}no" >&6
4224fi
4225
512b7dfb 4226 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4227else
512b7dfb 4228 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4229fi
4230
c6b750e1
DJ
4231echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4232echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4233if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4235else
4236 cat >conftest.adb <<EOF
4237procedure conftest is begin null; end conftest;
4238EOF
4239acx_cv_cc_gcc_supports_ada=no
4240# There is a bug in old released versions of GCC which causes the
4241# driver to exit successfully when the appropriate language module
4242# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4243# Therefore we must check for the error message as well as an
4244# unsuccessful exit.
b8908782
DD
4245# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4246# given a .adb file, but produce no object file. So we must check
4247# if an object file was really produced to guard against this.
9e07f89d 4248errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4249if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4250 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4251fi
4252rm -f conftest.*
4253fi
c6b750e1
DJ
4254echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4255echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4256
512b7dfb 4257if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4258 have_gnat=yes
4259else
4260 have_gnat=no
4261fi
4262
c6b750e1
DJ
4263echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4264echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4265if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4267else
4268 echo abfoo >t1
4269 echo cdfoo >t2
4270 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4271 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4272 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4273 :
4274 else
4275 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4276 fi
4277 fi
b8908782
DD
4278 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4279 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4280 :
b8908782
DD
4281 else
4282 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4283 fi
4284 fi
4285 rm t1 t2
4286
4287fi
c6b750e1
DJ
4288echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4289echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4290do_compare="$gcc_cv_prog_cmp_skip"
4291
4292
9e07f89d 4293
11b04d1f 4294# Check for GMP and MPFR
4b900473 4295gmplibs="-lmpfr -lgmp"
4b1cb4fe 4296gmpinc=
4b900473
PB
4297have_gmp=no
4298
11b04d1f
DD
4299# Specify a location for mpfr
4300# check for this first so it ends up on the link line before gmp.
c6b750e1 4301
11b04d1f
DD
4302# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4303if test "${with_mpfr_dir+set}" = set; then
4304 withval="$with_mpfr_dir"
c6b750e1
DJ
4305 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4306Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4307echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4308Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4309 { (exit 1); exit 1; }; }
4310fi;
11b04d1f
DD
4311
4312
11b04d1f
DD
4313# Check whether --with-mpfr or --without-mpfr was given.
4314if test "${with_mpfr+set}" = set; then
4315 withval="$with_mpfr"
c6b750e1
DJ
4316
4317fi;
11b04d1f 4318
8a0d8a5c
PB
4319# Check whether --with-mpfr_include or --without-mpfr_include was given.
4320if test "${with_mpfr_include+set}" = set; then
4321 withval="$with_mpfr_include"
c6b750e1
DJ
4322
4323fi;
8a0d8a5c
PB
4324
4325# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4326if test "${with_mpfr_lib+set}" = set; then
4327 withval="$with_mpfr_lib"
8a0d8a5c 4328
c6b750e1 4329fi;
11b04d1f
DD
4330
4331if test "x$with_mpfr" != x; then
4332 gmplibs="-L$with_mpfr/lib $gmplibs"
4333 gmpinc="-I$with_mpfr/include"
4334fi
8a0d8a5c
PB
4335if test "x$with_mpfr_include" != x; then
4336 gmpinc="-I$with_mpfr_include"
4337fi
4338if test "x$with_mpfr_lib" != x; then
4339 gmplibs="-L$with_mpfr_lib $gmplibs"
4340fi
4b900473
PB
4341if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4342 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4343 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4344 # Do not test the mpfr version. Assume that it is sufficient, since
4345 # it is in the source tree, and the library has not been built yet
4346 # but it would be included on the link line in the version check below
4347 # hence making the test fail.
4348 have_gmp=yes
4349fi
11b04d1f 4350
4b1cb4fe 4351# Specify a location for gmp
c6b750e1 4352
4b1cb4fe
DD
4353# Check whether --with-gmp-dir or --without-gmp-dir was given.
4354if test "${with_gmp_dir+set}" = set; then
4355 withval="$with_gmp_dir"
c6b750e1
DJ
4356 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4357Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4358echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4359Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4360 { (exit 1); exit 1; }; }
4361fi;
4b1cb4fe
DD
4362
4363
4b1cb4fe
DD
4364# Check whether --with-gmp or --without-gmp was given.
4365if test "${with_gmp+set}" = set; then
4366 withval="$with_gmp"
c6b750e1
DJ
4367
4368fi;
4b1cb4fe 4369
8a0d8a5c
PB
4370# Check whether --with-gmp_include or --without-gmp_include was given.
4371if test "${with_gmp_include+set}" = set; then
4372 withval="$with_gmp_include"
c6b750e1
DJ
4373
4374fi;
8a0d8a5c
PB
4375
4376# Check whether --with-gmp_lib or --without-gmp_lib was given.
4377if test "${with_gmp_lib+set}" = set; then
4378 withval="$with_gmp_lib"
8a0d8a5c 4379
c6b750e1 4380fi;
8a0d8a5c 4381
4b1cb4fe 4382
11b04d1f
DD
4383if test "x$with_gmp" != x; then
4384 gmplibs="-L$with_gmp/lib $gmplibs"
4385 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4386fi
8a0d8a5c
PB
4387if test "x$with_gmp_include" != x; then
4388 gmpinc="-I$with_gmp_include $gmpinc"
4389fi
4390if test "x$with_gmp_lib" != x; then
4391 gmplibs="-L$with_gmp_lib $gmplibs"
4392fi
4b900473
PB
4393if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4394 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4395 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4396 # Do not test the gmp version. Assume that it is sufficient, since
4397 # it is in the source tree, and the library has not been built yet
4398 # but it would be included on the link line in the version check below
4399 # hence making the test fail.
4400 have_gmp=yes
4401fi
4b1cb4fe 4402
ceb92e78 4403if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4404 have_gmp=yes
4405 saved_CFLAGS="$CFLAGS"
4406 CFLAGS="$CFLAGS $gmpinc"
4407 # Check GMP actually works
c6b750e1
DJ
4408 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4409echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4410
4411cat >conftest.$ac_ext <<_ACEOF
4412/* confdefs.h. */
4413_ACEOF
4414cat confdefs.h >>conftest.$ac_ext
4415cat >>conftest.$ac_ext <<_ACEOF
4416/* end confdefs.h. */
4b1cb4fe 4417#include "gmp.h"
c6b750e1
DJ
4418int
4419main ()
4420{
4b1cb4fe 4421
4b900473
PB
4422 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4423 choke me
4424 #endif
c6b750e1
DJ
4425
4426 ;
4427 return 0;
4428}
4429_ACEOF
4430rm -f conftest.$ac_objext
4431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432 (eval $ac_compile) 2>conftest.er1
4433 ac_status=$?
4434 grep -v '^ *+' conftest.er1 >conftest.err
4435 rm -f conftest.er1
4436 cat conftest.err >&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } &&
4439 { ac_try='test -z "$ac_c_werror_flag"
4440 || test ! -s conftest.err'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 (eval $ac_try) 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; } &&
4446 { ac_try='test -s conftest.$ac_objext'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 (eval $ac_try) 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 echo "$as_me:$LINENO: result: yes" >&5
4453echo "${ECHO_T}yes" >&6
4454else
4455 echo "$as_me: failed program was:" >&5
4456sed 's/^/| /' conftest.$ac_ext >&5
4457
4458echo "$as_me:$LINENO: result: no" >&5
4459echo "${ECHO_T}no" >&6; have_gmp=no
4460fi
4461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4462
4b900473
PB
4463 if test x"$have_gmp" = xyes; then
4464 saved_LIBS="$LIBS"
4465 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4466 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4467echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4468 cat >conftest.$ac_ext <<_ACEOF
4469/* confdefs.h. */
4470_ACEOF
4471cat confdefs.h >>conftest.$ac_ext
4472cat >>conftest.$ac_ext <<_ACEOF
4473/* end confdefs.h. */
9b134994 4474#include <gmp.h>
4b900473 4475 #include <mpfr.h>
c6b750e1
DJ
4476int
4477main ()
4478{
9b134994 4479
4b900473
PB
4480 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4481 choke me
4482 #endif
a3ca38d2
DD
4483 mpfr_t n;
4484 mpfr_t x;
4b900473 4485 int t;
a3ca38d2
DD
4486 mpfr_init (n);
4487 mpfr_init (x);
4b900473
PB
4488 mpfr_atan2 (n, n, x, GMP_RNDN);
4489 mpfr_erfc (n, x, GMP_RNDN);
4490 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4491
4492 ;
4493 return 0;
4494}
4495_ACEOF
4496rm -f conftest.$ac_objext conftest$ac_exeext
4497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4498 (eval $ac_link) 2>conftest.er1
4499 ac_status=$?
4500 grep -v '^ *+' conftest.er1 >conftest.err
4501 rm -f conftest.er1
4502 cat conftest.err >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } &&
4505 { ac_try='test -z "$ac_c_werror_flag"
4506 || test ! -s conftest.err'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 (eval $ac_try) 2>&5
4509 ac_status=$?
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; } &&
4512 { ac_try='test -s conftest$ac_exeext'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 (eval $ac_try) 2>&5
4515 ac_status=$?
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
4518 cat >conftest.$ac_ext <<_ACEOF
4519/* confdefs.h. */
4520_ACEOF
4521cat confdefs.h >>conftest.$ac_ext
4522cat >>conftest.$ac_ext <<_ACEOF
4523/* end confdefs.h. */
4b1cb4fe 4524#include <gmp.h>
4b900473 4525 #include <mpfr.h>
c6b750e1
DJ
4526int
4527main ()
4528{
9dbaa842 4529
4b900473
PB
4530 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4531 choke me
4532 #endif
4533 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4534
4535 ;
4536 return 0;
4537}
4538_ACEOF
4539rm -f conftest.$ac_objext conftest$ac_exeext
4540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4541 (eval $ac_link) 2>conftest.er1
4542 ac_status=$?
4543 grep -v '^ *+' conftest.er1 >conftest.err
4544 rm -f conftest.er1
4545 cat conftest.err >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } &&
4548 { ac_try='test -z "$ac_c_werror_flag"
4549 || test ! -s conftest.err'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 (eval $ac_try) 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; } &&
4555 { ac_try='test -s conftest$ac_exeext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 (eval $ac_try) 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4561 echo "$as_me:$LINENO: result: yes" >&5
4562echo "${ECHO_T}yes" >&6
4563else
4564 echo "$as_me: failed program was:" >&5
4565sed 's/^/| /' conftest.$ac_ext >&5
4566
4567echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4568echo "${ECHO_T}buggy but acceptable" >&6
4569fi
4570rm -f conftest.err conftest.$ac_objext \
4571 conftest$ac_exeext conftest.$ac_ext
4572else
4573 echo "$as_me: failed program was:" >&5
4574sed 's/^/| /' conftest.$ac_ext >&5
4575
4576echo "$as_me:$LINENO: result: no" >&5
4577echo "${ECHO_T}no" >&6; have_gmp=no
4578fi
4579rm -f conftest.err conftest.$ac_objext \
4580 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4581 LIBS="$saved_LIBS"
4582 fi
4583 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4584
4b900473 4585 if test x$have_gmp != xyes; then
c6b750e1
DJ
4586 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4587Try the --with-gmp and/or --with-mpfr options to specify their locations.
4588Copies of these libraries' source code can be found at their respective
4589hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4590See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4591If you obtained GMP and/or MPFR from a vendor distribution package, make
4592sure that you have installed both the libraries and the header files.
4593They may be located in separate packages." >&5
4594echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
9dbaa842
DD
4595Try the --with-gmp and/or --with-mpfr options to specify their locations.
4596Copies of these libraries' source code can be found at their respective
4597hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4598See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4599If you obtained GMP and/or MPFR from a vendor distribution package, make
4600sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4601They may be located in separate packages." >&2;}
4602 { (exit 1); exit 1; }; }
4b900473 4603 fi
9dbaa842
DD
4604fi
4605
11b04d1f 4606# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4607
4608
4609
947f426e 4610# By default, C is the only stage 1 language.
9b134994 4611stage1_languages=,c,
1d39f329 4612
9e07f89d
NN
4613# Figure out what language subdirectories are present.
4614# Look if the user specified --enable-languages="..."; if not, use
4615# the environment variable $LANGUAGES if defined. $LANGUAGES might
4616# go away some day.
4617# NB: embedded tabs in this IF block -- do not untabify
4618if test -d ${srcdir}/gcc; then
4619 if test x"${enable_languages+set}" != xset; then
4620 if test x"${LANGUAGES+set}" = xset; then
4621 enable_languages="${LANGUAGES}"
4622 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4623 else
4624 enable_languages=all
4625 fi
4626 else
4627 if test x"${enable_languages}" = x ||
4628 test x"${enable_languages}" = xyes;
4629 then
4630 echo configure.in: --enable-languages needs at least one language argument 1>&2
4631 exit 1
4632 fi
4633 fi
4634 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4635
096f7d00
DE
4636 # 'f95' is the old name for the 'fortran' language. We issue a warning
4637 # and make the substitution.
4638 case ,${enable_languages}, in
4639 *,f95,*)
4640 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4641 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4642 ;;
4643 esac
4644
9e07f89d
NN
4645 # First scan to see if an enabled language requires some other language.
4646 # We assume that a given config-lang.in will list all the language
4647 # front ends it requires, even if some are required indirectly.
4648 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4649 case ${lang_frag} in
4650 ..) ;;
4651 # The odd quoting in the next line works around
4652 # an apparent bug in bash 1.12 on linux.
4653 ${srcdir}/gcc/[*]/config-lang.in) ;;
4654 *)
4655 # From the config-lang.in, get $language, $lang_requires
4656 language=
4657 lang_requires=
4658 . ${lang_frag}
4659 for other in ${lang_requires} ; do
4660 case ,${enable_languages}, in
4661 *,$other,*) ;;
4662 *,all,*) ;;
4663 *,$language,*)
4664 echo " \`$other' language required by \`$language'; enabling" 1>&2
4665 enable_languages="${enable_languages},${other}"
4666 ;;
4667 esac
4668 done
4669 ;;
4670 esac
4671 done
4672
9b134994 4673 new_enable_languages=,c,
9e07f89d 4674 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4675 potential_languages=,c,
9e07f89d
NN
4676
4677 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4678 case ${lang_frag} in
4679 ..) ;;
4680 # The odd quoting in the next line works around
4681 # an apparent bug in bash 1.12 on linux.
4682 ${srcdir}/gcc/[*]/config-lang.in) ;;
4683 *)
c6b750e1 4684 # From the config-lang.in, get $language, $target_libs,
1d39f329 4685 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4686 language=
4687 target_libs=
4688 lang_dirs=
64ce424c 4689 subdir_requires=
9b134994
PB
4690 boot_language=no
4691 build_by_default=yes
9e07f89d 4692 . ${lang_frag}
9b134994
PB
4693 if test x${language} = x; then
4694 echo "${lang_frag} doesn't set \$language." 1>&2
4695 exit 1
4696 fi
4697
4698 case ,${enable_languages}, in
4699 *,${language},*)
9e07f89d
NN
4700 # Language was explicitly selected; include it.
4701 add_this_lang=yes
4702 ;;
9b134994
PB
4703 *,all,*)
4704 # 'all' was selected, select it if it is a default language
4705 add_this_lang=${build_by_default}
9e07f89d
NN
4706 ;;
4707 *)
4708 add_this_lang=no
4709 ;;
4710 esac
4b1cb4fe 4711
64ce424c 4712 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4713 for i in $subdir_requires; do
3d3adb43 4714 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4715 case ,${enable_languages}, in
4716 *,${language},*)
4717 # Specifically requested language; tell them.
c6b750e1
DJ
4718 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4719echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4720 { (exit 1); exit 1; }; }
64ce424c
PB
4721 ;;
4722 *)
4723 # Silently disable.
9b134994 4724 add_this_lang=unsupported
64ce424c
PB
4725 ;;
4726 esac
4727 done
4728
9b134994
PB
4729 # Disable Ada if no preexisting GNAT is available.
4730 case ,${enable_languages},:${language}:${have_gnat} in
4731 *,${language},*:ada:no)
4732 # Specifically requested language; tell them.
c6b750e1
DJ
4733 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4734echo "$as_me: error: GNAT is required to build $language" >&2;}
4735 { (exit 1); exit 1; }; }
9b134994
PB
4736 ;;
4737 *:ada:no)
4738 # Silently disable.
4739 add_this_lang=unsupported
4740 ;;
4741 esac
4742
59f7ec45
HPN
4743 # Disable a language that is unsupported by the target.
4744 case " $unsupported_languages " in
4745 *" $language "*)
9b134994 4746 add_this_lang=unsupported
59f7ec45
HPN
4747 ;;
4748 esac
4749
4b1cb4fe 4750 case $add_this_lang in
9b134994 4751 unsupported)
9e07f89d 4752 # Remove language-dependent dirs.
1d39f329
NN
4753 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4754 ;;
9b134994
PB
4755 no)
4756 # Remove language-dependent dirs; still show language as supported.
4757 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4758 potential_languages="${potential_languages}${language},"
4759 ;;
4760 yes)
4761 new_enable_languages="${new_enable_languages}${language},"
4762 potential_languages="${potential_languages}${language},"
1d39f329
NN
4763 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4764 case ${boot_language} in
4765 yes)
4fa63067 4766 # Add to (comma-separated) list of stage 1 languages.
9b134994 4767 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4768 ;;
4769 esac
4770 ;;
9e07f89d
NN
4771 esac
4772 ;;
4773 esac
4774 done
4775
9b134994
PB
4776 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4777if test "${enable_stage1_languages+set}" = set; then
4778 enableval="$enable_stage1_languages"
4779 case ,${enable_stage1_languages}, in
4780 ,no,|,,)
4781 # Set it to something that will have no effect in the loop below
4782 enable_stage1_languages=c ;;
4783 ,yes,)
4784 enable_stage1_languages=`echo $new_enable_languages | \
4785 sed -e "s/^,//" -e "s/,$//" ` ;;
4786 *,all,*)
4787 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4788 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4789 esac
4790
4791 # Add "good" languages from enable_stage1_languages to stage1_languages,
4792 # while "bad" languages go in missing_languages. Leave no duplicates.
4793 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4794 case $potential_languages in
4795 *,$i,*)
4796 case $stage1_languages in
4797 *,$i,*) ;;
4798 *) stage1_languages="$stage1_languages$i," ;;
4799 esac ;;
4800 *)
4801 case $missing_languages in
4802 *,$i,*) ;;
4803 *) missing_languages="$missing_languages$i," ;;
4804 esac ;;
4805 esac
4806 done
c6b750e1 4807fi;
9b134994
PB
4808
4809 # Remove leading/trailing commas that were added for simplicity
4810 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4811 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4812 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4813 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4814
9e07f89d 4815 if test "x$missing_languages" != x; then
c6b750e1 4816 { { echo "$as_me:$LINENO: error:
27258dd4 4817The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4818Supported languages are: ${potential_languages}" >&5
4819echo "$as_me: error:
4820The following requested languages could not be built: ${missing_languages}
4821Supported languages are: ${potential_languages}" >&2;}
4822 { (exit 1); exit 1; }; }
9e07f89d 4823 fi
9e07f89d
NN
4824 if test "x$new_enable_languages" != "x$enable_languages"; then
4825 echo The following languages will be built: ${new_enable_languages}
9b134994 4826 enable_languages="$new_enable_languages"
9e07f89d 4827 fi
9b134994 4828
c6b750e1 4829
81ec575a 4830 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
4831fi
4832
a6df5a19
PB
4833# Handle --disable-<component> generically.
4834for dir in $configdirs $build_configdirs $target_configdirs ; do
4835 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4836 if eval test x\${enable_${dirname}} "=" xno ; then
4837 noconfigdirs="$noconfigdirs $dir"
4838 fi
4839done
4840
4f0ef2d8
CD
4841# Check for Boehm's garbage collector
4842# Check whether --enable-objc-gc or --disable-objc-gc was given.
4843if test "${enable_objc_gc+set}" = set; then
4844 enableval="$enable_objc_gc"
4845 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4846 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
4847 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4848echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4849 { (exit 1); exit 1; }; }
4f0ef2d8
CD
4850 ;;
4851esac
c6b750e1 4852fi;
4f0ef2d8
CD
4853
4854# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
4855case ,${enable_languages},:${enable_objc_gc} in
4856 *,objc,*:yes)
4f0ef2d8
CD
4857 # Keep target-boehm-gc if requested for Objective-C.
4858 ;;
4f0ef2d8 4859 *)
d42c4017
DA
4860 # Otherwise remove target-boehm-gc depending on target-libjava.
4861 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4862 noconfigdirs="$noconfigdirs target-boehm-gc"
4863 fi
4f0ef2d8
CD
4864 ;;
4865esac
4866
caeba88f
AL
4867# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4868# $build_configdirs and $target_configdirs.
9e07f89d
NN
4869# If we have the source for $noconfigdirs entries, add them to $notsupp.
4870
4871notsupp=""
4872for dir in . $skipdirs $noconfigdirs ; do
caeba88f 4873 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
4874 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4875 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4876 if test -r $srcdir/$dirname/configure ; then
4877 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4878 true
4879 else
4880 notsupp="$notsupp $dir"
4881 fi
4882 fi
4883 fi
caeba88f
AL
4884 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4885 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4886 if test -r $srcdir/$dirname/configure ; then
4887 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4888 true
4889 else
4890 notsupp="$notsupp $dir"
4891 fi
4892 fi
4893 fi
9e07f89d
NN
4894 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4895 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4896 if test -r $srcdir/$dirname/configure ; then
4897 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4898 true
4899 else
4900 notsupp="$notsupp $dir"
4901 fi
4902 fi
4903 fi
4904done
4905
4906# Sometimes the tools are distributed with libiberty but with no other
4907# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 4908# Don't let libgcc imply libiberty either.
9e07f89d 4909if test -n "${target_configdirs}" ; then
f86e35b8 4910 libgcc=
9e07f89d
NN
4911 others=
4912 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
4913 if test "$i" = "libgcc"; then
4914 libgcc=target-libgcc
4915 elif test "$i" != "libiberty" ; then
9e07f89d
NN
4916 if test -r $srcdir/$i/configure ; then
4917 others=yes;
4918 break;
4919 fi
4920 fi
4921 done
4922 if test -z "${others}" ; then
f86e35b8 4923 target_configdirs=$libgcc
9e07f89d
NN
4924 fi
4925fi
4926
4927# Quietly strip out all directories which aren't configurable in this tree.
4928# This relies on all configurable subdirectories being autoconfiscated, which
4929# is now the case.
6a9cf61e
PB
4930build_configdirs_all="$build_configdirs"
4931build_configdirs=
4932for i in ${build_configdirs_all} ; do
c6b750e1 4933 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
4934 if test -f ${srcdir}/$j/configure ; then
4935 build_configdirs="${build_configdirs} $i"
4936 fi
4937done
4938
9e07f89d
NN
4939configdirs_all="$configdirs"
4940configdirs=
4941for i in ${configdirs_all} ; do
4942 if test -f ${srcdir}/$i/configure ; then
4943 configdirs="${configdirs} $i"
4944 fi
4945done
6a9cf61e 4946
9e07f89d
NN
4947target_configdirs_all="$target_configdirs"
4948target_configdirs=
4949for i in ${target_configdirs_all} ; do
c6b750e1 4950 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
4951 if test -f ${srcdir}/$j/configure ; then
4952 target_configdirs="${target_configdirs} $i"
4953 fi
4954done
4955
4956# Produce a warning message for the subdirs we can't configure.
4957# This isn't especially interesting in the Cygnus tree, but in the individual
4958# FSF releases, it's important to let people know when their machine isn't
4959# supported by the one or two programs in a package.
4960
4961if test -n "${notsupp}" && test -z "${norecursion}" ; then
4962 # If $appdirs is non-empty, at least one of those directories must still
4963 # be configured, or we error out. (E.g., if the gas release supports a
4964 # specified target in some subdirs but not the gas subdir, we shouldn't
4965 # pretend that all is well.)
4966 if test -n "$appdirs" ; then
4967 for dir in $appdirs ; do
4968 if test -r $dir/Makefile.in ; then
4969 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4970 appdirs=""
4971 break
4972 fi
6a9cf61e 4973 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
4974 appdirs=""
4975 break
4976 fi
4977 fi
4978 done
4979 if test -n "$appdirs" ; then
4980 echo "*** This configuration is not supported by this package." 1>&2
4981 exit 1
4982 fi
4983 fi
4984 # Okay, some application will build, or we don't care to check. Still
4985 # notify of subdirs not getting built.
4986 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4987 echo " ${notsupp}" 1>&2
4988 echo " (Any other directories should still work fine.)" 1>&2
4989fi
4990
4991case "$host" in
4992 *msdosdjgpp*)
4993 enable_gdbtk=no ;;
4994esac
4995
18f6b6ee
PB
4996# To find our prefix, in gcc_cv_tool_prefix.
4997
4998# The user is always right.
4999if test "${PATH_SEPARATOR+set}" != set; then
5000 echo "#! /bin/sh" >conf$$.sh
5001 echo "exit 0" >>conf$$.sh
5002 chmod +x conf$$.sh
5003 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5004 PATH_SEPARATOR=';'
5005 else
5006 PATH_SEPARATOR=:
5007 fi
5008 rm -f conf$$.sh
5009fi
5010
5011
5012
5013if test "x$exec_prefix" = xNONE; then
5014 if test "x$prefix" = xNONE; then
5015 gcc_cv_tool_prefix=$ac_default_prefix
5016 else
5017 gcc_cv_tool_prefix=$prefix
5018 fi
5019else
5020 gcc_cv_tool_prefix=$exec_prefix
5021fi
5022
5023# If there is no compiler in the tree, use the PATH only. In any
5024# case, if there is no compiler in the tree nobody should use
5025# AS_FOR_TARGET and LD_FOR_TARGET.
5026if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5027 gcc_version=`cat $srcdir/gcc/BASE-VER`
5028 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5029 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5030 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5031 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5032 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5033 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5034else
5035 gcc_cv_tool_dirs=
5036fi
5037
5038if test x$build = x$target && test -n "$md_exec_prefix"; then
5039 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5040fi
5041
5042
5043
9e07f89d
NN
5044copy_dirs=
5045
c6b750e1 5046
a19b6204
MM
5047# Check whether --with-build-sysroot or --without-build-sysroot was given.
5048if test "${with_build_sysroot+set}" = set; then
5049 withval="$with_build_sysroot"
5050 if test x"$withval" != x ; then
5051 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5052 fi
5053else
5054 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5055fi;
a19b6204
MM
5056
5057
9e07f89d
NN
5058# Handle --with-headers=XXX. If the value is not "yes", the contents of
5059# the named directory are copied to $(tooldir)/sys-include.
5060if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5061 if test x${is_cross_compiler} = xno ; then
5062 echo 1>&2 '***' --with-headers is only supported when cross compiling
5063 exit 1
5064 fi
5065 if test x"${with_headers}" != xyes ; then
18f6b6ee 5066 x=${gcc_cv_tool_prefix}
c6b750e1 5067 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5068 fi
5069fi
5070
5071# Handle --with-libs=XXX. If the value is not "yes", the contents of
5072# the name directories are copied to $(tooldir)/lib. Multiple directories
5073# are permitted.
5074if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5075 if test x${is_cross_compiler} = xno ; then
5076 echo 1>&2 '***' --with-libs is only supported when cross compiling
5077 exit 1
5078 fi
5079 if test x"${with_libs}" != xyes ; then
5080 # Copy the libraries in reverse order, so that files in the first named
5081 # library override files in subsequent libraries.
18f6b6ee 5082 x=${gcc_cv_tool_prefix}
9e07f89d 5083 for l in ${with_libs}; do
c6b750e1 5084 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5085 done
5086 fi
5087fi
5088
2429c060
PB
5089# Set with_gnu_as and with_gnu_ld as appropriate.
5090#
5091# This is done by determining whether or not the appropriate directory
5092# is available, and by checking whether or not specific configurations
5093# have requested that this magic not happen.
c6b750e1
DJ
5094#
5095# The command line options always override the explicit settings in
2429c060
PB
5096# configure.in, and the settings in configure.in override this magic.
5097#
c6b750e1 5098# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5099# want to do that, then you should use the --without-gnu-as and
5100# --without-gnu-ld options for the configure script.
5101
5102if test x${use_gnu_as} = x &&
5103 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5104 with_gnu_as=yes
5105 extra_host_args="$extra_host_args --with-gnu-as"
5106fi
5107
5108if test x${use_gnu_ld} = x &&
5109 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5110 with_gnu_ld=yes
5111 extra_host_args="$extra_host_args --with-gnu-ld"
5112fi
5113
5114# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5115# can detect this case.
5116
5117if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5118 with_newlib=yes
5119 extra_host_args="$extra_host_args --with-newlib"
5120fi
5121
9e07f89d
NN
5122# Handle ${copy_dirs}
5123set fnord ${copy_dirs}
5124shift
5125while test $# != 0 ; do
5126 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5127 :
5128 else
5129 echo Copying $1 to $2
5130
5131 # Use the install script to create the directory and all required
5132 # parent directories.
5133 if test -d $2 ; then
5134 :
5135 else
5136 echo >config.temp
5137 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5138 fi
5139
5140 # Copy the directory, assuming we have tar.
5141 # FIXME: Should we use B in the second tar? Not all systems support it.
5142 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5143
5144 # It is the responsibility of the user to correctly adjust all
5145 # symlinks. If somebody can figure out how to handle them correctly
5146 # here, feel free to add the code.
5147
5148 echo $1 > $2/COPIED
5149 fi
5150 shift; shift
5151done
5152
2429c060
PB
5153# Determine a target-dependent exec_prefix that the installed
5154# gcc will search in. Keep this list sorted by triplet, with
5155# the *-*-osname triplets last.
5156md_exec_prefix=
5157case "${target}" in
5158 alpha*-*-*vms*)
5159 md_exec_prefix=/gnu/lib/gcc-lib
5160 ;;
5161 i3456786-pc-msdosdjgpp*)
5162 md_exec_prefix=/dev/env/DJDIR/bin
5163 ;;
5164 i3456786-*-sco3.2v5*)
5165 if test $with_gnu_as = yes; then
5166 md_exec_prefix=/usr/gnu/bin
5167 else
5168 md_exec_prefix=/usr/ccs/bin/elf
5169 fi
5170 ;;
5171
5172 mn10300-*-* | \
5173 powerpc-*-chorusos* | \
5174 powerpc*-*-eabi* | \
5175 powerpc*-*-sysv* | \
5176 powerpc*-*-kaos* | \
5177 s390x-ibm-tpf*)
5178 md_exec_prefix=/usr/ccs/bin
5179 ;;
5180 sparc64-*-elf*)
5181 ;;
5182 v850*-*-*)
5183 md_exec_prefix=/usr/ccs/bin
5184 ;;
5185 xtensa-*-elf*)
5186 ;;
5187
5188 *-*-beos* | \
5189 *-*-elf* | \
5190 *-*-hpux* | \
5191 *-*-netware* | \
5192 *-*-nto-qnx* | \
5193 *-*-rtems* | \
5194 *-*-solaris2* | \
5195 *-*-sysv45* | \
5196 *-*-vxworks* | \
5197 *-wrs-windiss)
5198 md_exec_prefix=/usr/ccs/bin
5199 ;;
5200esac
5201
a0da8069
NN
5202extra_arflags_for_target=
5203extra_nmflags_for_target=
5204extra_ranlibflags_for_target=
5205target_makefile_frag=/dev/null
5206case "${target}" in
4e206d7e
DB
5207 mep*-*-*)
5208 target_makefile_frag="config/mt-mep"
5209 ;;
77d7106f
AM
5210 spu-*-*)
5211 target_makefile_frag="config/mt-spu"
5212 ;;
2a3124ca 5213 *-*-netware*)
a0da8069
NN
5214 target_makefile_frag="config/mt-netware"
5215 ;;
3d6dfe0f
NN
5216 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5217 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5218 ;;
5219 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5220 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5221 # commands to handle both 32-bit and 64-bit objects. These flags are
5222 # harmless if we're using GNU nm or ar.
5223 extra_arflags_for_target=" -X32_64"
5224 extra_nmflags_for_target=" -B -X32_64"
5225 ;;
5226 *-*-darwin*)
5227 # ranlib from Darwin requires the -c flag to look at common symbols.
5228 extra_ranlibflags_for_target=" -c"
5229 ;;
5230 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5231 target_makefile_frag="config/mt-wince"
5232 ;;
5233esac
5234
5235alphaieee_frag=/dev/null
5236case $target in
5237 alpha*-*-*)
5238 # This just makes sure to use the -mieee option to build target libs.
5239 # This should probably be set individually by each library.
5240 alphaieee_frag="config/mt-alphaieee"
5241 ;;
5242esac
5243
5244# If --enable-target-optspace always use -Os instead of -O2 to build
5245# the target libraries, similarly if it is not specified, use -Os
5246# on selected platforms.
5247ospace_frag=/dev/null
5248case "${enable_target_optspace}:${target}" in
5249 yes:*)
5250 ospace_frag="config/mt-ospace"
5251 ;;
5252 :d30v-*)
5253 ospace_frag="config/mt-d30v"
5254 ;;
5255 :m32r-* | :d10v-* | :fr30-*)
5256 ospace_frag="config/mt-ospace"
5257 ;;
5258 no:* | :*)
5259 ;;
5260 *)
5261 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5262 ;;
5263esac
5264
a0da8069
NN
5265# Default to using --with-stabs for certain targets.
5266if test x${with_stabs} = x ; then
5267 case "${target}" in
e31d1ea3 5268 mips*-*-irix[56]*)
a0da8069
NN
5269 ;;
5270 mips*-*-* | alpha*-*-osf*)
5271 with_stabs=yes;
5272 extra_host_args="${extra_host_args} --with-stabs"
5273 ;;
5274 esac
5275fi
5276
5277# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5278# them automatically.
5279case "${host}" in
c6b750e1 5280 hppa*64*-*-hpux11*)
a0da8069
NN
5281 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5282 ;;
5283esac
5284
a0da8069
NN
5285# Some systems (e.g., one of the i386-aix systems the gas testers are
5286# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5287tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5288build_tooldir=${tooldir}
5289
a0da8069
NN
5290# Create a .gdbinit file which runs the one in srcdir
5291# and tells GDB to look there for source files.
5292
5293if test -r ${srcdir}/.gdbinit ; then
5294 case ${srcdir} in
5295 .) ;;
5296 *) cat > ./.gdbinit <<EOF
5297# ${NO_EDIT}
5298dir ${srcdir}
5299dir .
5300source ${srcdir}/.gdbinit
5301EOF
5302 ;;
5303 esac
5304fi
5305
a0da8069
NN
5306# Make sure that the compiler is able to generate an executable. If it
5307# can't, we are probably in trouble. We don't care whether we can run the
5308# executable--we might be using a cross compiler--we only care whether it
5309# can be created. At this point the main configure script has set CC.
5310we_are_ok=no
5311echo "int main () { return 0; }" > conftest.c
5312${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5313if test $? = 0 ; then
5314 if test -s conftest || test -s conftest.exe ; then
5315 we_are_ok=yes
5316 fi
c6b750e1 5317fi
a0da8069
NN
5318case $we_are_ok in
5319 no)
5320 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5321 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5322 rm -f conftest*
5323 exit 1
5324 ;;
5325esac
5326rm -f conftest*
5327
5328# The Solaris /usr/ucb/cc compiler does not appear to work.
5329case "${host}" in
5330 sparc-sun-solaris2*)
5331 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5332 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5333 could_use=
5334 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5335 if test -d /opt/cygnus/bin ; then
5336 if test "$could_use" = "" ; then
5337 could_use="/opt/cygnus/bin"
5338 else
5339 could_use="$could_use or /opt/cygnus/bin"
5340 fi
5341 fi
5342 if test "$could_use" = "" ; then
5343 echo "Warning: compilation may fail because you're using"
5344 echo "/usr/ucb/cc. You should change your PATH or CC "
5345 echo "variable and rerun configure."
5346 else
5347 echo "Warning: compilation may fail because you're using"
5348 echo "/usr/ucb/cc, when you should use the C compiler from"
5349 echo "$could_use. You should change your"
5350 echo "PATH or CC variable and rerun configure."
5351 fi
5352 fi
5353 ;;
5354esac
5355
a0da8069
NN
5356case "${host}" in
5357 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5358 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5359 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5360esac
5361
5362# Record target_configdirs and the configure arguments for target and
5363# build configuration in Makefile.
5364target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5365build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5366
a0da8069
NN
5367# Determine whether gdb needs tk/tcl or not.
5368# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5369# and in that case we want gdb to be built without tk. Ugh!
5370# In fact I believe gdb is the *only* package directly dependent on tk,
5371# so we should be able to put the 'maybe's in unconditionally and
5372# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5373# 100% sure that that's safe though.
c180f501 5374
675c6968 5375gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5376case "$enable_gdbtk" in
5377 no)
5378 GDB_TK="" ;;
c180f501
AC
5379 yes)
5380 GDB_TK="${gdb_tk}" ;;
a0da8069 5381 *)
c180f501
AC
5382 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5383 # distro. Eventually someone will fix this and move Insight, nee
5384 # gdbtk to a separate directory.
5385 if test -d ${srcdir}/gdb/gdbtk ; then
5386 GDB_TK="${gdb_tk}"
5387 else
5388 GDB_TK=""
5389 fi
5390 ;;
a0da8069 5391esac
907be67c
DJ
5392CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5393INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5394
6bd3dfaa 5395# Strip out unwanted targets.
dd12c3a8
NN
5396
5397# While at that, we remove Makefiles if we were started for recursive
5398# configuration, so that the top-level Makefile reconfigures them,
5399# like we used to do when configure itself was recursive.
dd12c3a8 5400
6bd3dfaa
PB
5401# Loop over modules. $extrasub must be used with care, limiting as
5402# much as possible the usage of range addresses. That's because autoconf
5403# splits the sed script to overcome limits in the number of commands,
5404# and relying on carefully-timed sed passes may turn out to be very hard
5405# to maintain later. In this particular case, you just have to be careful
5406# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5407
319cab08
PB
5408# Check whether --enable-bootstrap or --disable-bootstrap was given.
5409if test "${enable_bootstrap+set}" = set; then
5410 enableval="$enable_bootstrap"
c6b750e1 5411
319cab08 5412else
9cb3fa6f 5413 enable_bootstrap=default
c6b750e1 5414fi;
319cab08 5415
9cb3fa6f
PB
5416# Issue errors and warnings for invalid/strange bootstrap combinations.
5417case "$configdirs" in
5418 *gcc*) have_compiler=yes ;;
5419 *) have_compiler=no ;;
5420esac
5421
5422case "$have_compiler:$host:$target:$enable_bootstrap" in
5423 *:*:*:no) ;;
5424
0aed8855 5425 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5426 # and we are in a native configuration.
5427 yes:$build:$build:default)
0aed8855 5428 enable_bootstrap=yes ;;
9cb3fa6f
PB
5429
5430 *:*:*:default)
5431 enable_bootstrap=no ;;
5432
5433 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5434 yes:$build:$build:yes)
9cb3fa6f
PB
5435 ;;
5436
5437 # Other configurations, but we have a compiler. Assume the user knows
5438 # what he's doing.
80911fe1 5439 yes:*:*:yes)
c6b750e1
DJ
5440 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5441echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5442 ;;
5443
5444 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5445 no:*:*:yes)
c6b750e1
DJ
5446 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5447echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5448 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5449
5450 # Fail if wrong command line
5451 *)
c6b750e1
DJ
5452 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5453echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5454 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5455 ;;
5456esac
5457
5458# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5459case "$enable_bootstrap" in
5460 yes)
498d4a71 5461 bootstrap_suffix=bootstrap ;;
319cab08 5462 no)
498d4a71 5463 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5464esac
5465
6a9cf61e 5466for module in ${build_configdirs} ; do
498d4a71
CF
5467 if test -z "${no_recursion}" \
5468 && test -f ${build_subdir}/${module}/Makefile; then
5469 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5470 rm -f ${build_subdir}/${module}/Makefile
5471 fi
5472 extrasub="$extrasub
5473/^@if build-$module\$/d
5474/^@endif build-$module\$/d
5475/^@if build-$module-$bootstrap_suffix\$/d
5476/^@endif build-$module-$bootstrap_suffix\$/d"
5477done
5478for module in ${configdirs} ; do
80911fe1 5479 if test -z "${no_recursion}"; then
8cf39b1b 5480 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5481 if test -f ${file}; then
5482 echo 1>&2 "*** removing ${file} to force reconfigure"
5483 rm -f ${file}
5484 fi
5485 done
498d4a71
CF
5486 fi
5487 extrasub="$extrasub
5488/^@if $module\$/d
5489/^@endif $module\$/d
5490/^@if $module-$bootstrap_suffix\$/d
5491/^@endif $module-$bootstrap_suffix\$/d"
5492done
5493for module in ${target_configdirs} ; do
5494 if test -z "${no_recursion}" \
5495 && test -f ${target_subdir}/${module}/Makefile; then
5496 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5497 rm -f ${target_subdir}/${module}/Makefile
5498 fi
5499 extrasub="$extrasub
5500/^@if target-$module\$/d
5501/^@endif target-$module\$/d
5502/^@if target-$module-$bootstrap_suffix\$/d
5503/^@endif target-$module-$bootstrap_suffix\$/d"
5504done
5505
6bd3dfaa
PB
5506extrasub="$extrasub
5507/^@if /,/^@endif /d"
a0da8069
NN
5508
5509# Create the serialization dependencies. This uses a temporary file.
5510
e6bfb94a
AO
5511# Check whether --enable-serial-configure or --disable-serial-configure was given.
5512if test "${enable_serial_configure+set}" = set; then
5513 enableval="$enable_serial_configure"
e6bfb94a 5514
c6b750e1 5515fi;
e6bfb94a 5516
1047cb91
DD
5517case ${enable_serial_configure} in
5518 yes)
5519 enable_serial_build_configure=yes
5520 enable_serial_host_configure=yes
5521 enable_serial_target_configure=yes
5522 ;;
5523esac
5524
a0da8069
NN
5525# These force 'configure's to be done one at a time, to avoid problems
5526# with contention over a shared config.cache.
5527rm -f serdep.tmp
e6bfb94a 5528echo '# serdep.tmp' > serdep.tmp
a0da8069 5529olditem=
1047cb91 5530test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5531for item in ${build_configdirs} ; do
5532 case ${olditem} in
5533 "") ;;
e6bfb94a 5534 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5535 esac
5536 olditem=${item}
5537done
5538olditem=
1047cb91 5539test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5540for item in ${configdirs} ; do
5541 case ${olditem} in
5542 "") ;;
e6bfb94a 5543 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5544 esac
5545 olditem=${item}
5546done
5547olditem=
1047cb91 5548test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5549for item in ${target_configdirs} ; do
5550 case ${olditem} in
5551 "") ;;
e6bfb94a 5552 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5553 esac
5554 olditem=${item}
5555done
5556serialization_dependencies=serdep.tmp
5557
5558
e6bfb94a 5559# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5560# target, nonopt, and variable assignments. These are the ones we
5561# might not want to pass down to subconfigures. Also strip
5562# program-prefix, program-suffix, and program-transform-name, so that
5563# we can pass down a consistent program-transform-name.
5564baseargs=
5565keep_next=no
5566skip_next=no
5567eval "set -- $ac_configure_args"
18f6b6ee
PB
5568for ac_arg
5569do
c6b750e1
DJ
5570 if test X"$skip_next" = X"yes"; then
5571 skip_next=no
5572 continue
5573 fi
5574 if test X"$keep_next" = X"yes"; then
5575 case $ac_arg in
5576 *\'*)
5577 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5578 esac
5579 baseargs="$baseargs '$ac_arg'"
5580 keep_next=no
5581 continue
5582 fi
5583
5584 # Handle separated arguments. Based on the logic generated by
5585 # autoconf 2.59.
5586 case $ac_arg in
5587 *=* | --config-cache | -C | -disable-* | --disable-* \
5588 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5589 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5590 | -with-* | --with-* | -without-* | --without-* | --x)
5591 separate_arg=no
5592 ;;
5593 -*)
5594 separate_arg=yes
5595 ;;
5596 *)
5597 separate_arg=no
5598 ;;
5599 esac
5600
5601 case "$ac_arg" in
5602 --no*)
5603 continue
5604 ;;
5605 --c* | \
5606 --sr* | \
5607 --ho* | \
5608 --bu* | \
5609 --t* | \
5610 --program-* | \
5611 -cache_file* | \
5612 -srcdir* | \
5613 -host* | \
5614 -build* | \
5615 -target* | \
5616 -program-prefix* | \
5617 -program-suffix* | \
5618 -program-transform-name* )
5619 skip_next=$separate_arg
5620 continue
5621 ;;
5622 -*)
5623 # An option. Add it.
5624 case $ac_arg in
5625 *\'*)
5626 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5627 esac
5628 baseargs="$baseargs '$ac_arg'"
5629 keep_next=$separate_arg
5630 ;;
5631 *)
5632 # Either a variable assignment, or a nonopt (triplet). Don't
5633 # pass it down; let the Makefile handle this.
5634 continue
5635 ;;
5636 esac
5637done
5638# Remove the initial space we just introduced and, as these will be
5639# expanded by make, quote '$'.
5640baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5641
f27d4f92
DJ
5642# Add in --program-transform-name, after --program-prefix and
5643# --program-suffix have been applied to it. Autoconf has already
5644# doubled dollar signs and backslashes in program_transform_name; we want
5645# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5646# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5647# Also, because we want to override the logic in subdir configure scripts to
5648# choose program_transform_name, replace any s,x,x, with s,y,y,.
5649sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5650${program_transform_name}
5651EOF_SED
5652gcc_transform_name=`cat conftestsed.out`
5653rm -f conftestsed.out
5654baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5655
a0da8069
NN
5656# For the build-side libraries, we just need to pretend we're native,
5657# and not use the same cache file. Multilibs are neither needed nor
5658# desired.
4b900473 5659build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5660
5661# For host modules, accept cache file option, or specification as blank.
5662case "${cache_file}" in
5663"") # empty
5664 cache_file_option="" ;;
5665/* | [A-Za-z]:[\\/]* ) # absolute path
5666 cache_file_option="--cache-file=${cache_file}" ;;
5667*) # relative path
5668 cache_file_option="--cache-file=../${cache_file}" ;;
5669esac
5670
82252c06
NN
5671# Host dirs don't like to share a cache file either, horribly enough.
5672# This seems to be due to autoconf 2.5x stupidity.
4b900473 5673host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5674
5675target_configargs=${baseargs}
5676
5677# Passing a --with-cross-host argument lets the target libraries know
5678# whether they are being built with a cross-compiler or being built
5679# native. However, it would be better to use other mechanisms to make the
5680# sorts of decisions they want to make on this basis. Please consider
5681# this option to be deprecated. FIXME.
5682if test x${is_cross_compiler} = xyes ; then
c6b750e1 5683 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5684fi
5685
5686# Default to --enable-multilib.
5687if test x${enable_multilib} = x ; then
5688 target_configargs="--enable-multilib ${target_configargs}"
5689fi
5690
5691# Pass --with-newlib if appropriate. Note that target_configdirs has
5692# changed from the earlier setting of with_newlib.
5693if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5694 target_configargs="--with-newlib ${target_configargs}"
5695fi
5696
95036d20
NN
5697# Different target subdirs use different values of certain variables
5698# (notably CXX). Worse, multilibs use *lots* of different values.
5699# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5700# it doesn't automatically accept command-line overrides of them.
5701# This means it's not safe for target subdirs to share a cache file,
5702# which is disgusting, but there you have it. Hopefully this can be
5703# fixed in future. It's still worthwhile to use a cache file for each
5704# directory. I think.
5705
ae380b45
MS
5706# Pass the appropriate --build, --host, --target and --cache-file arguments.
5707# We need to pass --target, as newer autoconf's requires consistency
5708# for target_alias and gcc doesn't manage it consistently.
4b900473 5709target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5710
a0da8069
NN
5711FLAGS_FOR_TARGET=
5712case " $target_configdirs " in
5713 *" newlib "*)
5714 case " $target_configargs " in
5715 *" --with-newlib "*)
5716 case "$target" in
5717 *-cygwin*)
564b43e5 5718 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
5719 esac
5720
5721 # If we're not building GCC, don't discard standard headers.
5722 if test -d ${srcdir}/gcc; then
5723 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5724
5725 if test "${build}" != "${host}"; then
5726 # On Canadian crosses, CC_FOR_TARGET will have already been set
5727 # by `configure', so we won't have an opportunity to add -Bgcc/
5728 # to it. This is right: we don't want to search that directory
5729 # for binaries, but we want the header files in there, so add
5730 # them explicitly.
b00612cc 5731 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5732
5733 # Someone might think of using the pre-installed headers on
5734 # Canadian crosses, in case the installed compiler is not fully
5735 # compatible with the compiler being built. In this case, it
5736 # would be better to flag an error than risking having
5737 # incompatible object files being constructed. We can't
5738 # guarantee that an error will be flagged, but let's hope the
5739 # compiler will do it, when presented with incompatible header
5740 # files.
5741 fi
5742 fi
5743
5744 case "${target}-${is_cross_compiler}" in
ec11bdc6 5745 i[3456789]86-*-linux*-no)
a0da8069
NN
5746 # Here host == target, so we don't need to build gcc,
5747 # so we don't want to discard standard headers.
5748 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5749 ;;
5750 *)
5751 # If we're building newlib, use its generic headers last, but search
5752 # for any libc-related directories first (so make it the last -B
5753 # switch).
5754 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5755 ;;
5756 esac
5757 ;;
5758 esac
5759 ;;
5760esac
45055374
CV
5761case "$target" in
5762*-mingw*)
5763 # Can't be handled as Cygwin above since Mingw does not use newlib.
5764 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' ;;
5765esac
a0da8069 5766
5fbad20a
DD
5767# Allow the user to override the flags for
5768# our build compiler if desired.
5769CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5770
a0da8069
NN
5771# On Canadian crosses, we'll be searching the right directories for
5772# the previously-installed cross compiler, so don't bother to add
5773# flags for directories within the install tree of the compiler
5774# being built; programs in there won't even run.
5775if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5776 # Search for pre-installed headers if nothing else fits.
bba45b8b 5777 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
5778fi
5779
5780if test "x${use_gnu_ld}" = x &&
5781 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5782 # Arrange for us to find uninstalled linker scripts.
b00612cc 5783 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
5784fi
5785
a481dbb7
DD
5786# Search for other target-specific linker scripts and such.
5787case "${target}" in
5788 m32c-*-* )
5789 if test -d ${srcdir}/libgloss/m32c; then
5790 # This is for crt0.o
5791 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5792 # This is for r8c.ld
5793 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5794 # This is for libnosys.a
5795 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5796 fi
5797 ;;
4e206d7e
DB
5798 mep*)
5799 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5800 ;;
5801esac
5802
a0da8069 5803# Makefile fragments.
3e707e94
PB
5804for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5805do
5806 eval fragval=\$$frag
5807 if test $fragval != /dev/null; then
5808 eval $frag=${srcdir}/$fragval
5809 fi
5810done
a0da8069
NN
5811
5812
5813
5814
5815
5816# Miscellanea: directories, flags, etc.
5817
5818
5819
5820
5821
5822
5823
6a9cf61e 5824# Build module lists & subconfigure args.
a0da8069
NN
5825
5826
5827
be01d343
PB
5828# Host module lists & subconfigure args.
5829
5830
5831
5832# Target module lists & subconfigure args.
5833
5834
5835
5836# Build tools.
5837
5838
5839
5840# Generate default definitions for YACC, M4, LEX and other programs that run
5841# on the build machine. These are used if the Makefile can't locate these
5842# programs in objdir.
5843MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5844
5845for ac_prog in 'bison -y' byacc yacc
5846do
c6b750e1 5847 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5848set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5849echo "$as_me:$LINENO: checking for $ac_word" >&5
5850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5851if test "${ac_cv_prog_YACC+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5853else
5854 if test -n "$YACC"; then
5855 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5856else
c6b750e1
DJ
5857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858for as_dir in $PATH
5859do
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864 ac_cv_prog_YACC="$ac_prog"
5865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 break 2
5867 fi
5868done
5869done
5870
be01d343
PB
5871fi
5872fi
c6b750e1 5873YACC=$ac_cv_prog_YACC
be01d343 5874if test -n "$YACC"; then
c6b750e1
DJ
5875 echo "$as_me:$LINENO: result: $YACC" >&5
5876echo "${ECHO_T}$YACC" >&6
be01d343 5877else
c6b750e1
DJ
5878 echo "$as_me:$LINENO: result: no" >&5
5879echo "${ECHO_T}no" >&6
be01d343
PB
5880fi
5881
c6b750e1 5882 test -n "$YACC" && break
be01d343
PB
5883done
5884test -n "$YACC" || YACC="$MISSING bison -y"
5885
5886case " $build_configdirs " in
5887 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5888 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5889esac
5890
5891for ac_prog in bison
5892do
c6b750e1 5893 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5894set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5895echo "$as_me:$LINENO: checking for $ac_word" >&5
5896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5897if test "${ac_cv_prog_BISON+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5899else
5900 if test -n "$BISON"; then
5901 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5902else
c6b750e1
DJ
5903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904for as_dir in $PATH
5905do
5906 IFS=$as_save_IFS
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5910 ac_cv_prog_BISON="$ac_prog"
5911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5912 break 2
5913 fi
5914done
5915done
5916
be01d343
PB
5917fi
5918fi
c6b750e1 5919BISON=$ac_cv_prog_BISON
be01d343 5920if test -n "$BISON"; then
c6b750e1
DJ
5921 echo "$as_me:$LINENO: result: $BISON" >&5
5922echo "${ECHO_T}$BISON" >&6
be01d343 5923else
c6b750e1
DJ
5924 echo "$as_me:$LINENO: result: no" >&5
5925echo "${ECHO_T}no" >&6
be01d343
PB
5926fi
5927
c6b750e1 5928 test -n "$BISON" && break
be01d343
PB
5929done
5930test -n "$BISON" || BISON="$MISSING bison"
5931
5932case " $build_configdirs " in
5933 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5934esac
5935
5936for ac_prog in gm4 gnum4 m4
5937do
c6b750e1 5938 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5939set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5940echo "$as_me:$LINENO: checking for $ac_word" >&5
5941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5942if test "${ac_cv_prog_M4+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5944else
5945 if test -n "$M4"; then
5946 ac_cv_prog_M4="$M4" # Let the user override the test.
5947else
c6b750e1
DJ
5948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949for as_dir in $PATH
5950do
5951 IFS=$as_save_IFS
5952 test -z "$as_dir" && as_dir=.
5953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5955 ac_cv_prog_M4="$ac_prog"
5956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 break 2
5958 fi
5959done
5960done
5961
be01d343
PB
5962fi
5963fi
c6b750e1 5964M4=$ac_cv_prog_M4
be01d343 5965if test -n "$M4"; then
c6b750e1
DJ
5966 echo "$as_me:$LINENO: result: $M4" >&5
5967echo "${ECHO_T}$M4" >&6
be01d343 5968else
c6b750e1
DJ
5969 echo "$as_me:$LINENO: result: no" >&5
5970echo "${ECHO_T}no" >&6
be01d343
PB
5971fi
5972
c6b750e1 5973 test -n "$M4" && break
be01d343
PB
5974done
5975test -n "$M4" || M4="$MISSING m4"
5976
5977case " $build_configdirs " in
5978 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5979esac
5980
5981for ac_prog in flex lex
5982do
c6b750e1 5983 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5984set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5985echo "$as_me:$LINENO: checking for $ac_word" >&5
5986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5987if test "${ac_cv_prog_LEX+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5989else
5990 if test -n "$LEX"; then
5991 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5992else
c6b750e1
DJ
5993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994for as_dir in $PATH
5995do
5996 IFS=$as_save_IFS
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000 ac_cv_prog_LEX="$ac_prog"
6001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6002 break 2
6003 fi
6004done
6005done
6006
be01d343
PB
6007fi
6008fi
c6b750e1 6009LEX=$ac_cv_prog_LEX
be01d343 6010if test -n "$LEX"; then
c6b750e1
DJ
6011 echo "$as_me:$LINENO: result: $LEX" >&5
6012echo "${ECHO_T}$LEX" >&6
be01d343 6013else
c6b750e1
DJ
6014 echo "$as_me:$LINENO: result: no" >&5
6015echo "${ECHO_T}no" >&6
be01d343
PB
6016fi
6017
c6b750e1 6018 test -n "$LEX" && break
be01d343
PB
6019done
6020test -n "$LEX" || LEX="$MISSING flex"
6021
6022case " $build_configdirs " in
6023 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6024 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6025esac
6026
6027for ac_prog in flex
6028do
c6b750e1 6029 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6030set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6031echo "$as_me:$LINENO: checking for $ac_word" >&5
6032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6033if test "${ac_cv_prog_FLEX+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6035else
6036 if test -n "$FLEX"; then
6037 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6038else
c6b750e1
DJ
6039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040for as_dir in $PATH
6041do
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6046 ac_cv_prog_FLEX="$ac_prog"
6047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 break 2
6049 fi
6050done
6051done
6052
be01d343
PB
6053fi
6054fi
c6b750e1 6055FLEX=$ac_cv_prog_FLEX
be01d343 6056if test -n "$FLEX"; then
c6b750e1
DJ
6057 echo "$as_me:$LINENO: result: $FLEX" >&5
6058echo "${ECHO_T}$FLEX" >&6
be01d343 6059else
c6b750e1
DJ
6060 echo "$as_me:$LINENO: result: no" >&5
6061echo "${ECHO_T}no" >&6
be01d343
PB
6062fi
6063
c6b750e1 6064 test -n "$FLEX" && break
be01d343
PB
6065done
6066test -n "$FLEX" || FLEX="$MISSING flex"
6067
6068case " $build_configdirs " in
6069 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6070esac
6071
6072for ac_prog in makeinfo
6073do
c6b750e1 6074 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6075set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6076echo "$as_me:$LINENO: checking for $ac_word" >&5
6077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6078if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6080else
6081 if test -n "$MAKEINFO"; then
6082 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6083else
c6b750e1
DJ
6084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085for as_dir in $PATH
6086do
6087 IFS=$as_save_IFS
6088 test -z "$as_dir" && as_dir=.
6089 for ac_exec_ext in '' $ac_executable_extensions; do
6090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6091 ac_cv_prog_MAKEINFO="$ac_prog"
6092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6093 break 2
6094 fi
6095done
6096done
6097
be01d343
PB
6098fi
6099fi
c6b750e1 6100MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6101if test -n "$MAKEINFO"; then
c6b750e1
DJ
6102 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6103echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6104else
c6b750e1
DJ
6105 echo "$as_me:$LINENO: result: no" >&5
6106echo "${ECHO_T}no" >&6
be01d343
PB
6107fi
6108
c6b750e1 6109 test -n "$MAKEINFO" && break
be01d343
PB
6110done
6111test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6112
6113case " $build_configdirs " in
6114 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6115 *)
6116
a4ef73e9 6117 # For an installed makeinfo, we require it to be from texinfo 4.4 or
be01d343
PB
6118 # higher, else we use the "missing" dummy.
6119 if ${MAKEINFO} --version \
a4ef73e9 6120 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
be01d343
PB
6121 :
6122 else
6123 MAKEINFO="$MISSING makeinfo"
6124 fi
6125 ;;
6126
6127esac
a0da8069 6128
be01d343 6129# FIXME: expect and dejagnu may become build tools?
a0da8069 6130
be01d343
PB
6131for ac_prog in expect
6132do
c6b750e1 6133 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6134set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6135echo "$as_me:$LINENO: checking for $ac_word" >&5
6136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6137if test "${ac_cv_prog_EXPECT+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6139else
6140 if test -n "$EXPECT"; then
6141 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6142else
c6b750e1
DJ
6143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144for as_dir in $PATH
6145do
6146 IFS=$as_save_IFS
6147 test -z "$as_dir" && as_dir=.
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6150 ac_cv_prog_EXPECT="$ac_prog"
6151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6152 break 2
6153 fi
6154done
6155done
6156
be01d343
PB
6157fi
6158fi
c6b750e1 6159EXPECT=$ac_cv_prog_EXPECT
be01d343 6160if test -n "$EXPECT"; then
c6b750e1
DJ
6161 echo "$as_me:$LINENO: result: $EXPECT" >&5
6162echo "${ECHO_T}$EXPECT" >&6
be01d343 6163else
c6b750e1
DJ
6164 echo "$as_me:$LINENO: result: no" >&5
6165echo "${ECHO_T}no" >&6
be01d343 6166fi
a0da8069 6167
c6b750e1 6168 test -n "$EXPECT" && break
be01d343
PB
6169done
6170test -n "$EXPECT" || EXPECT="expect"
a0da8069 6171
be01d343
PB
6172case " $configdirs " in
6173 *" expect "*)
6174 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6175 ;;
6176esac
a0da8069 6177
be01d343
PB
6178for ac_prog in runtest
6179do
c6b750e1 6180 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6181set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6182echo "$as_me:$LINENO: checking for $ac_word" >&5
6183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6184if test "${ac_cv_prog_RUNTEST+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6186else
6187 if test -n "$RUNTEST"; then
6188 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6189else
c6b750e1
DJ
6190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191for as_dir in $PATH
6192do
6193 IFS=$as_save_IFS
6194 test -z "$as_dir" && as_dir=.
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6197 ac_cv_prog_RUNTEST="$ac_prog"
6198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199 break 2
6200 fi
6201done
6202done
6203
be01d343
PB
6204fi
6205fi
c6b750e1 6206RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6207if test -n "$RUNTEST"; then
c6b750e1
DJ
6208 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6209echo "${ECHO_T}$RUNTEST" >&6
be01d343 6210else
c6b750e1
DJ
6211 echo "$as_me:$LINENO: result: no" >&5
6212echo "${ECHO_T}no" >&6
be01d343 6213fi
a0da8069 6214
c6b750e1 6215 test -n "$RUNTEST" && break
be01d343
PB
6216done
6217test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6218
be01d343
PB
6219case " $configdirs " in
6220 *" dejagnu "*)
6b89cc21 6221 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6222 ;;
6223esac
a0da8069
NN
6224
6225
a0da8069 6226# Host tools.
859789af
AC
6227ncn_tool_prefix=
6228test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6229ncn_target_tool_prefix=
6230test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6231
9a819804
AO
6232
6233
6234if test -n "$AR"; then
6235 ac_cv_prog_AR=$AR
6236elif test -n "$ac_cv_prog_AR"; then
6237 AR=$ac_cv_prog_AR
6238fi
6239
6240if test -n "$ac_cv_prog_AR"; then
6241 for ncn_progname in ar; do
6242 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6243set dummy ${ncn_progname}; ac_word=$2
6244echo "$as_me:$LINENO: checking for $ac_word" >&5
6245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6246if test "${ac_cv_prog_AR+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6248else
6249 if test -n "$AR"; then
6250 ac_cv_prog_AR="$AR" # Let the user override the test.
6251else
6252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253for as_dir in $PATH
6254do
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6259 ac_cv_prog_AR="${ncn_progname}"
6260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 break 2
6262 fi
6263done
6264done
6265
6266fi
6267fi
6268AR=$ac_cv_prog_AR
6269if test -n "$AR"; then
6270 echo "$as_me:$LINENO: result: $AR" >&5
6271echo "${ECHO_T}$AR" >&6
6272else
6273 echo "$as_me:$LINENO: result: no" >&5
6274echo "${ECHO_T}no" >&6
6275fi
6276
6277 done
6278fi
6279
6280for ncn_progname in ar; do
05cbd757
PB
6281 if test -n "$ncn_tool_prefix"; then
6282 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6283set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6284echo "$as_me:$LINENO: checking for $ac_word" >&5
6285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6286if test "${ac_cv_prog_AR+set}" = set; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6288else
6289 if test -n "$AR"; then
6290 ac_cv_prog_AR="$AR" # Let the user override the test.
6291else
c6b750e1
DJ
6292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293for as_dir in $PATH
6294do
6295 IFS=$as_save_IFS
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6299 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 break 2
6302 fi
6303done
6304done
6305
859789af
AC
6306fi
6307fi
c6b750e1 6308AR=$ac_cv_prog_AR
859789af 6309if test -n "$AR"; then
c6b750e1
DJ
6310 echo "$as_me:$LINENO: result: $AR" >&5
6311echo "${ECHO_T}$AR" >&6
859789af 6312else
c6b750e1
DJ
6313 echo "$as_me:$LINENO: result: no" >&5
6314echo "${ECHO_T}no" >&6
859789af
AC
6315fi
6316
05cbd757
PB
6317 fi
6318 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6319 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6320set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6321echo "$as_me:$LINENO: checking for $ac_word" >&5
6322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6323if test "${ac_cv_prog_AR+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6325else
05cbd757
PB
6326 if test -n "$AR"; then
6327 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6328else
c6b750e1
DJ
6329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330for as_dir in $PATH
6331do
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6336 ac_cv_prog_AR="${ncn_progname}"
6337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 break 2
6339 fi
6340done
6341done
6342
859789af
AC
6343fi
6344fi
c6b750e1 6345AR=$ac_cv_prog_AR
05cbd757 6346if test -n "$AR"; then
c6b750e1
DJ
6347 echo "$as_me:$LINENO: result: $AR" >&5
6348echo "${ECHO_T}$AR" >&6
859789af 6349else
c6b750e1
DJ
6350 echo "$as_me:$LINENO: result: no" >&5
6351echo "${ECHO_T}no" >&6
859789af 6352fi
c6b750e1 6353
05cbd757
PB
6354 fi
6355 test -n "$ac_cv_prog_AR" && break
6356done
6357
6358if test -z "$ac_cv_prog_AR" ; then
6359 set dummy ar
6360 if test $build = $host ; then
6361 AR="$2"
859789af 6362 else
05cbd757 6363 AR="${ncn_tool_prefix}$2"
859789af 6364 fi
859789af
AC
6365fi
6366
9a819804
AO
6367
6368
6369if test -n "$AS"; then
6370 ac_cv_prog_AS=$AS
6371elif test -n "$ac_cv_prog_AS"; then
6372 AS=$ac_cv_prog_AS
6373fi
6374
6375if test -n "$ac_cv_prog_AS"; then
6376 for ncn_progname in as; do
6377 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6378set dummy ${ncn_progname}; ac_word=$2
6379echo "$as_me:$LINENO: checking for $ac_word" >&5
6380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6381if test "${ac_cv_prog_AS+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6383else
6384 if test -n "$AS"; then
6385 ac_cv_prog_AS="$AS" # Let the user override the test.
6386else
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_AS="${ncn_progname}"
6395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398done
6399done
6400
6401fi
6402fi
6403AS=$ac_cv_prog_AS
6404if test -n "$AS"; then
6405 echo "$as_me:$LINENO: result: $AS" >&5
6406echo "${ECHO_T}$AS" >&6
6407else
6408 echo "$as_me:$LINENO: result: no" >&5
6409echo "${ECHO_T}no" >&6
6410fi
6411
6412 done
6413fi
6414
6415for ncn_progname in as; do
05cbd757
PB
6416 if test -n "$ncn_tool_prefix"; then
6417 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6418set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6419echo "$as_me:$LINENO: checking for $ac_word" >&5
6420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6421if test "${ac_cv_prog_AS+set}" = set; then
6422 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6423else
6424 if test -n "$AS"; then
6425 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6426else
6427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428for as_dir in $PATH
6429do
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6434 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 break 2
6437 fi
6438done
6439done
6440
859789af
AC
6441fi
6442fi
c6b750e1 6443AS=$ac_cv_prog_AS
859789af 6444if test -n "$AS"; then
c6b750e1
DJ
6445 echo "$as_me:$LINENO: result: $AS" >&5
6446echo "${ECHO_T}$AS" >&6
859789af 6447else
c6b750e1
DJ
6448 echo "$as_me:$LINENO: result: no" >&5
6449echo "${ECHO_T}no" >&6
859789af
AC
6450fi
6451
05cbd757
PB
6452 fi
6453 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6454 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6455set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6456echo "$as_me:$LINENO: checking for $ac_word" >&5
6457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6458if test "${ac_cv_prog_AS+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6460else
05cbd757
PB
6461 if test -n "$AS"; then
6462 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6463else
c6b750e1
DJ
6464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465for as_dir in $PATH
6466do
6467 IFS=$as_save_IFS
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6471 ac_cv_prog_AS="${ncn_progname}"
6472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 break 2
6474 fi
6475done
6476done
6477
859789af
AC
6478fi
6479fi
c6b750e1 6480AS=$ac_cv_prog_AS
05cbd757 6481if test -n "$AS"; then
c6b750e1
DJ
6482 echo "$as_me:$LINENO: result: $AS" >&5
6483echo "${ECHO_T}$AS" >&6
859789af 6484else
c6b750e1
DJ
6485 echo "$as_me:$LINENO: result: no" >&5
6486echo "${ECHO_T}no" >&6
859789af 6487fi
c6b750e1 6488
05cbd757
PB
6489 fi
6490 test -n "$ac_cv_prog_AS" && break
6491done
6492
6493if test -z "$ac_cv_prog_AS" ; then
6494 set dummy as
6495 if test $build = $host ; then
6496 AS="$2"
859789af 6497 else
05cbd757 6498 AS="${ncn_tool_prefix}$2"
859789af 6499 fi
859789af
AC
6500fi
6501
9a819804
AO
6502
6503
6504if test -n "$DLLTOOL"; then
6505 ac_cv_prog_DLLTOOL=$DLLTOOL
6506elif test -n "$ac_cv_prog_DLLTOOL"; then
6507 DLLTOOL=$ac_cv_prog_DLLTOOL
6508fi
6509
6510if test -n "$ac_cv_prog_DLLTOOL"; then
6511 for ncn_progname in dlltool; do
6512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6513set dummy ${ncn_progname}; ac_word=$2
6514echo "$as_me:$LINENO: checking for $ac_word" >&5
6515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6516if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6518else
6519 if test -n "$DLLTOOL"; then
6520 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6521else
6522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523for as_dir in $PATH
6524do
6525 IFS=$as_save_IFS
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6529 ac_cv_prog_DLLTOOL="${ncn_progname}"
6530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6531 break 2
6532 fi
6533done
6534done
6535
6536fi
6537fi
6538DLLTOOL=$ac_cv_prog_DLLTOOL
6539if test -n "$DLLTOOL"; then
6540 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6541echo "${ECHO_T}$DLLTOOL" >&6
6542else
6543 echo "$as_me:$LINENO: result: no" >&5
6544echo "${ECHO_T}no" >&6
6545fi
6546
6547 done
6548fi
6549
6550for ncn_progname in dlltool; do
05cbd757
PB
6551 if test -n "$ncn_tool_prefix"; then
6552 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6553set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6554echo "$as_me:$LINENO: checking for $ac_word" >&5
6555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6556if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6558else
6559 if test -n "$DLLTOOL"; then
6560 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6561else
c6b750e1
DJ
6562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563for as_dir in $PATH
6564do
6565 IFS=$as_save_IFS
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6569 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 break 2
6572 fi
6573done
6574done
6575
859789af
AC
6576fi
6577fi
c6b750e1 6578DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6579if test -n "$DLLTOOL"; then
c6b750e1
DJ
6580 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6581echo "${ECHO_T}$DLLTOOL" >&6
859789af 6582else
c6b750e1
DJ
6583 echo "$as_me:$LINENO: result: no" >&5
6584echo "${ECHO_T}no" >&6
859789af
AC
6585fi
6586
05cbd757
PB
6587 fi
6588 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6590set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6591echo "$as_me:$LINENO: checking for $ac_word" >&5
6592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6593if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6595else
05cbd757
PB
6596 if test -n "$DLLTOOL"; then
6597 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6598else
c6b750e1
DJ
6599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600for as_dir in $PATH
6601do
6602 IFS=$as_save_IFS
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606 ac_cv_prog_DLLTOOL="${ncn_progname}"
6607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 break 2
6609 fi
6610done
6611done
6612
859789af
AC
6613fi
6614fi
c6b750e1 6615DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6616if test -n "$DLLTOOL"; then
c6b750e1
DJ
6617 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6618echo "${ECHO_T}$DLLTOOL" >&6
859789af 6619else
c6b750e1
DJ
6620 echo "$as_me:$LINENO: result: no" >&5
6621echo "${ECHO_T}no" >&6
859789af 6622fi
c6b750e1 6623
05cbd757
PB
6624 fi
6625 test -n "$ac_cv_prog_DLLTOOL" && break
6626done
6627
6628if test -z "$ac_cv_prog_DLLTOOL" ; then
6629 set dummy dlltool
6630 if test $build = $host ; then
6631 DLLTOOL="$2"
859789af 6632 else
05cbd757 6633 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6634 fi
859789af
AC
6635fi
6636
9a819804
AO
6637
6638
6639if test -n "$LD"; then
6640 ac_cv_prog_LD=$LD
6641elif test -n "$ac_cv_prog_LD"; then
6642 LD=$ac_cv_prog_LD
6643fi
6644
6645if test -n "$ac_cv_prog_LD"; then
6646 for ncn_progname in ld; do
6647 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6648set dummy ${ncn_progname}; ac_word=$2
6649echo "$as_me:$LINENO: checking for $ac_word" >&5
6650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6651if test "${ac_cv_prog_LD+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6653else
6654 if test -n "$LD"; then
6655 ac_cv_prog_LD="$LD" # Let the user override the test.
6656else
6657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
6659do
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6664 ac_cv_prog_LD="${ncn_progname}"
6665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 break 2
6667 fi
6668done
6669done
6670
6671fi
6672fi
6673LD=$ac_cv_prog_LD
6674if test -n "$LD"; then
6675 echo "$as_me:$LINENO: result: $LD" >&5
6676echo "${ECHO_T}$LD" >&6
6677else
6678 echo "$as_me:$LINENO: result: no" >&5
6679echo "${ECHO_T}no" >&6
6680fi
6681
6682 done
6683fi
6684
6685for ncn_progname in ld; do
05cbd757
PB
6686 if test -n "$ncn_tool_prefix"; then
6687 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6688set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6689echo "$as_me:$LINENO: checking for $ac_word" >&5
6690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6691if test "${ac_cv_prog_LD+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6693else
6694 if test -n "$LD"; then
6695 ac_cv_prog_LD="$LD" # Let the user override the test.
6696else
c6b750e1
DJ
6697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698for as_dir in $PATH
6699do
6700 IFS=$as_save_IFS
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6704 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 break 2
6707 fi
6708done
6709done
6710
859789af
AC
6711fi
6712fi
c6b750e1 6713LD=$ac_cv_prog_LD
859789af 6714if test -n "$LD"; then
c6b750e1
DJ
6715 echo "$as_me:$LINENO: result: $LD" >&5
6716echo "${ECHO_T}$LD" >&6
859789af 6717else
c6b750e1
DJ
6718 echo "$as_me:$LINENO: result: no" >&5
6719echo "${ECHO_T}no" >&6
859789af
AC
6720fi
6721
05cbd757
PB
6722 fi
6723 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6725set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6726echo "$as_me:$LINENO: checking for $ac_word" >&5
6727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6728if test "${ac_cv_prog_LD+set}" = set; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6730else
05cbd757
PB
6731 if test -n "$LD"; then
6732 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6733else
c6b750e1
DJ
6734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735for as_dir in $PATH
6736do
6737 IFS=$as_save_IFS
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6741 ac_cv_prog_LD="${ncn_progname}"
6742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 break 2
6744 fi
6745done
6746done
6747
859789af
AC
6748fi
6749fi
c6b750e1 6750LD=$ac_cv_prog_LD
05cbd757 6751if test -n "$LD"; then
c6b750e1
DJ
6752 echo "$as_me:$LINENO: result: $LD" >&5
6753echo "${ECHO_T}$LD" >&6
859789af 6754else
c6b750e1
DJ
6755 echo "$as_me:$LINENO: result: no" >&5
6756echo "${ECHO_T}no" >&6
859789af 6757fi
c6b750e1 6758
05cbd757
PB
6759 fi
6760 test -n "$ac_cv_prog_LD" && break
6761done
6762
6763if test -z "$ac_cv_prog_LD" ; then
6764 set dummy ld
6765 if test $build = $host ; then
6766 LD="$2"
859789af 6767 else
05cbd757 6768 LD="${ncn_tool_prefix}$2"
859789af 6769 fi
859789af
AC
6770fi
6771
9a819804
AO
6772
6773
6774if test -n "$LIPO"; then
6775 ac_cv_prog_LIPO=$LIPO
6776elif test -n "$ac_cv_prog_LIPO"; then
6777 LIPO=$ac_cv_prog_LIPO
6778fi
6779
6780if test -n "$ac_cv_prog_LIPO"; then
6781 for ncn_progname in lipo; do
6782 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6783set dummy ${ncn_progname}; ac_word=$2
6784echo "$as_me:$LINENO: checking for $ac_word" >&5
6785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6786if test "${ac_cv_prog_LIPO+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6788else
6789 if test -n "$LIPO"; then
6790 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6791else
6792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793for as_dir in $PATH
6794do
6795 IFS=$as_save_IFS
6796 test -z "$as_dir" && as_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6799 ac_cv_prog_LIPO="${ncn_progname}"
6800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 break 2
6802 fi
6803done
6804done
6805
6806fi
6807fi
6808LIPO=$ac_cv_prog_LIPO
6809if test -n "$LIPO"; then
6810 echo "$as_me:$LINENO: result: $LIPO" >&5
6811echo "${ECHO_T}$LIPO" >&6
6812else
6813 echo "$as_me:$LINENO: result: no" >&5
6814echo "${ECHO_T}no" >&6
6815fi
6816
6817 done
6818fi
6819
6820for ncn_progname in lipo; do
be01d343
PB
6821 if test -n "$ncn_tool_prefix"; then
6822 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6823set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6824echo "$as_me:$LINENO: checking for $ac_word" >&5
6825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6826if test "${ac_cv_prog_LIPO+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6828else
6829 if test -n "$LIPO"; then
6830 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6831else
c6b750e1
DJ
6832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833for as_dir in $PATH
6834do
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6842 fi
6843done
6844done
6845
be01d343
PB
6846fi
6847fi
c6b750e1 6848LIPO=$ac_cv_prog_LIPO
be01d343 6849if test -n "$LIPO"; then
c6b750e1
DJ
6850 echo "$as_me:$LINENO: result: $LIPO" >&5
6851echo "${ECHO_T}$LIPO" >&6
be01d343 6852else
c6b750e1
DJ
6853 echo "$as_me:$LINENO: result: no" >&5
6854echo "${ECHO_T}no" >&6
be01d343
PB
6855fi
6856
6857 fi
6858 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6859 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6860set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6861echo "$as_me:$LINENO: checking for $ac_word" >&5
6862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6863if test "${ac_cv_prog_LIPO+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6865else
6866 if test -n "$LIPO"; then
6867 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6868else
c6b750e1
DJ
6869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870for as_dir in $PATH
6871do
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6876 ac_cv_prog_LIPO="${ncn_progname}"
6877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 break 2
6879 fi
6880done
6881done
6882
be01d343
PB
6883fi
6884fi
c6b750e1 6885LIPO=$ac_cv_prog_LIPO
be01d343 6886if test -n "$LIPO"; then
c6b750e1
DJ
6887 echo "$as_me:$LINENO: result: $LIPO" >&5
6888echo "${ECHO_T}$LIPO" >&6
be01d343 6889else
c6b750e1
DJ
6890 echo "$as_me:$LINENO: result: no" >&5
6891echo "${ECHO_T}no" >&6
be01d343 6892fi
c6b750e1 6893
be01d343
PB
6894 fi
6895 test -n "$ac_cv_prog_LIPO" && break
6896done
6897
6898if test -z "$ac_cv_prog_LIPO" ; then
6899 set dummy lipo
6900 if test $build = $host ; then
6901 LIPO="$2"
6902 else
6903 LIPO="${ncn_tool_prefix}$2"
6904 fi
6905fi
6906
9a819804
AO
6907
6908
6909if test -n "$NM"; then
6910 ac_cv_prog_NM=$NM
6911elif test -n "$ac_cv_prog_NM"; then
6912 NM=$ac_cv_prog_NM
6913fi
6914
6915if test -n "$ac_cv_prog_NM"; then
6916 for ncn_progname in nm; do
6917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6918set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6919echo "$as_me:$LINENO: checking for $ac_word" >&5
6920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6921if test "${ac_cv_prog_NM+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6923else
6924 if test -n "$NM"; then
6925 ac_cv_prog_NM="$NM" # Let the user override the test.
6926else
c6b750e1
DJ
6927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928for as_dir in $PATH
6929do
6930 IFS=$as_save_IFS
6931 test -z "$as_dir" && as_dir=.
6932 for ac_exec_ext in '' $ac_executable_extensions; do
6933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 6934 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
6935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 break 2
6937 fi
6938done
6939done
6940
859789af
AC
6941fi
6942fi
c6b750e1 6943NM=$ac_cv_prog_NM
859789af 6944if test -n "$NM"; then
c6b750e1
DJ
6945 echo "$as_me:$LINENO: result: $NM" >&5
6946echo "${ECHO_T}$NM" >&6
859789af 6947else
c6b750e1
DJ
6948 echo "$as_me:$LINENO: result: no" >&5
6949echo "${ECHO_T}no" >&6
859789af
AC
6950fi
6951
9a819804
AO
6952 done
6953fi
6954
6955for ncn_progname in nm; do
6956 if test -n "$ncn_tool_prefix"; then
6957 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6958set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6959echo "$as_me:$LINENO: checking for $ac_word" >&5
6960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6961if test "${ac_cv_prog_NM+set}" = set; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6963else
05cbd757
PB
6964 if test -n "$NM"; then
6965 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 6966else
c6b750e1
DJ
6967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968for as_dir in $PATH
6969do
6970 IFS=$as_save_IFS
6971 test -z "$as_dir" && as_dir=.
6972 for ac_exec_ext in '' $ac_executable_extensions; do
6973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 6974 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
6975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 break 2
6977 fi
6978done
6979done
6980
859789af
AC
6981fi
6982fi
c6b750e1 6983NM=$ac_cv_prog_NM
05cbd757 6984if test -n "$NM"; then
c6b750e1
DJ
6985 echo "$as_me:$LINENO: result: $NM" >&5
6986echo "${ECHO_T}$NM" >&6
859789af 6987else
c6b750e1
DJ
6988 echo "$as_me:$LINENO: result: no" >&5
6989echo "${ECHO_T}no" >&6
859789af 6990fi
c6b750e1 6991
05cbd757 6992 fi
9a819804
AO
6993 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
6994 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6995set dummy ${ncn_progname}; ac_word=$2
6996echo "$as_me:$LINENO: checking for $ac_word" >&5
6997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6998if test "${ac_cv_prog_NM+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7000else
7001 if test -n "$NM"; then
7002 ac_cv_prog_NM="$NM" # Let the user override the test.
7003else
7004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005for as_dir in $PATH
7006do
7007 IFS=$as_save_IFS
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7011 ac_cv_prog_NM="${ncn_progname}"
7012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 break 2
7014 fi
7015done
7016done
7017
7018fi
7019fi
7020NM=$ac_cv_prog_NM
7021if test -n "$NM"; then
7022 echo "$as_me:$LINENO: result: $NM" >&5
7023echo "${ECHO_T}$NM" >&6
7024else
7025 echo "$as_me:$LINENO: result: no" >&5
7026echo "${ECHO_T}no" >&6
7027fi
7028
7029 fi
7030 test -n "$ac_cv_prog_NM" && break
7031done
7032
7033if test -z "$ac_cv_prog_NM" ; then
7034 set dummy nm
7035 if test $build = $host ; then
7036 NM="$2"
7037 else
7038 NM="${ncn_tool_prefix}$2"
7039 fi
7040fi
7041
7042
7043
7044if test -n "$RANLIB"; then
7045 ac_cv_prog_RANLIB=$RANLIB
7046elif test -n "$ac_cv_prog_RANLIB"; then
7047 RANLIB=$ac_cv_prog_RANLIB
7048fi
7049
7050if test -n "$ac_cv_prog_RANLIB"; then
7051 for ncn_progname in ranlib; do
7052 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7053set dummy ${ncn_progname}; ac_word=$2
7054echo "$as_me:$LINENO: checking for $ac_word" >&5
7055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7056if test "${ac_cv_prog_RANLIB+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7058else
7059 if test -n "$RANLIB"; then
7060 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7061else
7062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063for as_dir in $PATH
7064do
7065 IFS=$as_save_IFS
7066 test -z "$as_dir" && as_dir=.
7067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7069 ac_cv_prog_RANLIB="${ncn_progname}"
7070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7071 break 2
7072 fi
7073done
7074done
7075
7076fi
7077fi
7078RANLIB=$ac_cv_prog_RANLIB
7079if test -n "$RANLIB"; then
7080 echo "$as_me:$LINENO: result: $RANLIB" >&5
7081echo "${ECHO_T}$RANLIB" >&6
7082else
7083 echo "$as_me:$LINENO: result: no" >&5
7084echo "${ECHO_T}no" >&6
7085fi
7086
7087 done
7088fi
859789af 7089
9a819804 7090for ncn_progname in ranlib; do
05cbd757
PB
7091 if test -n "$ncn_tool_prefix"; then
7092 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7093set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7094echo "$as_me:$LINENO: checking for $ac_word" >&5
7095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7096if test "${ac_cv_prog_RANLIB+set}" = set; then
7097 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7098else
7099 if test -n "$RANLIB"; then
7100 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7101else
c6b750e1
DJ
7102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103for as_dir in $PATH
7104do
7105 IFS=$as_save_IFS
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7109 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7111 break 2
7112 fi
7113done
7114done
7115
859789af
AC
7116fi
7117fi
c6b750e1 7118RANLIB=$ac_cv_prog_RANLIB
859789af 7119if test -n "$RANLIB"; then
c6b750e1
DJ
7120 echo "$as_me:$LINENO: result: $RANLIB" >&5
7121echo "${ECHO_T}$RANLIB" >&6
859789af 7122else
c6b750e1
DJ
7123 echo "$as_me:$LINENO: result: no" >&5
7124echo "${ECHO_T}no" >&6
859789af
AC
7125fi
7126
05cbd757
PB
7127 fi
7128 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7130set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7131echo "$as_me:$LINENO: checking for $ac_word" >&5
7132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7133if test "${ac_cv_prog_RANLIB+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7135else
05cbd757
PB
7136 if test -n "$RANLIB"; then
7137 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7138else
c6b750e1
DJ
7139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140for as_dir in $PATH
7141do
7142 IFS=$as_save_IFS
7143 test -z "$as_dir" && as_dir=.
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146 ac_cv_prog_RANLIB="${ncn_progname}"
7147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 break 2
7149 fi
7150done
7151done
7152
859789af
AC
7153fi
7154fi
c6b750e1 7155RANLIB=$ac_cv_prog_RANLIB
05cbd757 7156if test -n "$RANLIB"; then
c6b750e1
DJ
7157 echo "$as_me:$LINENO: result: $RANLIB" >&5
7158echo "${ECHO_T}$RANLIB" >&6
859789af 7159else
c6b750e1
DJ
7160 echo "$as_me:$LINENO: result: no" >&5
7161echo "${ECHO_T}no" >&6
859789af 7162fi
c6b750e1 7163
859789af 7164 fi
05cbd757
PB
7165 test -n "$ac_cv_prog_RANLIB" && break
7166done
7167
7168if test -z "$ac_cv_prog_RANLIB" ; then
7169 RANLIB=":"
859789af
AC
7170fi
7171
9a819804
AO
7172
7173
7174if test -n "$STRIP"; then
7175 ac_cv_prog_STRIP=$STRIP
7176elif test -n "$ac_cv_prog_STRIP"; then
7177 STRIP=$ac_cv_prog_STRIP
7178fi
7179
7180if test -n "$ac_cv_prog_STRIP"; then
7181 for ncn_progname in strip; do
7182 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7183set dummy ${ncn_progname}; ac_word=$2
7184echo "$as_me:$LINENO: checking for $ac_word" >&5
7185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7186if test "${ac_cv_prog_STRIP+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7188else
7189 if test -n "$STRIP"; then
7190 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7191else
7192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193for as_dir in $PATH
7194do
7195 IFS=$as_save_IFS
7196 test -z "$as_dir" && as_dir=.
7197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7199 ac_cv_prog_STRIP="${ncn_progname}"
7200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 break 2
7202 fi
7203done
7204done
7205
7206fi
7207fi
7208STRIP=$ac_cv_prog_STRIP
7209if test -n "$STRIP"; then
7210 echo "$as_me:$LINENO: result: $STRIP" >&5
7211echo "${ECHO_T}$STRIP" >&6
7212else
7213 echo "$as_me:$LINENO: result: no" >&5
7214echo "${ECHO_T}no" >&6
7215fi
7216
7217 done
7218fi
7219
7220for ncn_progname in strip; do
be01d343
PB
7221 if test -n "$ncn_tool_prefix"; then
7222 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7223set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7224echo "$as_me:$LINENO: checking for $ac_word" >&5
7225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7226if test "${ac_cv_prog_STRIP+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7228else
7229 if test -n "$STRIP"; then
7230 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7231else
c6b750e1
DJ
7232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233for as_dir in $PATH
7234do
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 break 2
7242 fi
7243done
7244done
7245
be01d343
PB
7246fi
7247fi
c6b750e1 7248STRIP=$ac_cv_prog_STRIP
be01d343 7249if test -n "$STRIP"; then
c6b750e1
DJ
7250 echo "$as_me:$LINENO: result: $STRIP" >&5
7251echo "${ECHO_T}$STRIP" >&6
be01d343 7252else
c6b750e1
DJ
7253 echo "$as_me:$LINENO: result: no" >&5
7254echo "${ECHO_T}no" >&6
be01d343
PB
7255fi
7256
7257 fi
7258 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7260set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7261echo "$as_me:$LINENO: checking for $ac_word" >&5
7262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7263if test "${ac_cv_prog_STRIP+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7265else
7266 if test -n "$STRIP"; then
7267 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7268else
c6b750e1
DJ
7269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270for as_dir in $PATH
7271do
7272 IFS=$as_save_IFS
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276 ac_cv_prog_STRIP="${ncn_progname}"
7277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7278 break 2
7279 fi
7280done
7281done
7282
be01d343
PB
7283fi
7284fi
c6b750e1 7285STRIP=$ac_cv_prog_STRIP
be01d343 7286if test -n "$STRIP"; then
c6b750e1
DJ
7287 echo "$as_me:$LINENO: result: $STRIP" >&5
7288echo "${ECHO_T}$STRIP" >&6
be01d343 7289else
c6b750e1
DJ
7290 echo "$as_me:$LINENO: result: no" >&5
7291echo "${ECHO_T}no" >&6
be01d343 7292fi
c6b750e1 7293
be01d343
PB
7294 fi
7295 test -n "$ac_cv_prog_STRIP" && break
7296done
7297
7298if test -z "$ac_cv_prog_STRIP" ; then
7299 STRIP=":"
7300fi
7301
9a819804
AO
7302
7303
7304if test -n "$WINDRES"; then
7305 ac_cv_prog_WINDRES=$WINDRES
7306elif test -n "$ac_cv_prog_WINDRES"; then
7307 WINDRES=$ac_cv_prog_WINDRES
7308fi
7309
7310if test -n "$ac_cv_prog_WINDRES"; then
7311 for ncn_progname in windres; do
7312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7313set dummy ${ncn_progname}; ac_word=$2
7314echo "$as_me:$LINENO: checking for $ac_word" >&5
7315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7316if test "${ac_cv_prog_WINDRES+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7318else
7319 if test -n "$WINDRES"; then
7320 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7321else
7322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323for as_dir in $PATH
7324do
7325 IFS=$as_save_IFS
7326 test -z "$as_dir" && as_dir=.
7327 for ac_exec_ext in '' $ac_executable_extensions; do
7328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7329 ac_cv_prog_WINDRES="${ncn_progname}"
7330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 break 2
7332 fi
7333done
7334done
7335
7336fi
7337fi
7338WINDRES=$ac_cv_prog_WINDRES
7339if test -n "$WINDRES"; then
7340 echo "$as_me:$LINENO: result: $WINDRES" >&5
7341echo "${ECHO_T}$WINDRES" >&6
7342else
7343 echo "$as_me:$LINENO: result: no" >&5
7344echo "${ECHO_T}no" >&6
7345fi
7346
7347 done
7348fi
7349
7350for ncn_progname in windres; do
05cbd757
PB
7351 if test -n "$ncn_tool_prefix"; then
7352 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7353set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7354echo "$as_me:$LINENO: checking for $ac_word" >&5
7355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7356if test "${ac_cv_prog_WINDRES+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7358else
7359 if test -n "$WINDRES"; then
7360 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7361else
c6b750e1
DJ
7362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363for as_dir in $PATH
7364do
7365 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 break 2
7372 fi
7373done
7374done
7375
859789af
AC
7376fi
7377fi
c6b750e1 7378WINDRES=$ac_cv_prog_WINDRES
859789af 7379if test -n "$WINDRES"; then
c6b750e1
DJ
7380 echo "$as_me:$LINENO: result: $WINDRES" >&5
7381echo "${ECHO_T}$WINDRES" >&6
859789af 7382else
c6b750e1
DJ
7383 echo "$as_me:$LINENO: result: no" >&5
7384echo "${ECHO_T}no" >&6
859789af
AC
7385fi
7386
05cbd757
PB
7387 fi
7388 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7390set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7391echo "$as_me:$LINENO: checking for $ac_word" >&5
7392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7393if test "${ac_cv_prog_WINDRES+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7395else
05cbd757
PB
7396 if test -n "$WINDRES"; then
7397 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7398else
c6b750e1
DJ
7399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400for as_dir in $PATH
7401do
7402 IFS=$as_save_IFS
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7406 ac_cv_prog_WINDRES="${ncn_progname}"
7407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 break 2
7409 fi
7410done
7411done
7412
859789af
AC
7413fi
7414fi
c6b750e1 7415WINDRES=$ac_cv_prog_WINDRES
05cbd757 7416if test -n "$WINDRES"; then
c6b750e1
DJ
7417 echo "$as_me:$LINENO: result: $WINDRES" >&5
7418echo "${ECHO_T}$WINDRES" >&6
859789af 7419else
c6b750e1
DJ
7420 echo "$as_me:$LINENO: result: no" >&5
7421echo "${ECHO_T}no" >&6
859789af 7422fi
c6b750e1 7423
05cbd757
PB
7424 fi
7425 test -n "$ac_cv_prog_WINDRES" && break
7426done
7427
7428if test -z "$ac_cv_prog_WINDRES" ; then
7429 set dummy windres
7430 if test $build = $host ; then
7431 WINDRES="$2"
859789af 7432 else
05cbd757 7433 WINDRES="${ncn_tool_prefix}$2"
859789af 7434 fi
859789af
AC
7435fi
7436
9a819804
AO
7437
7438
7439if test -n "$OBJCOPY"; then
7440 ac_cv_prog_OBJCOPY=$OBJCOPY
7441elif test -n "$ac_cv_prog_OBJCOPY"; then
7442 OBJCOPY=$ac_cv_prog_OBJCOPY
7443fi
7444
7445if test -n "$ac_cv_prog_OBJCOPY"; then
7446 for ncn_progname in objcopy; do
7447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7448set dummy ${ncn_progname}; ac_word=$2
7449echo "$as_me:$LINENO: checking for $ac_word" >&5
7450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7451if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7453else
7454 if test -n "$OBJCOPY"; then
7455 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7456else
7457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458for as_dir in $PATH
7459do
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464 ac_cv_prog_OBJCOPY="${ncn_progname}"
7465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 break 2
7467 fi
7468done
7469done
7470
7471fi
7472fi
7473OBJCOPY=$ac_cv_prog_OBJCOPY
7474if test -n "$OBJCOPY"; then
7475 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7476echo "${ECHO_T}$OBJCOPY" >&6
7477else
7478 echo "$as_me:$LINENO: result: no" >&5
7479echo "${ECHO_T}no" >&6
7480fi
7481
7482 done
7483fi
7484
7485for ncn_progname in objcopy; do
05cbd757
PB
7486 if test -n "$ncn_tool_prefix"; then
7487 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7488set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7489echo "$as_me:$LINENO: checking for $ac_word" >&5
7490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7491if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7493else
7494 if test -n "$OBJCOPY"; then
7495 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7496else
c6b750e1
DJ
7497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498for as_dir in $PATH
7499do
7500 IFS=$as_save_IFS
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7504 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 break 2
7507 fi
7508done
7509done
7510
859789af
AC
7511fi
7512fi
c6b750e1 7513OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7514if test -n "$OBJCOPY"; then
c6b750e1
DJ
7515 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7516echo "${ECHO_T}$OBJCOPY" >&6
859789af 7517else
c6b750e1
DJ
7518 echo "$as_me:$LINENO: result: no" >&5
7519echo "${ECHO_T}no" >&6
859789af
AC
7520fi
7521
05cbd757
PB
7522 fi
7523 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7525set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7526echo "$as_me:$LINENO: checking for $ac_word" >&5
7527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7528if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7530else
05cbd757
PB
7531 if test -n "$OBJCOPY"; then
7532 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7533else
c6b750e1
DJ
7534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535for as_dir in $PATH
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_prog_OBJCOPY="${ncn_progname}"
7542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 break 2
7544 fi
7545done
7546done
7547
859789af
AC
7548fi
7549fi
c6b750e1 7550OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7551if test -n "$OBJCOPY"; then
c6b750e1
DJ
7552 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7553echo "${ECHO_T}$OBJCOPY" >&6
859789af 7554else
c6b750e1
DJ
7555 echo "$as_me:$LINENO: result: no" >&5
7556echo "${ECHO_T}no" >&6
859789af 7557fi
c6b750e1 7558
05cbd757
PB
7559 fi
7560 test -n "$ac_cv_prog_OBJCOPY" && break
7561done
7562
7563if test -z "$ac_cv_prog_OBJCOPY" ; then
7564 set dummy objcopy
7565 if test $build = $host ; then
7566 OBJCOPY="$2"
859789af 7567 else
05cbd757 7568 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7569 fi
859789af
AC
7570fi
7571
9a819804
AO
7572
7573
7574if test -n "$OBJDUMP"; then
7575 ac_cv_prog_OBJDUMP=$OBJDUMP
7576elif test -n "$ac_cv_prog_OBJDUMP"; then
7577 OBJDUMP=$ac_cv_prog_OBJDUMP
7578fi
7579
7580if test -n "$ac_cv_prog_OBJDUMP"; then
7581 for ncn_progname in objdump; do
7582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7583set dummy ${ncn_progname}; ac_word=$2
7584echo "$as_me:$LINENO: checking for $ac_word" >&5
7585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7586if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588else
7589 if test -n "$OBJDUMP"; then
7590 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7591else
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_OBJDUMP="${ncn_progname}"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 break 2
7602 fi
7603done
7604done
7605
7606fi
7607fi
7608OBJDUMP=$ac_cv_prog_OBJDUMP
7609if test -n "$OBJDUMP"; then
7610 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7611echo "${ECHO_T}$OBJDUMP" >&6
7612else
7613 echo "$as_me:$LINENO: result: no" >&5
7614echo "${ECHO_T}no" >&6
7615fi
7616
7617 done
7618fi
7619
7620for ncn_progname in objdump; do
05cbd757
PB
7621 if test -n "$ncn_tool_prefix"; then
7622 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7623set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7624echo "$as_me:$LINENO: checking for $ac_word" >&5
7625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7626if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7628else
7629 if test -n "$OBJDUMP"; then
7630 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7631else
c6b750e1
DJ
7632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633for as_dir in $PATH
7634do
7635 IFS=$as_save_IFS
7636 test -z "$as_dir" && as_dir=.
7637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7639 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7641 break 2
7642 fi
7643done
7644done
7645
859789af
AC
7646fi
7647fi
c6b750e1 7648OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 7649if test -n "$OBJDUMP"; then
c6b750e1
DJ
7650 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7651echo "${ECHO_T}$OBJDUMP" >&6
859789af 7652else
c6b750e1
DJ
7653 echo "$as_me:$LINENO: result: no" >&5
7654echo "${ECHO_T}no" >&6
859789af
AC
7655fi
7656
05cbd757
PB
7657 fi
7658 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7660set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7661echo "$as_me:$LINENO: checking for $ac_word" >&5
7662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7663if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7665else
05cbd757
PB
7666 if test -n "$OBJDUMP"; then
7667 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 7668else
c6b750e1
DJ
7669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670for as_dir in $PATH
7671do
7672 IFS=$as_save_IFS
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676 ac_cv_prog_OBJDUMP="${ncn_progname}"
7677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 break 2
7679 fi
7680done
7681done
7682
859789af
AC
7683fi
7684fi
c6b750e1 7685OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 7686if test -n "$OBJDUMP"; then
c6b750e1
DJ
7687 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7688echo "${ECHO_T}$OBJDUMP" >&6
859789af 7689else
c6b750e1
DJ
7690 echo "$as_me:$LINENO: result: no" >&5
7691echo "${ECHO_T}no" >&6
859789af 7692fi
c6b750e1 7693
05cbd757
PB
7694 fi
7695 test -n "$ac_cv_prog_OBJDUMP" && break
7696done
7697
7698if test -z "$ac_cv_prog_OBJDUMP" ; then
7699 set dummy objdump
7700 if test $build = $host ; then
7701 OBJDUMP="$2"
859789af 7702 else
05cbd757 7703 OBJDUMP="${ncn_tool_prefix}$2"
859789af 7704 fi
859789af
AC
7705fi
7706
a0da8069
NN
7707
7708
7709
7710
7711
7712
be01d343 7713# Target tools.
c6b750e1 7714
2429c060
PB
7715# Check whether --with-build-time-tools or --without-build-time-tools was given.
7716if test "${with_build_time_tools+set}" = set; then
7717 withval="$with_build_time_tools"
7718 case x"$withval" in
7719 x/*) ;;
7720 *)
7721 with_build_time_tools=
c6b750e1
DJ
7722 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7723echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
7724 ;;
7725 esac
859789af 7726else
2429c060 7727 with_build_time_tools=
c6b750e1 7728fi;
859789af 7729
9a819804
AO
7730
7731
7732if test -n "$CC_FOR_TARGET"; then
7733 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7734elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7735 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7736fi
7737
7738if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7739 for ncn_progname in cc gcc; do
7740 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7741set dummy ${ncn_progname}; ac_word=$2
7742echo "$as_me:$LINENO: checking for $ac_word" >&5
7743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7744if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7746else
7747 if test -n "$CC_FOR_TARGET"; then
7748 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7749else
7750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751for as_dir in $PATH
7752do
7753 IFS=$as_save_IFS
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7757 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 break 2
7760 fi
7761done
7762done
7763
7764fi
7765fi
7766CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7767if test -n "$CC_FOR_TARGET"; then
7768 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7769echo "${ECHO_T}$CC_FOR_TARGET" >&6
7770else
7771 echo "$as_me:$LINENO: result: no" >&5
7772echo "${ECHO_T}no" >&6
7773fi
7774
7775 done
7776fi
7777
7778if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 7779 for ncn_progname in cc gcc; do
c6b750e1
DJ
7780 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7781echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7782 if test -x $with_build_time_tools/${ncn_progname}; then
7783 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7784 echo "$as_me:$LINENO: result: yes" >&5
7785echo "${ECHO_T}yes" >&6
cac3d6c4 7786 break
2429c060 7787 else
c6b750e1
DJ
7788 echo "$as_me:$LINENO: result: no" >&5
7789echo "${ECHO_T}no" >&6
cac3d6c4
CM
7790 fi
7791 done
55db4b87
PB
7792fi
7793
2429c060
PB
7794if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7795 for ncn_progname in cc gcc; do
7796 if test -n "$ncn_target_tool_prefix"; then
7797 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7798set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7799echo "$as_me:$LINENO: checking for $ac_word" >&5
7800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7801if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
7803else
7804 if test -n "$CC_FOR_TARGET"; then
7805 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7806else
c6b750e1
DJ
7807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808for as_dir in $PATH
7809do
7810 IFS=$as_save_IFS
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7814 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 break 2
7817 fi
7818done
7819done
7820
55db4b87
PB
7821fi
7822fi
c6b750e1 7823CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 7824if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
7825 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7826echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 7827else
c6b750e1
DJ
7828 echo "$as_me:$LINENO: result: no" >&5
7829echo "${ECHO_T}no" >&6
55db4b87
PB
7830fi
7831
2429c060
PB
7832 fi
7833 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
7834 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 7835set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7836echo "$as_me:$LINENO: checking for $ac_word" >&5
7837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7838if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 7840else
05cbd757
PB
7841 if test -n "$CC_FOR_TARGET"; then
7842 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 7843else
c6b750e1
DJ
7844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845for as_dir in $PATH
7846do
7847 IFS=$as_save_IFS
7848 test -z "$as_dir" && as_dir=.
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7851 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 break 2
7854 fi
7855done
7856done
7857
55db4b87
PB
7858fi
7859fi
c6b750e1 7860CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 7861if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
7862 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7863echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 7864else
c6b750e1
DJ
7865 echo "$as_me:$LINENO: result: no" >&5
7866echo "${ECHO_T}no" >&6
55db4b87 7867fi
c6b750e1 7868
2429c060
PB
7869 fi
7870 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
7871 done
7872fi
c6b750e1 7873
05cbd757
PB
7874if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
7875 set dummy cc gcc
7876 if test $build = $target ; then
7877 CC_FOR_TARGET="$2"
55db4b87 7878 else
05cbd757 7879 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 7880 fi
55db4b87
PB
7881fi
7882
9a819804
AO
7883
7884
7885if test -n "$CXX_FOR_TARGET"; then
7886 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
7887elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
7888 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7889fi
7890
7891if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
7892 for ncn_progname in c++ g++ cxx gxx; do
7893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7894set dummy ${ncn_progname}; ac_word=$2
7895echo "$as_me:$LINENO: checking for $ac_word" >&5
7896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7897if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7899else
7900 if test -n "$CXX_FOR_TARGET"; then
7901 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7902else
7903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904for as_dir in $PATH
7905do
7906 IFS=$as_save_IFS
7907 test -z "$as_dir" && as_dir=.
7908 for ac_exec_ext in '' $ac_executable_extensions; do
7909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7910 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
7911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7912 break 2
7913 fi
7914done
7915done
7916
7917fi
7918fi
7919CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7920if test -n "$CXX_FOR_TARGET"; then
7921 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7922echo "${ECHO_T}$CXX_FOR_TARGET" >&6
7923else
7924 echo "$as_me:$LINENO: result: no" >&5
7925echo "${ECHO_T}no" >&6
7926fi
7927
7928 done
7929fi
7930
7931if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 7932 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
7933 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7934echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7935 if test -x $with_build_time_tools/${ncn_progname}; then
7936 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7937 echo "$as_me:$LINENO: result: yes" >&5
7938echo "${ECHO_T}yes" >&6
2429c060
PB
7939 break
7940 else
c6b750e1
DJ
7941 echo "$as_me:$LINENO: result: no" >&5
7942echo "${ECHO_T}no" >&6
2429c060
PB
7943 fi
7944 done
7945fi
7946
7947if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
7948 for ncn_progname in c++ g++ cxx gxx; do
7949 if test -n "$ncn_target_tool_prefix"; then
7950 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7951set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7952echo "$as_me:$LINENO: checking for $ac_word" >&5
7953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7954if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
7956else
7957 if test -n "$CXX_FOR_TARGET"; then
7958 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7959else
c6b750e1
DJ
7960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961for as_dir in $PATH
7962do
7963 IFS=$as_save_IFS
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7967 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 break 2
7970 fi
7971done
7972done
7973
55db4b87
PB
7974fi
7975fi
c6b750e1 7976CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 7977if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
7978 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7979echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 7980else
c6b750e1
DJ
7981 echo "$as_me:$LINENO: result: no" >&5
7982echo "${ECHO_T}no" >&6
55db4b87
PB
7983fi
7984
2429c060
PB
7985 fi
7986 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
7987 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 7988set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7989echo "$as_me:$LINENO: checking for $ac_word" >&5
7990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7991if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 7993else
05cbd757
PB
7994 if test -n "$CXX_FOR_TARGET"; then
7995 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 7996else
c6b750e1
DJ
7997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998for as_dir in $PATH
7999do
8000 IFS=$as_save_IFS
8001 test -z "$as_dir" && as_dir=.
8002 for ac_exec_ext in '' $ac_executable_extensions; do
8003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8004 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8006 break 2
8007 fi
8008done
8009done
8010
55db4b87
PB
8011fi
8012fi
c6b750e1 8013CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8014if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8015 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8016echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8017else
c6b750e1
DJ
8018 echo "$as_me:$LINENO: result: no" >&5
8019echo "${ECHO_T}no" >&6
55db4b87 8020fi
c6b750e1 8021
2429c060
PB
8022 fi
8023 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8024 done
8025fi
c6b750e1 8026
05cbd757
PB
8027if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8028 set dummy c++ g++ cxx gxx
8029 if test $build = $target ; then
8030 CXX_FOR_TARGET="$2"
55db4b87 8031 else
05cbd757 8032 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8033 fi
859789af
AC
8034fi
8035
9a819804
AO
8036
8037
8038if test -n "$GCC_FOR_TARGET"; then
8039 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8040elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8041 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8042fi
8043
8044if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8045 for ncn_progname in gcc; do
8046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8047set dummy ${ncn_progname}; ac_word=$2
8048echo "$as_me:$LINENO: checking for $ac_word" >&5
8049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8050if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8052else
8053 if test -n "$GCC_FOR_TARGET"; then
8054 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8055else
8056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057for as_dir in $PATH
8058do
8059 IFS=$as_save_IFS
8060 test -z "$as_dir" && as_dir=.
8061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8063 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8065 break 2
8066 fi
8067done
8068done
8069
8070fi
8071fi
8072GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8073if test -n "$GCC_FOR_TARGET"; then
8074 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8075echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8076else
8077 echo "$as_me:$LINENO: result: no" >&5
8078echo "${ECHO_T}no" >&6
8079fi
8080
8081 done
8082fi
8083
8084if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8085 for ncn_progname in gcc; do
c6b750e1
DJ
8086 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8087echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8088 if test -x $with_build_time_tools/${ncn_progname}; then
8089 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8090 echo "$as_me:$LINENO: result: yes" >&5
8091echo "${ECHO_T}yes" >&6
2429c060
PB
8092 break
8093 else
c6b750e1
DJ
8094 echo "$as_me:$LINENO: result: no" >&5
8095echo "${ECHO_T}no" >&6
2429c060
PB
8096 fi
8097 done
8098fi
8099
8100if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8101 for ncn_progname in gcc; do
8102 if test -n "$ncn_target_tool_prefix"; then
8103 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8104set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8105echo "$as_me:$LINENO: checking for $ac_word" >&5
8106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8107if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8108 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8109else
2429c060
PB
8110 if test -n "$GCC_FOR_TARGET"; then
8111 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8112else
c6b750e1
DJ
8113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114for as_dir in $PATH
8115do
8116 IFS=$as_save_IFS
8117 test -z "$as_dir" && as_dir=.
8118 for ac_exec_ext in '' $ac_executable_extensions; do
8119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8120 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8122 break 2
8123 fi
8124done
8125done
8126
55db4b87
PB
8127fi
8128fi
c6b750e1 8129GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8130if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8131 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8132echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8133else
c6b750e1
DJ
8134 echo "$as_me:$LINENO: result: no" >&5
8135echo "${ECHO_T}no" >&6
55db4b87
PB
8136fi
8137
2429c060
PB
8138 fi
8139 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8141set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8142echo "$as_me:$LINENO: checking for $ac_word" >&5
8143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8144if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8146else
05cbd757
PB
8147 if test -n "$GCC_FOR_TARGET"; then
8148 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8149else
c6b750e1
DJ
8150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151for as_dir in $PATH
8152do
8153 IFS=$as_save_IFS
8154 test -z "$as_dir" && as_dir=.
8155 for ac_exec_ext in '' $ac_executable_extensions; do
8156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8157 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8159 break 2
8160 fi
8161done
8162done
8163
55db4b87
PB
8164fi
8165fi
c6b750e1 8166GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8167if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8168 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8169echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8170else
c6b750e1
DJ
8171 echo "$as_me:$LINENO: result: no" >&5
8172echo "${ECHO_T}no" >&6
55db4b87 8173fi
c6b750e1 8174
2429c060
PB
8175 fi
8176 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8177 done
8178fi
c6b750e1 8179
05cbd757
PB
8180if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8181 GCC_FOR_TARGET="${CC_FOR_TARGET}"
55db4b87
PB
8182fi
8183
9a819804
AO
8184
8185
8186if test -n "$GCJ_FOR_TARGET"; then
8187 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8188elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8189 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8190fi
8191
8192if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8193 for ncn_progname in gcj; do
8194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8195set dummy ${ncn_progname}; ac_word=$2
8196echo "$as_me:$LINENO: checking for $ac_word" >&5
8197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8198if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8200else
8201 if test -n "$GCJ_FOR_TARGET"; then
8202 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8203else
8204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205for as_dir in $PATH
8206do
8207 IFS=$as_save_IFS
8208 test -z "$as_dir" && as_dir=.
8209 for ac_exec_ext in '' $ac_executable_extensions; do
8210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8211 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8213 break 2
8214 fi
8215done
8216done
8217
8218fi
8219fi
8220GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8221if test -n "$GCJ_FOR_TARGET"; then
8222 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8223echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8224else
8225 echo "$as_me:$LINENO: result: no" >&5
8226echo "${ECHO_T}no" >&6
8227fi
8228
8229 done
8230fi
8231
8232if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8233 for ncn_progname in gcj; do
c6b750e1
DJ
8234 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8235echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8236 if test -x $with_build_time_tools/${ncn_progname}; then
8237 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8238 echo "$as_me:$LINENO: result: yes" >&5
8239echo "${ECHO_T}yes" >&6
2429c060
PB
8240 break
8241 else
c6b750e1
DJ
8242 echo "$as_me:$LINENO: result: no" >&5
8243echo "${ECHO_T}no" >&6
2429c060
PB
8244 fi
8245 done
8246fi
8247
8248if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8249 for ncn_progname in gcj; do
8250 if test -n "$ncn_target_tool_prefix"; then
8251 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8252set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8253echo "$as_me:$LINENO: checking for $ac_word" >&5
8254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8255if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8257else
8258 if test -n "$GCJ_FOR_TARGET"; then
8259 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8260else
c6b750e1
DJ
8261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8262for as_dir in $PATH
8263do
8264 IFS=$as_save_IFS
8265 test -z "$as_dir" && as_dir=.
8266 for ac_exec_ext in '' $ac_executable_extensions; do
8267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8268 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8270 break 2
8271 fi
8272done
8273done
8274
55db4b87
PB
8275fi
8276fi
9a819804
AO
8277GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8278if test -n "$GCJ_FOR_TARGET"; then
8279 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8280echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8281else
8282 echo "$as_me:$LINENO: result: no" >&5
8283echo "${ECHO_T}no" >&6
8284fi
8285
8286 fi
8287 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8288 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8289set dummy ${ncn_progname}; ac_word=$2
8290echo "$as_me:$LINENO: checking for $ac_word" >&5
8291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8292if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8294else
8295 if test -n "$GCJ_FOR_TARGET"; then
8296 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8297else
8298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299for as_dir in $PATH
8300do
8301 IFS=$as_save_IFS
8302 test -z "$as_dir" && as_dir=.
8303 for ac_exec_ext in '' $ac_executable_extensions; do
8304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8305 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8307 break 2
8308 fi
8309done
8310done
8311
8312fi
8313fi
8314GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8315if test -n "$GCJ_FOR_TARGET"; then
8316 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8317echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8318else
8319 echo "$as_me:$LINENO: result: no" >&5
8320echo "${ECHO_T}no" >&6
8321fi
8322
8323 fi
8324 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8325 done
8326fi
8327
8328if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8329 set dummy gcj
8330 if test $build = $target ; then
8331 GCJ_FOR_TARGET="$2"
8332 else
8333 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8334 fi
8335fi
8336
8337
8338
8339if test -n "$GFORTRAN_FOR_TARGET"; then
8340 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8341elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8342 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8343fi
8344
9a819804
AO
8345if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8346 for ncn_progname in gfortran; do
8347 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8348set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8349echo "$as_me:$LINENO: checking for $ac_word" >&5
8350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8351if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8352 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8353else
9a819804
AO
8354 if test -n "$GFORTRAN_FOR_TARGET"; then
8355 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8356else
c6b750e1
DJ
8357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358for as_dir in $PATH
8359do
8360 IFS=$as_save_IFS
8361 test -z "$as_dir" && as_dir=.
8362 for ac_exec_ext in '' $ac_executable_extensions; do
8363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8364 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 break 2
8367 fi
8368done
8369done
8370
55db4b87
PB
8371fi
8372fi
9a819804
AO
8373GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8374if test -n "$GFORTRAN_FOR_TARGET"; then
8375 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8376echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8377else
c6b750e1
DJ
8378 echo "$as_me:$LINENO: result: no" >&5
8379echo "${ECHO_T}no" >&6
55db4b87 8380fi
c6b750e1 8381
2429c060
PB
8382 done
8383fi
c6b750e1 8384
9a819804 8385if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8386 for ncn_progname in gfortran; do
c6b750e1
DJ
8387 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8388echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8389 if test -x $with_build_time_tools/${ncn_progname}; then
8390 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8391 echo "$as_me:$LINENO: result: yes" >&5
8392echo "${ECHO_T}yes" >&6
2429c060
PB
8393 break
8394 else
c6b750e1
DJ
8395 echo "$as_me:$LINENO: result: no" >&5
8396echo "${ECHO_T}no" >&6
2429c060
PB
8397 fi
8398 done
8399fi
8400
8401if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8402 for ncn_progname in gfortran; do
8403 if test -n "$ncn_target_tool_prefix"; then
8404 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8405set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8406echo "$as_me:$LINENO: checking for $ac_word" >&5
8407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8408if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8410else
8411 if test -n "$GFORTRAN_FOR_TARGET"; then
8412 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8413else
c6b750e1
DJ
8414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415for as_dir in $PATH
8416do
8417 IFS=$as_save_IFS
8418 test -z "$as_dir" && as_dir=.
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8421 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8423 break 2
8424 fi
8425done
8426done
8427
55db4b87
PB
8428fi
8429fi
c6b750e1 8430GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8431if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8432 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8433echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8434else
c6b750e1
DJ
8435 echo "$as_me:$LINENO: result: no" >&5
8436echo "${ECHO_T}no" >&6
55db4b87
PB
8437fi
8438
2429c060
PB
8439 fi
8440 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8442set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8443echo "$as_me:$LINENO: checking for $ac_word" >&5
8444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8445if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8447else
05cbd757 8448 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8449 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8450else
8451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8452for as_dir in $PATH
8453do
8454 IFS=$as_save_IFS
8455 test -z "$as_dir" && as_dir=.
8456 for ac_exec_ext in '' $ac_executable_extensions; do
8457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8458 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8460 break 2
8461 fi
8462done
8463done
8464
55db4b87
PB
8465fi
8466fi
c6b750e1 8467GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8468if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8469 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8470echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8471else
c6b750e1
DJ
8472 echo "$as_me:$LINENO: result: no" >&5
8473echo "${ECHO_T}no" >&6
55db4b87 8474fi
c6b750e1 8475
2429c060
PB
8476 fi
8477 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8478 done
8479fi
c6b750e1 8480
05cbd757
PB
8481if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8482 set dummy gfortran
8483 if test $build = $target ; then
8484 GFORTRAN_FOR_TARGET="$2"
55db4b87 8485 else
05cbd757 8486 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8487 fi
859789af
AC
8488fi
8489
2429c060
PB
8490
8491
2429c060
PB
8492cat > conftest.c << \EOF
8493#ifdef __GNUC__
8494 gcc_yay;
8495#endif
8496EOF
8497if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8498 have_gcc_for_target=yes
859789af 8499else
2429c060
PB
8500 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8501 have_gcc_for_target=no
859789af 8502fi
2429c060
PB
8503rm conftest.c
8504
8505
8506
859789af 8507
2429c060
PB
8508if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8509 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8510 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8511echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8512 if test -x $with_build_time_tools/ar; then
8513 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8514 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8515 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8516echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8517 else
c6b750e1
DJ
8518 echo "$as_me:$LINENO: result: no" >&5
8519echo "${ECHO_T}no" >&6
3a35eeb3 8520 fi
2429c060
PB
8521 elif test $build != $host && test $have_gcc_for_target = yes; then
8522 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
8523 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
8524 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8525 fi
2429c060 8526fi
c6b750e1 8527if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8528 # Extract the first word of "ar", so it can be a program name with args.
8529set dummy ar; ac_word=$2
c6b750e1
DJ
8530echo "$as_me:$LINENO: checking for $ac_word" >&5
8531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8532if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8534else
c6b750e1
DJ
8535 case $AR_FOR_TARGET in
8536 [\\/]* | ?:[\\/]*)
2429c060
PB
8537 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8538 ;;
2429c060 8539 *)
c6b750e1
DJ
8540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541for as_dir in $gcc_cv_tool_dirs
8542do
8543 IFS=$as_save_IFS
8544 test -z "$as_dir" && as_dir=.
8545 for ac_exec_ext in '' $ac_executable_extensions; do
8546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8547 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8549 break 2
8550 fi
8551done
8552done
8553
2429c060
PB
8554 ;;
8555esac
859789af 8556fi
c6b750e1
DJ
8557AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8558
2429c060 8559if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8560 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8561echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8562else
c6b750e1
DJ
8563 echo "$as_me:$LINENO: result: no" >&5
8564echo "${ECHO_T}no" >&6
859789af 8565fi
05cbd757 8566
2429c060
PB
8567fi
8568if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8569
8570
8571if test -n "$AR_FOR_TARGET"; then
8572 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8573elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8574 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8575fi
8576
8577if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8578 for ncn_progname in ar; do
8579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8580set dummy ${ncn_progname}; ac_word=$2
8581echo "$as_me:$LINENO: checking for $ac_word" >&5
8582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8583if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8585else
8586 if test -n "$AR_FOR_TARGET"; then
8587 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8588else
8589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8590for as_dir in $PATH
8591do
8592 IFS=$as_save_IFS
8593 test -z "$as_dir" && as_dir=.
8594 for ac_exec_ext in '' $ac_executable_extensions; do
8595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8596 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8598 break 2
8599 fi
8600done
8601done
8602
8603fi
8604fi
8605AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8606if test -n "$AR_FOR_TARGET"; then
8607 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8608echo "${ECHO_T}$AR_FOR_TARGET" >&6
8609else
8610 echo "$as_me:$LINENO: result: no" >&5
8611echo "${ECHO_T}no" >&6
8612fi
8613
8614 done
8615fi
8616
8617if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8618 for ncn_progname in ar; do
c6b750e1
DJ
8619 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8620echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8621 if test -x $with_build_time_tools/${ncn_progname}; then
8622 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8623 echo "$as_me:$LINENO: result: yes" >&5
8624echo "${ECHO_T}yes" >&6
2429c060
PB
8625 break
8626 else
c6b750e1
DJ
8627 echo "$as_me:$LINENO: result: no" >&5
8628echo "${ECHO_T}no" >&6
2429c060
PB
8629 fi
8630 done
859789af
AC
8631fi
8632
2429c060
PB
8633if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8634 for ncn_progname in ar; do
8635 if test -n "$ncn_target_tool_prefix"; then
8636 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8637set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8638echo "$as_me:$LINENO: checking for $ac_word" >&5
8639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8640if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8642else
2429c060
PB
8643 if test -n "$AR_FOR_TARGET"; then
8644 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 8645else
c6b750e1
DJ
8646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647for as_dir in $PATH
8648do
8649 IFS=$as_save_IFS
8650 test -z "$as_dir" && as_dir=.
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8653 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8655 break 2
8656 fi
8657done
8658done
8659
7e0f7140
GK
8660fi
8661fi
c6b750e1 8662AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8663if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8664 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8665echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8666else
c6b750e1
DJ
8667 echo "$as_me:$LINENO: result: no" >&5
8668echo "${ECHO_T}no" >&6
7e0f7140
GK
8669fi
8670
2429c060
PB
8671 fi
8672 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8673 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 8674set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8675echo "$as_me:$LINENO: checking for $ac_word" >&5
8676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8677if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8679else
2429c060
PB
8680 if test -n "$AR_FOR_TARGET"; then
8681 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 8682else
c6b750e1
DJ
8683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684for as_dir in $PATH
8685do
8686 IFS=$as_save_IFS
8687 test -z "$as_dir" && as_dir=.
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8690 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8692 break 2
8693 fi
8694done
8695done
8696
7e0f7140
GK
8697fi
8698fi
c6b750e1 8699AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8700if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8701 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8702echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8703else
c6b750e1
DJ
8704 echo "$as_me:$LINENO: result: no" >&5
8705echo "${ECHO_T}no" >&6
7e0f7140 8706fi
c6b750e1 8707
2429c060
PB
8708 fi
8709 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8710 done
8711fi
c6b750e1 8712
2429c060
PB
8713if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8714 set dummy ar
7e0f7140 8715 if test $build = $target ; then
2429c060 8716 AR_FOR_TARGET="$2"
7e0f7140 8717 else
2429c060 8718 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140
GK
8719 fi
8720fi
8721
3a35eeb3
PB
8722else
8723 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
8724fi
8725
8726
8727
8728
8729if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8730 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8731 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8732echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8733 if test -x $with_build_time_tools/as; then
8734 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8735 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
8736 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8737echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 8738 else
c6b750e1
DJ
8739 echo "$as_me:$LINENO: result: no" >&5
8740echo "${ECHO_T}no" >&6
3a35eeb3 8741 fi
2429c060
PB
8742 elif test $build != $host && test $have_gcc_for_target = yes; then
8743 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
8744 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
8745 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
8746 fi
8747fi
c6b750e1 8748if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8749 # Extract the first word of "as", so it can be a program name with args.
8750set dummy as; ac_word=$2
c6b750e1
DJ
8751echo "$as_me:$LINENO: checking for $ac_word" >&5
8752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8753if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8755else
c6b750e1
DJ
8756 case $AS_FOR_TARGET in
8757 [\\/]* | ?:[\\/]*)
2429c060
PB
8758 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8759 ;;
2429c060 8760 *)
c6b750e1
DJ
8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762for as_dir in $gcc_cv_tool_dirs
8763do
8764 IFS=$as_save_IFS
8765 test -z "$as_dir" && as_dir=.
8766 for ac_exec_ext in '' $ac_executable_extensions; do
8767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8768 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8770 break 2
8771 fi
8772done
8773done
8774
2429c060
PB
8775 ;;
8776esac
8777fi
c6b750e1
DJ
8778AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
8779
2429c060 8780if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
8781 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8782echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 8783else
c6b750e1
DJ
8784 echo "$as_me:$LINENO: result: no" >&5
8785echo "${ECHO_T}no" >&6
2429c060
PB
8786fi
8787
8788fi
8789if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
8790
8791
8792if test -n "$AS_FOR_TARGET"; then
8793 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
8794elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8795 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8796fi
8797
8798if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8799 for ncn_progname in as; do
8800 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8801set dummy ${ncn_progname}; ac_word=$2
8802echo "$as_me:$LINENO: checking for $ac_word" >&5
8803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8804if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8806else
8807 if test -n "$AS_FOR_TARGET"; then
8808 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8809else
8810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8811for as_dir in $PATH
8812do
8813 IFS=$as_save_IFS
8814 test -z "$as_dir" && as_dir=.
8815 for ac_exec_ext in '' $ac_executable_extensions; do
8816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8817 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
8818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8819 break 2
8820 fi
8821done
8822done
8823
8824fi
8825fi
8826AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8827if test -n "$AS_FOR_TARGET"; then
8828 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8829echo "${ECHO_T}$AS_FOR_TARGET" >&6
8830else
8831 echo "$as_me:$LINENO: result: no" >&5
8832echo "${ECHO_T}no" >&6
8833fi
8834
8835 done
8836fi
8837
8838if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8839 for ncn_progname in as; do
c6b750e1
DJ
8840 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8841echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8842 if test -x $with_build_time_tools/${ncn_progname}; then
8843 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8844 echo "$as_me:$LINENO: result: yes" >&5
8845echo "${ECHO_T}yes" >&6
2429c060
PB
8846 break
8847 else
c6b750e1
DJ
8848 echo "$as_me:$LINENO: result: no" >&5
8849echo "${ECHO_T}no" >&6
2429c060
PB
8850 fi
8851 done
8852fi
8853
8854if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
8855 for ncn_progname in as; do
8856 if test -n "$ncn_target_tool_prefix"; then
8857 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8858set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8859echo "$as_me:$LINENO: checking for $ac_word" >&5
8860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8861if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
8863else
8864 if test -n "$AS_FOR_TARGET"; then
8865 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8866else
c6b750e1
DJ
8867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8868for as_dir in $PATH
8869do
8870 IFS=$as_save_IFS
8871 test -z "$as_dir" && as_dir=.
8872 for ac_exec_ext in '' $ac_executable_extensions; do
8873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8874 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8876 break 2
8877 fi
8878done
8879done
8880
2429c060
PB
8881fi
8882fi
c6b750e1 8883AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 8884if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
8885 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8886echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 8887else
c6b750e1
DJ
8888 echo "$as_me:$LINENO: result: no" >&5
8889echo "${ECHO_T}no" >&6
2429c060
PB
8890fi
8891
8892 fi
8893 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
8894 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8895set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8896echo "$as_me:$LINENO: checking for $ac_word" >&5
8897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8898if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
8900else
8901 if test -n "$AS_FOR_TARGET"; then
8902 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8903else
c6b750e1
DJ
8904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8905for as_dir in $PATH
8906do
8907 IFS=$as_save_IFS
8908 test -z "$as_dir" && as_dir=.
8909 for ac_exec_ext in '' $ac_executable_extensions; do
8910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8911 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
8912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8913 break 2
8914 fi
8915done
8916done
8917
2429c060
PB
8918fi
8919fi
c6b750e1 8920AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 8921if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
8922 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8923echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 8924else
c6b750e1
DJ
8925 echo "$as_me:$LINENO: result: no" >&5
8926echo "${ECHO_T}no" >&6
2429c060 8927fi
c6b750e1 8928
2429c060
PB
8929 fi
8930 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
8931 done
8932fi
c6b750e1 8933
2429c060
PB
8934if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
8935 set dummy as
8936 if test $build = $target ; then
8937 AS_FOR_TARGET="$2"
8938 else
8939 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
8940 fi
8941fi
8942
3a35eeb3
PB
8943else
8944 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
8945fi
8946
8947
8948
8949
8950if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
8951 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8952 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
8953echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8954 if test -x $with_build_time_tools/dlltool; then
8955 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
8956 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
8957 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
8958echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 8959 else
c6b750e1
DJ
8960 echo "$as_me:$LINENO: result: no" >&5
8961echo "${ECHO_T}no" >&6
3a35eeb3 8962 fi
2429c060
PB
8963 elif test $build != $host && test $have_gcc_for_target = yes; then
8964 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
8965 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
8966 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
8967 fi
8968fi
c6b750e1 8969if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8970 # Extract the first word of "dlltool", so it can be a program name with args.
8971set dummy dlltool; ac_word=$2
c6b750e1
DJ
8972echo "$as_me:$LINENO: checking for $ac_word" >&5
8973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8974if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
8975 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8976else
c6b750e1
DJ
8977 case $DLLTOOL_FOR_TARGET in
8978 [\\/]* | ?:[\\/]*)
2429c060
PB
8979 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
8980 ;;
2429c060 8981 *)
c6b750e1
DJ
8982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8983for as_dir in $gcc_cv_tool_dirs
8984do
8985 IFS=$as_save_IFS
8986 test -z "$as_dir" && as_dir=.
8987 for ac_exec_ext in '' $ac_executable_extensions; do
8988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8989 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8991 break 2
8992 fi
8993done
8994done
8995
2429c060
PB
8996 ;;
8997esac
8998fi
c6b750e1
DJ
8999DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9000
2429c060 9001if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9002 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9003echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9004else
c6b750e1
DJ
9005 echo "$as_me:$LINENO: result: no" >&5
9006echo "${ECHO_T}no" >&6
2429c060
PB
9007fi
9008
9009fi
9010if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9011
9012
9013if test -n "$DLLTOOL_FOR_TARGET"; then
9014 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9015elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9016 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9017fi
9018
9019if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9020 for ncn_progname in dlltool; do
9021 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9022set dummy ${ncn_progname}; ac_word=$2
9023echo "$as_me:$LINENO: checking for $ac_word" >&5
9024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9025if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
9027else
9028 if test -n "$DLLTOOL_FOR_TARGET"; then
9029 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9030else
9031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9032for as_dir in $PATH
9033do
9034 IFS=$as_save_IFS
9035 test -z "$as_dir" && as_dir=.
9036 for ac_exec_ext in '' $ac_executable_extensions; do
9037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9038 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9040 break 2
9041 fi
9042done
9043done
9044
9045fi
9046fi
9047DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9048if test -n "$DLLTOOL_FOR_TARGET"; then
9049 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9050echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9051else
9052 echo "$as_me:$LINENO: result: no" >&5
9053echo "${ECHO_T}no" >&6
9054fi
9055
9056 done
9057fi
9058
9059if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9060 for ncn_progname in dlltool; do
c6b750e1
DJ
9061 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9062echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9063 if test -x $with_build_time_tools/${ncn_progname}; then
9064 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9065 echo "$as_me:$LINENO: result: yes" >&5
9066echo "${ECHO_T}yes" >&6
2429c060
PB
9067 break
9068 else
c6b750e1
DJ
9069 echo "$as_me:$LINENO: result: no" >&5
9070echo "${ECHO_T}no" >&6
2429c060
PB
9071 fi
9072 done
9073fi
9074
9075if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9076 for ncn_progname in dlltool; do
9077 if test -n "$ncn_target_tool_prefix"; then
9078 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9079set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9080echo "$as_me:$LINENO: checking for $ac_word" >&5
9081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9082if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9084else
9085 if test -n "$DLLTOOL_FOR_TARGET"; then
9086 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9087else
c6b750e1
DJ
9088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9089for as_dir in $PATH
9090do
9091 IFS=$as_save_IFS
9092 test -z "$as_dir" && as_dir=.
9093 for ac_exec_ext in '' $ac_executable_extensions; do
9094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9095 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9097 break 2
9098 fi
9099done
9100done
9101
2429c060
PB
9102fi
9103fi
c6b750e1 9104DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9105if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9106 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9107echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9108else
c6b750e1
DJ
9109 echo "$as_me:$LINENO: result: no" >&5
9110echo "${ECHO_T}no" >&6
2429c060
PB
9111fi
9112
9113 fi
9114 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9115 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9116set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9117echo "$as_me:$LINENO: checking for $ac_word" >&5
9118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9119if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9121else
9122 if test -n "$DLLTOOL_FOR_TARGET"; then
9123 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9124else
c6b750e1
DJ
9125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126for as_dir in $PATH
9127do
9128 IFS=$as_save_IFS
9129 test -z "$as_dir" && as_dir=.
9130 for ac_exec_ext in '' $ac_executable_extensions; do
9131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9132 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9134 break 2
9135 fi
9136done
9137done
9138
2429c060
PB
9139fi
9140fi
c6b750e1 9141DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9142if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9143 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9144echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9145else
c6b750e1
DJ
9146 echo "$as_me:$LINENO: result: no" >&5
9147echo "${ECHO_T}no" >&6
2429c060 9148fi
c6b750e1 9149
2429c060
PB
9150 fi
9151 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9152 done
9153fi
c6b750e1 9154
2429c060
PB
9155if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9156 set dummy dlltool
9157 if test $build = $target ; then
9158 DLLTOOL_FOR_TARGET="$2"
9159 else
9160 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9161 fi
9162fi
9163
3a35eeb3
PB
9164else
9165 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9166fi
9167
9168
9169
9170
9171if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9172 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9173 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9174echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9175 if test -x $with_build_time_tools/ld; then
9176 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9177 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9178 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9179echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9180 else
c6b750e1
DJ
9181 echo "$as_me:$LINENO: result: no" >&5
9182echo "${ECHO_T}no" >&6
3a35eeb3 9183 fi
2429c060
PB
9184 elif test $build != $host && test $have_gcc_for_target = yes; then
9185 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
9186 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
9187 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9188 fi
9189fi
c6b750e1 9190if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9191 # Extract the first word of "ld", so it can be a program name with args.
9192set dummy ld; ac_word=$2
c6b750e1
DJ
9193echo "$as_me:$LINENO: checking for $ac_word" >&5
9194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9195if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9197else
c6b750e1
DJ
9198 case $LD_FOR_TARGET in
9199 [\\/]* | ?:[\\/]*)
2429c060
PB
9200 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9201 ;;
2429c060 9202 *)
c6b750e1
DJ
9203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9204for as_dir in $gcc_cv_tool_dirs
9205do
9206 IFS=$as_save_IFS
9207 test -z "$as_dir" && as_dir=.
9208 for ac_exec_ext in '' $ac_executable_extensions; do
9209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9210 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9212 break 2
9213 fi
9214done
9215done
9216
2429c060
PB
9217 ;;
9218esac
9219fi
c6b750e1
DJ
9220LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9221
2429c060 9222if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9223 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9224echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9225else
c6b750e1
DJ
9226 echo "$as_me:$LINENO: result: no" >&5
9227echo "${ECHO_T}no" >&6
2429c060
PB
9228fi
9229
9230fi
9231if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9232
9233
9234if test -n "$LD_FOR_TARGET"; then
9235 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9236elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9237 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9238fi
9239
9240if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9241 for ncn_progname in ld; do
9242 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9243set dummy ${ncn_progname}; ac_word=$2
9244echo "$as_me:$LINENO: checking for $ac_word" >&5
9245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9246if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9247 echo $ECHO_N "(cached) $ECHO_C" >&6
9248else
9249 if test -n "$LD_FOR_TARGET"; then
9250 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9251else
9252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253for as_dir in $PATH
9254do
9255 IFS=$as_save_IFS
9256 test -z "$as_dir" && as_dir=.
9257 for ac_exec_ext in '' $ac_executable_extensions; do
9258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9259 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9261 break 2
9262 fi
9263done
9264done
9265
9266fi
9267fi
9268LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9269if test -n "$LD_FOR_TARGET"; then
9270 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9271echo "${ECHO_T}$LD_FOR_TARGET" >&6
9272else
9273 echo "$as_me:$LINENO: result: no" >&5
9274echo "${ECHO_T}no" >&6
9275fi
9276
9277 done
9278fi
9279
9280if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9281 for ncn_progname in ld; do
c6b750e1
DJ
9282 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9283echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9284 if test -x $with_build_time_tools/${ncn_progname}; then
9285 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9286 echo "$as_me:$LINENO: result: yes" >&5
9287echo "${ECHO_T}yes" >&6
2429c060
PB
9288 break
9289 else
c6b750e1
DJ
9290 echo "$as_me:$LINENO: result: no" >&5
9291echo "${ECHO_T}no" >&6
2429c060
PB
9292 fi
9293 done
9294fi
9295
9296if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9297 for ncn_progname in ld; do
9298 if test -n "$ncn_target_tool_prefix"; then
9299 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9300set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9301echo "$as_me:$LINENO: checking for $ac_word" >&5
9302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9303if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9304 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9305else
9306 if test -n "$LD_FOR_TARGET"; then
9307 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9308else
c6b750e1
DJ
9309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9310for as_dir in $PATH
9311do
9312 IFS=$as_save_IFS
9313 test -z "$as_dir" && as_dir=.
9314 for ac_exec_ext in '' $ac_executable_extensions; do
9315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9316 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9318 break 2
9319 fi
9320done
9321done
9322
2429c060
PB
9323fi
9324fi
c6b750e1 9325LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9326if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9327 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9328echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9329else
c6b750e1
DJ
9330 echo "$as_me:$LINENO: result: no" >&5
9331echo "${ECHO_T}no" >&6
2429c060
PB
9332fi
9333
9334 fi
9335 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9336 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9337set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9338echo "$as_me:$LINENO: checking for $ac_word" >&5
9339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9340if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9342else
9343 if test -n "$LD_FOR_TARGET"; then
9344 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9345else
c6b750e1
DJ
9346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9347for as_dir in $PATH
9348do
9349 IFS=$as_save_IFS
9350 test -z "$as_dir" && as_dir=.
9351 for ac_exec_ext in '' $ac_executable_extensions; do
9352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9353 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9355 break 2
9356 fi
9357done
9358done
9359
2429c060
PB
9360fi
9361fi
c6b750e1 9362LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9363if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9364 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9365echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9366else
c6b750e1
DJ
9367 echo "$as_me:$LINENO: result: no" >&5
9368echo "${ECHO_T}no" >&6
2429c060 9369fi
c6b750e1 9370
2429c060
PB
9371 fi
9372 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9373 done
9374fi
c6b750e1 9375
2429c060
PB
9376if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9377 set dummy ld
9378 if test $build = $target ; then
9379 LD_FOR_TARGET="$2"
9380 else
9381 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9382 fi
9383fi
9384
3a35eeb3
PB
9385else
9386 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9387fi
9388
9389
9390
9391
9392if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9393 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9394 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9395echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9396 if test -x $with_build_time_tools/lipo; then
9397 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9398 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9399 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9400echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9401 else
c6b750e1
DJ
9402 echo "$as_me:$LINENO: result: no" >&5
9403echo "${ECHO_T}no" >&6
3a35eeb3 9404 fi
2429c060
PB
9405 elif test $build != $host && test $have_gcc_for_target = yes; then
9406 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
9407 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
9408 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9409 fi
9410fi
9a819804
AO
9411if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9412 # Extract the first word of "lipo", so it can be a program name with args.
9413set dummy lipo; ac_word=$2
9414echo "$as_me:$LINENO: checking for $ac_word" >&5
9415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9416if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9418else
9419 case $LIPO_FOR_TARGET in
9420 [\\/]* | ?:[\\/]*)
9421 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9422 ;;
9423 *)
9424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9425for as_dir in $gcc_cv_tool_dirs
9426do
9427 IFS=$as_save_IFS
9428 test -z "$as_dir" && as_dir=.
9429 for ac_exec_ext in '' $ac_executable_extensions; do
9430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9431 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9433 break 2
9434 fi
9435done
9436done
9437
9438 ;;
9439esac
9440fi
9441LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9442
9443if test -n "$LIPO_FOR_TARGET"; then
9444 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9445echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9446else
9447 echo "$as_me:$LINENO: result: no" >&5
9448echo "${ECHO_T}no" >&6
9449fi
9450
9451fi
9452if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9453
9454
9455if test -n "$LIPO_FOR_TARGET"; then
9456 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9457elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9458 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9459fi
9460
9461if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9462 for ncn_progname in lipo; do
9463 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9464set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9465echo "$as_me:$LINENO: checking for $ac_word" >&5
9466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9467if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9468 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9469else
9a819804
AO
9470 if test -n "$LIPO_FOR_TARGET"; then
9471 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9472else
9473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9474for as_dir in $PATH
c6b750e1
DJ
9475do
9476 IFS=$as_save_IFS
9477 test -z "$as_dir" && as_dir=.
9478 for ac_exec_ext in '' $ac_executable_extensions; do
9479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9480 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9482 break 2
9483 fi
9484done
9485done
9486
2429c060 9487fi
9a819804
AO
9488fi
9489LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9490if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9491 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9492echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9493else
c6b750e1
DJ
9494 echo "$as_me:$LINENO: result: no" >&5
9495echo "${ECHO_T}no" >&6
2429c060
PB
9496fi
9497
9a819804 9498 done
2429c060 9499fi
9a819804
AO
9500
9501if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9502 for ncn_progname in lipo; do
c6b750e1
DJ
9503 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9504echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9505 if test -x $with_build_time_tools/${ncn_progname}; then
9506 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9507 echo "$as_me:$LINENO: result: yes" >&5
9508echo "${ECHO_T}yes" >&6
2429c060
PB
9509 break
9510 else
c6b750e1
DJ
9511 echo "$as_me:$LINENO: result: no" >&5
9512echo "${ECHO_T}no" >&6
2429c060
PB
9513 fi
9514 done
9515fi
9516
9517if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9518 for ncn_progname in lipo; do
9519 if test -n "$ncn_target_tool_prefix"; then
9520 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9521set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9522echo "$as_me:$LINENO: checking for $ac_word" >&5
9523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9524if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9525 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9526else
9527 if test -n "$LIPO_FOR_TARGET"; then
9528 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9529else
c6b750e1
DJ
9530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9531for as_dir in $PATH
9532do
9533 IFS=$as_save_IFS
9534 test -z "$as_dir" && as_dir=.
9535 for ac_exec_ext in '' $ac_executable_extensions; do
9536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9537 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9539 break 2
9540 fi
9541done
9542done
9543
2429c060
PB
9544fi
9545fi
c6b750e1 9546LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9547if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9548 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9549echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9550else
c6b750e1
DJ
9551 echo "$as_me:$LINENO: result: no" >&5
9552echo "${ECHO_T}no" >&6
2429c060
PB
9553fi
9554
9555 fi
9556 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9558set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9559echo "$as_me:$LINENO: checking for $ac_word" >&5
9560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9561if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9563else
9564 if test -n "$LIPO_FOR_TARGET"; then
9565 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9566else
c6b750e1
DJ
9567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9568for as_dir in $PATH
9569do
9570 IFS=$as_save_IFS
9571 test -z "$as_dir" && as_dir=.
9572 for ac_exec_ext in '' $ac_executable_extensions; do
9573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9574 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9576 break 2
9577 fi
9578done
9579done
9580
2429c060
PB
9581fi
9582fi
c6b750e1 9583LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9584if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9585 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9586echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9587else
c6b750e1
DJ
9588 echo "$as_me:$LINENO: result: no" >&5
9589echo "${ECHO_T}no" >&6
2429c060 9590fi
c6b750e1 9591
2429c060
PB
9592 fi
9593 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9594 done
9595fi
c6b750e1 9596
2429c060
PB
9597if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9598 set dummy lipo
9599 if test $build = $target ; then
9600 LIPO_FOR_TARGET="$2"
9601 else
9602 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9603 fi
9604fi
9605
3a35eeb3
PB
9606else
9607 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
9608fi
9609
9610
9611
9612
9613if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9614 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9615 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9616echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9617 if test -x $with_build_time_tools/nm; then
9618 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9619 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
9620 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9621echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 9622 else
c6b750e1
DJ
9623 echo "$as_me:$LINENO: result: no" >&5
9624echo "${ECHO_T}no" >&6
3a35eeb3 9625 fi
2429c060
PB
9626 elif test $build != $host && test $have_gcc_for_target = yes; then
9627 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
9628 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
9629 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
9630 fi
9631fi
c6b750e1 9632if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9633 # Extract the first word of "nm", so it can be a program name with args.
9634set dummy nm; ac_word=$2
c6b750e1
DJ
9635echo "$as_me:$LINENO: checking for $ac_word" >&5
9636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9637if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9639else
c6b750e1
DJ
9640 case $NM_FOR_TARGET in
9641 [\\/]* | ?:[\\/]*)
2429c060
PB
9642 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9643 ;;
2429c060 9644 *)
c6b750e1
DJ
9645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9646for as_dir in $gcc_cv_tool_dirs
9647do
9648 IFS=$as_save_IFS
9649 test -z "$as_dir" && as_dir=.
9650 for ac_exec_ext in '' $ac_executable_extensions; do
9651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9652 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9654 break 2
9655 fi
9656done
9657done
9658
2429c060
PB
9659 ;;
9660esac
9661fi
c6b750e1
DJ
9662NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9663
2429c060 9664if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9665 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9666echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 9667else
c6b750e1
DJ
9668 echo "$as_me:$LINENO: result: no" >&5
9669echo "${ECHO_T}no" >&6
2429c060
PB
9670fi
9671
9672fi
9673if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
9674
9675
9676if test -n "$NM_FOR_TARGET"; then
9677 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9678elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9679 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9680fi
9681
9682if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9683 for ncn_progname in nm; do
9684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9685set dummy ${ncn_progname}; ac_word=$2
9686echo "$as_me:$LINENO: checking for $ac_word" >&5
9687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9688if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9690else
9691 if test -n "$NM_FOR_TARGET"; then
9692 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9693else
9694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695for as_dir in $PATH
9696do
9697 IFS=$as_save_IFS
9698 test -z "$as_dir" && as_dir=.
9699 for ac_exec_ext in '' $ac_executable_extensions; do
9700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9701 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9703 break 2
9704 fi
9705done
9706done
9707
9708fi
9709fi
9710NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9711if test -n "$NM_FOR_TARGET"; then
9712 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9713echo "${ECHO_T}$NM_FOR_TARGET" >&6
9714else
9715 echo "$as_me:$LINENO: result: no" >&5
9716echo "${ECHO_T}no" >&6
9717fi
9718
9719 done
9720fi
9721
9722if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9723 for ncn_progname in nm; do
c6b750e1
DJ
9724 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9725echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9726 if test -x $with_build_time_tools/${ncn_progname}; then
9727 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9728 echo "$as_me:$LINENO: result: yes" >&5
9729echo "${ECHO_T}yes" >&6
2429c060
PB
9730 break
9731 else
c6b750e1
DJ
9732 echo "$as_me:$LINENO: result: no" >&5
9733echo "${ECHO_T}no" >&6
2429c060
PB
9734 fi
9735 done
9736fi
9737
9738if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9739 for ncn_progname in nm; do
9740 if test -n "$ncn_target_tool_prefix"; then
9741 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 9742set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9743echo "$as_me:$LINENO: checking for $ac_word" >&5
9744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9745if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9747else
55db4b87
PB
9748 if test -n "$NM_FOR_TARGET"; then
9749 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 9750else
c6b750e1
DJ
9751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9752for as_dir in $PATH
9753do
9754 IFS=$as_save_IFS
9755 test -z "$as_dir" && as_dir=.
9756 for ac_exec_ext in '' $ac_executable_extensions; do
9757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9758 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9760 break 2
9761 fi
9762done
9763done
9764
859789af
AC
9765fi
9766fi
c6b750e1 9767NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 9768if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9769 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9770echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 9771else
c6b750e1
DJ
9772 echo "$as_me:$LINENO: result: no" >&5
9773echo "${ECHO_T}no" >&6
859789af
AC
9774fi
9775
2429c060
PB
9776 fi
9777 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
9778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9779set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9780echo "$as_me:$LINENO: checking for $ac_word" >&5
9781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9782if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9784else
05cbd757
PB
9785 if test -n "$NM_FOR_TARGET"; then
9786 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 9787else
c6b750e1
DJ
9788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789for as_dir in $PATH
9790do
9791 IFS=$as_save_IFS
9792 test -z "$as_dir" && as_dir=.
9793 for ac_exec_ext in '' $ac_executable_extensions; do
9794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9795 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9797 break 2
9798 fi
9799done
9800done
9801
859789af
AC
9802fi
9803fi
c6b750e1 9804NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 9805if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9806 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9807echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 9808else
c6b750e1
DJ
9809 echo "$as_me:$LINENO: result: no" >&5
9810echo "${ECHO_T}no" >&6
859789af 9811fi
c6b750e1 9812
2429c060
PB
9813 fi
9814 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
9815 done
9816fi
c6b750e1 9817
05cbd757
PB
9818if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
9819 set dummy nm
9820 if test $build = $target ; then
9821 NM_FOR_TARGET="$2"
859789af 9822 else
05cbd757 9823 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 9824 fi
859789af
AC
9825fi
9826
3a35eeb3
PB
9827else
9828 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
9829fi
9830
9831
9832
9833
9834if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9835 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9836 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
9837echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9838 if test -x $with_build_time_tools/objdump; then
9839 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
9840 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
9841 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
9842echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 9843 else
c6b750e1
DJ
9844 echo "$as_me:$LINENO: result: no" >&5
9845echo "${ECHO_T}no" >&6
3a35eeb3 9846 fi
2429c060
PB
9847 elif test $build != $host && test $have_gcc_for_target = yes; then
9848 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
9849 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
9850 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
9851 fi
9852fi
c6b750e1 9853if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9854 # Extract the first word of "objdump", so it can be a program name with args.
9855set dummy objdump; ac_word=$2
c6b750e1
DJ
9856echo "$as_me:$LINENO: checking for $ac_word" >&5
9857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9858if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9860else
c6b750e1
DJ
9861 case $OBJDUMP_FOR_TARGET in
9862 [\\/]* | ?:[\\/]*)
2429c060
PB
9863 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
9864 ;;
2429c060 9865 *)
c6b750e1
DJ
9866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9867for as_dir in $gcc_cv_tool_dirs
9868do
9869 IFS=$as_save_IFS
9870 test -z "$as_dir" && as_dir=.
9871 for ac_exec_ext in '' $ac_executable_extensions; do
9872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9873 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9875 break 2
9876 fi
9877done
9878done
9879
2429c060
PB
9880 ;;
9881esac
9882fi
c6b750e1
DJ
9883OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
9884
2429c060 9885if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
9886 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
9887echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 9888else
c6b750e1
DJ
9889 echo "$as_me:$LINENO: result: no" >&5
9890echo "${ECHO_T}no" >&6
2429c060
PB
9891fi
9892
9893fi
9894if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
9895
9896
9897if test -n "$OBJDUMP_FOR_TARGET"; then
9898 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
9899elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
9900 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
9901fi
9902
9903if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
9904 for ncn_progname in objdump; do
9905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9906set dummy ${ncn_progname}; ac_word=$2
9907echo "$as_me:$LINENO: checking for $ac_word" >&5
9908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9909if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
9910 echo $ECHO_N "(cached) $ECHO_C" >&6
9911else
9912 if test -n "$OBJDUMP_FOR_TARGET"; then
9913 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
9914else
9915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9916for as_dir in $PATH
9917do
9918 IFS=$as_save_IFS
9919 test -z "$as_dir" && as_dir=.
9920 for ac_exec_ext in '' $ac_executable_extensions; do
9921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9922 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
9923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9924 break 2
9925 fi
9926done
9927done
9928
9929fi
9930fi
9931OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
9932if test -n "$OBJDUMP_FOR_TARGET"; then
9933 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
9934echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
9935else
9936 echo "$as_me:$LINENO: result: no" >&5
9937echo "${ECHO_T}no" >&6
9938fi
9939
9940 done
9941fi
9942
9943if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9944 for ncn_progname in objdump; do
c6b750e1
DJ
9945 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9946echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9947 if test -x $with_build_time_tools/${ncn_progname}; then
9948 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9949 echo "$as_me:$LINENO: result: yes" >&5
9950echo "${ECHO_T}yes" >&6
2429c060
PB
9951 break
9952 else
c6b750e1
DJ
9953 echo "$as_me:$LINENO: result: no" >&5
9954echo "${ECHO_T}no" >&6
2429c060
PB
9955 fi
9956 done
9957fi
9958
9959if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
9960 for ncn_progname in objdump; do
9961 if test -n "$ncn_target_tool_prefix"; then
9962 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9963set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9964echo "$as_me:$LINENO: checking for $ac_word" >&5
9965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9966if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
9968else
9969 if test -n "$OBJDUMP_FOR_TARGET"; then
9970 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
9971else
c6b750e1
DJ
9972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9973for as_dir in $PATH
9974do
9975 IFS=$as_save_IFS
9976 test -z "$as_dir" && as_dir=.
9977 for ac_exec_ext in '' $ac_executable_extensions; do
9978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9979 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9981 break 2
9982 fi
9983done
9984done
9985
5ae72758
DJ
9986fi
9987fi
c6b750e1 9988OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 9989if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
9990 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
9991echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 9992else
c6b750e1
DJ
9993 echo "$as_me:$LINENO: result: no" >&5
9994echo "${ECHO_T}no" >&6
5ae72758
DJ
9995fi
9996
2429c060
PB
9997 fi
9998 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
9999 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10000set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10001echo "$as_me:$LINENO: checking for $ac_word" >&5
10002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10003if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10004 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10005else
10006 if test -n "$OBJDUMP_FOR_TARGET"; then
10007 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10008else
c6b750e1
DJ
10009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10010for as_dir in $PATH
10011do
10012 IFS=$as_save_IFS
10013 test -z "$as_dir" && as_dir=.
10014 for ac_exec_ext in '' $ac_executable_extensions; do
10015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10016 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10018 break 2
10019 fi
10020done
10021done
10022
5ae72758
DJ
10023fi
10024fi
c6b750e1 10025OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10026if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10027 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10028echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10029else
c6b750e1
DJ
10030 echo "$as_me:$LINENO: result: no" >&5
10031echo "${ECHO_T}no" >&6
5ae72758 10032fi
c6b750e1 10033
2429c060
PB
10034 fi
10035 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10036 done
10037fi
c6b750e1 10038
5ae72758
DJ
10039if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10040 set dummy objdump
10041 if test $build = $target ; then
10042 OBJDUMP_FOR_TARGET="$2"
10043 else
10044 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10045 fi
10046fi
10047
3a35eeb3
PB
10048else
10049 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10050fi
10051
10052
10053
10054
10055if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10056 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10057 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10058echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10059 if test -x $with_build_time_tools/ranlib; then
10060 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10061 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10062 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10063echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10064 else
c6b750e1
DJ
10065 echo "$as_me:$LINENO: result: no" >&5
10066echo "${ECHO_T}no" >&6
3a35eeb3 10067 fi
2429c060
PB
10068 elif test $build != $host && test $have_gcc_for_target = yes; then
10069 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
10070 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
10071 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10072 fi
10073fi
c6b750e1 10074if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10075 # Extract the first word of "ranlib", so it can be a program name with args.
10076set dummy ranlib; ac_word=$2
c6b750e1
DJ
10077echo "$as_me:$LINENO: checking for $ac_word" >&5
10078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10079if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10081else
c6b750e1
DJ
10082 case $RANLIB_FOR_TARGET in
10083 [\\/]* | ?:[\\/]*)
2429c060
PB
10084 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10085 ;;
2429c060 10086 *)
c6b750e1
DJ
10087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10088for as_dir in $gcc_cv_tool_dirs
10089do
10090 IFS=$as_save_IFS
10091 test -z "$as_dir" && as_dir=.
10092 for ac_exec_ext in '' $ac_executable_extensions; do
10093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10094 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10096 break 2
10097 fi
10098done
10099done
10100
2429c060
PB
10101 ;;
10102esac
10103fi
c6b750e1
DJ
10104RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10105
2429c060 10106if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10107 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10108echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10109else
c6b750e1
DJ
10110 echo "$as_me:$LINENO: result: no" >&5
10111echo "${ECHO_T}no" >&6
2429c060
PB
10112fi
10113
10114fi
10115if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10116
10117
10118if test -n "$RANLIB_FOR_TARGET"; then
10119 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10120elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10121 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10122fi
10123
10124if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10125 for ncn_progname in ranlib; do
10126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10127set dummy ${ncn_progname}; ac_word=$2
10128echo "$as_me:$LINENO: checking for $ac_word" >&5
10129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10130if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10132else
10133 if test -n "$RANLIB_FOR_TARGET"; then
10134 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10135else
10136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10137for as_dir in $PATH
10138do
10139 IFS=$as_save_IFS
10140 test -z "$as_dir" && as_dir=.
10141 for ac_exec_ext in '' $ac_executable_extensions; do
10142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10143 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10145 break 2
10146 fi
10147done
10148done
10149
10150fi
10151fi
10152RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10153if test -n "$RANLIB_FOR_TARGET"; then
10154 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10155echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10156else
10157 echo "$as_me:$LINENO: result: no" >&5
10158echo "${ECHO_T}no" >&6
10159fi
10160
10161 done
10162fi
10163
10164if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10165 for ncn_progname in ranlib; do
c6b750e1
DJ
10166 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10167echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10168 if test -x $with_build_time_tools/${ncn_progname}; then
10169 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10170 echo "$as_me:$LINENO: result: yes" >&5
10171echo "${ECHO_T}yes" >&6
2429c060
PB
10172 break
10173 else
c6b750e1
DJ
10174 echo "$as_me:$LINENO: result: no" >&5
10175echo "${ECHO_T}no" >&6
2429c060
PB
10176 fi
10177 done
10178fi
10179
10180if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10181 for ncn_progname in ranlib; do
10182 if test -n "$ncn_target_tool_prefix"; then
10183 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10184set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10185echo "$as_me:$LINENO: checking for $ac_word" >&5
10186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10187if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10189else
55db4b87
PB
10190 if test -n "$RANLIB_FOR_TARGET"; then
10191 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10192else
c6b750e1
DJ
10193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194for as_dir in $PATH
10195do
10196 IFS=$as_save_IFS
10197 test -z "$as_dir" && as_dir=.
10198 for ac_exec_ext in '' $ac_executable_extensions; do
10199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10200 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10202 break 2
10203 fi
10204done
10205done
10206
859789af
AC
10207fi
10208fi
c6b750e1 10209RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10210if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10211 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10212echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10213else
c6b750e1
DJ
10214 echo "$as_me:$LINENO: result: no" >&5
10215echo "${ECHO_T}no" >&6
859789af
AC
10216fi
10217
2429c060
PB
10218 fi
10219 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10220 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10221set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10222echo "$as_me:$LINENO: checking for $ac_word" >&5
10223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10224if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10225 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10226else
05cbd757
PB
10227 if test -n "$RANLIB_FOR_TARGET"; then
10228 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10229else
c6b750e1
DJ
10230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231for as_dir in $PATH
10232do
10233 IFS=$as_save_IFS
10234 test -z "$as_dir" && as_dir=.
10235 for ac_exec_ext in '' $ac_executable_extensions; do
10236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10237 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10239 break 2
10240 fi
10241done
10242done
10243
859789af
AC
10244fi
10245fi
c6b750e1 10246RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10247if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10248 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10249echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10250else
c6b750e1
DJ
10251 echo "$as_me:$LINENO: result: no" >&5
10252echo "${ECHO_T}no" >&6
859789af 10253fi
c6b750e1 10254
2429c060
PB
10255 fi
10256 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10257 done
10258fi
c6b750e1 10259
2429c060
PB
10260if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10261 set dummy ranlib
10262 if test $build = $target ; then
10263 RANLIB_FOR_TARGET="$2"
10264 else
10265 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10266 fi
2429c060 10267fi
05cbd757 10268
3a35eeb3
PB
10269else
10270 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10271fi
10272
2429c060
PB
10273
10274
10275
10276if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10277 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10278 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10279echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10280 if test -x $with_build_time_tools/strip; then
10281 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10282 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10283 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10284echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10285 else
c6b750e1
DJ
10286 echo "$as_me:$LINENO: result: no" >&5
10287echo "${ECHO_T}no" >&6
3a35eeb3 10288 fi
2429c060
PB
10289 elif test $build != $host && test $have_gcc_for_target = yes; then
10290 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
10291 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
10292 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10293 fi
10294fi
c6b750e1 10295if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10296 # Extract the first word of "strip", so it can be a program name with args.
10297set dummy strip; ac_word=$2
c6b750e1
DJ
10298echo "$as_me:$LINENO: checking for $ac_word" >&5
10299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10300if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10302else
c6b750e1
DJ
10303 case $STRIP_FOR_TARGET in
10304 [\\/]* | ?:[\\/]*)
2429c060
PB
10305 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10306 ;;
2429c060 10307 *)
c6b750e1
DJ
10308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10309for as_dir in $gcc_cv_tool_dirs
10310do
10311 IFS=$as_save_IFS
10312 test -z "$as_dir" && as_dir=.
10313 for ac_exec_ext in '' $ac_executable_extensions; do
10314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10315 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10317 break 2
10318 fi
10319done
10320done
10321
2429c060
PB
10322 ;;
10323esac
10324fi
c6b750e1
DJ
10325STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10326
2429c060 10327if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10328 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10329echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10330else
c6b750e1
DJ
10331 echo "$as_me:$LINENO: result: no" >&5
10332echo "${ECHO_T}no" >&6
2429c060
PB
10333fi
10334
10335fi
10336if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10337
10338
10339if test -n "$STRIP_FOR_TARGET"; then
10340 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10341elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10342 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10343fi
10344
10345if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10346 for ncn_progname in strip; do
10347 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10348set dummy ${ncn_progname}; ac_word=$2
10349echo "$as_me:$LINENO: checking for $ac_word" >&5
10350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10351if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10353else
10354 if test -n "$STRIP_FOR_TARGET"; then
10355 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10356else
10357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358for as_dir in $PATH
10359do
10360 IFS=$as_save_IFS
10361 test -z "$as_dir" && as_dir=.
10362 for ac_exec_ext in '' $ac_executable_extensions; do
10363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10364 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10366 break 2
10367 fi
10368done
10369done
10370
10371fi
10372fi
10373STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10374if test -n "$STRIP_FOR_TARGET"; then
10375 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10376echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10377else
10378 echo "$as_me:$LINENO: result: no" >&5
10379echo "${ECHO_T}no" >&6
10380fi
10381
10382 done
10383fi
10384
10385if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10386 for ncn_progname in strip; do
c6b750e1
DJ
10387 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10388echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10389 if test -x $with_build_time_tools/${ncn_progname}; then
10390 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10391 echo "$as_me:$LINENO: result: yes" >&5
10392echo "${ECHO_T}yes" >&6
2429c060
PB
10393 break
10394 else
c6b750e1
DJ
10395 echo "$as_me:$LINENO: result: no" >&5
10396echo "${ECHO_T}no" >&6
2429c060
PB
10397 fi
10398 done
10399fi
10400
10401if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10402 for ncn_progname in strip; do
10403 if test -n "$ncn_target_tool_prefix"; then
10404 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10405set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10406echo "$as_me:$LINENO: checking for $ac_word" >&5
10407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10408if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10410else
10411 if test -n "$STRIP_FOR_TARGET"; then
10412 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10413else
10414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415for as_dir in $PATH
10416do
10417 IFS=$as_save_IFS
10418 test -z "$as_dir" && as_dir=.
10419 for ac_exec_ext in '' $ac_executable_extensions; do
10420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10421 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10423 break 2
10424 fi
10425done
10426done
10427
7e0f7140
GK
10428fi
10429fi
c6b750e1 10430STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10431if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10432 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10433echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10434else
c6b750e1
DJ
10435 echo "$as_me:$LINENO: result: no" >&5
10436echo "${ECHO_T}no" >&6
7e0f7140
GK
10437fi
10438
2429c060
PB
10439 fi
10440 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10442set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10443echo "$as_me:$LINENO: checking for $ac_word" >&5
10444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10445if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10447else
10448 if test -n "$STRIP_FOR_TARGET"; then
10449 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10450else
c6b750e1
DJ
10451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10452for as_dir in $PATH
10453do
10454 IFS=$as_save_IFS
10455 test -z "$as_dir" && as_dir=.
10456 for ac_exec_ext in '' $ac_executable_extensions; do
10457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10458 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10460 break 2
10461 fi
10462done
10463done
10464
7e0f7140
GK
10465fi
10466fi
c6b750e1 10467STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10468if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10469 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10470echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10471else
c6b750e1
DJ
10472 echo "$as_me:$LINENO: result: no" >&5
10473echo "${ECHO_T}no" >&6
7e0f7140 10474fi
c6b750e1 10475
2429c060
PB
10476 fi
10477 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10478 done
10479fi
c6b750e1 10480
7e0f7140
GK
10481if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10482 set dummy strip
10483 if test $build = $target ; then
10484 STRIP_FOR_TARGET="$2"
10485 else
10486 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10487 fi
10488fi
10489
3a35eeb3
PB
10490else
10491 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10492fi
10493
10494
10495
10496
10497if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10498 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10499 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10500echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10501 if test -x $with_build_time_tools/windres; then
10502 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10503 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10504 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10505echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10506 else
c6b750e1
DJ
10507 echo "$as_me:$LINENO: result: no" >&5
10508echo "${ECHO_T}no" >&6
3a35eeb3 10509 fi
2429c060
PB
10510 elif test $build != $host && test $have_gcc_for_target = yes; then
10511 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
10512 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
10513 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10514 fi
10515fi
c6b750e1 10516if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10517 # Extract the first word of "windres", so it can be a program name with args.
10518set dummy windres; ac_word=$2
c6b750e1
DJ
10519echo "$as_me:$LINENO: checking for $ac_word" >&5
10520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10521if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10523else
c6b750e1
DJ
10524 case $WINDRES_FOR_TARGET in
10525 [\\/]* | ?:[\\/]*)
2429c060
PB
10526 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10527 ;;
2429c060 10528 *)
c6b750e1
DJ
10529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10530for as_dir in $gcc_cv_tool_dirs
10531do
10532 IFS=$as_save_IFS
10533 test -z "$as_dir" && as_dir=.
10534 for ac_exec_ext in '' $ac_executable_extensions; do
10535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10536 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10538 break 2
10539 fi
10540done
10541done
10542
2429c060
PB
10543 ;;
10544esac
10545fi
c6b750e1
DJ
10546WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10547
2429c060 10548if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10549 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10550echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10551else
c6b750e1
DJ
10552 echo "$as_me:$LINENO: result: no" >&5
10553echo "${ECHO_T}no" >&6
2429c060
PB
10554fi
10555
10556fi
10557if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10558
10559
10560if test -n "$WINDRES_FOR_TARGET"; then
10561 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10562elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10563 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10564fi
10565
10566if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10567 for ncn_progname in windres; do
10568 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10569set dummy ${ncn_progname}; ac_word=$2
10570echo "$as_me:$LINENO: checking for $ac_word" >&5
10571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10572if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10574else
10575 if test -n "$WINDRES_FOR_TARGET"; then
10576 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10577else
10578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10579for as_dir in $PATH
10580do
10581 IFS=$as_save_IFS
10582 test -z "$as_dir" && as_dir=.
10583 for ac_exec_ext in '' $ac_executable_extensions; do
10584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10585 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10587 break 2
10588 fi
10589done
10590done
10591
10592fi
10593fi
10594WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10595if test -n "$WINDRES_FOR_TARGET"; then
10596 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10597echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10598else
10599 echo "$as_me:$LINENO: result: no" >&5
10600echo "${ECHO_T}no" >&6
10601fi
10602
10603 done
10604fi
10605
10606if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10607 for ncn_progname in windres; do
c6b750e1
DJ
10608 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10609echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10610 if test -x $with_build_time_tools/${ncn_progname}; then
10611 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10612 echo "$as_me:$LINENO: result: yes" >&5
10613echo "${ECHO_T}yes" >&6
2429c060
PB
10614 break
10615 else
c6b750e1
DJ
10616 echo "$as_me:$LINENO: result: no" >&5
10617echo "${ECHO_T}no" >&6
2429c060
PB
10618 fi
10619 done
10620fi
10621
10622if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10623 for ncn_progname in windres; do
10624 if test -n "$ncn_target_tool_prefix"; then
10625 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10626set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10627echo "$as_me:$LINENO: checking for $ac_word" >&5
10628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10629if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10631else
55db4b87
PB
10632 if test -n "$WINDRES_FOR_TARGET"; then
10633 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10634else
c6b750e1
DJ
10635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10636for as_dir in $PATH
10637do
10638 IFS=$as_save_IFS
10639 test -z "$as_dir" && as_dir=.
10640 for ac_exec_ext in '' $ac_executable_extensions; do
10641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10642 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10644 break 2
10645 fi
10646done
10647done
10648
859789af
AC
10649fi
10650fi
c6b750e1 10651WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 10652if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10653 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10654echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10655else
c6b750e1
DJ
10656 echo "$as_me:$LINENO: result: no" >&5
10657echo "${ECHO_T}no" >&6
859789af
AC
10658fi
10659
2429c060
PB
10660 fi
10661 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10663set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10664echo "$as_me:$LINENO: checking for $ac_word" >&5
10665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10666if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10668else
05cbd757
PB
10669 if test -n "$WINDRES_FOR_TARGET"; then
10670 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10671else
c6b750e1
DJ
10672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10673for as_dir in $PATH
10674do
10675 IFS=$as_save_IFS
10676 test -z "$as_dir" && as_dir=.
10677 for ac_exec_ext in '' $ac_executable_extensions; do
10678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10679 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10681 break 2
10682 fi
10683done
10684done
10685
859789af
AC
10686fi
10687fi
c6b750e1 10688WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 10689if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10690 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10691echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10692else
c6b750e1
DJ
10693 echo "$as_me:$LINENO: result: no" >&5
10694echo "${ECHO_T}no" >&6
859789af 10695fi
c6b750e1 10696
2429c060
PB
10697 fi
10698 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10699 done
10700fi
c6b750e1 10701
05cbd757
PB
10702if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10703 set dummy windres
10704 if test $build = $target ; then
10705 WINDRES_FOR_TARGET="$2"
859789af 10706 else
05cbd757 10707 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10708 fi
859789af
AC
10709fi
10710
3a35eeb3
PB
10711else
10712 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
10713fi
10714
852e5f18 10715
be01d343
PB
10716RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
10717
c6b750e1
DJ
10718echo "$as_me:$LINENO: checking where to find the target ar" >&5
10719echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 10720if test "x${build}" != "x${host}" ; then
2429c060
PB
10721 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
10722 # We already found the complete path
b8025f34
AS
10723 ac_dir=`dirname $AR_FOR_TARGET`
10724 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10725echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
10726 else
10727 # Canadian cross, just use what we found
c6b750e1
DJ
10728 echo "$as_me:$LINENO: result: pre-installed" >&5
10729echo "${ECHO_T}pre-installed" >&6
2429c060 10730 fi
be01d343
PB
10731else
10732 ok=yes
10733 case " ${configdirs} " in
10734 *" binutils "*) ;;
10735 *) ok=no ;;
10736 esac
c6b750e1 10737
be01d343
PB
10738 if test $ok = yes; then
10739 # An in-tree tool is available and we can use it
10740 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
10741 echo "$as_me:$LINENO: result: just compiled" >&5
10742echo "${ECHO_T}just compiled" >&6
2429c060
PB
10743 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
10744 # We already found the complete path
b8025f34
AS
10745 ac_dir=`dirname $AR_FOR_TARGET`
10746 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10747echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
10748 elif test "x$target" = "x$host"; then
10749 # We can use an host tool
10750 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
10751 echo "$as_me:$LINENO: result: host tool" >&5
10752echo "${ECHO_T}host tool" >&6
be01d343
PB
10753 else
10754 # We need a cross tool
c6b750e1
DJ
10755 echo "$as_me:$LINENO: result: pre-installed" >&5
10756echo "${ECHO_T}pre-installed" >&6
be01d343
PB
10757 fi
10758fi
4b900473 10759
c6b750e1
DJ
10760echo "$as_me:$LINENO: checking where to find the target as" >&5
10761echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 10762if test "x${build}" != "x${host}" ; then
2429c060
PB
10763 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
10764 # We already found the complete path
b8025f34
AS
10765 ac_dir=`dirname $AS_FOR_TARGET`
10766 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10767echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
10768 else
10769 # Canadian cross, just use what we found
c6b750e1
DJ
10770 echo "$as_me:$LINENO: result: pre-installed" >&5
10771echo "${ECHO_T}pre-installed" >&6
2429c060 10772 fi
be01d343
PB
10773else
10774 ok=yes
10775 case " ${configdirs} " in
10776 *" gas "*) ;;
10777 *) ok=no ;;
10778 esac
c6b750e1 10779
be01d343
PB
10780 if test $ok = yes; then
10781 # An in-tree tool is available and we can use it
10782 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
10783 echo "$as_me:$LINENO: result: just compiled" >&5
10784echo "${ECHO_T}just compiled" >&6
2429c060
PB
10785 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
10786 # We already found the complete path
b8025f34
AS
10787 ac_dir=`dirname $AS_FOR_TARGET`
10788 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10789echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
10790 elif test "x$target" = "x$host"; then
10791 # We can use an host tool
10792 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
10793 echo "$as_me:$LINENO: result: host tool" >&5
10794echo "${ECHO_T}host tool" >&6
be01d343
PB
10795 else
10796 # We need a cross tool
c6b750e1
DJ
10797 echo "$as_me:$LINENO: result: pre-installed" >&5
10798echo "${ECHO_T}pre-installed" >&6
be01d343
PB
10799 fi
10800fi
4b900473 10801
c6b750e1
DJ
10802echo "$as_me:$LINENO: checking where to find the target cc" >&5
10803echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 10804if test "x${build}" != "x${host}" ; then
2429c060
PB
10805 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
10806 # We already found the complete path
b8025f34
AS
10807 ac_dir=`dirname $CC_FOR_TARGET`
10808 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10809echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
10810 else
10811 # Canadian cross, just use what we found
c6b750e1
DJ
10812 echo "$as_me:$LINENO: result: pre-installed" >&5
10813echo "${ECHO_T}pre-installed" >&6
2429c060 10814 fi
be01d343
PB
10815else
10816 ok=yes
10817 case " ${configdirs} " in
10818 *" gcc "*) ;;
10819 *) ok=no ;;
10820 esac
c6b750e1 10821
be01d343
PB
10822 if test $ok = yes; then
10823 # An in-tree tool is available and we can use it
10824 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
10825 echo "$as_me:$LINENO: result: just compiled" >&5
10826echo "${ECHO_T}just compiled" >&6
2429c060
PB
10827 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
10828 # We already found the complete path
b8025f34
AS
10829 ac_dir=`dirname $CC_FOR_TARGET`
10830 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10831echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
10832 elif test "x$target" = "x$host"; then
10833 # We can use an host tool
10834 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
10835 echo "$as_me:$LINENO: result: host tool" >&5
10836echo "${ECHO_T}host tool" >&6
be01d343
PB
10837 else
10838 # We need a cross tool
c6b750e1
DJ
10839 echo "$as_me:$LINENO: result: pre-installed" >&5
10840echo "${ECHO_T}pre-installed" >&6
be01d343
PB
10841 fi
10842fi
4b900473 10843
c6b750e1
DJ
10844echo "$as_me:$LINENO: checking where to find the target c++" >&5
10845echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 10846if test "x${build}" != "x${host}" ; then
2429c060
PB
10847 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
10848 # We already found the complete path
b8025f34
AS
10849 ac_dir=`dirname $CXX_FOR_TARGET`
10850 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10851echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
10852 else
10853 # Canadian cross, just use what we found
c6b750e1
DJ
10854 echo "$as_me:$LINENO: result: pre-installed" >&5
10855echo "${ECHO_T}pre-installed" >&6
2429c060 10856 fi
be01d343
PB
10857else
10858 ok=yes
10859 case " ${configdirs} " in
10860 *" gcc "*) ;;
10861 *) ok=no ;;
10862 esac
10863 case ,${enable_languages}, in
10864 *,c++,*) ;;
10865 *) ok=no ;;
10866 esac
10867 if test $ok = yes; then
10868 # An in-tree tool is available and we can use it
10869 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
10870 echo "$as_me:$LINENO: result: just compiled" >&5
10871echo "${ECHO_T}just compiled" >&6
2429c060
PB
10872 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
10873 # We already found the complete path
b8025f34
AS
10874 ac_dir=`dirname $CXX_FOR_TARGET`
10875 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10876echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
10877 elif test "x$target" = "x$host"; then
10878 # We can use an host tool
10879 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
10880 echo "$as_me:$LINENO: result: host tool" >&5
10881echo "${ECHO_T}host tool" >&6
be01d343
PB
10882 else
10883 # We need a cross tool
c6b750e1
DJ
10884 echo "$as_me:$LINENO: result: pre-installed" >&5
10885echo "${ECHO_T}pre-installed" >&6
be01d343
PB
10886 fi
10887fi
4b900473 10888
c6b750e1
DJ
10889echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
10890echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 10891if test "x${build}" != "x${host}" ; then
2429c060
PB
10892 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
10893 # We already found the complete path
b8025f34
AS
10894 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
10895 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10896echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
10897 else
10898 # Canadian cross, just use what we found
c6b750e1
DJ
10899 echo "$as_me:$LINENO: result: pre-installed" >&5
10900echo "${ECHO_T}pre-installed" >&6
2429c060 10901 fi
be01d343
PB
10902else
10903 ok=yes
10904 case " ${configdirs} " in
10905 *" gcc "*) ;;
10906 *) ok=no ;;
10907 esac
10908 case ,${enable_languages}, in
10909 *,c++,*) ;;
10910 *) ok=no ;;
10911 esac
10912 if test $ok = yes; then
10913 # An in-tree tool is available and we can use it
10914 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
10915 echo "$as_me:$LINENO: result: just compiled" >&5
10916echo "${ECHO_T}just compiled" >&6
2429c060
PB
10917 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
10918 # We already found the complete path
b8025f34
AS
10919 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
10920 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10921echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
10922 elif test "x$target" = "x$host"; then
10923 # We can use an host tool
10924 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
10925 echo "$as_me:$LINENO: result: host tool" >&5
10926echo "${ECHO_T}host tool" >&6
be01d343
PB
10927 else
10928 # We need a cross tool
c6b750e1
DJ
10929 echo "$as_me:$LINENO: result: pre-installed" >&5
10930echo "${ECHO_T}pre-installed" >&6
be01d343
PB
10931 fi
10932fi
4b900473 10933
c6b750e1
DJ
10934echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
10935echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 10936if test "x${build}" != "x${host}" ; then
2429c060
PB
10937 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
10938 # We already found the complete path
b8025f34
AS
10939 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
10940 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10941echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
10942 else
10943 # Canadian cross, just use what we found
c6b750e1
DJ
10944 echo "$as_me:$LINENO: result: pre-installed" >&5
10945echo "${ECHO_T}pre-installed" >&6
2429c060 10946 fi
be01d343
PB
10947else
10948 ok=yes
10949 case " ${configdirs} " in
10950 *" binutils "*) ;;
10951 *) ok=no ;;
10952 esac
c6b750e1 10953
be01d343
PB
10954 if test $ok = yes; then
10955 # An in-tree tool is available and we can use it
10956 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
10957 echo "$as_me:$LINENO: result: just compiled" >&5
10958echo "${ECHO_T}just compiled" >&6
2429c060
PB
10959 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
10960 # We already found the complete path
b8025f34
AS
10961 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
10962 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10963echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
10964 elif test "x$target" = "x$host"; then
10965 # We can use an host tool
10966 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
10967 echo "$as_me:$LINENO: result: host tool" >&5
10968echo "${ECHO_T}host tool" >&6
be01d343
PB
10969 else
10970 # We need a cross tool
c6b750e1
DJ
10971 echo "$as_me:$LINENO: result: pre-installed" >&5
10972echo "${ECHO_T}pre-installed" >&6
be01d343
PB
10973 fi
10974fi
4b900473 10975
c6b750e1
DJ
10976echo "$as_me:$LINENO: checking where to find the target gcc" >&5
10977echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 10978if test "x${build}" != "x${host}" ; then
2429c060
PB
10979 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
10980 # We already found the complete path
b8025f34
AS
10981 ac_dir=`dirname $GCC_FOR_TARGET`
10982 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10983echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
10984 else
10985 # Canadian cross, just use what we found
c6b750e1
DJ
10986 echo "$as_me:$LINENO: result: pre-installed" >&5
10987echo "${ECHO_T}pre-installed" >&6
2429c060 10988 fi
be01d343
PB
10989else
10990 ok=yes
10991 case " ${configdirs} " in
10992 *" gcc "*) ;;
10993 *) ok=no ;;
10994 esac
c6b750e1 10995
be01d343
PB
10996 if test $ok = yes; then
10997 # An in-tree tool is available and we can use it
10998 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
10999 echo "$as_me:$LINENO: result: just compiled" >&5
11000echo "${ECHO_T}just compiled" >&6
2429c060
PB
11001 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11002 # We already found the complete path
b8025f34
AS
11003 ac_dir=`dirname $GCC_FOR_TARGET`
11004 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11005echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11006 elif test "x$target" = "x$host"; then
11007 # We can use an host tool
11008 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11009 echo "$as_me:$LINENO: result: host tool" >&5
11010echo "${ECHO_T}host tool" >&6
be01d343
PB
11011 else
11012 # We need a cross tool
c6b750e1
DJ
11013 echo "$as_me:$LINENO: result: pre-installed" >&5
11014echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11015 fi
11016fi
4b900473 11017
c6b750e1
DJ
11018echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11019echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11020if test "x${build}" != "x${host}" ; then
2429c060
PB
11021 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11022 # We already found the complete path
b8025f34
AS
11023 ac_dir=`dirname $GCJ_FOR_TARGET`
11024 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11025echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11026 else
11027 # Canadian cross, just use what we found
c6b750e1
DJ
11028 echo "$as_me:$LINENO: result: pre-installed" >&5
11029echo "${ECHO_T}pre-installed" >&6
2429c060 11030 fi
be01d343
PB
11031else
11032 ok=yes
11033 case " ${configdirs} " in
11034 *" gcc "*) ;;
11035 *) ok=no ;;
11036 esac
11037 case ,${enable_languages}, in
11038 *,java,*) ;;
11039 *) ok=no ;;
11040 esac
11041 if test $ok = yes; then
11042 # An in-tree tool is available and we can use it
11043 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11044 echo "$as_me:$LINENO: result: just compiled" >&5
11045echo "${ECHO_T}just compiled" >&6
2429c060
PB
11046 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11047 # We already found the complete path
b8025f34
AS
11048 ac_dir=`dirname $GCJ_FOR_TARGET`
11049 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11050echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11051 elif test "x$target" = "x$host"; then
11052 # We can use an host tool
11053 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11054 echo "$as_me:$LINENO: result: host tool" >&5
11055echo "${ECHO_T}host tool" >&6
be01d343
PB
11056 else
11057 # We need a cross tool
c6b750e1
DJ
11058 echo "$as_me:$LINENO: result: pre-installed" >&5
11059echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11060 fi
11061fi
4b900473 11062
c6b750e1
DJ
11063echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11064echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11065if test "x${build}" != "x${host}" ; then
2429c060
PB
11066 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11067 # We already found the complete path
b8025f34
AS
11068 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11069 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11070echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11071 else
11072 # Canadian cross, just use what we found
c6b750e1
DJ
11073 echo "$as_me:$LINENO: result: pre-installed" >&5
11074echo "${ECHO_T}pre-installed" >&6
2429c060 11075 fi
be01d343
PB
11076else
11077 ok=yes
11078 case " ${configdirs} " in
11079 *" gcc "*) ;;
11080 *) ok=no ;;
11081 esac
11082 case ,${enable_languages}, in
11083 *,fortran,*) ;;
11084 *) ok=no ;;
11085 esac
11086 if test $ok = yes; then
11087 # An in-tree tool is available and we can use it
11088 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11089 echo "$as_me:$LINENO: result: just compiled" >&5
11090echo "${ECHO_T}just compiled" >&6
2429c060
PB
11091 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11092 # We already found the complete path
b8025f34
AS
11093 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11094 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11095echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11096 elif test "x$target" = "x$host"; then
11097 # We can use an host tool
11098 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11099 echo "$as_me:$LINENO: result: host tool" >&5
11100echo "${ECHO_T}host tool" >&6
be01d343
PB
11101 else
11102 # We need a cross tool
c6b750e1
DJ
11103 echo "$as_me:$LINENO: result: pre-installed" >&5
11104echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11105 fi
11106fi
4b900473 11107
c6b750e1
DJ
11108echo "$as_me:$LINENO: checking where to find the target ld" >&5
11109echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11110if test "x${build}" != "x${host}" ; then
2429c060
PB
11111 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11112 # We already found the complete path
b8025f34
AS
11113 ac_dir=`dirname $LD_FOR_TARGET`
11114 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11115echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11116 else
11117 # Canadian cross, just use what we found
c6b750e1
DJ
11118 echo "$as_me:$LINENO: result: pre-installed" >&5
11119echo "${ECHO_T}pre-installed" >&6
2429c060 11120 fi
be01d343
PB
11121else
11122 ok=yes
11123 case " ${configdirs} " in
11124 *" ld "*) ;;
11125 *) ok=no ;;
11126 esac
c6b750e1 11127
be01d343
PB
11128 if test $ok = yes; then
11129 # An in-tree tool is available and we can use it
11130 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11131 echo "$as_me:$LINENO: result: just compiled" >&5
11132echo "${ECHO_T}just compiled" >&6
2429c060
PB
11133 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11134 # We already found the complete path
b8025f34
AS
11135 ac_dir=`dirname $LD_FOR_TARGET`
11136 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11137echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11138 elif test "x$target" = "x$host"; then
11139 # We can use an host tool
11140 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11141 echo "$as_me:$LINENO: result: host tool" >&5
11142echo "${ECHO_T}host tool" >&6
be01d343
PB
11143 else
11144 # We need a cross tool
c6b750e1
DJ
11145 echo "$as_me:$LINENO: result: pre-installed" >&5
11146echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11147 fi
11148fi
4b900473 11149
c6b750e1
DJ
11150echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11151echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11152if test "x${build}" != "x${host}" ; then
2429c060
PB
11153 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11154 # We already found the complete path
b8025f34
AS
11155 ac_dir=`dirname $LIPO_FOR_TARGET`
11156 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11157echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11158 else
11159 # Canadian cross, just use what we found
c6b750e1
DJ
11160 echo "$as_me:$LINENO: result: pre-installed" >&5
11161echo "${ECHO_T}pre-installed" >&6
2429c060 11162 fi
be01d343 11163else
2429c060
PB
11164 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11165 # We already found the complete path
b8025f34
AS
11166 ac_dir=`dirname $LIPO_FOR_TARGET`
11167 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11168echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11169 elif test "x$target" = "x$host"; then
be01d343
PB
11170 # We can use an host tool
11171 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11172 echo "$as_me:$LINENO: result: host tool" >&5
11173echo "${ECHO_T}host tool" >&6
be01d343
PB
11174 else
11175 # We need a cross tool
c6b750e1
DJ
11176 echo "$as_me:$LINENO: result: pre-installed" >&5
11177echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11178 fi
11179fi
4b900473 11180
c6b750e1
DJ
11181echo "$as_me:$LINENO: checking where to find the target nm" >&5
11182echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11183if test "x${build}" != "x${host}" ; then
2429c060
PB
11184 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11185 # We already found the complete path
b8025f34
AS
11186 ac_dir=`dirname $NM_FOR_TARGET`
11187 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11188echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11189 else
11190 # Canadian cross, just use what we found
c6b750e1
DJ
11191 echo "$as_me:$LINENO: result: pre-installed" >&5
11192echo "${ECHO_T}pre-installed" >&6
2429c060 11193 fi
be01d343
PB
11194else
11195 ok=yes
11196 case " ${configdirs} " in
11197 *" binutils "*) ;;
11198 *) ok=no ;;
11199 esac
c6b750e1 11200
be01d343
PB
11201 if test $ok = yes; then
11202 # An in-tree tool is available and we can use it
11203 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11204 echo "$as_me:$LINENO: result: just compiled" >&5
11205echo "${ECHO_T}just compiled" >&6
2429c060
PB
11206 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11207 # We already found the complete path
b8025f34
AS
11208 ac_dir=`dirname $NM_FOR_TARGET`
11209 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11210echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11211 elif test "x$target" = "x$host"; then
11212 # We can use an host tool
11213 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11214 echo "$as_me:$LINENO: result: host tool" >&5
11215echo "${ECHO_T}host tool" >&6
be01d343
PB
11216 else
11217 # We need a cross tool
c6b750e1
DJ
11218 echo "$as_me:$LINENO: result: pre-installed" >&5
11219echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11220 fi
11221fi
4b900473 11222
c6b750e1
DJ
11223echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11224echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11225if test "x${build}" != "x${host}" ; then
2429c060
PB
11226 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11227 # We already found the complete path
b8025f34
AS
11228 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11229 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11230echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11231 else
11232 # Canadian cross, just use what we found
c6b750e1
DJ
11233 echo "$as_me:$LINENO: result: pre-installed" >&5
11234echo "${ECHO_T}pre-installed" >&6
2429c060 11235 fi
be01d343
PB
11236else
11237 ok=yes
11238 case " ${configdirs} " in
11239 *" binutils "*) ;;
11240 *) ok=no ;;
11241 esac
c6b750e1 11242
be01d343
PB
11243 if test $ok = yes; then
11244 # An in-tree tool is available and we can use it
11245 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11246 echo "$as_me:$LINENO: result: just compiled" >&5
11247echo "${ECHO_T}just compiled" >&6
2429c060
PB
11248 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11249 # We already found the complete path
b8025f34
AS
11250 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11251 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11252echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11253 elif test "x$target" = "x$host"; then
11254 # We can use an host tool
11255 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11256 echo "$as_me:$LINENO: result: host tool" >&5
11257echo "${ECHO_T}host tool" >&6
be01d343
PB
11258 else
11259 # We need a cross tool
c6b750e1
DJ
11260 echo "$as_me:$LINENO: result: pre-installed" >&5
11261echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11262 fi
11263fi
4b900473 11264
c6b750e1
DJ
11265echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11266echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11267if test "x${build}" != "x${host}" ; then
2429c060
PB
11268 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11269 # We already found the complete path
b8025f34
AS
11270 ac_dir=`dirname $RANLIB_FOR_TARGET`
11271 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11272echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11273 else
11274 # Canadian cross, just use what we found
c6b750e1
DJ
11275 echo "$as_me:$LINENO: result: pre-installed" >&5
11276echo "${ECHO_T}pre-installed" >&6
2429c060 11277 fi
be01d343
PB
11278else
11279 ok=yes
11280 case " ${configdirs} " in
11281 *" binutils "*) ;;
11282 *) ok=no ;;
11283 esac
c6b750e1 11284
be01d343
PB
11285 if test $ok = yes; then
11286 # An in-tree tool is available and we can use it
11287 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11288 echo "$as_me:$LINENO: result: just compiled" >&5
11289echo "${ECHO_T}just compiled" >&6
2429c060
PB
11290 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11291 # We already found the complete path
b8025f34
AS
11292 ac_dir=`dirname $RANLIB_FOR_TARGET`
11293 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11294echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11295 elif test "x$target" = "x$host"; then
11296 # We can use an host tool
11297 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11298 echo "$as_me:$LINENO: result: host tool" >&5
11299echo "${ECHO_T}host tool" >&6
be01d343
PB
11300 else
11301 # We need a cross tool
c6b750e1
DJ
11302 echo "$as_me:$LINENO: result: pre-installed" >&5
11303echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11304 fi
11305fi
4b900473 11306
c6b750e1
DJ
11307echo "$as_me:$LINENO: checking where to find the target strip" >&5
11308echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11309if test "x${build}" != "x${host}" ; then
2429c060
PB
11310 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11311 # We already found the complete path
b8025f34
AS
11312 ac_dir=`dirname $STRIP_FOR_TARGET`
11313 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11314echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11315 else
11316 # Canadian cross, just use what we found
c6b750e1
DJ
11317 echo "$as_me:$LINENO: result: pre-installed" >&5
11318echo "${ECHO_T}pre-installed" >&6
2429c060 11319 fi
be01d343
PB
11320else
11321 ok=yes
11322 case " ${configdirs} " in
11323 *" binutils "*) ;;
11324 *) ok=no ;;
11325 esac
c6b750e1 11326
be01d343
PB
11327 if test $ok = yes; then
11328 # An in-tree tool is available and we can use it
11329 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11330 echo "$as_me:$LINENO: result: just compiled" >&5
11331echo "${ECHO_T}just compiled" >&6
2429c060
PB
11332 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11333 # We already found the complete path
b8025f34
AS
11334 ac_dir=`dirname $STRIP_FOR_TARGET`
11335 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11336echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11337 elif test "x$target" = "x$host"; then
11338 # We can use an host tool
11339 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11340 echo "$as_me:$LINENO: result: host tool" >&5
11341echo "${ECHO_T}host tool" >&6
be01d343
PB
11342 else
11343 # We need a cross tool
c6b750e1
DJ
11344 echo "$as_me:$LINENO: result: pre-installed" >&5
11345echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11346 fi
11347fi
4b900473 11348
c6b750e1
DJ
11349echo "$as_me:$LINENO: checking where to find the target windres" >&5
11350echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 11351if test "x${build}" != "x${host}" ; then
2429c060
PB
11352 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11353 # We already found the complete path
b8025f34
AS
11354 ac_dir=`dirname $WINDRES_FOR_TARGET`
11355 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11356echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11357 else
11358 # Canadian cross, just use what we found
c6b750e1
DJ
11359 echo "$as_me:$LINENO: result: pre-installed" >&5
11360echo "${ECHO_T}pre-installed" >&6
2429c060 11361 fi
be01d343
PB
11362else
11363 ok=yes
11364 case " ${configdirs} " in
11365 *" binutils "*) ;;
11366 *) ok=no ;;
11367 esac
c6b750e1 11368
be01d343
PB
11369 if test $ok = yes; then
11370 # An in-tree tool is available and we can use it
11371 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
11372 echo "$as_me:$LINENO: result: just compiled" >&5
11373echo "${ECHO_T}just compiled" >&6
2429c060
PB
11374 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11375 # We already found the complete path
b8025f34
AS
11376 ac_dir=`dirname $WINDRES_FOR_TARGET`
11377 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11378echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11379 elif test "x$target" = "x$host"; then
11380 # We can use an host tool
11381 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
11382 echo "$as_me:$LINENO: result: host tool" >&5
11383echo "${ECHO_T}host tool" >&6
be01d343
PB
11384 else
11385 # We need a cross tool
c6b750e1
DJ
11386 echo "$as_me:$LINENO: result: pre-installed" >&5
11387echo "${ECHO_T}pre-installed" >&6
be01d343 11388 fi
a0da8069 11389fi
54752a6b
NN
11390
11391
11392
be01d343 11393
4b900473 11394
a0da8069
NN
11395# Certain tools may need extra flags.
11396AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11397RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11398NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11399
be01d343
PB
11400# When building target libraries, except in a Canadian cross, we use
11401# the same toolchain as the compiler we just built.
11402COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11403COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11404COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11405if test $host = $build; then
11406 case " $configdirs " in
11407 *" gcc "*)
11408 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11409 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11410 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11411 ;;
11412 esac
11413fi
11414
11415
11416
11417
11418
c6b750e1
DJ
11419echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11420echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
11421# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11422if test "${enable_maintainer_mode+set}" = set; then
11423 enableval="$enable_maintainer_mode"
11424 USE_MAINTAINER_MODE=$enableval
11425else
11426 USE_MAINTAINER_MODE=no
c6b750e1
DJ
11427fi;
11428echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11429echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
11430
11431
11432if test "$USE_MAINTAINER_MODE" = yes; then
11433 MAINTAINER_MODE_TRUE=
11434 MAINTAINER_MODE_FALSE='#'
11435else
11436 MAINTAINER_MODE_TRUE='#'
11437 MAINTAINER_MODE_FALSE=
c6b750e1 11438fi
3d5e36ae
AO
11439MAINT=$MAINTAINER_MODE_TRUE
11440
1d39f329
NN
11441# ---------------------
11442# GCC bootstrap support
11443# ---------------------
11444
11445# Stage specific cflags for build.
11446stage1_cflags="-g"
11447case $build in
11448 vax-*-*)
11449 case ${GCC} in
11450 yes) stage1_cflags="-g -Wa,-J" ;;
11451 *) stage1_cflags="-g -J" ;;
11452 esac ;;
1d39f329
NN
11453esac
11454
1d89b610
PB
11455# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11456if test "$GCC" = yes; then
11457 saved_CFLAGS="$CFLAGS"
11458
11459 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11460 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
11461 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11462echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
11463 cat >conftest.$ac_ext <<_ACEOF
11464/* confdefs.h. */
11465_ACEOF
11466cat confdefs.h >>conftest.$ac_ext
11467cat >>conftest.$ac_ext <<_ACEOF
11468/* end confdefs.h. */
11469
2038f525
PB
11470#if (__GNUC__ < 3) \
11471 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11472 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11473#error http://gcc.gnu.org/PR29382
11474#endif
11475
c6b750e1
DJ
11476int
11477main ()
11478{
11479
11480 ;
11481 return 0;
11482}
11483_ACEOF
11484rm -f conftest.$ac_objext
11485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11486 (eval $ac_compile) 2>conftest.er1
11487 ac_status=$?
11488 grep -v '^ *+' conftest.er1 >conftest.err
11489 rm -f conftest.er1
11490 cat conftest.err >&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); } &&
11493 { ac_try='test -z "$ac_c_werror_flag"
11494 || test ! -s conftest.err'
11495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496 (eval $ac_try) 2>&5
11497 ac_status=$?
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; } &&
11500 { ac_try='test -s conftest.$ac_objext'
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11503 ac_status=$?
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 echo "$as_me:$LINENO: result: yes" >&5
11507echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
11508else
11509 echo "$as_me: failed program was:" >&5
11510sed 's/^/| /' conftest.$ac_ext >&5
11511
11512echo "$as_me:$LINENO: result: no" >&5
11513echo "${ECHO_T}no" >&6
11514fi
11515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
11516
11517 CFLAGS="$saved_CFLAGS"
11518fi
11519
11520
1d39f329 11521
8a0d8a5c
PB
11522# Enable --enable-checking in stage1 of the compiler.
11523# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
11524if test "${enable_stage1_checking+set}" = set; then
11525 enableval="$enable_stage1_checking"
11526 stage1_checking=--enable-checking=${enable_stage1_checking}
11527else
11528 if test "x$enable_checking" = xno; then
11529 stage1_checking=--enable-checking
11530else
11531 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
11532fi
c6b750e1 11533fi;
8a0d8a5c
PB
11534
11535
1d39f329 11536# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
11537# Check whether --enable-werror or --disable-werror was given.
11538if test "${enable_werror+set}" = set; then
11539 enableval="$enable_werror"
c6b750e1 11540
1d39f329 11541else
a0323144 11542 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 11543 enable_werror=yes
79fcd0ec
PB
11544else
11545 enable_werror=no
11546fi
c6b750e1 11547fi;
1a6f2dc7
NN
11548case ${enable_werror} in
11549 yes) stage2_werror_flag="--enable-werror-always" ;;
11550 *) stage2_werror_flag="" ;;
1d39f329
NN
11551esac
11552
11553
108a6f8e 11554# Flags needed to enable html installing and building
c6b750e1 11555
108a6f8e
CD
11556# Check whether --with-datarootdir or --without-datarootdir was given.
11557if test "${with_datarootdir+set}" = set; then
11558 withval="$with_datarootdir"
11559 datarootdir="\${prefix}/${withval}"
11560else
11561 datarootdir="\${prefix}/share"
c6b750e1 11562fi;
108a6f8e
CD
11563
11564
11565# Check whether --with-docdir or --without-docdir was given.
11566if test "${with_docdir+set}" = set; then
11567 withval="$with_docdir"
11568 docdir="\${prefix}/${withval}"
11569else
11570 docdir="\${datarootdir}/doc"
c6b750e1 11571fi;
108a6f8e
CD
11572
11573
a3ca38d2
DD
11574# Check whether --with-pdfdir or --without-pdfdir was given.
11575if test "${with_pdfdir+set}" = set; then
11576 withval="$with_pdfdir"
11577 pdfdir="\${prefix}/${withval}"
11578else
11579 pdfdir="\${docdir}"
11580fi;
11581
11582
108a6f8e
CD
11583# Check whether --with-htmldir or --without-htmldir was given.
11584if test "${with_htmldir+set}" = set; then
11585 withval="$with_htmldir"
11586 htmldir="\${prefix}/${withval}"
11587else
11588 htmldir="\${docdir}"
c6b750e1 11589fi;
108a6f8e
CD
11590
11591
11592
11593
11594
b8025f34 11595
c6b750e1
DJ
11596 ac_config_files="$ac_config_files Makefile"
11597cat >confcache <<\_ACEOF
a0da8069
NN
11598# This file is a shell script that caches the results of configure
11599# tests run on this system so they can be shared between configure
c6b750e1
DJ
11600# scripts and configure runs, see configure's option --config-cache.
11601# It is not useful on other systems. If it contains results you don't
11602# want to keep, you may remove or edit it.
a0da8069 11603#
c6b750e1
DJ
11604# config.status only pays attention to the cache file if you give it
11605# the --recheck option to rerun configure.
a0da8069 11606#
c6b750e1
DJ
11607# `ac_cv_env_foo' variables (set or unset) will be overridden when
11608# loading this file, other *unset* `ac_cv_foo' will be assigned the
11609# following values.
11610
11611_ACEOF
11612
a0da8069
NN
11613# The following way of writing the cache mishandles newlines in values,
11614# but we know of no workaround that is simple, portable, and efficient.
11615# So, don't put newlines in cache variables' values.
11616# Ultrix sh set writes to stderr and can't be redirected directly,
11617# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
11618{
11619 (set) 2>&1 |
11620 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11621 *ac_space=\ *)
11622 # `set' does not quote correctly, so add quotes (double-quote
11623 # substitution turns \\\\ into \\, and sed turns \\ into \).
11624 sed -n \
11625 "s/'/'\\\\''/g;
11626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11627 ;;
11628 *)
11629 # `set' quotes correctly as required by POSIX, so do not add quotes.
11630 sed -n \
11631 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11632 ;;
11633 esac;
11634} |
11635 sed '
11636 t clear
11637 : clear
11638 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11639 t end
11640 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11641 : end' >>confcache
11642if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 11643 if test -w $cache_file; then
c6b750e1
DJ
11644 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11645 cat confcache >$cache_file
a0da8069
NN
11646 else
11647 echo "not updating unwritable cache $cache_file"
11648 fi
852e5f18 11649fi
a0da8069 11650rm -f confcache
852e5f18 11651
a0da8069
NN
11652test "x$prefix" = xNONE && prefix=$ac_default_prefix
11653# Let make expand exec_prefix.
11654test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 11655
c6b750e1
DJ
11656# VPATH may cause trouble with some makes, so we remove $(srcdir),
11657# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11658# trailing colons and then remove the whole line if VPATH becomes empty
11659# (actually we leave an empty line to preserve line numbers).
a0da8069 11660if test "x$srcdir" = x.; then
c6b750e1
DJ
11661 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11662s/:*\$(srcdir):*/:/;
11663s/:*\${srcdir}:*/:/;
11664s/:*@srcdir@:*/:/;
11665s/^\([^=]*=[ ]*\):*/\1/;
11666s/:*$//;
11667s/^[^=]*=[ ]*$//;
11668}'
a0da8069 11669fi
252b5132 11670
a0da8069
NN
11671# Transform confdefs.h into DEFS.
11672# Protect against shell expansion while executing Makefile rules.
11673# Protect against Makefile macro expansion.
c6b750e1
DJ
11674#
11675# If the first sed substitution is executed (which looks for macros that
11676# take arguments), then we branch to the quote section. Otherwise,
11677# look for a macro that doesn't take arguments.
11678cat >confdef2opt.sed <<\_ACEOF
11679t clear
11680: clear
11681s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
11682t quote
11683s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
11684t quote
11685d
11686: quote
11687s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
11688s,\[,\\&,g
11689s,\],\\&,g
11690s,\$,$$,g
11691p
11692_ACEOF
11693# We use echo to avoid assuming a particular line-breaking character.
11694# The extra dot is to prevent the shell from consuming trailing
11695# line-breaks from the sub-command output. A line-break within
11696# single-quotes doesn't work because, if this script is created in a
11697# platform that uses two characters for line-breaks (e.g., DOS), tr
11698# would break.
11699ac_LF_and_DOT=`echo; echo .`
11700DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11701rm -f confdef2opt.sed
11702
11703
11704ac_libobjs=
11705ac_ltlibobjs=
11706for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11707 # 1. Remove the extension, and $U if already installed.
11708 ac_i=`echo "$ac_i" |
11709 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11710 # 2. Add them.
11711 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11712 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11713done
11714LIBOBJS=$ac_libobjs
852e5f18 11715
c6b750e1 11716LTLIBOBJS=$ac_ltlibobjs
376a0e54 11717
cac3d6c4 11718
c6b750e1
DJ
11719
11720: ${CONFIG_STATUS=./config.status}
11721ac_clean_files_save=$ac_clean_files
11722ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11723{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11724echo "$as_me: creating $CONFIG_STATUS" >&6;}
11725cat >$CONFIG_STATUS <<_ACEOF
11726#! $SHELL
11727# Generated by $as_me.
a0da8069 11728# Run this file to recreate the current configuration.
a0da8069 11729# Compiler output produced by configure, useful for debugging
c6b750e1 11730# configure, is in config.log if it exists.
376a0e54 11731
c6b750e1
DJ
11732debug=false
11733ac_cs_recheck=false
11734ac_cs_silent=false
11735SHELL=\${CONFIG_SHELL-$SHELL}
11736_ACEOF
11737
11738cat >>$CONFIG_STATUS <<\_ACEOF
11739## --------------------- ##
11740## M4sh Initialization. ##
11741## --------------------- ##
11742
11743# Be Bourne compatible
11744if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11745 emulate sh
11746 NULLCMD=:
11747 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11748 # is contrary to our usage. Disable this feature.
11749 alias -g '${1+"$@"}'='"$@"'
11750elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11751 set -o posix
11752fi
11753DUALCASE=1; export DUALCASE # for MKS sh
11754
11755# Support unset when possible.
11756if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11757 as_unset=unset
11758else
11759 as_unset=false
11760fi
11761
11762
11763# Work around bugs in pre-3.0 UWIN ksh.
11764$as_unset ENV MAIL MAILPATH
11765PS1='$ '
11766PS2='> '
11767PS4='+ '
11768
11769# NLS nuisances.
11770for as_var in \
11771 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11772 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11773 LC_TELEPHONE LC_TIME
11774do
11775 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11776 eval $as_var=C; export $as_var
11777 else
11778 $as_unset $as_var
11779 fi
11780done
11781
11782# Required to use basename.
11783if expr a : '\(a\)' >/dev/null 2>&1; then
11784 as_expr=expr
11785else
11786 as_expr=false
11787fi
11788
11789if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11790 as_basename=basename
11791else
11792 as_basename=false
11793fi
11794
11795
11796# Name of the executable.
11797as_me=`$as_basename "$0" ||
11798$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11799 X"$0" : 'X\(//\)$' \| \
11800 X"$0" : 'X\(/\)$' \| \
11801 . : '\(.\)' 2>/dev/null ||
11802echo X/"$0" |
11803 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11804 /^X\/\(\/\/\)$/{ s//\1/; q; }
11805 /^X\/\(\/\).*/{ s//\1/; q; }
11806 s/.*/./; q'`
11807
11808
11809# PATH needs CR, and LINENO needs CR and PATH.
11810# Avoid depending upon Character Ranges.
11811as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11812as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11813as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11814as_cr_digits='0123456789'
11815as_cr_alnum=$as_cr_Letters$as_cr_digits
11816
11817# The user is always right.
11818if test "${PATH_SEPARATOR+set}" != set; then
11819 echo "#! /bin/sh" >conf$$.sh
11820 echo "exit 0" >>conf$$.sh
11821 chmod +x conf$$.sh
11822 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11823 PATH_SEPARATOR=';'
11824 else
11825 PATH_SEPARATOR=:
11826 fi
11827 rm -f conf$$.sh
11828fi
11829
11830
11831 as_lineno_1=$LINENO
11832 as_lineno_2=$LINENO
11833 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11834 test "x$as_lineno_1" != "x$as_lineno_2" &&
11835 test "x$as_lineno_3" = "x$as_lineno_2" || {
11836 # Find who we are. Look in the path if we contain no path at all
11837 # relative or not.
11838 case $0 in
11839 *[\\/]* ) as_myself=$0 ;;
11840 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11841for as_dir in $PATH
11842do
11843 IFS=$as_save_IFS
11844 test -z "$as_dir" && as_dir=.
11845 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11846done
11847
11848 ;;
11849 esac
11850 # We did not find ourselves, most probably we were run as `sh COMMAND'
11851 # in which case we are not to be found in the path.
11852 if test "x$as_myself" = x; then
11853 as_myself=$0
11854 fi
11855 if test ! -f "$as_myself"; then
11856 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11857echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11858 { (exit 1); exit 1; }; }
11859 fi
11860 case $CONFIG_SHELL in
11861 '')
11862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11864do
11865 IFS=$as_save_IFS
11866 test -z "$as_dir" && as_dir=.
11867 for as_base in sh bash ksh sh5; do
11868 case $as_dir in
11869 /*)
11870 if ("$as_dir/$as_base" -c '
11871 as_lineno_1=$LINENO
11872 as_lineno_2=$LINENO
11873 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11874 test "x$as_lineno_1" != "x$as_lineno_2" &&
11875 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11876 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11877 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11878 CONFIG_SHELL=$as_dir/$as_base
11879 export CONFIG_SHELL
11880 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11881 fi;;
11882 esac
11883 done
11884done
11885;;
11886 esac
11887
11888 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11889 # uniformly replaced by the line number. The first 'sed' inserts a
11890 # line-number line before each line; the second 'sed' does the real
11891 # work. The second script uses 'N' to pair each line-number line
11892 # with the numbered line, and appends trailing '-' during
11893 # substitution so that $LINENO is not a special case at line end.
11894 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11895 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11896 sed '=' <$as_myself |
11897 sed '
11898 N
11899 s,$,-,
11900 : loop
11901 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11902 t loop
11903 s,-$,,
11904 s,^['$as_cr_digits']*\n,,
11905 ' >$as_me.lineno &&
11906 chmod +x $as_me.lineno ||
11907 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11908echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11909 { (exit 1); exit 1; }; }
11910
11911 # Don't try to exec as it changes $[0], causing all sort of problems
11912 # (the dirname of $[0] is not the place where we might find the
11913 # original and so on. Autoconf is especially sensible to this).
11914 . ./$as_me.lineno
11915 # Exit status is that of the last command.
11916 exit
11917}
11918
11919
11920case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11921 *c*,-n*) ECHO_N= ECHO_C='
11922' ECHO_T=' ' ;;
11923 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11924 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11925esac
11926
11927if expr a : '\(a\)' >/dev/null 2>&1; then
11928 as_expr=expr
11929else
11930 as_expr=false
11931fi
11932
11933rm -f conf$$ conf$$.exe conf$$.file
11934echo >conf$$.file
11935if ln -s conf$$.file conf$$ 2>/dev/null; then
11936 # We could just check for DJGPP; but this test a) works b) is more generic
11937 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11938 if test -f conf$$.exe; then
11939 # Don't use ln at all; we don't have any links
11940 as_ln_s='cp -p'
11941 else
11942 as_ln_s='ln -s'
11943 fi
11944elif ln conf$$.file conf$$ 2>/dev/null; then
11945 as_ln_s=ln
11946else
11947 as_ln_s='cp -p'
11948fi
11949rm -f conf$$ conf$$.exe conf$$.file
11950
11951if mkdir -p . 2>/dev/null; then
11952 as_mkdir_p=:
11953else
11954 test -d ./-p && rmdir ./-p
11955 as_mkdir_p=false
11956fi
11957
11958as_executable_p="test -f"
11959
11960# Sed expression to map a string onto a valid CPP name.
11961as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11962
11963# Sed expression to map a string onto a valid variable name.
11964as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11965
11966
11967# IFS
11968# We need space, tab and new line, in precisely that order.
11969as_nl='
11970'
11971IFS=" $as_nl"
11972
11973# CDPATH.
11974$as_unset CDPATH
11975
11976exec 6>&1
11977
11978# Open the log real soon, to keep \$[0] and so on meaningful, and to
11979# report actual input values of CONFIG_FILES etc. instead of their
11980# values after options handling. Logging --version etc. is OK.
11981exec 5>>config.log
11982{
11983 echo
11984 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11985## Running $as_me. ##
11986_ASBOX
11987} >&5
11988cat >&5 <<_CSEOF
11989
11990This file was extended by $as_me, which was
11991generated by GNU Autoconf 2.59. Invocation command line was
11992
11993 CONFIG_FILES = $CONFIG_FILES
11994 CONFIG_HEADERS = $CONFIG_HEADERS
11995 CONFIG_LINKS = $CONFIG_LINKS
11996 CONFIG_COMMANDS = $CONFIG_COMMANDS
11997 $ $0 $@
11998
11999_CSEOF
12000echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12001echo >&5
12002_ACEOF
12003
12004# Files that config.status was made for.
12005if test -n "$ac_config_files"; then
12006 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12007fi
12008
12009if test -n "$ac_config_headers"; then
12010 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12011fi
12012
12013if test -n "$ac_config_links"; then
12014 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12015fi
12016
12017if test -n "$ac_config_commands"; then
12018 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12019fi
12020
12021cat >>$CONFIG_STATUS <<\_ACEOF
12022
12023ac_cs_usage="\
12024\`$as_me' instantiates files from templates according to the
12025current configuration.
12026
12027Usage: $0 [OPTIONS] [FILE]...
12028
12029 -h, --help print this help, then exit
12030 -V, --version print version number, then exit
12031 -q, --quiet do not print progress messages
12032 -d, --debug don't remove temporary files
12033 --recheck update $as_me by reconfiguring in the same conditions
12034 --file=FILE[:TEMPLATE]
12035 instantiate the configuration file FILE
12036
12037Configuration files:
12038$config_files
12039
12040Report bugs to <bug-autoconf@gnu.org>."
12041_ACEOF
12042
12043cat >>$CONFIG_STATUS <<_ACEOF
12044ac_cs_version="\\
12045config.status
12046configured by $0, generated by GNU Autoconf 2.59,
12047 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12048
12049Copyright (C) 2003 Free Software Foundation, Inc.
12050This config.status script is free software; the Free Software Foundation
12051gives unlimited permission to copy, distribute and modify it."
12052srcdir=$srcdir
12053INSTALL="$INSTALL"
12054_ACEOF
12055
12056cat >>$CONFIG_STATUS <<\_ACEOF
12057# If no file are specified by the user, then we need to provide default
12058# value. By we need to know if files were specified by the user.
12059ac_need_defaults=:
12060while test $# != 0
a0da8069 12061do
c6b750e1
DJ
12062 case $1 in
12063 --*=*)
12064 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12065 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12066 ac_shift=:
12067 ;;
12068 -*)
12069 ac_option=$1
12070 ac_optarg=$2
12071 ac_shift=shift
12072 ;;
12073 *) # This is not an option, so the user has probably given explicit
12074 # arguments.
12075 ac_option=$1
12076 ac_need_defaults=false;;
12077 esac
12078
12079 case $ac_option in
12080 # Handling of the options.
12081_ACEOF
12082cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12083 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12084 ac_cs_recheck=: ;;
12085 --version | --vers* | -V )
12086 echo "$ac_cs_version"; exit 0 ;;
12087 --he | --h)
12088 # Conflict between --help and --header
12089 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12090Try \`$0 --help' for more information." >&5
12091echo "$as_me: error: ambiguous option: $1
12092Try \`$0 --help' for more information." >&2;}
12093 { (exit 1); exit 1; }; };;
12094 --help | --hel | -h )
12095 echo "$ac_cs_usage"; exit 0 ;;
12096 --debug | --d* | -d )
12097 debug=: ;;
12098 --file | --fil | --fi | --f )
12099 $ac_shift
12100 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12101 ac_need_defaults=false;;
12102 --header | --heade | --head | --hea )
12103 $ac_shift
12104 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12105 ac_need_defaults=false;;
12106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12107 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12108 ac_cs_silent=: ;;
12109
12110 # This is an error.
12111 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12112Try \`$0 --help' for more information." >&5
12113echo "$as_me: error: unrecognized option: $1
12114Try \`$0 --help' for more information." >&2;}
12115 { (exit 1); exit 1; }; } ;;
12116
12117 *) ac_config_targets="$ac_config_targets $1" ;;
12118
376a0e54 12119 esac
c6b750e1 12120 shift
376a0e54
CM
12121done
12122
c6b750e1 12123ac_configure_extra_args=
376a0e54 12124
c6b750e1
DJ
12125if $ac_cs_silent; then
12126 exec 6>/dev/null
12127 ac_configure_extra_args="$ac_configure_extra_args --silent"
12128fi
376a0e54 12129
c6b750e1
DJ
12130_ACEOF
12131cat >>$CONFIG_STATUS <<_ACEOF
12132if \$ac_cs_recheck; then
12133 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12134 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12135fi
12136
12137_ACEOF
12138
12139
12140
12141
12142
12143cat >>$CONFIG_STATUS <<\_ACEOF
12144for ac_config_target in $ac_config_targets
12145do
12146 case "$ac_config_target" in
12147 # Handling of arguments.
12148 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12149 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12150echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12151 { (exit 1); exit 1; }; };;
12152 esac
12153done
12154
12155# If the user did not use the arguments to specify the items to instantiate,
12156# then the envvar interface is used. Set only those that are not.
12157# We use the long form for the default assignment because of an extremely
12158# bizarre bug on SunOS 4.1.3.
12159if $ac_need_defaults; then
12160 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12161fi
12162
12163# Have a temporary directory for convenience. Make it in the build tree
12164# simply because there is no reason to put it here, and in addition,
12165# creating and moving files from /tmp can sometimes cause problems.
12166# Create a temporary directory, and hook for its removal unless debugging.
12167$debug ||
12168{
12169 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12170 trap '{ (exit 1); exit 1; }' 1 2 13 15
12171}
12172
12173# Create a (secure) tmp directory for tmp files.
12174
12175{
12176 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12177 test -n "$tmp" && test -d "$tmp"
12178} ||
12179{
12180 tmp=./confstat$$-$RANDOM
12181 (umask 077 && mkdir $tmp)
12182} ||
12183{
12184 echo "$me: cannot create a temporary directory in ." >&2
12185 { (exit 1); exit 1; }
12186}
12187
12188_ACEOF
12189
12190cat >>$CONFIG_STATUS <<_ACEOF
12191
12192#
12193# CONFIG_FILES section.
12194#
12195
12196# No need to generate the scripts if there are no CONFIG_FILES.
12197# This happens for instance when ./config.status config.h
12198if test -n "\$CONFIG_FILES"; then
12199 # Protect against being on the right side of a sed subst in config.status.
12200 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12201 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12202s,@SHELL@,$SHELL,;t t
12203s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12204s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12205s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12206s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12207s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12208s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12209s,@exec_prefix@,$exec_prefix,;t t
12210s,@prefix@,$prefix,;t t
12211s,@program_transform_name@,$program_transform_name,;t t
12212s,@bindir@,$bindir,;t t
12213s,@sbindir@,$sbindir,;t t
12214s,@libexecdir@,$libexecdir,;t t
12215s,@datadir@,$datadir,;t t
12216s,@sysconfdir@,$sysconfdir,;t t
12217s,@sharedstatedir@,$sharedstatedir,;t t
12218s,@localstatedir@,$localstatedir,;t t
12219s,@libdir@,$libdir,;t t
12220s,@includedir@,$includedir,;t t
12221s,@oldincludedir@,$oldincludedir,;t t
12222s,@infodir@,$infodir,;t t
12223s,@mandir@,$mandir,;t t
12224s,@build_alias@,$build_alias,;t t
12225s,@host_alias@,$host_alias,;t t
12226s,@target_alias@,$target_alias,;t t
12227s,@DEFS@,$DEFS,;t t
12228s,@ECHO_C@,$ECHO_C,;t t
12229s,@ECHO_N@,$ECHO_N,;t t
12230s,@ECHO_T@,$ECHO_T,;t t
12231s,@LIBS@,$LIBS,;t t
12232s,@build@,$build,;t t
12233s,@build_cpu@,$build_cpu,;t t
12234s,@build_vendor@,$build_vendor,;t t
12235s,@build_os@,$build_os,;t t
12236s,@build_noncanonical@,$build_noncanonical,;t t
12237s,@host_noncanonical@,$host_noncanonical,;t t
12238s,@target_noncanonical@,$target_noncanonical,;t t
12239s,@host@,$host,;t t
12240s,@host_cpu@,$host_cpu,;t t
12241s,@host_vendor@,$host_vendor,;t t
12242s,@host_os@,$host_os,;t t
12243s,@target@,$target,;t t
12244s,@target_cpu@,$target_cpu,;t t
12245s,@target_vendor@,$target_vendor,;t t
12246s,@target_os@,$target_os,;t t
12247s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12248s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12249s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12250s,@LN@,$LN,;t t
12251s,@LN_S@,$LN_S,;t t
12252s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12253s,@build_libsubdir@,$build_libsubdir,;t t
12254s,@build_subdir@,$build_subdir,;t t
12255s,@host_subdir@,$host_subdir,;t t
12256s,@target_subdir@,$target_subdir,;t t
12257s,@CC@,$CC,;t t
12258s,@CFLAGS@,$CFLAGS,;t t
12259s,@LDFLAGS@,$LDFLAGS,;t t
12260s,@CPPFLAGS@,$CPPFLAGS,;t t
12261s,@ac_ct_CC@,$ac_ct_CC,;t t
12262s,@EXEEXT@,$EXEEXT,;t t
12263s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12264s,@CXX@,$CXX,;t t
12265s,@CXXFLAGS@,$CXXFLAGS,;t t
12266s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12267s,@GNATBIND@,$GNATBIND,;t t
12268s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12269s,@GNATMAKE@,$GNATMAKE,;t t
12270s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12271s,@do_compare@,$do_compare,;t t
12272s,@gmplibs@,$gmplibs,;t t
12273s,@gmpinc@,$gmpinc,;t t
12274s,@stage1_languages@,$stage1_languages,;t t
12275s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
12276s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12277s,@tooldir@,$tooldir,;t t
12278s,@build_tooldir@,$build_tooldir,;t t
12279s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12280s,@GDB_TK@,$GDB_TK,;t t
12281s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12282s,@build_configargs@,$build_configargs,;t t
12283s,@build_configdirs@,$build_configdirs,;t t
12284s,@host_configargs@,$host_configargs,;t t
12285s,@configdirs@,$configdirs,;t t
12286s,@target_configargs@,$target_configargs,;t t
12287s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12288s,@config_shell@,$config_shell,;t t
12289s,@YACC@,$YACC,;t t
12290s,@BISON@,$BISON,;t t
12291s,@M4@,$M4,;t t
12292s,@LEX@,$LEX,;t t
12293s,@FLEX@,$FLEX,;t t
12294s,@MAKEINFO@,$MAKEINFO,;t t
12295s,@EXPECT@,$EXPECT,;t t
12296s,@RUNTEST@,$RUNTEST,;t t
12297s,@AR@,$AR,;t t
12298s,@AS@,$AS,;t t
12299s,@DLLTOOL@,$DLLTOOL,;t t
12300s,@LD@,$LD,;t t
12301s,@LIPO@,$LIPO,;t t
12302s,@NM@,$NM,;t t
12303s,@RANLIB@,$RANLIB,;t t
12304s,@STRIP@,$STRIP,;t t
12305s,@WINDRES@,$WINDRES,;t t
12306s,@OBJCOPY@,$OBJCOPY,;t t
12307s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1 12308s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
c6b750e1
DJ
12309s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12310s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12311s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12312s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12313s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12314s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12315s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12316s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12317s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12318s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12319s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12320s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12321s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12322s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12323s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
12324s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12325s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12326s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12327s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12328s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12329s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12330s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12331s,@MAINT@,$MAINT,;t t
12332s,@stage1_cflags@,$stage1_cflags,;t t
12333s,@stage1_checking@,$stage1_checking,;t t
12334s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12335s,@datarootdir@,$datarootdir,;t t
12336s,@docdir@,$docdir,;t t
a3ca38d2 12337s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
12338s,@htmldir@,$htmldir,;t t
12339s,@LIBOBJS@,$LIBOBJS,;t t
12340s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 12341/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 12342s,@serialization_dependencies@,,;t t
a0da8069 12343/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 12344s,@host_makefile_frag@,,;t t
a0da8069 12345/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 12346s,@target_makefile_frag@,,;t t
a0da8069 12347/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 12348s,@alphaieee_frag@,,;t t
a0da8069 12349/@ospace_frag@/r $ospace_frag
c6b750e1 12350s,@ospace_frag@,,;t t
a0da8069 12351CEOF
252b5132 12352
c6b750e1
DJ
12353_ACEOF
12354
12355 cat >>$CONFIG_STATUS <<\_ACEOF
12356 # Split the substitutions into bite-sized pieces for seds with
12357 # small command number limits, like on Digital OSF/1 and HP-UX.
12358 ac_max_sed_lines=48
12359 ac_sed_frag=1 # Number of current file.
12360 ac_beg=1 # First line for current file.
12361 ac_end=$ac_max_sed_lines # Line after last line for current file.
12362 ac_more_lines=:
12363 ac_sed_cmds=
12364 while $ac_more_lines; do
12365 if test $ac_beg -gt 1; then
12366 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12367 else
12368 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12369 fi
12370 if test ! -s $tmp/subs.frag; then
12371 ac_more_lines=false
a0da8069 12372 else
c6b750e1
DJ
12373 # The purpose of the label and of the branching condition is to
12374 # speed up the sed processing (if there are no `@' at all, there
12375 # is no need to browse any of the substitutions).
12376 # These are the two extra sed commands mentioned above.
12377 (echo ':t
12378 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12379 if test -z "$ac_sed_cmds"; then
12380 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12381 else
12382 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12383 fi
12384 ac_sed_frag=`expr $ac_sed_frag + 1`
12385 ac_beg=$ac_end
12386 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 12387 fi
c6b750e1
DJ
12388 done
12389 if test -z "$ac_sed_cmds"; then
12390 ac_sed_cmds=cat
852e5f18 12391 fi
c6b750e1 12392fi # test -n "$CONFIG_FILES"
cac3d6c4 12393
c6b750e1
DJ
12394_ACEOF
12395cat >>$CONFIG_STATUS <<\_ACEOF
12396for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 12397 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
12398 case $ac_file in
12399 - | *:- | *:-:* ) # input from stdin
12400 cat >$tmp/stdin
12401 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12402 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12403 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12404 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12405 * ) ac_file_in=$ac_file.in ;;
a0da8069 12406 esac
252b5132 12407
c6b750e1
DJ
12408 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12409 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12410$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12411 X"$ac_file" : 'X\(//\)[^/]' \| \
12412 X"$ac_file" : 'X\(//\)$' \| \
12413 X"$ac_file" : 'X\(/\)' \| \
12414 . : '\(.\)' 2>/dev/null ||
12415echo X"$ac_file" |
12416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12417 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12418 /^X\(\/\/\)$/{ s//\1/; q; }
12419 /^X\(\/\).*/{ s//\1/; q; }
12420 s/.*/./; q'`
12421 { if $as_mkdir_p; then
12422 mkdir -p "$ac_dir"
cac3d6c4 12423 else
c6b750e1
DJ
12424 as_dir="$ac_dir"
12425 as_dirs=
12426 while test ! -d "$as_dir"; do
12427 as_dirs="$as_dir $as_dirs"
12428 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12429$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12430 X"$as_dir" : 'X\(//\)[^/]' \| \
12431 X"$as_dir" : 'X\(//\)$' \| \
12432 X"$as_dir" : 'X\(/\)' \| \
12433 . : '\(.\)' 2>/dev/null ||
12434echo X"$as_dir" |
12435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12436 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12437 /^X\(\/\/\)$/{ s//\1/; q; }
12438 /^X\(\/\).*/{ s//\1/; q; }
12439 s/.*/./; q'`
12440 done
12441 test ! -n "$as_dirs" || mkdir $as_dirs
12442 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12443echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12444 { (exit 1); exit 1; }; }; }
12445
12446 ac_builddir=.
252b5132 12447
c6b750e1
DJ
12448if test "$ac_dir" != .; then
12449 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12450 # A "../" for each directory in $ac_dir_suffix.
12451 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12452else
12453 ac_dir_suffix= ac_top_builddir=
12454fi
12455
12456case $srcdir in
12457 .) # No --srcdir option. We are building in place.
12458 ac_srcdir=.
12459 if test -z "$ac_top_builddir"; then
12460 ac_top_srcdir=.
12461 else
12462 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12463 fi ;;
12464 [\\/]* | ?:[\\/]* ) # Absolute path.
12465 ac_srcdir=$srcdir$ac_dir_suffix;
12466 ac_top_srcdir=$srcdir ;;
a0da8069 12467 *) # Relative path.
c6b750e1
DJ
12468 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12469 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12470esac
252b5132 12471
c6b750e1
DJ
12472# Do not use `cd foo && pwd` to compute absolute paths, because
12473# the directories may not exist.
12474case `pwd` in
12475.) ac_abs_builddir="$ac_dir";;
12476*)
12477 case "$ac_dir" in
12478 .) ac_abs_builddir=`pwd`;;
12479 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12480 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12481 esac;;
12482esac
12483case $ac_abs_builddir in
12484.) ac_abs_top_builddir=${ac_top_builddir}.;;
12485*)
12486 case ${ac_top_builddir}. in
12487 .) ac_abs_top_builddir=$ac_abs_builddir;;
12488 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12489 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12490 esac;;
12491esac
12492case $ac_abs_builddir in
12493.) ac_abs_srcdir=$ac_srcdir;;
12494*)
12495 case $ac_srcdir in
12496 .) ac_abs_srcdir=$ac_abs_builddir;;
12497 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12498 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12499 esac;;
12500esac
12501case $ac_abs_builddir in
12502.) ac_abs_top_srcdir=$ac_top_srcdir;;
12503*)
12504 case $ac_top_srcdir in
12505 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12506 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12507 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12508 esac;;
12509esac
252b5132 12510
c6b750e1
DJ
12511
12512 case $INSTALL in
12513 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12514 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 12515 esac
252b5132 12516
c6b750e1
DJ
12517 if test x"$ac_file" != x-; then
12518 { echo "$as_me:$LINENO: creating $ac_file" >&5
12519echo "$as_me: creating $ac_file" >&6;}
12520 rm -f "$ac_file"
12521 fi
12522 # Let's still pretend it is `configure' which instantiates (i.e., don't
12523 # use $as_me), people would be surprised to read:
12524 # /* config.h. Generated by config.status. */
12525 if test x"$ac_file" = x-; then
12526 configure_input=
12527 else
12528 configure_input="$ac_file. "
12529 fi
12530 configure_input=$configure_input"Generated from `echo $ac_file_in |
12531 sed 's,.*/,,'` by configure."
12532
12533 # First look for the input files in the build tree, otherwise in the
12534 # src tree.
12535 ac_file_inputs=`IFS=:
12536 for f in $ac_file_in; do
12537 case $f in
12538 -) echo $tmp/stdin ;;
12539 [\\/$]*)
12540 # Absolute (can't be DOS-style, as IFS=:)
12541 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12542echo "$as_me: error: cannot find input file: $f" >&2;}
12543 { (exit 1); exit 1; }; }
12544 echo "$f";;
12545 *) # Relative
12546 if test -f "$f"; then
12547 # Build tree
12548 echo "$f"
12549 elif test -f "$srcdir/$f"; then
12550 # Source tree
12551 echo "$srcdir/$f"
12552 else
12553 # /dev/null tree
12554 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12555echo "$as_me: error: cannot find input file: $f" >&2;}
12556 { (exit 1); exit 1; }; }
12557 fi;;
12558 esac
12559 done` || { (exit 1); exit 1; }
12560_ACEOF
12561cat >>$CONFIG_STATUS <<_ACEOF
12562 sed "$ac_vpsub
12563$extrasub
12564_ACEOF
12565cat >>$CONFIG_STATUS <<\_ACEOF
12566:t
12567/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12568s,@configure_input@,$configure_input,;t t
12569s,@srcdir@,$ac_srcdir,;t t
12570s,@abs_srcdir@,$ac_abs_srcdir,;t t
12571s,@top_srcdir@,$ac_top_srcdir,;t t
12572s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12573s,@builddir@,$ac_builddir,;t t
12574s,@abs_builddir@,$ac_abs_builddir,;t t
12575s,@top_builddir@,$ac_top_builddir,;t t
12576s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12577s,@INSTALL@,$ac_INSTALL,;t t
12578" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12579 rm -f $tmp/stdin
12580 if test x"$ac_file" != x-; then
12581 mv $tmp/out $ac_file
12582 else
12583 cat $tmp/out
12584 rm -f $tmp/out
12585 fi
c148b4cb 12586
c6b750e1
DJ
12587done
12588_ACEOF
c148b4cb 12589
c6b750e1 12590cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 12591
c6b750e1
DJ
12592{ (exit 0); exit 0; }
12593_ACEOF
c148b4cb 12594chmod +x $CONFIG_STATUS
c6b750e1
DJ
12595ac_clean_files=$ac_clean_files_save
12596
12597
12598# configure is writing to config.log, and then calls config.status.
12599# config.status does its own redirection, appending to config.log.
12600# Unfortunately, on DOS this fails, as config.log is still kept open
12601# by configure, so config.status won't be able to write to it; its
12602# output is simply discarded. So we exec the FD to /dev/null,
12603# effectively closing config.log, so it can be properly (re)opened and
12604# appended to by config.status. When coming back to configure, we
12605# need to make the FD available again.
12606if test "$no_create" != yes; then
12607 ac_cs_success=:
12608 ac_config_status_args=
12609 test "$silent" = yes &&
12610 ac_config_status_args="$ac_config_status_args --quiet"
12611 exec 5>/dev/null
12612 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12613 exec 5>>config.log
12614 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12615 # would make configure fail if this is the last instruction.
12616 $ac_cs_success || { (exit 1); exit 1; }
12617fi
c148b4cb 12618