* configure.ac (cr16-*-*): Add case for cr16 target and include gdb
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
c6b750e1 3# Generated by GNU Autoconf 2.59.
a0da8069 4#
c6b750e1 5# Copyright (C) 2003 Free Software Foundation, Inc.
a0da8069
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
c6b750e1
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
a0da8069 243
c6b750e1
DJ
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
a0da8069 254ac_default_prefix=/usr/local
c6b750e1
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
7f6ef0c0 275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
c6b750e1 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
a0da8069
NN
277
278# Initialize some variables set by options.
c6b750e1
DJ
279ac_init_help=
280ac_init_version=false
a0da8069
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
c6b750e1 283cache_file=/dev/null
a0da8069 284exec_prefix=NONE
a0da8069 285no_create=
a0da8069
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
a0da8069
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
c6b750e1
DJ
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
a0da8069
NN
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
252b5132 315
a0da8069
NN
316ac_prev=
317for ac_option
318do
a0da8069
NN
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
324 fi
252b5132 325
c6b750e1 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
a0da8069
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
c6b750e1 330 case $ac_option in
a0da8069
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 335 bindir=$ac_optarg ;;
a0da8069
NN
336
337 -build | --build | --buil | --bui | --bu)
c6b750e1 338 ac_prev=build_alias ;;
a0da8069 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 340 build_alias=$ac_optarg ;;
a0da8069
NN
341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
a0da8069
NN
351
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
c6b750e1 356 datadir=$ac_optarg ;;
a0da8069
NN
357
358 -disable-* | --disable-*)
c6b750e1 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 360 # Reject names that are not valid shell variable names.
c6b750e1
DJ
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
a0da8069
NN
366
367 -enable-* | --enable-*)
c6b750e1 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 369 # Reject names that are not valid shell variable names.
c6b750e1
DJ
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
376 *) ac_optarg=yes ;;
377 esac
c6b750e1 378 eval "enable_$ac_feature='$ac_optarg'" ;;
a0da8069
NN
379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
c6b750e1 387 exec_prefix=$ac_optarg ;;
a0da8069
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
c6b750e1
DJ
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
a0da8069
NN
399
400 -host | --host | --hos | --ho)
c6b750e1 401 ac_prev=host_alias ;;
a0da8069 402 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 403 host_alias=$ac_optarg ;;
a0da8069
NN
404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 410 includedir=$ac_optarg ;;
a0da8069
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 415 infodir=$ac_optarg ;;
a0da8069
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 420 libdir=$ac_optarg ;;
a0da8069
NN
421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
c6b750e1 427 libexecdir=$ac_optarg ;;
a0da8069
NN
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
c6b750e1 436 localstatedir=$ac_optarg ;;
a0da8069
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 441 mandir=$ac_optarg ;;
a0da8069
NN
442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 448 | --no-cr | --no-c | -n)
a0da8069
NN
449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 462 oldincludedir=$ac_optarg ;;
a0da8069
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 467 prefix=$ac_optarg ;;
a0da8069
NN
468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 474 program_prefix=$ac_optarg ;;
a0da8069
NN
475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 481 program_suffix=$ac_optarg ;;
a0da8069
NN
482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 498 program_transform_name=$ac_optarg ;;
a0da8069
NN
499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
c6b750e1 508 sbindir=$ac_optarg ;;
a0da8069
NN
509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
c6b750e1 519 sharedstatedir=$ac_optarg ;;
a0da8069
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
c6b750e1 524 site=$ac_optarg ;;
a0da8069
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 529 srcdir=$ac_optarg ;;
a0da8069
NN
530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 536 sysconfdir=$ac_optarg ;;
a0da8069
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 539 ac_prev=target_alias ;;
a0da8069 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 541 target_alias=$ac_optarg ;;
a0da8069
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
c6b750e1
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
a0da8069
NN
548
549 -with-* | --with-*)
c6b750e1 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 551 # Reject names that are not valid shell variable names.
c6b750e1
DJ
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
a0da8069 555 ac_package=`echo $ac_package| sed 's/-/_/g'`
c6b750e1
DJ
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
558 *) ac_optarg=yes ;;
559 esac
c6b750e1 560 eval "with_$ac_package='$ac_optarg'" ;;
a0da8069
NN
561
562 -without-* | --without-*)
c6b750e1 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 564 # Reject names that are not valid shell variable names.
c6b750e1
DJ
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
a0da8069
NN
570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 580 x_includes=$ac_optarg ;;
a0da8069
NN
581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 587 x_libraries=$ac_optarg ;;
a0da8069 588
c6b750e1
DJ
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
a0da8069
NN
592 ;;
593
c6b750e1
DJ
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
603
a0da8069 604 *)
c6b750e1
DJ
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
c6b750e1
DJ
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
a0da8069 619fi
a0da8069 620
c6b750e1
DJ
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
623do
624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630done
a0da8069 631
c6b750e1
DJ
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
a0da8069 635do
c6b750e1
DJ
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
a0da8069
NN
641 esac
642done
643
c6b750e1
DJ
644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
376a0e54 650
c6b750e1
DJ
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
a0da8069 666
a0da8069
NN
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
c6b750e1
DJ
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
a0da8069
NN
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
c6b750e1
DJ
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
a0da8069 695 else
c6b750e1
DJ
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
698 fi
699fi
700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
9cc8ae67
PB
716ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
717
c6b750e1
DJ
718ac_env_CC_set=${CC+set}
719ac_env_CC_value=$CC
720ac_cv_env_CC_set=${CC+set}
721ac_cv_env_CC_value=$CC
722ac_env_CFLAGS_set=${CFLAGS+set}
723ac_env_CFLAGS_value=$CFLAGS
724ac_cv_env_CFLAGS_set=${CFLAGS+set}
725ac_cv_env_CFLAGS_value=$CFLAGS
726ac_env_LDFLAGS_set=${LDFLAGS+set}
727ac_env_LDFLAGS_value=$LDFLAGS
728ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
729ac_cv_env_LDFLAGS_value=$LDFLAGS
730ac_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_env_CPPFLAGS_value=$CPPFLAGS
732ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
733ac_cv_env_CPPFLAGS_value=$CPPFLAGS
18f6b6ee
PB
734ac_env_CXX_set=${CXX+set}
735ac_env_CXX_value=$CXX
736ac_cv_env_CXX_set=${CXX+set}
737ac_cv_env_CXX_value=$CXX
738ac_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_env_CXXFLAGS_value=$CXXFLAGS
740ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
741ac_cv_env_CXXFLAGS_value=$CXXFLAGS
9a819804
AO
742ac_env_AR_set=${AR+set}
743ac_env_AR_value=$AR
744ac_cv_env_AR_set=${AR+set}
745ac_cv_env_AR_value=$AR
746ac_env_AS_set=${AS+set}
747ac_env_AS_value=$AS
748ac_cv_env_AS_set=${AS+set}
749ac_cv_env_AS_value=$AS
750ac_env_DLLTOOL_set=${DLLTOOL+set}
751ac_env_DLLTOOL_value=$DLLTOOL
752ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
753ac_cv_env_DLLTOOL_value=$DLLTOOL
754ac_env_LD_set=${LD+set}
755ac_env_LD_value=$LD
756ac_cv_env_LD_set=${LD+set}
757ac_cv_env_LD_value=$LD
758ac_env_LIPO_set=${LIPO+set}
759ac_env_LIPO_value=$LIPO
760ac_cv_env_LIPO_set=${LIPO+set}
761ac_cv_env_LIPO_value=$LIPO
762ac_env_NM_set=${NM+set}
763ac_env_NM_value=$NM
764ac_cv_env_NM_set=${NM+set}
765ac_cv_env_NM_value=$NM
766ac_env_RANLIB_set=${RANLIB+set}
767ac_env_RANLIB_value=$RANLIB
768ac_cv_env_RANLIB_set=${RANLIB+set}
769ac_cv_env_RANLIB_value=$RANLIB
770ac_env_STRIP_set=${STRIP+set}
771ac_env_STRIP_value=$STRIP
772ac_cv_env_STRIP_set=${STRIP+set}
773ac_cv_env_STRIP_value=$STRIP
774ac_env_WINDRES_set=${WINDRES+set}
775ac_env_WINDRES_value=$WINDRES
776ac_cv_env_WINDRES_set=${WINDRES+set}
777ac_cv_env_WINDRES_value=$WINDRES
0c24b341
NC
778ac_env_WINDMC_set=${WINDMC+set}
779ac_env_WINDMC_value=$WINDMC
780ac_cv_env_WINDMC_set=${WINDMC+set}
781ac_cv_env_WINDMC_value=$WINDMC
9a819804
AO
782ac_env_OBJCOPY_set=${OBJCOPY+set}
783ac_env_OBJCOPY_value=$OBJCOPY
784ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
785ac_cv_env_OBJCOPY_value=$OBJCOPY
786ac_env_OBJDUMP_set=${OBJDUMP+set}
787ac_env_OBJDUMP_value=$OBJDUMP
788ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
789ac_cv_env_OBJDUMP_value=$OBJDUMP
790ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
791ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
792ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
793ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
794ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
795ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
796ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
797ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
798ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
799ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
800ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
801ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
802ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
803ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
804ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
805ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
806ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
807ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
808ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
809ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
810ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
811ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
812ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
813ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
814ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
815ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
816ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
817ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
818ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
819ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
820ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
821ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
822ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
823ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
824ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
825ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
826ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
827ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
828ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
829ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
830ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
831ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
832ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
833ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
834ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
835ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
836ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
837ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
838ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
839ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
840ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
841ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
842ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
843ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
844ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
845ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
846ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
847ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
848ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
849ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
0c24b341
NC
850ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
851ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
852ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
853ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
c6b750e1
DJ
854
855#
856# Report the --help message.
857#
858if test "$ac_init_help" = "long"; then
859 # Omit some internal or obsolete options to make the list less imposing.
860 # This message is too long to be a string in the A/UX 3.1 sh.
861 cat <<_ACEOF
862\`configure' configures this package to adapt to many kinds of systems.
863
864Usage: $0 [OPTION]... [VAR=VALUE]...
865
866To assign environment variables (e.g., CC, CFLAGS...), specify them as
867VAR=VALUE. See below for descriptions of some of the useful variables.
868
869Defaults for the options are specified in brackets.
870
871Configuration:
872 -h, --help display this help and exit
873 --help=short display options specific to this package
874 --help=recursive display the short help of all the included packages
875 -V, --version display version information and exit
876 -q, --quiet, --silent do not print \`checking...' messages
877 --cache-file=FILE cache test results in FILE [disabled]
878 -C, --config-cache alias for \`--cache-file=config.cache'
879 -n, --no-create do not create output files
880 --srcdir=DIR find the sources in DIR [configure dir or \`..']
881
882_ACEOF
883
884 cat <<_ACEOF
885Installation directories:
886 --prefix=PREFIX install architecture-independent files in PREFIX
887 [$ac_default_prefix]
888 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
889 [PREFIX]
890
891By default, \`make install' will install all the files in
892\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
893an installation prefix other than \`$ac_default_prefix' using \`--prefix',
894for instance \`--prefix=\$HOME'.
895
896For better control, use the options below.
897
898Fine tuning of the installation directories:
899 --bindir=DIR user executables [EPREFIX/bin]
900 --sbindir=DIR system admin executables [EPREFIX/sbin]
901 --libexecdir=DIR program executables [EPREFIX/libexec]
902 --datadir=DIR read-only architecture-independent data [PREFIX/share]
903 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
904 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
905 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
906 --libdir=DIR object code libraries [EPREFIX/lib]
907 --includedir=DIR C header files [PREFIX/include]
908 --oldincludedir=DIR C header files for non-gcc [/usr/include]
909 --infodir=DIR info documentation [PREFIX/info]
910 --mandir=DIR man documentation [PREFIX/man]
911_ACEOF
912
913 cat <<\_ACEOF
914
915Program names:
916 --program-prefix=PREFIX prepend PREFIX to installed program names
917 --program-suffix=SUFFIX append SUFFIX to installed program names
918 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
919
920System types:
921 --build=BUILD configure for building on BUILD [guessed]
922 --host=HOST cross-compile to build programs to run on HOST [BUILD]
923 --target=TARGET configure for building compilers for TARGET [HOST]
924_ACEOF
a0da8069 925fi
a0da8069 926
c6b750e1
DJ
927if test -n "$ac_init_help"; then
928
929 cat <<\_ACEOF
930
931Optional Features:
932 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
933 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
93f9b408 934 --enable-gold use gold instead of ld
521ec477
DD
935 --enable-libada build libada directory
936 --enable-libssp build libssp directory
937 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 938 stage1. Mostly useful for compiler development.
521ec477
DD
939 --enable-objc-gc enable use of Boehm's garbage collector with the
940 GNU Objective-C runtime
941 --enable-bootstrap enable bootstrapping [yes if native build]
942 --enable-serial-[{host,target,build}-]configure
943 force sequential configuration of
c6b750e1 944 sub-packages for the host, target or build
521ec477 945 machine, or all sub-packages
c6b750e1
DJ
946 --enable-maintainer-mode enable make rules and dependencies not useful
947 (and sometimes confusing) to the casual installer
521ec477
DD
948 --enable-stage1-checking[=all] choose additional checking for stage1
949 of the compiler
c6b750e1
DJ
950 --enable-werror enable -Werror in bootstrap stage2 and later
951
952Optional Packages:
953 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
954 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
955 --with-build-libsubdir=DIR Directory where to find libraries for build system
521ec477
DD
956 --with-mpfr-dir=PATH this option has been REMOVED
957 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
958 Equivalent to --with-mpfr-include=PATH/include
959 plus --with-mpfr-lib=PATH/lib
960 --with-mpfr-include=PATH
521ec477
DD
961 specify directory for installed MPFR include files
962 --with-mpfr-lib=PATH specify directory for the installed MPFR library
963 --with-gmp-dir=PATH this option has been REMOVED
964 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
965 Equivalent to --with-gmp-include=PATH/include
966 plus --with-gmp-lib=PATH/lib
521ec477
DD
967 --with-gmp-include=PATH specify directory for installed GMP include files
968 --with-gmp-lib=PATH specify directory for the installed GMP library
969 --with-build-sysroot=SYSROOT
c6b750e1 970 use sysroot as the system root during the build
8a6ee3ab
JM
971 --with-debug-prefix-map='A=B C=D ...'
972 map A to B, C to D ... in debug information
521ec477 973 --with-build-time-tools=PATH
c6b750e1 974 use given path to find target tools during the build
521ec477
DD
975 --with-datarootdir use datarootdir as the data root directory.
976 --with-docdir install documentation in this directory.
977 --with-pdfdir install pdf in this directory.
978 --with-htmldir install html in this directory.
c6b750e1
DJ
979
980Some influential environment variables:
981 CC C compiler command
982 CFLAGS C compiler flags
983 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
984 nonstandard directory <lib dir>
985 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
986 headers in a nonstandard directory <include dir>
18f6b6ee
PB
987 CXX C++ compiler command
988 CXXFLAGS C++ compiler flags
9a819804
AO
989 AR AR for the host
990 AS AS for the host
991 DLLTOOL DLLTOOL for the host
992 LD LD for the host
993 LIPO LIPO for the host
994 NM NM for the host
995 RANLIB RANLIB for the host
996 STRIP STRIP for the host
997 WINDRES WINDRES for the host
0c24b341 998 WINDMC WINDMC for the host
9a819804
AO
999 OBJCOPY OBJCOPY for the host
1000 OBJDUMP OBJDUMP for the host
1001 CC_FOR_TARGET
1002 CC for the target
1003 CXX_FOR_TARGET
1004 CXX for the target
1005 GCC_FOR_TARGET
1006 GCC for the target
1007 GCJ_FOR_TARGET
1008 GCJ for the target
1009 GFORTRAN_FOR_TARGET
1010 GFORTRAN for the target
1011 AR_FOR_TARGET
1012 AR for the target
1013 AS_FOR_TARGET
1014 AS for the target
1015 DLLTOOL_FOR_TARGET
1016 DLLTOOL for the target
1017 LD_FOR_TARGET
1018 LD for the target
1019 LIPO_FOR_TARGET
1020 LIPO for the target
1021 NM_FOR_TARGET
1022 NM for the target
1023 OBJDUMP_FOR_TARGET
1024 OBJDUMP for the target
1025 RANLIB_FOR_TARGET
1026 RANLIB for the target
1027 STRIP_FOR_TARGET
1028 STRIP for the target
1029 WINDRES_FOR_TARGET
1030 WINDRES for the target
0c24b341
NC
1031 WINDMC_FOR_TARGET
1032 WINDMC for the target
c6b750e1
DJ
1033
1034Use these variables to override the choices made by `configure' or to help
1035it to find libraries and programs with nonstandard names/locations.
1036
1037_ACEOF
1038fi
1039
1040if test "$ac_init_help" = "recursive"; then
1041 # If there are subdirs, report their specific --help.
1042 ac_popdir=`pwd`
1043 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1044 test -d $ac_dir || continue
1045 ac_builddir=.
1046
1047if test "$ac_dir" != .; then
1048 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1049 # A "../" for each directory in $ac_dir_suffix.
1050 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1051else
1052 ac_dir_suffix= ac_top_builddir=
1053fi
1054
1055case $srcdir in
1056 .) # No --srcdir option. We are building in place.
1057 ac_srcdir=.
1058 if test -z "$ac_top_builddir"; then
1059 ac_top_srcdir=.
1060 else
1061 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1062 fi ;;
1063 [\\/]* | ?:[\\/]* ) # Absolute path.
1064 ac_srcdir=$srcdir$ac_dir_suffix;
1065 ac_top_srcdir=$srcdir ;;
1066 *) # Relative path.
1067 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1068 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1069esac
1070
1071# Do not use `cd foo && pwd` to compute absolute paths, because
1072# the directories may not exist.
1073case `pwd` in
1074.) ac_abs_builddir="$ac_dir";;
1075*)
1076 case "$ac_dir" in
1077 .) ac_abs_builddir=`pwd`;;
1078 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1079 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1080 esac;;
1081esac
1082case $ac_abs_builddir in
1083.) ac_abs_top_builddir=${ac_top_builddir}.;;
1084*)
1085 case ${ac_top_builddir}. in
1086 .) ac_abs_top_builddir=$ac_abs_builddir;;
1087 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1088 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1089 esac;;
1090esac
1091case $ac_abs_builddir in
1092.) ac_abs_srcdir=$ac_srcdir;;
1093*)
1094 case $ac_srcdir in
1095 .) ac_abs_srcdir=$ac_abs_builddir;;
1096 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1097 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1098 esac;;
1099esac
1100case $ac_abs_builddir in
1101.) ac_abs_top_srcdir=$ac_top_srcdir;;
1102*)
1103 case $ac_top_srcdir in
1104 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1105 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1106 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1107 esac;;
1108esac
1109
1110 cd $ac_dir
1111 # Check for guested configure; otherwise get Cygnus style configure.
1112 if test -f $ac_srcdir/configure.gnu; then
1113 echo
1114 $SHELL $ac_srcdir/configure.gnu --help=recursive
1115 elif test -f $ac_srcdir/configure; then
1116 echo
1117 $SHELL $ac_srcdir/configure --help=recursive
1118 elif test -f $ac_srcdir/configure.ac ||
1119 test -f $ac_srcdir/configure.in; then
1120 echo
1121 $ac_configure --help
1122 else
1123 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1124 fi
1125 cd $ac_popdir
1126 done
1127fi
1128
1129test -n "$ac_init_help" && exit 0
1130if $ac_init_version; then
1131 cat <<\_ACEOF
1132
1133Copyright (C) 2003 Free Software Foundation, Inc.
1134This configure script is free software; the Free Software Foundation
1135gives unlimited permission to copy, distribute and modify it.
1136_ACEOF
1137 exit 0
1138fi
1139exec 5>config.log
1140cat >&5 <<_ACEOF
1141This file contains any messages produced by compilers while
1142running configure, to aid debugging if configure makes a mistake.
1143
1144It was created by $as_me, which was
1145generated by GNU Autoconf 2.59. Invocation command line was
1146
1147 $ $0 $@
1148
1149_ACEOF
1150{
1151cat <<_ASUNAME
1152## --------- ##
1153## Platform. ##
1154## --------- ##
1155
1156hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1157uname -m = `(uname -m) 2>/dev/null || echo unknown`
1158uname -r = `(uname -r) 2>/dev/null || echo unknown`
1159uname -s = `(uname -s) 2>/dev/null || echo unknown`
1160uname -v = `(uname -v) 2>/dev/null || echo unknown`
1161
1162/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1163/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1164
1165/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1166/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1167/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1168hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1169/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1170/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1171/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1172
1173_ASUNAME
1174
1175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1176for as_dir in $PATH
1177do
1178 IFS=$as_save_IFS
1179 test -z "$as_dir" && as_dir=.
1180 echo "PATH: $as_dir"
1181done
1182
1183} >&5
1184
1185cat >&5 <<_ACEOF
1186
1187
1188## ----------- ##
1189## Core tests. ##
1190## ----------- ##
1191
1192_ACEOF
1193
1194
1195# Keep a trace of the command line.
1196# Strip out --no-create and --no-recursion so they do not pile up.
1197# Strip out --silent because we don't want to record it for future runs.
1198# Also quote any args containing shell meta-characters.
1199# Make two passes to allow for proper duplicate-argument suppression.
1200ac_configure_args=
1201ac_configure_args0=
1202ac_configure_args1=
1203ac_sep=
1204ac_must_keep_next=false
1205for ac_pass in 1 2
1206do
1207 for ac_arg
1208 do
1209 case $ac_arg in
1210 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1212 | -silent | --silent | --silen | --sile | --sil)
1213 continue ;;
1214 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1215 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1216 esac
1217 case $ac_pass in
1218 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1219 2)
1220 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1221 if test $ac_must_keep_next = true; then
1222 ac_must_keep_next=false # Got value, back to normal.
1223 else
1224 case $ac_arg in
1225 *=* | --config-cache | -C | -disable-* | --disable-* \
1226 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1227 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1228 | -with-* | --with-* | -without-* | --without-* | --x)
1229 case "$ac_configure_args0 " in
1230 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1231 esac
1232 ;;
1233 -* ) ac_must_keep_next=true ;;
1234 esac
1235 fi
1236 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1237 # Get rid of the leading space.
1238 ac_sep=" "
1239 ;;
1240 esac
1241 done
1242done
1243$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1244$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1245
1246# When interrupted or exit'd, cleanup temporary files, and complete
1247# config.log. We remove comments because anyway the quotes in there
1248# would cause problems or look ugly.
1249# WARNING: Be sure not to use single quotes in there, as some shells,
1250# such as our DU 5.0 friend, will then `close' the trap.
1251trap 'exit_status=$?
1252 # Save into config.log some information that might help in debugging.
1253 {
1254 echo
1255
1256 cat <<\_ASBOX
1257## ---------------- ##
1258## Cache variables. ##
1259## ---------------- ##
1260_ASBOX
1261 echo
1262 # The following way of writing the cache mishandles newlines in values,
1263{
1264 (set) 2>&1 |
1265 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1266 *ac_space=\ *)
1267 sed -n \
1268 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1270 ;;
1271 *)
1272 sed -n \
1273 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1274 ;;
1275 esac;
1276}
1277 echo
1278
1279 cat <<\_ASBOX
1280## ----------------- ##
1281## Output variables. ##
1282## ----------------- ##
1283_ASBOX
1284 echo
1285 for ac_var in $ac_subst_vars
1286 do
1287 eval ac_val=$`echo $ac_var`
1288 echo "$ac_var='"'"'$ac_val'"'"'"
1289 done | sort
1290 echo
1291
1292 if test -n "$ac_subst_files"; then
1293 cat <<\_ASBOX
1294## ------------- ##
1295## Output files. ##
1296## ------------- ##
1297_ASBOX
1298 echo
1299 for ac_var in $ac_subst_files
1300 do
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1303 done | sort
1304 echo
1305 fi
1306
1307 if test -s confdefs.h; then
1308 cat <<\_ASBOX
1309## ----------- ##
1310## confdefs.h. ##
1311## ----------- ##
1312_ASBOX
1313 echo
1314 sed "/^$/d" confdefs.h | sort
1315 echo
1316 fi
1317 test "$ac_signal" != 0 &&
1318 echo "$as_me: caught signal $ac_signal"
1319 echo "$as_me: exit $exit_status"
1320 } >&5
1321 rm -f core *.core &&
1322 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1323 exit $exit_status
1324 ' 0
1325for ac_signal in 1 2 13 15; do
1326 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1327done
1328ac_signal=0
1329
1330# confdefs.h avoids OS command line length limits that DEFS can exceed.
1331rm -rf conftest* confdefs.h
1332# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1333echo >confdefs.h
1334
1335# Predefined preprocessor variables.
1336
1337cat >>confdefs.h <<_ACEOF
1338#define PACKAGE_NAME "$PACKAGE_NAME"
1339_ACEOF
1340
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_VERSION "$PACKAGE_VERSION"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_STRING "$PACKAGE_STRING"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1359_ACEOF
1360
1361
1362# Let the site file select an alternate cache file if it wants to.
a0da8069 1363# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1364if test -z "$CONFIG_SITE"; then
1365 if test "x$prefix" != xNONE; then
1366 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1367 else
1368 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1369 fi
1370fi
1371for ac_site_file in $CONFIG_SITE; do
1372 if test -r "$ac_site_file"; then
c6b750e1
DJ
1373 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1374echo "$as_me: loading site script $ac_site_file" >&6;}
1375 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1376 . "$ac_site_file"
1377 fi
1378done
1379
1380if test -r "$cache_file"; then
c6b750e1
DJ
1381 # Some versions of bash will fail to source /dev/null (special
1382 # files actually), so we avoid doing that.
1383 if test -f "$cache_file"; then
1384 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1385echo "$as_me: loading cache $cache_file" >&6;}
1386 case $cache_file in
1387 [\\/]* | ?:[\\/]* ) . $cache_file;;
1388 *) . ./$cache_file;;
1389 esac
1390 fi
a0da8069 1391else
c6b750e1
DJ
1392 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1393echo "$as_me: creating cache $cache_file" >&6;}
1394 >$cache_file
1395fi
1396
1397# Check that the precious variables saved in the cache have kept the same
1398# value.
1399ac_cache_corrupted=false
1400for ac_var in `(set) 2>&1 |
1401 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1402 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1403 eval ac_new_set=\$ac_env_${ac_var}_set
1404 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1405 eval ac_new_val="\$ac_env_${ac_var}_value"
1406 case $ac_old_set,$ac_new_set in
1407 set,)
1408 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1409echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1410 ac_cache_corrupted=: ;;
1411 ,set)
1412 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1413echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1414 ac_cache_corrupted=: ;;
1415 ,);;
1416 *)
1417 if test "x$ac_old_val" != "x$ac_new_val"; then
1418 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1419echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1420 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1421echo "$as_me: former value: $ac_old_val" >&2;}
1422 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1423echo "$as_me: current value: $ac_new_val" >&2;}
1424 ac_cache_corrupted=:
1425 fi;;
1426 esac
1427 # Pass precious variables to config.status.
1428 if test "$ac_new_set" = set; then
1429 case $ac_new_val in
1430 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1431 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1432 *) ac_arg=$ac_var=$ac_new_val ;;
1433 esac
1434 case " $ac_configure_args " in
1435 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1436 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1437 esac
1438 fi
1439done
1440if $ac_cache_corrupted; then
1441 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1442echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1443 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1444echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1445 { (exit 1); exit 1; }; }
a0da8069
NN
1446fi
1447
1448ac_ext=c
a0da8069 1449ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1452ac_compiler_gnu=$ac_cv_c_compiler_gnu
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
a0da8069
NN
1466
1467
75778ec4 1468
c6b750e1
DJ
1469
1470
1471
1472
1473
1474# Find the build, host, and target systems.
a0da8069 1475ac_aux_dir=
315b3b02 1476for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1477 if test -f $ac_dir/install-sh; then
1478 ac_aux_dir=$ac_dir
1479 ac_install_sh="$ac_aux_dir/install-sh -c"
1480 break
1481 elif test -f $ac_dir/install.sh; then
1482 ac_aux_dir=$ac_dir
1483 ac_install_sh="$ac_aux_dir/install.sh -c"
1484 break
c6b750e1
DJ
1485 elif test -f $ac_dir/shtool; then
1486 ac_aux_dir=$ac_dir
1487 ac_install_sh="$ac_aux_dir/shtool install -c"
1488 break
a0da8069
NN
1489 fi
1490done
1491if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1492 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1493echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1494 { (exit 1); exit 1; }; }
a0da8069 1495fi
c6b750e1
DJ
1496ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1497ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1498ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1499
c6b750e1
DJ
1500# Make sure we can run config.sub.
1501$ac_config_sub sun4 >/dev/null 2>&1 ||
1502 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1503echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1504 { (exit 1); exit 1; }; }
1505
1506echo "$as_me:$LINENO: checking build system type" >&5
1507echo $ECHO_N "checking build system type... $ECHO_C" >&6
1508if test "${ac_cv_build+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510else
1511 ac_cv_build_alias=$build_alias
1512test -z "$ac_cv_build_alias" &&
1513 ac_cv_build_alias=`$ac_config_guess`
1514test -z "$ac_cv_build_alias" &&
1515 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1516echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1517 { (exit 1); exit 1; }; }
1518ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1519 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1520echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1521 { (exit 1); exit 1; }; }
1522
1523fi
1524echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1525echo "${ECHO_T}$ac_cv_build" >&6
1526build=$ac_cv_build
1527build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1528build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1529build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1530
a0da8069 1531
c6b750e1
DJ
1532 case ${build_alias} in
1533 "") build_noncanonical=${build} ;;
1534 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1535esac
1536
1537
cac3d6c4 1538
c6b750e1
DJ
1539 case ${host_alias} in
1540 "") host_noncanonical=${build_noncanonical} ;;
1541 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1542esac
1543
cac3d6c4 1544
c6b750e1
DJ
1545
1546 case ${target_alias} in
1547 "") target_noncanonical=${host_noncanonical} ;;
1548 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1549esac
1550
cac3d6c4 1551
c6b750e1
DJ
1552
1553
1554test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1555 test "$program_prefix$program_suffix$program_transform_name" = \
1556 NONENONEs,x,x, &&
c6b750e1 1557 program_transform_name=s,y,y,
cac3d6c4 1558
c6b750e1
DJ
1559echo "$as_me:$LINENO: checking host system type" >&5
1560echo $ECHO_N "checking host system type... $ECHO_C" >&6
1561if test "${ac_cv_host+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1563else
c6b750e1
DJ
1564 ac_cv_host_alias=$host_alias
1565test -z "$ac_cv_host_alias" &&
1566 ac_cv_host_alias=$ac_cv_build_alias
1567ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1568 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1569echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1570 { (exit 1); exit 1; }; }
1571
1572fi
1573echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1574echo "${ECHO_T}$ac_cv_host" >&6
1575host=$ac_cv_host
1576host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1579
1580
1581echo "$as_me:$LINENO: checking target system type" >&5
1582echo $ECHO_N "checking target system type... $ECHO_C" >&6
1583if test "${ac_cv_target+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585else
1586 ac_cv_target_alias=$target_alias
1587test "x$ac_cv_target_alias" = "x" &&
1588 ac_cv_target_alias=$ac_cv_host_alias
1589ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1590 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1591echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1592 { (exit 1); exit 1; }; }
1593
cac3d6c4 1594fi
c6b750e1
DJ
1595echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1596echo "${ECHO_T}$ac_cv_target" >&6
1597target=$ac_cv_target
1598target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601
1602
1603# The aliases save the names the user supplied, while $host etc.
1604# will get canonicalized.
1605test -n "$target_alias" &&
1606 test "$program_prefix$program_suffix$program_transform_name" = \
1607 NONENONEs,x,x, &&
1608 program_prefix=${target_alias}-
a0da8069 1609test "$program_prefix" != NONE &&
c6b750e1 1610 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1611# Use a double $ so make ignores it.
1612test "$program_suffix" != NONE &&
c6b750e1
DJ
1613 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1614# Double any \ or $. echo might interpret backslashes.
1615# By default was `s,x,x', remove it if useless.
1616cat <<\_ACEOF >conftest.sed
1617s/[\\$]/&&/g;s/;s,x,x,$//
1618_ACEOF
1619program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1620rm conftest.sed
cac3d6c4 1621
a0da8069
NN
1622
1623
e5c3f801
NN
1624# Get 'install' or 'install-sh' and its variants.
1625# Find a good install program. We prefer a C program (faster),
1626# so one script is as good as another. But avoid the broken or
1627# incompatible versions:
1628# SysV /etc/install, /usr/sbin/install
1629# SunOS /usr/etc/install
1630# IRIX /sbin/install
1631# AIX /bin/install
c6b750e1 1632# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1633# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1634# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1635# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1636# OS/2's system install, which has a completely different semantic
e5c3f801 1637# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 1638# Reject install programs that cannot install multiple files.
c6b750e1
DJ
1639echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1640echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1641if test -z "$INSTALL"; then
c6b750e1
DJ
1642if test "${ac_cv_path_install+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1644else
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646for as_dir in $PATH
1647do
1648 IFS=$as_save_IFS
1649 test -z "$as_dir" && as_dir=.
1650 # Account for people who put trailing slashes in PATH elements.
1651case $as_dir/ in
1652 ./ | .// | /cC/* | \
1653 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1654 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1655 /usr/ucb/* ) ;;
1656 *)
1657 # OSF1 and SCO ODT 3.0 have their own names for install.
1658 # Don't use installbsd from OSF since it installs stuff as root
1659 # by default.
1660 for ac_prog in ginstall scoinst install; do
1661 for ac_exec_ext in '' $ac_executable_extensions; do
1662 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1663 if test $ac_prog = install &&
c6b750e1 1664 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1665 # AIX install. It has an incompatible calling convention.
1666 :
c6b750e1
DJ
1667 elif test $ac_prog = install &&
1668 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1669 # program-specific install script used by HP pwplus--don't use.
1670 :
e5c3f801 1671 else
58c85be7
RW
1672 rm -rf conftest.one conftest.two conftest.dir
1673 echo one > conftest.one
1674 echo two > conftest.two
1675 mkdir conftest.dir
1676 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1677 test -s conftest.one && test -s conftest.two &&
1678 test -s conftest.dir/conftest.one &&
1679 test -s conftest.dir/conftest.two
1680 then
1681 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1682 break 3
1683 fi
e5c3f801
NN
1684 fi
1685 fi
1686 done
c6b750e1
DJ
1687 done
1688 ;;
1689esac
1690done
1691
58c85be7 1692rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
1693
1694fi
1695 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1696 INSTALL=$ac_cv_path_install
e5c3f801 1697 else
58c85be7
RW
1698 # As a last resort, use the slow shell script. Don't cache a
1699 # value for INSTALL within a source directory, because that will
e5c3f801 1700 # break other packages using the cache if that directory is
58c85be7 1701 # removed, or if the value is a relative name.
c6b750e1 1702 INSTALL=$ac_install_sh
e5c3f801
NN
1703 fi
1704fi
c6b750e1
DJ
1705echo "$as_me:$LINENO: result: $INSTALL" >&5
1706echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1707
1708# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1709# It thinks the first close brace ends the variable substitution.
1710test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1711
c6b750e1 1712test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1713
1714test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1715
c6b750e1
DJ
1716echo "$as_me:$LINENO: checking whether ln works" >&5
1717echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1718if test "${acx_cv_prog_LN+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1720else
1721 rm -f conftestdata_t
1722echo >conftestdata_f
1723if ln conftestdata_f conftestdata_t 2>/dev/null
1724then
1725 acx_cv_prog_LN=ln
1726else
1727 acx_cv_prog_LN=no
1728fi
1729rm -f conftestdata_f conftestdata_t
1730
1731fi
1732if test $acx_cv_prog_LN = no; then
1733 LN="cp"
c6b750e1
DJ
1734 echo "$as_me:$LINENO: result: no, using $LN" >&5
1735echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1736else
1737 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1738 echo "$as_me:$LINENO: result: yes" >&5
1739echo "${ECHO_T}yes" >&6
656fdd47
PB
1740fi
1741
c6b750e1
DJ
1742echo "$as_me:$LINENO: checking whether ln -s works" >&5
1743echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1744LN_S=$as_ln_s
1745if test "$LN_S" = "ln -s"; then
1746 echo "$as_me:$LINENO: result: yes" >&5
1747echo "${ECHO_T}yes" >&6
cac3d6c4 1748else
c6b750e1
DJ
1749 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1750echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1751fi
1752
e5c3f801 1753
252b5132 1754### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1755### If we are on Windows, search for the shell. This will permit people
1756### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1757### without also having to set CONFIG_SHELL. This code will work when
1758### using bash, which sets OSTYPE.
1759case "${OSTYPE}" in
1760*win32*)
a0da8069
NN
1761 if test x${CONFIG_SHELL} = x ; then
1762 if test ! -f /bin/sh ; then
1763 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1764 CONFIG_SHELL=${SHELL}
1765 export CONFIG_SHELL
1766 else
1767 for prog in sh sh.exe bash bash.exe; do
1768 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1769 for dir in $PATH; do
1770 test -z "$dir" && dir=.
1771 if test -f $dir/$prog; then
1772 CONFIG_SHELL=$dir/$prog
1773 export CONFIG_SHELL
1774 break
1775 fi
1776 done
1777 IFS="$save_ifs"
1778 test -n "${CONFIG_SHELL}" && break
1779 done
1780 fi
1781 fi
1782 fi
1783 ;;
1784esac
1785
1786config_shell=${CONFIG_SHELL-/bin/sh}
1787
252b5132
RH
1788progname=$0
1789# if PWD already has a value, it is probably wrong.
a0da8069 1790if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
252b5132 1791
92f01d61
JM
1792# Export original configure arguments for use by sub-configures.
1793# Quote arguments with shell meta charatcers.
1794TOPLEVEL_CONFIGURE_ARGUMENTS=
1795set -- "$progname" "$@"
a4708fba
JM
1796for ac_arg
1797do
92f01d61 1798 case "$ac_arg" in
ffa8bd48 1799 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
92f01d61
JM
1800 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1801 # if the argument is of the form -foo=baz, quote the baz part only
1802 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1803 *) ;;
1804 esac
1805 # Add the quoted argument to the list.
1806 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1807done
2444379b
BE
1808if test "$silent" = yes; then
1809 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1810fi
92f01d61
JM
1811# Remove the initial space we just introduced and, as these will be
1812# expanded by make, quote '$'.
1813TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
586c0873 1814
75205f78 1815
a0da8069 1816moveifchange=${srcdir}/move-if-change
252b5132 1817
0fdbe983
DJ
1818srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1819
1820# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1821# a relative path.
1822if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1823 INSTALL="${srcpwd}/install-sh -c"
1824fi
1825
a0da8069
NN
1826# Set srcdir to "." if that's what it is.
1827# This is important for multilib support.
1828pwd=`${PWDCMD-pwd}`
a0da8069
NN
1829if test "${pwd}" = "${srcpwd}" ; then
1830 srcdir=.
252b5132
RH
1831fi
1832
a0da8069 1833topsrcdir=$srcpwd
252b5132 1834
a0da8069 1835extra_host_args=
afefada0 1836
a0da8069
NN
1837### To add a new directory to the tree, first choose whether it is a target
1838### or a host dependent tool. Then put it into the appropriate list
1839### (library or tools, host or target), doing a dependency sort.
252b5132 1840
c6b750e1 1841# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1842# configdirs, or target_configdirs; see the serialization section below.
252b5132 1843
c6b750e1
DJ
1844# Dependency sorting is only needed when *configuration* must be done in
1845# a particular order. In all cases a dependency should be specified in
a0da8069 1846# the Makefile, whether or not it's implicitly specified here.
252b5132 1847
a0da8069
NN
1848# Double entries in build_configdirs, configdirs, or target_configdirs may
1849# cause circular dependencies and break everything horribly.
252b5132 1850
6a9cf61e
PB
1851# these library is used by various programs built for the build
1852# environment
1853#
1854build_libs="build-libiberty"
1855
1856# these tools are built for the build environment
ee025550 1857build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1858
a0da8069
NN
1859# these libraries are used by various programs built for the host environment
1860#
4b900473 1861host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
a0da8069 1862
a0da8069
NN
1863# these tools are built for the host environment
1864# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1865# know that we are building the simulator.
1866# binutils, gas and ld appear in that order because it makes sense to run
1867# "make check" in that particular order.
93f9b408 1868# If --enable-gold is used, "gold" will replace "ld".
b00612cc 1869host_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
1870
1871# libgcj represents the runtime libraries only used by gcj.
1872libgcj="target-libffi \
a0da8069
NN
1873 target-zlib \
1874 target-qthreads \
1875 target-libjava"
1876
1877# these libraries are built for the target environment, and are built after
1878# the host libraries and the host tools (which may be a cross compiler)
1879#
b1299c4e
DJ
1880target_libraries="target-libgcc \
1881 target-libiberty \
a0da8069
NN
1882 target-libgloss \
1883 target-newlib \
cff87f51 1884 target-libgomp \
b9459e83 1885 target-libstdc++-v3 \
4b1cb4fe 1886 target-libmudflap \
bb780410 1887 target-libssp \
4b1cb4fe 1888 target-libgfortran \
4f0ef2d8 1889 target-boehm-gc \
83326456 1890 ${libgcj} \
a2592b1b 1891 target-libobjc \
cff87f51 1892 target-libada"
a0da8069 1893
9c14acb8
NN
1894# these tools are built using the target libraries, and are intended to
1895# run only in the target environment
a0da8069 1896#
9c14acb8 1897# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1898# list belongs in this list. those programs are also very likely
1899# candidates for the "native_only" list which follows
1900#
a3dd767d 1901target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1902
a0da8069 1903################################################################################
252b5132 1904
a0da8069
NN
1905## All tools belong in one of the four categories, and are assigned above
1906## We assign ${configdirs} this way to remove all embedded newlines. This
1907## is important because configure will choke if they ever get through.
1908## ${configdirs} is directories we build using the host tools.
1909## ${target_configdirs} is directories we build using the target tools.
a0da8069 1910configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1911target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1912build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1913
9cc8ae67
PB
1914
1915
a0da8069 1916################################################################################
252b5132 1917
a0da8069 1918srcname="gnu development package"
252b5132 1919
a0da8069
NN
1920# This gets set non-empty for some net releases of packages.
1921appdirs=""
252b5132 1922
a0da8069
NN
1923# Define is_cross_compiler to save on calls to 'test'.
1924is_cross_compiler=
1925if test x"${host}" = x"${target}" ; then
1926 is_cross_compiler=no
252b5132 1927else
a0da8069 1928 is_cross_compiler=yes
c6b750e1 1929fi
252b5132 1930
9175bfc0 1931# Find the build and target subdir names.
dd12c3a8 1932
66a79c16
DJ
1933# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1934# have matching libraries, they should use host libraries: Makefile.tpl
1935# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1936# However, they still use the build modules, because the corresponding
1937# host modules (e.g. bison) are only built for the host when bootstrap
1938# finishes. So:
1939# - build_subdir is where we find build modules, and never changes.
1940# - build_libsubdir is where we find build libraries, and can be overridden.
1941
1942# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1943build_subdir="build-${build_noncanonical}"
c6b750e1 1944
66a79c16
DJ
1945# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1946if test "${with_build_libsubdir+set}" = set; then
1947 withval="$with_build_libsubdir"
1948 build_libsubdir="$withval"
1949else
1950 build_libsubdir="$build_subdir"
c6b750e1 1951fi;
b00612cc
PB
1952# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1953if ( test $srcdir = . && test -d gcc ) \
1954 || test -d $srcdir/../host-${host_noncanonical}; then
1955 host_subdir="host-${host_noncanonical}"
1956else
1957 host_subdir=.
1958fi
dd12c3a8
NN
1959# No prefix.
1960target_subdir=${target_noncanonical}
c6b750e1 1961
252b5132 1962
a0da8069
NN
1963# Skipdirs are removed silently.
1964skipdirs=
1965# Noconfigdirs are removed loudly.
1966noconfigdirs=""
252b5132 1967
a0da8069
NN
1968use_gnu_ld=
1969# Make sure we don't let GNU ld be added if we didn't want it.
1970if test x$with_gnu_ld = xno ; then
1971 use_gnu_ld=no
93f9b408 1972 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
1973fi
1974
a0da8069
NN
1975use_gnu_as=
1976# Make sure we don't let GNU as be added if we didn't want it.
1977if test x$with_gnu_as = xno ; then
1978 use_gnu_as=no
1979 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1980fi
1981
c6b750e1 1982# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1983# it's not even worth trying to configure, much less build, that tool.
252b5132 1984
a0da8069
NN
1985case ${with_x} in
1986 yes | "") ;; # the default value for this tree is that X11 is available
1987 no)
675c6968 1988 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 1989 # We won't be able to build gdbtk without X.
c6b750e1 1990 enable_gdbtk=no
a0da8069
NN
1991 ;;
1992 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1993esac
252b5132 1994
a0da8069 1995# Some tools are only suitable for building in a "native" situation.
c6b750e1 1996# Remove these if host!=target.
701628f5 1997native_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 1998
a0da8069
NN
1999# Similarly, some are only suitable for cross toolchains.
2000# Remove these if host=target.
2001cross_only="target-libgloss target-newlib target-opcodes"
2002
2003case $is_cross_compiler in
2004 no) skipdirs="${skipdirs} ${cross_only}" ;;
2005 yes) skipdirs="${skipdirs} ${native_only}" ;;
2006esac
252b5132 2007
a0da8069
NN
2008# If both --with-headers and --with-libs are specified, default to
2009# --without-newlib.
32be62b5
RS
2010if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2011 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2012 if test x"${with_newlib}" = x ; then
2013 with_newlib=no
2014 fi
252b5132
RH
2015fi
2016
a0da8069
NN
2017# Recognize --with-newlib/--without-newlib.
2018case ${with_newlib} in
2019 no) skipdirs="${skipdirs} target-newlib" ;;
2020 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2021esac
252b5132 2022
93f9b408
ILT
2023# Handle --enable-gold.
2024
2025# Check whether --enable-gold or --disable-gold was given.
2026if test "${enable_gold+set}" = set; then
2027 enableval="$enable_gold"
2028 ENABLE_GOLD=$enableval
2029else
2030 ENABLE_GOLD=no
2031fi;
2032if test "${ENABLE_GOLD}" = "yes"; then
2033 # Check for ELF target.
2034 is_elf=no
2035 case "${target}" in
2036 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2037 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2038 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*)
2039 case "${target}" in
2040 *-*-linux*aout* | *-*-linux*oldld*)
2041 ;;
2042 *)
2043 is_elf=yes
2044 ;;
2045 esac
2046 esac
2047
2048 if test "$is_elf" = "yes"; then
2049 # Check for target supported by gold.
2050 case "${target}" in
f5314dd5 2051 i?86-*-* | x86_64-*-* | sparc*-*-*)
93f9b408
ILT
2052 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2053 ;;
2054 esac
2055 fi
2056fi
2057
a0da8069 2058# Configure extra directories which are host specific
252b5132 2059
a0da8069
NN
2060case "${host}" in
2061 *-cygwin*)
2062 configdirs="$configdirs libtermcap" ;;
2063esac
252b5132 2064
59f7ec45
HPN
2065# A target can indicate whether a language isn't supported for some reason.
2066# Only spaces may be used in this macro; not newlines or tabs.
2067unsupported_languages=
2068
c6b750e1 2069# Remove more programs from consideration, based on the host or
a0da8069
NN
2070# target this usually means that a port of the program doesn't
2071# exist yet.
252b5132 2072
a0da8069
NN
2073case "${host}" in
2074 hppa*64*-*-*)
2075 noconfigdirs="$noconfigdirs byacc"
2076 ;;
ec11bdc6 2077 i[3456789]86-*-vsta)
675c6968 2078 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2079 ;;
ec11bdc6 2080 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2081 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2082 ;;
2d1e8239
NC
2083 x86_64-*-mingw*)
2084 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2085 ;;
ec11bdc6 2086 i[3456789]86-*-mingw32*)
675c6968 2087 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2088 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2089 ;;
ec11bdc6 2090 i[3456789]86-*-beos*)
675c6968 2091 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2092 ;;
a0da8069 2093 *-*-cygwin*)
a92834c8 2094 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2095 ;;
2096 *-*-netbsd*)
a92834c8 2097 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2098 ;;
2099 ppc*-*-pe)
675c6968 2100 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2101 ;;
2102 powerpc-*-beos*)
675c6968 2103 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2104 ;;
a0da8069 2105esac
252b5132 2106
4b1cb4fe 2107
a2592b1b
DD
2108# Check whether --enable-libada or --disable-libada was given.
2109if test "${enable_libada+set}" = set; then
2110 enableval="$enable_libada"
2111 ENABLE_LIBADA=$enableval
2112else
2113 ENABLE_LIBADA=yes
c6b750e1 2114fi;
a2592b1b 2115if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2116 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2117fi
2118
5f128533
KH
2119# Check whether --enable-libssp or --disable-libssp was given.
2120if test "${enable_libssp+set}" = set; then
2121 enableval="$enable_libssp"
2122 ENABLE_LIBSSP=$enableval
2123else
2124 ENABLE_LIBSSP=yes
c6b750e1 2125fi;
5f128533 2126
a0da8069
NN
2127# Save it here so that, even in case of --enable-libgcj, if the Java
2128# front-end isn't enabled, we still get libgcj disabled.
2129libgcj_saved=$libgcj
2130case $enable_libgcj in
2131yes)
2132 # If we reset it here, it won't get added to noconfigdirs in the
2133 # target-specific build rules, so it will be forcibly enabled
2134 # (unless the Java language itself isn't enabled).
2135 libgcj=
2136 ;;
2137no)
2138 # Make sure we get it printed in the list of not supported target libs.
2139 noconfigdirs="$noconfigdirs ${libgcj}"
2140 ;;
2141esac
252b5132 2142
4b1cb4fe 2143
a6df5a19
PB
2144# Disable libmudflap on some systems.
2145if test x$enable_libmudflap = x ; then
3e707e94 2146 case "${target}" in
0ebe98fb 2147 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
3d6dfe0f 2148 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2149 ;;
2150 *-*-freebsd*)
2151 # Enable libmudflap by default in FreeBSD.
2152 ;;
2153 *)
2154 # Disable it by default everywhere else.
2155 noconfigdirs="$noconfigdirs target-libmudflap"
2156 ;;
2157 esac
a6df5a19 2158fi
4b1cb4fe 2159
a6df5a19
PB
2160# Disable libgomp on non POSIX hosted systems.
2161if test x$enable_libgomp = x ; then
b3ded179
PB
2162 # Enable libgomp by default on hosted POSIX systems.
2163 case "${target}" in
2164 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2165 ;;
2166 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2167 ;;
64ce424c 2168 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2169 ;;
2170 *-*-darwin* | *-*-aix*)
2171 ;;
2172 *)
2173 noconfigdirs="$noconfigdirs target-libgomp"
2174 ;;
2175 esac
a6df5a19 2176fi
b3ded179 2177
691bb5a1
DD
2178# Default libgloss CPU subdirectory.
2179libgloss_dir="$target_cpu"
4b1cb4fe 2180
a0da8069
NN
2181case "${target}" in
2182 *-*-chorusos)
54d1c879 2183 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2184 ;;
c9b68031 2185 powerpc-*-darwin* | i[3456789]86-*-darwin* | x86_64-*-darwin9*)
b3f16a9b 2186 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 2187 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2188 ;;
04d1ab34 2189 *-*-darwin*)
d320aacb 2190 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2191 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2192 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2193 ;;
a0da8069 2194 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2195 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2196 ;;
de0b4a87 2197 *-*-freebsd*)
4b1cb4fe
DD
2198 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2199 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2200 && test -f /usr/local/include/gmp.h; then
2201 with_gmp=/usr/local
2202 fi
2203
2204 # Skip some stuff that's unsupported on some FreeBSD configurations.
2205 case "${target}" in
2206 i*86-*-*) ;;
2207 alpha*-*-*) ;;
2208 *)
54d1c879 2209 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2210 ;;
2211 esac
2212 ;;
f8a495c8
NC
2213 *-*-kaos*)
2214 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2215 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2216 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2217 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2218 noconfigdirs="$noconfigdirs target-libgloss"
2219 ;;
a0da8069
NN
2220 *-*-netbsd*)
2221 # Skip some stuff on all NetBSD configurations.
2222 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2223
2224 # Skip some stuff that's unsupported on some NetBSD configurations.
2225 case "${target}" in
2226 i*86-*-netbsdelf*) ;;
5b474aa8 2227 arm*-*-netbsdelf*) ;;
a0da8069 2228 *)
54d1c879 2229 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2230 ;;
2231 esac
2232 ;;
2a3124ca 2233 *-*-netware*)
54d1c879 2234 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2235 ;;
2236 *-*-rtems*)
54d1c879 2237 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2238 ;;
1587117a
EC
2239 # The tpf target doesn't support gdb yet.
2240 *-*-tpf*)
54d1c879 2241 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2242 ;;
c1968181 2243 *-*-uclinux*)
54d1c879 2244 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2245 ;;
a0da8069 2246 *-*-vxworks*)
54d1c879 2247 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2248 ;;
2249 alpha*-dec-osf*)
2250 # ld works, but does not support shared libraries.
2251 # newlib is not 64 bit ready. I'm not sure about fileutils.
2252 # gas doesn't generate exception information.
2253 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2254 ;;
2255 alpha*-*-*vms*)
54d1c879 2256 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2257 ;;
2258 alpha*-*-linux*)
2259 # newlib is not 64 bit ready
2260 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2261 ;;
a0da8069
NN
2262 alpha*-*-*)
2263 # newlib is not 64 bit ready
54d1c879 2264 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2265 ;;
4a18bd6b 2266 am33_2.0-*-linux*)
54d1c879 2267 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2268 ;;
a0da8069 2269 sh-*-linux*)
54d1c879 2270 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2271 ;;
a0da8069 2272 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2273 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2274 noconfigdirs="$noconfigdirs target-examples"
2275 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2276 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2277 noconfigdirs="$noconfigdirs expect dejagnu"
2278 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2279 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2280 noconfigdirs="$noconfigdirs target-newlib"
2281 case "${host}" in
2282 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2283 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2284 ;;
2285 esac
691bb5a1 2286 libgloss_dir=wince
a0da8069
NN
2287 ;;
2288 arc-*-*)
54d1c879 2289 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2290 ;;
caeba88f 2291 arm-semi-aof )
caeba88f 2292 ;;
a0da8069 2293 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2294 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2295 libgloss_dir=arm
a0da8069 2296 ;;
11b04d1f 2297 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 2298 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 2299 libgloss_dir=arm
a0da8069 2300 ;;
bd70a46f 2301 arm*-*-linux-gnueabi)
6d18b86b
AH
2302 noconfigdirs="$noconfigdirs target-qthreads"
2303 noconfigdirs="$noconfigdirs target-libobjc"
a5b3b4dd
DD
2304 case ${with_newlib} in
2305 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2306 esac
691bb5a1 2307 libgloss_dir=arm
bd70a46f 2308 ;;
df4a6958 2309 arm*-*-symbianelf*)
54d1c879 2310 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 2311 libgloss_dir=arm
df4a6958 2312 ;;
a0da8069 2313 arm-*-pe*)
54d1c879 2314 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2315 ;;
a0da8069 2316 thumb-*-coff)
54d1c879 2317 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2318 ;;
2319 thumb-*-elf)
54d1c879 2320 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2321 ;;
a0da8069 2322 thumb-*-pe)
54d1c879 2323 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2324 ;;
2325 arm-*-riscix*)
54d1c879 2326 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2327 ;;
2328 avr-*-*)
54d1c879 2329 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2330 ;;
376a0e54 2331 bfin-*-*)
00d89675 2332 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2333 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2334 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2335 fi
2336 ;;
a0da8069 2337 c4x-*-* | tic4x-*-*)
54d1c879 2338 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2339 ;;
2340 c54x*-*-* | tic54x-*-*)
54d1c879 2341 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2342 ;;
52310858
NC
2343 cr16-*-*)
2344 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2345 ;;
c7e66c6d 2346 cris-*-* | crisv32-*-*)
59f7ec45 2347 unsupported_languages="$unsupported_languages java"
c7e66c6d 2348 case "${target}" in
2faa2958 2349 *-*-aout)
096f7d00 2350 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2351 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2352 *-*-elf)
5e818318 2353 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2354 *-*-linux*)
5e818318 2355 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2356 *)
096f7d00 2357 unsupported_languages="$unsupported_languages fortran"
54d1c879 2358 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2359 esac
691bb5a1 2360 libgloss_dir=cris
a0da8069 2361 ;;
3e707e94 2362 crx-*-*)
54d1c879 2363 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2364 ;;
a0da8069 2365 d10v-*-*)
54d1c879 2366 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2367 ;;
2368 d30v-*-*)
54d1c879 2369 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 2370 ;;
691bb5a1
DD
2371 ep9312-*-elf | ep9312-*-coff)
2372 libgloss_dir=arm
2373 ;;
a0da8069 2374 fr30-*-elf*)
54d1c879 2375 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2376 ;;
2377 frv-*-*)
54d1c879 2378 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2379 ;;
2380 h8300*-*-*)
54d1c879 2381 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2382 ;;
2383 h8500-*-*)
54d1c879 2384 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2385 ;;
caeba88f 2386 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2387 ;;
a0da8069
NN
2388 hppa*64*-*-linux* | parisc*64*-*-linux*)
2389 # In this case, it's because the hppa64-linux target is for
2390 # the kernel only at this point and has no libc, and thus no
2391 # headers, crt*.o, etc., all of which are needed by these.
2392 noconfigdirs="$noconfigdirs target-zlib"
2393 ;;
5dcac624
DA
2394 parisc*-*-linux* | hppa*-*-linux*)
2395 ;;
a0da8069 2396 hppa*-*-*elf* | \
a0da8069
NN
2397 hppa*-*-lites* | \
2398 hppa*-*-openbsd* | \
2399 hppa*64*-*-*)
54d1c879 2400 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2401 ;;
2402 hppa*-hp-hpux11*)
2403 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 2404 ;;
691bb5a1
DD
2405 hppa*-*-pro*)
2406 libgloss_dir=pa
2407 ;;
a0da8069
NN
2408 hppa*-*-*)
2409 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2410 # build on HP-UX 10.20.
54d1c879 2411 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2412 ;;
b07c2aad 2413 i960-*-*)
54d1c879 2414 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2415 ;;
a0da8069
NN
2416 ia64*-*-elf*)
2417 # No gdb support yet.
675c6968 2418 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2419 ;;
2420 ia64*-**-hpux*)
2421 # No gdb or ld support yet.
54d1c879 2422 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2423 ;;
caeba88f 2424 i370-*-opened*)
caeba88f 2425 ;;
ec11bdc6 2426 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2427 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2428 libgloss_dir=i386
a0da8069 2429 ;;
ec11bdc6 2430 i[3456789]86-*-linux*)
a0da8069
NN
2431 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2432 # not build java stuff by default.
2433 case "${target}" in
2434 *-*-*libc1*)
54d1c879 2435 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2436 esac
2437
2438 # This section makes it possible to build newlib natively on linux.
2439 # If we are using a cross compiler then don't configure newlib.
2440 if test x${is_cross_compiler} != xno ; then
bba45b8b 2441 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2442 fi
2443 noconfigdirs="$noconfigdirs target-libgloss"
2444 # If we are not using a cross compiler, do configure newlib.
2445 # Note however, that newlib will only be configured in this situation
2446 # if the --with-newlib option has been given, because otherwise
2447 # 'target-newlib' will appear in skipdirs.
2448 ;;
ec11bdc6 2449 i[3456789]86-*-mingw32*)
45055374
CV
2450 target_configdirs="$target_configdirs target-winsup"
2451 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2452 ;;
2d1e8239
NC
2453 x86_64-*-mingw*)
2454 target_configdirs="$target_configdirs target-winsup"
2455 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2456 ;;
a0da8069
NN
2457 *-*-cygwin*)
2458 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2459 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2460 # always build newlib if winsup directory is present.
45055374 2461 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2462 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2463 elif test -d "$srcdir/newlib"; then
45055374 2464 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2465 fi
c6b750e1 2466 ;;
caeba88f
AL
2467 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2468 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2469 ;;
ec11bdc6 2470 i[3456789]86-*-pe)
54d1c879 2471 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2472 ;;
ec11bdc6 2473 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2474 # The linker does not yet know about weak symbols in COFF,
2475 # and is not configured to handle mixed ELF and COFF.
54d1c879 2476 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2477 ;;
ec11bdc6 2478 i[3456789]86-*-sco*)
54d1c879 2479 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2480 ;;
ec11bdc6 2481 i[3456789]86-*-solaris2*)
a0da8069
NN
2482 noconfigdirs="$noconfigdirs target-libgloss"
2483 ;;
ec11bdc6 2484 i[3456789]86-*-sysv4*)
54d1c879 2485 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2486 ;;
ec11bdc6 2487 i[3456789]86-*-beos*)
54d1c879 2488 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2489 ;;
b59bea8a 2490 i[3456789]86-*-rdos*)
2429c060
PB
2491 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2492 ;;
b07c2aad 2493 m32r-*-*)
54d1c879 2494 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2495 ;;
a0da8069 2496 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2497 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 2498 libgloss_dir=m68hc11
a0da8069
NN
2499 ;;
2500 m68k-*-elf*)
54d1c879 2501 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2502 ;;
2503 m68k-*-coff*)
54d1c879 2504 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2505 ;;
691bb5a1
DD
2506 m68*-*-* | fido-*-*)
2507 libgloss_dir=m68k
2508 ;;
a0da8069
NN
2509 mcore-*-pe*)
2510 # The EPOC C++ environment does not support exceptions or rtti,
2511 # and so building libstdc++-v3 tends not to always work.
2512 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2513 ;;
2514 mmix-*-*)
59f7ec45 2515 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2516 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2517 ;;
2518 mn10200-*-*)
54d1c879 2519 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2520 ;;
2521 mn10300-*-*)
54d1c879 2522 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2523 ;;
4970f871 2524 mt-*-*)
cdb9b172
AH
2525 noconfigdirs="$noconfigdirs sim"
2526 ;;
a0da8069
NN
2527 powerpc-*-aix*)
2528 # copied from rs6000-*-* entry
54d1c879 2529 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2530 ;;
2531 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2532 target_configdirs="$target_configdirs target-winsup"
54d1c879 2533 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2534 # always build newlib.
2535 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2536 ;;
2537 # This is temporary until we can link against shared libraries
2538 powerpcle-*-solaris*)
54d1c879 2539 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 2540 libgloss_dir=rs6000
a0da8069
NN
2541 ;;
2542 powerpc-*-beos*)
54d1c879 2543 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2544 ;;
a0da8069 2545 powerpc-*-eabi)
54d1c879 2546 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2547 libgloss_dir=rs6000
caeba88f
AL
2548 ;;
2549 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 2550 libgloss_dir=rs6000
a0da8069 2551 ;;
a0da8069 2552 rs6000-*-lynxos*)
54d1c879 2553 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2554 ;;
2555 rs6000-*-aix*)
54d1c879 2556 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2557 ;;
2558 rs6000-*-*)
54d1c879 2559 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2560 ;;
2561 m68k-apollo-*)
54d1c879 2562 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 2563 ;;
5bd8be13
RS
2564 mips*-sde-elf*)
2565 skipdirs="$skipdirs target-libiberty"
2566 noconfigdirs="$noconfigdirs ${libgcj}"
2567 if test x$with_newlib = xyes; then
2568 noconfigdirs="$noconfigdirs gprof"
2569 fi
2570 libgloss_dir=mips
2571 ;;
a0da8069 2572 mips*-*-irix5*)
54d1c879 2573 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2574 ;;
2575 mips*-*-irix6*)
a0da8069
NN
2576 # Linking libjava exceeds command-line length limits on at least
2577 # IRIX 6.2, but not on IRIX 6.5.
2578 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2579 # <oldham@codesourcery.com>
54d1c879 2580 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2581 ;;
a0da8069 2582 mips*-*-bsd*)
54d1c879 2583 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2584 ;;
a0da8069
NN
2585 mips*-*-linux*)
2586 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2587 ;;
2588 mips*-*-*)
54d1c879 2589 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 2590 libgloss_dir=mips
a0da8069
NN
2591 ;;
2592 romp-*-*)
54d1c879 2593 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2594 ;;
dbf85af7 2595 sh-*-* | sh64-*-*)
a0da8069 2596 case "${host}" in
ec11bdc6
DD
2597 i[3456789]86-*-vsta) ;; # don't add gprof back in
2598 i[3456789]86-*-go32*) ;; # don't add gprof back in
2599 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2600 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2601 esac
54d1c879 2602 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2603 ;;
691bb5a1
DD
2604 sparclet-*-aout* | sparc86x-*-*)
2605 libgloss_dir=sparc
2606 ;;
a0da8069 2607 sparc-*-elf*)
54d1c879 2608 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2609 ;;
2610 sparc64-*-elf*)
54d1c879 2611 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2612 libgloss_dir=sparc
a0da8069
NN
2613 ;;
2614 sparclite-*-*)
54d1c879 2615 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2616 libgloss_dir=sparc
a0da8069
NN
2617 ;;
2618 sparc-*-sunos4*)
54d1c879 2619 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2620 if test x${is_cross_compiler} != xno ; then
2621 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2622 else
2623 use_gnu_ld=no
2624 fi
2625 ;;
e3c770b1 2626 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2627 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2628 ;;
a0da8069
NN
2629 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2630 ;;
2839fe5d
BE
2631 spu-*-*)
2632 skipdirs="target-libssp"
2633 ;;
a0da8069 2634 v810-*-*)
54d1c879 2635 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2636 ;;
2637 v850-*-*)
54d1c879 2638 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2639 ;;
2640 v850e-*-*)
54d1c879 2641 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2642 ;;
2643 v850ea-*-*)
54d1c879 2644 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2645 ;;
2646 vax-*-vms)
54d1c879 2647 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2648 ;;
2649 vax-*-*)
54d1c879 2650 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2651 ;;
8b66833e 2652 xtensa*-*-*)
54d1c879 2653 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2654 ;;
a0da8069 2655 ip2k-*-*)
54d1c879 2656 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2657 ;;
de0b4a87 2658 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2659 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2660 ;;
2661 *-*-lynxos*)
54d1c879 2662 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2663 ;;
a0da8069 2664 *-*-*)
54d1c879 2665 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2666 ;;
2667esac
252b5132 2668
a0da8069
NN
2669# If we aren't building newlib, then don't build libgloss, since libgloss
2670# depends upon some newlib header files.
2671case "${noconfigdirs}" in
2672 *target-libgloss*) ;;
2673 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2674esac
2675
a0da8069
NN
2676# Work in distributions that contain no compiler tools, like Autoconf.
2677tentative_cc=""
2678host_makefile_frag=/dev/null
2679if test -d ${srcdir}/config ; then
2680case "${host}" in
2681 m68k-hp-hpux*)
2682 # Avoid "too much defining" errors from HPUX compiler.
2683 tentative_cc="cc -Wp,-H256000"
2684 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2685 # If it's HP/UX ar, this should be harmless.
2686 RANLIB="ar ts"
2687 ;;
2688 m68k-apollo-sysv*)
2689 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2690 ;;
2691 m68k-apollo-bsd*)
2692 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2693 # chokes on bfd, the compiler won't let you assign integers to enums, and
2694 # other problems. Defining CC to gcc is a questionable way to say "don't use
2695 # the apollo compiler" (the preferred version of GCC could be called cc,
2696 # or whatever), but I'm not sure leaving CC as cc is any better...
2697 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2698 # Used to have BISON=yacc.
2699 tentative_cc=gcc
2700 ;;
2701 m88k-dg-dgux*)
2702 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2703 ;;
2704 m88k-harris-cxux*)
2705 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2706 tentative_cc="cc -Xa"
2707 host_makefile_frag="config/mh-cxux"
2708 ;;
2709 m88k-motorola-sysv*)
2710 ;;
2711 mips*-dec-ultrix*)
2712 tentative_cc="cc -Wf,-XNg1000"
2713 host_makefile_frag="config/mh-decstation"
2714 ;;
2715 mips*-nec-sysv4*)
2716 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2717 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2718 host_makefile_frag="config/mh-necv4"
2719 ;;
2720 mips*-sgi-irix4*)
2721 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2722 # environment. Also bump switch table size so that cp-parse will
2723 # compile. Bump string length limit so linker builds.
2724 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2725 ;;
2726 mips*-*-sysv4*)
2727 host_makefile_frag="config/mh-sysv4"
2728 ;;
2729 mips*-*-sysv*)
2730 # This is for a MIPS running RISC/os 4.52C.
2731
2732 # This is needed for GDB, but needs to be in the top-level make because
2733 # if a library is compiled with the bsd headers and gets linked with the
2734 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2735 # a different size).
2736 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2737 # known except to select the sysv environment. Could we use /proc instead?
2738 # These "sysv environments" and "bsd environments" often end up being a pain.
2739 #
2740 # This is not part of CFLAGS because perhaps not all C compilers have this
2741 # option.
2742 tentative_cc="cc -systype sysv"
2743 ;;
2744 i370-ibm-opened*)
2745 tentative_cc="c89"
2746 ;;
ec11bdc6 2747 i[3456789]86-*-sysv5*)
a0da8069
NN
2748 host_makefile_frag="config/mh-sysv5"
2749 ;;
ec11bdc6 2750 i[3456789]86-*-dgux*)
a0da8069
NN
2751 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2752 host_makefile_frag="config/mh-dgux386"
2753 ;;
ec11bdc6 2754 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2755 # The MetaWare compiler will generate a copyright message unless you
2756 # turn it off by adding the -Hnocopyr flag.
2757 tentative_cc="cc -Hnocopyr"
2758 ;;
ec11bdc6 2759 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2760 # for an NCR 3000 (i486/SVR4) system.
2761 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2762 # This compiler not only emits obnoxious copyright messages every time
2763 # you run it, but it chokes and dies on a whole bunch of GNU source
2764 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2765 tentative_cc="/usr/ccs/ATT/cc"
2766 host_makefile_frag="config/mh-ncr3000"
2767 ;;
ec11bdc6 2768 i[3456789]86-*-sco3.2v5*)
a0da8069 2769 ;;
ec11bdc6 2770 i[3456789]86-*-sco*)
a0da8069
NN
2771 # The native C compiler botches some simple uses of const. Unfortunately,
2772 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2773 tentative_cc="cc -Dconst="
2774 host_makefile_frag="config/mh-sco"
2775 ;;
ec11bdc6 2776 i[3456789]86-*-udk*)
a0da8069
NN
2777 host_makefile_frag="config/mh-sysv5"
2778 ;;
ec11bdc6 2779 i[3456789]86-*-solaris2*)
a0da8069
NN
2780 host_makefile_frag="config/mh-sysv4"
2781 ;;
ec11bdc6 2782 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2783 host_makefile_frag="config/mh-djgpp"
2784 ;;
2785 *-cygwin*)
e33b51a6
NC
2786
2787echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2788echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2789echo a >cygwin-cat-check
2790if test `cat cygwin-cat-check` == a ; then
8ade07e9 2791 rm cygwin-cat-check
e33b51a6
NC
2792 echo "$as_me:$LINENO: result: yes" >&5
2793echo "${ECHO_T}yes" >&6
2794else
8ade07e9 2795 rm cygwin-cat-check
e33b51a6
NC
2796 echo "$as_me:$LINENO: result: no" >&5
2797echo "${ECHO_T}no" >&6
2798 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2799 Please either mount the build directory in binary mode or run the following
2800 commands before running any configure script:
2801set -o igncr
2802export SHELLOPTS
2803 " >&5
2804echo "$as_me: error: The cat command does not ignore carriage return characters.
2805 Please either mount the build directory in binary mode or run the following
2806 commands before running any configure script:
2807set -o igncr
2808export SHELLOPTS
2809 " >&2;}
2810 { (exit 1); exit 1; }; }
2811fi
e33b51a6 2812
a0da8069
NN
2813 host_makefile_frag="config/mh-cygwin"
2814 ;;
8a1599ab 2815 *-mingw*)
84e7906e 2816 host_makefile_frag="config/mh-mingw"
2d1e8239 2817 ;;
a0da8069
NN
2818 *-interix*)
2819 host_makefile_frag="config/mh-interix"
2820 ;;
2821 vax-*-ultrix2*)
2822 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2823 tentative_cc=gcc
2824 ;;
2825 *-*-solaris2*)
2826 host_makefile_frag="config/mh-solaris"
2827 ;;
2828 m68k-sun-sunos*)
2829 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2830 # without overflowing the jump tables (-J says to use a 32 bit table)
2831 tentative_cc="cc -J"
2832 ;;
2833 *-hp-hpux*)
2834 tentative_cc="cc -Wp,-H256000"
2835 ;;
2836 *-*-hiux*)
2837 tentative_cc="cc -Wp,-H256000"
2838 ;;
2839 rs6000-*-lynxos*)
2840 # /bin/cc is less than useful for our purposes. Always use GCC
2841 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2842 host_makefile_frag="config/mh-lynxrs6k"
2843 ;;
0df3d27f
PB
2844 powerpc-*-darwin*)
2845 host_makefile_frag="config/mh-ppc-darwin"
2846 ;;
f6d183c0
PB
2847 powerpc-*-aix*)
2848 host_makefile_frag="config/mh-ppc-aix"
2849 ;;
2850 rs6000-*-aix*)
2851 host_makefile_frag="config/mh-ppc-aix"
2852 ;;
a0da8069
NN
2853 *-*-lynxos*)
2854 # /bin/cc is less than useful for our purposes. Always use GCC
2855 tentative_cc="/bin/gcc"
2856 ;;
2857 *-*-sysv4*)
2858 host_makefile_frag="config/mh-sysv4"
2859 ;;
fe69863c
DD
2860 # This is placed last to prevent interfering with the cases above.
2861 i[3456789]86-*-*)
2862 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2863 host_makefile_frag="config/mh-x86omitfp"
2864 ;;
a0da8069
NN
2865esac
2866fi
2867
9e07f89d
NN
2868# If we aren't going to be using gcc, see if we can extract a definition
2869# of CC from the fragment.
2870# Actually, use the 'pre-extracted' version above.
2871if test -z "${CC}" && test "${build}" = "${host}" ; then
2872 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2873 found=
2874 for dir in $PATH; do
2875 test -z "$dir" && dir=.
2876 if test -f $dir/gcc; then
2877 found=yes
2878 break
2879 fi
2880 done
2881 IFS="$save_ifs"
2882 if test -z "${found}" && test -n "${tentative_cc}" ; then
2883 CC=$tentative_cc
2884 fi
2885fi
2886
2887if test "${build}" != "${host}" ; then
1576798e
PB
2888 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2889 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 2890 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
2891 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2892 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2893 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2894 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2895 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2896 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2897 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2898 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2899 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2900else
2901 AR_FOR_BUILD="\$(AR)"
2902 AS_FOR_BUILD="\$(AS)"
512b7dfb 2903 CC_FOR_BUILD="\$(CC)"
1576798e
PB
2904 CXX_FOR_BUILD="\$(CXX)"
2905 GCJ_FOR_BUILD="\$(GCJ)"
2906 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2907 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2908 LD_FOR_BUILD="\$(LD)"
2909 NM_FOR_BUILD="\$(NM)"
2910 RANLIB_FOR_BUILD="\$(RANLIB)"
2911 WINDRES_FOR_BUILD="\$(WINDRES)"
2912 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
2913fi
2914
2915ac_ext=c
c6b750e1
DJ
2916ac_cpp='$CPP $CPPFLAGS'
2917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2919ac_compiler_gnu=$ac_cv_c_compiler_gnu
2920if test -n "$ac_tool_prefix"; then
2921 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2922set dummy ${ac_tool_prefix}gcc; ac_word=$2
2923echo "$as_me:$LINENO: checking for $ac_word" >&5
2924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2925if test "${ac_cv_prog_CC+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2927else
2928 if test -n "$CC"; then
2929 ac_cv_prog_CC="$CC" # Let the user override the test.
2930else
2931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932for as_dir in $PATH
2933do
2934 IFS=$as_save_IFS
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2938 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 break 2
2941 fi
2942done
2943done
2944
2945fi
2946fi
2947CC=$ac_cv_prog_CC
2948if test -n "$CC"; then
2949 echo "$as_me:$LINENO: result: $CC" >&5
2950echo "${ECHO_T}$CC" >&6
2951else
2952 echo "$as_me:$LINENO: result: no" >&5
2953echo "${ECHO_T}no" >&6
2954fi
2955
2956fi
2957if test -z "$ac_cv_prog_CC"; then
2958 ac_ct_CC=$CC
6a9cf61e 2959 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2960set dummy gcc; ac_word=$2
c6b750e1
DJ
2961echo "$as_me:$LINENO: checking for $ac_word" >&5
2962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2963if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2965else
2966 if test -n "$ac_ct_CC"; then
2967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2968else
2969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970for as_dir in $PATH
2971do
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2976 ac_cv_prog_ac_ct_CC="gcc"
2977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2979 fi
2980done
2981done
2982
2983fi
2984fi
2985ac_ct_CC=$ac_cv_prog_ac_ct_CC
2986if test -n "$ac_ct_CC"; then
2987 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2988echo "${ECHO_T}$ac_ct_CC" >&6
2989else
2990 echo "$as_me:$LINENO: result: no" >&5
2991echo "${ECHO_T}no" >&6
2992fi
2993
2994 CC=$ac_ct_CC
2995else
2996 CC="$ac_cv_prog_CC"
2997fi
2998
2999if test -z "$CC"; then
3000 if test -n "$ac_tool_prefix"; then
3001 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3002set dummy ${ac_tool_prefix}cc; ac_word=$2
3003echo "$as_me:$LINENO: checking for $ac_word" >&5
3004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3005if test "${ac_cv_prog_CC+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3007else
3008 if test -n "$CC"; then
3009 ac_cv_prog_CC="$CC" # Let the user override the test.
3010else
c6b750e1
DJ
3011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012for as_dir in $PATH
3013do
3014 IFS=$as_save_IFS
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018 ac_cv_prog_CC="${ac_tool_prefix}cc"
3019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 break 2
3021 fi
3022done
3023done
3024
9e07f89d
NN
3025fi
3026fi
c6b750e1 3027CC=$ac_cv_prog_CC
9e07f89d 3028if test -n "$CC"; then
c6b750e1
DJ
3029 echo "$as_me:$LINENO: result: $CC" >&5
3030echo "${ECHO_T}$CC" >&6
9e07f89d 3031else
c6b750e1
DJ
3032 echo "$as_me:$LINENO: result: no" >&5
3033echo "${ECHO_T}no" >&6
9e07f89d
NN
3034fi
3035
c6b750e1
DJ
3036fi
3037if test -z "$ac_cv_prog_CC"; then
3038 ac_ct_CC=$CC
3039 # Extract the first word of "cc", so it can be a program name with args.
3040set dummy cc; ac_word=$2
3041echo "$as_me:$LINENO: checking for $ac_word" >&5
3042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3043if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
3045else
3046 if test -n "$ac_ct_CC"; then
3047 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3048else
3049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050for as_dir in $PATH
3051do
3052 IFS=$as_save_IFS
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056 ac_cv_prog_ac_ct_CC="cc"
3057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 break 2
3059 fi
3060done
3061done
3062
3063fi
3064fi
3065ac_ct_CC=$ac_cv_prog_ac_ct_CC
3066if test -n "$ac_ct_CC"; then
3067 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3068echo "${ECHO_T}$ac_ct_CC" >&6
3069else
3070 echo "$as_me:$LINENO: result: no" >&5
3071echo "${ECHO_T}no" >&6
3072fi
3073
3074 CC=$ac_ct_CC
3075else
3076 CC="$ac_cv_prog_CC"
3077fi
3078
3079fi
9e07f89d
NN
3080if test -z "$CC"; then
3081 # Extract the first word of "cc", so it can be a program name with args.
3082set dummy cc; ac_word=$2
c6b750e1
DJ
3083echo "$as_me:$LINENO: checking for $ac_word" >&5
3084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3085if test "${ac_cv_prog_CC+set}" = set; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3087else
3088 if test -n "$CC"; then
3089 ac_cv_prog_CC="$CC" # Let the user override the test.
3090else
9e07f89d 3091 ac_prog_rejected=no
c6b750e1
DJ
3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH
3094do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3100 ac_prog_rejected=yes
3101 continue
3102 fi
3103 ac_cv_prog_CC="cc"
3104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3106 fi
3107done
3108done
3109
9e07f89d
NN
3110if test $ac_prog_rejected = yes; then
3111 # We found a bogon in the path, so make sure we never use it.
3112 set dummy $ac_cv_prog_CC
3113 shift
c6b750e1 3114 if test $# != 0; then
9e07f89d
NN
3115 # We chose a different compiler from the bogus one.
3116 # However, it has the same basename, so the bogon will be chosen
3117 # first if we set CC to just the basename; use the full file name.
3118 shift
c6b750e1 3119 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3120 fi
3121fi
3122fi
3123fi
c6b750e1 3124CC=$ac_cv_prog_CC
9e07f89d 3125if test -n "$CC"; then
c6b750e1
DJ
3126 echo "$as_me:$LINENO: result: $CC" >&5
3127echo "${ECHO_T}$CC" >&6
9e07f89d 3128else
c6b750e1
DJ
3129 echo "$as_me:$LINENO: result: no" >&5
3130echo "${ECHO_T}no" >&6
9e07f89d
NN
3131fi
3132
c6b750e1
DJ
3133fi
3134if test -z "$CC"; then
3135 if test -n "$ac_tool_prefix"; then
3136 for ac_prog in cl
3137 do
3138 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3139set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3140echo "$as_me:$LINENO: checking for $ac_word" >&5
3141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142if test "${ac_cv_prog_CC+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3144else
3145 if test -n "$CC"; then
3146 ac_cv_prog_CC="$CC" # Let the user override the test.
3147else
c6b750e1
DJ
3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH
3150do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
376a0e54 3158 fi
c6b750e1
DJ
3159done
3160done
cac3d6c4 3161
c6b750e1
DJ
3162fi
3163fi
3164CC=$ac_cv_prog_CC
3165if test -n "$CC"; then
3166 echo "$as_me:$LINENO: result: $CC" >&5
3167echo "${ECHO_T}$CC" >&6
cac3d6c4 3168else
c6b750e1
DJ
3169 echo "$as_me:$LINENO: result: no" >&5
3170echo "${ECHO_T}no" >&6
9e07f89d 3171fi
cac3d6c4 3172
c6b750e1
DJ
3173 test -n "$CC" && break
3174 done
cac3d6c4 3175fi
c6b750e1
DJ
3176if test -z "$CC"; then
3177 ac_ct_CC=$CC
3178 for ac_prog in cl
3179do
3180 # Extract the first word of "$ac_prog", so it can be a program name with args.
3181set dummy $ac_prog; ac_word=$2
3182echo "$as_me:$LINENO: checking for $ac_word" >&5
3183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3184if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3186else
c6b750e1
DJ
3187 if test -n "$ac_ct_CC"; then
3188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3189else
c6b750e1
DJ
3190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191for as_dir in $PATH
3192do
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_ac_ct_CC="$ac_prog"
3198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3200 fi
3201done
3202done
3203
cac3d6c4
CM
3204fi
3205fi
c6b750e1
DJ
3206ac_ct_CC=$ac_cv_prog_ac_ct_CC
3207if test -n "$ac_ct_CC"; then
3208 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3209echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3210else
c6b750e1
DJ
3211 echo "$as_me:$LINENO: result: no" >&5
3212echo "${ECHO_T}no" >&6
cac3d6c4 3213fi
376a0e54 3214
c6b750e1
DJ
3215 test -n "$ac_ct_CC" && break
3216done
3217
3218 CC=$ac_ct_CC
3219fi
3220
3221fi
3222
3223
3224test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3225See \`config.log' for more details." >&5
3226echo "$as_me: error: no acceptable C compiler found in \$PATH
3227See \`config.log' for more details." >&2;}
3228 { (exit 1); exit 1; }; }
3229
3230# Provide some information about the compiler.
3231echo "$as_me:$LINENO:" \
3232 "checking for C compiler version" >&5
3233ac_compiler=`set X $ac_compile; echo $2`
3234{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3235 (eval $ac_compiler --version </dev/null >&5) 2>&5
3236 ac_status=$?
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }
3239{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3240 (eval $ac_compiler -v </dev/null >&5) 2>&5
3241 ac_status=$?
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }
3244{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3245 (eval $ac_compiler -V </dev/null >&5) 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }
3249
3250cat >conftest.$ac_ext <<_ACEOF
3251/* confdefs.h. */
3252_ACEOF
3253cat confdefs.h >>conftest.$ac_ext
3254cat >>conftest.$ac_ext <<_ACEOF
3255/* end confdefs.h. */
3256
3257int
3258main ()
3259{
3260
3261 ;
3262 return 0;
3263}
3264_ACEOF
3265ac_clean_files_save=$ac_clean_files
3266ac_clean_files="$ac_clean_files a.out a.exe b.out"
3267# Try to create an executable without -o first, disregard a.out.
3268# It will help us diagnose broken compilers, and finding out an intuition
3269# of exeext.
3270echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3271echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3272ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3273if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3274 (eval $ac_link_default) 2>&5
3275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; then
3278 # Find the output, starting from the most likely. This scheme is
3279# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3280# resort.
3281
3282# Be careful to initialize this variable, since it used to be cached.
3283# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3284ac_cv_exeext=
3285# b.out is created by i960 compilers.
3286for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3287do
3288 test -f "$ac_file" || continue
3289 case $ac_file in
3290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3291 ;;
3292 conftest.$ac_ext )
3293 # This is the source file.
3294 ;;
3295 [ab].out )
3296 # We found the default executable, but exeext='' is most
3297 # certainly right.
3298 break;;
3299 *.* )
3300 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3301 # FIXME: I believe we export ac_cv_exeext for Libtool,
3302 # but it would be cool to find out if it's true. Does anybody
3303 # maintain Libtool? --akim.
3304 export ac_cv_exeext
3305 break;;
3306 * )
3307 break;;
3308 esac
3309done
3310else
3311 echo "$as_me: failed program was:" >&5
3312sed 's/^/| /' conftest.$ac_ext >&5
3313
3314{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3315See \`config.log' for more details." >&5
3316echo "$as_me: error: C compiler cannot create executables
3317See \`config.log' for more details." >&2;}
3318 { (exit 77); exit 77; }; }
3319fi
3320
3321ac_exeext=$ac_cv_exeext
3322echo "$as_me:$LINENO: result: $ac_file" >&5
3323echo "${ECHO_T}$ac_file" >&6
3324
3325# Check the compiler produces executables we can run. If not, either
3326# the compiler is broken, or we cross compile.
3327echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3328echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3329# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3330# If not cross compiling, check that we can run a simple program.
3331if test "$cross_compiling" != yes; then
3332 if { ac_try='./$ac_file'
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); }; }; then
3338 cross_compiling=no
3339 else
3340 if test "$cross_compiling" = maybe; then
3341 cross_compiling=yes
3342 else
3343 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3344If you meant to cross compile, use \`--host'.
3345See \`config.log' for more details." >&5
3346echo "$as_me: error: cannot run C compiled programs.
3347If you meant to cross compile, use \`--host'.
3348See \`config.log' for more details." >&2;}
3349 { (exit 1); exit 1; }; }
3350 fi
3351 fi
3352fi
3353echo "$as_me:$LINENO: result: yes" >&5
3354echo "${ECHO_T}yes" >&6
3355
3356rm -f a.out a.exe conftest$ac_cv_exeext b.out
3357ac_clean_files=$ac_clean_files_save
3358# Check the compiler produces executables we can run. If not, either
3359# the compiler is broken, or we cross compile.
3360echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3361echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3362echo "$as_me:$LINENO: result: $cross_compiling" >&5
3363echo "${ECHO_T}$cross_compiling" >&6
3364
3365echo "$as_me:$LINENO: checking for suffix of executables" >&5
3366echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3368 (eval $ac_link) 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; then
3372 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3373# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3374# work properly (i.e., refer to `conftest.exe'), while it won't with
3375# `rm'.
3376for ac_file in conftest.exe conftest conftest.*; do
3377 test -f "$ac_file" || continue
3378 case $ac_file in
3379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3380 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3381 export ac_cv_exeext
3382 break;;
3383 * ) break;;
3384 esac
3385done
3386else
3387 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3388See \`config.log' for more details." >&5
3389echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3390See \`config.log' for more details." >&2;}
3391 { (exit 1); exit 1; }; }
3392fi
3393
3394rm -f conftest$ac_cv_exeext
3395echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3396echo "${ECHO_T}$ac_cv_exeext" >&6
3397
3398rm -f conftest.$ac_ext
3399EXEEXT=$ac_cv_exeext
3400ac_exeext=$EXEEXT
3401echo "$as_me:$LINENO: checking for suffix of object files" >&5
3402echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3403if test "${ac_cv_objext+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3405else
3406 cat >conftest.$ac_ext <<_ACEOF
3407/* confdefs.h. */
3408_ACEOF
3409cat confdefs.h >>conftest.$ac_ext
3410cat >>conftest.$ac_ext <<_ACEOF
3411/* end confdefs.h. */
3412
3413int
3414main ()
3415{
3416
3417 ;
3418 return 0;
3419}
3420_ACEOF
3421rm -f conftest.o conftest.obj
3422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3423 (eval $ac_compile) 2>&5
3424 ac_status=$?
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; then
3427 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3428 case $ac_file in
3429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3430 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3431 break;;
3432 esac
3433done
cac3d6c4 3434else
c6b750e1
DJ
3435 echo "$as_me: failed program was:" >&5
3436sed 's/^/| /' conftest.$ac_ext >&5
3437
3438{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3439See \`config.log' for more details." >&5
3440echo "$as_me: error: cannot compute suffix of object files: cannot compile
3441See \`config.log' for more details." >&2;}
3442 { (exit 1); exit 1; }; }
3443fi
3444
3445rm -f conftest.$ac_cv_objext conftest.$ac_ext
3446fi
3447echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3448echo "${ECHO_T}$ac_cv_objext" >&6
3449OBJEXT=$ac_cv_objext
3450ac_objext=$OBJEXT
3451echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3452echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3453if test "${ac_cv_c_compiler_gnu+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3455else
3456 cat >conftest.$ac_ext <<_ACEOF
3457/* confdefs.h. */
3458_ACEOF
3459cat confdefs.h >>conftest.$ac_ext
3460cat >>conftest.$ac_ext <<_ACEOF
3461/* end confdefs.h. */
3462
3463int
3464main ()
3465{
3466#ifndef __GNUC__
3467 choke me
3468#endif
3469
3470 ;
3471 return 0;
3472}
3473_ACEOF
3474rm -f conftest.$ac_objext
3475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3476 (eval $ac_compile) 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } &&
3483 { ac_try='test -z "$ac_c_werror_flag"
3484 || test ! -s conftest.err'
3485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486 (eval $ac_try) 2>&5
3487 ac_status=$?
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; } &&
3490 { ac_try='test -s conftest.$ac_objext'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 (eval $ac_try) 2>&5
3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; }; then
3496 ac_compiler_gnu=yes
3497else
3498 echo "$as_me: failed program was:" >&5
3499sed 's/^/| /' conftest.$ac_ext >&5
3500
3501ac_compiler_gnu=no
3502fi
3503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3504ac_cv_c_compiler_gnu=$ac_compiler_gnu
3505
3506fi
3507echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3508echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3509GCC=`test $ac_compiler_gnu = yes && echo yes`
3510ac_test_CFLAGS=${CFLAGS+set}
3511ac_save_CFLAGS=$CFLAGS
3512CFLAGS="-g"
3513echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3514echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3515if test "${ac_cv_prog_cc_g+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3517else
3518 cat >conftest.$ac_ext <<_ACEOF
3519/* confdefs.h. */
3520_ACEOF
3521cat confdefs.h >>conftest.$ac_ext
3522cat >>conftest.$ac_ext <<_ACEOF
3523/* end confdefs.h. */
3524
3525int
3526main ()
3527{
3528
3529 ;
3530 return 0;
3531}
3532_ACEOF
3533rm -f conftest.$ac_objext
3534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3535 (eval $ac_compile) 2>conftest.er1
3536 ac_status=$?
3537 grep -v '^ *+' conftest.er1 >conftest.err
3538 rm -f conftest.er1
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } &&
3542 { ac_try='test -z "$ac_c_werror_flag"
3543 || test ! -s conftest.err'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 (eval $ac_try) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; } &&
3549 { ac_try='test -s conftest.$ac_objext'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 (eval $ac_try) 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
9e07f89d
NN
3555 ac_cv_prog_cc_g=yes
3556else
c6b750e1
DJ
3557 echo "$as_me: failed program was:" >&5
3558sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3559
c6b750e1 3560ac_cv_prog_cc_g=no
376a0e54 3561fi
c6b750e1
DJ
3562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3563fi
3564echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3565echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3566if test "$ac_test_CFLAGS" = set; then
c6b750e1 3567 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3568elif test $ac_cv_prog_cc_g = yes; then
3569 if test "$GCC" = yes; then
3570 CFLAGS="-g -O2"
3571 else
3572 CFLAGS="-g"
3573 fi
3574else
3575 if test "$GCC" = yes; then
3576 CFLAGS="-O2"
3577 else
3578 CFLAGS=
3579 fi
3580fi
c6b750e1
DJ
3581echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3582echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3583if test "${ac_cv_prog_cc_stdc+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3585else
3586 ac_cv_prog_cc_stdc=no
3587ac_save_CC=$CC
3588cat >conftest.$ac_ext <<_ACEOF
3589/* confdefs.h. */
3590_ACEOF
3591cat confdefs.h >>conftest.$ac_ext
3592cat >>conftest.$ac_ext <<_ACEOF
3593/* end confdefs.h. */
3594#include <stdarg.h>
3595#include <stdio.h>
3596#include <sys/types.h>
3597#include <sys/stat.h>
3598/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3599struct buf { int x; };
3600FILE * (*rcsopen) (struct buf *, struct stat *, int);
3601static char *e (p, i)
3602 char **p;
3603 int i;
3604{
3605 return p[i];
3606}
3607static char *f (char * (*g) (char **, int), char **p, ...)
3608{
3609 char *s;
3610 va_list v;
3611 va_start (v,p);
3612 s = g (p, va_arg (v,int));
3613 va_end (v);
3614 return s;
3615}
3616
3617/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3618 function prototypes and stuff, but not '\xHH' hex character constants.
3619 These don't provoke an error unfortunately, instead are silently treated
3620 as 'x'. The following induces an error, until -std1 is added to get
3621 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3622 array size at least. It's necessary to write '\x00'==0 to get something
3623 that's true only with -std1. */
3624int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3625
3626int test (int i, double x);
3627struct s1 {int (*f) (int a);};
3628struct s2 {int (*f) (double a);};
3629int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3630int argc;
3631char **argv;
3632int
3633main ()
3634{
3635return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3636 ;
3637 return 0;
3638}
3639_ACEOF
3640# Don't try gcc -ansi; that turns off useful extensions and
3641# breaks some systems' header files.
3642# AIX -qlanglvl=ansi
3643# Ultrix and OSF/1 -std1
3644# HP-UX 10.20 and later -Ae
3645# HP-UX older versions -Aa -D_HPUX_SOURCE
3646# SVR4 -Xc -D__EXTENSIONS__
3647for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3648do
3649 CC="$ac_save_CC $ac_arg"
3650 rm -f conftest.$ac_objext
3651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3652 (eval $ac_compile) 2>conftest.er1
3653 ac_status=$?
3654 grep -v '^ *+' conftest.er1 >conftest.err
3655 rm -f conftest.er1
3656 cat conftest.err >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } &&
3659 { ac_try='test -z "$ac_c_werror_flag"
3660 || test ! -s conftest.err'
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); }; } &&
3666 { ac_try='test -s conftest.$ac_objext'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 (eval $ac_try) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3672 ac_cv_prog_cc_stdc=$ac_arg
3673break
3674else
3675 echo "$as_me: failed program was:" >&5
3676sed 's/^/| /' conftest.$ac_ext >&5
3677
3678fi
3679rm -f conftest.err conftest.$ac_objext
3680done
3681rm -f conftest.$ac_ext conftest.$ac_objext
3682CC=$ac_save_CC
3683
3684fi
3685
3686case "x$ac_cv_prog_cc_stdc" in
3687 x|xno)
3688 echo "$as_me:$LINENO: result: none needed" >&5
3689echo "${ECHO_T}none needed" >&6 ;;
3690 *)
3691 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3692echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3693 CC="$CC $ac_cv_prog_cc_stdc" ;;
3694esac
3695
3696# Some people use a C++ compiler to compile C. Since we use `exit',
3697# in C++ we need to declare it. In case someone uses the same compiler
3698# for both compiling C and C++ we need to have the C++ compiler decide
3699# the declaration of exit, since it's the most demanding environment.
3700cat >conftest.$ac_ext <<_ACEOF
3701#ifndef __cplusplus
3702 choke me
3703#endif
3704_ACEOF
3705rm -f conftest.$ac_objext
3706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3707 (eval $ac_compile) 2>conftest.er1
3708 ac_status=$?
3709 grep -v '^ *+' conftest.er1 >conftest.err
3710 rm -f conftest.er1
3711 cat conftest.err >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
3714 { ac_try='test -z "$ac_c_werror_flag"
3715 || test ! -s conftest.err'
3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 (eval $ac_try) 2>&5
3718 ac_status=$?
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; } &&
3721 { ac_try='test -s conftest.$ac_objext'
3722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 (eval $ac_try) 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; }; then
3727 for ac_declaration in \
3728 '' \
3729 'extern "C" void std::exit (int) throw (); using std::exit;' \
3730 'extern "C" void std::exit (int); using std::exit;' \
3731 'extern "C" void exit (int) throw ();' \
3732 'extern "C" void exit (int);' \
3733 'void exit (int);'
3734do
3735 cat >conftest.$ac_ext <<_ACEOF
3736/* confdefs.h. */
3737_ACEOF
3738cat confdefs.h >>conftest.$ac_ext
3739cat >>conftest.$ac_ext <<_ACEOF
3740/* end confdefs.h. */
3741$ac_declaration
3742#include <stdlib.h>
3743int
3744main ()
3745{
3746exit (42);
3747 ;
3748 return 0;
3749}
3750_ACEOF
3751rm -f conftest.$ac_objext
3752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3753 (eval $ac_compile) 2>conftest.er1
3754 ac_status=$?
3755 grep -v '^ *+' conftest.er1 >conftest.err
3756 rm -f conftest.er1
3757 cat conftest.err >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } &&
3760 { ac_try='test -z "$ac_c_werror_flag"
3761 || test ! -s conftest.err'
3762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 (eval $ac_try) 2>&5
3764 ac_status=$?
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; } &&
3767 { ac_try='test -s conftest.$ac_objext'
3768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769 (eval $ac_try) 2>&5
3770 ac_status=$?
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); }; }; then
3773 :
3774else
3775 echo "$as_me: failed program was:" >&5
3776sed 's/^/| /' conftest.$ac_ext >&5
3777
3778continue
3779fi
3780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3781 cat >conftest.$ac_ext <<_ACEOF
3782/* confdefs.h. */
3783_ACEOF
3784cat confdefs.h >>conftest.$ac_ext
3785cat >>conftest.$ac_ext <<_ACEOF
3786/* end confdefs.h. */
3787$ac_declaration
3788int
3789main ()
3790{
3791exit (42);
3792 ;
3793 return 0;
3794}
3795_ACEOF
3796rm -f conftest.$ac_objext
3797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3798 (eval $ac_compile) 2>conftest.er1
3799 ac_status=$?
3800 grep -v '^ *+' conftest.er1 >conftest.err
3801 rm -f conftest.er1
3802 cat conftest.err >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } &&
3805 { ac_try='test -z "$ac_c_werror_flag"
3806 || test ! -s conftest.err'
3807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808 (eval $ac_try) 2>&5
3809 ac_status=$?
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; } &&
3812 { ac_try='test -s conftest.$ac_objext'
3813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814 (eval $ac_try) 2>&5
3815 ac_status=$?
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }; }; then
3818 break
3819else
3820 echo "$as_me: failed program was:" >&5
3821sed 's/^/| /' conftest.$ac_ext >&5
3822
3823fi
3824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3825done
3826rm -f conftest*
3827if test -n "$ac_declaration"; then
3828 echo '#ifdef __cplusplus' >>confdefs.h
3829 echo $ac_declaration >>confdefs.h
3830 echo '#endif' >>confdefs.h
3831fi
3832
3833else
3834 echo "$as_me: failed program was:" >&5
3835sed 's/^/| /' conftest.$ac_ext >&5
3836
3837fi
3838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3839ac_ext=c
3840ac_cpp='$CPP $CPPFLAGS'
3841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3843ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3844
18f6b6ee
PB
3845ac_ext=cc
3846ac_cpp='$CXXCPP $CPPFLAGS'
3847ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3848ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3849ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3850if test -n "$ac_tool_prefix"; then
3851 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3852 do
3853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3854set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3855echo "$as_me:$LINENO: checking for $ac_word" >&5
3856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3857if test "${ac_cv_prog_CXX+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3859else
3860 if test -n "$CXX"; then
3861 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3862else
3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH
3865do
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 break 2
3873 fi
3874done
3875done
512b7dfb 3876
18f6b6ee
PB
3877fi
3878fi
3879CXX=$ac_cv_prog_CXX
3880if test -n "$CXX"; then
3881 echo "$as_me:$LINENO: result: $CXX" >&5
3882echo "${ECHO_T}$CXX" >&6
3883else
3884 echo "$as_me:$LINENO: result: no" >&5
3885echo "${ECHO_T}no" >&6
3886fi
3887
3888 test -n "$CXX" && break
3889 done
3890fi
3891if test -z "$CXX"; then
3892 ac_ct_CXX=$CXX
3893 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3894do
3895 # Extract the first word of "$ac_prog", so it can be a program name with args.
3896set dummy $ac_prog; ac_word=$2
3897echo "$as_me:$LINENO: checking for $ac_word" >&5
3898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3899if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3901else
3902 if test -n "$ac_ct_CXX"; then
3903 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3904else
3905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906for as_dir in $PATH
3907do
3908 IFS=$as_save_IFS
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3912 ac_cv_prog_ac_ct_CXX="$ac_prog"
3913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 break 2
512b7dfb 3915 fi
18f6b6ee
PB
3916done
3917done
512b7dfb 3918
18f6b6ee
PB
3919fi
3920fi
3921ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3922if test -n "$ac_ct_CXX"; then
3923 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3924echo "${ECHO_T}$ac_ct_CXX" >&6
3925else
3926 echo "$as_me:$LINENO: result: no" >&5
3927echo "${ECHO_T}no" >&6
3928fi
3929
3930 test -n "$ac_ct_CXX" && break
3931done
3932test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3933
3934 CXX=$ac_ct_CXX
3935fi
3936
3937
3938# Provide some information about the compiler.
3939echo "$as_me:$LINENO:" \
3940 "checking for C++ compiler version" >&5
3941ac_compiler=`set X $ac_compile; echo $2`
3942{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3943 (eval $ac_compiler --version </dev/null >&5) 2>&5
3944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }
3947{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3948 (eval $ac_compiler -v </dev/null >&5) 2>&5
3949 ac_status=$?
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }
3952{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3953 (eval $ac_compiler -V </dev/null >&5) 2>&5
3954 ac_status=$?
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); }
3957
3958echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3959echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3960if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3962else
3963 cat >conftest.$ac_ext <<_ACEOF
3964/* confdefs.h. */
3965_ACEOF
3966cat confdefs.h >>conftest.$ac_ext
3967cat >>conftest.$ac_ext <<_ACEOF
3968/* end confdefs.h. */
3969
3970int
3971main ()
3972{
3973#ifndef __GNUC__
3974 choke me
3975#endif
3976
3977 ;
3978 return 0;
3979}
3980_ACEOF
3981rm -f conftest.$ac_objext
3982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983 (eval $ac_compile) 2>conftest.er1
3984 ac_status=$?
3985 grep -v '^ *+' conftest.er1 >conftest.err
3986 rm -f conftest.er1
3987 cat conftest.err >&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } &&
3990 { ac_try='test -z "$ac_cxx_werror_flag"
3991 || test ! -s conftest.err'
3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993 (eval $ac_try) 2>&5
3994 ac_status=$?
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; } &&
3997 { ac_try='test -s conftest.$ac_objext'
3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999 (eval $ac_try) 2>&5
4000 ac_status=$?
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; }; then
4003 ac_compiler_gnu=yes
4004else
4005 echo "$as_me: failed program was:" >&5
4006sed 's/^/| /' conftest.$ac_ext >&5
4007
4008ac_compiler_gnu=no
4009fi
4010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4011ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4012
4013fi
4014echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4015echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4016GXX=`test $ac_compiler_gnu = yes && echo yes`
4017ac_test_CXXFLAGS=${CXXFLAGS+set}
4018ac_save_CXXFLAGS=$CXXFLAGS
4019CXXFLAGS="-g"
4020echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4021echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4022if test "${ac_cv_prog_cxx_g+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024else
4025 cat >conftest.$ac_ext <<_ACEOF
4026/* confdefs.h. */
4027_ACEOF
4028cat confdefs.h >>conftest.$ac_ext
4029cat >>conftest.$ac_ext <<_ACEOF
4030/* end confdefs.h. */
4031
4032int
4033main ()
4034{
4035
4036 ;
4037 return 0;
4038}
4039_ACEOF
4040rm -f conftest.$ac_objext
4041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042 (eval $ac_compile) 2>conftest.er1
4043 ac_status=$?
4044 grep -v '^ *+' conftest.er1 >conftest.err
4045 rm -f conftest.er1
4046 cat conftest.err >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); } &&
4049 { ac_try='test -z "$ac_cxx_werror_flag"
4050 || test ! -s conftest.err'
4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052 (eval $ac_try) 2>&5
4053 ac_status=$?
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; } &&
4056 { ac_try='test -s conftest.$ac_objext'
4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 (eval $ac_try) 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 ac_cv_prog_cxx_g=yes
4063else
4064 echo "$as_me: failed program was:" >&5
4065sed 's/^/| /' conftest.$ac_ext >&5
4066
4067ac_cv_prog_cxx_g=no
4068fi
4069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4070fi
4071echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4072echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4073if test "$ac_test_CXXFLAGS" = set; then
4074 CXXFLAGS=$ac_save_CXXFLAGS
4075elif test $ac_cv_prog_cxx_g = yes; then
4076 if test "$GXX" = yes; then
4077 CXXFLAGS="-g -O2"
4078 else
4079 CXXFLAGS="-g"
4080 fi
4081else
4082 if test "$GXX" = yes; then
4083 CXXFLAGS="-O2"
4084 else
4085 CXXFLAGS=
4086 fi
4087fi
4088for ac_declaration in \
4089 '' \
4090 'extern "C" void std::exit (int) throw (); using std::exit;' \
4091 'extern "C" void std::exit (int); using std::exit;' \
4092 'extern "C" void exit (int) throw ();' \
4093 'extern "C" void exit (int);' \
4094 'void exit (int);'
4095do
4096 cat >conftest.$ac_ext <<_ACEOF
4097/* confdefs.h. */
4098_ACEOF
4099cat confdefs.h >>conftest.$ac_ext
4100cat >>conftest.$ac_ext <<_ACEOF
4101/* end confdefs.h. */
4102$ac_declaration
4103#include <stdlib.h>
4104int
4105main ()
4106{
4107exit (42);
4108 ;
4109 return 0;
4110}
4111_ACEOF
4112rm -f conftest.$ac_objext
4113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4114 (eval $ac_compile) 2>conftest.er1
4115 ac_status=$?
4116 grep -v '^ *+' conftest.er1 >conftest.err
4117 rm -f conftest.er1
4118 cat conftest.err >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } &&
4121 { ac_try='test -z "$ac_cxx_werror_flag"
4122 || test ! -s conftest.err'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 (eval $ac_try) 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; } &&
4128 { ac_try='test -s conftest.$ac_objext'
4129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130 (eval $ac_try) 2>&5
4131 ac_status=$?
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; }; then
4134 :
4135else
4136 echo "$as_me: failed program was:" >&5
4137sed 's/^/| /' conftest.$ac_ext >&5
4138
4139continue
4140fi
4141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4142 cat >conftest.$ac_ext <<_ACEOF
4143/* confdefs.h. */
4144_ACEOF
4145cat confdefs.h >>conftest.$ac_ext
4146cat >>conftest.$ac_ext <<_ACEOF
4147/* end confdefs.h. */
4148$ac_declaration
4149int
4150main ()
4151{
4152exit (42);
4153 ;
4154 return 0;
4155}
4156_ACEOF
4157rm -f conftest.$ac_objext
4158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159 (eval $ac_compile) 2>conftest.er1
4160 ac_status=$?
4161 grep -v '^ *+' conftest.er1 >conftest.err
4162 rm -f conftest.er1
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } &&
4166 { ac_try='test -z "$ac_cxx_werror_flag"
4167 || test ! -s conftest.err'
4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 (eval $ac_try) 2>&5
4170 ac_status=$?
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; } &&
4173 { ac_try='test -s conftest.$ac_objext'
4174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175 (eval $ac_try) 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
4179 break
4180else
4181 echo "$as_me: failed program was:" >&5
4182sed 's/^/| /' conftest.$ac_ext >&5
4183
4184fi
4185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4186done
4187rm -f conftest*
4188if test -n "$ac_declaration"; then
4189 echo '#ifdef __cplusplus' >>confdefs.h
4190 echo $ac_declaration >>confdefs.h
4191 echo '#endif' >>confdefs.h
4192fi
4193
4194ac_ext=c
4195ac_cpp='$CPP $CPPFLAGS'
4196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4198ac_compiler_gnu=$ac_cv_c_compiler_gnu
4199
4200
4201# We must set the default linker to the linker used by gcc for the correct
4202# operation of libtool. If LD is not defined and we are using gcc, try to
4203# set the LD default to the ld used by gcc.
4204if test -z "$LD"; then
4205 if test "$GCC" = yes; then
4206 case $build in
4207 *-*-mingw*)
4208 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4209 *)
4210 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4211 esac
4212 case $gcc_prog_ld in
4213 # Accept absolute paths.
4214 [\\/]* | [A-Za-z]:[\\/]*)
4215 LD="$gcc_prog_ld" ;;
4216 esac
4217 fi
512b7dfb
PB
4218fi
4219
4220
4221
4222
c6b750e1 4223if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4224 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4225set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4226echo "$as_me:$LINENO: checking for $ac_word" >&5
4227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4228if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4229 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4230else
512b7dfb
PB
4231 if test -n "$GNATBIND"; then
4232 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4233else
c6b750e1
DJ
4234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235for as_dir in $PATH
4236do
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4241 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 break 2
4244 fi
4245done
4246done
4247
9e07f89d
NN
4248fi
4249fi
512b7dfb
PB
4250GNATBIND=$ac_cv_prog_GNATBIND
4251if test -n "$GNATBIND"; then
4252 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4253echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4254else
c6b750e1
DJ
4255 echo "$as_me:$LINENO: result: no" >&5
4256echo "${ECHO_T}no" >&6
9e07f89d
NN
4257fi
4258
c6b750e1 4259fi
512b7dfb
PB
4260if test -z "$ac_cv_prog_GNATBIND"; then
4261 ac_ct_GNATBIND=$GNATBIND
4262 # Extract the first word of "gnatbind", so it can be a program name with args.
4263set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4264echo "$as_me:$LINENO: checking for $ac_word" >&5
4265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4266if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4267 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4268else
512b7dfb
PB
4269 if test -n "$ac_ct_GNATBIND"; then
4270 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4271else
c6b750e1
DJ
4272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH
4274do
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4279 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 break 2
4282 fi
4283done
4284done
4285
512b7dfb 4286 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4287fi
4288fi
512b7dfb
PB
4289ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4290if test -n "$ac_ct_GNATBIND"; then
4291 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4292echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4293else
c6b750e1
DJ
4294 echo "$as_me:$LINENO: result: no" >&5
4295echo "${ECHO_T}no" >&6
9e07f89d
NN
4296fi
4297
512b7dfb 4298 GNATBIND=$ac_ct_GNATBIND
24ff9987 4299else
512b7dfb 4300 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4301fi
4302
7df2cd5d 4303if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4304 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4305set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4306echo "$as_me:$LINENO: checking for $ac_word" >&5
4307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4308if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310else
512b7dfb
PB
4311 if test -n "$GNATMAKE"; then
4312 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4313else
4314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315for as_dir in $PATH
4316do
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4321 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 break 2
4324 fi
4325done
4326done
4327
4328fi
4329fi
512b7dfb
PB
4330GNATMAKE=$ac_cv_prog_GNATMAKE
4331if test -n "$GNATMAKE"; then
4332 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4333echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4334else
4335 echo "$as_me:$LINENO: result: no" >&5
4336echo "${ECHO_T}no" >&6
4337fi
4338
4339fi
512b7dfb
PB
4340if test -z "$ac_cv_prog_GNATMAKE"; then
4341 ac_ct_GNATMAKE=$GNATMAKE
4342 # Extract the first word of "gnatmake", so it can be a program name with args.
4343set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4344echo "$as_me:$LINENO: checking for $ac_word" >&5
4345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4346if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4348else
512b7dfb
PB
4349 if test -n "$ac_ct_GNATMAKE"; then
4350 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4351else
4352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353for as_dir in $PATH
4354do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4359 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 break 2
4362 fi
4363done
4364done
4365
512b7dfb 4366 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4367fi
4368fi
512b7dfb
PB
4369ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4370if test -n "$ac_ct_GNATMAKE"; then
4371 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4372echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4373else
4374 echo "$as_me:$LINENO: result: no" >&5
4375echo "${ECHO_T}no" >&6
4376fi
4377
512b7dfb 4378 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4379else
512b7dfb 4380 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4381fi
4382
c6b750e1
DJ
4383echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4384echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4385if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4387else
4388 cat >conftest.adb <<EOF
4389procedure conftest is begin null; end conftest;
4390EOF
4391acx_cv_cc_gcc_supports_ada=no
4392# There is a bug in old released versions of GCC which causes the
4393# driver to exit successfully when the appropriate language module
4394# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4395# Therefore we must check for the error message as well as an
4396# unsuccessful exit.
b8908782
DD
4397# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4398# given a .adb file, but produce no object file. So we must check
4399# if an object file was really produced to guard against this.
9e07f89d 4400errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4401if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4402 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4403fi
4404rm -f conftest.*
4405fi
c6b750e1
DJ
4406echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4407echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4408
512b7dfb 4409if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4410 have_gnat=yes
4411else
4412 have_gnat=no
4413fi
4414
c6b750e1
DJ
4415echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4416echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4417if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4419else
4420 echo abfoo >t1
4421 echo cdfoo >t2
4422 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4423 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4424 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4425 :
4426 else
4427 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4428 fi
4429 fi
b8908782
DD
4430 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4431 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4432 :
b8908782
DD
4433 else
4434 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4435 fi
4436 fi
4437 rm t1 t2
4438
4439fi
c6b750e1
DJ
4440echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4441echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4442do_compare="$gcc_cv_prog_cmp_skip"
4443
4444
9e07f89d 4445
11b04d1f 4446# Check for GMP and MPFR
4b900473 4447gmplibs="-lmpfr -lgmp"
4b1cb4fe 4448gmpinc=
4b900473
PB
4449have_gmp=no
4450
11b04d1f
DD
4451# Specify a location for mpfr
4452# check for this first so it ends up on the link line before gmp.
c6b750e1 4453
11b04d1f
DD
4454# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4455if test "${with_mpfr_dir+set}" = set; then
4456 withval="$with_mpfr_dir"
c6b750e1
DJ
4457 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4458Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4459echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4460Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4461 { (exit 1); exit 1; }; }
4462fi;
11b04d1f
DD
4463
4464
11b04d1f
DD
4465# Check whether --with-mpfr or --without-mpfr was given.
4466if test "${with_mpfr+set}" = set; then
4467 withval="$with_mpfr"
c6b750e1
DJ
4468
4469fi;
11b04d1f 4470
8a0d8a5c
PB
4471# Check whether --with-mpfr_include or --without-mpfr_include was given.
4472if test "${with_mpfr_include+set}" = set; then
4473 withval="$with_mpfr_include"
c6b750e1
DJ
4474
4475fi;
8a0d8a5c
PB
4476
4477# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4478if test "${with_mpfr_lib+set}" = set; then
4479 withval="$with_mpfr_lib"
8a0d8a5c 4480
c6b750e1 4481fi;
11b04d1f
DD
4482
4483if test "x$with_mpfr" != x; then
4484 gmplibs="-L$with_mpfr/lib $gmplibs"
4485 gmpinc="-I$with_mpfr/include"
4486fi
8a0d8a5c
PB
4487if test "x$with_mpfr_include" != x; then
4488 gmpinc="-I$with_mpfr_include"
4489fi
4490if test "x$with_mpfr_lib" != x; then
4491 gmplibs="-L$with_mpfr_lib $gmplibs"
4492fi
4b900473
PB
4493if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4494 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4495 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4496 # Do not test the mpfr version. Assume that it is sufficient, since
4497 # it is in the source tree, and the library has not been built yet
4498 # but it would be included on the link line in the version check below
4499 # hence making the test fail.
4500 have_gmp=yes
4501fi
11b04d1f 4502
4b1cb4fe 4503# Specify a location for gmp
c6b750e1 4504
4b1cb4fe
DD
4505# Check whether --with-gmp-dir or --without-gmp-dir was given.
4506if test "${with_gmp_dir+set}" = set; then
4507 withval="$with_gmp_dir"
c6b750e1
DJ
4508 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4509Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4510echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4511Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4512 { (exit 1); exit 1; }; }
4513fi;
4b1cb4fe
DD
4514
4515
4b1cb4fe
DD
4516# Check whether --with-gmp or --without-gmp was given.
4517if test "${with_gmp+set}" = set; then
4518 withval="$with_gmp"
c6b750e1
DJ
4519
4520fi;
4b1cb4fe 4521
8a0d8a5c
PB
4522# Check whether --with-gmp_include or --without-gmp_include was given.
4523if test "${with_gmp_include+set}" = set; then
4524 withval="$with_gmp_include"
c6b750e1
DJ
4525
4526fi;
8a0d8a5c
PB
4527
4528# Check whether --with-gmp_lib or --without-gmp_lib was given.
4529if test "${with_gmp_lib+set}" = set; then
4530 withval="$with_gmp_lib"
8a0d8a5c 4531
c6b750e1 4532fi;
8a0d8a5c 4533
4b1cb4fe 4534
11b04d1f
DD
4535if test "x$with_gmp" != x; then
4536 gmplibs="-L$with_gmp/lib $gmplibs"
4537 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4538fi
8a0d8a5c
PB
4539if test "x$with_gmp_include" != x; then
4540 gmpinc="-I$with_gmp_include $gmpinc"
4541fi
4542if test "x$with_gmp_lib" != x; then
4543 gmplibs="-L$with_gmp_lib $gmplibs"
4544fi
4b900473
PB
4545if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4546 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4547 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4548 # Do not test the gmp version. Assume that it is sufficient, since
4549 # it is in the source tree, and the library has not been built yet
4550 # but it would be included on the link line in the version check below
4551 # hence making the test fail.
4552 have_gmp=yes
4553fi
4b1cb4fe 4554
ceb92e78 4555if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4556 have_gmp=yes
4557 saved_CFLAGS="$CFLAGS"
4558 CFLAGS="$CFLAGS $gmpinc"
4559 # Check GMP actually works
c6b750e1
DJ
4560 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4561echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4562
4563cat >conftest.$ac_ext <<_ACEOF
4564/* confdefs.h. */
4565_ACEOF
4566cat confdefs.h >>conftest.$ac_ext
4567cat >>conftest.$ac_ext <<_ACEOF
4568/* end confdefs.h. */
4b1cb4fe 4569#include "gmp.h"
c6b750e1
DJ
4570int
4571main ()
4572{
4b1cb4fe 4573
4b900473
PB
4574 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4575 choke me
4576 #endif
c6b750e1
DJ
4577
4578 ;
4579 return 0;
4580}
4581_ACEOF
4582rm -f conftest.$ac_objext
4583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584 (eval $ac_compile) 2>conftest.er1
4585 ac_status=$?
4586 grep -v '^ *+' conftest.er1 >conftest.err
4587 rm -f conftest.er1
4588 cat conftest.err >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } &&
4591 { ac_try='test -z "$ac_c_werror_flag"
4592 || test ! -s conftest.err'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 (eval $ac_try) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; } &&
4598 { ac_try='test -s conftest.$ac_objext'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 (eval $ac_try) 2>&5
4601 ac_status=$?
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4604 echo "$as_me:$LINENO: result: yes" >&5
4605echo "${ECHO_T}yes" >&6
4606else
4607 echo "$as_me: failed program was:" >&5
4608sed 's/^/| /' conftest.$ac_ext >&5
4609
4610echo "$as_me:$LINENO: result: no" >&5
4611echo "${ECHO_T}no" >&6; have_gmp=no
4612fi
4613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4614
4b900473
PB
4615 if test x"$have_gmp" = xyes; then
4616 saved_LIBS="$LIBS"
4617 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4618 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4619echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4620 cat >conftest.$ac_ext <<_ACEOF
4621/* confdefs.h. */
4622_ACEOF
4623cat confdefs.h >>conftest.$ac_ext
4624cat >>conftest.$ac_ext <<_ACEOF
4625/* end confdefs.h. */
9b134994 4626#include <gmp.h>
4b900473 4627 #include <mpfr.h>
c6b750e1
DJ
4628int
4629main ()
4630{
9b134994 4631
57c53b2b 4632 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4b900473
PB
4633 choke me
4634 #endif
a3ca38d2
DD
4635 mpfr_t n;
4636 mpfr_t x;
4b900473 4637 int t;
a3ca38d2
DD
4638 mpfr_init (n);
4639 mpfr_init (x);
4b900473
PB
4640 mpfr_atan2 (n, n, x, GMP_RNDN);
4641 mpfr_erfc (n, x, GMP_RNDN);
4642 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4643
4644 ;
4645 return 0;
4646}
4647_ACEOF
4648rm -f conftest.$ac_objext conftest$ac_exeext
4649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4650 (eval $ac_link) 2>conftest.er1
4651 ac_status=$?
4652 grep -v '^ *+' conftest.er1 >conftest.err
4653 rm -f conftest.er1
4654 cat conftest.err >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } &&
4657 { ac_try='test -z "$ac_c_werror_flag"
4658 || test ! -s conftest.err'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 (eval $ac_try) 2>&5
4661 ac_status=$?
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; } &&
4664 { ac_try='test -s conftest$ac_exeext'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 (eval $ac_try) 2>&5
4667 ac_status=$?
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; }; then
4670 cat >conftest.$ac_ext <<_ACEOF
4671/* confdefs.h. */
4672_ACEOF
4673cat confdefs.h >>conftest.$ac_ext
4674cat >>conftest.$ac_ext <<_ACEOF
4675/* end confdefs.h. */
4b1cb4fe 4676#include <gmp.h>
4b900473 4677 #include <mpfr.h>
c6b750e1
DJ
4678int
4679main ()
4680{
9dbaa842 4681
57c53b2b 4682 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
4b900473
PB
4683 choke me
4684 #endif
4685 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4686
4687 ;
4688 return 0;
4689}
4690_ACEOF
4691rm -f conftest.$ac_objext conftest$ac_exeext
4692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4693 (eval $ac_link) 2>conftest.er1
4694 ac_status=$?
4695 grep -v '^ *+' conftest.er1 >conftest.err
4696 rm -f conftest.er1
4697 cat conftest.err >&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } &&
4700 { ac_try='test -z "$ac_c_werror_flag"
4701 || test ! -s conftest.err'
4702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703 (eval $ac_try) 2>&5
4704 ac_status=$?
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); }; } &&
4707 { ac_try='test -s conftest$ac_exeext'
4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 (eval $ac_try) 2>&5
4710 ac_status=$?
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }; }; then
4713 echo "$as_me:$LINENO: result: yes" >&5
4714echo "${ECHO_T}yes" >&6
4715else
4716 echo "$as_me: failed program was:" >&5
4717sed 's/^/| /' conftest.$ac_ext >&5
4718
4719echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4720echo "${ECHO_T}buggy but acceptable" >&6
4721fi
4722rm -f conftest.err conftest.$ac_objext \
4723 conftest$ac_exeext conftest.$ac_ext
4724else
4725 echo "$as_me: failed program was:" >&5
4726sed 's/^/| /' conftest.$ac_ext >&5
4727
4728echo "$as_me:$LINENO: result: no" >&5
4729echo "${ECHO_T}no" >&6; have_gmp=no
4730fi
4731rm -f conftest.err conftest.$ac_objext \
4732 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4733 LIBS="$saved_LIBS"
4734 fi
4735 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4736
4b900473 4737 if test x$have_gmp != xyes; then
57c53b2b 4738 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
c6b750e1
DJ
4739Try the --with-gmp and/or --with-mpfr options to specify their locations.
4740Copies of these libraries' source code can be found at their respective
4741hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4742See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4743If you obtained GMP and/or MPFR from a vendor distribution package, make
4744sure that you have installed both the libraries and the header files.
4745They may be located in separate packages." >&5
57c53b2b 4746echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
9dbaa842
DD
4747Try the --with-gmp and/or --with-mpfr options to specify their locations.
4748Copies of these libraries' source code can be found at their respective
4749hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4750See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4751If you obtained GMP and/or MPFR from a vendor distribution package, make
4752sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4753They may be located in separate packages." >&2;}
4754 { (exit 1); exit 1; }; }
4b900473 4755 fi
9dbaa842
DD
4756fi
4757
11b04d1f 4758# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4759
4760
4761
947f426e 4762# By default, C is the only stage 1 language.
9b134994 4763stage1_languages=,c,
1d39f329 4764
9e07f89d
NN
4765# Figure out what language subdirectories are present.
4766# Look if the user specified --enable-languages="..."; if not, use
4767# the environment variable $LANGUAGES if defined. $LANGUAGES might
4768# go away some day.
4769# NB: embedded tabs in this IF block -- do not untabify
4770if test -d ${srcdir}/gcc; then
4771 if test x"${enable_languages+set}" != xset; then
4772 if test x"${LANGUAGES+set}" = xset; then
4773 enable_languages="${LANGUAGES}"
4774 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4775 else
4776 enable_languages=all
4777 fi
4778 else
4779 if test x"${enable_languages}" = x ||
4780 test x"${enable_languages}" = xyes;
4781 then
4782 echo configure.in: --enable-languages needs at least one language argument 1>&2
4783 exit 1
4784 fi
4785 fi
4786 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4787
096f7d00
DE
4788 # 'f95' is the old name for the 'fortran' language. We issue a warning
4789 # and make the substitution.
4790 case ,${enable_languages}, in
4791 *,f95,*)
4792 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4793 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4794 ;;
4795 esac
4796
9e07f89d
NN
4797 # First scan to see if an enabled language requires some other language.
4798 # We assume that a given config-lang.in will list all the language
4799 # front ends it requires, even if some are required indirectly.
4800 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4801 case ${lang_frag} in
4802 ..) ;;
4803 # The odd quoting in the next line works around
4804 # an apparent bug in bash 1.12 on linux.
4805 ${srcdir}/gcc/[*]/config-lang.in) ;;
4806 *)
4807 # From the config-lang.in, get $language, $lang_requires
4808 language=
4809 lang_requires=
4810 . ${lang_frag}
4811 for other in ${lang_requires} ; do
4812 case ,${enable_languages}, in
4813 *,$other,*) ;;
4814 *,all,*) ;;
4815 *,$language,*)
4816 echo " \`$other' language required by \`$language'; enabling" 1>&2
4817 enable_languages="${enable_languages},${other}"
4818 ;;
4819 esac
4820 done
4821 ;;
4822 esac
4823 done
4824
9b134994 4825 new_enable_languages=,c,
9e07f89d 4826 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4827 potential_languages=,c,
9e07f89d
NN
4828
4829 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4830 case ${lang_frag} in
4831 ..) ;;
4832 # The odd quoting in the next line works around
4833 # an apparent bug in bash 1.12 on linux.
4834 ${srcdir}/gcc/[*]/config-lang.in) ;;
4835 *)
c6b750e1 4836 # From the config-lang.in, get $language, $target_libs,
1d39f329 4837 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4838 language=
4839 target_libs=
4840 lang_dirs=
64ce424c 4841 subdir_requires=
9b134994
PB
4842 boot_language=no
4843 build_by_default=yes
9e07f89d 4844 . ${lang_frag}
9b134994
PB
4845 if test x${language} = x; then
4846 echo "${lang_frag} doesn't set \$language." 1>&2
4847 exit 1
4848 fi
4849
4850 case ,${enable_languages}, in
4851 *,${language},*)
9e07f89d
NN
4852 # Language was explicitly selected; include it.
4853 add_this_lang=yes
4854 ;;
9b134994
PB
4855 *,all,*)
4856 # 'all' was selected, select it if it is a default language
4857 add_this_lang=${build_by_default}
9e07f89d
NN
4858 ;;
4859 *)
4860 add_this_lang=no
4861 ;;
4862 esac
4b1cb4fe 4863
64ce424c 4864 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4865 for i in $subdir_requires; do
3d3adb43 4866 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4867 case ,${enable_languages}, in
4868 *,${language},*)
4869 # Specifically requested language; tell them.
c6b750e1
DJ
4870 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4871echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4872 { (exit 1); exit 1; }; }
64ce424c
PB
4873 ;;
4874 *)
4875 # Silently disable.
9b134994 4876 add_this_lang=unsupported
64ce424c
PB
4877 ;;
4878 esac
4879 done
4880
9b134994
PB
4881 # Disable Ada if no preexisting GNAT is available.
4882 case ,${enable_languages},:${language}:${have_gnat} in
4883 *,${language},*:ada:no)
4884 # Specifically requested language; tell them.
c6b750e1
DJ
4885 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4886echo "$as_me: error: GNAT is required to build $language" >&2;}
4887 { (exit 1); exit 1; }; }
9b134994
PB
4888 ;;
4889 *:ada:no)
4890 # Silently disable.
4891 add_this_lang=unsupported
4892 ;;
4893 esac
4894
59f7ec45
HPN
4895 # Disable a language that is unsupported by the target.
4896 case " $unsupported_languages " in
4897 *" $language "*)
9b134994 4898 add_this_lang=unsupported
59f7ec45
HPN
4899 ;;
4900 esac
4901
4b1cb4fe 4902 case $add_this_lang in
9b134994 4903 unsupported)
9e07f89d 4904 # Remove language-dependent dirs.
1d39f329
NN
4905 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4906 ;;
9b134994
PB
4907 no)
4908 # Remove language-dependent dirs; still show language as supported.
4909 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4910 potential_languages="${potential_languages}${language},"
4911 ;;
4912 yes)
4913 new_enable_languages="${new_enable_languages}${language},"
4914 potential_languages="${potential_languages}${language},"
1d39f329
NN
4915 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4916 case ${boot_language} in
4917 yes)
4fa63067 4918 # Add to (comma-separated) list of stage 1 languages.
9b134994 4919 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4920 ;;
4921 esac
4922 ;;
9e07f89d
NN
4923 esac
4924 ;;
4925 esac
4926 done
4927
9b134994
PB
4928 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4929if test "${enable_stage1_languages+set}" = set; then
4930 enableval="$enable_stage1_languages"
4931 case ,${enable_stage1_languages}, in
4932 ,no,|,,)
4933 # Set it to something that will have no effect in the loop below
4934 enable_stage1_languages=c ;;
4935 ,yes,)
4936 enable_stage1_languages=`echo $new_enable_languages | \
4937 sed -e "s/^,//" -e "s/,$//" ` ;;
4938 *,all,*)
4939 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4940 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4941 esac
4942
4943 # Add "good" languages from enable_stage1_languages to stage1_languages,
4944 # while "bad" languages go in missing_languages. Leave no duplicates.
4945 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4946 case $potential_languages in
4947 *,$i,*)
4948 case $stage1_languages in
4949 *,$i,*) ;;
4950 *) stage1_languages="$stage1_languages$i," ;;
4951 esac ;;
4952 *)
4953 case $missing_languages in
4954 *,$i,*) ;;
4955 *) missing_languages="$missing_languages$i," ;;
4956 esac ;;
4957 esac
4958 done
c6b750e1 4959fi;
9b134994
PB
4960
4961 # Remove leading/trailing commas that were added for simplicity
4962 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4963 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4964 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4965 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4966
9e07f89d 4967 if test "x$missing_languages" != x; then
c6b750e1 4968 { { echo "$as_me:$LINENO: error:
27258dd4 4969The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4970Supported languages are: ${potential_languages}" >&5
4971echo "$as_me: error:
4972The following requested languages could not be built: ${missing_languages}
4973Supported languages are: ${potential_languages}" >&2;}
4974 { (exit 1); exit 1; }; }
9e07f89d 4975 fi
9e07f89d
NN
4976 if test "x$new_enable_languages" != "x$enable_languages"; then
4977 echo The following languages will be built: ${new_enable_languages}
9b134994 4978 enable_languages="$new_enable_languages"
9e07f89d 4979 fi
9b134994 4980
c6b750e1 4981
81ec575a 4982 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
4983fi
4984
a6df5a19
PB
4985# Handle --disable-<component> generically.
4986for dir in $configdirs $build_configdirs $target_configdirs ; do
4987 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
4988 varname=`echo $dirname | sed -e s/+/_/g`
4989 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
4990 noconfigdirs="$noconfigdirs $dir"
4991 fi
4992done
4993
4f0ef2d8
CD
4994# Check for Boehm's garbage collector
4995# Check whether --enable-objc-gc or --disable-objc-gc was given.
4996if test "${enable_objc_gc+set}" = set; then
4997 enableval="$enable_objc_gc"
4998 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4999 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
5000 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5001echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5002 { (exit 1); exit 1; }; }
4f0ef2d8
CD
5003 ;;
5004esac
c6b750e1 5005fi;
4f0ef2d8
CD
5006
5007# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
5008case ,${enable_languages},:${enable_objc_gc} in
5009 *,objc,*:yes)
4f0ef2d8
CD
5010 # Keep target-boehm-gc if requested for Objective-C.
5011 ;;
4f0ef2d8 5012 *)
d42c4017
DA
5013 # Otherwise remove target-boehm-gc depending on target-libjava.
5014 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5015 noconfigdirs="$noconfigdirs target-boehm-gc"
5016 fi
4f0ef2d8
CD
5017 ;;
5018esac
5019
caeba88f
AL
5020# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5021# $build_configdirs and $target_configdirs.
9e07f89d
NN
5022# If we have the source for $noconfigdirs entries, add them to $notsupp.
5023
5024notsupp=""
5025for dir in . $skipdirs $noconfigdirs ; do
caeba88f 5026 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
5027 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5028 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5029 if test -r $srcdir/$dirname/configure ; then
5030 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5031 true
5032 else
5033 notsupp="$notsupp $dir"
5034 fi
5035 fi
5036 fi
caeba88f
AL
5037 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5038 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5039 if test -r $srcdir/$dirname/configure ; then
5040 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5041 true
5042 else
5043 notsupp="$notsupp $dir"
5044 fi
5045 fi
5046 fi
9e07f89d
NN
5047 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5048 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5049 if test -r $srcdir/$dirname/configure ; then
5050 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5051 true
5052 else
5053 notsupp="$notsupp $dir"
5054 fi
5055 fi
5056 fi
5057done
5058
5059# Sometimes the tools are distributed with libiberty but with no other
5060# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 5061# Don't let libgcc imply libiberty either.
9e07f89d 5062if test -n "${target_configdirs}" ; then
f86e35b8 5063 libgcc=
9e07f89d
NN
5064 others=
5065 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
5066 if test "$i" = "libgcc"; then
5067 libgcc=target-libgcc
5068 elif test "$i" != "libiberty" ; then
9e07f89d
NN
5069 if test -r $srcdir/$i/configure ; then
5070 others=yes;
5071 break;
5072 fi
5073 fi
5074 done
5075 if test -z "${others}" ; then
f86e35b8 5076 target_configdirs=$libgcc
9e07f89d
NN
5077 fi
5078fi
5079
5080# Quietly strip out all directories which aren't configurable in this tree.
5081# This relies on all configurable subdirectories being autoconfiscated, which
5082# is now the case.
6a9cf61e
PB
5083build_configdirs_all="$build_configdirs"
5084build_configdirs=
5085for i in ${build_configdirs_all} ; do
c6b750e1 5086 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5087 if test -f ${srcdir}/$j/configure ; then
5088 build_configdirs="${build_configdirs} $i"
5089 fi
5090done
5091
9e07f89d
NN
5092configdirs_all="$configdirs"
5093configdirs=
5094for i in ${configdirs_all} ; do
5095 if test -f ${srcdir}/$i/configure ; then
5096 configdirs="${configdirs} $i"
5097 fi
5098done
6a9cf61e 5099
9e07f89d
NN
5100target_configdirs_all="$target_configdirs"
5101target_configdirs=
5102for i in ${target_configdirs_all} ; do
c6b750e1 5103 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5104 if test -f ${srcdir}/$j/configure ; then
5105 target_configdirs="${target_configdirs} $i"
5106 fi
5107done
5108
5109# Produce a warning message for the subdirs we can't configure.
5110# This isn't especially interesting in the Cygnus tree, but in the individual
5111# FSF releases, it's important to let people know when their machine isn't
5112# supported by the one or two programs in a package.
5113
5114if test -n "${notsupp}" && test -z "${norecursion}" ; then
5115 # If $appdirs is non-empty, at least one of those directories must still
5116 # be configured, or we error out. (E.g., if the gas release supports a
5117 # specified target in some subdirs but not the gas subdir, we shouldn't
5118 # pretend that all is well.)
5119 if test -n "$appdirs" ; then
5120 for dir in $appdirs ; do
5121 if test -r $dir/Makefile.in ; then
5122 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5123 appdirs=""
5124 break
5125 fi
6a9cf61e 5126 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5127 appdirs=""
5128 break
5129 fi
5130 fi
5131 done
5132 if test -n "$appdirs" ; then
5133 echo "*** This configuration is not supported by this package." 1>&2
5134 exit 1
5135 fi
5136 fi
5137 # Okay, some application will build, or we don't care to check. Still
5138 # notify of subdirs not getting built.
5139 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5140 echo " ${notsupp}" 1>&2
5141 echo " (Any other directories should still work fine.)" 1>&2
5142fi
5143
5144case "$host" in
5145 *msdosdjgpp*)
5146 enable_gdbtk=no ;;
5147esac
5148
18f6b6ee
PB
5149# To find our prefix, in gcc_cv_tool_prefix.
5150
5151# The user is always right.
5152if test "${PATH_SEPARATOR+set}" != set; then
5153 echo "#! /bin/sh" >conf$$.sh
5154 echo "exit 0" >>conf$$.sh
5155 chmod +x conf$$.sh
5156 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5157 PATH_SEPARATOR=';'
5158 else
5159 PATH_SEPARATOR=:
5160 fi
5161 rm -f conf$$.sh
5162fi
5163
5164
5165
5166if test "x$exec_prefix" = xNONE; then
5167 if test "x$prefix" = xNONE; then
5168 gcc_cv_tool_prefix=$ac_default_prefix
5169 else
5170 gcc_cv_tool_prefix=$prefix
5171 fi
5172else
5173 gcc_cv_tool_prefix=$exec_prefix
5174fi
5175
5176# If there is no compiler in the tree, use the PATH only. In any
5177# case, if there is no compiler in the tree nobody should use
5178# AS_FOR_TARGET and LD_FOR_TARGET.
5179if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5180 gcc_version=`cat $srcdir/gcc/BASE-VER`
5181 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5182 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5183 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5184 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5185 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5186 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5187else
5188 gcc_cv_tool_dirs=
5189fi
5190
5191if test x$build = x$target && test -n "$md_exec_prefix"; then
5192 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5193fi
5194
5195
5196
9e07f89d
NN
5197copy_dirs=
5198
c6b750e1 5199
a19b6204
MM
5200# Check whether --with-build-sysroot or --without-build-sysroot was given.
5201if test "${with_build_sysroot+set}" = set; then
5202 withval="$with_build_sysroot"
5203 if test x"$withval" != x ; then
5204 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5205 fi
5206else
5207 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5208fi;
a19b6204
MM
5209
5210
8a6ee3ab
JM
5211
5212# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5213if test "${with_debug_prefix_map+set}" = set; then
5214 withval="$with_debug_prefix_map"
5215 if test x"$withval" != x; then
5216 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5217 for debug_map in $withval; do
5218 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5219 done
5220 fi
5221else
5222 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5223fi;
5224
5225
7f6ef0c0
PB
5226# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5227# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5228# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5229# We want to ensure that TARGET libraries (which we know are built with
5230# gcc) are built with "-O2 -g", so include those options when setting
5231# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5232if test "x$CFLAGS_FOR_TARGET" = x; then
5233 CFLAGS_FOR_TARGET=$CFLAGS
5234 case " $CFLAGS " in
5235 *" -O2 "*) ;;
5236 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5237 esac
5238 case " $CFLAGS " in
5239 *" -g "* | *" -g3 "*) ;;
5240 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5241 esac
5242fi
5243
5244
5245if test "x$CXXFLAGS_FOR_TARGET" = x; then
5246 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5247 case " $CXXFLAGS " in
5248 *" -O2 "*) ;;
5249 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5250 esac
5251 case " $CXXFLAGS " in
5252 *" -g "* | *" -g3 "*) ;;
5253 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5254 esac
5255fi
5256
5257
9e07f89d
NN
5258# Handle --with-headers=XXX. If the value is not "yes", the contents of
5259# the named directory are copied to $(tooldir)/sys-include.
5260if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5261 if test x${is_cross_compiler} = xno ; then
5262 echo 1>&2 '***' --with-headers is only supported when cross compiling
5263 exit 1
5264 fi
5265 if test x"${with_headers}" != xyes ; then
18f6b6ee 5266 x=${gcc_cv_tool_prefix}
c6b750e1 5267 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5268 fi
5269fi
5270
5271# Handle --with-libs=XXX. If the value is not "yes", the contents of
5272# the name directories are copied to $(tooldir)/lib. Multiple directories
5273# are permitted.
5274if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5275 if test x${is_cross_compiler} = xno ; then
5276 echo 1>&2 '***' --with-libs is only supported when cross compiling
5277 exit 1
5278 fi
5279 if test x"${with_libs}" != xyes ; then
5280 # Copy the libraries in reverse order, so that files in the first named
5281 # library override files in subsequent libraries.
18f6b6ee 5282 x=${gcc_cv_tool_prefix}
9e07f89d 5283 for l in ${with_libs}; do
c6b750e1 5284 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5285 done
5286 fi
5287fi
5288
2429c060
PB
5289# Set with_gnu_as and with_gnu_ld as appropriate.
5290#
5291# This is done by determining whether or not the appropriate directory
5292# is available, and by checking whether or not specific configurations
5293# have requested that this magic not happen.
c6b750e1
DJ
5294#
5295# The command line options always override the explicit settings in
2429c060
PB
5296# configure.in, and the settings in configure.in override this magic.
5297#
c6b750e1 5298# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5299# want to do that, then you should use the --without-gnu-as and
5300# --without-gnu-ld options for the configure script.
5301
5302if test x${use_gnu_as} = x &&
5303 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5304 with_gnu_as=yes
5305 extra_host_args="$extra_host_args --with-gnu-as"
5306fi
5307
5308if test x${use_gnu_ld} = x &&
93f9b408 5309 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
5310 with_gnu_ld=yes
5311 extra_host_args="$extra_host_args --with-gnu-ld"
5312fi
5313
5314# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5315# can detect this case.
5316
5317if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5318 with_newlib=yes
5319 extra_host_args="$extra_host_args --with-newlib"
5320fi
5321
9e07f89d
NN
5322# Handle ${copy_dirs}
5323set fnord ${copy_dirs}
5324shift
5325while test $# != 0 ; do
5326 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5327 :
5328 else
5329 echo Copying $1 to $2
5330
5331 # Use the install script to create the directory and all required
5332 # parent directories.
5333 if test -d $2 ; then
5334 :
5335 else
5336 echo >config.temp
5337 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5338 fi
5339
5340 # Copy the directory, assuming we have tar.
5341 # FIXME: Should we use B in the second tar? Not all systems support it.
5342 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5343
5344 # It is the responsibility of the user to correctly adjust all
5345 # symlinks. If somebody can figure out how to handle them correctly
5346 # here, feel free to add the code.
5347
5348 echo $1 > $2/COPIED
5349 fi
5350 shift; shift
5351done
5352
2429c060
PB
5353# Determine a target-dependent exec_prefix that the installed
5354# gcc will search in. Keep this list sorted by triplet, with
5355# the *-*-osname triplets last.
5356md_exec_prefix=
5357case "${target}" in
5358 alpha*-*-*vms*)
5359 md_exec_prefix=/gnu/lib/gcc-lib
5360 ;;
521ec477 5361 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5362 md_exec_prefix=/dev/env/DJDIR/bin
5363 ;;
521ec477 5364 i[34567]86-*-sco3.2v5*)
2429c060
PB
5365 if test $with_gnu_as = yes; then
5366 md_exec_prefix=/usr/gnu/bin
5367 else
5368 md_exec_prefix=/usr/ccs/bin/elf
5369 fi
5370 ;;
5371
5372 mn10300-*-* | \
5373 powerpc-*-chorusos* | \
5374 powerpc*-*-eabi* | \
5375 powerpc*-*-sysv* | \
5376 powerpc*-*-kaos* | \
5377 s390x-ibm-tpf*)
5378 md_exec_prefix=/usr/ccs/bin
5379 ;;
5380 sparc64-*-elf*)
5381 ;;
5382 v850*-*-*)
5383 md_exec_prefix=/usr/ccs/bin
5384 ;;
8b66833e 5385 xtensa*-*-elf*)
2429c060
PB
5386 ;;
5387
5388 *-*-beos* | \
5389 *-*-elf* | \
5390 *-*-hpux* | \
5391 *-*-netware* | \
5392 *-*-nto-qnx* | \
5393 *-*-rtems* | \
5394 *-*-solaris2* | \
521ec477 5395 *-*-sysv[45]* | \
2429c060
PB
5396 *-*-vxworks* | \
5397 *-wrs-windiss)
5398 md_exec_prefix=/usr/ccs/bin
5399 ;;
5400esac
5401
a0da8069
NN
5402extra_arflags_for_target=
5403extra_nmflags_for_target=
5404extra_ranlibflags_for_target=
5405target_makefile_frag=/dev/null
5406case "${target}" in
4e206d7e
DB
5407 mep*-*-*)
5408 target_makefile_frag="config/mt-mep"
5409 ;;
77d7106f
AM
5410 spu-*-*)
5411 target_makefile_frag="config/mt-spu"
5412 ;;
429acdec
RS
5413 mips*-sde-elf*)
5414 target_makefile_frag="config/mt-sde"
5415 ;;
f3b1e08e
RS
5416 mipsisa*-*-elfoabi*)
5417 target_makefile_frag="config/mt-mips-elfoabi"
5418 ;;
2a3124ca 5419 *-*-netware*)
a0da8069
NN
5420 target_makefile_frag="config/mt-netware"
5421 ;;
3d6dfe0f
NN
5422 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5423 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5424 ;;
5425 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5426 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5427 # commands to handle both 32-bit and 64-bit objects. These flags are
5428 # harmless if we're using GNU nm or ar.
5429 extra_arflags_for_target=" -X32_64"
5430 extra_nmflags_for_target=" -B -X32_64"
5431 ;;
5432 *-*-darwin*)
5433 # ranlib from Darwin requires the -c flag to look at common symbols.
5434 extra_ranlibflags_for_target=" -c"
5435 ;;
5436 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5437 target_makefile_frag="config/mt-wince"
5438 ;;
5439esac
5440
5441alphaieee_frag=/dev/null
5442case $target in
5443 alpha*-*-*)
5444 # This just makes sure to use the -mieee option to build target libs.
5445 # This should probably be set individually by each library.
5446 alphaieee_frag="config/mt-alphaieee"
5447 ;;
5448esac
5449
5450# If --enable-target-optspace always use -Os instead of -O2 to build
5451# the target libraries, similarly if it is not specified, use -Os
5452# on selected platforms.
5453ospace_frag=/dev/null
5454case "${enable_target_optspace}:${target}" in
5455 yes:*)
5456 ospace_frag="config/mt-ospace"
5457 ;;
5458 :d30v-*)
5459 ospace_frag="config/mt-d30v"
5460 ;;
5461 :m32r-* | :d10v-* | :fr30-*)
5462 ospace_frag="config/mt-ospace"
5463 ;;
5464 no:* | :*)
5465 ;;
5466 *)
5467 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5468 ;;
5469esac
5470
a0da8069
NN
5471# Default to using --with-stabs for certain targets.
5472if test x${with_stabs} = x ; then
5473 case "${target}" in
e31d1ea3 5474 mips*-*-irix[56]*)
a0da8069
NN
5475 ;;
5476 mips*-*-* | alpha*-*-osf*)
5477 with_stabs=yes;
5478 extra_host_args="${extra_host_args} --with-stabs"
5479 ;;
5480 esac
5481fi
5482
5483# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5484# them automatically.
5485case "${host}" in
c6b750e1 5486 hppa*64*-*-hpux11*)
a0da8069
NN
5487 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5488 ;;
5489esac
5490
a0da8069
NN
5491# Some systems (e.g., one of the i386-aix systems the gas testers are
5492# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5493tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5494build_tooldir=${tooldir}
5495
a0da8069
NN
5496# Create a .gdbinit file which runs the one in srcdir
5497# and tells GDB to look there for source files.
5498
5499if test -r ${srcdir}/.gdbinit ; then
5500 case ${srcdir} in
5501 .) ;;
5502 *) cat > ./.gdbinit <<EOF
5503# ${NO_EDIT}
5504dir ${srcdir}
5505dir .
5506source ${srcdir}/.gdbinit
5507EOF
5508 ;;
5509 esac
5510fi
5511
a0da8069
NN
5512# Make sure that the compiler is able to generate an executable. If it
5513# can't, we are probably in trouble. We don't care whether we can run the
5514# executable--we might be using a cross compiler--we only care whether it
5515# can be created. At this point the main configure script has set CC.
5516we_are_ok=no
5517echo "int main () { return 0; }" > conftest.c
5518${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5519if test $? = 0 ; then
5520 if test -s conftest || test -s conftest.exe ; then
5521 we_are_ok=yes
5522 fi
c6b750e1 5523fi
a0da8069
NN
5524case $we_are_ok in
5525 no)
5526 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5527 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5528 rm -f conftest*
5529 exit 1
5530 ;;
5531esac
5532rm -f conftest*
5533
5534# The Solaris /usr/ucb/cc compiler does not appear to work.
5535case "${host}" in
5536 sparc-sun-solaris2*)
5537 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5538 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5539 could_use=
5540 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5541 if test -d /opt/cygnus/bin ; then
5542 if test "$could_use" = "" ; then
5543 could_use="/opt/cygnus/bin"
5544 else
5545 could_use="$could_use or /opt/cygnus/bin"
5546 fi
5547 fi
5548 if test "$could_use" = "" ; then
5549 echo "Warning: compilation may fail because you're using"
5550 echo "/usr/ucb/cc. You should change your PATH or CC "
5551 echo "variable and rerun configure."
5552 else
5553 echo "Warning: compilation may fail because you're using"
5554 echo "/usr/ucb/cc, when you should use the C compiler from"
5555 echo "$could_use. You should change your"
5556 echo "PATH or CC variable and rerun configure."
5557 fi
5558 fi
5559 ;;
5560esac
5561
a0da8069
NN
5562case "${host}" in
5563 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5564 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5565 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5566esac
5567
5568# Record target_configdirs and the configure arguments for target and
5569# build configuration in Makefile.
5570target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5571build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5572
a0da8069
NN
5573# Determine whether gdb needs tk/tcl or not.
5574# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5575# and in that case we want gdb to be built without tk. Ugh!
5576# In fact I believe gdb is the *only* package directly dependent on tk,
5577# so we should be able to put the 'maybe's in unconditionally and
5578# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5579# 100% sure that that's safe though.
c180f501 5580
675c6968 5581gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5582case "$enable_gdbtk" in
5583 no)
5584 GDB_TK="" ;;
c180f501
AC
5585 yes)
5586 GDB_TK="${gdb_tk}" ;;
a0da8069 5587 *)
c180f501
AC
5588 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5589 # distro. Eventually someone will fix this and move Insight, nee
5590 # gdbtk to a separate directory.
5591 if test -d ${srcdir}/gdb/gdbtk ; then
5592 GDB_TK="${gdb_tk}"
5593 else
5594 GDB_TK=""
5595 fi
5596 ;;
a0da8069 5597esac
907be67c
DJ
5598CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5599INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5600
6bd3dfaa 5601# Strip out unwanted targets.
dd12c3a8
NN
5602
5603# While at that, we remove Makefiles if we were started for recursive
5604# configuration, so that the top-level Makefile reconfigures them,
5605# like we used to do when configure itself was recursive.
dd12c3a8 5606
6bd3dfaa
PB
5607# Loop over modules. $extrasub must be used with care, limiting as
5608# much as possible the usage of range addresses. That's because autoconf
5609# splits the sed script to overcome limits in the number of commands,
5610# and relying on carefully-timed sed passes may turn out to be very hard
5611# to maintain later. In this particular case, you just have to be careful
5612# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5613
319cab08
PB
5614# Check whether --enable-bootstrap or --disable-bootstrap was given.
5615if test "${enable_bootstrap+set}" = set; then
5616 enableval="$enable_bootstrap"
c6b750e1 5617
319cab08 5618else
9cb3fa6f 5619 enable_bootstrap=default
c6b750e1 5620fi;
319cab08 5621
9cb3fa6f
PB
5622# Issue errors and warnings for invalid/strange bootstrap combinations.
5623case "$configdirs" in
5624 *gcc*) have_compiler=yes ;;
5625 *) have_compiler=no ;;
5626esac
5627
5628case "$have_compiler:$host:$target:$enable_bootstrap" in
5629 *:*:*:no) ;;
5630
0aed8855 5631 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5632 # and we are in a native configuration.
5633 yes:$build:$build:default)
0aed8855 5634 enable_bootstrap=yes ;;
9cb3fa6f
PB
5635
5636 *:*:*:default)
5637 enable_bootstrap=no ;;
5638
5639 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5640 yes:$build:$build:yes)
9cb3fa6f
PB
5641 ;;
5642
5643 # Other configurations, but we have a compiler. Assume the user knows
5644 # what he's doing.
80911fe1 5645 yes:*:*:yes)
c6b750e1
DJ
5646 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5647echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5648 ;;
5649
5650 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5651 no:*:*:yes)
c6b750e1
DJ
5652 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5653echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5654 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5655
5656 # Fail if wrong command line
5657 *)
c6b750e1
DJ
5658 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5659echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5660 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5661 ;;
5662esac
5663
5664# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5665case "$enable_bootstrap" in
5666 yes)
498d4a71 5667 bootstrap_suffix=bootstrap ;;
319cab08 5668 no)
498d4a71 5669 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5670esac
5671
6a9cf61e 5672for module in ${build_configdirs} ; do
498d4a71
CF
5673 if test -z "${no_recursion}" \
5674 && test -f ${build_subdir}/${module}/Makefile; then
5675 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5676 rm -f ${build_subdir}/${module}/Makefile
5677 fi
5678 extrasub="$extrasub
5679/^@if build-$module\$/d
5680/^@endif build-$module\$/d
5681/^@if build-$module-$bootstrap_suffix\$/d
5682/^@endif build-$module-$bootstrap_suffix\$/d"
5683done
5684for module in ${configdirs} ; do
80911fe1 5685 if test -z "${no_recursion}"; then
8cf39b1b 5686 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5687 if test -f ${file}; then
5688 echo 1>&2 "*** removing ${file} to force reconfigure"
5689 rm -f ${file}
5690 fi
5691 done
498d4a71
CF
5692 fi
5693 extrasub="$extrasub
5694/^@if $module\$/d
5695/^@endif $module\$/d
5696/^@if $module-$bootstrap_suffix\$/d
5697/^@endif $module-$bootstrap_suffix\$/d"
5698done
5699for module in ${target_configdirs} ; do
5700 if test -z "${no_recursion}" \
5701 && test -f ${target_subdir}/${module}/Makefile; then
5702 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5703 rm -f ${target_subdir}/${module}/Makefile
5704 fi
5705 extrasub="$extrasub
5706/^@if target-$module\$/d
5707/^@endif target-$module\$/d
5708/^@if target-$module-$bootstrap_suffix\$/d
5709/^@endif target-$module-$bootstrap_suffix\$/d"
5710done
5711
6bd3dfaa
PB
5712extrasub="$extrasub
5713/^@if /,/^@endif /d"
a0da8069
NN
5714
5715# Create the serialization dependencies. This uses a temporary file.
5716
e6bfb94a
AO
5717# Check whether --enable-serial-configure or --disable-serial-configure was given.
5718if test "${enable_serial_configure+set}" = set; then
5719 enableval="$enable_serial_configure"
e6bfb94a 5720
c6b750e1 5721fi;
e6bfb94a 5722
1047cb91
DD
5723case ${enable_serial_configure} in
5724 yes)
5725 enable_serial_build_configure=yes
5726 enable_serial_host_configure=yes
5727 enable_serial_target_configure=yes
5728 ;;
5729esac
5730
a0da8069
NN
5731# These force 'configure's to be done one at a time, to avoid problems
5732# with contention over a shared config.cache.
5733rm -f serdep.tmp
e6bfb94a 5734echo '# serdep.tmp' > serdep.tmp
a0da8069 5735olditem=
1047cb91 5736test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5737for item in ${build_configdirs} ; do
5738 case ${olditem} in
5739 "") ;;
e6bfb94a 5740 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5741 esac
5742 olditem=${item}
5743done
5744olditem=
1047cb91 5745test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5746for item in ${configdirs} ; do
5747 case ${olditem} in
5748 "") ;;
e6bfb94a 5749 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5750 esac
5751 olditem=${item}
5752done
5753olditem=
1047cb91 5754test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5755for item in ${target_configdirs} ; do
5756 case ${olditem} in
5757 "") ;;
e6bfb94a 5758 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5759 esac
5760 olditem=${item}
5761done
5762serialization_dependencies=serdep.tmp
5763
5764
e6bfb94a 5765# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5766# target, nonopt, and variable assignments. These are the ones we
5767# might not want to pass down to subconfigures. Also strip
5768# program-prefix, program-suffix, and program-transform-name, so that
5769# we can pass down a consistent program-transform-name.
5770baseargs=
5771keep_next=no
5772skip_next=no
5773eval "set -- $ac_configure_args"
18f6b6ee
PB
5774for ac_arg
5775do
c6b750e1
DJ
5776 if test X"$skip_next" = X"yes"; then
5777 skip_next=no
5778 continue
5779 fi
5780 if test X"$keep_next" = X"yes"; then
5781 case $ac_arg in
5782 *\'*)
5783 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5784 esac
5785 baseargs="$baseargs '$ac_arg'"
5786 keep_next=no
5787 continue
5788 fi
5789
5790 # Handle separated arguments. Based on the logic generated by
5791 # autoconf 2.59.
5792 case $ac_arg in
5793 *=* | --config-cache | -C | -disable-* | --disable-* \
5794 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5795 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5796 | -with-* | --with-* | -without-* | --without-* | --x)
5797 separate_arg=no
5798 ;;
5799 -*)
5800 separate_arg=yes
5801 ;;
5802 *)
5803 separate_arg=no
5804 ;;
5805 esac
5806
5807 case "$ac_arg" in
5808 --no*)
5809 continue
5810 ;;
5811 --c* | \
5812 --sr* | \
5813 --ho* | \
5814 --bu* | \
5815 --t* | \
5816 --program-* | \
5817 -cache_file* | \
5818 -srcdir* | \
5819 -host* | \
5820 -build* | \
5821 -target* | \
5822 -program-prefix* | \
5823 -program-suffix* | \
5824 -program-transform-name* )
5825 skip_next=$separate_arg
5826 continue
5827 ;;
5828 -*)
5829 # An option. Add it.
5830 case $ac_arg in
5831 *\'*)
5832 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5833 esac
5834 baseargs="$baseargs '$ac_arg'"
5835 keep_next=$separate_arg
5836 ;;
5837 *)
5838 # Either a variable assignment, or a nonopt (triplet). Don't
5839 # pass it down; let the Makefile handle this.
5840 continue
5841 ;;
5842 esac
5843done
5844# Remove the initial space we just introduced and, as these will be
5845# expanded by make, quote '$'.
5846baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5847
f27d4f92
DJ
5848# Add in --program-transform-name, after --program-prefix and
5849# --program-suffix have been applied to it. Autoconf has already
5850# doubled dollar signs and backslashes in program_transform_name; we want
5851# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5852# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5853# Also, because we want to override the logic in subdir configure scripts to
5854# choose program_transform_name, replace any s,x,x, with s,y,y,.
5855sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5856${program_transform_name}
5857EOF_SED
5858gcc_transform_name=`cat conftestsed.out`
5859rm -f conftestsed.out
5860baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
5861if test "$silent" = yes; then
5862 baseargs="$baseargs --silent"
5863fi
f27d4f92 5864
a0da8069
NN
5865# For the build-side libraries, we just need to pretend we're native,
5866# and not use the same cache file. Multilibs are neither needed nor
5867# desired.
4b900473 5868build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5869
5870# For host modules, accept cache file option, or specification as blank.
5871case "${cache_file}" in
5872"") # empty
5873 cache_file_option="" ;;
5874/* | [A-Za-z]:[\\/]* ) # absolute path
5875 cache_file_option="--cache-file=${cache_file}" ;;
5876*) # relative path
5877 cache_file_option="--cache-file=../${cache_file}" ;;
5878esac
5879
82252c06
NN
5880# Host dirs don't like to share a cache file either, horribly enough.
5881# This seems to be due to autoconf 2.5x stupidity.
4b900473 5882host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5883
5884target_configargs=${baseargs}
5885
5886# Passing a --with-cross-host argument lets the target libraries know
5887# whether they are being built with a cross-compiler or being built
5888# native. However, it would be better to use other mechanisms to make the
5889# sorts of decisions they want to make on this basis. Please consider
5890# this option to be deprecated. FIXME.
5891if test x${is_cross_compiler} = xyes ; then
c6b750e1 5892 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5893fi
5894
5895# Default to --enable-multilib.
5896if test x${enable_multilib} = x ; then
5897 target_configargs="--enable-multilib ${target_configargs}"
5898fi
5899
5900# Pass --with-newlib if appropriate. Note that target_configdirs has
5901# changed from the earlier setting of with_newlib.
5902if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5903 target_configargs="--with-newlib ${target_configargs}"
5904fi
5905
95036d20
NN
5906# Different target subdirs use different values of certain variables
5907# (notably CXX). Worse, multilibs use *lots* of different values.
5908# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5909# it doesn't automatically accept command-line overrides of them.
5910# This means it's not safe for target subdirs to share a cache file,
5911# which is disgusting, but there you have it. Hopefully this can be
5912# fixed in future. It's still worthwhile to use a cache file for each
5913# directory. I think.
5914
ae380b45
MS
5915# Pass the appropriate --build, --host, --target and --cache-file arguments.
5916# We need to pass --target, as newer autoconf's requires consistency
5917# for target_alias and gcc doesn't manage it consistently.
4b900473 5918target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5919
a0da8069
NN
5920FLAGS_FOR_TARGET=
5921case " $target_configdirs " in
5922 *" newlib "*)
5923 case " $target_configargs " in
5924 *" --with-newlib "*)
5925 case "$target" in
5926 *-cygwin*)
564b43e5 5927 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
5928 esac
5929
5930 # If we're not building GCC, don't discard standard headers.
5931 if test -d ${srcdir}/gcc; then
5932 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5933
5934 if test "${build}" != "${host}"; then
5935 # On Canadian crosses, CC_FOR_TARGET will have already been set
5936 # by `configure', so we won't have an opportunity to add -Bgcc/
5937 # to it. This is right: we don't want to search that directory
5938 # for binaries, but we want the header files in there, so add
5939 # them explicitly.
b00612cc 5940 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5941
5942 # Someone might think of using the pre-installed headers on
5943 # Canadian crosses, in case the installed compiler is not fully
5944 # compatible with the compiler being built. In this case, it
5945 # would be better to flag an error than risking having
5946 # incompatible object files being constructed. We can't
5947 # guarantee that an error will be flagged, but let's hope the
5948 # compiler will do it, when presented with incompatible header
5949 # files.
5950 fi
5951 fi
5952
5953 case "${target}-${is_cross_compiler}" in
ec11bdc6 5954 i[3456789]86-*-linux*-no)
a0da8069
NN
5955 # Here host == target, so we don't need to build gcc,
5956 # so we don't want to discard standard headers.
5957 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5958 ;;
5959 *)
5960 # If we're building newlib, use its generic headers last, but search
5961 # for any libc-related directories first (so make it the last -B
5962 # switch).
5963 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
691bb5a1
DD
5964
5965 # If we're building libgloss, find the startup file, simulator library
5966 # and linker script.
5967 case " $target_configdirs " in
5968 *" libgloss "*)
5969 # Look for startup file, simulator library and maybe linker script.
5970 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5971 # Look for libnosys.a in case the target needs it.
5972 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5973 # Most targets have the linker script in the source directory.
5974 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5975 ;;
5976 esac
a0da8069
NN
5977 ;;
5978 esac
5979 ;;
5980 esac
5981 ;;
5982esac
45055374
CV
5983case "$target" in
5984*-mingw*)
5985 # Can't be handled as Cygwin above since Mingw does not use newlib.
5986 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' ;;
5987esac
a0da8069 5988
5fbad20a
DD
5989# Allow the user to override the flags for
5990# our build compiler if desired.
c66487f8
NC
5991if test x"${build}" = x"${host}" ; then
5992 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5993 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
5994 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
5995fi
5fbad20a 5996
a0da8069
NN
5997# On Canadian crosses, we'll be searching the right directories for
5998# the previously-installed cross compiler, so don't bother to add
5999# flags for directories within the install tree of the compiler
6000# being built; programs in there won't even run.
6001if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6002 # Search for pre-installed headers if nothing else fits.
bba45b8b 6003 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
6004fi
6005
6006if test "x${use_gnu_ld}" = x &&
6007 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6008 # Arrange for us to find uninstalled linker scripts.
b00612cc 6009 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
6010fi
6011
a481dbb7
DD
6012# Search for other target-specific linker scripts and such.
6013case "${target}" in
4e206d7e
DB
6014 mep*)
6015 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6016 ;;
6017esac
6018
a0da8069 6019# Makefile fragments.
3e707e94
PB
6020for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6021do
6022 eval fragval=\$$frag
6023 if test $fragval != /dev/null; then
6024 eval $frag=${srcdir}/$fragval
6025 fi
6026done
a0da8069
NN
6027
6028
6029
6030
6031
6032# Miscellanea: directories, flags, etc.
6033
6034
6035
6036
6037
6038
6039
6a9cf61e 6040# Build module lists & subconfigure args.
a0da8069
NN
6041
6042
6043
be01d343
PB
6044# Host module lists & subconfigure args.
6045
6046
6047
6048# Target module lists & subconfigure args.
6049
6050
6051
6052# Build tools.
6053
6054
6055
1576798e
PB
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
be01d343
PB
6070# Generate default definitions for YACC, M4, LEX and other programs that run
6071# on the build machine. These are used if the Makefile can't locate these
6072# programs in objdir.
6073MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6074
6075for ac_prog in 'bison -y' byacc yacc
6076do
c6b750e1 6077 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6078set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6079echo "$as_me:$LINENO: checking for $ac_word" >&5
6080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6081if test "${ac_cv_prog_YACC+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6083else
6084 if test -n "$YACC"; then
6085 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6086else
c6b750e1
DJ
6087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088for as_dir in $PATH
6089do
6090 IFS=$as_save_IFS
6091 test -z "$as_dir" && as_dir=.
6092 for ac_exec_ext in '' $ac_executable_extensions; do
6093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6094 ac_cv_prog_YACC="$ac_prog"
6095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6096 break 2
6097 fi
6098done
6099done
6100
be01d343
PB
6101fi
6102fi
c6b750e1 6103YACC=$ac_cv_prog_YACC
be01d343 6104if test -n "$YACC"; then
c6b750e1
DJ
6105 echo "$as_me:$LINENO: result: $YACC" >&5
6106echo "${ECHO_T}$YACC" >&6
be01d343 6107else
c6b750e1
DJ
6108 echo "$as_me:$LINENO: result: no" >&5
6109echo "${ECHO_T}no" >&6
be01d343
PB
6110fi
6111
c6b750e1 6112 test -n "$YACC" && break
be01d343
PB
6113done
6114test -n "$YACC" || YACC="$MISSING bison -y"
6115
6116case " $build_configdirs " in
6117 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6118 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6119esac
6120
6121for ac_prog in bison
6122do
c6b750e1 6123 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6124set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6125echo "$as_me:$LINENO: checking for $ac_word" >&5
6126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6127if test "${ac_cv_prog_BISON+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6129else
6130 if test -n "$BISON"; then
6131 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6132else
c6b750e1
DJ
6133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134for as_dir in $PATH
6135do
6136 IFS=$as_save_IFS
6137 test -z "$as_dir" && as_dir=.
6138 for ac_exec_ext in '' $ac_executable_extensions; do
6139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6140 ac_cv_prog_BISON="$ac_prog"
6141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 break 2
6143 fi
6144done
6145done
6146
be01d343
PB
6147fi
6148fi
c6b750e1 6149BISON=$ac_cv_prog_BISON
be01d343 6150if test -n "$BISON"; then
c6b750e1
DJ
6151 echo "$as_me:$LINENO: result: $BISON" >&5
6152echo "${ECHO_T}$BISON" >&6
be01d343 6153else
c6b750e1
DJ
6154 echo "$as_me:$LINENO: result: no" >&5
6155echo "${ECHO_T}no" >&6
be01d343
PB
6156fi
6157
c6b750e1 6158 test -n "$BISON" && break
be01d343
PB
6159done
6160test -n "$BISON" || BISON="$MISSING bison"
6161
6162case " $build_configdirs " in
6163 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6164esac
6165
6166for ac_prog in gm4 gnum4 m4
6167do
c6b750e1 6168 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6169set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6170echo "$as_me:$LINENO: checking for $ac_word" >&5
6171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6172if test "${ac_cv_prog_M4+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6174else
6175 if test -n "$M4"; then
6176 ac_cv_prog_M4="$M4" # Let the user override the test.
6177else
c6b750e1
DJ
6178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179for as_dir in $PATH
6180do
6181 IFS=$as_save_IFS
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6185 ac_cv_prog_M4="$ac_prog"
6186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 break 2
6188 fi
6189done
6190done
6191
be01d343
PB
6192fi
6193fi
c6b750e1 6194M4=$ac_cv_prog_M4
be01d343 6195if test -n "$M4"; then
c6b750e1
DJ
6196 echo "$as_me:$LINENO: result: $M4" >&5
6197echo "${ECHO_T}$M4" >&6
be01d343 6198else
c6b750e1
DJ
6199 echo "$as_me:$LINENO: result: no" >&5
6200echo "${ECHO_T}no" >&6
be01d343
PB
6201fi
6202
c6b750e1 6203 test -n "$M4" && break
be01d343
PB
6204done
6205test -n "$M4" || M4="$MISSING m4"
6206
6207case " $build_configdirs " in
6208 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6209esac
6210
6211for ac_prog in flex lex
6212do
c6b750e1 6213 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6214set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6215echo "$as_me:$LINENO: checking for $ac_word" >&5
6216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6217if test "${ac_cv_prog_LEX+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6219else
6220 if test -n "$LEX"; then
6221 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6222else
c6b750e1
DJ
6223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224for as_dir in $PATH
6225do
6226 IFS=$as_save_IFS
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6230 ac_cv_prog_LEX="$ac_prog"
6231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 break 2
6233 fi
6234done
6235done
6236
be01d343
PB
6237fi
6238fi
c6b750e1 6239LEX=$ac_cv_prog_LEX
be01d343 6240if test -n "$LEX"; then
c6b750e1
DJ
6241 echo "$as_me:$LINENO: result: $LEX" >&5
6242echo "${ECHO_T}$LEX" >&6
be01d343 6243else
c6b750e1
DJ
6244 echo "$as_me:$LINENO: result: no" >&5
6245echo "${ECHO_T}no" >&6
be01d343
PB
6246fi
6247
c6b750e1 6248 test -n "$LEX" && break
be01d343
PB
6249done
6250test -n "$LEX" || LEX="$MISSING flex"
6251
6252case " $build_configdirs " in
6253 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6254 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6255esac
6256
6257for ac_prog in flex
6258do
c6b750e1 6259 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6260set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6261echo "$as_me:$LINENO: checking for $ac_word" >&5
6262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6263if test "${ac_cv_prog_FLEX+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6265else
6266 if test -n "$FLEX"; then
6267 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6268else
c6b750e1
DJ
6269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270for as_dir in $PATH
6271do
6272 IFS=$as_save_IFS
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6276 ac_cv_prog_FLEX="$ac_prog"
6277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 break 2
6279 fi
6280done
6281done
6282
be01d343
PB
6283fi
6284fi
c6b750e1 6285FLEX=$ac_cv_prog_FLEX
be01d343 6286if test -n "$FLEX"; then
c6b750e1
DJ
6287 echo "$as_me:$LINENO: result: $FLEX" >&5
6288echo "${ECHO_T}$FLEX" >&6
be01d343 6289else
c6b750e1
DJ
6290 echo "$as_me:$LINENO: result: no" >&5
6291echo "${ECHO_T}no" >&6
be01d343
PB
6292fi
6293
c6b750e1 6294 test -n "$FLEX" && break
be01d343
PB
6295done
6296test -n "$FLEX" || FLEX="$MISSING flex"
6297
6298case " $build_configdirs " in
6299 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6300esac
6301
6302for ac_prog in makeinfo
6303do
c6b750e1 6304 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6305set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6306echo "$as_me:$LINENO: checking for $ac_word" >&5
6307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6308if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6310else
6311 if test -n "$MAKEINFO"; then
6312 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6313else
c6b750e1
DJ
6314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315for as_dir in $PATH
6316do
6317 IFS=$as_save_IFS
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6321 ac_cv_prog_MAKEINFO="$ac_prog"
6322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 break 2
6324 fi
6325done
6326done
6327
be01d343
PB
6328fi
6329fi
c6b750e1 6330MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6331if test -n "$MAKEINFO"; then
c6b750e1
DJ
6332 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6333echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6334else
c6b750e1
DJ
6335 echo "$as_me:$LINENO: result: no" >&5
6336echo "${ECHO_T}no" >&6
be01d343
PB
6337fi
6338
c6b750e1 6339 test -n "$MAKEINFO" && break
be01d343
PB
6340done
6341test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6342
6343case " $build_configdirs " in
6344 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6345 *)
6346
625a61cd 6347 # For an installed makeinfo, we require it to be from texinfo 4.6 or
be01d343
PB
6348 # higher, else we use the "missing" dummy.
6349 if ${MAKEINFO} --version \
625a61cd 6350 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
6351 :
6352 else
6353 MAKEINFO="$MISSING makeinfo"
6354 fi
6355 ;;
6356
6357esac
a0da8069 6358
be01d343 6359# FIXME: expect and dejagnu may become build tools?
a0da8069 6360
be01d343
PB
6361for ac_prog in expect
6362do
c6b750e1 6363 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6364set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6365echo "$as_me:$LINENO: checking for $ac_word" >&5
6366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6367if test "${ac_cv_prog_EXPECT+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6369else
6370 if test -n "$EXPECT"; then
6371 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6372else
c6b750e1
DJ
6373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374for as_dir in $PATH
6375do
6376 IFS=$as_save_IFS
6377 test -z "$as_dir" && as_dir=.
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6380 ac_cv_prog_EXPECT="$ac_prog"
6381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6382 break 2
6383 fi
6384done
6385done
6386
be01d343
PB
6387fi
6388fi
c6b750e1 6389EXPECT=$ac_cv_prog_EXPECT
be01d343 6390if test -n "$EXPECT"; then
c6b750e1
DJ
6391 echo "$as_me:$LINENO: result: $EXPECT" >&5
6392echo "${ECHO_T}$EXPECT" >&6
be01d343 6393else
c6b750e1
DJ
6394 echo "$as_me:$LINENO: result: no" >&5
6395echo "${ECHO_T}no" >&6
be01d343 6396fi
a0da8069 6397
c6b750e1 6398 test -n "$EXPECT" && break
be01d343
PB
6399done
6400test -n "$EXPECT" || EXPECT="expect"
a0da8069 6401
be01d343
PB
6402case " $configdirs " in
6403 *" expect "*)
6404 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6405 ;;
6406esac
a0da8069 6407
be01d343
PB
6408for ac_prog in runtest
6409do
c6b750e1 6410 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6411set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6412echo "$as_me:$LINENO: checking for $ac_word" >&5
6413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6414if test "${ac_cv_prog_RUNTEST+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6416else
6417 if test -n "$RUNTEST"; then
6418 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6419else
c6b750e1
DJ
6420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421for as_dir in $PATH
6422do
6423 IFS=$as_save_IFS
6424 test -z "$as_dir" && as_dir=.
6425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6427 ac_cv_prog_RUNTEST="$ac_prog"
6428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6429 break 2
6430 fi
6431done
6432done
6433
be01d343
PB
6434fi
6435fi
c6b750e1 6436RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6437if test -n "$RUNTEST"; then
c6b750e1
DJ
6438 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6439echo "${ECHO_T}$RUNTEST" >&6
be01d343 6440else
c6b750e1
DJ
6441 echo "$as_me:$LINENO: result: no" >&5
6442echo "${ECHO_T}no" >&6
be01d343 6443fi
a0da8069 6444
c6b750e1 6445 test -n "$RUNTEST" && break
be01d343
PB
6446done
6447test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6448
be01d343
PB
6449case " $configdirs " in
6450 *" dejagnu "*)
6b89cc21 6451 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6452 ;;
6453esac
a0da8069
NN
6454
6455
a0da8069 6456# Host tools.
859789af
AC
6457ncn_tool_prefix=
6458test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6459ncn_target_tool_prefix=
6460test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6461
9a819804
AO
6462
6463
6464if test -n "$AR"; then
6465 ac_cv_prog_AR=$AR
6466elif test -n "$ac_cv_prog_AR"; then
6467 AR=$ac_cv_prog_AR
6468fi
6469
6470if test -n "$ac_cv_prog_AR"; then
6471 for ncn_progname in ar; do
6472 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6473set dummy ${ncn_progname}; ac_word=$2
6474echo "$as_me:$LINENO: checking for $ac_word" >&5
6475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6476if test "${ac_cv_prog_AR+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478else
6479 if test -n "$AR"; then
6480 ac_cv_prog_AR="$AR" # Let the user override the test.
6481else
6482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483for as_dir in $PATH
6484do
6485 IFS=$as_save_IFS
6486 test -z "$as_dir" && as_dir=.
6487 for ac_exec_ext in '' $ac_executable_extensions; do
6488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6489 ac_cv_prog_AR="${ncn_progname}"
6490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6491 break 2
6492 fi
6493done
6494done
6495
6496fi
6497fi
6498AR=$ac_cv_prog_AR
6499if test -n "$AR"; then
6500 echo "$as_me:$LINENO: result: $AR" >&5
6501echo "${ECHO_T}$AR" >&6
6502else
6503 echo "$as_me:$LINENO: result: no" >&5
6504echo "${ECHO_T}no" >&6
6505fi
6506
6507 done
6508fi
6509
6510for ncn_progname in ar; do
05cbd757
PB
6511 if test -n "$ncn_tool_prefix"; then
6512 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6513set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6514echo "$as_me:$LINENO: checking for $ac_word" >&5
6515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6516if test "${ac_cv_prog_AR+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6518else
6519 if test -n "$AR"; then
6520 ac_cv_prog_AR="$AR" # Let the user override the test.
6521else
c6b750e1
DJ
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_AR="${ncn_tool_prefix}${ncn_progname}"
6530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6531 break 2
6532 fi
6533done
6534done
6535
859789af
AC
6536fi
6537fi
c6b750e1 6538AR=$ac_cv_prog_AR
859789af 6539if test -n "$AR"; then
c6b750e1
DJ
6540 echo "$as_me:$LINENO: result: $AR" >&5
6541echo "${ECHO_T}$AR" >&6
859789af 6542else
c6b750e1
DJ
6543 echo "$as_me:$LINENO: result: no" >&5
6544echo "${ECHO_T}no" >&6
859789af
AC
6545fi
6546
05cbd757
PB
6547 fi
6548 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6549 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6550set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6551echo "$as_me:$LINENO: checking for $ac_word" >&5
6552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6553if test "${ac_cv_prog_AR+set}" = set; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6555else
05cbd757
PB
6556 if test -n "$AR"; then
6557 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6558else
c6b750e1
DJ
6559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560for as_dir in $PATH
6561do
6562 IFS=$as_save_IFS
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6566 ac_cv_prog_AR="${ncn_progname}"
6567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 break 2
6569 fi
6570done
6571done
6572
859789af
AC
6573fi
6574fi
c6b750e1 6575AR=$ac_cv_prog_AR
05cbd757 6576if test -n "$AR"; then
c6b750e1
DJ
6577 echo "$as_me:$LINENO: result: $AR" >&5
6578echo "${ECHO_T}$AR" >&6
859789af 6579else
c6b750e1
DJ
6580 echo "$as_me:$LINENO: result: no" >&5
6581echo "${ECHO_T}no" >&6
859789af 6582fi
c6b750e1 6583
05cbd757
PB
6584 fi
6585 test -n "$ac_cv_prog_AR" && break
6586done
6587
6588if test -z "$ac_cv_prog_AR" ; then
6589 set dummy ar
6590 if test $build = $host ; then
6591 AR="$2"
859789af 6592 else
05cbd757 6593 AR="${ncn_tool_prefix}$2"
859789af 6594 fi
859789af
AC
6595fi
6596
9a819804
AO
6597
6598
6599if test -n "$AS"; then
6600 ac_cv_prog_AS=$AS
6601elif test -n "$ac_cv_prog_AS"; then
6602 AS=$ac_cv_prog_AS
6603fi
6604
6605if test -n "$ac_cv_prog_AS"; then
6606 for ncn_progname in as; do
6607 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6608set dummy ${ncn_progname}; ac_word=$2
6609echo "$as_me:$LINENO: checking for $ac_word" >&5
6610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6611if test "${ac_cv_prog_AS+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6613else
6614 if test -n "$AS"; then
6615 ac_cv_prog_AS="$AS" # Let the user override the test.
6616else
6617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618for as_dir in $PATH
6619do
6620 IFS=$as_save_IFS
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6624 ac_cv_prog_AS="${ncn_progname}"
6625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6626 break 2
6627 fi
6628done
6629done
6630
6631fi
6632fi
6633AS=$ac_cv_prog_AS
6634if test -n "$AS"; then
6635 echo "$as_me:$LINENO: result: $AS" >&5
6636echo "${ECHO_T}$AS" >&6
6637else
6638 echo "$as_me:$LINENO: result: no" >&5
6639echo "${ECHO_T}no" >&6
6640fi
6641
6642 done
6643fi
6644
6645for ncn_progname in as; do
05cbd757
PB
6646 if test -n "$ncn_tool_prefix"; then
6647 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6648set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6649echo "$as_me:$LINENO: checking for $ac_word" >&5
6650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6651if test "${ac_cv_prog_AS+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6653else
6654 if test -n "$AS"; then
6655 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
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_AS="${ncn_tool_prefix}${ncn_progname}"
6665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 break 2
6667 fi
6668done
6669done
6670
859789af
AC
6671fi
6672fi
c6b750e1 6673AS=$ac_cv_prog_AS
859789af 6674if test -n "$AS"; then
c6b750e1
DJ
6675 echo "$as_me:$LINENO: result: $AS" >&5
6676echo "${ECHO_T}$AS" >&6
859789af 6677else
c6b750e1
DJ
6678 echo "$as_me:$LINENO: result: no" >&5
6679echo "${ECHO_T}no" >&6
859789af
AC
6680fi
6681
05cbd757
PB
6682 fi
6683 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6685set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6686echo "$as_me:$LINENO: checking for $ac_word" >&5
6687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6688if test "${ac_cv_prog_AS+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6690else
05cbd757
PB
6691 if test -n "$AS"; then
6692 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6693else
c6b750e1
DJ
6694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695for as_dir in $PATH
6696do
6697 IFS=$as_save_IFS
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6701 ac_cv_prog_AS="${ncn_progname}"
6702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 break 2
6704 fi
6705done
6706done
6707
859789af
AC
6708fi
6709fi
c6b750e1 6710AS=$ac_cv_prog_AS
05cbd757 6711if test -n "$AS"; then
c6b750e1
DJ
6712 echo "$as_me:$LINENO: result: $AS" >&5
6713echo "${ECHO_T}$AS" >&6
859789af 6714else
c6b750e1
DJ
6715 echo "$as_me:$LINENO: result: no" >&5
6716echo "${ECHO_T}no" >&6
859789af 6717fi
c6b750e1 6718
05cbd757
PB
6719 fi
6720 test -n "$ac_cv_prog_AS" && break
6721done
6722
6723if test -z "$ac_cv_prog_AS" ; then
6724 set dummy as
6725 if test $build = $host ; then
6726 AS="$2"
859789af 6727 else
05cbd757 6728 AS="${ncn_tool_prefix}$2"
859789af 6729 fi
859789af
AC
6730fi
6731
9a819804
AO
6732
6733
6734if test -n "$DLLTOOL"; then
6735 ac_cv_prog_DLLTOOL=$DLLTOOL
6736elif test -n "$ac_cv_prog_DLLTOOL"; then
6737 DLLTOOL=$ac_cv_prog_DLLTOOL
6738fi
6739
6740if test -n "$ac_cv_prog_DLLTOOL"; then
6741 for ncn_progname in dlltool; do
6742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6743set dummy ${ncn_progname}; ac_word=$2
6744echo "$as_me:$LINENO: checking for $ac_word" >&5
6745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6746if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748else
6749 if test -n "$DLLTOOL"; then
6750 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6751else
6752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753for as_dir in $PATH
6754do
6755 IFS=$as_save_IFS
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6759 ac_cv_prog_DLLTOOL="${ncn_progname}"
6760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 break 2
6762 fi
6763done
6764done
6765
6766fi
6767fi
6768DLLTOOL=$ac_cv_prog_DLLTOOL
6769if test -n "$DLLTOOL"; then
6770 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6771echo "${ECHO_T}$DLLTOOL" >&6
6772else
6773 echo "$as_me:$LINENO: result: no" >&5
6774echo "${ECHO_T}no" >&6
6775fi
6776
6777 done
6778fi
6779
6780for ncn_progname in dlltool; do
05cbd757
PB
6781 if test -n "$ncn_tool_prefix"; then
6782 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6783set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6784echo "$as_me:$LINENO: checking for $ac_word" >&5
6785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6786if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6788else
6789 if test -n "$DLLTOOL"; then
6790 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6791else
c6b750e1
DJ
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_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 break 2
6802 fi
6803done
6804done
6805
859789af
AC
6806fi
6807fi
c6b750e1 6808DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6809if test -n "$DLLTOOL"; then
c6b750e1
DJ
6810 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6811echo "${ECHO_T}$DLLTOOL" >&6
859789af 6812else
c6b750e1
DJ
6813 echo "$as_me:$LINENO: result: no" >&5
6814echo "${ECHO_T}no" >&6
859789af
AC
6815fi
6816
05cbd757
PB
6817 fi
6818 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6819 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6820set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6821echo "$as_me:$LINENO: checking for $ac_word" >&5
6822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6823if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6825else
05cbd757
PB
6826 if test -n "$DLLTOOL"; then
6827 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6828else
c6b750e1
DJ
6829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830for as_dir in $PATH
6831do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6836 ac_cv_prog_DLLTOOL="${ncn_progname}"
6837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6839 fi
6840done
6841done
6842
859789af
AC
6843fi
6844fi
c6b750e1 6845DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6846if test -n "$DLLTOOL"; then
c6b750e1
DJ
6847 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6848echo "${ECHO_T}$DLLTOOL" >&6
859789af 6849else
c6b750e1
DJ
6850 echo "$as_me:$LINENO: result: no" >&5
6851echo "${ECHO_T}no" >&6
859789af 6852fi
c6b750e1 6853
05cbd757
PB
6854 fi
6855 test -n "$ac_cv_prog_DLLTOOL" && break
6856done
6857
6858if test -z "$ac_cv_prog_DLLTOOL" ; then
6859 set dummy dlltool
6860 if test $build = $host ; then
6861 DLLTOOL="$2"
859789af 6862 else
05cbd757 6863 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6864 fi
859789af
AC
6865fi
6866
9a819804
AO
6867
6868
6869if test -n "$LD"; then
6870 ac_cv_prog_LD=$LD
6871elif test -n "$ac_cv_prog_LD"; then
6872 LD=$ac_cv_prog_LD
6873fi
6874
6875if test -n "$ac_cv_prog_LD"; then
6876 for ncn_progname in ld; do
6877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6878set dummy ${ncn_progname}; ac_word=$2
6879echo "$as_me:$LINENO: checking for $ac_word" >&5
6880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6881if test "${ac_cv_prog_LD+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6883else
6884 if test -n "$LD"; then
6885 ac_cv_prog_LD="$LD" # Let the user override the test.
6886else
6887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888for as_dir in $PATH
6889do
6890 IFS=$as_save_IFS
6891 test -z "$as_dir" && as_dir=.
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6894 ac_cv_prog_LD="${ncn_progname}"
6895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6896 break 2
6897 fi
6898done
6899done
6900
6901fi
6902fi
6903LD=$ac_cv_prog_LD
6904if test -n "$LD"; then
6905 echo "$as_me:$LINENO: result: $LD" >&5
6906echo "${ECHO_T}$LD" >&6
6907else
6908 echo "$as_me:$LINENO: result: no" >&5
6909echo "${ECHO_T}no" >&6
6910fi
6911
6912 done
6913fi
6914
6915for ncn_progname in ld; do
05cbd757
PB
6916 if test -n "$ncn_tool_prefix"; then
6917 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6918set dummy ${ncn_tool_prefix}${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_LD+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6923else
6924 if test -n "$LD"; then
6925 ac_cv_prog_LD="$LD" # 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
6934 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
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 6943LD=$ac_cv_prog_LD
859789af 6944if test -n "$LD"; then
c6b750e1
DJ
6945 echo "$as_me:$LINENO: result: $LD" >&5
6946echo "${ECHO_T}$LD" >&6
859789af 6947else
c6b750e1
DJ
6948 echo "$as_me:$LINENO: result: no" >&5
6949echo "${ECHO_T}no" >&6
859789af
AC
6950fi
6951
05cbd757
PB
6952 fi
6953 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6955set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6956echo "$as_me:$LINENO: checking for $ac_word" >&5
6957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6958if test "${ac_cv_prog_LD+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6960else
05cbd757
PB
6961 if test -n "$LD"; then
6962 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6963else
c6b750e1
DJ
6964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965for as_dir in $PATH
6966do
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6971 ac_cv_prog_LD="${ncn_progname}"
6972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 break 2
6974 fi
6975done
6976done
6977
859789af
AC
6978fi
6979fi
c6b750e1 6980LD=$ac_cv_prog_LD
05cbd757 6981if test -n "$LD"; then
c6b750e1
DJ
6982 echo "$as_me:$LINENO: result: $LD" >&5
6983echo "${ECHO_T}$LD" >&6
859789af 6984else
c6b750e1
DJ
6985 echo "$as_me:$LINENO: result: no" >&5
6986echo "${ECHO_T}no" >&6
859789af 6987fi
c6b750e1 6988
05cbd757
PB
6989 fi
6990 test -n "$ac_cv_prog_LD" && break
6991done
6992
6993if test -z "$ac_cv_prog_LD" ; then
6994 set dummy ld
6995 if test $build = $host ; then
6996 LD="$2"
859789af 6997 else
05cbd757 6998 LD="${ncn_tool_prefix}$2"
859789af 6999 fi
859789af
AC
7000fi
7001
9a819804
AO
7002
7003
7004if test -n "$LIPO"; then
7005 ac_cv_prog_LIPO=$LIPO
7006elif test -n "$ac_cv_prog_LIPO"; then
7007 LIPO=$ac_cv_prog_LIPO
7008fi
7009
7010if test -n "$ac_cv_prog_LIPO"; then
7011 for ncn_progname in lipo; do
7012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7013set dummy ${ncn_progname}; ac_word=$2
7014echo "$as_me:$LINENO: checking for $ac_word" >&5
7015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7016if test "${ac_cv_prog_LIPO+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7018else
7019 if test -n "$LIPO"; then
7020 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7021else
7022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023for as_dir in $PATH
7024do
7025 IFS=$as_save_IFS
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7029 ac_cv_prog_LIPO="${ncn_progname}"
7030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 break 2
7032 fi
7033done
7034done
7035
7036fi
7037fi
7038LIPO=$ac_cv_prog_LIPO
7039if test -n "$LIPO"; then
7040 echo "$as_me:$LINENO: result: $LIPO" >&5
7041echo "${ECHO_T}$LIPO" >&6
7042else
7043 echo "$as_me:$LINENO: result: no" >&5
7044echo "${ECHO_T}no" >&6
7045fi
7046
7047 done
7048fi
7049
7050for ncn_progname in lipo; do
be01d343
PB
7051 if test -n "$ncn_tool_prefix"; then
7052 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7053set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7054echo "$as_me:$LINENO: checking for $ac_word" >&5
7055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7056if test "${ac_cv_prog_LIPO+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7058else
7059 if test -n "$LIPO"; then
7060 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7061else
c6b750e1
DJ
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_LIPO="${ncn_tool_prefix}${ncn_progname}"
7070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7071 break 2
7072 fi
7073done
7074done
7075
be01d343
PB
7076fi
7077fi
c6b750e1 7078LIPO=$ac_cv_prog_LIPO
be01d343 7079if test -n "$LIPO"; then
c6b750e1
DJ
7080 echo "$as_me:$LINENO: result: $LIPO" >&5
7081echo "${ECHO_T}$LIPO" >&6
be01d343 7082else
c6b750e1
DJ
7083 echo "$as_me:$LINENO: result: no" >&5
7084echo "${ECHO_T}no" >&6
be01d343
PB
7085fi
7086
7087 fi
7088 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7090set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7091echo "$as_me:$LINENO: checking for $ac_word" >&5
7092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7093if test "${ac_cv_prog_LIPO+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7095else
7096 if test -n "$LIPO"; then
7097 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7098else
c6b750e1
DJ
7099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100for as_dir in $PATH
7101do
7102 IFS=$as_save_IFS
7103 test -z "$as_dir" && as_dir=.
7104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7106 ac_cv_prog_LIPO="${ncn_progname}"
7107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 break 2
7109 fi
7110done
7111done
7112
be01d343
PB
7113fi
7114fi
c6b750e1 7115LIPO=$ac_cv_prog_LIPO
be01d343 7116if test -n "$LIPO"; then
c6b750e1
DJ
7117 echo "$as_me:$LINENO: result: $LIPO" >&5
7118echo "${ECHO_T}$LIPO" >&6
be01d343 7119else
c6b750e1
DJ
7120 echo "$as_me:$LINENO: result: no" >&5
7121echo "${ECHO_T}no" >&6
be01d343 7122fi
c6b750e1 7123
be01d343
PB
7124 fi
7125 test -n "$ac_cv_prog_LIPO" && break
7126done
7127
7128if test -z "$ac_cv_prog_LIPO" ; then
7129 set dummy lipo
7130 if test $build = $host ; then
7131 LIPO="$2"
7132 else
7133 LIPO="${ncn_tool_prefix}$2"
7134 fi
7135fi
7136
9a819804
AO
7137
7138
7139if test -n "$NM"; then
7140 ac_cv_prog_NM=$NM
7141elif test -n "$ac_cv_prog_NM"; then
7142 NM=$ac_cv_prog_NM
7143fi
7144
7145if test -n "$ac_cv_prog_NM"; then
7146 for ncn_progname in nm; do
7147 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7148set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7149echo "$as_me:$LINENO: checking for $ac_word" >&5
7150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7151if test "${ac_cv_prog_NM+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7153else
7154 if test -n "$NM"; then
7155 ac_cv_prog_NM="$NM" # Let the user override the test.
7156else
c6b750e1
DJ
7157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158for as_dir in $PATH
7159do
7160 IFS=$as_save_IFS
7161 test -z "$as_dir" && as_dir=.
7162 for ac_exec_ext in '' $ac_executable_extensions; do
7163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7164 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166 break 2
7167 fi
7168done
7169done
7170
859789af
AC
7171fi
7172fi
c6b750e1 7173NM=$ac_cv_prog_NM
859789af 7174if test -n "$NM"; then
c6b750e1
DJ
7175 echo "$as_me:$LINENO: result: $NM" >&5
7176echo "${ECHO_T}$NM" >&6
859789af 7177else
c6b750e1
DJ
7178 echo "$as_me:$LINENO: result: no" >&5
7179echo "${ECHO_T}no" >&6
859789af
AC
7180fi
7181
9a819804
AO
7182 done
7183fi
7184
7185for ncn_progname in nm; do
7186 if test -n "$ncn_tool_prefix"; then
7187 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7188set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7189echo "$as_me:$LINENO: checking for $ac_word" >&5
7190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7191if test "${ac_cv_prog_NM+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7193else
05cbd757
PB
7194 if test -n "$NM"; then
7195 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7196else
c6b750e1
DJ
7197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198for as_dir in $PATH
7199do
7200 IFS=$as_save_IFS
7201 test -z "$as_dir" && as_dir=.
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7204 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206 break 2
7207 fi
7208done
7209done
7210
859789af
AC
7211fi
7212fi
c6b750e1 7213NM=$ac_cv_prog_NM
05cbd757 7214if test -n "$NM"; then
c6b750e1
DJ
7215 echo "$as_me:$LINENO: result: $NM" >&5
7216echo "${ECHO_T}$NM" >&6
859789af 7217else
c6b750e1
DJ
7218 echo "$as_me:$LINENO: result: no" >&5
7219echo "${ECHO_T}no" >&6
859789af 7220fi
c6b750e1 7221
05cbd757 7222 fi
9a819804
AO
7223 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7225set dummy ${ncn_progname}; ac_word=$2
7226echo "$as_me:$LINENO: checking for $ac_word" >&5
7227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7228if test "${ac_cv_prog_NM+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7230else
7231 if test -n "$NM"; then
7232 ac_cv_prog_NM="$NM" # Let the user override the test.
7233else
7234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235for as_dir in $PATH
7236do
7237 IFS=$as_save_IFS
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241 ac_cv_prog_NM="${ncn_progname}"
7242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 break 2
7244 fi
7245done
7246done
7247
7248fi
7249fi
7250NM=$ac_cv_prog_NM
7251if test -n "$NM"; then
7252 echo "$as_me:$LINENO: result: $NM" >&5
7253echo "${ECHO_T}$NM" >&6
7254else
7255 echo "$as_me:$LINENO: result: no" >&5
7256echo "${ECHO_T}no" >&6
7257fi
7258
7259 fi
7260 test -n "$ac_cv_prog_NM" && break
7261done
7262
7263if test -z "$ac_cv_prog_NM" ; then
7264 set dummy nm
7265 if test $build = $host ; then
7266 NM="$2"
7267 else
7268 NM="${ncn_tool_prefix}$2"
7269 fi
7270fi
7271
7272
7273
7274if test -n "$RANLIB"; then
7275 ac_cv_prog_RANLIB=$RANLIB
7276elif test -n "$ac_cv_prog_RANLIB"; then
7277 RANLIB=$ac_cv_prog_RANLIB
7278fi
7279
7280if test -n "$ac_cv_prog_RANLIB"; then
7281 for ncn_progname in ranlib; do
7282 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7283set dummy ${ncn_progname}; ac_word=$2
7284echo "$as_me:$LINENO: checking for $ac_word" >&5
7285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7286if test "${ac_cv_prog_RANLIB+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7288else
7289 if test -n "$RANLIB"; then
7290 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7291else
7292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293for as_dir in $PATH
7294do
7295 IFS=$as_save_IFS
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7299 ac_cv_prog_RANLIB="${ncn_progname}"
7300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 break 2
7302 fi
7303done
7304done
7305
7306fi
7307fi
7308RANLIB=$ac_cv_prog_RANLIB
7309if test -n "$RANLIB"; then
7310 echo "$as_me:$LINENO: result: $RANLIB" >&5
7311echo "${ECHO_T}$RANLIB" >&6
7312else
7313 echo "$as_me:$LINENO: result: no" >&5
7314echo "${ECHO_T}no" >&6
7315fi
7316
7317 done
7318fi
859789af 7319
9a819804 7320for ncn_progname in ranlib; do
05cbd757
PB
7321 if test -n "$ncn_tool_prefix"; then
7322 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7323set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7324echo "$as_me:$LINENO: checking for $ac_word" >&5
7325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7326if test "${ac_cv_prog_RANLIB+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7328else
7329 if test -n "$RANLIB"; then
7330 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7331else
c6b750e1
DJ
7332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333for as_dir in $PATH
7334do
7335 IFS=$as_save_IFS
7336 test -z "$as_dir" && as_dir=.
7337 for ac_exec_ext in '' $ac_executable_extensions; do
7338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7339 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7341 break 2
7342 fi
7343done
7344done
7345
859789af
AC
7346fi
7347fi
c6b750e1 7348RANLIB=$ac_cv_prog_RANLIB
859789af 7349if test -n "$RANLIB"; then
c6b750e1
DJ
7350 echo "$as_me:$LINENO: result: $RANLIB" >&5
7351echo "${ECHO_T}$RANLIB" >&6
859789af 7352else
c6b750e1
DJ
7353 echo "$as_me:$LINENO: result: no" >&5
7354echo "${ECHO_T}no" >&6
859789af
AC
7355fi
7356
05cbd757
PB
7357 fi
7358 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7359 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7360set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7361echo "$as_me:$LINENO: checking for $ac_word" >&5
7362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7363if test "${ac_cv_prog_RANLIB+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7365else
05cbd757
PB
7366 if test -n "$RANLIB"; then
7367 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7368else
c6b750e1
DJ
7369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370for as_dir in $PATH
7371do
7372 IFS=$as_save_IFS
7373 test -z "$as_dir" && as_dir=.
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376 ac_cv_prog_RANLIB="${ncn_progname}"
7377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7378 break 2
7379 fi
7380done
7381done
7382
859789af
AC
7383fi
7384fi
c6b750e1 7385RANLIB=$ac_cv_prog_RANLIB
05cbd757 7386if test -n "$RANLIB"; then
c6b750e1
DJ
7387 echo "$as_me:$LINENO: result: $RANLIB" >&5
7388echo "${ECHO_T}$RANLIB" >&6
859789af 7389else
c6b750e1
DJ
7390 echo "$as_me:$LINENO: result: no" >&5
7391echo "${ECHO_T}no" >&6
859789af 7392fi
c6b750e1 7393
859789af 7394 fi
05cbd757
PB
7395 test -n "$ac_cv_prog_RANLIB" && break
7396done
7397
7398if test -z "$ac_cv_prog_RANLIB" ; then
7399 RANLIB=":"
859789af
AC
7400fi
7401
9a819804
AO
7402
7403
7404if test -n "$STRIP"; then
7405 ac_cv_prog_STRIP=$STRIP
7406elif test -n "$ac_cv_prog_STRIP"; then
7407 STRIP=$ac_cv_prog_STRIP
7408fi
7409
7410if test -n "$ac_cv_prog_STRIP"; then
7411 for ncn_progname in strip; do
7412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7413set dummy ${ncn_progname}; ac_word=$2
7414echo "$as_me:$LINENO: checking for $ac_word" >&5
7415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7416if test "${ac_cv_prog_STRIP+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7418else
7419 if test -n "$STRIP"; then
7420 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7421else
7422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423for as_dir in $PATH
7424do
7425 IFS=$as_save_IFS
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7429 ac_cv_prog_STRIP="${ncn_progname}"
7430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 break 2
7432 fi
7433done
7434done
7435
7436fi
7437fi
7438STRIP=$ac_cv_prog_STRIP
7439if test -n "$STRIP"; then
7440 echo "$as_me:$LINENO: result: $STRIP" >&5
7441echo "${ECHO_T}$STRIP" >&6
7442else
7443 echo "$as_me:$LINENO: result: no" >&5
7444echo "${ECHO_T}no" >&6
7445fi
7446
7447 done
7448fi
7449
7450for ncn_progname in strip; do
be01d343
PB
7451 if test -n "$ncn_tool_prefix"; then
7452 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7453set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7454echo "$as_me:$LINENO: checking for $ac_word" >&5
7455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7456if test "${ac_cv_prog_STRIP+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7458else
7459 if test -n "$STRIP"; then
7460 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7461else
c6b750e1
DJ
7462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463for as_dir in $PATH
7464do
7465 IFS=$as_save_IFS
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7469 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 break 2
7472 fi
7473done
7474done
7475
be01d343
PB
7476fi
7477fi
c6b750e1 7478STRIP=$ac_cv_prog_STRIP
be01d343 7479if test -n "$STRIP"; then
c6b750e1
DJ
7480 echo "$as_me:$LINENO: result: $STRIP" >&5
7481echo "${ECHO_T}$STRIP" >&6
be01d343 7482else
c6b750e1
DJ
7483 echo "$as_me:$LINENO: result: no" >&5
7484echo "${ECHO_T}no" >&6
be01d343
PB
7485fi
7486
7487 fi
7488 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7490set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7491echo "$as_me:$LINENO: checking for $ac_word" >&5
7492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7493if test "${ac_cv_prog_STRIP+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7495else
7496 if test -n "$STRIP"; then
7497 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7498else
c6b750e1
DJ
7499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500for as_dir in $PATH
7501do
7502 IFS=$as_save_IFS
7503 test -z "$as_dir" && as_dir=.
7504 for ac_exec_ext in '' $ac_executable_extensions; do
7505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7506 ac_cv_prog_STRIP="${ncn_progname}"
7507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 break 2
7509 fi
7510done
7511done
7512
be01d343
PB
7513fi
7514fi
c6b750e1 7515STRIP=$ac_cv_prog_STRIP
be01d343 7516if test -n "$STRIP"; then
c6b750e1
DJ
7517 echo "$as_me:$LINENO: result: $STRIP" >&5
7518echo "${ECHO_T}$STRIP" >&6
be01d343 7519else
c6b750e1
DJ
7520 echo "$as_me:$LINENO: result: no" >&5
7521echo "${ECHO_T}no" >&6
be01d343 7522fi
c6b750e1 7523
be01d343
PB
7524 fi
7525 test -n "$ac_cv_prog_STRIP" && break
7526done
7527
7528if test -z "$ac_cv_prog_STRIP" ; then
7529 STRIP=":"
7530fi
7531
9a819804
AO
7532
7533
7534if test -n "$WINDRES"; then
7535 ac_cv_prog_WINDRES=$WINDRES
7536elif test -n "$ac_cv_prog_WINDRES"; then
7537 WINDRES=$ac_cv_prog_WINDRES
7538fi
7539
7540if test -n "$ac_cv_prog_WINDRES"; then
7541 for ncn_progname in windres; do
7542 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7543set dummy ${ncn_progname}; ac_word=$2
7544echo "$as_me:$LINENO: checking for $ac_word" >&5
7545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7546if test "${ac_cv_prog_WINDRES+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7548else
7549 if test -n "$WINDRES"; then
7550 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7551else
7552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553for as_dir in $PATH
7554do
7555 IFS=$as_save_IFS
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559 ac_cv_prog_WINDRES="${ncn_progname}"
7560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 break 2
7562 fi
7563done
7564done
7565
7566fi
7567fi
7568WINDRES=$ac_cv_prog_WINDRES
7569if test -n "$WINDRES"; then
7570 echo "$as_me:$LINENO: result: $WINDRES" >&5
7571echo "${ECHO_T}$WINDRES" >&6
7572else
7573 echo "$as_me:$LINENO: result: no" >&5
7574echo "${ECHO_T}no" >&6
7575fi
7576
7577 done
7578fi
7579
7580for ncn_progname in windres; do
05cbd757
PB
7581 if test -n "$ncn_tool_prefix"; then
7582 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7583set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7584echo "$as_me:$LINENO: checking for $ac_word" >&5
7585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7586if test "${ac_cv_prog_WINDRES+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7588else
7589 if test -n "$WINDRES"; then
7590 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7591else
c6b750e1
DJ
7592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593for as_dir in $PATH
7594do
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7599 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 break 2
7602 fi
7603done
7604done
7605
859789af
AC
7606fi
7607fi
c6b750e1 7608WINDRES=$ac_cv_prog_WINDRES
859789af 7609if test -n "$WINDRES"; then
c6b750e1
DJ
7610 echo "$as_me:$LINENO: result: $WINDRES" >&5
7611echo "${ECHO_T}$WINDRES" >&6
859789af 7612else
c6b750e1
DJ
7613 echo "$as_me:$LINENO: result: no" >&5
7614echo "${ECHO_T}no" >&6
859789af
AC
7615fi
7616
05cbd757
PB
7617 fi
7618 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7620set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7621echo "$as_me:$LINENO: checking for $ac_word" >&5
7622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7623if test "${ac_cv_prog_WINDRES+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7625else
05cbd757
PB
7626 if test -n "$WINDRES"; then
7627 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7628else
c6b750e1
DJ
7629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630for as_dir in $PATH
7631do
7632 IFS=$as_save_IFS
7633 test -z "$as_dir" && as_dir=.
7634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7636 ac_cv_prog_WINDRES="${ncn_progname}"
7637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 break 2
7639 fi
7640done
7641done
7642
859789af
AC
7643fi
7644fi
c6b750e1 7645WINDRES=$ac_cv_prog_WINDRES
05cbd757 7646if test -n "$WINDRES"; then
c6b750e1
DJ
7647 echo "$as_me:$LINENO: result: $WINDRES" >&5
7648echo "${ECHO_T}$WINDRES" >&6
859789af 7649else
c6b750e1
DJ
7650 echo "$as_me:$LINENO: result: no" >&5
7651echo "${ECHO_T}no" >&6
859789af 7652fi
c6b750e1 7653
05cbd757
PB
7654 fi
7655 test -n "$ac_cv_prog_WINDRES" && break
7656done
7657
7658if test -z "$ac_cv_prog_WINDRES" ; then
7659 set dummy windres
7660 if test $build = $host ; then
7661 WINDRES="$2"
859789af 7662 else
05cbd757 7663 WINDRES="${ncn_tool_prefix}$2"
859789af 7664 fi
859789af
AC
7665fi
7666
9a819804
AO
7667
7668
0c24b341
NC
7669if test -n "$WINDMC"; then
7670 ac_cv_prog_WINDMC=$WINDMC
7671elif test -n "$ac_cv_prog_WINDMC"; then
7672 WINDMC=$ac_cv_prog_WINDMC
7673fi
7674
7675if test -n "$ac_cv_prog_WINDMC"; then
7676 for ncn_progname in windmc; do
7677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7678set dummy ${ncn_progname}; ac_word=$2
7679echo "$as_me:$LINENO: checking for $ac_word" >&5
7680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7681if test "${ac_cv_prog_WINDMC+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7683else
7684 if test -n "$WINDMC"; then
7685 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7686else
7687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688for as_dir in $PATH
7689do
7690 IFS=$as_save_IFS
7691 test -z "$as_dir" && as_dir=.
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7694 ac_cv_prog_WINDMC="${ncn_progname}"
7695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7696 break 2
7697 fi
7698done
7699done
7700
7701fi
7702fi
7703WINDMC=$ac_cv_prog_WINDMC
7704if test -n "$WINDMC"; then
7705 echo "$as_me:$LINENO: result: $WINDMC" >&5
7706echo "${ECHO_T}$WINDMC" >&6
7707else
7708 echo "$as_me:$LINENO: result: no" >&5
7709echo "${ECHO_T}no" >&6
7710fi
7711
7712 done
7713fi
7714
7715for ncn_progname in windmc; do
7716 if test -n "$ncn_tool_prefix"; then
7717 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7718set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7719echo "$as_me:$LINENO: checking for $ac_word" >&5
7720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7721if test "${ac_cv_prog_WINDMC+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7723else
7724 if test -n "$WINDMC"; then
7725 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7726else
7727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728for as_dir in $PATH
7729do
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7734 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 break 2
7737 fi
7738done
7739done
7740
7741fi
7742fi
7743WINDMC=$ac_cv_prog_WINDMC
7744if test -n "$WINDMC"; then
7745 echo "$as_me:$LINENO: result: $WINDMC" >&5
7746echo "${ECHO_T}$WINDMC" >&6
7747else
7748 echo "$as_me:$LINENO: result: no" >&5
7749echo "${ECHO_T}no" >&6
7750fi
7751
7752 fi
7753 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7755set dummy ${ncn_progname}; ac_word=$2
7756echo "$as_me:$LINENO: checking for $ac_word" >&5
7757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7758if test "${ac_cv_prog_WINDMC+set}" = set; then
7759 echo $ECHO_N "(cached) $ECHO_C" >&6
7760else
7761 if test -n "$WINDMC"; then
7762 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7763else
7764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765for as_dir in $PATH
7766do
7767 IFS=$as_save_IFS
7768 test -z "$as_dir" && as_dir=.
7769 for ac_exec_ext in '' $ac_executable_extensions; do
7770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7771 ac_cv_prog_WINDMC="${ncn_progname}"
7772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7773 break 2
7774 fi
7775done
7776done
7777
7778fi
7779fi
7780WINDMC=$ac_cv_prog_WINDMC
7781if test -n "$WINDMC"; then
7782 echo "$as_me:$LINENO: result: $WINDMC" >&5
7783echo "${ECHO_T}$WINDMC" >&6
7784else
7785 echo "$as_me:$LINENO: result: no" >&5
7786echo "${ECHO_T}no" >&6
7787fi
7788
7789 fi
7790 test -n "$ac_cv_prog_WINDMC" && break
7791done
7792
7793if test -z "$ac_cv_prog_WINDMC" ; then
7794 set dummy windmc
7795 if test $build = $host ; then
7796 WINDMC="$2"
7797 else
7798 WINDMC="${ncn_tool_prefix}$2"
7799 fi
7800fi
7801
7802
7803
9a819804
AO
7804if test -n "$OBJCOPY"; then
7805 ac_cv_prog_OBJCOPY=$OBJCOPY
7806elif test -n "$ac_cv_prog_OBJCOPY"; then
7807 OBJCOPY=$ac_cv_prog_OBJCOPY
7808fi
7809
7810if test -n "$ac_cv_prog_OBJCOPY"; then
7811 for ncn_progname in objcopy; do
7812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7813set dummy ${ncn_progname}; ac_word=$2
7814echo "$as_me:$LINENO: checking for $ac_word" >&5
7815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7816if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7818else
7819 if test -n "$OBJCOPY"; then
7820 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7821else
7822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823for as_dir in $PATH
7824do
7825 IFS=$as_save_IFS
7826 test -z "$as_dir" && as_dir=.
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7829 ac_cv_prog_OBJCOPY="${ncn_progname}"
7830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7831 break 2
7832 fi
7833done
7834done
7835
7836fi
7837fi
7838OBJCOPY=$ac_cv_prog_OBJCOPY
7839if test -n "$OBJCOPY"; then
7840 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7841echo "${ECHO_T}$OBJCOPY" >&6
7842else
7843 echo "$as_me:$LINENO: result: no" >&5
7844echo "${ECHO_T}no" >&6
7845fi
7846
7847 done
7848fi
7849
7850for ncn_progname in objcopy; do
05cbd757
PB
7851 if test -n "$ncn_tool_prefix"; then
7852 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7853set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7854echo "$as_me:$LINENO: checking for $ac_word" >&5
7855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7856if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7858else
7859 if test -n "$OBJCOPY"; then
7860 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7861else
c6b750e1
DJ
7862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863for as_dir in $PATH
7864do
7865 IFS=$as_save_IFS
7866 test -z "$as_dir" && as_dir=.
7867 for ac_exec_ext in '' $ac_executable_extensions; do
7868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7869 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7871 break 2
7872 fi
7873done
7874done
7875
859789af
AC
7876fi
7877fi
c6b750e1 7878OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7879if test -n "$OBJCOPY"; then
c6b750e1
DJ
7880 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7881echo "${ECHO_T}$OBJCOPY" >&6
859789af 7882else
c6b750e1
DJ
7883 echo "$as_me:$LINENO: result: no" >&5
7884echo "${ECHO_T}no" >&6
859789af
AC
7885fi
7886
05cbd757
PB
7887 fi
7888 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7889 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7890set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7891echo "$as_me:$LINENO: checking for $ac_word" >&5
7892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7893if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7894 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7895else
05cbd757
PB
7896 if test -n "$OBJCOPY"; then
7897 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7898else
c6b750e1
DJ
7899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900for as_dir in $PATH
7901do
7902 IFS=$as_save_IFS
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906 ac_cv_prog_OBJCOPY="${ncn_progname}"
7907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7908 break 2
7909 fi
7910done
7911done
7912
859789af
AC
7913fi
7914fi
c6b750e1 7915OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7916if test -n "$OBJCOPY"; then
c6b750e1
DJ
7917 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7918echo "${ECHO_T}$OBJCOPY" >&6
859789af 7919else
c6b750e1
DJ
7920 echo "$as_me:$LINENO: result: no" >&5
7921echo "${ECHO_T}no" >&6
859789af 7922fi
c6b750e1 7923
05cbd757
PB
7924 fi
7925 test -n "$ac_cv_prog_OBJCOPY" && break
7926done
7927
7928if test -z "$ac_cv_prog_OBJCOPY" ; then
7929 set dummy objcopy
7930 if test $build = $host ; then
7931 OBJCOPY="$2"
859789af 7932 else
05cbd757 7933 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7934 fi
859789af
AC
7935fi
7936
9a819804
AO
7937
7938
7939if test -n "$OBJDUMP"; then
7940 ac_cv_prog_OBJDUMP=$OBJDUMP
7941elif test -n "$ac_cv_prog_OBJDUMP"; then
7942 OBJDUMP=$ac_cv_prog_OBJDUMP
7943fi
7944
7945if test -n "$ac_cv_prog_OBJDUMP"; then
7946 for ncn_progname in objdump; do
7947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7948set dummy ${ncn_progname}; ac_word=$2
7949echo "$as_me:$LINENO: checking for $ac_word" >&5
7950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7951if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7953else
7954 if test -n "$OBJDUMP"; then
7955 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7956else
7957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958for as_dir in $PATH
7959do
7960 IFS=$as_save_IFS
7961 test -z "$as_dir" && as_dir=.
7962 for ac_exec_ext in '' $ac_executable_extensions; do
7963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7964 ac_cv_prog_OBJDUMP="${ncn_progname}"
7965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7966 break 2
7967 fi
7968done
7969done
7970
7971fi
7972fi
7973OBJDUMP=$ac_cv_prog_OBJDUMP
7974if test -n "$OBJDUMP"; then
7975 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7976echo "${ECHO_T}$OBJDUMP" >&6
7977else
7978 echo "$as_me:$LINENO: result: no" >&5
7979echo "${ECHO_T}no" >&6
7980fi
7981
7982 done
7983fi
7984
7985for ncn_progname in objdump; do
05cbd757
PB
7986 if test -n "$ncn_tool_prefix"; then
7987 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7988set dummy ${ncn_tool_prefix}${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_OBJDUMP+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7993else
7994 if test -n "$OBJDUMP"; then
7995 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
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_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8006 break 2
8007 fi
8008done
8009done
8010
859789af
AC
8011fi
8012fi
c6b750e1 8013OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 8014if test -n "$OBJDUMP"; then
c6b750e1
DJ
8015 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8016echo "${ECHO_T}$OBJDUMP" >&6
859789af 8017else
c6b750e1
DJ
8018 echo "$as_me:$LINENO: result: no" >&5
8019echo "${ECHO_T}no" >&6
859789af
AC
8020fi
8021
05cbd757
PB
8022 fi
8023 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8025set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8026echo "$as_me:$LINENO: checking for $ac_word" >&5
8027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8028if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8029 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8030else
05cbd757
PB
8031 if test -n "$OBJDUMP"; then
8032 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 8033else
c6b750e1
DJ
8034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035for as_dir in $PATH
8036do
8037 IFS=$as_save_IFS
8038 test -z "$as_dir" && as_dir=.
8039 for ac_exec_ext in '' $ac_executable_extensions; do
8040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8041 ac_cv_prog_OBJDUMP="${ncn_progname}"
8042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8043 break 2
8044 fi
8045done
8046done
8047
859789af
AC
8048fi
8049fi
c6b750e1 8050OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 8051if test -n "$OBJDUMP"; then
c6b750e1
DJ
8052 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8053echo "${ECHO_T}$OBJDUMP" >&6
859789af 8054else
c6b750e1
DJ
8055 echo "$as_me:$LINENO: result: no" >&5
8056echo "${ECHO_T}no" >&6
859789af 8057fi
c6b750e1 8058
05cbd757
PB
8059 fi
8060 test -n "$ac_cv_prog_OBJDUMP" && break
8061done
8062
8063if test -z "$ac_cv_prog_OBJDUMP" ; then
8064 set dummy objdump
8065 if test $build = $host ; then
8066 OBJDUMP="$2"
859789af 8067 else
05cbd757 8068 OBJDUMP="${ncn_tool_prefix}$2"
859789af 8069 fi
859789af
AC
8070fi
8071
a0da8069
NN
8072
8073
8074
8075
8076
be01d343 8077# Target tools.
c6b750e1 8078
2429c060
PB
8079# Check whether --with-build-time-tools or --without-build-time-tools was given.
8080if test "${with_build_time_tools+set}" = set; then
8081 withval="$with_build_time_tools"
8082 case x"$withval" in
8083 x/*) ;;
8084 *)
8085 with_build_time_tools=
c6b750e1
DJ
8086 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8087echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
8088 ;;
8089 esac
859789af 8090else
2429c060 8091 with_build_time_tools=
c6b750e1 8092fi;
859789af 8093
9a819804
AO
8094
8095
8096if test -n "$CC_FOR_TARGET"; then
8097 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8098elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8099 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8100fi
8101
8102if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8103 for ncn_progname in cc gcc; do
8104 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8105set dummy ${ncn_progname}; ac_word=$2
8106echo "$as_me:$LINENO: checking for $ac_word" >&5
8107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8108if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8110else
8111 if test -n "$CC_FOR_TARGET"; then
8112 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8113else
8114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115for as_dir in $PATH
8116do
8117 IFS=$as_save_IFS
8118 test -z "$as_dir" && as_dir=.
8119 for ac_exec_ext in '' $ac_executable_extensions; do
8120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8121 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8123 break 2
8124 fi
8125done
8126done
8127
8128fi
8129fi
8130CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8131if test -n "$CC_FOR_TARGET"; then
8132 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8133echo "${ECHO_T}$CC_FOR_TARGET" >&6
8134else
8135 echo "$as_me:$LINENO: result: no" >&5
8136echo "${ECHO_T}no" >&6
8137fi
8138
8139 done
8140fi
8141
8142if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8143 for ncn_progname in cc gcc; do
c6b750e1
DJ
8144 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8145echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8146 if test -x $with_build_time_tools/${ncn_progname}; then
8147 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8148 echo "$as_me:$LINENO: result: yes" >&5
8149echo "${ECHO_T}yes" >&6
cac3d6c4 8150 break
2429c060 8151 else
c6b750e1
DJ
8152 echo "$as_me:$LINENO: result: no" >&5
8153echo "${ECHO_T}no" >&6
cac3d6c4
CM
8154 fi
8155 done
55db4b87
PB
8156fi
8157
2429c060
PB
8158if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8159 for ncn_progname in cc gcc; do
8160 if test -n "$ncn_target_tool_prefix"; then
8161 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8162set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8163echo "$as_me:$LINENO: checking for $ac_word" >&5
8164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8165if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8166 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8167else
8168 if test -n "$CC_FOR_TARGET"; then
8169 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8170else
c6b750e1
DJ
8171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172for as_dir in $PATH
8173do
8174 IFS=$as_save_IFS
8175 test -z "$as_dir" && as_dir=.
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8178 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8180 break 2
8181 fi
8182done
8183done
8184
55db4b87
PB
8185fi
8186fi
c6b750e1 8187CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8188if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8189 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8190echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8191else
c6b750e1
DJ
8192 echo "$as_me:$LINENO: result: no" >&5
8193echo "${ECHO_T}no" >&6
55db4b87
PB
8194fi
8195
2429c060
PB
8196 fi
8197 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8198 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8199set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8200echo "$as_me:$LINENO: checking for $ac_word" >&5
8201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8202if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8204else
05cbd757
PB
8205 if test -n "$CC_FOR_TARGET"; then
8206 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8207else
c6b750e1
DJ
8208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209for as_dir in $PATH
8210do
8211 IFS=$as_save_IFS
8212 test -z "$as_dir" && as_dir=.
8213 for ac_exec_ext in '' $ac_executable_extensions; do
8214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8215 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8217 break 2
8218 fi
8219done
8220done
8221
55db4b87
PB
8222fi
8223fi
c6b750e1 8224CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8225if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8226 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8227echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8228else
c6b750e1
DJ
8229 echo "$as_me:$LINENO: result: no" >&5
8230echo "${ECHO_T}no" >&6
55db4b87 8231fi
c6b750e1 8232
2429c060
PB
8233 fi
8234 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8235 done
8236fi
c6b750e1 8237
05cbd757
PB
8238if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8239 set dummy cc gcc
8240 if test $build = $target ; then
8241 CC_FOR_TARGET="$2"
55db4b87 8242 else
05cbd757 8243 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8244 fi
d3f5afc4
MS
8245else
8246 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8247fi
8248
9a819804
AO
8249
8250
8251if test -n "$CXX_FOR_TARGET"; then
8252 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8253elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8254 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8255fi
8256
8257if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8258 for ncn_progname in c++ g++ cxx gxx; do
8259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8260set dummy ${ncn_progname}; ac_word=$2
8261echo "$as_me:$LINENO: checking for $ac_word" >&5
8262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8263if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8265else
8266 if test -n "$CXX_FOR_TARGET"; then
8267 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8268else
8269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270for as_dir in $PATH
8271do
8272 IFS=$as_save_IFS
8273 test -z "$as_dir" && as_dir=.
8274 for ac_exec_ext in '' $ac_executable_extensions; do
8275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8276 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8278 break 2
8279 fi
8280done
8281done
8282
8283fi
8284fi
8285CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8286if test -n "$CXX_FOR_TARGET"; then
8287 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8288echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8289else
8290 echo "$as_me:$LINENO: result: no" >&5
8291echo "${ECHO_T}no" >&6
8292fi
8293
8294 done
8295fi
8296
8297if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8298 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8299 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8300echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8301 if test -x $with_build_time_tools/${ncn_progname}; then
8302 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8303 echo "$as_me:$LINENO: result: yes" >&5
8304echo "${ECHO_T}yes" >&6
2429c060
PB
8305 break
8306 else
c6b750e1
DJ
8307 echo "$as_me:$LINENO: result: no" >&5
8308echo "${ECHO_T}no" >&6
2429c060
PB
8309 fi
8310 done
8311fi
8312
8313if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8314 for ncn_progname in c++ g++ cxx gxx; do
8315 if test -n "$ncn_target_tool_prefix"; then
8316 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8317set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8318echo "$as_me:$LINENO: checking for $ac_word" >&5
8319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8320if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8322else
8323 if test -n "$CXX_FOR_TARGET"; then
8324 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8325else
c6b750e1
DJ
8326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327for as_dir in $PATH
8328do
8329 IFS=$as_save_IFS
8330 test -z "$as_dir" && as_dir=.
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8333 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 break 2
8336 fi
8337done
8338done
8339
55db4b87
PB
8340fi
8341fi
c6b750e1 8342CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8343if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8344 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8345echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8346else
c6b750e1
DJ
8347 echo "$as_me:$LINENO: result: no" >&5
8348echo "${ECHO_T}no" >&6
55db4b87
PB
8349fi
8350
2429c060
PB
8351 fi
8352 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8354set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8355echo "$as_me:$LINENO: checking for $ac_word" >&5
8356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8357if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8359else
05cbd757
PB
8360 if test -n "$CXX_FOR_TARGET"; then
8361 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8362else
c6b750e1
DJ
8363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364for as_dir in $PATH
8365do
8366 IFS=$as_save_IFS
8367 test -z "$as_dir" && as_dir=.
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8370 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8372 break 2
8373 fi
8374done
8375done
8376
55db4b87
PB
8377fi
8378fi
c6b750e1 8379CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8380if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8381 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8382echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8383else
c6b750e1
DJ
8384 echo "$as_me:$LINENO: result: no" >&5
8385echo "${ECHO_T}no" >&6
55db4b87 8386fi
c6b750e1 8387
2429c060
PB
8388 fi
8389 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8390 done
8391fi
c6b750e1 8392
05cbd757
PB
8393if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8394 set dummy c++ g++ cxx gxx
8395 if test $build = $target ; then
8396 CXX_FOR_TARGET="$2"
55db4b87 8397 else
05cbd757 8398 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8399 fi
d3f5afc4
MS
8400else
8401 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8402fi
8403
9a819804
AO
8404
8405
8406if test -n "$GCC_FOR_TARGET"; then
8407 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8408elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8409 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8410fi
8411
8412if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8413 for ncn_progname in gcc; do
8414 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8415set dummy ${ncn_progname}; ac_word=$2
8416echo "$as_me:$LINENO: checking for $ac_word" >&5
8417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8418if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8420else
8421 if test -n "$GCC_FOR_TARGET"; then
8422 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8423else
8424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8425for as_dir in $PATH
8426do
8427 IFS=$as_save_IFS
8428 test -z "$as_dir" && as_dir=.
8429 for ac_exec_ext in '' $ac_executable_extensions; do
8430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8431 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8433 break 2
8434 fi
8435done
8436done
8437
8438fi
8439fi
8440GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8441if test -n "$GCC_FOR_TARGET"; then
8442 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8443echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8444else
8445 echo "$as_me:$LINENO: result: no" >&5
8446echo "${ECHO_T}no" >&6
8447fi
8448
8449 done
8450fi
8451
8452if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8453 for ncn_progname in gcc; do
c6b750e1
DJ
8454 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8455echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8456 if test -x $with_build_time_tools/${ncn_progname}; then
8457 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8458 echo "$as_me:$LINENO: result: yes" >&5
8459echo "${ECHO_T}yes" >&6
2429c060
PB
8460 break
8461 else
c6b750e1
DJ
8462 echo "$as_me:$LINENO: result: no" >&5
8463echo "${ECHO_T}no" >&6
2429c060
PB
8464 fi
8465 done
8466fi
8467
8468if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8469 for ncn_progname in gcc; do
8470 if test -n "$ncn_target_tool_prefix"; then
8471 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8472set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8473echo "$as_me:$LINENO: checking for $ac_word" >&5
8474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8475if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8476 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8477else
2429c060
PB
8478 if test -n "$GCC_FOR_TARGET"; then
8479 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8480else
c6b750e1
DJ
8481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482for as_dir in $PATH
8483do
8484 IFS=$as_save_IFS
8485 test -z "$as_dir" && as_dir=.
8486 for ac_exec_ext in '' $ac_executable_extensions; do
8487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8488 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8490 break 2
8491 fi
8492done
8493done
8494
55db4b87
PB
8495fi
8496fi
c6b750e1 8497GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8498if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8499 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8500echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8501else
c6b750e1
DJ
8502 echo "$as_me:$LINENO: result: no" >&5
8503echo "${ECHO_T}no" >&6
55db4b87
PB
8504fi
8505
2429c060
PB
8506 fi
8507 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8508 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8509set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8510echo "$as_me:$LINENO: checking for $ac_word" >&5
8511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8512if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8514else
05cbd757
PB
8515 if test -n "$GCC_FOR_TARGET"; then
8516 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8517else
c6b750e1
DJ
8518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519for as_dir in $PATH
8520do
8521 IFS=$as_save_IFS
8522 test -z "$as_dir" && as_dir=.
8523 for ac_exec_ext in '' $ac_executable_extensions; do
8524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8525 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8527 break 2
8528 fi
8529done
8530done
8531
55db4b87
PB
8532fi
8533fi
c6b750e1 8534GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8535if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8536 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8537echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8538else
c6b750e1
DJ
8539 echo "$as_me:$LINENO: result: no" >&5
8540echo "${ECHO_T}no" >&6
55db4b87 8541fi
c6b750e1 8542
2429c060
PB
8543 fi
8544 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8545 done
8546fi
c6b750e1 8547
05cbd757
PB
8548if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8549 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8550else
8551 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8552fi
8553
9a819804
AO
8554
8555
8556if test -n "$GCJ_FOR_TARGET"; then
8557 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8558elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8559 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8560fi
8561
8562if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8563 for ncn_progname in gcj; do
8564 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8565set dummy ${ncn_progname}; ac_word=$2
8566echo "$as_me:$LINENO: checking for $ac_word" >&5
8567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8568if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8570else
8571 if test -n "$GCJ_FOR_TARGET"; then
8572 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8573else
8574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575for as_dir in $PATH
8576do
8577 IFS=$as_save_IFS
8578 test -z "$as_dir" && as_dir=.
8579 for ac_exec_ext in '' $ac_executable_extensions; do
8580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8581 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8583 break 2
8584 fi
8585done
8586done
8587
8588fi
8589fi
8590GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8591if test -n "$GCJ_FOR_TARGET"; then
8592 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8593echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8594else
8595 echo "$as_me:$LINENO: result: no" >&5
8596echo "${ECHO_T}no" >&6
8597fi
8598
8599 done
8600fi
8601
8602if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8603 for ncn_progname in gcj; do
c6b750e1
DJ
8604 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8605echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8606 if test -x $with_build_time_tools/${ncn_progname}; then
8607 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8608 echo "$as_me:$LINENO: result: yes" >&5
8609echo "${ECHO_T}yes" >&6
2429c060
PB
8610 break
8611 else
c6b750e1
DJ
8612 echo "$as_me:$LINENO: result: no" >&5
8613echo "${ECHO_T}no" >&6
2429c060
PB
8614 fi
8615 done
8616fi
8617
8618if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8619 for ncn_progname in gcj; do
8620 if test -n "$ncn_target_tool_prefix"; then
8621 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8622set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8623echo "$as_me:$LINENO: checking for $ac_word" >&5
8624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8625if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8627else
8628 if test -n "$GCJ_FOR_TARGET"; then
8629 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8630else
c6b750e1
DJ
8631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8632for as_dir in $PATH
8633do
8634 IFS=$as_save_IFS
8635 test -z "$as_dir" && as_dir=.
8636 for ac_exec_ext in '' $ac_executable_extensions; do
8637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8638 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8640 break 2
8641 fi
8642done
8643done
8644
55db4b87
PB
8645fi
8646fi
9a819804
AO
8647GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8648if test -n "$GCJ_FOR_TARGET"; then
8649 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8650echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8651else
8652 echo "$as_me:$LINENO: result: no" >&5
8653echo "${ECHO_T}no" >&6
8654fi
8655
8656 fi
8657 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8658 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8659set dummy ${ncn_progname}; ac_word=$2
8660echo "$as_me:$LINENO: checking for $ac_word" >&5
8661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8662if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8664else
8665 if test -n "$GCJ_FOR_TARGET"; then
8666 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8667else
8668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8669for as_dir in $PATH
8670do
8671 IFS=$as_save_IFS
8672 test -z "$as_dir" && as_dir=.
8673 for ac_exec_ext in '' $ac_executable_extensions; do
8674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8675 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8677 break 2
8678 fi
8679done
8680done
8681
8682fi
8683fi
8684GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8685if test -n "$GCJ_FOR_TARGET"; then
8686 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8687echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8688else
8689 echo "$as_me:$LINENO: result: no" >&5
8690echo "${ECHO_T}no" >&6
8691fi
8692
8693 fi
8694 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8695 done
8696fi
8697
8698if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8699 set dummy gcj
8700 if test $build = $target ; then
8701 GCJ_FOR_TARGET="$2"
8702 else
8703 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8704 fi
d3f5afc4
MS
8705else
8706 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8707fi
8708
8709
8710
8711if test -n "$GFORTRAN_FOR_TARGET"; then
8712 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8713elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8714 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8715fi
8716
9a819804
AO
8717if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8718 for ncn_progname in gfortran; do
8719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8720set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8721echo "$as_me:$LINENO: checking for $ac_word" >&5
8722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8723if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8724 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8725else
9a819804
AO
8726 if test -n "$GFORTRAN_FOR_TARGET"; then
8727 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8728else
c6b750e1
DJ
8729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8730for as_dir in $PATH
8731do
8732 IFS=$as_save_IFS
8733 test -z "$as_dir" && as_dir=.
8734 for ac_exec_ext in '' $ac_executable_extensions; do
8735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8736 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8738 break 2
8739 fi
8740done
8741done
8742
55db4b87
PB
8743fi
8744fi
9a819804
AO
8745GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8746if test -n "$GFORTRAN_FOR_TARGET"; then
8747 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8748echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8749else
c6b750e1
DJ
8750 echo "$as_me:$LINENO: result: no" >&5
8751echo "${ECHO_T}no" >&6
55db4b87 8752fi
c6b750e1 8753
2429c060
PB
8754 done
8755fi
c6b750e1 8756
9a819804 8757if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8758 for ncn_progname in gfortran; do
c6b750e1
DJ
8759 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8760echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8761 if test -x $with_build_time_tools/${ncn_progname}; then
8762 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8763 echo "$as_me:$LINENO: result: yes" >&5
8764echo "${ECHO_T}yes" >&6
2429c060
PB
8765 break
8766 else
c6b750e1
DJ
8767 echo "$as_me:$LINENO: result: no" >&5
8768echo "${ECHO_T}no" >&6
2429c060
PB
8769 fi
8770 done
8771fi
8772
8773if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8774 for ncn_progname in gfortran; do
8775 if test -n "$ncn_target_tool_prefix"; then
8776 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8777set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8778echo "$as_me:$LINENO: checking for $ac_word" >&5
8779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8780if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8782else
8783 if test -n "$GFORTRAN_FOR_TARGET"; then
8784 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8785else
c6b750e1
DJ
8786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787for as_dir in $PATH
8788do
8789 IFS=$as_save_IFS
8790 test -z "$as_dir" && as_dir=.
8791 for ac_exec_ext in '' $ac_executable_extensions; do
8792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8793 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8795 break 2
8796 fi
8797done
8798done
8799
55db4b87
PB
8800fi
8801fi
c6b750e1 8802GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8803if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8804 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8805echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8806else
c6b750e1
DJ
8807 echo "$as_me:$LINENO: result: no" >&5
8808echo "${ECHO_T}no" >&6
55db4b87
PB
8809fi
8810
2429c060
PB
8811 fi
8812 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8814set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8815echo "$as_me:$LINENO: checking for $ac_word" >&5
8816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8817if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8819else
05cbd757 8820 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8821 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8822else
8823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824for as_dir in $PATH
8825do
8826 IFS=$as_save_IFS
8827 test -z "$as_dir" && as_dir=.
8828 for ac_exec_ext in '' $ac_executable_extensions; do
8829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8830 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8832 break 2
8833 fi
8834done
8835done
8836
55db4b87
PB
8837fi
8838fi
c6b750e1 8839GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8840if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8841 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8842echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8843else
c6b750e1
DJ
8844 echo "$as_me:$LINENO: result: no" >&5
8845echo "${ECHO_T}no" >&6
55db4b87 8846fi
c6b750e1 8847
2429c060
PB
8848 fi
8849 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8850 done
8851fi
c6b750e1 8852
05cbd757
PB
8853if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8854 set dummy gfortran
8855 if test $build = $target ; then
8856 GFORTRAN_FOR_TARGET="$2"
55db4b87 8857 else
05cbd757 8858 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8859 fi
d3f5afc4
MS
8860else
8861 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8862fi
8863
2429c060
PB
8864
8865
2429c060
PB
8866cat > conftest.c << \EOF
8867#ifdef __GNUC__
8868 gcc_yay;
8869#endif
8870EOF
8871if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8872 have_gcc_for_target=yes
859789af 8873else
2429c060
PB
8874 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8875 have_gcc_for_target=no
859789af 8876fi
2429c060
PB
8877rm conftest.c
8878
8879
8880
859789af 8881
2429c060
PB
8882if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8883 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8884 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8885echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8886 if test -x $with_build_time_tools/ar; then
8887 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8888 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8889 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8890echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8891 else
c6b750e1
DJ
8892 echo "$as_me:$LINENO: result: no" >&5
8893echo "${ECHO_T}no" >&6
3a35eeb3 8894 fi
2429c060
PB
8895 elif test $build != $host && test $have_gcc_for_target = yes; then
8896 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8897 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8898 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8899 fi
2429c060 8900fi
c6b750e1 8901if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8902 # Extract the first word of "ar", so it can be a program name with args.
8903set dummy ar; ac_word=$2
c6b750e1
DJ
8904echo "$as_me:$LINENO: checking for $ac_word" >&5
8905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8906if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8907 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8908else
c6b750e1
DJ
8909 case $AR_FOR_TARGET in
8910 [\\/]* | ?:[\\/]*)
2429c060
PB
8911 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8912 ;;
2429c060 8913 *)
c6b750e1
DJ
8914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8915for as_dir in $gcc_cv_tool_dirs
8916do
8917 IFS=$as_save_IFS
8918 test -z "$as_dir" && as_dir=.
8919 for ac_exec_ext in '' $ac_executable_extensions; do
8920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8921 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8923 break 2
8924 fi
8925done
8926done
8927
2429c060
PB
8928 ;;
8929esac
859789af 8930fi
c6b750e1
DJ
8931AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8932
2429c060 8933if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8934 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8935echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8936else
c6b750e1
DJ
8937 echo "$as_me:$LINENO: result: no" >&5
8938echo "${ECHO_T}no" >&6
859789af 8939fi
05cbd757 8940
2429c060
PB
8941fi
8942if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8943
8944
8945if test -n "$AR_FOR_TARGET"; then
8946 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8947elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8948 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8949fi
8950
8951if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8952 for ncn_progname in ar; do
8953 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8954set dummy ${ncn_progname}; ac_word=$2
8955echo "$as_me:$LINENO: checking for $ac_word" >&5
8956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8957if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8959else
8960 if test -n "$AR_FOR_TARGET"; then
8961 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8962else
8963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8964for as_dir in $PATH
8965do
8966 IFS=$as_save_IFS
8967 test -z "$as_dir" && as_dir=.
8968 for ac_exec_ext in '' $ac_executable_extensions; do
8969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8970 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8972 break 2
8973 fi
8974done
8975done
8976
8977fi
8978fi
8979AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8980if test -n "$AR_FOR_TARGET"; then
8981 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8982echo "${ECHO_T}$AR_FOR_TARGET" >&6
8983else
8984 echo "$as_me:$LINENO: result: no" >&5
8985echo "${ECHO_T}no" >&6
8986fi
8987
8988 done
8989fi
8990
8991if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8992 for ncn_progname in ar; do
c6b750e1
DJ
8993 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8994echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8995 if test -x $with_build_time_tools/${ncn_progname}; then
8996 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8997 echo "$as_me:$LINENO: result: yes" >&5
8998echo "${ECHO_T}yes" >&6
2429c060
PB
8999 break
9000 else
c6b750e1
DJ
9001 echo "$as_me:$LINENO: result: no" >&5
9002echo "${ECHO_T}no" >&6
2429c060
PB
9003 fi
9004 done
859789af
AC
9005fi
9006
2429c060
PB
9007if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9008 for ncn_progname in ar; do
9009 if test -n "$ncn_target_tool_prefix"; then
9010 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9011set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9012echo "$as_me:$LINENO: checking for $ac_word" >&5
9013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9014if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9016else
2429c060
PB
9017 if test -n "$AR_FOR_TARGET"; then
9018 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 9019else
c6b750e1
DJ
9020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9021for as_dir in $PATH
9022do
9023 IFS=$as_save_IFS
9024 test -z "$as_dir" && as_dir=.
9025 for ac_exec_ext in '' $ac_executable_extensions; do
9026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9027 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9029 break 2
9030 fi
9031done
9032done
9033
7e0f7140
GK
9034fi
9035fi
c6b750e1 9036AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9037if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9038 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9039echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9040else
c6b750e1
DJ
9041 echo "$as_me:$LINENO: result: no" >&5
9042echo "${ECHO_T}no" >&6
7e0f7140
GK
9043fi
9044
2429c060
PB
9045 fi
9046 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 9048set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9049echo "$as_me:$LINENO: checking for $ac_word" >&5
9050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9051if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9053else
2429c060
PB
9054 if test -n "$AR_FOR_TARGET"; then
9055 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 9056else
c6b750e1
DJ
9057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9058for as_dir in $PATH
9059do
9060 IFS=$as_save_IFS
9061 test -z "$as_dir" && as_dir=.
9062 for ac_exec_ext in '' $ac_executable_extensions; do
9063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9064 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9066 break 2
9067 fi
9068done
9069done
9070
7e0f7140
GK
9071fi
9072fi
c6b750e1 9073AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9074if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9075 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9076echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9077else
c6b750e1
DJ
9078 echo "$as_me:$LINENO: result: no" >&5
9079echo "${ECHO_T}no" >&6
7e0f7140 9080fi
c6b750e1 9081
2429c060
PB
9082 fi
9083 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9084 done
9085fi
c6b750e1 9086
2429c060
PB
9087if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9088 set dummy ar
7e0f7140 9089 if test $build = $target ; then
2429c060 9090 AR_FOR_TARGET="$2"
7e0f7140 9091 else
2429c060 9092 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 9093 fi
d3f5afc4
MS
9094else
9095 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
9096fi
9097
3a35eeb3
PB
9098else
9099 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
9100fi
9101
9102
9103
9104
9105if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9106 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9107 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9108echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9109 if test -x $with_build_time_tools/as; then
9110 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9111 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
9112 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9113echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 9114 else
c6b750e1
DJ
9115 echo "$as_me:$LINENO: result: no" >&5
9116echo "${ECHO_T}no" >&6
3a35eeb3 9117 fi
2429c060
PB
9118 elif test $build != $host && test $have_gcc_for_target = yes; then
9119 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
9120 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9121 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
9122 fi
9123fi
c6b750e1 9124if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9125 # Extract the first word of "as", so it can be a program name with args.
9126set dummy as; ac_word=$2
c6b750e1
DJ
9127echo "$as_me:$LINENO: checking for $ac_word" >&5
9128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9129if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9130 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9131else
c6b750e1
DJ
9132 case $AS_FOR_TARGET in
9133 [\\/]* | ?:[\\/]*)
2429c060
PB
9134 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9135 ;;
2429c060 9136 *)
c6b750e1
DJ
9137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9138for as_dir in $gcc_cv_tool_dirs
9139do
9140 IFS=$as_save_IFS
9141 test -z "$as_dir" && as_dir=.
9142 for ac_exec_ext in '' $ac_executable_extensions; do
9143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9144 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9146 break 2
9147 fi
9148done
9149done
9150
2429c060
PB
9151 ;;
9152esac
9153fi
c6b750e1
DJ
9154AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9155
2429c060 9156if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9157 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9158echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9159else
c6b750e1
DJ
9160 echo "$as_me:$LINENO: result: no" >&5
9161echo "${ECHO_T}no" >&6
2429c060
PB
9162fi
9163
9164fi
9165if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9166
9167
9168if test -n "$AS_FOR_TARGET"; then
9169 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9170elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9171 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9172fi
9173
9174if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9175 for ncn_progname in as; do
9176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9177set dummy ${ncn_progname}; ac_word=$2
9178echo "$as_me:$LINENO: checking for $ac_word" >&5
9179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9180if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9182else
9183 if test -n "$AS_FOR_TARGET"; then
9184 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9185else
9186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9187for as_dir in $PATH
9188do
9189 IFS=$as_save_IFS
9190 test -z "$as_dir" && as_dir=.
9191 for ac_exec_ext in '' $ac_executable_extensions; do
9192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9193 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9195 break 2
9196 fi
9197done
9198done
9199
9200fi
9201fi
9202AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9203if test -n "$AS_FOR_TARGET"; then
9204 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9205echo "${ECHO_T}$AS_FOR_TARGET" >&6
9206else
9207 echo "$as_me:$LINENO: result: no" >&5
9208echo "${ECHO_T}no" >&6
9209fi
9210
9211 done
9212fi
9213
9214if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9215 for ncn_progname in as; do
c6b750e1
DJ
9216 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9217echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9218 if test -x $with_build_time_tools/${ncn_progname}; then
9219 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9220 echo "$as_me:$LINENO: result: yes" >&5
9221echo "${ECHO_T}yes" >&6
2429c060
PB
9222 break
9223 else
c6b750e1
DJ
9224 echo "$as_me:$LINENO: result: no" >&5
9225echo "${ECHO_T}no" >&6
2429c060
PB
9226 fi
9227 done
9228fi
9229
9230if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9231 for ncn_progname in as; do
9232 if test -n "$ncn_target_tool_prefix"; then
9233 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9234set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9235echo "$as_me:$LINENO: checking for $ac_word" >&5
9236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9237if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9239else
9240 if test -n "$AS_FOR_TARGET"; then
9241 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9242else
c6b750e1
DJ
9243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9244for as_dir in $PATH
9245do
9246 IFS=$as_save_IFS
9247 test -z "$as_dir" && as_dir=.
9248 for ac_exec_ext in '' $ac_executable_extensions; do
9249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9250 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9252 break 2
9253 fi
9254done
9255done
9256
2429c060
PB
9257fi
9258fi
c6b750e1 9259AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9260if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9261 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9262echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9263else
c6b750e1
DJ
9264 echo "$as_me:$LINENO: result: no" >&5
9265echo "${ECHO_T}no" >&6
2429c060
PB
9266fi
9267
9268 fi
9269 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9271set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9272echo "$as_me:$LINENO: checking for $ac_word" >&5
9273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9274if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9276else
9277 if test -n "$AS_FOR_TARGET"; then
9278 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9279else
c6b750e1
DJ
9280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9281for as_dir in $PATH
9282do
9283 IFS=$as_save_IFS
9284 test -z "$as_dir" && as_dir=.
9285 for ac_exec_ext in '' $ac_executable_extensions; do
9286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9287 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9289 break 2
9290 fi
9291done
9292done
9293
2429c060
PB
9294fi
9295fi
c6b750e1 9296AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9297if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9298 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9299echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9300else
c6b750e1
DJ
9301 echo "$as_me:$LINENO: result: no" >&5
9302echo "${ECHO_T}no" >&6
2429c060 9303fi
c6b750e1 9304
2429c060
PB
9305 fi
9306 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9307 done
9308fi
c6b750e1 9309
2429c060
PB
9310if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9311 set dummy as
9312 if test $build = $target ; then
9313 AS_FOR_TARGET="$2"
9314 else
9315 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9316 fi
d3f5afc4
MS
9317else
9318 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9319fi
9320
3a35eeb3
PB
9321else
9322 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9323fi
9324
9325
9326
9327
9328if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9329 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9330 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9331echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9332 if test -x $with_build_time_tools/dlltool; then
9333 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9334 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9335 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9336echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9337 else
c6b750e1
DJ
9338 echo "$as_me:$LINENO: result: no" >&5
9339echo "${ECHO_T}no" >&6
3a35eeb3 9340 fi
2429c060
PB
9341 elif test $build != $host && test $have_gcc_for_target = yes; then
9342 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9343 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9344 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9345 fi
9346fi
c6b750e1 9347if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9348 # Extract the first word of "dlltool", so it can be a program name with args.
9349set dummy dlltool; ac_word=$2
c6b750e1
DJ
9350echo "$as_me:$LINENO: checking for $ac_word" >&5
9351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9352if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9353 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9354else
c6b750e1
DJ
9355 case $DLLTOOL_FOR_TARGET in
9356 [\\/]* | ?:[\\/]*)
2429c060
PB
9357 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9358 ;;
2429c060 9359 *)
c6b750e1
DJ
9360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9361for as_dir in $gcc_cv_tool_dirs
9362do
9363 IFS=$as_save_IFS
9364 test -z "$as_dir" && as_dir=.
9365 for ac_exec_ext in '' $ac_executable_extensions; do
9366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9367 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9369 break 2
9370 fi
9371done
9372done
9373
2429c060
PB
9374 ;;
9375esac
9376fi
c6b750e1
DJ
9377DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9378
2429c060 9379if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9380 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9381echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9382else
c6b750e1
DJ
9383 echo "$as_me:$LINENO: result: no" >&5
9384echo "${ECHO_T}no" >&6
2429c060
PB
9385fi
9386
9387fi
9388if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9389
9390
9391if test -n "$DLLTOOL_FOR_TARGET"; then
9392 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9393elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9394 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9395fi
9396
9397if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9398 for ncn_progname in dlltool; do
9399 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9400set dummy ${ncn_progname}; ac_word=$2
9401echo "$as_me:$LINENO: checking for $ac_word" >&5
9402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9403if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9405else
9406 if test -n "$DLLTOOL_FOR_TARGET"; then
9407 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9408else
9409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9410for as_dir in $PATH
9411do
9412 IFS=$as_save_IFS
9413 test -z "$as_dir" && as_dir=.
9414 for ac_exec_ext in '' $ac_executable_extensions; do
9415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9416 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9418 break 2
9419 fi
9420done
9421done
9422
9423fi
9424fi
9425DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9426if test -n "$DLLTOOL_FOR_TARGET"; then
9427 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9428echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9429else
9430 echo "$as_me:$LINENO: result: no" >&5
9431echo "${ECHO_T}no" >&6
9432fi
9433
9434 done
9435fi
9436
9437if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9438 for ncn_progname in dlltool; do
c6b750e1
DJ
9439 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9440echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9441 if test -x $with_build_time_tools/${ncn_progname}; then
9442 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9443 echo "$as_me:$LINENO: result: yes" >&5
9444echo "${ECHO_T}yes" >&6
2429c060
PB
9445 break
9446 else
c6b750e1
DJ
9447 echo "$as_me:$LINENO: result: no" >&5
9448echo "${ECHO_T}no" >&6
2429c060
PB
9449 fi
9450 done
9451fi
9452
9453if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9454 for ncn_progname in dlltool; do
9455 if test -n "$ncn_target_tool_prefix"; then
9456 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9457set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9458echo "$as_me:$LINENO: checking for $ac_word" >&5
9459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9460if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9462else
9463 if test -n "$DLLTOOL_FOR_TARGET"; then
9464 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9465else
c6b750e1
DJ
9466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9467for as_dir in $PATH
9468do
9469 IFS=$as_save_IFS
9470 test -z "$as_dir" && as_dir=.
9471 for ac_exec_ext in '' $ac_executable_extensions; do
9472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9473 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9475 break 2
9476 fi
9477done
9478done
9479
2429c060
PB
9480fi
9481fi
c6b750e1 9482DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9483if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9484 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9485echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9486else
c6b750e1
DJ
9487 echo "$as_me:$LINENO: result: no" >&5
9488echo "${ECHO_T}no" >&6
2429c060
PB
9489fi
9490
9491 fi
9492 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9494set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9495echo "$as_me:$LINENO: checking for $ac_word" >&5
9496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9497if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9499else
9500 if test -n "$DLLTOOL_FOR_TARGET"; then
9501 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9502else
c6b750e1
DJ
9503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9504for as_dir in $PATH
9505do
9506 IFS=$as_save_IFS
9507 test -z "$as_dir" && as_dir=.
9508 for ac_exec_ext in '' $ac_executable_extensions; do
9509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9510 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9512 break 2
9513 fi
9514done
9515done
9516
2429c060
PB
9517fi
9518fi
c6b750e1 9519DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9520if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9521 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9522echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9523else
c6b750e1
DJ
9524 echo "$as_me:$LINENO: result: no" >&5
9525echo "${ECHO_T}no" >&6
2429c060 9526fi
c6b750e1 9527
2429c060
PB
9528 fi
9529 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9530 done
9531fi
c6b750e1 9532
2429c060
PB
9533if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9534 set dummy dlltool
9535 if test $build = $target ; then
9536 DLLTOOL_FOR_TARGET="$2"
9537 else
9538 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9539 fi
d3f5afc4
MS
9540else
9541 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9542fi
9543
3a35eeb3
PB
9544else
9545 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9546fi
9547
9548
9549
9550
9551if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9552 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9553 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9554echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9555 if test -x $with_build_time_tools/ld; then
9556 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9557 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9558 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9559echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9560 else
c6b750e1
DJ
9561 echo "$as_me:$LINENO: result: no" >&5
9562echo "${ECHO_T}no" >&6
3a35eeb3 9563 fi
2429c060
PB
9564 elif test $build != $host && test $have_gcc_for_target = yes; then
9565 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9566 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9567 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9568 fi
9569fi
c6b750e1 9570if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9571 # Extract the first word of "ld", so it can be a program name with args.
9572set dummy ld; ac_word=$2
c6b750e1
DJ
9573echo "$as_me:$LINENO: checking for $ac_word" >&5
9574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9575if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9577else
c6b750e1
DJ
9578 case $LD_FOR_TARGET in
9579 [\\/]* | ?:[\\/]*)
2429c060
PB
9580 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9581 ;;
2429c060 9582 *)
c6b750e1
DJ
9583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584for as_dir in $gcc_cv_tool_dirs
9585do
9586 IFS=$as_save_IFS
9587 test -z "$as_dir" && as_dir=.
9588 for ac_exec_ext in '' $ac_executable_extensions; do
9589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9590 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9592 break 2
9593 fi
9594done
9595done
9596
2429c060
PB
9597 ;;
9598esac
9599fi
c6b750e1
DJ
9600LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9601
2429c060 9602if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9603 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9604echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9605else
c6b750e1
DJ
9606 echo "$as_me:$LINENO: result: no" >&5
9607echo "${ECHO_T}no" >&6
2429c060
PB
9608fi
9609
9610fi
9611if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9612
9613
9614if test -n "$LD_FOR_TARGET"; then
9615 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9616elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9617 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9618fi
9619
9620if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9621 for ncn_progname in ld; do
9622 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9623set dummy ${ncn_progname}; ac_word=$2
9624echo "$as_me:$LINENO: checking for $ac_word" >&5
9625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9626if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9628else
9629 if test -n "$LD_FOR_TARGET"; then
9630 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9631else
9632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633for as_dir in $PATH
9634do
9635 IFS=$as_save_IFS
9636 test -z "$as_dir" && as_dir=.
9637 for ac_exec_ext in '' $ac_executable_extensions; do
9638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9639 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9641 break 2
9642 fi
9643done
9644done
9645
9646fi
9647fi
9648LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9649if test -n "$LD_FOR_TARGET"; then
9650 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9651echo "${ECHO_T}$LD_FOR_TARGET" >&6
9652else
9653 echo "$as_me:$LINENO: result: no" >&5
9654echo "${ECHO_T}no" >&6
9655fi
9656
9657 done
9658fi
9659
9660if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9661 for ncn_progname in ld; do
c6b750e1
DJ
9662 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9663echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9664 if test -x $with_build_time_tools/${ncn_progname}; then
9665 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9666 echo "$as_me:$LINENO: result: yes" >&5
9667echo "${ECHO_T}yes" >&6
2429c060
PB
9668 break
9669 else
c6b750e1
DJ
9670 echo "$as_me:$LINENO: result: no" >&5
9671echo "${ECHO_T}no" >&6
2429c060
PB
9672 fi
9673 done
9674fi
9675
9676if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9677 for ncn_progname in ld; do
9678 if test -n "$ncn_target_tool_prefix"; then
9679 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9680set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9681echo "$as_me:$LINENO: checking for $ac_word" >&5
9682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9683if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9685else
9686 if test -n "$LD_FOR_TARGET"; then
9687 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9688else
c6b750e1
DJ
9689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690for as_dir in $PATH
9691do
9692 IFS=$as_save_IFS
9693 test -z "$as_dir" && as_dir=.
9694 for ac_exec_ext in '' $ac_executable_extensions; do
9695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9696 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9698 break 2
9699 fi
9700done
9701done
9702
2429c060
PB
9703fi
9704fi
c6b750e1 9705LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9706if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9707 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9708echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9709else
c6b750e1
DJ
9710 echo "$as_me:$LINENO: result: no" >&5
9711echo "${ECHO_T}no" >&6
2429c060
PB
9712fi
9713
9714 fi
9715 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9717set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9718echo "$as_me:$LINENO: checking for $ac_word" >&5
9719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9720if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9722else
9723 if test -n "$LD_FOR_TARGET"; then
9724 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9725else
c6b750e1
DJ
9726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9727for as_dir in $PATH
9728do
9729 IFS=$as_save_IFS
9730 test -z "$as_dir" && as_dir=.
9731 for ac_exec_ext in '' $ac_executable_extensions; do
9732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9733 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9735 break 2
9736 fi
9737done
9738done
9739
2429c060
PB
9740fi
9741fi
c6b750e1 9742LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9743if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9744 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9745echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9746else
c6b750e1
DJ
9747 echo "$as_me:$LINENO: result: no" >&5
9748echo "${ECHO_T}no" >&6
2429c060 9749fi
c6b750e1 9750
2429c060
PB
9751 fi
9752 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9753 done
9754fi
c6b750e1 9755
2429c060
PB
9756if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9757 set dummy ld
9758 if test $build = $target ; then
9759 LD_FOR_TARGET="$2"
9760 else
9761 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9762 fi
d3f5afc4
MS
9763else
9764 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9765fi
9766
3a35eeb3
PB
9767else
9768 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9769fi
9770
9771
9772
9773
9774if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9775 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9776 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9777echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9778 if test -x $with_build_time_tools/lipo; then
9779 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9780 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9781 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9782echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9783 else
c6b750e1
DJ
9784 echo "$as_me:$LINENO: result: no" >&5
9785echo "${ECHO_T}no" >&6
3a35eeb3 9786 fi
2429c060
PB
9787 elif test $build != $host && test $have_gcc_for_target = yes; then
9788 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9789 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9790 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9791 fi
9792fi
9a819804
AO
9793if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9794 # Extract the first word of "lipo", so it can be a program name with args.
9795set dummy lipo; ac_word=$2
9796echo "$as_me:$LINENO: checking for $ac_word" >&5
9797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9798if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9799 echo $ECHO_N "(cached) $ECHO_C" >&6
9800else
9801 case $LIPO_FOR_TARGET in
9802 [\\/]* | ?:[\\/]*)
9803 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9804 ;;
9805 *)
9806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807for as_dir in $gcc_cv_tool_dirs
9808do
9809 IFS=$as_save_IFS
9810 test -z "$as_dir" && as_dir=.
9811 for ac_exec_ext in '' $ac_executable_extensions; do
9812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9813 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9815 break 2
9816 fi
9817done
9818done
9819
9820 ;;
9821esac
9822fi
9823LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9824
9825if test -n "$LIPO_FOR_TARGET"; then
9826 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9827echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9828else
9829 echo "$as_me:$LINENO: result: no" >&5
9830echo "${ECHO_T}no" >&6
9831fi
9832
9833fi
9834if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9835
9836
9837if test -n "$LIPO_FOR_TARGET"; then
9838 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9839elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9840 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9841fi
9842
9843if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9844 for ncn_progname in lipo; do
9845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9846set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9847echo "$as_me:$LINENO: checking for $ac_word" >&5
9848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9849if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9850 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9851else
9a819804
AO
9852 if test -n "$LIPO_FOR_TARGET"; then
9853 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9854else
9855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856for as_dir in $PATH
c6b750e1
DJ
9857do
9858 IFS=$as_save_IFS
9859 test -z "$as_dir" && as_dir=.
9860 for ac_exec_ext in '' $ac_executable_extensions; do
9861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9862 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9864 break 2
9865 fi
9866done
9867done
9868
2429c060 9869fi
9a819804
AO
9870fi
9871LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9872if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9873 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9874echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9875else
c6b750e1
DJ
9876 echo "$as_me:$LINENO: result: no" >&5
9877echo "${ECHO_T}no" >&6
2429c060
PB
9878fi
9879
9a819804 9880 done
2429c060 9881fi
9a819804
AO
9882
9883if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9884 for ncn_progname in lipo; do
c6b750e1
DJ
9885 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9886echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9887 if test -x $with_build_time_tools/${ncn_progname}; then
9888 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9889 echo "$as_me:$LINENO: result: yes" >&5
9890echo "${ECHO_T}yes" >&6
2429c060
PB
9891 break
9892 else
c6b750e1
DJ
9893 echo "$as_me:$LINENO: result: no" >&5
9894echo "${ECHO_T}no" >&6
2429c060
PB
9895 fi
9896 done
9897fi
9898
9899if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9900 for ncn_progname in lipo; do
9901 if test -n "$ncn_target_tool_prefix"; then
9902 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9903set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9904echo "$as_me:$LINENO: checking for $ac_word" >&5
9905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9906if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9908else
9909 if test -n "$LIPO_FOR_TARGET"; then
9910 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9911else
c6b750e1
DJ
9912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913for as_dir in $PATH
9914do
9915 IFS=$as_save_IFS
9916 test -z "$as_dir" && as_dir=.
9917 for ac_exec_ext in '' $ac_executable_extensions; do
9918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9919 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9921 break 2
9922 fi
9923done
9924done
9925
2429c060
PB
9926fi
9927fi
c6b750e1 9928LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9929if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9930 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9931echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9932else
c6b750e1
DJ
9933 echo "$as_me:$LINENO: result: no" >&5
9934echo "${ECHO_T}no" >&6
2429c060
PB
9935fi
9936
9937 fi
9938 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9939 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9940set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9941echo "$as_me:$LINENO: checking for $ac_word" >&5
9942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9943if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9945else
9946 if test -n "$LIPO_FOR_TARGET"; then
9947 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9948else
c6b750e1
DJ
9949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9950for as_dir in $PATH
9951do
9952 IFS=$as_save_IFS
9953 test -z "$as_dir" && as_dir=.
9954 for ac_exec_ext in '' $ac_executable_extensions; do
9955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9956 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9958 break 2
9959 fi
9960done
9961done
9962
2429c060
PB
9963fi
9964fi
c6b750e1 9965LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9966if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9967 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9968echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9969else
c6b750e1
DJ
9970 echo "$as_me:$LINENO: result: no" >&5
9971echo "${ECHO_T}no" >&6
2429c060 9972fi
c6b750e1 9973
2429c060
PB
9974 fi
9975 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9976 done
9977fi
c6b750e1 9978
2429c060
PB
9979if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9980 set dummy lipo
9981 if test $build = $target ; then
9982 LIPO_FOR_TARGET="$2"
9983 else
9984 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9985 fi
d3f5afc4
MS
9986else
9987 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
9988fi
9989
3a35eeb3
PB
9990else
9991 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
9992fi
9993
9994
9995
9996
9997if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9998 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9999 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10000echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10001 if test -x $with_build_time_tools/nm; then
10002 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10003 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
10004 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10005echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 10006 else
c6b750e1
DJ
10007 echo "$as_me:$LINENO: result: no" >&5
10008echo "${ECHO_T}no" >&6
3a35eeb3 10009 fi
2429c060
PB
10010 elif test $build != $host && test $have_gcc_for_target = yes; then
10011 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
10012 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10013 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
10014 fi
10015fi
c6b750e1 10016if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10017 # Extract the first word of "nm", so it can be a program name with args.
10018set dummy nm; ac_word=$2
c6b750e1
DJ
10019echo "$as_me:$LINENO: checking for $ac_word" >&5
10020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10021if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10023else
c6b750e1
DJ
10024 case $NM_FOR_TARGET in
10025 [\\/]* | ?:[\\/]*)
2429c060
PB
10026 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10027 ;;
2429c060 10028 *)
c6b750e1
DJ
10029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10030for as_dir in $gcc_cv_tool_dirs
10031do
10032 IFS=$as_save_IFS
10033 test -z "$as_dir" && as_dir=.
10034 for ac_exec_ext in '' $ac_executable_extensions; do
10035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10036 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10038 break 2
10039 fi
10040done
10041done
10042
2429c060
PB
10043 ;;
10044esac
10045fi
c6b750e1
DJ
10046NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10047
2429c060 10048if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10049 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10050echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 10051else
c6b750e1
DJ
10052 echo "$as_me:$LINENO: result: no" >&5
10053echo "${ECHO_T}no" >&6
2429c060
PB
10054fi
10055
10056fi
10057if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
10058
10059
10060if test -n "$NM_FOR_TARGET"; then
10061 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10062elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10063 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10064fi
10065
10066if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10067 for ncn_progname in nm; do
10068 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10069set dummy ${ncn_progname}; ac_word=$2
10070echo "$as_me:$LINENO: checking for $ac_word" >&5
10071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10072if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10074else
10075 if test -n "$NM_FOR_TARGET"; then
10076 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10077else
10078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10079for as_dir in $PATH
10080do
10081 IFS=$as_save_IFS
10082 test -z "$as_dir" && as_dir=.
10083 for ac_exec_ext in '' $ac_executable_extensions; do
10084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10085 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10087 break 2
10088 fi
10089done
10090done
10091
10092fi
10093fi
10094NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10095if test -n "$NM_FOR_TARGET"; then
10096 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10097echo "${ECHO_T}$NM_FOR_TARGET" >&6
10098else
10099 echo "$as_me:$LINENO: result: no" >&5
10100echo "${ECHO_T}no" >&6
10101fi
10102
10103 done
10104fi
10105
10106if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10107 for ncn_progname in nm; do
c6b750e1
DJ
10108 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10109echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10110 if test -x $with_build_time_tools/${ncn_progname}; then
10111 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10112 echo "$as_me:$LINENO: result: yes" >&5
10113echo "${ECHO_T}yes" >&6
2429c060
PB
10114 break
10115 else
c6b750e1
DJ
10116 echo "$as_me:$LINENO: result: no" >&5
10117echo "${ECHO_T}no" >&6
2429c060
PB
10118 fi
10119 done
10120fi
10121
10122if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10123 for ncn_progname in nm; do
10124 if test -n "$ncn_target_tool_prefix"; then
10125 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10126set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10127echo "$as_me:$LINENO: checking for $ac_word" >&5
10128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10129if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10131else
55db4b87
PB
10132 if test -n "$NM_FOR_TARGET"; then
10133 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10134else
c6b750e1
DJ
10135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10136for as_dir in $PATH
10137do
10138 IFS=$as_save_IFS
10139 test -z "$as_dir" && as_dir=.
10140 for ac_exec_ext in '' $ac_executable_extensions; do
10141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10142 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10144 break 2
10145 fi
10146done
10147done
10148
859789af
AC
10149fi
10150fi
c6b750e1 10151NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 10152if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10153 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10154echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10155else
c6b750e1
DJ
10156 echo "$as_me:$LINENO: result: no" >&5
10157echo "${ECHO_T}no" >&6
859789af
AC
10158fi
10159
2429c060
PB
10160 fi
10161 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10162 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10163set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10164echo "$as_me:$LINENO: checking for $ac_word" >&5
10165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10166if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10168else
05cbd757
PB
10169 if test -n "$NM_FOR_TARGET"; then
10170 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10171else
c6b750e1
DJ
10172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10173for as_dir in $PATH
10174do
10175 IFS=$as_save_IFS
10176 test -z "$as_dir" && as_dir=.
10177 for ac_exec_ext in '' $ac_executable_extensions; do
10178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10179 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10181 break 2
10182 fi
10183done
10184done
10185
859789af
AC
10186fi
10187fi
c6b750e1 10188NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10189if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10190 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10191echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10192else
c6b750e1
DJ
10193 echo "$as_me:$LINENO: result: no" >&5
10194echo "${ECHO_T}no" >&6
859789af 10195fi
c6b750e1 10196
2429c060
PB
10197 fi
10198 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10199 done
10200fi
c6b750e1 10201
05cbd757
PB
10202if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10203 set dummy nm
10204 if test $build = $target ; then
10205 NM_FOR_TARGET="$2"
859789af 10206 else
05cbd757 10207 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10208 fi
d3f5afc4
MS
10209else
10210 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10211fi
10212
3a35eeb3
PB
10213else
10214 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10215fi
10216
10217
10218
10219
10220if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10221 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10222 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10223echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10224 if test -x $with_build_time_tools/objdump; then
10225 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10226 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10227 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10228echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10229 else
c6b750e1
DJ
10230 echo "$as_me:$LINENO: result: no" >&5
10231echo "${ECHO_T}no" >&6
3a35eeb3 10232 fi
2429c060
PB
10233 elif test $build != $host && test $have_gcc_for_target = yes; then
10234 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10235 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10236 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10237 fi
10238fi
c6b750e1 10239if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10240 # Extract the first word of "objdump", so it can be a program name with args.
10241set dummy objdump; ac_word=$2
c6b750e1
DJ
10242echo "$as_me:$LINENO: checking for $ac_word" >&5
10243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10244if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10246else
c6b750e1
DJ
10247 case $OBJDUMP_FOR_TARGET in
10248 [\\/]* | ?:[\\/]*)
2429c060
PB
10249 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10250 ;;
2429c060 10251 *)
c6b750e1
DJ
10252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10253for as_dir in $gcc_cv_tool_dirs
10254do
10255 IFS=$as_save_IFS
10256 test -z "$as_dir" && as_dir=.
10257 for ac_exec_ext in '' $ac_executable_extensions; do
10258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10259 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10261 break 2
10262 fi
10263done
10264done
10265
2429c060
PB
10266 ;;
10267esac
10268fi
c6b750e1
DJ
10269OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10270
2429c060 10271if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10272 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10273echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10274else
c6b750e1
DJ
10275 echo "$as_me:$LINENO: result: no" >&5
10276echo "${ECHO_T}no" >&6
2429c060
PB
10277fi
10278
10279fi
10280if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10281
10282
10283if test -n "$OBJDUMP_FOR_TARGET"; then
10284 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10285elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10286 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10287fi
10288
10289if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10290 for ncn_progname in objdump; do
10291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10292set dummy ${ncn_progname}; ac_word=$2
10293echo "$as_me:$LINENO: checking for $ac_word" >&5
10294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10295if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10297else
10298 if test -n "$OBJDUMP_FOR_TARGET"; then
10299 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10300else
10301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10302for as_dir in $PATH
10303do
10304 IFS=$as_save_IFS
10305 test -z "$as_dir" && as_dir=.
10306 for ac_exec_ext in '' $ac_executable_extensions; do
10307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10308 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10310 break 2
10311 fi
10312done
10313done
10314
10315fi
10316fi
10317OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10318if test -n "$OBJDUMP_FOR_TARGET"; then
10319 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10320echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10321else
10322 echo "$as_me:$LINENO: result: no" >&5
10323echo "${ECHO_T}no" >&6
10324fi
10325
10326 done
10327fi
10328
10329if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10330 for ncn_progname in objdump; do
c6b750e1
DJ
10331 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10332echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10333 if test -x $with_build_time_tools/${ncn_progname}; then
10334 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10335 echo "$as_me:$LINENO: result: yes" >&5
10336echo "${ECHO_T}yes" >&6
2429c060
PB
10337 break
10338 else
c6b750e1
DJ
10339 echo "$as_me:$LINENO: result: no" >&5
10340echo "${ECHO_T}no" >&6
2429c060
PB
10341 fi
10342 done
10343fi
10344
10345if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10346 for ncn_progname in objdump; do
10347 if test -n "$ncn_target_tool_prefix"; then
10348 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10349set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10350echo "$as_me:$LINENO: checking for $ac_word" >&5
10351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10352if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10354else
10355 if test -n "$OBJDUMP_FOR_TARGET"; then
10356 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10357else
c6b750e1
DJ
10358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10359for as_dir in $PATH
10360do
10361 IFS=$as_save_IFS
10362 test -z "$as_dir" && as_dir=.
10363 for ac_exec_ext in '' $ac_executable_extensions; do
10364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10365 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10367 break 2
10368 fi
10369done
10370done
10371
5ae72758
DJ
10372fi
10373fi
c6b750e1 10374OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10375if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10376 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10377echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10378else
c6b750e1
DJ
10379 echo "$as_me:$LINENO: result: no" >&5
10380echo "${ECHO_T}no" >&6
5ae72758
DJ
10381fi
10382
2429c060
PB
10383 fi
10384 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10386set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10387echo "$as_me:$LINENO: checking for $ac_word" >&5
10388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10389if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10391else
10392 if test -n "$OBJDUMP_FOR_TARGET"; then
10393 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10394else
c6b750e1
DJ
10395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396for as_dir in $PATH
10397do
10398 IFS=$as_save_IFS
10399 test -z "$as_dir" && as_dir=.
10400 for ac_exec_ext in '' $ac_executable_extensions; do
10401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10402 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10404 break 2
10405 fi
10406done
10407done
10408
5ae72758
DJ
10409fi
10410fi
c6b750e1 10411OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10412if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10413 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10414echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10415else
c6b750e1
DJ
10416 echo "$as_me:$LINENO: result: no" >&5
10417echo "${ECHO_T}no" >&6
5ae72758 10418fi
c6b750e1 10419
2429c060
PB
10420 fi
10421 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10422 done
10423fi
c6b750e1 10424
5ae72758
DJ
10425if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10426 set dummy objdump
10427 if test $build = $target ; then
10428 OBJDUMP_FOR_TARGET="$2"
10429 else
10430 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10431 fi
d3f5afc4
MS
10432else
10433 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10434fi
10435
3a35eeb3
PB
10436else
10437 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10438fi
10439
10440
10441
10442
10443if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10444 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10445 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10446echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10447 if test -x $with_build_time_tools/ranlib; then
10448 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10449 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10450 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10451echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10452 else
c6b750e1
DJ
10453 echo "$as_me:$LINENO: result: no" >&5
10454echo "${ECHO_T}no" >&6
3a35eeb3 10455 fi
2429c060
PB
10456 elif test $build != $host && test $have_gcc_for_target = yes; then
10457 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10458 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10459 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10460 fi
10461fi
c6b750e1 10462if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10463 # Extract the first word of "ranlib", so it can be a program name with args.
10464set dummy ranlib; ac_word=$2
c6b750e1
DJ
10465echo "$as_me:$LINENO: checking for $ac_word" >&5
10466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10467if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10469else
c6b750e1
DJ
10470 case $RANLIB_FOR_TARGET in
10471 [\\/]* | ?:[\\/]*)
2429c060
PB
10472 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10473 ;;
2429c060 10474 *)
c6b750e1
DJ
10475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10476for as_dir in $gcc_cv_tool_dirs
10477do
10478 IFS=$as_save_IFS
10479 test -z "$as_dir" && as_dir=.
10480 for ac_exec_ext in '' $ac_executable_extensions; do
10481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10482 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10484 break 2
10485 fi
10486done
10487done
10488
2429c060
PB
10489 ;;
10490esac
10491fi
c6b750e1
DJ
10492RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10493
2429c060 10494if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10495 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10496echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10497else
c6b750e1
DJ
10498 echo "$as_me:$LINENO: result: no" >&5
10499echo "${ECHO_T}no" >&6
2429c060
PB
10500fi
10501
10502fi
10503if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10504
10505
10506if test -n "$RANLIB_FOR_TARGET"; then
10507 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10508elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10509 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10510fi
10511
10512if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10513 for ncn_progname in ranlib; do
10514 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10515set dummy ${ncn_progname}; ac_word=$2
10516echo "$as_me:$LINENO: checking for $ac_word" >&5
10517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10518if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10520else
10521 if test -n "$RANLIB_FOR_TARGET"; then
10522 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10523else
10524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525for as_dir in $PATH
10526do
10527 IFS=$as_save_IFS
10528 test -z "$as_dir" && as_dir=.
10529 for ac_exec_ext in '' $ac_executable_extensions; do
10530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10531 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10533 break 2
10534 fi
10535done
10536done
10537
10538fi
10539fi
10540RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10541if test -n "$RANLIB_FOR_TARGET"; then
10542 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10543echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10544else
10545 echo "$as_me:$LINENO: result: no" >&5
10546echo "${ECHO_T}no" >&6
10547fi
10548
10549 done
10550fi
10551
10552if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10553 for ncn_progname in ranlib; do
c6b750e1
DJ
10554 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10555echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10556 if test -x $with_build_time_tools/${ncn_progname}; then
10557 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10558 echo "$as_me:$LINENO: result: yes" >&5
10559echo "${ECHO_T}yes" >&6
2429c060
PB
10560 break
10561 else
c6b750e1
DJ
10562 echo "$as_me:$LINENO: result: no" >&5
10563echo "${ECHO_T}no" >&6
2429c060
PB
10564 fi
10565 done
10566fi
10567
10568if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10569 for ncn_progname in ranlib; do
10570 if test -n "$ncn_target_tool_prefix"; then
10571 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10572set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10573echo "$as_me:$LINENO: checking for $ac_word" >&5
10574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10575if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10577else
55db4b87
PB
10578 if test -n "$RANLIB_FOR_TARGET"; then
10579 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10580else
c6b750e1
DJ
10581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582for as_dir in $PATH
10583do
10584 IFS=$as_save_IFS
10585 test -z "$as_dir" && as_dir=.
10586 for ac_exec_ext in '' $ac_executable_extensions; do
10587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10588 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10590 break 2
10591 fi
10592done
10593done
10594
859789af
AC
10595fi
10596fi
c6b750e1 10597RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10598if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10599 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10600echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10601else
c6b750e1
DJ
10602 echo "$as_me:$LINENO: result: no" >&5
10603echo "${ECHO_T}no" >&6
859789af
AC
10604fi
10605
2429c060
PB
10606 fi
10607 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10608 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10609set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10610echo "$as_me:$LINENO: checking for $ac_word" >&5
10611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10612if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10614else
05cbd757
PB
10615 if test -n "$RANLIB_FOR_TARGET"; then
10616 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10617else
c6b750e1
DJ
10618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10619for as_dir in $PATH
10620do
10621 IFS=$as_save_IFS
10622 test -z "$as_dir" && as_dir=.
10623 for ac_exec_ext in '' $ac_executable_extensions; do
10624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10625 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10627 break 2
10628 fi
10629done
10630done
10631
859789af
AC
10632fi
10633fi
c6b750e1 10634RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10635if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10636 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10637echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10638else
c6b750e1
DJ
10639 echo "$as_me:$LINENO: result: no" >&5
10640echo "${ECHO_T}no" >&6
859789af 10641fi
c6b750e1 10642
2429c060
PB
10643 fi
10644 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10645 done
10646fi
c6b750e1 10647
2429c060
PB
10648if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10649 set dummy ranlib
10650 if test $build = $target ; then
10651 RANLIB_FOR_TARGET="$2"
10652 else
10653 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10654 fi
d3f5afc4
MS
10655else
10656 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10657fi
05cbd757 10658
3a35eeb3
PB
10659else
10660 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10661fi
10662
2429c060
PB
10663
10664
10665
10666if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10667 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10668 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10669echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10670 if test -x $with_build_time_tools/strip; then
10671 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10672 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10673 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10674echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10675 else
c6b750e1
DJ
10676 echo "$as_me:$LINENO: result: no" >&5
10677echo "${ECHO_T}no" >&6
3a35eeb3 10678 fi
2429c060
PB
10679 elif test $build != $host && test $have_gcc_for_target = yes; then
10680 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10681 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10682 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10683 fi
10684fi
c6b750e1 10685if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10686 # Extract the first word of "strip", so it can be a program name with args.
10687set dummy strip; ac_word=$2
c6b750e1
DJ
10688echo "$as_me:$LINENO: checking for $ac_word" >&5
10689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10690if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10691 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10692else
c6b750e1
DJ
10693 case $STRIP_FOR_TARGET in
10694 [\\/]* | ?:[\\/]*)
2429c060
PB
10695 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10696 ;;
2429c060 10697 *)
c6b750e1
DJ
10698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10699for as_dir in $gcc_cv_tool_dirs
10700do
10701 IFS=$as_save_IFS
10702 test -z "$as_dir" && as_dir=.
10703 for ac_exec_ext in '' $ac_executable_extensions; do
10704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10705 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10707 break 2
10708 fi
10709done
10710done
10711
2429c060
PB
10712 ;;
10713esac
10714fi
c6b750e1
DJ
10715STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10716
2429c060 10717if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10718 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10719echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10720else
c6b750e1
DJ
10721 echo "$as_me:$LINENO: result: no" >&5
10722echo "${ECHO_T}no" >&6
2429c060
PB
10723fi
10724
10725fi
10726if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10727
10728
10729if test -n "$STRIP_FOR_TARGET"; then
10730 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10731elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10732 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10733fi
10734
10735if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10736 for ncn_progname in strip; do
10737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10738set dummy ${ncn_progname}; ac_word=$2
10739echo "$as_me:$LINENO: checking for $ac_word" >&5
10740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10741if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10743else
10744 if test -n "$STRIP_FOR_TARGET"; then
10745 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10746else
10747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10748for as_dir in $PATH
10749do
10750 IFS=$as_save_IFS
10751 test -z "$as_dir" && as_dir=.
10752 for ac_exec_ext in '' $ac_executable_extensions; do
10753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10754 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10756 break 2
10757 fi
10758done
10759done
10760
10761fi
10762fi
10763STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10764if test -n "$STRIP_FOR_TARGET"; then
10765 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10766echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10767else
10768 echo "$as_me:$LINENO: result: no" >&5
10769echo "${ECHO_T}no" >&6
10770fi
10771
10772 done
10773fi
10774
10775if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10776 for ncn_progname in strip; do
c6b750e1
DJ
10777 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10778echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10779 if test -x $with_build_time_tools/${ncn_progname}; then
10780 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10781 echo "$as_me:$LINENO: result: yes" >&5
10782echo "${ECHO_T}yes" >&6
2429c060
PB
10783 break
10784 else
c6b750e1
DJ
10785 echo "$as_me:$LINENO: result: no" >&5
10786echo "${ECHO_T}no" >&6
2429c060
PB
10787 fi
10788 done
10789fi
10790
10791if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10792 for ncn_progname in strip; do
10793 if test -n "$ncn_target_tool_prefix"; then
10794 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10795set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10796echo "$as_me:$LINENO: checking for $ac_word" >&5
10797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10798if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10800else
10801 if test -n "$STRIP_FOR_TARGET"; then
10802 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10803else
10804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10805for as_dir in $PATH
10806do
10807 IFS=$as_save_IFS
10808 test -z "$as_dir" && as_dir=.
10809 for ac_exec_ext in '' $ac_executable_extensions; do
10810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10811 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10813 break 2
10814 fi
10815done
10816done
10817
7e0f7140
GK
10818fi
10819fi
c6b750e1 10820STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10821if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10822 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10823echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10824else
c6b750e1
DJ
10825 echo "$as_me:$LINENO: result: no" >&5
10826echo "${ECHO_T}no" >&6
7e0f7140
GK
10827fi
10828
2429c060
PB
10829 fi
10830 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10832set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10833echo "$as_me:$LINENO: checking for $ac_word" >&5
10834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10835if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10837else
10838 if test -n "$STRIP_FOR_TARGET"; then
10839 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10840else
c6b750e1
DJ
10841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10842for as_dir in $PATH
10843do
10844 IFS=$as_save_IFS
10845 test -z "$as_dir" && as_dir=.
10846 for ac_exec_ext in '' $ac_executable_extensions; do
10847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10848 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10850 break 2
10851 fi
10852done
10853done
10854
7e0f7140
GK
10855fi
10856fi
c6b750e1 10857STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10858if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10859 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10860echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10861else
c6b750e1
DJ
10862 echo "$as_me:$LINENO: result: no" >&5
10863echo "${ECHO_T}no" >&6
7e0f7140 10864fi
c6b750e1 10865
2429c060
PB
10866 fi
10867 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10868 done
10869fi
c6b750e1 10870
7e0f7140
GK
10871if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10872 set dummy strip
10873 if test $build = $target ; then
10874 STRIP_FOR_TARGET="$2"
10875 else
10876 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10877 fi
d3f5afc4
MS
10878else
10879 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10880fi
10881
3a35eeb3
PB
10882else
10883 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10884fi
10885
10886
10887
10888
10889if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10890 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10891 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10892echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10893 if test -x $with_build_time_tools/windres; then
10894 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10895 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10896 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10897echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10898 else
c6b750e1
DJ
10899 echo "$as_me:$LINENO: result: no" >&5
10900echo "${ECHO_T}no" >&6
3a35eeb3 10901 fi
2429c060
PB
10902 elif test $build != $host && test $have_gcc_for_target = yes; then
10903 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10904 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10905 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10906 fi
10907fi
c6b750e1 10908if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10909 # Extract the first word of "windres", so it can be a program name with args.
10910set dummy windres; ac_word=$2
c6b750e1
DJ
10911echo "$as_me:$LINENO: checking for $ac_word" >&5
10912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10913if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10915else
c6b750e1
DJ
10916 case $WINDRES_FOR_TARGET in
10917 [\\/]* | ?:[\\/]*)
2429c060
PB
10918 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10919 ;;
2429c060 10920 *)
c6b750e1
DJ
10921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10922for as_dir in $gcc_cv_tool_dirs
10923do
10924 IFS=$as_save_IFS
10925 test -z "$as_dir" && as_dir=.
10926 for ac_exec_ext in '' $ac_executable_extensions; do
10927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10928 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10930 break 2
10931 fi
10932done
10933done
10934
2429c060
PB
10935 ;;
10936esac
10937fi
c6b750e1
DJ
10938WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10939
2429c060 10940if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10941 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10942echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10943else
c6b750e1
DJ
10944 echo "$as_me:$LINENO: result: no" >&5
10945echo "${ECHO_T}no" >&6
2429c060
PB
10946fi
10947
10948fi
10949if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10950
10951
10952if test -n "$WINDRES_FOR_TARGET"; then
10953 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10954elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10955 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10956fi
10957
10958if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10959 for ncn_progname in windres; do
10960 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10961set dummy ${ncn_progname}; ac_word=$2
10962echo "$as_me:$LINENO: checking for $ac_word" >&5
10963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10964if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
10966else
10967 if test -n "$WINDRES_FOR_TARGET"; then
10968 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10969else
10970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10971for as_dir in $PATH
10972do
10973 IFS=$as_save_IFS
10974 test -z "$as_dir" && as_dir=.
10975 for ac_exec_ext in '' $ac_executable_extensions; do
10976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10977 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10979 break 2
10980 fi
10981done
10982done
10983
10984fi
10985fi
10986WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10987if test -n "$WINDRES_FOR_TARGET"; then
10988 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10989echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10990else
10991 echo "$as_me:$LINENO: result: no" >&5
10992echo "${ECHO_T}no" >&6
10993fi
10994
10995 done
10996fi
10997
10998if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10999 for ncn_progname in windres; do
c6b750e1
DJ
11000 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11001echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11002 if test -x $with_build_time_tools/${ncn_progname}; then
11003 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11004 echo "$as_me:$LINENO: result: yes" >&5
11005echo "${ECHO_T}yes" >&6
2429c060
PB
11006 break
11007 else
c6b750e1
DJ
11008 echo "$as_me:$LINENO: result: no" >&5
11009echo "${ECHO_T}no" >&6
2429c060
PB
11010 fi
11011 done
11012fi
11013
11014if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11015 for ncn_progname in windres; do
11016 if test -n "$ncn_target_tool_prefix"; then
11017 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11018set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11019echo "$as_me:$LINENO: checking for $ac_word" >&5
11020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11021if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11022 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11023else
55db4b87
PB
11024 if test -n "$WINDRES_FOR_TARGET"; then
11025 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11026else
c6b750e1
DJ
11027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11028for as_dir in $PATH
11029do
11030 IFS=$as_save_IFS
11031 test -z "$as_dir" && as_dir=.
11032 for ac_exec_ext in '' $ac_executable_extensions; do
11033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11034 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11036 break 2
11037 fi
11038done
11039done
11040
859789af
AC
11041fi
11042fi
c6b750e1 11043WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 11044if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11045 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11046echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11047else
c6b750e1
DJ
11048 echo "$as_me:$LINENO: result: no" >&5
11049echo "${ECHO_T}no" >&6
859789af
AC
11050fi
11051
2429c060
PB
11052 fi
11053 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11054 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11055set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11056echo "$as_me:$LINENO: checking for $ac_word" >&5
11057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11058if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11060else
05cbd757
PB
11061 if test -n "$WINDRES_FOR_TARGET"; then
11062 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11063else
c6b750e1
DJ
11064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11065for as_dir in $PATH
11066do
11067 IFS=$as_save_IFS
11068 test -z "$as_dir" && as_dir=.
11069 for ac_exec_ext in '' $ac_executable_extensions; do
11070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11071 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11073 break 2
11074 fi
11075done
11076done
11077
859789af
AC
11078fi
11079fi
c6b750e1 11080WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 11081if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11082 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11083echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11084else
c6b750e1
DJ
11085 echo "$as_me:$LINENO: result: no" >&5
11086echo "${ECHO_T}no" >&6
859789af 11087fi
c6b750e1 11088
2429c060
PB
11089 fi
11090 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11091 done
11092fi
c6b750e1 11093
05cbd757
PB
11094if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11095 set dummy windres
11096 if test $build = $target ; then
11097 WINDRES_FOR_TARGET="$2"
859789af 11098 else
05cbd757 11099 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11100 fi
d3f5afc4
MS
11101else
11102 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
11103fi
11104
3a35eeb3
PB
11105else
11106 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
11107fi
11108
852e5f18 11109
0c24b341
NC
11110
11111
11112if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11113 if test -n "$with_build_time_tools"; then
11114 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11115echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11116 if test -x $with_build_time_tools/windmc; then
11117 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11118 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11119 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11120echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11121 else
11122 echo "$as_me:$LINENO: result: no" >&5
11123echo "${ECHO_T}no" >&6
11124 fi
11125 elif test $build != $host && test $have_gcc_for_target = yes; then
11126 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11127 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11128 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11129 fi
11130fi
11131if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11132 # Extract the first word of "windmc", so it can be a program name with args.
11133set dummy windmc; ac_word=$2
11134echo "$as_me:$LINENO: checking for $ac_word" >&5
11135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11136if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11138else
11139 case $WINDMC_FOR_TARGET in
11140 [\\/]* | ?:[\\/]*)
11141 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11142 ;;
11143 *)
11144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11145for as_dir in $gcc_cv_tool_dirs
11146do
11147 IFS=$as_save_IFS
11148 test -z "$as_dir" && as_dir=.
11149 for ac_exec_ext in '' $ac_executable_extensions; do
11150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11151 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11153 break 2
11154 fi
11155done
11156done
11157
11158 ;;
11159esac
11160fi
11161WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11162
11163if test -n "$WINDMC_FOR_TARGET"; then
11164 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11165echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11166else
11167 echo "$as_me:$LINENO: result: no" >&5
11168echo "${ECHO_T}no" >&6
11169fi
11170
11171fi
11172if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11173
11174
11175if test -n "$WINDMC_FOR_TARGET"; then
11176 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11177elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11178 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11179fi
11180
11181if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11182 for ncn_progname in windmc; do
11183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11184set dummy ${ncn_progname}; ac_word=$2
11185echo "$as_me:$LINENO: checking for $ac_word" >&5
11186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11187if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11189else
11190 if test -n "$WINDMC_FOR_TARGET"; then
11191 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11192else
11193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11194for as_dir in $PATH
11195do
11196 IFS=$as_save_IFS
11197 test -z "$as_dir" && as_dir=.
11198 for ac_exec_ext in '' $ac_executable_extensions; do
11199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11200 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11202 break 2
11203 fi
11204done
11205done
11206
11207fi
11208fi
11209WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11210if test -n "$WINDMC_FOR_TARGET"; then
11211 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11212echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11213else
11214 echo "$as_me:$LINENO: result: no" >&5
11215echo "${ECHO_T}no" >&6
11216fi
11217
11218 done
11219fi
11220
11221if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11222 for ncn_progname in windmc; do
11223 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11224echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11225 if test -x $with_build_time_tools/${ncn_progname}; then
11226 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11227 echo "$as_me:$LINENO: result: yes" >&5
11228echo "${ECHO_T}yes" >&6
11229 break
11230 else
11231 echo "$as_me:$LINENO: result: no" >&5
11232echo "${ECHO_T}no" >&6
11233 fi
11234 done
11235fi
11236
11237if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11238 for ncn_progname in windmc; do
11239 if test -n "$ncn_target_tool_prefix"; then
11240 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11241set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11242echo "$as_me:$LINENO: checking for $ac_word" >&5
11243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11244if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11245 echo $ECHO_N "(cached) $ECHO_C" >&6
11246else
11247 if test -n "$WINDMC_FOR_TARGET"; then
11248 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11249else
11250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251for as_dir in $PATH
11252do
11253 IFS=$as_save_IFS
11254 test -z "$as_dir" && as_dir=.
11255 for ac_exec_ext in '' $ac_executable_extensions; do
11256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11257 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11259 break 2
11260 fi
11261done
11262done
11263
11264fi
11265fi
11266WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11267if test -n "$WINDMC_FOR_TARGET"; then
11268 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11269echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11270else
11271 echo "$as_me:$LINENO: result: no" >&5
11272echo "${ECHO_T}no" >&6
11273fi
11274
11275 fi
11276 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11278set dummy ${ncn_progname}; ac_word=$2
11279echo "$as_me:$LINENO: checking for $ac_word" >&5
11280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11281if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11283else
11284 if test -n "$WINDMC_FOR_TARGET"; then
11285 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11286else
11287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11288for as_dir in $PATH
11289do
11290 IFS=$as_save_IFS
11291 test -z "$as_dir" && as_dir=.
11292 for ac_exec_ext in '' $ac_executable_extensions; do
11293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11294 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11296 break 2
11297 fi
11298done
11299done
11300
11301fi
11302fi
11303WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11304if test -n "$WINDMC_FOR_TARGET"; then
11305 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11306echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11307else
11308 echo "$as_me:$LINENO: result: no" >&5
11309echo "${ECHO_T}no" >&6
11310fi
11311
11312 fi
11313 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11314 done
11315fi
11316
11317if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11318 set dummy windmc
11319 if test $build = $target ; then
11320 WINDMC_FOR_TARGET="$2"
11321 else
11322 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11323 fi
11324else
11325 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11326fi
11327
11328else
11329 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11330fi
11331
11332
be01d343
PB
11333RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11334
c6b750e1
DJ
11335echo "$as_me:$LINENO: checking where to find the target ar" >&5
11336echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11337if test "x${build}" != "x${host}" ; then
2429c060
PB
11338 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11339 # We already found the complete path
b8025f34
AS
11340 ac_dir=`dirname $AR_FOR_TARGET`
11341 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11342echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11343 else
11344 # Canadian cross, just use what we found
c6b750e1
DJ
11345 echo "$as_me:$LINENO: result: pre-installed" >&5
11346echo "${ECHO_T}pre-installed" >&6
2429c060 11347 fi
be01d343
PB
11348else
11349 ok=yes
11350 case " ${configdirs} " in
11351 *" binutils "*) ;;
11352 *) ok=no ;;
11353 esac
c6b750e1 11354
be01d343
PB
11355 if test $ok = yes; then
11356 # An in-tree tool is available and we can use it
11357 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11358 echo "$as_me:$LINENO: result: just compiled" >&5
11359echo "${ECHO_T}just compiled" >&6
2429c060
PB
11360 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11361 # We already found the complete path
b8025f34
AS
11362 ac_dir=`dirname $AR_FOR_TARGET`
11363 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11364echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11365 elif test "x$target" = "x$host"; then
11366 # We can use an host tool
11367 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11368 echo "$as_me:$LINENO: result: host tool" >&5
11369echo "${ECHO_T}host tool" >&6
be01d343
PB
11370 else
11371 # We need a cross tool
c6b750e1
DJ
11372 echo "$as_me:$LINENO: result: pre-installed" >&5
11373echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11374 fi
11375fi
4b900473 11376
c6b750e1
DJ
11377echo "$as_me:$LINENO: checking where to find the target as" >&5
11378echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11379if test "x${build}" != "x${host}" ; then
2429c060
PB
11380 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11381 # We already found the complete path
b8025f34
AS
11382 ac_dir=`dirname $AS_FOR_TARGET`
11383 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11384echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11385 else
11386 # Canadian cross, just use what we found
c6b750e1
DJ
11387 echo "$as_me:$LINENO: result: pre-installed" >&5
11388echo "${ECHO_T}pre-installed" >&6
2429c060 11389 fi
be01d343
PB
11390else
11391 ok=yes
11392 case " ${configdirs} " in
11393 *" gas "*) ;;
11394 *) ok=no ;;
11395 esac
c6b750e1 11396
be01d343
PB
11397 if test $ok = yes; then
11398 # An in-tree tool is available and we can use it
11399 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11400 echo "$as_me:$LINENO: result: just compiled" >&5
11401echo "${ECHO_T}just compiled" >&6
2429c060
PB
11402 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11403 # We already found the complete path
b8025f34
AS
11404 ac_dir=`dirname $AS_FOR_TARGET`
11405 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11406echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11407 elif test "x$target" = "x$host"; then
11408 # We can use an host tool
11409 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11410 echo "$as_me:$LINENO: result: host tool" >&5
11411echo "${ECHO_T}host tool" >&6
be01d343
PB
11412 else
11413 # We need a cross tool
c6b750e1
DJ
11414 echo "$as_me:$LINENO: result: pre-installed" >&5
11415echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11416 fi
11417fi
4b900473 11418
c6b750e1
DJ
11419echo "$as_me:$LINENO: checking where to find the target cc" >&5
11420echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11421if test "x${build}" != "x${host}" ; then
2429c060
PB
11422 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11423 # We already found the complete path
b8025f34
AS
11424 ac_dir=`dirname $CC_FOR_TARGET`
11425 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11426echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11427 else
11428 # Canadian cross, just use what we found
c6b750e1
DJ
11429 echo "$as_me:$LINENO: result: pre-installed" >&5
11430echo "${ECHO_T}pre-installed" >&6
2429c060 11431 fi
be01d343
PB
11432else
11433 ok=yes
11434 case " ${configdirs} " in
11435 *" gcc "*) ;;
11436 *) ok=no ;;
11437 esac
c6b750e1 11438
be01d343
PB
11439 if test $ok = yes; then
11440 # An in-tree tool is available and we can use it
11441 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11442 echo "$as_me:$LINENO: result: just compiled" >&5
11443echo "${ECHO_T}just compiled" >&6
2429c060
PB
11444 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11445 # We already found the complete path
b8025f34
AS
11446 ac_dir=`dirname $CC_FOR_TARGET`
11447 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11448echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11449 elif test "x$target" = "x$host"; then
11450 # We can use an host tool
11451 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11452 echo "$as_me:$LINENO: result: host tool" >&5
11453echo "${ECHO_T}host tool" >&6
be01d343
PB
11454 else
11455 # We need a cross tool
c6b750e1
DJ
11456 echo "$as_me:$LINENO: result: pre-installed" >&5
11457echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11458 fi
11459fi
4b900473 11460
c6b750e1
DJ
11461echo "$as_me:$LINENO: checking where to find the target c++" >&5
11462echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11463if test "x${build}" != "x${host}" ; then
2429c060
PB
11464 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11465 # We already found the complete path
b8025f34
AS
11466 ac_dir=`dirname $CXX_FOR_TARGET`
11467 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11468echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11469 else
11470 # Canadian cross, just use what we found
c6b750e1
DJ
11471 echo "$as_me:$LINENO: result: pre-installed" >&5
11472echo "${ECHO_T}pre-installed" >&6
2429c060 11473 fi
be01d343
PB
11474else
11475 ok=yes
11476 case " ${configdirs} " in
11477 *" gcc "*) ;;
11478 *) ok=no ;;
11479 esac
11480 case ,${enable_languages}, in
11481 *,c++,*) ;;
11482 *) ok=no ;;
11483 esac
11484 if test $ok = yes; then
11485 # An in-tree tool is available and we can use it
11486 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
11487 echo "$as_me:$LINENO: result: just compiled" >&5
11488echo "${ECHO_T}just compiled" >&6
2429c060
PB
11489 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11490 # We already found the complete path
b8025f34
AS
11491 ac_dir=`dirname $CXX_FOR_TARGET`
11492 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11493echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11494 elif test "x$target" = "x$host"; then
11495 # We can use an host tool
11496 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11497 echo "$as_me:$LINENO: result: host tool" >&5
11498echo "${ECHO_T}host tool" >&6
be01d343
PB
11499 else
11500 # We need a cross tool
c6b750e1
DJ
11501 echo "$as_me:$LINENO: result: pre-installed" >&5
11502echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11503 fi
11504fi
4b900473 11505
c6b750e1
DJ
11506echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11507echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11508if test "x${build}" != "x${host}" ; then
2429c060
PB
11509 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11510 # We already found the complete path
b8025f34
AS
11511 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11512 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11513echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11514 else
11515 # Canadian cross, just use what we found
c6b750e1
DJ
11516 echo "$as_me:$LINENO: result: pre-installed" >&5
11517echo "${ECHO_T}pre-installed" >&6
2429c060 11518 fi
be01d343
PB
11519else
11520 ok=yes
11521 case " ${configdirs} " in
11522 *" gcc "*) ;;
11523 *) ok=no ;;
11524 esac
11525 case ,${enable_languages}, in
11526 *,c++,*) ;;
11527 *) ok=no ;;
11528 esac
11529 if test $ok = yes; then
11530 # An in-tree tool is available and we can use it
11531 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
11532 echo "$as_me:$LINENO: result: just compiled" >&5
11533echo "${ECHO_T}just compiled" >&6
2429c060
PB
11534 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11535 # We already found the complete path
b8025f34
AS
11536 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11537 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11538echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11539 elif test "x$target" = "x$host"; then
11540 # We can use an host tool
11541 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11542 echo "$as_me:$LINENO: result: host tool" >&5
11543echo "${ECHO_T}host tool" >&6
be01d343
PB
11544 else
11545 # We need a cross tool
c6b750e1
DJ
11546 echo "$as_me:$LINENO: result: pre-installed" >&5
11547echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11548 fi
11549fi
4b900473 11550
c6b750e1
DJ
11551echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11552echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11553if test "x${build}" != "x${host}" ; then
2429c060
PB
11554 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11555 # We already found the complete path
b8025f34
AS
11556 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11557 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11558echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11559 else
11560 # Canadian cross, just use what we found
c6b750e1
DJ
11561 echo "$as_me:$LINENO: result: pre-installed" >&5
11562echo "${ECHO_T}pre-installed" >&6
2429c060 11563 fi
be01d343
PB
11564else
11565 ok=yes
11566 case " ${configdirs} " in
11567 *" binutils "*) ;;
11568 *) ok=no ;;
11569 esac
c6b750e1 11570
be01d343
PB
11571 if test $ok = yes; then
11572 # An in-tree tool is available and we can use it
11573 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11574 echo "$as_me:$LINENO: result: just compiled" >&5
11575echo "${ECHO_T}just compiled" >&6
2429c060
PB
11576 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11577 # We already found the complete path
b8025f34
AS
11578 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11579 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11580echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11581 elif test "x$target" = "x$host"; then
11582 # We can use an host tool
11583 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11584 echo "$as_me:$LINENO: result: host tool" >&5
11585echo "${ECHO_T}host tool" >&6
be01d343
PB
11586 else
11587 # We need a cross tool
c6b750e1
DJ
11588 echo "$as_me:$LINENO: result: pre-installed" >&5
11589echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11590 fi
11591fi
4b900473 11592
c6b750e1
DJ
11593echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11594echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11595if test "x${build}" != "x${host}" ; then
2429c060
PB
11596 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11597 # We already found the complete path
b8025f34
AS
11598 ac_dir=`dirname $GCC_FOR_TARGET`
11599 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11600echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11601 else
11602 # Canadian cross, just use what we found
c6b750e1
DJ
11603 echo "$as_me:$LINENO: result: pre-installed" >&5
11604echo "${ECHO_T}pre-installed" >&6
2429c060 11605 fi
be01d343
PB
11606else
11607 ok=yes
11608 case " ${configdirs} " in
11609 *" gcc "*) ;;
11610 *) ok=no ;;
11611 esac
c6b750e1 11612
be01d343
PB
11613 if test $ok = yes; then
11614 # An in-tree tool is available and we can use it
11615 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11616 echo "$as_me:$LINENO: result: just compiled" >&5
11617echo "${ECHO_T}just compiled" >&6
2429c060
PB
11618 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11619 # We already found the complete path
b8025f34
AS
11620 ac_dir=`dirname $GCC_FOR_TARGET`
11621 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11622echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11623 elif test "x$target" = "x$host"; then
11624 # We can use an host tool
11625 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11626 echo "$as_me:$LINENO: result: host tool" >&5
11627echo "${ECHO_T}host tool" >&6
be01d343
PB
11628 else
11629 # We need a cross tool
c6b750e1
DJ
11630 echo "$as_me:$LINENO: result: pre-installed" >&5
11631echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11632 fi
11633fi
4b900473 11634
c6b750e1
DJ
11635echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11636echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11637if test "x${build}" != "x${host}" ; then
2429c060
PB
11638 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11639 # We already found the complete path
b8025f34
AS
11640 ac_dir=`dirname $GCJ_FOR_TARGET`
11641 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11642echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11643 else
11644 # Canadian cross, just use what we found
c6b750e1
DJ
11645 echo "$as_me:$LINENO: result: pre-installed" >&5
11646echo "${ECHO_T}pre-installed" >&6
2429c060 11647 fi
be01d343
PB
11648else
11649 ok=yes
11650 case " ${configdirs} " in
11651 *" gcc "*) ;;
11652 *) ok=no ;;
11653 esac
11654 case ,${enable_languages}, in
11655 *,java,*) ;;
11656 *) ok=no ;;
11657 esac
11658 if test $ok = yes; then
11659 # An in-tree tool is available and we can use it
11660 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11661 echo "$as_me:$LINENO: result: just compiled" >&5
11662echo "${ECHO_T}just compiled" >&6
2429c060
PB
11663 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11664 # We already found the complete path
b8025f34
AS
11665 ac_dir=`dirname $GCJ_FOR_TARGET`
11666 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11667echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11668 elif test "x$target" = "x$host"; then
11669 # We can use an host tool
11670 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11671 echo "$as_me:$LINENO: result: host tool" >&5
11672echo "${ECHO_T}host tool" >&6
be01d343
PB
11673 else
11674 # We need a cross tool
c6b750e1
DJ
11675 echo "$as_me:$LINENO: result: pre-installed" >&5
11676echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11677 fi
11678fi
4b900473 11679
c6b750e1
DJ
11680echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11681echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11682if test "x${build}" != "x${host}" ; then
2429c060
PB
11683 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11684 # We already found the complete path
b8025f34
AS
11685 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11686 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11687echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11688 else
11689 # Canadian cross, just use what we found
c6b750e1
DJ
11690 echo "$as_me:$LINENO: result: pre-installed" >&5
11691echo "${ECHO_T}pre-installed" >&6
2429c060 11692 fi
be01d343
PB
11693else
11694 ok=yes
11695 case " ${configdirs} " in
11696 *" gcc "*) ;;
11697 *) ok=no ;;
11698 esac
11699 case ,${enable_languages}, in
11700 *,fortran,*) ;;
11701 *) ok=no ;;
11702 esac
11703 if test $ok = yes; then
11704 # An in-tree tool is available and we can use it
11705 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11706 echo "$as_me:$LINENO: result: just compiled" >&5
11707echo "${ECHO_T}just compiled" >&6
2429c060
PB
11708 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11709 # We already found the complete path
b8025f34
AS
11710 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11711 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11712echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11713 elif test "x$target" = "x$host"; then
11714 # We can use an host tool
11715 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11716 echo "$as_me:$LINENO: result: host tool" >&5
11717echo "${ECHO_T}host tool" >&6
be01d343
PB
11718 else
11719 # We need a cross tool
c6b750e1
DJ
11720 echo "$as_me:$LINENO: result: pre-installed" >&5
11721echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11722 fi
11723fi
4b900473 11724
c6b750e1
DJ
11725echo "$as_me:$LINENO: checking where to find the target ld" >&5
11726echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11727if test "x${build}" != "x${host}" ; then
2429c060
PB
11728 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11729 # We already found the complete path
b8025f34
AS
11730 ac_dir=`dirname $LD_FOR_TARGET`
11731 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11732echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11733 else
11734 # Canadian cross, just use what we found
c6b750e1
DJ
11735 echo "$as_me:$LINENO: result: pre-installed" >&5
11736echo "${ECHO_T}pre-installed" >&6
2429c060 11737 fi
be01d343
PB
11738else
11739 ok=yes
11740 case " ${configdirs} " in
11741 *" ld "*) ;;
11742 *) ok=no ;;
11743 esac
c6b750e1 11744
be01d343
PB
11745 if test $ok = yes; then
11746 # An in-tree tool is available and we can use it
11747 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11748 echo "$as_me:$LINENO: result: just compiled" >&5
11749echo "${ECHO_T}just compiled" >&6
2429c060
PB
11750 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11751 # We already found the complete path
b8025f34
AS
11752 ac_dir=`dirname $LD_FOR_TARGET`
11753 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11754echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11755 elif test "x$target" = "x$host"; then
11756 # We can use an host tool
11757 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11758 echo "$as_me:$LINENO: result: host tool" >&5
11759echo "${ECHO_T}host tool" >&6
be01d343
PB
11760 else
11761 # We need a cross tool
c6b750e1
DJ
11762 echo "$as_me:$LINENO: result: pre-installed" >&5
11763echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11764 fi
11765fi
4b900473 11766
c6b750e1
DJ
11767echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11768echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11769if test "x${build}" != "x${host}" ; then
2429c060
PB
11770 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11771 # We already found the complete path
b8025f34
AS
11772 ac_dir=`dirname $LIPO_FOR_TARGET`
11773 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11774echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11775 else
11776 # Canadian cross, just use what we found
c6b750e1
DJ
11777 echo "$as_me:$LINENO: result: pre-installed" >&5
11778echo "${ECHO_T}pre-installed" >&6
2429c060 11779 fi
be01d343 11780else
2429c060
PB
11781 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11782 # We already found the complete path
b8025f34
AS
11783 ac_dir=`dirname $LIPO_FOR_TARGET`
11784 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11785echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11786 elif test "x$target" = "x$host"; then
be01d343
PB
11787 # We can use an host tool
11788 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11789 echo "$as_me:$LINENO: result: host tool" >&5
11790echo "${ECHO_T}host tool" >&6
be01d343
PB
11791 else
11792 # We need a cross tool
c6b750e1
DJ
11793 echo "$as_me:$LINENO: result: pre-installed" >&5
11794echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11795 fi
11796fi
4b900473 11797
c6b750e1
DJ
11798echo "$as_me:$LINENO: checking where to find the target nm" >&5
11799echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11800if test "x${build}" != "x${host}" ; then
2429c060
PB
11801 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11802 # We already found the complete path
b8025f34
AS
11803 ac_dir=`dirname $NM_FOR_TARGET`
11804 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11805echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11806 else
11807 # Canadian cross, just use what we found
c6b750e1
DJ
11808 echo "$as_me:$LINENO: result: pre-installed" >&5
11809echo "${ECHO_T}pre-installed" >&6
2429c060 11810 fi
be01d343
PB
11811else
11812 ok=yes
11813 case " ${configdirs} " in
11814 *" binutils "*) ;;
11815 *) ok=no ;;
11816 esac
c6b750e1 11817
be01d343
PB
11818 if test $ok = yes; then
11819 # An in-tree tool is available and we can use it
11820 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11821 echo "$as_me:$LINENO: result: just compiled" >&5
11822echo "${ECHO_T}just compiled" >&6
2429c060
PB
11823 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11824 # We already found the complete path
b8025f34
AS
11825 ac_dir=`dirname $NM_FOR_TARGET`
11826 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11827echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11828 elif test "x$target" = "x$host"; then
11829 # We can use an host tool
11830 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11831 echo "$as_me:$LINENO: result: host tool" >&5
11832echo "${ECHO_T}host tool" >&6
be01d343
PB
11833 else
11834 # We need a cross tool
c6b750e1
DJ
11835 echo "$as_me:$LINENO: result: pre-installed" >&5
11836echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11837 fi
11838fi
4b900473 11839
c6b750e1
DJ
11840echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11841echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11842if test "x${build}" != "x${host}" ; then
2429c060
PB
11843 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11844 # We already found the complete path
b8025f34
AS
11845 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11846 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11847echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11848 else
11849 # Canadian cross, just use what we found
c6b750e1
DJ
11850 echo "$as_me:$LINENO: result: pre-installed" >&5
11851echo "${ECHO_T}pre-installed" >&6
2429c060 11852 fi
be01d343
PB
11853else
11854 ok=yes
11855 case " ${configdirs} " in
11856 *" binutils "*) ;;
11857 *) ok=no ;;
11858 esac
c6b750e1 11859
be01d343
PB
11860 if test $ok = yes; then
11861 # An in-tree tool is available and we can use it
11862 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11863 echo "$as_me:$LINENO: result: just compiled" >&5
11864echo "${ECHO_T}just compiled" >&6
2429c060
PB
11865 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11866 # We already found the complete path
b8025f34
AS
11867 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11868 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11869echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11870 elif test "x$target" = "x$host"; then
11871 # We can use an host tool
11872 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11873 echo "$as_me:$LINENO: result: host tool" >&5
11874echo "${ECHO_T}host tool" >&6
be01d343
PB
11875 else
11876 # We need a cross tool
c6b750e1
DJ
11877 echo "$as_me:$LINENO: result: pre-installed" >&5
11878echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11879 fi
11880fi
4b900473 11881
c6b750e1
DJ
11882echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11883echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11884if test "x${build}" != "x${host}" ; then
2429c060
PB
11885 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11886 # We already found the complete path
b8025f34
AS
11887 ac_dir=`dirname $RANLIB_FOR_TARGET`
11888 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11889echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11890 else
11891 # Canadian cross, just use what we found
c6b750e1
DJ
11892 echo "$as_me:$LINENO: result: pre-installed" >&5
11893echo "${ECHO_T}pre-installed" >&6
2429c060 11894 fi
be01d343
PB
11895else
11896 ok=yes
11897 case " ${configdirs} " in
11898 *" binutils "*) ;;
11899 *) ok=no ;;
11900 esac
c6b750e1 11901
be01d343
PB
11902 if test $ok = yes; then
11903 # An in-tree tool is available and we can use it
11904 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11905 echo "$as_me:$LINENO: result: just compiled" >&5
11906echo "${ECHO_T}just compiled" >&6
2429c060
PB
11907 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11908 # We already found the complete path
b8025f34
AS
11909 ac_dir=`dirname $RANLIB_FOR_TARGET`
11910 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11911echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11912 elif test "x$target" = "x$host"; then
11913 # We can use an host tool
11914 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11915 echo "$as_me:$LINENO: result: host tool" >&5
11916echo "${ECHO_T}host tool" >&6
be01d343
PB
11917 else
11918 # We need a cross tool
c6b750e1
DJ
11919 echo "$as_me:$LINENO: result: pre-installed" >&5
11920echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11921 fi
11922fi
4b900473 11923
c6b750e1
DJ
11924echo "$as_me:$LINENO: checking where to find the target strip" >&5
11925echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11926if test "x${build}" != "x${host}" ; then
2429c060
PB
11927 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11928 # We already found the complete path
b8025f34
AS
11929 ac_dir=`dirname $STRIP_FOR_TARGET`
11930 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11931echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11932 else
11933 # Canadian cross, just use what we found
c6b750e1
DJ
11934 echo "$as_me:$LINENO: result: pre-installed" >&5
11935echo "${ECHO_T}pre-installed" >&6
2429c060 11936 fi
be01d343
PB
11937else
11938 ok=yes
11939 case " ${configdirs} " in
11940 *" binutils "*) ;;
11941 *) ok=no ;;
11942 esac
c6b750e1 11943
be01d343
PB
11944 if test $ok = yes; then
11945 # An in-tree tool is available and we can use it
11946 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11947 echo "$as_me:$LINENO: result: just compiled" >&5
11948echo "${ECHO_T}just compiled" >&6
2429c060
PB
11949 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11950 # We already found the complete path
b8025f34
AS
11951 ac_dir=`dirname $STRIP_FOR_TARGET`
11952 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11953echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11954 elif test "x$target" = "x$host"; then
11955 # We can use an host tool
11956 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11957 echo "$as_me:$LINENO: result: host tool" >&5
11958echo "${ECHO_T}host tool" >&6
be01d343
PB
11959 else
11960 # We need a cross tool
c6b750e1
DJ
11961 echo "$as_me:$LINENO: result: pre-installed" >&5
11962echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11963 fi
11964fi
4b900473 11965
c6b750e1
DJ
11966echo "$as_me:$LINENO: checking where to find the target windres" >&5
11967echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 11968if test "x${build}" != "x${host}" ; then
2429c060
PB
11969 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11970 # We already found the complete path
b8025f34
AS
11971 ac_dir=`dirname $WINDRES_FOR_TARGET`
11972 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11973echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11974 else
11975 # Canadian cross, just use what we found
c6b750e1
DJ
11976 echo "$as_me:$LINENO: result: pre-installed" >&5
11977echo "${ECHO_T}pre-installed" >&6
2429c060 11978 fi
be01d343
PB
11979else
11980 ok=yes
11981 case " ${configdirs} " in
11982 *" binutils "*) ;;
11983 *) ok=no ;;
11984 esac
c6b750e1 11985
be01d343
PB
11986 if test $ok = yes; then
11987 # An in-tree tool is available and we can use it
11988 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
11989 echo "$as_me:$LINENO: result: just compiled" >&5
11990echo "${ECHO_T}just compiled" >&6
2429c060
PB
11991 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11992 # We already found the complete path
b8025f34
AS
11993 ac_dir=`dirname $WINDRES_FOR_TARGET`
11994 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11995echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11996 elif test "x$target" = "x$host"; then
11997 # We can use an host tool
11998 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
11999 echo "$as_me:$LINENO: result: host tool" >&5
12000echo "${ECHO_T}host tool" >&6
be01d343
PB
12001 else
12002 # We need a cross tool
c6b750e1
DJ
12003 echo "$as_me:$LINENO: result: pre-installed" >&5
12004echo "${ECHO_T}pre-installed" >&6
be01d343 12005 fi
a0da8069 12006fi
54752a6b 12007
0c24b341
NC
12008echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12009echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12010if test "x${build}" != "x${host}" ; then
12011 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12012 # We already found the complete path
12013 ac_dir=`dirname $WINDMC_FOR_TARGET`
12014 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12015echo "${ECHO_T}pre-installed in $ac_dir" >&6
12016 else
12017 # Canadian cross, just use what we found
12018 echo "$as_me:$LINENO: result: pre-installed" >&5
12019echo "${ECHO_T}pre-installed" >&6
12020 fi
12021else
12022 ok=yes
12023 case " ${configdirs} " in
12024 *" binutils "*) ;;
12025 *) ok=no ;;
12026 esac
12027
12028 if test $ok = yes; then
12029 # An in-tree tool is available and we can use it
12030 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12031 echo "$as_me:$LINENO: result: just compiled" >&5
12032echo "${ECHO_T}just compiled" >&6
12033 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12034 # We already found the complete path
12035 ac_dir=`dirname $WINDMC_FOR_TARGET`
12036 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12037echo "${ECHO_T}pre-installed in $ac_dir" >&6
12038 elif test "x$target" = "x$host"; then
12039 # We can use an host tool
12040 WINDMC_FOR_TARGET='$(WINDMC)'
12041 echo "$as_me:$LINENO: result: host tool" >&5
12042echo "${ECHO_T}host tool" >&6
12043 else
12044 # We need a cross tool
12045 echo "$as_me:$LINENO: result: pre-installed" >&5
12046echo "${ECHO_T}pre-installed" >&6
12047 fi
12048fi
12049
54752a6b
NN
12050
12051
be01d343 12052
4b900473 12053
a0da8069
NN
12054# Certain tools may need extra flags.
12055AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12056RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12057NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12058
be01d343
PB
12059# When building target libraries, except in a Canadian cross, we use
12060# the same toolchain as the compiler we just built.
12061COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12062COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12063COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12064if test $host = $build; then
12065 case " $configdirs " in
12066 *" gcc "*)
12067 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12068 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12069 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12070 ;;
12071 esac
12072fi
12073
12074
12075
12076
12077
c6b750e1
DJ
12078echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12079echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
12080# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12081if test "${enable_maintainer_mode+set}" = set; then
12082 enableval="$enable_maintainer_mode"
12083 USE_MAINTAINER_MODE=$enableval
12084else
12085 USE_MAINTAINER_MODE=no
c6b750e1
DJ
12086fi;
12087echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12088echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
12089
12090
12091if test "$USE_MAINTAINER_MODE" = yes; then
12092 MAINTAINER_MODE_TRUE=
12093 MAINTAINER_MODE_FALSE='#'
12094else
12095 MAINTAINER_MODE_TRUE='#'
12096 MAINTAINER_MODE_FALSE=
c6b750e1 12097fi
3d5e36ae
AO
12098MAINT=$MAINTAINER_MODE_TRUE
12099
1d39f329
NN
12100# ---------------------
12101# GCC bootstrap support
12102# ---------------------
12103
12104# Stage specific cflags for build.
12105stage1_cflags="-g"
12106case $build in
12107 vax-*-*)
12108 case ${GCC} in
12109 yes) stage1_cflags="-g -Wa,-J" ;;
12110 *) stage1_cflags="-g -J" ;;
12111 esac ;;
1d39f329
NN
12112esac
12113
1d89b610
PB
12114# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12115if test "$GCC" = yes; then
12116 saved_CFLAGS="$CFLAGS"
12117
12118 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12119 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
12120 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12121echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12122 cat >conftest.$ac_ext <<_ACEOF
12123/* confdefs.h. */
12124_ACEOF
12125cat confdefs.h >>conftest.$ac_ext
12126cat >>conftest.$ac_ext <<_ACEOF
12127/* end confdefs.h. */
12128
2038f525
PB
12129#if (__GNUC__ < 3) \
12130 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12131 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12132#error http://gcc.gnu.org/PR29382
12133#endif
12134
c6b750e1
DJ
12135int
12136main ()
12137{
12138
12139 ;
12140 return 0;
12141}
12142_ACEOF
12143rm -f conftest.$ac_objext
12144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12145 (eval $ac_compile) 2>conftest.er1
12146 ac_status=$?
12147 grep -v '^ *+' conftest.er1 >conftest.err
12148 rm -f conftest.er1
12149 cat conftest.err >&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } &&
12152 { ac_try='test -z "$ac_c_werror_flag"
12153 || test ! -s conftest.err'
12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12156 ac_status=$?
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; } &&
12159 { ac_try='test -s conftest.$ac_objext'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12162 ac_status=$?
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
12165 echo "$as_me:$LINENO: result: yes" >&5
12166echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12167else
12168 echo "$as_me: failed program was:" >&5
12169sed 's/^/| /' conftest.$ac_ext >&5
12170
12171echo "$as_me:$LINENO: result: no" >&5
12172echo "${ECHO_T}no" >&6
12173fi
12174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12175
12176 CFLAGS="$saved_CFLAGS"
12177fi
12178
12179
1d39f329 12180
8a0d8a5c
PB
12181# Enable --enable-checking in stage1 of the compiler.
12182# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12183if test "${enable_stage1_checking+set}" = set; then
12184 enableval="$enable_stage1_checking"
12185 stage1_checking=--enable-checking=${enable_stage1_checking}
12186else
5566c1fa 12187 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12188 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12189else
5566c1fa 12190 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12191fi
c6b750e1 12192fi;
8a0d8a5c
PB
12193
12194
1d39f329 12195# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12196# Check whether --enable-werror or --disable-werror was given.
12197if test "${enable_werror+set}" = set; then
12198 enableval="$enable_werror"
c6b750e1 12199
1d39f329 12200else
a0323144 12201 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12202 enable_werror=yes
79fcd0ec
PB
12203else
12204 enable_werror=no
12205fi
c6b750e1 12206fi;
1a6f2dc7
NN
12207case ${enable_werror} in
12208 yes) stage2_werror_flag="--enable-werror-always" ;;
12209 *) stage2_werror_flag="" ;;
1d39f329
NN
12210esac
12211
12212
108a6f8e 12213# Flags needed to enable html installing and building
c6b750e1 12214
108a6f8e
CD
12215# Check whether --with-datarootdir or --without-datarootdir was given.
12216if test "${with_datarootdir+set}" = set; then
12217 withval="$with_datarootdir"
12218 datarootdir="\${prefix}/${withval}"
12219else
12220 datarootdir="\${prefix}/share"
c6b750e1 12221fi;
108a6f8e
CD
12222
12223
12224# Check whether --with-docdir or --without-docdir was given.
12225if test "${with_docdir+set}" = set; then
12226 withval="$with_docdir"
12227 docdir="\${prefix}/${withval}"
12228else
12229 docdir="\${datarootdir}/doc"
c6b750e1 12230fi;
108a6f8e
CD
12231
12232
a3ca38d2
DD
12233# Check whether --with-pdfdir or --without-pdfdir was given.
12234if test "${with_pdfdir+set}" = set; then
12235 withval="$with_pdfdir"
12236 pdfdir="\${prefix}/${withval}"
12237else
12238 pdfdir="\${docdir}"
12239fi;
12240
12241
108a6f8e
CD
12242# Check whether --with-htmldir or --without-htmldir was given.
12243if test "${with_htmldir+set}" = set; then
12244 withval="$with_htmldir"
12245 htmldir="\${prefix}/${withval}"
12246else
12247 htmldir="\${docdir}"
c6b750e1 12248fi;
108a6f8e
CD
12249
12250
12251
12252
12253
b8025f34 12254
c6b750e1
DJ
12255 ac_config_files="$ac_config_files Makefile"
12256cat >confcache <<\_ACEOF
a0da8069
NN
12257# This file is a shell script that caches the results of configure
12258# tests run on this system so they can be shared between configure
c6b750e1
DJ
12259# scripts and configure runs, see configure's option --config-cache.
12260# It is not useful on other systems. If it contains results you don't
12261# want to keep, you may remove or edit it.
a0da8069 12262#
c6b750e1
DJ
12263# config.status only pays attention to the cache file if you give it
12264# the --recheck option to rerun configure.
a0da8069 12265#
c6b750e1
DJ
12266# `ac_cv_env_foo' variables (set or unset) will be overridden when
12267# loading this file, other *unset* `ac_cv_foo' will be assigned the
12268# following values.
12269
12270_ACEOF
12271
a0da8069
NN
12272# The following way of writing the cache mishandles newlines in values,
12273# but we know of no workaround that is simple, portable, and efficient.
12274# So, don't put newlines in cache variables' values.
12275# Ultrix sh set writes to stderr and can't be redirected directly,
12276# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12277{
12278 (set) 2>&1 |
12279 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12280 *ac_space=\ *)
12281 # `set' does not quote correctly, so add quotes (double-quote
12282 # substitution turns \\\\ into \\, and sed turns \\ into \).
12283 sed -n \
12284 "s/'/'\\\\''/g;
12285 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12286 ;;
12287 *)
12288 # `set' quotes correctly as required by POSIX, so do not add quotes.
12289 sed -n \
12290 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12291 ;;
12292 esac;
12293} |
12294 sed '
12295 t clear
12296 : clear
12297 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12298 t end
12299 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12300 : end' >>confcache
12301if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12302 if test -w $cache_file; then
c6b750e1
DJ
12303 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12304 cat confcache >$cache_file
a0da8069
NN
12305 else
12306 echo "not updating unwritable cache $cache_file"
12307 fi
852e5f18 12308fi
a0da8069 12309rm -f confcache
852e5f18 12310
a0da8069
NN
12311test "x$prefix" = xNONE && prefix=$ac_default_prefix
12312# Let make expand exec_prefix.
12313test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12314
c6b750e1
DJ
12315# VPATH may cause trouble with some makes, so we remove $(srcdir),
12316# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12317# trailing colons and then remove the whole line if VPATH becomes empty
12318# (actually we leave an empty line to preserve line numbers).
a0da8069 12319if test "x$srcdir" = x.; then
c6b750e1
DJ
12320 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12321s/:*\$(srcdir):*/:/;
12322s/:*\${srcdir}:*/:/;
12323s/:*@srcdir@:*/:/;
12324s/^\([^=]*=[ ]*\):*/\1/;
12325s/:*$//;
12326s/^[^=]*=[ ]*$//;
12327}'
a0da8069 12328fi
252b5132 12329
a0da8069
NN
12330# Transform confdefs.h into DEFS.
12331# Protect against shell expansion while executing Makefile rules.
12332# Protect against Makefile macro expansion.
c6b750e1
DJ
12333#
12334# If the first sed substitution is executed (which looks for macros that
12335# take arguments), then we branch to the quote section. Otherwise,
12336# look for a macro that doesn't take arguments.
12337cat >confdef2opt.sed <<\_ACEOF
12338t clear
12339: clear
12340s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12341t quote
12342s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12343t quote
12344d
12345: quote
12346s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12347s,\[,\\&,g
12348s,\],\\&,g
12349s,\$,$$,g
12350p
12351_ACEOF
12352# We use echo to avoid assuming a particular line-breaking character.
12353# The extra dot is to prevent the shell from consuming trailing
12354# line-breaks from the sub-command output. A line-break within
12355# single-quotes doesn't work because, if this script is created in a
12356# platform that uses two characters for line-breaks (e.g., DOS), tr
12357# would break.
12358ac_LF_and_DOT=`echo; echo .`
12359DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12360rm -f confdef2opt.sed
12361
12362
12363ac_libobjs=
12364ac_ltlibobjs=
12365for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12366 # 1. Remove the extension, and $U if already installed.
12367 ac_i=`echo "$ac_i" |
12368 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12369 # 2. Add them.
12370 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12371 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12372done
12373LIBOBJS=$ac_libobjs
852e5f18 12374
c6b750e1 12375LTLIBOBJS=$ac_ltlibobjs
376a0e54 12376
cac3d6c4 12377
c6b750e1
DJ
12378
12379: ${CONFIG_STATUS=./config.status}
12380ac_clean_files_save=$ac_clean_files
12381ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12382{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12383echo "$as_me: creating $CONFIG_STATUS" >&6;}
12384cat >$CONFIG_STATUS <<_ACEOF
12385#! $SHELL
12386# Generated by $as_me.
a0da8069 12387# Run this file to recreate the current configuration.
a0da8069 12388# Compiler output produced by configure, useful for debugging
c6b750e1 12389# configure, is in config.log if it exists.
376a0e54 12390
c6b750e1
DJ
12391debug=false
12392ac_cs_recheck=false
12393ac_cs_silent=false
12394SHELL=\${CONFIG_SHELL-$SHELL}
12395_ACEOF
12396
12397cat >>$CONFIG_STATUS <<\_ACEOF
12398## --------------------- ##
12399## M4sh Initialization. ##
12400## --------------------- ##
12401
12402# Be Bourne compatible
12403if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12404 emulate sh
12405 NULLCMD=:
12406 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12407 # is contrary to our usage. Disable this feature.
12408 alias -g '${1+"$@"}'='"$@"'
12409elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12410 set -o posix
12411fi
12412DUALCASE=1; export DUALCASE # for MKS sh
12413
12414# Support unset when possible.
12415if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12416 as_unset=unset
12417else
12418 as_unset=false
12419fi
12420
12421
12422# Work around bugs in pre-3.0 UWIN ksh.
12423$as_unset ENV MAIL MAILPATH
12424PS1='$ '
12425PS2='> '
12426PS4='+ '
12427
12428# NLS nuisances.
12429for as_var in \
12430 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12431 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12432 LC_TELEPHONE LC_TIME
12433do
12434 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12435 eval $as_var=C; export $as_var
12436 else
12437 $as_unset $as_var
12438 fi
12439done
12440
12441# Required to use basename.
12442if expr a : '\(a\)' >/dev/null 2>&1; then
12443 as_expr=expr
12444else
12445 as_expr=false
12446fi
12447
12448if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12449 as_basename=basename
12450else
12451 as_basename=false
12452fi
12453
12454
12455# Name of the executable.
12456as_me=`$as_basename "$0" ||
12457$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12458 X"$0" : 'X\(//\)$' \| \
12459 X"$0" : 'X\(/\)$' \| \
12460 . : '\(.\)' 2>/dev/null ||
12461echo X/"$0" |
12462 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12463 /^X\/\(\/\/\)$/{ s//\1/; q; }
12464 /^X\/\(\/\).*/{ s//\1/; q; }
12465 s/.*/./; q'`
12466
12467
12468# PATH needs CR, and LINENO needs CR and PATH.
12469# Avoid depending upon Character Ranges.
12470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12473as_cr_digits='0123456789'
12474as_cr_alnum=$as_cr_Letters$as_cr_digits
12475
12476# The user is always right.
12477if test "${PATH_SEPARATOR+set}" != set; then
12478 echo "#! /bin/sh" >conf$$.sh
12479 echo "exit 0" >>conf$$.sh
12480 chmod +x conf$$.sh
12481 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12482 PATH_SEPARATOR=';'
12483 else
12484 PATH_SEPARATOR=:
12485 fi
12486 rm -f conf$$.sh
12487fi
12488
12489
12490 as_lineno_1=$LINENO
12491 as_lineno_2=$LINENO
12492 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12493 test "x$as_lineno_1" != "x$as_lineno_2" &&
12494 test "x$as_lineno_3" = "x$as_lineno_2" || {
12495 # Find who we are. Look in the path if we contain no path at all
12496 # relative or not.
12497 case $0 in
12498 *[\\/]* ) as_myself=$0 ;;
12499 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12500for as_dir in $PATH
12501do
12502 IFS=$as_save_IFS
12503 test -z "$as_dir" && as_dir=.
12504 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12505done
12506
12507 ;;
12508 esac
12509 # We did not find ourselves, most probably we were run as `sh COMMAND'
12510 # in which case we are not to be found in the path.
12511 if test "x$as_myself" = x; then
12512 as_myself=$0
12513 fi
12514 if test ! -f "$as_myself"; then
12515 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12516echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12517 { (exit 1); exit 1; }; }
12518 fi
12519 case $CONFIG_SHELL in
12520 '')
12521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12523do
12524 IFS=$as_save_IFS
12525 test -z "$as_dir" && as_dir=.
12526 for as_base in sh bash ksh sh5; do
12527 case $as_dir in
12528 /*)
12529 if ("$as_dir/$as_base" -c '
12530 as_lineno_1=$LINENO
12531 as_lineno_2=$LINENO
12532 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12533 test "x$as_lineno_1" != "x$as_lineno_2" &&
12534 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12535 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12536 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12537 CONFIG_SHELL=$as_dir/$as_base
12538 export CONFIG_SHELL
12539 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12540 fi;;
12541 esac
12542 done
12543done
12544;;
12545 esac
12546
12547 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12548 # uniformly replaced by the line number. The first 'sed' inserts a
12549 # line-number line before each line; the second 'sed' does the real
12550 # work. The second script uses 'N' to pair each line-number line
12551 # with the numbered line, and appends trailing '-' during
12552 # substitution so that $LINENO is not a special case at line end.
12553 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12554 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12555 sed '=' <$as_myself |
12556 sed '
12557 N
12558 s,$,-,
12559 : loop
12560 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12561 t loop
12562 s,-$,,
12563 s,^['$as_cr_digits']*\n,,
12564 ' >$as_me.lineno &&
12565 chmod +x $as_me.lineno ||
12566 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12567echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12568 { (exit 1); exit 1; }; }
12569
12570 # Don't try to exec as it changes $[0], causing all sort of problems
12571 # (the dirname of $[0] is not the place where we might find the
12572 # original and so on. Autoconf is especially sensible to this).
12573 . ./$as_me.lineno
12574 # Exit status is that of the last command.
12575 exit
12576}
12577
12578
12579case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12580 *c*,-n*) ECHO_N= ECHO_C='
12581' ECHO_T=' ' ;;
12582 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12583 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12584esac
12585
12586if expr a : '\(a\)' >/dev/null 2>&1; then
12587 as_expr=expr
12588else
12589 as_expr=false
12590fi
12591
12592rm -f conf$$ conf$$.exe conf$$.file
12593echo >conf$$.file
12594if ln -s conf$$.file conf$$ 2>/dev/null; then
12595 # We could just check for DJGPP; but this test a) works b) is more generic
12596 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12597 if test -f conf$$.exe; then
12598 # Don't use ln at all; we don't have any links
12599 as_ln_s='cp -p'
12600 else
12601 as_ln_s='ln -s'
12602 fi
12603elif ln conf$$.file conf$$ 2>/dev/null; then
12604 as_ln_s=ln
12605else
12606 as_ln_s='cp -p'
12607fi
12608rm -f conf$$ conf$$.exe conf$$.file
12609
12610if mkdir -p . 2>/dev/null; then
12611 as_mkdir_p=:
12612else
12613 test -d ./-p && rmdir ./-p
12614 as_mkdir_p=false
12615fi
12616
12617as_executable_p="test -f"
12618
12619# Sed expression to map a string onto a valid CPP name.
12620as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12621
12622# Sed expression to map a string onto a valid variable name.
12623as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12624
12625
12626# IFS
12627# We need space, tab and new line, in precisely that order.
12628as_nl='
12629'
12630IFS=" $as_nl"
12631
12632# CDPATH.
12633$as_unset CDPATH
12634
12635exec 6>&1
12636
12637# Open the log real soon, to keep \$[0] and so on meaningful, and to
12638# report actual input values of CONFIG_FILES etc. instead of their
12639# values after options handling. Logging --version etc. is OK.
12640exec 5>>config.log
12641{
12642 echo
12643 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12644## Running $as_me. ##
12645_ASBOX
12646} >&5
12647cat >&5 <<_CSEOF
12648
12649This file was extended by $as_me, which was
12650generated by GNU Autoconf 2.59. Invocation command line was
12651
12652 CONFIG_FILES = $CONFIG_FILES
12653 CONFIG_HEADERS = $CONFIG_HEADERS
12654 CONFIG_LINKS = $CONFIG_LINKS
12655 CONFIG_COMMANDS = $CONFIG_COMMANDS
12656 $ $0 $@
12657
12658_CSEOF
12659echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12660echo >&5
12661_ACEOF
12662
12663# Files that config.status was made for.
12664if test -n "$ac_config_files"; then
12665 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12666fi
12667
12668if test -n "$ac_config_headers"; then
12669 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12670fi
12671
12672if test -n "$ac_config_links"; then
12673 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12674fi
12675
12676if test -n "$ac_config_commands"; then
12677 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12678fi
12679
12680cat >>$CONFIG_STATUS <<\_ACEOF
12681
12682ac_cs_usage="\
12683\`$as_me' instantiates files from templates according to the
12684current configuration.
12685
12686Usage: $0 [OPTIONS] [FILE]...
12687
12688 -h, --help print this help, then exit
12689 -V, --version print version number, then exit
12690 -q, --quiet do not print progress messages
12691 -d, --debug don't remove temporary files
12692 --recheck update $as_me by reconfiguring in the same conditions
12693 --file=FILE[:TEMPLATE]
12694 instantiate the configuration file FILE
12695
12696Configuration files:
12697$config_files
12698
12699Report bugs to <bug-autoconf@gnu.org>."
12700_ACEOF
12701
12702cat >>$CONFIG_STATUS <<_ACEOF
12703ac_cs_version="\\
12704config.status
12705configured by $0, generated by GNU Autoconf 2.59,
12706 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12707
12708Copyright (C) 2003 Free Software Foundation, Inc.
12709This config.status script is free software; the Free Software Foundation
12710gives unlimited permission to copy, distribute and modify it."
12711srcdir=$srcdir
12712INSTALL="$INSTALL"
12713_ACEOF
12714
12715cat >>$CONFIG_STATUS <<\_ACEOF
12716# If no file are specified by the user, then we need to provide default
12717# value. By we need to know if files were specified by the user.
12718ac_need_defaults=:
12719while test $# != 0
a0da8069 12720do
c6b750e1
DJ
12721 case $1 in
12722 --*=*)
12723 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12724 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12725 ac_shift=:
12726 ;;
12727 -*)
12728 ac_option=$1
12729 ac_optarg=$2
12730 ac_shift=shift
12731 ;;
12732 *) # This is not an option, so the user has probably given explicit
12733 # arguments.
12734 ac_option=$1
12735 ac_need_defaults=false;;
12736 esac
12737
12738 case $ac_option in
12739 # Handling of the options.
12740_ACEOF
12741cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12742 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12743 ac_cs_recheck=: ;;
12744 --version | --vers* | -V )
12745 echo "$ac_cs_version"; exit 0 ;;
12746 --he | --h)
12747 # Conflict between --help and --header
12748 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12749Try \`$0 --help' for more information." >&5
12750echo "$as_me: error: ambiguous option: $1
12751Try \`$0 --help' for more information." >&2;}
12752 { (exit 1); exit 1; }; };;
12753 --help | --hel | -h )
12754 echo "$ac_cs_usage"; exit 0 ;;
12755 --debug | --d* | -d )
12756 debug=: ;;
12757 --file | --fil | --fi | --f )
12758 $ac_shift
12759 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12760 ac_need_defaults=false;;
12761 --header | --heade | --head | --hea )
12762 $ac_shift
12763 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12764 ac_need_defaults=false;;
12765 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12766 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12767 ac_cs_silent=: ;;
12768
12769 # This is an error.
12770 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12771Try \`$0 --help' for more information." >&5
12772echo "$as_me: error: unrecognized option: $1
12773Try \`$0 --help' for more information." >&2;}
12774 { (exit 1); exit 1; }; } ;;
12775
12776 *) ac_config_targets="$ac_config_targets $1" ;;
12777
376a0e54 12778 esac
c6b750e1 12779 shift
376a0e54
CM
12780done
12781
c6b750e1 12782ac_configure_extra_args=
376a0e54 12783
c6b750e1
DJ
12784if $ac_cs_silent; then
12785 exec 6>/dev/null
12786 ac_configure_extra_args="$ac_configure_extra_args --silent"
12787fi
376a0e54 12788
c6b750e1
DJ
12789_ACEOF
12790cat >>$CONFIG_STATUS <<_ACEOF
12791if \$ac_cs_recheck; then
12792 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12793 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12794fi
12795
12796_ACEOF
12797
12798
12799
12800
12801
12802cat >>$CONFIG_STATUS <<\_ACEOF
12803for ac_config_target in $ac_config_targets
12804do
12805 case "$ac_config_target" in
12806 # Handling of arguments.
12807 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12808 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12809echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12810 { (exit 1); exit 1; }; };;
12811 esac
12812done
12813
12814# If the user did not use the arguments to specify the items to instantiate,
12815# then the envvar interface is used. Set only those that are not.
12816# We use the long form for the default assignment because of an extremely
12817# bizarre bug on SunOS 4.1.3.
12818if $ac_need_defaults; then
12819 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12820fi
12821
12822# Have a temporary directory for convenience. Make it in the build tree
12823# simply because there is no reason to put it here, and in addition,
12824# creating and moving files from /tmp can sometimes cause problems.
12825# Create a temporary directory, and hook for its removal unless debugging.
12826$debug ||
12827{
12828 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12829 trap '{ (exit 1); exit 1; }' 1 2 13 15
12830}
12831
12832# Create a (secure) tmp directory for tmp files.
12833
12834{
12835 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12836 test -n "$tmp" && test -d "$tmp"
12837} ||
12838{
12839 tmp=./confstat$$-$RANDOM
12840 (umask 077 && mkdir $tmp)
12841} ||
12842{
12843 echo "$me: cannot create a temporary directory in ." >&2
12844 { (exit 1); exit 1; }
12845}
12846
12847_ACEOF
12848
12849cat >>$CONFIG_STATUS <<_ACEOF
12850
12851#
12852# CONFIG_FILES section.
12853#
12854
12855# No need to generate the scripts if there are no CONFIG_FILES.
12856# This happens for instance when ./config.status config.h
12857if test -n "\$CONFIG_FILES"; then
12858 # Protect against being on the right side of a sed subst in config.status.
12859 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12860 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12861s,@SHELL@,$SHELL,;t t
12862s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12863s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12864s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12865s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12866s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12867s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12868s,@exec_prefix@,$exec_prefix,;t t
12869s,@prefix@,$prefix,;t t
12870s,@program_transform_name@,$program_transform_name,;t t
12871s,@bindir@,$bindir,;t t
12872s,@sbindir@,$sbindir,;t t
12873s,@libexecdir@,$libexecdir,;t t
12874s,@datadir@,$datadir,;t t
12875s,@sysconfdir@,$sysconfdir,;t t
12876s,@sharedstatedir@,$sharedstatedir,;t t
12877s,@localstatedir@,$localstatedir,;t t
12878s,@libdir@,$libdir,;t t
12879s,@includedir@,$includedir,;t t
12880s,@oldincludedir@,$oldincludedir,;t t
12881s,@infodir@,$infodir,;t t
12882s,@mandir@,$mandir,;t t
12883s,@build_alias@,$build_alias,;t t
12884s,@host_alias@,$host_alias,;t t
12885s,@target_alias@,$target_alias,;t t
12886s,@DEFS@,$DEFS,;t t
12887s,@ECHO_C@,$ECHO_C,;t t
12888s,@ECHO_N@,$ECHO_N,;t t
12889s,@ECHO_T@,$ECHO_T,;t t
12890s,@LIBS@,$LIBS,;t t
12891s,@build@,$build,;t t
12892s,@build_cpu@,$build_cpu,;t t
12893s,@build_vendor@,$build_vendor,;t t
12894s,@build_os@,$build_os,;t t
12895s,@build_noncanonical@,$build_noncanonical,;t t
12896s,@host_noncanonical@,$host_noncanonical,;t t
12897s,@target_noncanonical@,$target_noncanonical,;t t
12898s,@host@,$host,;t t
12899s,@host_cpu@,$host_cpu,;t t
12900s,@host_vendor@,$host_vendor,;t t
12901s,@host_os@,$host_os,;t t
12902s,@target@,$target,;t t
12903s,@target_cpu@,$target_cpu,;t t
12904s,@target_vendor@,$target_vendor,;t t
12905s,@target_os@,$target_os,;t t
12906s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12907s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12908s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12909s,@LN@,$LN,;t t
12910s,@LN_S@,$LN_S,;t t
12911s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12912s,@build_libsubdir@,$build_libsubdir,;t t
12913s,@build_subdir@,$build_subdir,;t t
12914s,@host_subdir@,$host_subdir,;t t
12915s,@target_subdir@,$target_subdir,;t t
12916s,@CC@,$CC,;t t
12917s,@CFLAGS@,$CFLAGS,;t t
12918s,@LDFLAGS@,$LDFLAGS,;t t
12919s,@CPPFLAGS@,$CPPFLAGS,;t t
12920s,@ac_ct_CC@,$ac_ct_CC,;t t
12921s,@EXEEXT@,$EXEEXT,;t t
12922s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12923s,@CXX@,$CXX,;t t
12924s,@CXXFLAGS@,$CXXFLAGS,;t t
12925s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12926s,@GNATBIND@,$GNATBIND,;t t
12927s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12928s,@GNATMAKE@,$GNATMAKE,;t t
12929s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12930s,@do_compare@,$do_compare,;t t
12931s,@gmplibs@,$gmplibs,;t t
12932s,@gmpinc@,$gmpinc,;t t
12933s,@stage1_languages@,$stage1_languages,;t t
12934s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 12935s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
7f6ef0c0
PB
12936s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
12937s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
c6b750e1
DJ
12938s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12939s,@tooldir@,$tooldir,;t t
12940s,@build_tooldir@,$build_tooldir,;t t
12941s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12942s,@GDB_TK@,$GDB_TK,;t t
12943s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12944s,@build_configargs@,$build_configargs,;t t
12945s,@build_configdirs@,$build_configdirs,;t t
12946s,@host_configargs@,$host_configargs,;t t
12947s,@configdirs@,$configdirs,;t t
12948s,@target_configargs@,$target_configargs,;t t
1576798e
PB
12949s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
12950s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
c6b750e1 12951s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
1576798e
PB
12952s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12953s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
12954s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
12955s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
12956s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
12957s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
12958s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
12959s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
12960s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
12961s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
12962s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
12963s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
c6b750e1
DJ
12964s,@config_shell@,$config_shell,;t t
12965s,@YACC@,$YACC,;t t
12966s,@BISON@,$BISON,;t t
12967s,@M4@,$M4,;t t
12968s,@LEX@,$LEX,;t t
12969s,@FLEX@,$FLEX,;t t
12970s,@MAKEINFO@,$MAKEINFO,;t t
12971s,@EXPECT@,$EXPECT,;t t
12972s,@RUNTEST@,$RUNTEST,;t t
12973s,@AR@,$AR,;t t
12974s,@AS@,$AS,;t t
12975s,@DLLTOOL@,$DLLTOOL,;t t
12976s,@LD@,$LD,;t t
12977s,@LIPO@,$LIPO,;t t
12978s,@NM@,$NM,;t t
12979s,@RANLIB@,$RANLIB,;t t
12980s,@STRIP@,$STRIP,;t t
12981s,@WINDRES@,$WINDRES,;t t
0c24b341 12982s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
12983s,@OBJCOPY@,$OBJCOPY,;t t
12984s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1
DJ
12985s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12986s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12987s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12988s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12989s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12990s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12991s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12992s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12993s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12994s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12995s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12996s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12997s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12998s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12999s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 13000s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
13001s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13002s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13003s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13004s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13005s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13006s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13007s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13008s,@MAINT@,$MAINT,;t t
13009s,@stage1_cflags@,$stage1_cflags,;t t
13010s,@stage1_checking@,$stage1_checking,;t t
13011s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13012s,@datarootdir@,$datarootdir,;t t
13013s,@docdir@,$docdir,;t t
a3ca38d2 13014s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
13015s,@htmldir@,$htmldir,;t t
13016s,@LIBOBJS@,$LIBOBJS,;t t
13017s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 13018/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 13019s,@serialization_dependencies@,,;t t
a0da8069 13020/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 13021s,@host_makefile_frag@,,;t t
a0da8069 13022/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 13023s,@target_makefile_frag@,,;t t
a0da8069 13024/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 13025s,@alphaieee_frag@,,;t t
a0da8069 13026/@ospace_frag@/r $ospace_frag
c6b750e1 13027s,@ospace_frag@,,;t t
a0da8069 13028CEOF
252b5132 13029
c6b750e1
DJ
13030_ACEOF
13031
13032 cat >>$CONFIG_STATUS <<\_ACEOF
13033 # Split the substitutions into bite-sized pieces for seds with
13034 # small command number limits, like on Digital OSF/1 and HP-UX.
13035 ac_max_sed_lines=48
13036 ac_sed_frag=1 # Number of current file.
13037 ac_beg=1 # First line for current file.
13038 ac_end=$ac_max_sed_lines # Line after last line for current file.
13039 ac_more_lines=:
13040 ac_sed_cmds=
13041 while $ac_more_lines; do
13042 if test $ac_beg -gt 1; then
13043 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13044 else
13045 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13046 fi
13047 if test ! -s $tmp/subs.frag; then
13048 ac_more_lines=false
a0da8069 13049 else
c6b750e1
DJ
13050 # The purpose of the label and of the branching condition is to
13051 # speed up the sed processing (if there are no `@' at all, there
13052 # is no need to browse any of the substitutions).
13053 # These are the two extra sed commands mentioned above.
13054 (echo ':t
13055 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13056 if test -z "$ac_sed_cmds"; then
13057 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13058 else
13059 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13060 fi
13061 ac_sed_frag=`expr $ac_sed_frag + 1`
13062 ac_beg=$ac_end
13063 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 13064 fi
c6b750e1
DJ
13065 done
13066 if test -z "$ac_sed_cmds"; then
13067 ac_sed_cmds=cat
852e5f18 13068 fi
c6b750e1 13069fi # test -n "$CONFIG_FILES"
cac3d6c4 13070
c6b750e1
DJ
13071_ACEOF
13072cat >>$CONFIG_STATUS <<\_ACEOF
13073for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 13074 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
13075 case $ac_file in
13076 - | *:- | *:-:* ) # input from stdin
13077 cat >$tmp/stdin
13078 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13079 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13080 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13081 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13082 * ) ac_file_in=$ac_file.in ;;
a0da8069 13083 esac
252b5132 13084
c6b750e1
DJ
13085 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13086 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13087$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13088 X"$ac_file" : 'X\(//\)[^/]' \| \
13089 X"$ac_file" : 'X\(//\)$' \| \
13090 X"$ac_file" : 'X\(/\)' \| \
13091 . : '\(.\)' 2>/dev/null ||
13092echo X"$ac_file" |
13093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13095 /^X\(\/\/\)$/{ s//\1/; q; }
13096 /^X\(\/\).*/{ s//\1/; q; }
13097 s/.*/./; q'`
13098 { if $as_mkdir_p; then
13099 mkdir -p "$ac_dir"
cac3d6c4 13100 else
c6b750e1
DJ
13101 as_dir="$ac_dir"
13102 as_dirs=
13103 while test ! -d "$as_dir"; do
13104 as_dirs="$as_dir $as_dirs"
13105 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13106$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13107 X"$as_dir" : 'X\(//\)[^/]' \| \
13108 X"$as_dir" : 'X\(//\)$' \| \
13109 X"$as_dir" : 'X\(/\)' \| \
13110 . : '\(.\)' 2>/dev/null ||
13111echo X"$as_dir" |
13112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13114 /^X\(\/\/\)$/{ s//\1/; q; }
13115 /^X\(\/\).*/{ s//\1/; q; }
13116 s/.*/./; q'`
13117 done
13118 test ! -n "$as_dirs" || mkdir $as_dirs
13119 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13120echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13121 { (exit 1); exit 1; }; }; }
13122
13123 ac_builddir=.
252b5132 13124
c6b750e1
DJ
13125if test "$ac_dir" != .; then
13126 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13127 # A "../" for each directory in $ac_dir_suffix.
13128 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13129else
13130 ac_dir_suffix= ac_top_builddir=
13131fi
13132
13133case $srcdir in
13134 .) # No --srcdir option. We are building in place.
13135 ac_srcdir=.
13136 if test -z "$ac_top_builddir"; then
13137 ac_top_srcdir=.
13138 else
13139 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13140 fi ;;
13141 [\\/]* | ?:[\\/]* ) # Absolute path.
13142 ac_srcdir=$srcdir$ac_dir_suffix;
13143 ac_top_srcdir=$srcdir ;;
a0da8069 13144 *) # Relative path.
c6b750e1
DJ
13145 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13146 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13147esac
252b5132 13148
c6b750e1
DJ
13149# Do not use `cd foo && pwd` to compute absolute paths, because
13150# the directories may not exist.
13151case `pwd` in
13152.) ac_abs_builddir="$ac_dir";;
13153*)
13154 case "$ac_dir" in
13155 .) ac_abs_builddir=`pwd`;;
13156 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13157 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13158 esac;;
13159esac
13160case $ac_abs_builddir in
13161.) ac_abs_top_builddir=${ac_top_builddir}.;;
13162*)
13163 case ${ac_top_builddir}. in
13164 .) ac_abs_top_builddir=$ac_abs_builddir;;
13165 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13166 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13167 esac;;
13168esac
13169case $ac_abs_builddir in
13170.) ac_abs_srcdir=$ac_srcdir;;
13171*)
13172 case $ac_srcdir in
13173 .) ac_abs_srcdir=$ac_abs_builddir;;
13174 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13175 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13176 esac;;
13177esac
13178case $ac_abs_builddir in
13179.) ac_abs_top_srcdir=$ac_top_srcdir;;
13180*)
13181 case $ac_top_srcdir in
13182 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13183 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13184 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13185 esac;;
13186esac
252b5132 13187
c6b750e1
DJ
13188
13189 case $INSTALL in
13190 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13191 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13192 esac
252b5132 13193
c6b750e1
DJ
13194 if test x"$ac_file" != x-; then
13195 { echo "$as_me:$LINENO: creating $ac_file" >&5
13196echo "$as_me: creating $ac_file" >&6;}
13197 rm -f "$ac_file"
13198 fi
13199 # Let's still pretend it is `configure' which instantiates (i.e., don't
13200 # use $as_me), people would be surprised to read:
13201 # /* config.h. Generated by config.status. */
13202 if test x"$ac_file" = x-; then
13203 configure_input=
13204 else
13205 configure_input="$ac_file. "
13206 fi
13207 configure_input=$configure_input"Generated from `echo $ac_file_in |
13208 sed 's,.*/,,'` by configure."
13209
13210 # First look for the input files in the build tree, otherwise in the
13211 # src tree.
13212 ac_file_inputs=`IFS=:
13213 for f in $ac_file_in; do
13214 case $f in
13215 -) echo $tmp/stdin ;;
13216 [\\/$]*)
13217 # Absolute (can't be DOS-style, as IFS=:)
13218 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13219echo "$as_me: error: cannot find input file: $f" >&2;}
13220 { (exit 1); exit 1; }; }
13221 echo "$f";;
13222 *) # Relative
13223 if test -f "$f"; then
13224 # Build tree
13225 echo "$f"
13226 elif test -f "$srcdir/$f"; then
13227 # Source tree
13228 echo "$srcdir/$f"
13229 else
13230 # /dev/null tree
13231 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13232echo "$as_me: error: cannot find input file: $f" >&2;}
13233 { (exit 1); exit 1; }; }
13234 fi;;
13235 esac
13236 done` || { (exit 1); exit 1; }
13237_ACEOF
13238cat >>$CONFIG_STATUS <<_ACEOF
13239 sed "$ac_vpsub
13240$extrasub
13241_ACEOF
13242cat >>$CONFIG_STATUS <<\_ACEOF
13243:t
13244/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13245s,@configure_input@,$configure_input,;t t
13246s,@srcdir@,$ac_srcdir,;t t
13247s,@abs_srcdir@,$ac_abs_srcdir,;t t
13248s,@top_srcdir@,$ac_top_srcdir,;t t
13249s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13250s,@builddir@,$ac_builddir,;t t
13251s,@abs_builddir@,$ac_abs_builddir,;t t
13252s,@top_builddir@,$ac_top_builddir,;t t
13253s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13254s,@INSTALL@,$ac_INSTALL,;t t
13255" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13256 rm -f $tmp/stdin
13257 if test x"$ac_file" != x-; then
13258 mv $tmp/out $ac_file
13259 else
13260 cat $tmp/out
13261 rm -f $tmp/out
13262 fi
c148b4cb 13263
c6b750e1
DJ
13264done
13265_ACEOF
c148b4cb 13266
c6b750e1 13267cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13268
c6b750e1
DJ
13269{ (exit 0); exit 0; }
13270_ACEOF
c148b4cb 13271chmod +x $CONFIG_STATUS
c6b750e1
DJ
13272ac_clean_files=$ac_clean_files_save
13273
13274
13275# configure is writing to config.log, and then calls config.status.
13276# config.status does its own redirection, appending to config.log.
13277# Unfortunately, on DOS this fails, as config.log is still kept open
13278# by configure, so config.status won't be able to write to it; its
13279# output is simply discarded. So we exec the FD to /dev/null,
13280# effectively closing config.log, so it can be properly (re)opened and
13281# appended to by config.status. When coming back to configure, we
13282# need to make the FD available again.
13283if test "$no_create" != yes; then
13284 ac_cs_success=:
13285 ac_config_status_args=
13286 test "$silent" = yes &&
13287 ac_config_status_args="$ac_config_status_args --quiet"
13288 exec 5>/dev/null
13289 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13290 exec 5>>config.log
13291 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13292 # would make configure fail if this is the last instruction.
13293 $ac_cs_success || { (exit 1); exit 1; }
13294fi
c148b4cb 13295
This page took 1.234022 seconds and 4 git commands to generate.