2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
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
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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; }; }
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if 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
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
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}
267 # Identity of this package.
274 ac_unique_file
="move-if-change"
275 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES OBJCOPY OBJDUMP CFLAGS_FOR_BUILD CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
276 ac_subst_files
='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
278 # Initialize some variables set by options.
280 ac_init_version
=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
290 program_transform_name
=s
,x
,x
,
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.
303 bindir
='${exec_prefix}/bin'
304 sbindir
='${exec_prefix}/sbin'
305 libexecdir
='${exec_prefix}/libexec'
306 datadir
='${prefix}/share'
307 sysconfdir
='${prefix}/etc'
308 sharedstatedir
='${prefix}/com'
309 localstatedir
='${prefix}/var'
310 libdir
='${exec_prefix}/lib'
311 includedir
='${prefix}/include'
312 oldincludedir
='/usr/include'
313 infodir
='${prefix}/info'
314 mandir
='${prefix}/man'
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
326 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328 # Accept the important Cygnus configure options, so we can diagnose typos.
332 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
334 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
337 -build |
--build |
--buil |
--bui |
--bu)
338 ac_prev
=build_alias
;;
339 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
340 build_alias
=$ac_optarg ;;
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=*)
347 cache_file
=$ac_optarg ;;
350 cache_file
=config.cache
;;
352 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
354 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
356 datadir
=$ac_optarg ;;
358 -disable-* |
--disable-*)
359 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360 # Reject names that are not valid shell variable names.
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" ;;
367 -enable-* |
--enable-*)
368 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369 # Reject names that are not valid shell variable names.
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'`
375 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
378 eval "enable_$ac_feature='$ac_optarg'" ;;
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=*)
387 exec_prefix
=$ac_optarg ;;
389 -gas |
--gas |
--ga |
--g)
390 # Obsolete; use --with-gas.
393 -help |
--help |
--hel |
--he |
-h)
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
;;
400 -host |
--host |
--hos |
--ho)
401 ac_prev
=host_alias
;;
402 -host=* |
--host=* |
--hos=* |
--ho=*)
403 host_alias
=$ac_optarg ;;
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=*)
410 includedir
=$ac_optarg ;;
412 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
414 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
415 infodir
=$ac_optarg ;;
417 -libdir |
--libdir |
--libdi |
--libd)
419 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
422 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
423 |
--libexe |
--libex |
--libe)
424 ac_prev
=libexecdir
;;
425 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
426 |
--libexe=* |
--libex=* |
--libe=*)
427 libexecdir
=$ac_optarg ;;
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=*)
436 localstatedir
=$ac_optarg ;;
438 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
440 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
444 # Obsolete; use --without-fp.
447 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
448 |
--no-cr |
--no-c |
-n)
451 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
452 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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=*)
462 oldincludedir
=$ac_optarg ;;
464 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
466 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
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=*)
474 program_prefix
=$ac_optarg ;;
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=*)
481 program_suffix
=$ac_optarg ;;
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=*)
498 program_transform_name
=$ac_optarg ;;
500 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
501 |
-silent |
--silent |
--silen |
--sile |
--sil)
504 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
506 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
508 sbindir
=$ac_optarg ;;
510 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
511 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
512 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
514 ac_prev
=sharedstatedir
;;
515 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
516 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
517 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
519 sharedstatedir
=$ac_optarg ;;
521 -site |
--site |
--sit)
523 -site=* |
--site=* |
--sit=*)
526 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
528 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
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=*)
536 sysconfdir
=$ac_optarg ;;
538 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
539 ac_prev
=target_alias
;;
540 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
541 target_alias
=$ac_optarg ;;
543 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
546 -version |
--version |
--versio |
--versi |
--vers |
-V)
550 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551 # Reject names that are not valid shell variable names.
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; }; }
555 ac_package
=`echo $ac_package| sed 's/-/_/g'`
557 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
560 eval "with_$ac_package='$ac_optarg'" ;;
562 -without-* |
--without-*)
563 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564 # Reject names that are not valid shell variable names.
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" ;;
572 # Obsolete; use --with-x.
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=*)
580 x_includes
=$ac_optarg ;;
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=*)
587 x_libraries
=$ac_optarg ;;
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
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'"
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}
615 if test -n "$ac_prev"; then
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; }; }
621 # Be sure to have absolute paths.
622 for ac_var
in exec_prefix prefix
624 eval ac_val
=$
`echo $ac_var`
626 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
632 # Be sure to have absolute paths.
633 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
636 eval ac_val
=$
`echo $ac_var`
638 [\\/$
]* | ?
:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
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.
651 # FIXME: To remove some day.
652 if 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
663 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
665 test "$silent" = yes && exec 6>/dev
/null
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670 ac_srcdir_defaulted
=yes
671 # Try the directory containing this script, then its parent.
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 ||
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
685 if test ! -r $srcdir/$ac_unique_file; then
689 ac_srcdir_defaulted
=no
691 if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
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; }; }
703 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set
=${build_alias+set}
705 ac_env_build_alias_value
=$build_alias
706 ac_cv_env_build_alias_set
=${build_alias+set}
707 ac_cv_env_build_alias_value
=$build_alias
708 ac_env_host_alias_set
=${host_alias+set}
709 ac_env_host_alias_value
=$host_alias
710 ac_cv_env_host_alias_set
=${host_alias+set}
711 ac_cv_env_host_alias_value
=$host_alias
712 ac_env_target_alias_set
=${target_alias+set}
713 ac_env_target_alias_value
=$target_alias
714 ac_cv_env_target_alias_set
=${target_alias+set}
715 ac_cv_env_target_alias_value
=$target_alias
716 ac_env_CC_set
=${CC+set}
718 ac_cv_env_CC_set
=${CC+set}
719 ac_cv_env_CC_value
=$CC
720 ac_env_CFLAGS_set
=${CFLAGS+set}
721 ac_env_CFLAGS_value
=$CFLAGS
722 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value
=$CFLAGS
724 ac_env_LDFLAGS_set
=${LDFLAGS+set}
725 ac_env_LDFLAGS_value
=$LDFLAGS
726 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value
=$LDFLAGS
728 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value
=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
732 ac_env_CXX_set
=${CXX+set}
733 ac_env_CXX_value
=$CXX
734 ac_cv_env_CXX_set
=${CXX+set}
735 ac_cv_env_CXX_value
=$CXX
736 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
737 ac_env_CXXFLAGS_value
=$CXXFLAGS
738 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
739 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
742 # Report the --help message.
744 if test "$ac_init_help" = "long"; then
745 # Omit some internal or obsolete options to make the list less imposing.
746 # This message is too long to be a string in the A/UX 3.1 sh.
748 \`configure' configures this package to adapt to many kinds of systems.
750 Usage: $0 [OPTION]... [VAR=VALUE]...
752 To assign environment variables (e.g., CC, CFLAGS...), specify them as
753 VAR=VALUE. See below for descriptions of some of the useful variables.
755 Defaults for the options are specified in brackets.
758 -h, --help display this help and exit
759 --help=short display options specific to this package
760 --help=recursive display the short help of all the included packages
761 -V, --version display version information and exit
762 -q, --quiet, --silent do not print \`checking...' messages
763 --cache-file=FILE cache test results in FILE [disabled]
764 -C, --config-cache alias for \`--cache-file=config.cache'
765 -n, --no-create do not create output files
766 --srcdir=DIR find the sources in DIR [configure dir or \`..']
771 Installation directories:
772 --prefix=PREFIX install architecture-independent files in PREFIX
774 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
777 By default, \`make install' will install all the files in
778 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
779 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
780 for instance \`--prefix=\$HOME'.
782 For better control, use the options below.
784 Fine tuning of the installation directories:
785 --bindir=DIR user executables [EPREFIX/bin]
786 --sbindir=DIR system admin executables [EPREFIX/sbin]
787 --libexecdir=DIR program executables [EPREFIX/libexec]
788 --datadir=DIR read-only architecture-independent data [PREFIX/share]
789 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
790 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
791 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
792 --libdir=DIR object code libraries [EPREFIX/lib]
793 --includedir=DIR C header files [PREFIX/include]
794 --oldincludedir=DIR C header files for non-gcc [/usr/include]
795 --infodir=DIR info documentation [PREFIX/info]
796 --mandir=DIR man documentation [PREFIX/man]
802 --program-prefix=PREFIX prepend PREFIX to installed program names
803 --program-suffix=SUFFIX append SUFFIX to installed program names
804 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
807 --build=BUILD configure
for building on BUILD
[guessed
]
808 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
809 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
813 if test -n "$ac_init_help"; then
818 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
819 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
820 --enable-libada Builds libada directory
821 --enable-libssp Builds libssp directory
822 --enable-stage1-languages=all choose additional languages to build during
823 stage1. Mostly useful
for compiler development.
824 --enable-objc-gc enable the use of Boehm
's garbage collector with
825 the GNU Objective-C runtime.
826 --enable-bootstrap Enable bootstrapping yes if native build
827 --enable-serial-{host,target,build}-configure
828 Force sequential configuration of
829 sub-packages for the host, target or build
830 machine, or all sub-packages
831 --enable-maintainer-mode enable make rules and dependencies not useful
832 (and sometimes confusing) to the casual installer
833 --enable-stage1-checking=all choose additional checking for stage1
835 --enable-werror enable -Werror in bootstrap stage2 and later
838 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
839 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
840 --with-build-libsubdir=DIR Directory where to find libraries for build system
841 --with-mpfr-dir=PATH This option has been REMOVED
842 --with-mpfr=PATH Specify prefix directory for installed MPFR package
843 Equivalent to --with-mpfr-include=PATH/include
844 plus --with-mpfr-lib=PATH/lib
845 --with-mpfr-include=PATH
846 Specify directory for installed MPFR include files
847 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library
848 --with-gmp-dir=PATH This option has been REMOVED
849 --with-gmp=PATH Specify prefix directory for the installed GMP package
850 Equivalent to --with-gmp-include=PATH/include
851 plus --with-gmp-lib=PATH/lib
852 --with-gmp-include=PATH Specify directory for installed GMP include files
853 --with-gmp-lib=PATH Specify the directory for the installed GMP library
854 --with-build-sysroot=sysroot
855 use sysroot as the system root during the build
856 --with-build-time-tools=path
857 use given path to find target tools during the build
858 --with-datarootdir Use datarootdir as the data root directory.
859 --with-docdir Install documentation in this directory.
860 --with-htmldir Install html in this directory.
862 Some influential environment variables:
863 CC C compiler command
864 CFLAGS C compiler flags
865 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
866 nonstandard directory <lib dir>
867 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
868 headers in a nonstandard directory <include dir>
869 CXX C++ compiler command
870 CXXFLAGS C++ compiler flags
872 Use these variables to override the choices made by `configure' or to
help
873 it to
find libraries and programs with nonstandard names
/locations.
878 if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
881 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
882 test -d $ac_dir ||
continue
885 if test "$ac_dir" != .
; then
886 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
887 # A "../" for each directory in $ac_dir_suffix.
888 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
890 ac_dir_suffix
= ac_top_builddir
=
894 .
) # No --srcdir option. We are building in place.
896 if test -z "$ac_top_builddir"; then
899 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
901 [\\/]* | ?
:[\\/]* ) # Absolute path.
902 ac_srcdir
=$srcdir$ac_dir_suffix;
903 ac_top_srcdir
=$srcdir ;;
905 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
909 # Do not use `cd foo && pwd` to compute absolute paths, because
910 # the directories may not exist.
912 .
) ac_abs_builddir
="$ac_dir";;
915 .
) ac_abs_builddir
=`pwd`;;
916 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
917 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
920 case $ac_abs_builddir in
921 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
923 case ${ac_top_builddir}.
in
924 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
925 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
926 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
929 case $ac_abs_builddir in
930 .
) ac_abs_srcdir
=$ac_srcdir;;
933 .
) ac_abs_srcdir
=$ac_abs_builddir;;
934 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
935 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
938 case $ac_abs_builddir in
939 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
941 case $ac_top_srcdir in
942 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
943 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
944 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
949 # Check for guested configure; otherwise get Cygnus style configure.
950 if test -f $ac_srcdir/configure.gnu
; then
952 $SHELL $ac_srcdir/configure.gnu
--help=recursive
953 elif test -f $ac_srcdir/configure
; then
955 $SHELL $ac_srcdir/configure
--help=recursive
956 elif test -f $ac_srcdir/configure.ac ||
957 test -f $ac_srcdir/configure.
in; then
961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
967 test -n "$ac_init_help" && exit 0
968 if $ac_init_version; then
971 Copyright
(C
) 2003 Free Software Foundation
, Inc.
972 This configure
script is free software
; the Free Software Foundation
973 gives unlimited permission to copy
, distribute and modify it.
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
982 It was created by $as_me, which was
983 generated by GNU Autoconf 2.59. Invocation command line was
994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1003 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1004 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1007 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1008 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1009 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1017 test -z "$as_dir" && as_dir
=.
1018 echo "PATH: $as_dir"
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Strip out --silent because we don't want to record it for future runs.
1036 # Also quote any args containing shell meta-characters.
1037 # Make two passes to allow for proper duplicate-argument suppression.
1042 ac_must_keep_next
=false
1048 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1049 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1050 |
-silent |
--silent |
--silen |
--sile |
--sil)
1052 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1056 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1058 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1059 if test $ac_must_keep_next = true
; then
1060 ac_must_keep_next
=false
# Got value, back to normal.
1063 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1064 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1065 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1066 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1067 case "$ac_configure_args0 " in
1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1071 -* ) ac_must_keep_next
=true
;;
1074 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1075 # Get rid of the leading space.
1081 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1082 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1084 # When interrupted or exit'd, cleanup temporary files, and complete
1085 # config.log. We remove comments because anyway the quotes in there
1086 # would cause problems or look ugly.
1087 # WARNING: Be sure not to use single quotes in there, as some shells,
1088 # such as our DU 5.0 friend, will then `close' the trap.
1089 trap 'exit_status=$?
1090 # Save into config.log some information that might help in debugging.
1095 ## ---------------- ##
1096 ## Cache variables. ##
1097 ## ---------------- ##
1100 # The following way of writing the cache mishandles newlines in values,
1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1118 ## ----------------- ##
1119 ## Output variables. ##
1120 ## ----------------- ##
1123 for ac_var in $ac_subst_vars
1125 eval ac_val=$`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1130 if test -n "$ac_subst_files"; then
1137 for ac_var in $ac_subst_files
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1145 if test -s confdefs.h; then
1152 sed "/^$/d" confdefs.h | sort
1155 test "$ac_signal" != 0 &&
1156 echo "$as_me: caught signal $ac_signal"
1157 echo "$as_me: exit $exit_status"
1159 rm -f core *.core &&
1160 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1163 for ac_signal
in 1 2 13 15; do
1164 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1169 rm -rf conftest
* confdefs.h
1170 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1173 # Predefined preprocessor variables.
1175 cat >>confdefs.h
<<_ACEOF
1176 #define PACKAGE_NAME "$PACKAGE_NAME"
1180 cat >>confdefs.h
<<_ACEOF
1181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1185 cat >>confdefs.h
<<_ACEOF
1186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1190 cat >>confdefs.h
<<_ACEOF
1191 #define PACKAGE_STRING "$PACKAGE_STRING"
1195 cat >>confdefs.h
<<_ACEOF
1196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1200 # Let the site file select an alternate cache file if it wants to.
1201 # Prefer explicitly selected file to automatically selected ones.
1202 if test -z "$CONFIG_SITE"; then
1203 if test "x$prefix" != xNONE
; then
1204 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1206 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1209 for ac_site_file
in $CONFIG_SITE; do
1210 if test -r "$ac_site_file"; then
1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 echo "$as_me: loading site script $ac_site_file" >&6;}
1213 sed 's/^/| /' "$ac_site_file" >&5
1218 if test -r "$cache_file"; then
1219 # Some versions of bash will fail to source /dev/null (special
1220 # files actually), so we avoid doing that.
1221 if test -f "$cache_file"; then
1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 echo "$as_me: loading cache $cache_file" >&6;}
1225 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1226 *) . .
/$cache_file;;
1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 echo "$as_me: creating cache $cache_file" >&6;}
1235 # Check that the precious variables saved in the cache have kept the same
1237 ac_cache_corrupted
=false
1238 for ac_var
in `(set) 2>&1 |
1239 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1241 eval ac_new_set
=\
$ac_env_${ac_var}_set
1242 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1243 eval ac_new_val
="\$ac_env_${ac_var}_value"
1244 case $ac_old_set,$ac_new_set in
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248 ac_cache_corrupted
=: ;;
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252 ac_cache_corrupted
=: ;;
1255 if test "x$ac_old_val" != "x$ac_new_val"; then
1256 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1257 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1258 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1259 echo "$as_me: former value: $ac_old_val" >&2;}
1260 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1261 echo "$as_me: current value: $ac_new_val" >&2;}
1262 ac_cache_corrupted
=:
1265 # Pass precious variables to config.status.
1266 if test "$ac_new_set" = set; then
1268 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1270 *) ac_arg
=$ac_var=$ac_new_val ;;
1272 case " $ac_configure_args " in
1273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1274 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1278 if $ac_cache_corrupted; then
1279 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1280 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1281 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1282 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1283 { (exit 1); exit 1; }; }
1287 ac_cpp
='$CPP $CPPFLAGS'
1288 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1289 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1290 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1312 # Find the build, host, and target systems.
1314 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1315 if test -f $ac_dir/install-sh
; then
1317 ac_install_sh
="$ac_aux_dir/install-sh -c"
1319 elif test -f $ac_dir/install.sh
; then
1321 ac_install_sh
="$ac_aux_dir/install.sh -c"
1323 elif test -f $ac_dir/shtool
; then
1325 ac_install_sh
="$ac_aux_dir/shtool install -c"
1329 if test -z "$ac_aux_dir"; then
1330 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1331 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1332 { (exit 1); exit 1; }; }
1334 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1335 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1336 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1338 # Make sure we can run config.sub.
1339 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1340 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1341 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1342 { (exit 1); exit 1; }; }
1344 echo "$as_me:$LINENO: checking build system type" >&5
1345 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1346 if test "${ac_cv_build+set}" = set; then
1347 echo $ECHO_N "(cached) $ECHO_C" >&6
1349 ac_cv_build_alias
=$build_alias
1350 test -z "$ac_cv_build_alias" &&
1351 ac_cv_build_alias
=`$ac_config_guess`
1352 test -z "$ac_cv_build_alias" &&
1353 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1354 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1355 { (exit 1); exit 1; }; }
1356 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1357 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1358 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1359 { (exit 1); exit 1; }; }
1362 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1363 echo "${ECHO_T}$ac_cv_build" >&6
1365 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1366 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1367 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1370 case ${build_alias} in
1371 "") build_noncanonical
=${build} ;;
1372 *) build_noncanonical
=${build_alias} ;;
1377 case ${host_alias} in
1378 "") host_noncanonical
=${build_noncanonical} ;;
1379 *) host_noncanonical
=${host_alias} ;;
1384 case ${target_alias} in
1385 "") target_noncanonical
=${host_noncanonical} ;;
1386 *) target_noncanonical
=${target_alias} ;;
1392 test "$host_noncanonical" = "$target_noncanonical" &&
1393 test "$program_prefix$program_suffix$program_transform_name" = \
1395 program_transform_name
=s
,y
,y
,
1397 echo "$as_me:$LINENO: checking host system type" >&5
1398 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1399 if test "${ac_cv_host+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1402 ac_cv_host_alias
=$host_alias
1403 test -z "$ac_cv_host_alias" &&
1404 ac_cv_host_alias
=$ac_cv_build_alias
1405 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1406 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1407 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1408 { (exit 1); exit 1; }; }
1411 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1412 echo "${ECHO_T}$ac_cv_host" >&6
1414 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1415 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1416 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1419 echo "$as_me:$LINENO: checking target system type" >&5
1420 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1421 if test "${ac_cv_target+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1424 ac_cv_target_alias
=$target_alias
1425 test "x$ac_cv_target_alias" = "x" &&
1426 ac_cv_target_alias
=$ac_cv_host_alias
1427 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1428 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1429 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1430 { (exit 1); exit 1; }; }
1433 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1434 echo "${ECHO_T}$ac_cv_target" >&6
1435 target
=$ac_cv_target
1436 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1437 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1438 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1441 # The aliases save the names the user supplied, while $host etc.
1442 # will get canonicalized.
1443 test -n "$target_alias" &&
1444 test "$program_prefix$program_suffix$program_transform_name" = \
1446 program_prefix
=${target_alias}-
1447 test "$program_prefix" != NONE
&&
1448 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1449 # Use a double $ so make ignores it.
1450 test "$program_suffix" != NONE
&&
1451 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1452 # Double any \ or $. echo might interpret backslashes.
1453 # By default was `s,x,x', remove it if useless.
1454 cat <<\_ACEOF
>conftest.
sed
1455 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1457 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1462 # Get 'install' or 'install-sh' and its variants.
1463 # Find a good install program. We prefer a C program (faster),
1464 # so one script is as good as another. But avoid the broken or
1465 # incompatible versions:
1466 # SysV /etc/install, /usr/sbin/install
1467 # SunOS /usr/etc/install
1468 # IRIX /sbin/install
1470 # AmigaOS /C/install, which installs bootblocks on floppy discs
1471 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1472 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1473 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1474 # OS/2's system install, which has a completely different semantic
1475 # ./install, which can be erroneously created by make from ./install.sh.
1476 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1477 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1478 if test -z "$INSTALL"; then
1479 if test "${ac_cv_path_install+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1486 test -z "$as_dir" && as_dir
=.
1487 # Account for people who put trailing slashes in PATH elements.
1489 .
/ | .
// |
/cC
/* | \
1490 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1491 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1494 # OSF1 and SCO ODT 3.0 have their own names for install.
1495 # Don't use installbsd from OSF since it installs stuff as root
1497 for ac_prog
in ginstall scoinst
install; do
1498 for ac_exec_ext
in '' $ac_executable_extensions; do
1499 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1500 if test $ac_prog = install &&
1501 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1502 # AIX install. It has an incompatible calling convention.
1504 elif test $ac_prog = install &&
1505 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1506 # program-specific install script used by HP pwplus--don't use.
1509 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1521 if test "${ac_cv_path_install+set}" = set; then
1522 INSTALL
=$ac_cv_path_install
1524 # As a last resort, use the slow shell script. We don't cache a
1525 # path for INSTALL within a source directory, because that will
1526 # break other packages using the cache if that directory is
1527 # removed, or if the path is relative.
1528 INSTALL
=$ac_install_sh
1531 echo "$as_me:$LINENO: result: $INSTALL" >&5
1532 echo "${ECHO_T}$INSTALL" >&6
1534 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1535 # It thinks the first close brace ends the variable substitution.
1536 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1538 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1540 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1542 echo "$as_me:$LINENO: checking whether ln works" >&5
1543 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1544 if test "${acx_cv_prog_LN+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 rm -f conftestdata_t
1548 echo >conftestdata_f
1549 if ln conftestdata_f conftestdata_t
2>/dev
/null
1555 rm -f conftestdata_f conftestdata_t
1558 if test $acx_cv_prog_LN = no
; then
1560 echo "$as_me:$LINENO: result: no, using $LN" >&5
1561 echo "${ECHO_T}no, using $LN" >&6
1563 LN
="$acx_cv_prog_LN"
1564 echo "$as_me:$LINENO: result: yes" >&5
1565 echo "${ECHO_T}yes" >&6
1568 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1569 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1571 if test "$LN_S" = "ln -s"; then
1572 echo "$as_me:$LINENO: result: yes" >&5
1573 echo "${ECHO_T}yes" >&6
1575 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1576 echo "${ECHO_T}no, using $LN_S" >&6
1580 ### we might need to use some other shell than /bin/sh for running subshells
1581 ### If we are on Windows, search for the shell. This will permit people
1582 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1583 ### without also having to set CONFIG_SHELL. This code will work when
1584 ### using bash, which sets OSTYPE.
1587 if test x
${CONFIG_SHELL} = x
; then
1588 if test ! -f /bin
/sh
; then
1589 if test x
${SHELL} != x
&& test -f ${SHELL} ; then
1590 CONFIG_SHELL
=${SHELL}
1593 for prog
in sh sh.exe bash bash.exe
; do
1594 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1595 for dir
in $PATH; do
1596 test -z "$dir" && dir
=.
1597 if test -f $dir/$prog; then
1598 CONFIG_SHELL
=$dir/$prog
1604 test -n "${CONFIG_SHELL}" && break
1612 config_shell
=${CONFIG_SHELL-/bin/sh}
1615 # if PWD already has a value, it is probably wrong.
1616 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
1618 # Export original configure arguments for use by sub-configures. These
1619 # will be expanded by make, so quote '$'.
1621 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
1624 TOPLEVEL_CONFIGURE_ARGUMENTS
=`cat conftestsed.out`
1625 rm -f conftestsed.out
1628 moveifchange
=${srcdir}/move-if-change
1630 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
1632 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
1634 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1635 INSTALL
="${srcpwd}/install-sh -c"
1638 # Set srcdir to "." if that's what it is.
1639 # This is important for multilib support.
1641 if test "${pwd}" = "${srcpwd}" ; then
1649 ### To add a new directory to the tree, first choose whether it is a target
1650 ### or a host dependent tool. Then put it into the appropriate list
1651 ### (library or tools, host or target), doing a dependency sort.
1653 # Subdirs will be configured in the order listed in build_configdirs,
1654 # configdirs, or target_configdirs; see the serialization section below.
1656 # Dependency sorting is only needed when *configuration* must be done in
1657 # a particular order. In all cases a dependency should be specified in
1658 # the Makefile, whether or not it's implicitly specified here.
1660 # Double entries in build_configdirs, configdirs, or target_configdirs may
1661 # cause circular dependencies and break everything horribly.
1663 # these library is used by various programs built for the build
1666 build_libs
="build-libiberty"
1668 # these tools are built for the build environment
1669 build_tools
="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1671 # these libraries are used by various programs built for the host environment
1673 host_libs
="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
1675 # these tools are built for the host environment
1676 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1677 # know that we are building the simulator.
1678 # binutils, gas and ld appear in that order because it makes sense to run
1679 # "make check" in that particular order.
1680 host_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"
1682 # libgcj represents the runtime libraries only used by gcj.
1683 libgcj
="target-libffi \
1688 # these libraries are built for the target environment, and are built after
1689 # the host libraries and the host tools (which may be a cross compiler)
1691 target_libraries
="target-libgcc \
1695 target-libstdc++-v3 \
1698 target-libgfortran \
1705 # these tools are built using the target libraries, and are intended to
1706 # run only in the target environment
1708 # note: any program that *uses* libraries that are in the "target_libraries"
1709 # list belongs in this list. those programs are also very likely
1710 # candidates for the "native_only" list which follows
1712 target_tools
="target-examples target-groff target-gperf target-rda"
1714 ################################################################################
1716 ## All tools belong in one of the four categories, and are assigned above
1717 ## We assign ${configdirs} this way to remove all embedded newlines. This
1718 ## is important because configure will choke if they ever get through.
1719 ## ${configdirs} is directories we build using the host tools.
1720 ## ${target_configdirs} is directories we build using the target tools.
1721 configdirs
=`echo ${host_libs} ${host_tools}`
1722 target_configdirs
=`echo ${target_libraries} ${target_tools}`
1723 build_configdirs
=`echo ${build_libs} ${build_tools}`
1725 ################################################################################
1727 srcname
="gnu development package"
1729 # This gets set non-empty for some net releases of packages.
1732 # Define is_cross_compiler to save on calls to 'test'.
1734 if test x
"${host}" = x
"${target}" ; then
1735 is_cross_compiler
=no
1737 is_cross_compiler
=yes
1740 # Find the build and target subdir names.
1742 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1743 # have matching libraries, they should use host libraries: Makefile.tpl
1744 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1745 # However, they still use the build modules, because the corresponding
1746 # host modules (e.g. bison) are only built for the host when bootstrap
1748 # - build_subdir is where we find build modules, and never changes.
1749 # - build_libsubdir is where we find build libraries, and can be overridden.
1751 # Prefix 'build-' so this never conflicts with target_subdir.
1752 build_subdir
="build-${build_noncanonical}"
1754 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1755 if test "${with_build_libsubdir+set}" = set; then
1756 withval
="$with_build_libsubdir"
1757 build_libsubdir
="$withval"
1759 build_libsubdir
="$build_subdir"
1761 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1762 if ( test $srcdir = .
&& test -d gcc
) \
1763 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
1764 host_subdir
="host-${host_noncanonical}"
1769 target_subdir
=${target_noncanonical}
1772 # Skipdirs are removed silently.
1774 # Noconfigdirs are removed loudly.
1778 # Make sure we don't let GNU ld be added if we didn't want it.
1779 if test x
$with_gnu_ld = xno
; then
1781 noconfigdirs
="$noconfigdirs ld"
1785 # Make sure we don't let GNU as be added if we didn't want it.
1786 if test x
$with_gnu_as = xno
; then
1788 noconfigdirs
="$noconfigdirs gas"
1791 # some tools are so dependent upon X11 that if we're not building with X,
1792 # it's not even worth trying to configure, much less build, that tool.
1795 yes |
"") ;; # the default value for this tree is that X11 is available
1797 skipdirs
="${skipdirs} tk itcl libgui"
1798 # We won't be able to build gdbtk without X.
1801 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1804 # Some tools are only suitable for building in a "native" situation.
1805 # Remove these if host!=target.
1806 native_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"
1808 # Similarly, some are only suitable for cross toolchains.
1809 # Remove these if host=target.
1810 cross_only
="target-libgloss target-newlib target-opcodes"
1812 case $is_cross_compiler in
1813 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
1814 yes) skipdirs
="${skipdirs} ${native_only}" ;;
1817 # If both --with-headers and --with-libs are specified, default to
1819 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
1820 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
1821 if test x
"${with_newlib}" = x
; then
1826 # Recognize --with-newlib/--without-newlib.
1827 case ${with_newlib} in
1828 no
) skipdirs
="${skipdirs} target-newlib" ;;
1829 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1832 # Configure extra directories which are host specific
1836 configdirs
="$configdirs libtermcap" ;;
1839 # A target can indicate whether a language isn't supported for some reason.
1840 # Only spaces may be used in this macro; not newlines or tabs.
1841 unsupported_languages
=
1843 # Remove more programs from consideration, based on the host or
1844 # target this usually means that a port of the program doesn't
1849 noconfigdirs
="$noconfigdirs byacc"
1851 i
[3456789]86-*-vsta)
1852 noconfigdirs
="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1854 i
[3456789]86-*-go32* | i
[3456789]86-*-msdosdjgpp*)
1855 noconfigdirs
="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1858 noconfigdirs
="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1860 i
[3456789]86-*-mingw32*)
1861 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1862 noconfigdirs
="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1864 i
[3456789]86-*-beos*)
1865 noconfigdirs
="$noconfigdirs tk itcl libgui gdb"
1868 noconfigdirs
="$noconfigdirs autoconf automake send-pr rcs guile perl"
1871 noconfigdirs
="$noconfigdirs rcs"
1874 noconfigdirs
="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1877 noconfigdirs
="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1882 # Check whether --enable-libada or --disable-libada was given.
1883 if test "${enable_libada+set}" = set; then
1884 enableval
="$enable_libada"
1885 ENABLE_LIBADA
=$enableval
1889 if test "${ENABLE_LIBADA}" != "yes" ; then
1890 noconfigdirs
="$noconfigdirs gnattools"
1893 # Check whether --enable-libssp or --disable-libssp was given.
1894 if test "${enable_libssp+set}" = set; then
1895 enableval
="$enable_libssp"
1896 ENABLE_LIBSSP
=$enableval
1901 # Save it here so that, even in case of --enable-libgcj, if the Java
1902 # front-end isn't enabled, we still get libgcj disabled.
1903 libgcj_saved
=$libgcj
1904 case $enable_libgcj in
1906 # If we reset it here, it won't get added to noconfigdirs in the
1907 # target-specific build rules, so it will be forcibly enabled
1908 # (unless the Java language itself isn't enabled).
1912 # Make sure we get it printed in the list of not supported target libs.
1913 noconfigdirs
="$noconfigdirs ${libgcj}"
1918 # Disable libmudflap on some systems.
1919 if test x
$enable_libmudflap = x
; then
1921 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1922 # Enable libmudflap by default in GNU and friends.
1925 # Enable libmudflap by default in FreeBSD.
1928 # Disable it by default everywhere else.
1929 noconfigdirs
="$noconfigdirs target-libmudflap"
1934 # Disable libgomp on non POSIX hosted systems.
1935 if test x
$enable_libgomp = x
; then
1936 # Enable libgomp by default on hosted POSIX systems.
1938 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1940 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd*)
1942 *-*-solaris2* |
*-*-sysv4* |
*-*-irix6* |
*-*-osf* |
*-*-hpux11*)
1944 *-*-darwin* |
*-*-aix*)
1947 noconfigdirs
="$noconfigdirs target-libgomp"
1955 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1957 powerpc-
*-darwin* | i
[3456789]86-*-darwin*)
1958 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1959 noconfigdirs
="$noconfigdirs sim target-rda"
1962 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
1963 noconfigdirs
="$noconfigdirs sim target-rda"
1964 noconfigdirs
="$noconfigdirs ${libgcj}"
1966 *-*-freebsd[12] |
*-*-freebsd[12].
* |
*-*-freebsd*aout
*)
1967 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1970 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1971 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
1972 && test -f /usr
/local
/include
/gmp.h
; then
1976 # Skip some stuff that's unsupported on some FreeBSD configurations.
1981 noconfigdirs
="$noconfigdirs ${libgcj}"
1986 # Remove unsupported stuff on all kaOS configurations.
1987 skipdirs
="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1988 skipdirs
="$skipdirs target-libobjc target-examples target-groff target-gperf"
1989 skipdirs
="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1990 noconfigdirs
="$noconfigdirs target-libgloss"
1993 # Skip some stuff on all NetBSD configurations.
1994 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss"
1996 # Skip some stuff that's unsupported on some NetBSD configurations.
1998 i
*86-*-netbsdelf*) ;;
1999 arm
*-*-netbsdelf*) ;;
2001 noconfigdirs
="$noconfigdirs ${libgcj}"
2006 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2009 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
2011 # The tpf target doesn't support gdb yet.
2013 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2016 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2019 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2022 # ld works, but does not support shared libraries.
2023 # newlib is not 64 bit ready. I'm not sure about fileutils.
2024 # gas doesn't generate exception information.
2025 noconfigdirs
="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2028 noconfigdirs
="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2031 # newlib is not 64 bit ready
2032 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
2035 # newlib is not 64 bit ready
2036 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2039 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2042 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2044 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
2045 noconfigdirs
="$noconfigdirs ${libgcj}"
2046 noconfigdirs
="$noconfigdirs target-examples"
2047 noconfigdirs
="$noconfigdirs target-libiberty texinfo send-pr"
2048 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
2049 noconfigdirs
="$noconfigdirs expect dejagnu"
2050 # the C++ libraries don't build on top of CE's C libraries
2051 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
2052 noconfigdirs
="$noconfigdirs target-newlib"
2054 *-*-cygwin*) ;; # keep gdb and readline
2055 *) noconfigdirs
="$noconfigdirs gdb readline"
2060 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
2064 arm-
*-coff | strongarm-
*-coff | xscale-
*-coff)
2065 noconfigdirs
="$noconfigdirs ${libgcj}"
2067 arm-
*-elf* | strongarm-
*-elf* | xscale-
*-elf* | arm
*-*-eabi* )
2068 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
2070 arm
*-*-linux-gnueabi)
2071 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
2072 noconfigdirs
="$noconfigdirs target-libjava target-libobjc"
2075 noconfigdirs
="$noconfigdirs ${libgcj} target-libiberty"
2078 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
2081 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
2084 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
2087 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
2090 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
2093 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2096 noconfigdirs
="$noconfigdirs gdb"
2097 if test x
${is_cross_compiler} != xno
; then
2098 target_configdirs
="${target_configdirs} target-bsp target-cygmon"
2101 c4x-
*-* | tic4x-
*-*)
2102 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2104 c54x
*-*-* | tic54x-
*-*)
2105 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2107 cris-
*-* | crisv32-
*-*)
2108 unsupported_languages
="$unsupported_languages java"
2111 unsupported_languages
="$unsupported_languages fortran"
2112 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc";;
2114 unsupported_languages
="$unsupported_languages fortran"
2115 noconfigdirs
="$noconfigdirs target-boehm-gc";;
2117 noconfigdirs
="$noconfigdirs target-newlib target-libgloss";;
2119 unsupported_languages
="$unsupported_languages fortran"
2120 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2124 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2127 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2130 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
2133 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
2136 noconfigdirs
="$noconfigdirs ${libgcj}"
2139 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
2142 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2144 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
2146 hppa
*64*-*-linux* | parisc
*64*-*-linux*)
2147 # In this case, it's because the hppa64-linux target is for
2148 # the kernel only at this point and has no libc, and thus no
2149 # headers, crt*.o, etc., all of which are needed by these.
2150 noconfigdirs
="$noconfigdirs target-zlib"
2152 parisc
*-*-linux* | hppa
*-*-linux*)
2156 hppa
*-*-openbsd* | \
2158 noconfigdirs
="$noconfigdirs ${libgcj}"
2161 noconfigdirs
="$noconfigdirs ld shellutils"
2164 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2165 # build on HP-UX 10.20.
2166 noconfigdirs
="$noconfigdirs ld shellutils ${libgcj}"
2169 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
2172 # No gdb support yet.
2173 noconfigdirs
="$noconfigdirs readline mmalloc libgui itcl gdb"
2176 # No gdb or ld support yet.
2177 noconfigdirs
="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2181 i
[3456789]86-*-coff | i
[3456789]86-*-elf)
2182 noconfigdirs
="$noconfigdirs ${libgcj}"
2184 i
[3456789]86-*-linux*)
2185 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2186 # not build java stuff by default.
2189 noconfigdirs
="$noconfigdirs ${libgcj}";;
2192 # This section makes it possible to build newlib natively on linux.
2193 # If we are using a cross compiler then don't configure newlib.
2194 if test x
${is_cross_compiler} != xno
; then
2195 noconfigdirs
="$noconfigdirs target-newlib"
2197 noconfigdirs
="$noconfigdirs target-libgloss"
2198 # If we are not using a cross compiler, do configure newlib.
2199 # Note however, that newlib will only be configured in this situation
2200 # if the --with-newlib option has been given, because otherwise
2201 # 'target-newlib' will appear in skipdirs.
2203 i
[3456789]86-*-mingw32*)
2204 target_configdirs
="$target_configdirs target-winsup"
2205 noconfigdirs
="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2208 target_configdirs
="$target_configdirs target-winsup"
2209 noconfigdirs
="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2212 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
2213 noconfigdirs
="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2214 # always build newlib if winsup directory is present.
2215 if test -d "$srcdir/winsup/cygwin"; then
2216 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2217 elif test -d "$srcdir/newlib"; then
2218 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2221 i
[3456789]86-moss-msdos | i
[3456789]86-*-moss* | \
2222 i
[3456789]86-*-uwin* | i
[3456789]86-*-interix* )
2225 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2227 i
[3456789]86-*-sco3.2v5
*)
2228 # The linker does not yet know about weak symbols in COFF,
2229 # and is not configured to handle mixed ELF and COFF.
2230 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
2232 i
[3456789]86-*-sco*)
2233 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
2235 i
[3456789]86-*-solaris2*)
2236 noconfigdirs
="$noconfigdirs target-libgloss"
2238 i
[3456789]86-*-sysv4*)
2239 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
2241 i
[3456789]86-*-beos*)
2242 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2244 i
[3456789]86-*-rdos*)
2245 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
2248 noconfigdirs
="$noconfigdirs ${libgcj}"
2250 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
2251 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2254 noconfigdirs
="$noconfigdirs ${libgcj}"
2257 noconfigdirs
="$noconfigdirs ${libgcj}"
2260 # The EPOC C++ environment does not support exceptions or rtti,
2261 # and so building libstdc++-v3 tends not to always work.
2262 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
2265 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2266 unsupported_languages
="$unsupported_languages fortran java"
2269 noconfigdirs
="$noconfigdirs ${libgcj}"
2272 noconfigdirs
="$noconfigdirs ${libgcj}"
2275 noconfigdirs
="$noconfigdirs sim"
2278 # copied from rs6000-*-* entry
2279 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2281 powerpc
*-*-winnt* | powerpc
*-*-pe* | ppc
*-*-pe)
2282 target_configdirs
="$target_configdirs target-winsup"
2283 noconfigdirs
="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2284 # always build newlib.
2285 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2287 # This is temporary until we can link against shared libraries
2288 powerpcle-
*-solaris*)
2289 noconfigdirs
="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2292 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2295 noconfigdirs
="$noconfigdirs ${libgcj}"
2297 powerpc-
*-eabi* | powerpcle-
*-eabi* | powerpc-
*-rtems* )
2300 noconfigdirs
="$noconfigdirs target-newlib gprof ${libgcj}"
2303 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2306 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
2309 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2312 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
2315 # Linking libjava exceeds command-line length limits on at least
2316 # IRIX 6.2, but not on IRIX 6.5.
2317 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2318 # <oldham@codesourcery.com>
2319 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
2322 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
2325 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2328 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
2331 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
2334 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2338 i
[3456789]86-*-vsta) ;; # don't add gprof back in
2339 i
[3456789]86-*-go32*) ;; # don't add gprof back in
2340 i
[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2341 *) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2343 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
2346 noconfigdirs
="$noconfigdirs ${libgcj}"
2349 noconfigdirs
="$noconfigdirs ${libgcj}"
2352 noconfigdirs
="$noconfigdirs ${libgcj}"
2355 noconfigdirs
="$noconfigdirs ${libgcj}"
2356 if test x
${is_cross_compiler} != xno
; then
2357 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
2362 sparc-
*-solaris2.
[0-6] | sparc-
*-solaris2.
[0-6].
*)
2363 noconfigdirs
="$noconfigdirs ${libgcj}"
2365 sparc-
*-solaris* | sparc64-
*-solaris* | sparcv9-
*-solaris*)
2368 skipdirs
="target-libssp"
2371 noconfigdirs
="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2374 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
2377 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
2380 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
2383 noconfigdirs
="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2386 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2389 noconfigdirs
="$noconfigdirs ${libgcj}"
2392 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2394 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
2395 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
2398 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2401 noconfigdirs
="$noconfigdirs ${libgcj}"
2405 # If we aren't building newlib, then don't build libgloss, since libgloss
2406 # depends upon some newlib header files.
2407 case "${noconfigdirs}" in
2408 *target-libgloss
*) ;;
2409 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
2412 # Work in distributions that contain no compiler tools, like Autoconf.
2414 host_makefile_frag
=/dev
/null
2415 if test -d ${srcdir}/config
; then
2418 # Avoid "too much defining" errors from HPUX compiler.
2419 tentative_cc
="cc -Wp,-H256000"
2420 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2421 # If it's HP/UX ar, this should be harmless.
2425 tentative_cc
="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2428 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2429 # chokes on bfd, the compiler won't let you assign integers to enums, and
2430 # other problems. Defining CC to gcc is a questionable way to say "don't use
2431 # the apollo compiler" (the preferred version of GCC could be called cc,
2432 # or whatever), but I'm not sure leaving CC as cc is any better...
2433 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2434 # Used to have BISON=yacc.
2438 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
2441 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2442 tentative_cc
="cc -Xa"
2443 host_makefile_frag
="config/mh-cxux"
2445 m88k-motorola-sysv
*)
2448 tentative_cc
="cc -Wf,-XNg1000"
2449 host_makefile_frag
="config/mh-decstation"
2452 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2453 tentative_cc
="cc -ZXNd=5000 -ZXNg=1000"
2454 host_makefile_frag
="config/mh-necv4"
2457 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2458 # environment. Also bump switch table size so that cp-parse will
2459 # compile. Bump string length limit so linker builds.
2460 tentative_cc
="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2463 host_makefile_frag
="config/mh-sysv4"
2466 # This is for a MIPS running RISC/os 4.52C.
2468 # This is needed for GDB, but needs to be in the top-level make because
2469 # if a library is compiled with the bsd headers and gets linked with the
2470 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2471 # a different size).
2472 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2473 # known except to select the sysv environment. Could we use /proc instead?
2474 # These "sysv environments" and "bsd environments" often end up being a pain.
2476 # This is not part of CFLAGS because perhaps not all C compilers have this
2478 tentative_cc
="cc -systype sysv"
2483 i
[3456789]86-*-sysv5*)
2484 host_makefile_frag
="config/mh-sysv5"
2486 i
[3456789]86-*-dgux*)
2487 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
2488 host_makefile_frag
="config/mh-dgux386"
2490 i
[3456789]86-ncr-sysv4.3
*)
2491 # The MetaWare compiler will generate a copyright message unless you
2492 # turn it off by adding the -Hnocopyr flag.
2493 tentative_cc
="cc -Hnocopyr"
2495 i
[3456789]86-ncr-sysv4*)
2496 # for an NCR 3000 (i486/SVR4) system.
2497 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2498 # This compiler not only emits obnoxious copyright messages every time
2499 # you run it, but it chokes and dies on a whole bunch of GNU source
2500 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2501 tentative_cc
="/usr/ccs/ATT/cc"
2502 host_makefile_frag
="config/mh-ncr3000"
2504 i
[3456789]86-*-sco3.2v5
*)
2506 i
[3456789]86-*-sco*)
2507 # The native C compiler botches some simple uses of const. Unfortunately,
2508 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2509 tentative_cc
="cc -Dconst="
2510 host_makefile_frag
="config/mh-sco"
2512 i
[3456789]86-*-udk*)
2513 host_makefile_frag
="config/mh-sysv5"
2515 i
[3456789]86-*-solaris2*)
2516 host_makefile_frag
="config/mh-sysv4"
2518 i
[3456789]86-*-msdosdjgpp*)
2519 host_makefile_frag
="config/mh-djgpp"
2522 host_makefile_frag
="config/mh-cygwin"
2529 host_makefile_frag
="config/mh-interix"
2532 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2536 host_makefile_frag
="config/mh-solaris"
2539 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2540 # without overflowing the jump tables (-J says to use a 32 bit table)
2541 tentative_cc
="cc -J"
2544 tentative_cc
="cc -Wp,-H256000"
2547 tentative_cc
="cc -Wp,-H256000"
2550 # /bin/cc is less than useful for our purposes. Always use GCC
2551 tentative_cc
="/usr/cygnus/progressive/bin/gcc"
2552 host_makefile_frag
="config/mh-lynxrs6k"
2555 host_makefile_frag
="config/mh-ppc-darwin"
2558 host_makefile_frag
="config/mh-ppc-aix"
2561 host_makefile_frag
="config/mh-ppc-aix"
2564 # /bin/cc is less than useful for our purposes. Always use GCC
2565 tentative_cc
="/bin/gcc"
2568 host_makefile_frag
="config/mh-sysv4"
2570 # This is placed last to prevent interfering with the cases above.
2572 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2573 host_makefile_frag
="config/mh-x86omitfp"
2578 # If we aren't going to be using gcc, see if we can extract a definition
2579 # of CC from the fragment.
2580 # Actually, use the 'pre-extracted' version above.
2581 if test -z "${CC}" && test "${build}" = "${host}" ; then
2582 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
2584 for dir
in $PATH; do
2585 test -z "$dir" && dir
=.
2586 if test -f $dir/gcc
; then
2592 if test -z "${found}" && test -n "${tentative_cc}" ; then
2597 if test "${build}" != "${host}" ; then
2598 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
2600 CC_FOR_BUILD
="\$(CC)"
2604 ac_cpp
='$CPP $CPPFLAGS'
2605 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2606 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2607 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2608 if test -n "$ac_tool_prefix"; then
2609 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2610 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2611 echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2613 if test "${ac_cv_prog_CC+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 if test -n "$CC"; then
2617 ac_cv_prog_CC
="$CC" # Let the user override the test.
2619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2623 test -z "$as_dir" && as_dir
=.
2624 for ac_exec_ext
in '' $ac_executable_extensions; do
2625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 if test -n "$CC"; then
2637 echo "$as_me:$LINENO: result: $CC" >&5
2638 echo "${ECHO_T}$CC" >&6
2640 echo "$as_me:$LINENO: result: no" >&5
2641 echo "${ECHO_T}no" >&6
2645 if test -z "$ac_cv_prog_CC"; then
2647 # Extract the first word of "gcc", so it can be a program name with args.
2648 set dummy gcc
; ac_word
=$2
2649 echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2654 if test -n "$ac_ct_CC"; then
2655 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2661 test -z "$as_dir" && as_dir
=.
2662 for ac_exec_ext
in '' $ac_executable_extensions; do
2663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2664 ac_cv_prog_ac_ct_CC
="gcc"
2665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2674 if test -n "$ac_ct_CC"; then
2675 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2676 echo "${ECHO_T}$ac_ct_CC" >&6
2678 echo "$as_me:$LINENO: result: no" >&5
2679 echo "${ECHO_T}no" >&6
2687 if test -z "$CC"; then
2688 if test -n "$ac_tool_prefix"; then
2689 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2690 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2691 echo "$as_me:$LINENO: checking for $ac_word" >&5
2692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2693 if test "${ac_cv_prog_CC+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 if test -n "$CC"; then
2697 ac_cv_prog_CC
="$CC" # Let the user override the test.
2699 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2703 test -z "$as_dir" && as_dir
=.
2704 for ac_exec_ext
in '' $ac_executable_extensions; do
2705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2706 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 if test -n "$CC"; then
2717 echo "$as_me:$LINENO: result: $CC" >&5
2718 echo "${ECHO_T}$CC" >&6
2720 echo "$as_me:$LINENO: result: no" >&5
2721 echo "${ECHO_T}no" >&6
2725 if test -z "$ac_cv_prog_CC"; then
2727 # Extract the first word of "cc", so it can be a program name with args.
2728 set dummy cc
; ac_word
=$2
2729 echo "$as_me:$LINENO: checking for $ac_word" >&5
2730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2731 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2734 if test -n "$ac_ct_CC"; then
2735 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2737 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2741 test -z "$as_dir" && as_dir
=.
2742 for ac_exec_ext
in '' $ac_executable_extensions; do
2743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2744 ac_cv_prog_ac_ct_CC
="cc"
2745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2754 if test -n "$ac_ct_CC"; then
2755 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2756 echo "${ECHO_T}$ac_ct_CC" >&6
2758 echo "$as_me:$LINENO: result: no" >&5
2759 echo "${ECHO_T}no" >&6
2768 if test -z "$CC"; then
2769 # Extract the first word of "cc", so it can be a program name with args.
2770 set dummy cc
; ac_word
=$2
2771 echo "$as_me:$LINENO: checking for $ac_word" >&5
2772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2773 if test "${ac_cv_prog_CC+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 if test -n "$CC"; then
2777 ac_cv_prog_CC
="$CC" # Let the user override the test.
2780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2784 test -z "$as_dir" && as_dir
=.
2785 for ac_exec_ext
in '' $ac_executable_extensions; do
2786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2788 ac_prog_rejected
=yes
2792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 if test $ac_prog_rejected = yes; then
2799 # We found a bogon in the path, so make sure we never use it.
2800 set dummy
$ac_cv_prog_CC
2802 if test $# != 0; then
2803 # We chose a different compiler from the bogus one.
2804 # However, it has the same basename, so the bogon will be chosen
2805 # first if we set CC to just the basename; use the full file name.
2807 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2813 if test -n "$CC"; then
2814 echo "$as_me:$LINENO: result: $CC" >&5
2815 echo "${ECHO_T}$CC" >&6
2817 echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6
2822 if test -z "$CC"; then
2823 if test -n "$ac_tool_prefix"; then
2826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2827 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2828 echo "$as_me:$LINENO: checking for $ac_word" >&5
2829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2830 if test "${ac_cv_prog_CC+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 if test -n "$CC"; then
2834 ac_cv_prog_CC
="$CC" # Let the user override the test.
2836 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2840 test -z "$as_dir" && as_dir
=.
2841 for ac_exec_ext
in '' $ac_executable_extensions; do
2842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2843 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 if test -n "$CC"; then
2854 echo "$as_me:$LINENO: result: $CC" >&5
2855 echo "${ECHO_T}$CC" >&6
2857 echo "$as_me:$LINENO: result: no" >&5
2858 echo "${ECHO_T}no" >&6
2861 test -n "$CC" && break
2864 if test -z "$CC"; then
2868 # Extract the first word of "$ac_prog", so it can be a program name with args.
2869 set dummy
$ac_prog; ac_word
=$2
2870 echo "$as_me:$LINENO: checking for $ac_word" >&5
2871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 if test -n "$ac_ct_CC"; then
2876 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2878 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2882 test -z "$as_dir" && as_dir
=.
2883 for ac_exec_ext
in '' $ac_executable_extensions; do
2884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885 ac_cv_prog_ac_ct_CC
="$ac_prog"
2886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2895 if test -n "$ac_ct_CC"; then
2896 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2897 echo "${ECHO_T}$ac_ct_CC" >&6
2899 echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6
2903 test -n "$ac_ct_CC" && break
2912 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2913 See \`config.log' for more details." >&5
2914 echo "$as_me: error: no acceptable C compiler found in \$PATH
2915 See \`config.log' for more details." >&2;}
2916 { (exit 1); exit 1; }; }
2918 # Provide some information about the compiler.
2919 echo "$as_me:$LINENO:" \
2920 "checking for C compiler version" >&5
2921 ac_compiler
=`set X $ac_compile; echo $2`
2922 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2923 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }
2927 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2928 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }
2932 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2933 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }
2938 cat >conftest.
$ac_ext <<_ACEOF
2941 cat confdefs.h
>>conftest.
$ac_ext
2942 cat >>conftest.
$ac_ext <<_ACEOF
2943 /* end confdefs.h. */
2953 ac_clean_files_save
=$ac_clean_files
2954 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2955 # Try to create an executable without -o first, disregard a.out.
2956 # It will help us diagnose broken compilers, and finding out an intuition
2958 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2959 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2960 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2961 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2962 (eval $ac_link_default) 2>&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; then
2966 # Find the output, starting from the most likely. This scheme is
2967 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2970 # Be careful to initialize this variable, since it used to be cached.
2971 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2973 # b.out is created by i960 compilers.
2974 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2976 test -f "$ac_file" ||
continue
2978 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2981 # This is the source file.
2984 # We found the default executable, but exeext='' is most
2988 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2989 # FIXME: I believe we export ac_cv_exeext for Libtool,
2990 # but it would be cool to find out if it's true. Does anybody
2991 # maintain Libtool? --akim.
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.
$ac_ext >&5
3002 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3003 See \`config.log' for more details." >&5
3004 echo "$as_me: error: C compiler cannot create executables
3005 See \`config.log' for more details." >&2;}
3006 { (exit 77); exit 77; }; }
3009 ac_exeext
=$ac_cv_exeext
3010 echo "$as_me:$LINENO: result: $ac_file" >&5
3011 echo "${ECHO_T}$ac_file" >&6
3013 # Check the compiler produces executables we can run. If not, either
3014 # the compiler is broken, or we cross compile.
3015 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3016 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3017 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3018 # If not cross compiling, check that we can run a simple program.
3019 if test "$cross_compiling" != yes; then
3020 if { ac_try
='./$ac_file'
3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; }; then
3028 if test "$cross_compiling" = maybe
; then
3031 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3032 If you meant to cross compile, use \`--host'.
3033 See \`config.log' for more details." >&5
3034 echo "$as_me: error: cannot run C compiled programs.
3035 If you meant to cross compile, use \`--host'.
3036 See \`config.log' for more details." >&2;}
3037 { (exit 1); exit 1; }; }
3041 echo "$as_me:$LINENO: result: yes" >&5
3042 echo "${ECHO_T}yes" >&6
3044 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3045 ac_clean_files
=$ac_clean_files_save
3046 # Check the compiler produces executables we can run. If not, either
3047 # the compiler is broken, or we cross compile.
3048 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3049 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3050 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3051 echo "${ECHO_T}$cross_compiling" >&6
3053 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3054 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3056 (eval $ac_link) 2>&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; then
3060 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3061 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3062 # work properly (i.e., refer to `conftest.exe'), while it won't with
3064 for ac_file
in conftest.exe conftest conftest.
*; do
3065 test -f "$ac_file" ||
continue
3067 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3068 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3075 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3076 See \`config.log' for more details." >&5
3077 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3078 See \`config.log' for more details." >&2;}
3079 { (exit 1); exit 1; }; }
3082 rm -f conftest
$ac_cv_exeext
3083 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3084 echo "${ECHO_T}$ac_cv_exeext" >&6
3086 rm -f conftest.
$ac_ext
3087 EXEEXT
=$ac_cv_exeext
3089 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3090 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3091 if test "${ac_cv_objext+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3094 cat >conftest.
$ac_ext <<_ACEOF
3097 cat confdefs.h
>>conftest.
$ac_ext
3098 cat >>conftest.
$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3109 rm -f conftest.o conftest.obj
3110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3111 (eval $ac_compile) 2>&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; then
3115 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3117 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3118 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3123 echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.
$ac_ext >&5
3126 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3127 See \`config.log' for more details." >&5
3128 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3129 See \`config.log' for more details." >&2;}
3130 { (exit 1); exit 1; }; }
3133 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3135 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3136 echo "${ECHO_T}$ac_cv_objext" >&6
3137 OBJEXT
=$ac_cv_objext
3139 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3140 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3141 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3142 echo $ECHO_N "(cached) $ECHO_C" >&6
3144 cat >conftest.
$ac_ext <<_ACEOF
3147 cat confdefs.h
>>conftest.
$ac_ext
3148 cat >>conftest.
$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3162 rm -f conftest.
$ac_objext
3163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3164 (eval $ac_compile) 2>conftest.er1
3166 grep -v '^ *+' conftest.er1
>conftest.err
3168 cat conftest.err
>&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } &&
3171 { ac_try
='test -z "$ac_c_werror_flag"
3172 || test ! -s conftest.err'
3173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; } &&
3178 { ac_try
='test -s conftest.$ac_objext'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.
$ac_ext >&5
3191 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3192 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3195 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3196 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3197 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3198 ac_test_CFLAGS
=${CFLAGS+set}
3199 ac_save_CFLAGS
=$CFLAGS
3201 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3202 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3203 if test "${ac_cv_prog_cc_g+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 cat >conftest.
$ac_ext <<_ACEOF
3209 cat confdefs.h
>>conftest.
$ac_ext
3210 cat >>conftest.
$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3221 rm -f conftest.
$ac_objext
3222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3223 (eval $ac_compile) 2>conftest.er1
3225 grep -v '^ *+' conftest.er1
>conftest.err
3227 cat conftest.err
>&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } &&
3230 { ac_try
='test -z "$ac_c_werror_flag"
3231 || test ! -s conftest.err'
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; } &&
3237 { ac_try
='test -s conftest.$ac_objext'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; }; then
3245 echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.
$ac_ext >&5
3250 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3252 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3253 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3254 if test "$ac_test_CFLAGS" = set; then
3255 CFLAGS
=$ac_save_CFLAGS
3256 elif test $ac_cv_prog_cc_g = yes; then
3257 if test "$GCC" = yes; then
3263 if test "$GCC" = yes; then
3269 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3270 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3271 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 ac_cv_prog_cc_stdc
=no
3276 cat >conftest.
$ac_ext <<_ACEOF
3279 cat confdefs.h
>>conftest.
$ac_ext
3280 cat >>conftest.
$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3284 #include <sys/types.h>
3285 #include <sys/stat.h>
3286 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3287 struct buf { int x; };
3288 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3289 static char *e (p, i)
3295 static char *f (char * (*g) (char **, int), char **p, ...)
3300 s = g (p, va_arg (v,int));
3305 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3306 function prototypes and stuff, but not '\xHH' hex character constants.
3307 These don't provoke an error unfortunately, instead are silently treated
3308 as 'x'. The following induces an error, until -std1 is added to get
3309 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3310 array size at least. It's necessary to write '\x00'==0 to get something
3311 that's true only with -std1. */
3312 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3314 int test (int i, double x);
3315 struct s1 {int (*f) (int a);};
3316 struct s2 {int (*f) (double a);};
3317 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3323 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3328 # Don't try gcc -ansi; that turns off useful extensions and
3329 # breaks some systems' header files.
3330 # AIX -qlanglvl=ansi
3331 # Ultrix and OSF/1 -std1
3332 # HP-UX 10.20 and later -Ae
3333 # HP-UX older versions -Aa -D_HPUX_SOURCE
3334 # SVR4 -Xc -D__EXTENSIONS__
3335 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3337 CC
="$ac_save_CC $ac_arg"
3338 rm -f conftest.
$ac_objext
3339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3340 (eval $ac_compile) 2>conftest.er1
3342 grep -v '^ *+' conftest.er1
>conftest.err
3344 cat conftest.err
>&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try
='test -z "$ac_c_werror_flag"
3348 || test ! -s conftest.err'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; } &&
3354 { ac_try
='test -s conftest.$ac_objext'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3360 ac_cv_prog_cc_stdc
=$ac_arg
3363 echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.
$ac_ext >&5
3367 rm -f conftest.err conftest.
$ac_objext
3369 rm -f conftest.
$ac_ext conftest.
$ac_objext
3374 case "x$ac_cv_prog_cc_stdc" in
3376 echo "$as_me:$LINENO: result: none needed" >&5
3377 echo "${ECHO_T}none needed" >&6 ;;
3379 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3380 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3381 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3384 # Some people use a C++ compiler to compile C. Since we use `exit',
3385 # in C++ we need to declare it. In case someone uses the same compiler
3386 # for both compiling C and C++ we need to have the C++ compiler decide
3387 # the declaration of exit, since it's the most demanding environment.
3388 cat >conftest.
$ac_ext <<_ACEOF
3393 rm -f conftest.
$ac_objext
3394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3395 (eval $ac_compile) 2>conftest.er1
3397 grep -v '^ *+' conftest.er1
>conftest.err
3399 cat conftest.err
>&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } &&
3402 { ac_try
='test -z "$ac_c_werror_flag"
3403 || test ! -s conftest.err'
3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; } &&
3409 { ac_try
='test -s conftest.$ac_objext'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; }; then
3415 for ac_declaration
in \
3417 'extern "C" void std::exit (int) throw (); using std::exit;' \
3418 'extern "C" void std::exit (int); using std::exit;' \
3419 'extern "C" void exit (int) throw ();' \
3420 'extern "C" void exit (int);' \
3423 cat >conftest.
$ac_ext <<_ACEOF
3426 cat confdefs.h
>>conftest.
$ac_ext
3427 cat >>conftest.
$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3439 rm -f conftest.
$ac_objext
3440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3441 (eval $ac_compile) 2>conftest.er1
3443 grep -v '^ *+' conftest.er1
>conftest.err
3445 cat conftest.err
>&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } &&
3448 { ac_try
='test -z "$ac_c_werror_flag"
3449 || test ! -s conftest.err'
3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; } &&
3455 { ac_try
='test -s conftest.$ac_objext'
3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; }; then
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.
$ac_ext >&5
3468 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3469 cat >conftest.
$ac_ext <<_ACEOF
3472 cat confdefs.h
>>conftest.
$ac_ext
3473 cat >>conftest.
$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3484 rm -f conftest.
$ac_objext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486 (eval $ac_compile) 2>conftest.er1
3488 grep -v '^ *+' conftest.er1
>conftest.err
3490 cat conftest.err
>&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } &&
3493 { ac_try
='test -z "$ac_c_werror_flag"
3494 || test ! -s conftest.err'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; } &&
3500 { ac_try
='test -s conftest.$ac_objext'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; }; then
3508 echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.
$ac_ext >&5
3512 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3515 if test -n "$ac_declaration"; then
3516 echo '#ifdef __cplusplus' >>confdefs.h
3517 echo $ac_declaration >>confdefs.h
3518 echo '#endif' >>confdefs.h
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.
$ac_ext >&5
3526 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3528 ac_cpp
='$CPP $CPPFLAGS'
3529 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3534 ac_cpp
='$CXXCPP $CPPFLAGS'
3535 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3538 if test -n "$ac_tool_prefix"; then
3539 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
3541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3542 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3543 echo "$as_me:$LINENO: checking for $ac_word" >&5
3544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3545 if test "${ac_cv_prog_CXX+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 if test -n "$CXX"; then
3549 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3555 test -z "$as_dir" && as_dir
=.
3556 for ac_exec_ext
in '' $ac_executable_extensions; do
3557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3558 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3568 if test -n "$CXX"; then
3569 echo "$as_me:$LINENO: result: $CXX" >&5
3570 echo "${ECHO_T}$CXX" >&6
3572 echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6
3576 test -n "$CXX" && break
3579 if test -z "$CXX"; then
3581 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
3583 # Extract the first word of "$ac_prog", so it can be a program name with args.
3584 set dummy
$ac_prog; ac_word
=$2
3585 echo "$as_me:$LINENO: checking for $ac_word" >&5
3586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3587 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
3590 if test -n "$ac_ct_CXX"; then
3591 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3597 test -z "$as_dir" && as_dir
=.
3598 for ac_exec_ext
in '' $ac_executable_extensions; do
3599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3600 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3610 if test -n "$ac_ct_CXX"; then
3611 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3612 echo "${ECHO_T}$ac_ct_CXX" >&6
3614 echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3618 test -n "$ac_ct_CXX" && break
3620 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
3626 # Provide some information about the compiler.
3627 echo "$as_me:$LINENO:" \
3628 "checking for C++ compiler version" >&5
3629 ac_compiler
=`set X $ac_compile; echo $2`
3630 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3631 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }
3635 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3636 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }
3640 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3641 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }
3646 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3647 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3648 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 cat >conftest.
$ac_ext <<_ACEOF
3654 cat confdefs.h
>>conftest.
$ac_ext
3655 cat >>conftest.
$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3669 rm -f conftest.
$ac_objext
3670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3671 (eval $ac_compile) 2>conftest.er1
3673 grep -v '^ *+' conftest.er1
>conftest.err
3675 cat conftest.err
>&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } &&
3678 { ac_try
='test -z "$ac_cxx_werror_flag"
3679 || test ! -s conftest.err'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; } &&
3685 { ac_try
='test -s conftest.$ac_objext'
3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; }; then
3693 echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.
$ac_ext >&5
3698 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3699 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3702 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3703 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3704 GXX
=`test $ac_compiler_gnu = yes && echo yes`
3705 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3706 ac_save_CXXFLAGS
=$CXXFLAGS
3708 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3709 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3710 if test "${ac_cv_prog_cxx_g+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 cat >conftest.
$ac_ext <<_ACEOF
3716 cat confdefs.h
>>conftest.
$ac_ext
3717 cat >>conftest.
$ac_ext <<_ACEOF
3718 /* end confdefs.h. */
3728 rm -f conftest.
$ac_objext
3729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3730 (eval $ac_compile) 2>conftest.er1
3732 grep -v '^ *+' conftest.er1
>conftest.err
3734 cat conftest.err
>&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); } &&
3737 { ac_try
='test -z "$ac_cxx_werror_flag"
3738 || test ! -s conftest.err'
3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; } &&
3744 { ac_try
='test -s conftest.$ac_objext'
3745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); }; }; then
3750 ac_cv_prog_cxx_g
=yes
3752 echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.
$ac_ext >&5
3757 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3759 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3760 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3761 if test "$ac_test_CXXFLAGS" = set; then
3762 CXXFLAGS
=$ac_save_CXXFLAGS
3763 elif test $ac_cv_prog_cxx_g = yes; then
3764 if test "$GXX" = yes; then
3770 if test "$GXX" = yes; then
3776 for ac_declaration
in \
3778 'extern "C" void std::exit (int) throw (); using std::exit;' \
3779 'extern "C" void std::exit (int); using std::exit;' \
3780 'extern "C" void exit (int) throw ();' \
3781 'extern "C" void exit (int);' \
3784 cat >conftest.
$ac_ext <<_ACEOF
3787 cat confdefs.h
>>conftest.
$ac_ext
3788 cat >>conftest.
$ac_ext <<_ACEOF
3789 /* end confdefs.h. */
3800 rm -f conftest.
$ac_objext
3801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3802 (eval $ac_compile) 2>conftest.er1
3804 grep -v '^ *+' conftest.er1
>conftest.err
3806 cat conftest.err
>&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } &&
3809 { ac_try
='test -z "$ac_cxx_werror_flag"
3810 || test ! -s conftest.err'
3811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; } &&
3816 { ac_try
='test -s conftest.$ac_objext'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; }; then
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.
$ac_ext >&5
3829 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3830 cat >conftest.
$ac_ext <<_ACEOF
3833 cat confdefs.h
>>conftest.
$ac_ext
3834 cat >>conftest.
$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3845 rm -f conftest.
$ac_objext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3847 (eval $ac_compile) 2>conftest.er1
3849 grep -v '^ *+' conftest.er1
>conftest.err
3851 cat conftest.err
>&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try
='test -z "$ac_cxx_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try
='test -s conftest.$ac_objext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.
$ac_ext >&5
3873 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3876 if test -n "$ac_declaration"; then
3877 echo '#ifdef __cplusplus' >>confdefs.h
3878 echo $ac_declaration >>confdefs.h
3879 echo '#endif' >>confdefs.h
3883 ac_cpp
='$CPP $CPPFLAGS'
3884 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3889 # We must set the default linker to the linker used by gcc for the correct
3890 # operation of libtool. If LD is not defined and we are using gcc, try to
3891 # set the LD default to the ld used by gcc.
3892 if test -z "$LD"; then
3893 if test "$GCC" = yes; then
3896 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
3898 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
3900 case $gcc_prog_ld in
3901 # Accept absolute paths.
3902 [\\/]* |
[A-Za-z
]:[\\/]*)
3903 LD
="$gcc_prog_ld" ;;
3911 if test -n "$ac_tool_prefix"; then
3912 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3913 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
3914 echo "$as_me:$LINENO: checking for $ac_word" >&5
3915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3916 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 if test -n "$GNATBIND"; then
3920 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
3922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3926 test -z "$as_dir" && as_dir
=.
3927 for ac_exec_ext
in '' $ac_executable_extensions; do
3928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
3930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 GNATBIND
=$ac_cv_prog_GNATBIND
3939 if test -n "$GNATBIND"; then
3940 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3941 echo "${ECHO_T}$GNATBIND" >&6
3943 echo "$as_me:$LINENO: result: no" >&5
3944 echo "${ECHO_T}no" >&6
3948 if test -z "$ac_cv_prog_GNATBIND"; then
3949 ac_ct_GNATBIND
=$GNATBIND
3950 # Extract the first word of "gnatbind", so it can be a program name with args.
3951 set dummy gnatbind
; ac_word
=$2
3952 echo "$as_me:$LINENO: checking for $ac_word" >&5
3953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3954 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 if test -n "$ac_ct_GNATBIND"; then
3958 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
3960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3964 test -z "$as_dir" && as_dir
=.
3965 for ac_exec_ext
in '' $ac_executable_extensions; do
3966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3967 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
3968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3974 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND
="no"
3977 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
3978 if test -n "$ac_ct_GNATBIND"; then
3979 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3980 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3982 echo "$as_me:$LINENO: result: no" >&5
3983 echo "${ECHO_T}no" >&6
3986 GNATBIND
=$ac_ct_GNATBIND
3988 GNATBIND
="$ac_cv_prog_GNATBIND"
3991 if test -n "$ac_tool_prefix"; then
3992 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3993 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
3994 echo "$as_me:$LINENO: checking for $ac_word" >&5
3995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3996 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3999 if test -n "$GNATMAKE"; then
4000 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4006 test -z "$as_dir" && as_dir
=.
4007 for ac_exec_ext
in '' $ac_executable_extensions; do
4008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4009 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 GNATMAKE
=$ac_cv_prog_GNATMAKE
4019 if test -n "$GNATMAKE"; then
4020 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4021 echo "${ECHO_T}$GNATMAKE" >&6
4023 echo "$as_me:$LINENO: result: no" >&5
4024 echo "${ECHO_T}no" >&6
4028 if test -z "$ac_cv_prog_GNATMAKE"; then
4029 ac_ct_GNATMAKE
=$GNATMAKE
4030 # Extract the first word of "gnatmake", so it can be a program name with args.
4031 set dummy gnatmake
; ac_word
=$2
4032 echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4034 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 if test -n "$ac_ct_GNATMAKE"; then
4038 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4044 test -z "$as_dir" && as_dir
=.
4045 for ac_exec_ext
in '' $ac_executable_extensions; do
4046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4047 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE
="no"
4057 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4058 if test -n "$ac_ct_GNATMAKE"; then
4059 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4060 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
4062 echo "$as_me:$LINENO: result: no" >&5
4063 echo "${ECHO_T}no" >&6
4066 GNATMAKE
=$ac_ct_GNATMAKE
4068 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4071 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4072 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4073 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 cat >conftest.adb
<<EOF
4077 procedure conftest is begin null; end conftest;
4079 acx_cv_cc_gcc_supports_ada
=no
4080 # There is a bug in old released versions of GCC which causes the
4081 # driver to exit successfully when the appropriate language module
4082 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4083 # Therefore we must check for the error message as well as an
4084 # unsuccessful exit.
4085 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4086 # given a .adb file, but produce no object file. So we must check
4087 # if an object file was really produced to guard against this.
4088 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4089 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4090 acx_cv_cc_gcc_supports_ada
=yes
4094 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4095 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
4097 if test x
$GNATBIND != xno
&& test x
$GNATMAKE != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4103 echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4104 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4105 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 gcc_cv_prog_cmp_skip
='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4111 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
4112 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
4115 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
4118 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
4119 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
4122 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
4128 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4129 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4130 do_compare
="$gcc_cv_prog_cmp_skip"
4134 # Check for GMP and MPFR
4135 gmplibs
="-lmpfr -lgmp"
4139 # Specify a location for mpfr
4140 # check for this first so it ends up on the link line before gmp.
4142 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4143 if test "${with_mpfr_dir+set}" = set; then
4144 withval
="$with_mpfr_dir"
4145 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4146 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4147 echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4148 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4149 { (exit 1); exit 1; }; }
4153 # Check whether --with-mpfr or --without-mpfr was given.
4154 if test "${with_mpfr+set}" = set; then
4155 withval
="$with_mpfr"
4159 # Check whether --with-mpfr_include or --without-mpfr_include was given.
4160 if test "${with_mpfr_include+set}" = set; then
4161 withval
="$with_mpfr_include"
4165 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4166 if test "${with_mpfr_lib+set}" = set; then
4167 withval
="$with_mpfr_lib"
4171 if test "x$with_mpfr" != x
; then
4172 gmplibs
="-L$with_mpfr/lib $gmplibs"
4173 gmpinc
="-I$with_mpfr/include"
4175 if test "x$with_mpfr_include" != x
; then
4176 gmpinc
="-I$with_mpfr_include"
4178 if test "x$with_mpfr_lib" != x
; then
4179 gmplibs
="-L$with_mpfr_lib $gmplibs"
4181 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
4182 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4183 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4184 # Do not test the mpfr version. Assume that it is sufficient, since
4185 # it is in the source tree, and the library has not been built yet
4186 # but it would be included on the link line in the version check below
4187 # hence making the test fail.
4191 # Specify a location for gmp
4193 # Check whether --with-gmp-dir or --without-gmp-dir was given.
4194 if test "${with_gmp_dir+set}" = set; then
4195 withval
="$with_gmp_dir"
4196 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4197 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4198 echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4199 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4200 { (exit 1); exit 1; }; }
4204 # Check whether --with-gmp or --without-gmp was given.
4205 if test "${with_gmp+set}" = set; then
4210 # Check whether --with-gmp_include or --without-gmp_include was given.
4211 if test "${with_gmp_include+set}" = set; then
4212 withval
="$with_gmp_include"
4216 # Check whether --with-gmp_lib or --without-gmp_lib was given.
4217 if test "${with_gmp_lib+set}" = set; then
4218 withval
="$with_gmp_lib"
4223 if test "x$with_gmp" != x
; then
4224 gmplibs
="-L$with_gmp/lib $gmplibs"
4225 gmpinc
="-I$with_gmp/include $gmpinc"
4227 if test "x$with_gmp_include" != x
; then
4228 gmpinc
="-I$with_gmp_include $gmpinc"
4230 if test "x$with_gmp_lib" != x
; then
4231 gmplibs
="-L$with_gmp_lib $gmplibs"
4233 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
4234 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4235 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4236 # Do not test the gmp version. Assume that it is sufficient, since
4237 # it is in the source tree, and the library has not been built yet
4238 # but it would be included on the link line in the version check below
4239 # hence making the test fail.
4243 if test -d ${srcdir}/gcc
&& test "x$have_gmp" = xno
; then
4245 saved_CFLAGS
="$CFLAGS"
4246 CFLAGS
="$CFLAGS $gmpinc"
4247 # Check GMP actually works
4248 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4249 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4251 cat >conftest.
$ac_ext <<_ACEOF
4254 cat confdefs.h
>>conftest.
$ac_ext
4255 cat >>conftest.
$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4262 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4270 rm -f conftest.
$ac_objext
4271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4272 (eval $ac_compile) 2>conftest.er1
4274 grep -v '^ *+' conftest.er1
>conftest.err
4276 cat conftest.err
>&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } &&
4279 { ac_try
='test -z "$ac_c_werror_flag"
4280 || test ! -s conftest.err'
4281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; } &&
4286 { ac_try
='test -s conftest.$ac_objext'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4292 echo "$as_me:$LINENO: result: yes" >&5
4293 echo "${ECHO_T}yes" >&6
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.
$ac_ext >&5
4298 echo "$as_me:$LINENO: result: no" >&5
4299 echo "${ECHO_T}no" >&6; have_gmp
=no
4301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4303 if test x
"$have_gmp" = xyes
; then
4305 LIBS
="$LIBS $gmplibs"
4306 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4307 echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4308 cat >conftest.
$ac_ext <<_ACEOF
4311 cat confdefs.h
>>conftest.
$ac_ext
4312 cat >>conftest.
$ac_ext <<_ACEOF
4313 /* end confdefs.h. */
4320 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4323 mpfr_t n; mpfr_init(n);
4324 mpfr_t x; mpfr_init(x);
4326 mpfr_atan2 (n, n, x, GMP_RNDN);
4327 mpfr_erfc (n, x, GMP_RNDN);
4328 mpfr_subnormalize (x, t, GMP_RNDN);
4334 rm -f conftest.
$ac_objext conftest
$ac_exeext
4335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4336 (eval $ac_link) 2>conftest.er1
4338 grep -v '^ *+' conftest.er1
>conftest.err
4340 cat conftest.err
>&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } &&
4343 { ac_try
='test -z "$ac_c_werror_flag"
4344 || test ! -s conftest.err'
4345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }; } &&
4350 { ac_try
='test -s conftest$ac_exeext'
4351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; }; then
4356 cat >conftest.
$ac_ext <<_ACEOF
4359 cat confdefs.h
>>conftest.
$ac_ext
4360 cat >>conftest.
$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4368 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4371 mpfr_t n; mpfr_init(n);
4377 rm -f conftest.
$ac_objext conftest
$ac_exeext
4378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4379 (eval $ac_link) 2>conftest.er1
4381 grep -v '^ *+' conftest.er1
>conftest.err
4383 cat conftest.err
>&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } &&
4386 { ac_try
='test -z "$ac_c_werror_flag"
4387 || test ! -s conftest.err'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; } &&
4393 { ac_try
='test -s conftest$ac_exeext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 echo "$as_me:$LINENO: result: yes" >&5
4400 echo "${ECHO_T}yes" >&6
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.
$ac_ext >&5
4405 echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4406 echo "${ECHO_T}buggy but acceptable" >&6
4408 rm -f conftest.err conftest.
$ac_objext \
4409 conftest
$ac_exeext conftest.
$ac_ext
4411 echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.
$ac_ext >&5
4414 echo "$as_me:$LINENO: result: no" >&5
4415 echo "${ECHO_T}no" >&6; have_gmp
=no
4417 rm -f conftest.err conftest.
$ac_objext \
4418 conftest
$ac_exeext conftest.
$ac_ext
4421 CFLAGS
="$saved_CFLAGS"
4423 if test x
$have_gmp != xyes
; then
4424 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4425 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4426 Copies of these libraries' source code can be found at their respective
4427 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4428 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4429 If you obtained GMP and/or MPFR from a vendor distribution package, make
4430 sure that you have installed both the libraries and the header files.
4431 They may be located in separate packages." >&5
4432 echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4433 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4434 Copies of these libraries' source code can be found at their respective
4435 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4436 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4437 If you obtained GMP and/or MPFR from a vendor distribution package, make
4438 sure that you have installed both the libraries and the header files.
4439 They may be located in separate packages." >&2;}
4440 { (exit 1); exit 1; }; }
4444 # Flags needed for both GMP and/or MPFR
4448 # By default, C is the only stage 1 language.
4449 stage1_languages
=,c
,
4451 # Figure out what language subdirectories are present.
4452 # Look if the user specified --enable-languages="..."; if not, use
4453 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4455 # NB: embedded tabs in this IF block -- do not untabify
4456 if test -d ${srcdir}/gcc
; then
4457 if test x
"${enable_languages+set}" != xset
; then
4458 if test x
"${LANGUAGES+set}" = xset
; then
4459 enable_languages
="${LANGUAGES}"
4460 echo configure.
in: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
4462 enable_languages
=all
4465 if test x
"${enable_languages}" = x ||
4466 test x
"${enable_languages}" = xyes
;
4468 echo configure.
in: --enable-languages needs
at least one language argument
1>&2
4472 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4474 # 'f95' is the old name for the 'fortran' language. We issue a warning
4475 # and make the substitution.
4476 case ,${enable_languages}, in
4478 echo configure.
in: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
4479 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4483 # First scan to see if an enabled language requires some other language.
4484 # We assume that a given config-lang.in will list all the language
4485 # front ends it requires, even if some are required indirectly.
4486 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
4487 case ${lang_frag} in
4489 # The odd quoting in the next line works around
4490 # an apparent bug in bash 1.12 on linux.
4491 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
4493 # From the config-lang.in, get $language, $lang_requires
4497 for other
in ${lang_requires} ; do
4498 case ,${enable_languages}, in
4502 echo " \`$other' language required by \`$language'; enabling" 1>&2
4503 enable_languages
="${enable_languages},${other}"
4511 new_enable_languages
=,c
,
4512 missing_languages
=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
4513 potential_languages
=,c
,
4515 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
4516 case ${lang_frag} in
4518 # The odd quoting in the next line works around
4519 # an apparent bug in bash 1.12 on linux.
4520 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
4522 # From the config-lang.in, get $language, $target_libs,
4523 # $lang_dirs, $boot_language, and $build_by_default
4529 build_by_default
=yes
4531 if test x
${language} = x
; then
4532 echo "${lang_frag} doesn't set \$language." 1>&2
4536 case ,${enable_languages}, in
4538 # Language was explicitly selected; include it.
4542 # 'all' was selected, select it if it is a default language
4543 add_this_lang
=${build_by_default}
4550 # Disable languages that need other directories if these aren't available.
4551 for i
in $subdir_requires; do
4552 test -f "$srcdir/gcc/$i/config-lang.in" && continue
4553 case ,${enable_languages}, in
4555 # Specifically requested language; tell them.
4556 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4557 echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4558 { (exit 1); exit 1; }; }
4562 add_this_lang
=unsupported
4567 # Disable Ada if no preexisting GNAT is available.
4568 case ,${enable_languages},:${language}:${have_gnat} in
4569 *,${language},*:ada
:no
)
4570 # Specifically requested language; tell them.
4571 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4572 echo "$as_me: error: GNAT is required to build $language" >&2;}
4573 { (exit 1); exit 1; }; }
4577 add_this_lang
=unsupported
4581 # Disable a language that is unsupported by the target.
4582 case " $unsupported_languages " in
4584 add_this_lang
=unsupported
4588 case $add_this_lang in
4590 # Remove language-dependent dirs.
4591 eval noconfigdirs
='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4594 # Remove language-dependent dirs; still show language as supported.
4595 eval noconfigdirs
='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4596 potential_languages
="${potential_languages}${language},"
4599 new_enable_languages
="${new_enable_languages}${language},"
4600 potential_languages
="${potential_languages}${language},"
4601 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
4602 case ${boot_language} in
4604 # Add to (comma-separated) list of stage 1 languages.
4605 stage1_languages
="${stage1_languages}${language},"
4614 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4615 if test "${enable_stage1_languages+set}" = set; then
4616 enableval
="$enable_stage1_languages"
4617 case ,${enable_stage1_languages}, in
4619 # Set it to something that will have no effect in the loop below
4620 enable_stage1_languages
=c
;;
4622 enable_stage1_languages
=`echo $new_enable_languages | \
4623 sed -e "s/^,//" -e "s/,$//" ` ;;
4625 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
4626 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4629 # Add "good" languages from enable_stage1_languages to stage1_languages,
4630 # while "bad" languages go in missing_languages. Leave no duplicates.
4631 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4632 case $potential_languages in
4634 case $stage1_languages in
4636 *) stage1_languages
="$stage1_languages$i," ;;
4639 case $missing_languages in
4641 *) missing_languages
="$missing_languages$i," ;;
4647 # Remove leading/trailing commas that were added for simplicity
4648 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4649 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
4650 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4651 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4653 if test "x$missing_languages" != x
; then
4654 { { echo "$as_me:$LINENO: error:
4655 The following requested languages could not be built: ${missing_languages}
4656 Supported languages are: ${potential_languages}" >&5
4657 echo "$as_me: error:
4658 The following requested languages could not be built: ${missing_languages}
4659 Supported languages are: ${potential_languages}" >&2;}
4660 { (exit 1); exit 1; }; }
4662 if test "x$new_enable_languages" != "x$enable_languages"; then
4663 echo The following languages will be built
: ${new_enable_languages}
4664 enable_languages
="$new_enable_languages"
4668 ac_configure_args
=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
4671 # Handle --disable-<component> generically.
4672 for dir
in $configdirs $build_configdirs $target_configdirs ; do
4673 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4674 if eval test x\
${enable_${dirname}} "=" xno
; then
4675 noconfigdirs
="$noconfigdirs $dir"
4679 # Check for Boehm's garbage collector
4680 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4681 if test "${enable_objc_gc+set}" = set; then
4682 enableval
="$enable_objc_gc"
4683 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4684 *,objc
,*:*:yes:*target-boehm-gc
*)
4685 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4686 echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4687 { (exit 1); exit 1; }; }
4692 # Make sure we only build Boehm's garbage collector if required.
4693 case ,${enable_languages},:${enable_objc_gc} in
4695 # Keep target-boehm-gc if requested for Objective-C.
4698 # Otherwise remove target-boehm-gc depending on target-libjava.
4699 if echo " ${noconfigdirs} " |
grep "target-libjava" >/dev
/null
2>&1; then
4700 noconfigdirs
="$noconfigdirs target-boehm-gc"
4705 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4706 # $build_configdirs and $target_configdirs.
4707 # If we have the source for $noconfigdirs entries, add them to $notsupp.
4710 for dir
in .
$skipdirs $noconfigdirs ; do
4711 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
4712 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
4713 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4714 if test -r $srcdir/$dirname/configure
; then
4715 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
4718 notsupp
="$notsupp $dir"
4722 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
4723 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4724 if test -r $srcdir/$dirname/configure
; then
4725 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
4728 notsupp
="$notsupp $dir"
4732 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
4733 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4734 if test -r $srcdir/$dirname/configure
; then
4735 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
4738 notsupp
="$notsupp $dir"
4744 # Sometimes the tools are distributed with libiberty but with no other
4745 # libraries. In that case, we don't want to build target-libiberty.
4746 # Don't let libgcc imply libiberty either.
4747 if test -n "${target_configdirs}" ; then
4750 for i
in `echo ${target_configdirs} | sed -e s/target-//g` ; do
4751 if test "$i" = "libgcc"; then
4752 libgcc
=target-libgcc
4753 elif test "$i" != "libiberty" ; then
4754 if test -r $srcdir/$i/configure
; then
4760 if test -z "${others}" ; then
4761 target_configdirs
=$libgcc
4765 # Quietly strip out all directories which aren't configurable in this tree.
4766 # This relies on all configurable subdirectories being autoconfiscated, which
4768 build_configdirs_all
="$build_configdirs"
4770 for i
in ${build_configdirs_all} ; do
4771 j
=`echo $i | sed -e s/build-//g`
4772 if test -f ${srcdir}/$j/configure
; then
4773 build_configdirs
="${build_configdirs} $i"
4777 configdirs_all
="$configdirs"
4779 for i
in ${configdirs_all} ; do
4780 if test -f ${srcdir}/$i/configure
; then
4781 configdirs
="${configdirs} $i"
4785 target_configdirs_all
="$target_configdirs"
4787 for i
in ${target_configdirs_all} ; do
4788 j
=`echo $i | sed -e s/target-//g`
4789 if test -f ${srcdir}/$j/configure
; then
4790 target_configdirs
="${target_configdirs} $i"
4794 # Produce a warning message for the subdirs we can't configure.
4795 # This isn't especially interesting in the Cygnus tree, but in the individual
4796 # FSF releases, it's important to let people know when their machine isn't
4797 # supported by the one or two programs in a package.
4799 if test -n "${notsupp}" && test -z "${norecursion}" ; then
4800 # If $appdirs is non-empty, at least one of those directories must still
4801 # be configured, or we error out. (E.g., if the gas release supports a
4802 # specified target in some subdirs but not the gas subdir, we shouldn't
4803 # pretend that all is well.)
4804 if test -n "$appdirs" ; then
4805 for dir
in $appdirs ; do
4806 if test -r $dir/Makefile.
in ; then
4807 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
4811 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
4817 if test -n "$appdirs" ; then
4818 echo "*** This configuration is not supported by this package." 1>&2
4822 # Okay, some application will build, or we don't care to check. Still
4823 # notify of subdirs not getting built.
4824 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4825 echo " ${notsupp}" 1>&2
4826 echo " (Any other directories should still work fine.)" 1>&2
4834 # To find our prefix, in gcc_cv_tool_prefix.
4836 # The user is always right.
4837 if test "${PATH_SEPARATOR+set}" != set; then
4838 echo "#! /bin/sh" >conf$$.sh
4839 echo "exit 0" >>conf$$.sh
4841 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4851 if test "x$exec_prefix" = xNONE
; then
4852 if test "x$prefix" = xNONE
; then
4853 gcc_cv_tool_prefix
=$ac_default_prefix
4855 gcc_cv_tool_prefix
=$prefix
4858 gcc_cv_tool_prefix
=$exec_prefix
4861 # If there is no compiler in the tree, use the PATH only. In any
4862 # case, if there is no compiler in the tree nobody should use
4863 # AS_FOR_TARGET and LD_FOR_TARGET.
4864 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
4865 gcc_version
=`cat $srcdir/gcc/BASE-VER`
4866 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
4867 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
4868 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
4869 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
4870 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
4871 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
4876 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
4877 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
4885 # Check whether --with-build-sysroot or --without-build-sysroot was given.
4886 if test "${with_build_sysroot+set}" = set; then
4887 withval
="$with_build_sysroot"
4888 if test x
"$withval" != x
; then
4889 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
4892 SYSROOT_CFLAGS_FOR_TARGET
=
4896 # Handle --with-headers=XXX. If the value is not "yes", the contents of
4897 # the named directory are copied to $(tooldir)/sys-include.
4898 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
4899 if test x
${is_cross_compiler} = xno
; then
4900 echo 1>&2 '***' --with-headers is only supported when cross compiling
4903 if test x
"${with_headers}" != xyes
; then
4904 x
=${gcc_cv_tool_prefix}
4905 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
4909 # Handle --with-libs=XXX. If the value is not "yes", the contents of
4910 # the name directories are copied to $(tooldir)/lib. Multiple directories
4912 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
4913 if test x
${is_cross_compiler} = xno
; then
4914 echo 1>&2 '***' --with-libs is only supported when cross compiling
4917 if test x
"${with_libs}" != xyes
; then
4918 # Copy the libraries in reverse order, so that files in the first named
4919 # library override files in subsequent libraries.
4920 x
=${gcc_cv_tool_prefix}
4921 for l
in ${with_libs}; do
4922 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
4927 # Set with_gnu_as and with_gnu_ld as appropriate.
4929 # This is done by determining whether or not the appropriate directory
4930 # is available, and by checking whether or not specific configurations
4931 # have requested that this magic not happen.
4933 # The command line options always override the explicit settings in
4934 # configure.in, and the settings in configure.in override this magic.
4936 # If the default for a toolchain is to use GNU as and ld, and you don't
4937 # want to do that, then you should use the --without-gnu-as and
4938 # --without-gnu-ld options for the configure script.
4940 if test x
${use_gnu_as} = x
&&
4941 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
4943 extra_host_args
="$extra_host_args --with-gnu-as"
4946 if test x
${use_gnu_ld} = x
&&
4947 echo " ${configdirs} " |
grep " ld " > /dev
/null
2>&1 ; then
4949 extra_host_args
="$extra_host_args --with-gnu-ld"
4952 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
4953 # can detect this case.
4955 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
4957 extra_host_args
="$extra_host_args --with-newlib"
4960 # Handle ${copy_dirs}
4961 set fnord
${copy_dirs}
4963 while test $# != 0 ; do
4964 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
4967 echo Copying
$1 to
$2
4969 # Use the install script to create the directory and all required
4970 # parent directories.
4971 if test -d $2 ; then
4975 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
4978 # Copy the directory, assuming we have tar.
4979 # FIXME: Should we use B in the second tar? Not all systems support it.
4980 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
4982 # It is the responsibility of the user to correctly adjust all
4983 # symlinks. If somebody can figure out how to handle them correctly
4984 # here, feel free to add the code.
4991 # Determine a target-dependent exec_prefix that the installed
4992 # gcc will search in. Keep this list sorted by triplet, with
4993 # the *-*-osname triplets last.
4997 md_exec_prefix
=/gnu
/lib
/gcc-lib
4999 i3456786-pc-msdosdjgpp
*)
5000 md_exec_prefix
=/dev
/env
/DJDIR
/bin
5002 i3456786-
*-sco3.2v5
*)
5003 if test $with_gnu_as = yes; then
5004 md_exec_prefix
=/usr
/gnu
/bin
5006 md_exec_prefix
=/usr
/ccs
/bin
/elf
5011 powerpc-
*-chorusos* | \
5012 powerpc
*-*-eabi* | \
5013 powerpc
*-*-sysv* | \
5014 powerpc
*-*-kaos* | \
5016 md_exec_prefix
=/usr
/ccs
/bin
5021 md_exec_prefix
=/usr
/ccs
/bin
5036 md_exec_prefix
=/usr
/ccs
/bin
5040 extra_arflags_for_target
=
5041 extra_nmflags_for_target
=
5042 extra_ranlibflags_for_target
=
5043 target_makefile_frag
=/dev
/null
5046 target_makefile_frag
="config/mt-mep"
5049 target_makefile_frag
="config/mt-spu"
5052 target_makefile_frag
="config/mt-netware"
5054 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
5055 target_makefile_frag
="config/mt-gnu"
5057 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
5058 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
5059 # commands to handle both 32-bit and 64-bit objects. These flags are
5060 # harmless if we're using GNU nm or ar.
5061 extra_arflags_for_target
=" -X32_64"
5062 extra_nmflags_for_target
=" -B -X32_64"
5065 # ranlib from Darwin requires the -c flag to look at common symbols.
5066 extra_ranlibflags_for_target
=" -c"
5068 mips
*-*-pe | sh
*-*-pe |
*arm-wince-pe
)
5069 target_makefile_frag
="config/mt-wince"
5073 alphaieee_frag
=/dev
/null
5076 # This just makes sure to use the -mieee option to build target libs.
5077 # This should probably be set individually by each library.
5078 alphaieee_frag
="config/mt-alphaieee"
5082 # If --enable-target-optspace always use -Os instead of -O2 to build
5083 # the target libraries, similarly if it is not specified, use -Os
5084 # on selected platforms.
5085 ospace_frag
=/dev
/null
5086 case "${enable_target_optspace}:${target}" in
5088 ospace_frag
="config/mt-ospace"
5091 ospace_frag
="config/mt-d30v"
5093 :m32r-
* |
:d10v-
* |
:fr30-
*)
5094 ospace_frag
="config/mt-ospace"
5099 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5103 # Default to using --with-stabs for certain targets.
5104 if test x
${with_stabs} = x
; then
5108 mips
*-*-* | alpha
*-*-osf*)
5110 extra_host_args
="${extra_host_args} --with-stabs"
5115 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5116 # them automatically.
5119 extra_host_args
="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5123 # Some systems (e.g., one of the i386-aix systems the gas testers are
5124 # using) don't handle "\$" correctly, so don't use it here.
5125 tooldir
='${exec_prefix}'/${target_noncanonical}
5126 build_tooldir
=${tooldir}
5128 # Create a .gdbinit file which runs the one in srcdir
5129 # and tells GDB to look there for source files.
5131 if test -r ${srcdir}/.gdbinit
; then
5134 *) cat > .
/.gdbinit
<<EOF
5138 source ${srcdir}/.gdbinit
5144 # Make sure that the compiler is able to generate an executable. If it
5145 # can't, we are probably in trouble. We don't care whether we can run the
5146 # executable--we might be using a cross compiler--we only care whether it
5147 # can be created. At this point the main configure script has set CC.
5149 echo "int main () { return 0; }" > conftest.c
5150 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5151 if test $?
= 0 ; then
5152 if test -s conftest ||
test -s conftest.exe
; then
5158 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5159 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5166 # The Solaris /usr/ucb/cc compiler does not appear to work.
5168 sparc-sun-solaris2
*)
5169 CCBASE
="`echo ${CC-cc} | sed 's/ .*$//'`"
5170 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5172 test -d /opt
/SUNWspro
/bin
&& could_use
="/opt/SUNWspro/bin"
5173 if test -d /opt
/cygnus
/bin
; then
5174 if test "$could_use" = "" ; then
5175 could_use
="/opt/cygnus/bin"
5177 could_use
="$could_use or /opt/cygnus/bin"
5180 if test "$could_use" = "" ; then
5181 echo "Warning: compilation may fail because you're using"
5182 echo "/usr/ucb/cc. You should change your PATH or CC "
5183 echo "variable and rerun configure."
5185 echo "Warning: compilation may fail because you're using"
5186 echo "/usr/ucb/cc, when you should use the C compiler from"
5187 echo "$could_use. You should change your"
5188 echo "PATH or CC variable and rerun configure."
5195 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
5196 *-*-darwin* |
*-*-rhapsody* ) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
5197 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
5200 # Record target_configdirs and the configure arguments for target and
5201 # build configuration in Makefile.
5202 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
5203 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
5205 # Determine whether gdb needs tk/tcl or not.
5206 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5207 # and in that case we want gdb to be built without tk. Ugh!
5208 # In fact I believe gdb is the *only* package directly dependent on tk,
5209 # so we should be able to put the 'maybe's in unconditionally and
5210 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
5211 # 100% sure that that's safe though.
5213 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
5214 case "$enable_gdbtk" in
5218 GDB_TK
="${gdb_tk}" ;;
5220 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5221 # distro. Eventually someone will fix this and move Insight, nee
5222 # gdbtk to a separate directory.
5223 if test -d ${srcdir}/gdb
/gdbtk
; then
5230 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5231 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
5233 # Strip out unwanted targets.
5235 # While at that, we remove Makefiles if we were started for recursive
5236 # configuration, so that the top-level Makefile reconfigures them,
5237 # like we used to do when configure itself was recursive.
5239 # Loop over modules. $extrasub must be used with care, limiting as
5240 # much as possible the usage of range addresses. That's because autoconf
5241 # splits the sed script to overcome limits in the number of commands,
5242 # and relying on carefully-timed sed passes may turn out to be very hard
5243 # to maintain later. In this particular case, you just have to be careful
5244 # not to nest @if/@endif pairs, because configure will not warn you at all.
5246 # Check whether --enable-bootstrap or --disable-bootstrap was given.
5247 if test "${enable_bootstrap+set}" = set; then
5248 enableval
="$enable_bootstrap"
5251 enable_bootstrap
=default
5254 # Issue errors and warnings for invalid/strange bootstrap combinations.
5255 case "$configdirs" in
5256 *gcc
*) have_compiler
=yes ;;
5257 *) have_compiler
=no
;;
5260 case "$have_compiler:$host:$target:$enable_bootstrap" in
5263 # Default behavior. Enable bootstrap if we have a compiler
5264 # and we are in a native configuration.
5265 yes:$build:$build:default
)
5266 enable_bootstrap
=yes ;;
5269 enable_bootstrap
=no
;;
5271 # We have a compiler and we are in a native configuration, bootstrap is ok
5272 yes:$build:$build:yes)
5275 # Other configurations, but we have a compiler. Assume the user knows
5278 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5279 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5282 # No compiler: if they passed --enable-bootstrap explicitly, fail
5284 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5285 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5286 { (exit 1); exit 1; }; } ;;
5288 # Fail if wrong command line
5290 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5291 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5292 { (exit 1); exit 1; }; }
5296 # Adjust the toplevel makefile according to whether bootstrap was selected.
5297 case "$enable_bootstrap" in
5299 bootstrap_suffix
=bootstrap
;;
5301 bootstrap_suffix
=no-bootstrap
;;
5304 for module
in ${build_configdirs} ; do
5305 if test -z "${no_recursion}" \
5306 && test -f ${build_subdir}/${module}/Makefile
; then
5307 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5308 rm -f ${build_subdir}/${module}/Makefile
5311 /^@if build-$module\$/d
5312 /^@endif build-$module\$/d
5313 /^@if build-$module-$bootstrap_suffix\$/d
5314 /^@endif build-$module-$bootstrap_suffix\$/d"
5316 for module
in ${configdirs} ; do
5317 if test -z "${no_recursion}"; then
5318 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
5319 if test -f ${file}; then
5320 echo 1>&2 "*** removing ${file} to force reconfigure"
5327 /^@endif $module\$/d
5328 /^@if $module-$bootstrap_suffix\$/d
5329 /^@endif $module-$bootstrap_suffix\$/d"
5331 for module
in ${target_configdirs} ; do
5332 if test -z "${no_recursion}" \
5333 && test -f ${target_subdir}/${module}/Makefile
; then
5334 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5335 rm -f ${target_subdir}/${module}/Makefile
5338 /^@if target-$module\$/d
5339 /^@endif target-$module\$/d
5340 /^@if target-$module-$bootstrap_suffix\$/d
5341 /^@endif target-$module-$bootstrap_suffix\$/d"
5345 /^@if /,/^@endif /d"
5347 # Create the serialization dependencies. This uses a temporary file.
5349 # Check whether --enable-serial-configure or --disable-serial-configure was given.
5350 if test "${enable_serial_configure+set}" = set; then
5351 enableval
="$enable_serial_configure"
5355 case ${enable_serial_configure} in
5357 enable_serial_build_configure
=yes
5358 enable_serial_host_configure
=yes
5359 enable_serial_target_configure
=yes
5363 # These force 'configure's to be done one at a time, to avoid problems
5364 # with contention over a shared config.cache.
5366 echo '# serdep.tmp' > serdep.tmp
5368 test "x${enable_serial_build_configure}" = xyes
&&
5369 for item
in ${build_configdirs} ; do
5372 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
5377 test "x${enable_serial_host_configure}" = xyes
&&
5378 for item
in ${configdirs} ; do
5381 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
5386 test "x${enable_serial_target_configure}" = xyes
&&
5387 for item
in ${target_configdirs} ; do
5390 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
5394 serialization_dependencies
=serdep.tmp
5397 # Base args. Strip norecursion, cache-file, srcdir, host, build,
5398 # target, nonopt, and variable assignments. These are the ones we
5399 # might not want to pass down to subconfigures. Also strip
5400 # program-prefix, program-suffix, and program-transform-name, so that
5401 # we can pass down a consistent program-transform-name.
5405 eval "set -- $ac_configure_args"
5408 if test X
"$skip_next" = X
"yes"; then
5412 if test X
"$keep_next" = X
"yes"; then
5415 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5417 baseargs
="$baseargs '$ac_arg'"
5422 # Handle separated arguments. Based on the logic generated by
5425 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
5426 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
5427 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
5428 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
5454 -program-prefix* | \
5455 -program-suffix* | \
5456 -program-transform-name* )
5457 skip_next
=$separate_arg
5461 # An option. Add it.
5464 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5466 baseargs
="$baseargs '$ac_arg'"
5467 keep_next
=$separate_arg
5470 # Either a variable assignment, or a nonopt (triplet). Don't
5471 # pass it down; let the Makefile handle this.
5476 # Remove the initial space we just introduced and, as these will be
5477 # expanded by make, quote '$'.
5478 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
5480 # Add in --program-transform-name, after --program-prefix and
5481 # --program-suffix have been applied to it. Autoconf has already
5482 # doubled dollar signs and backslashes in program_transform_name; we want
5483 # the backslashes un-doubled, and then the entire thing wrapped in single
5484 # quotes, because this will be expanded first by make and then by the shell.
5485 # Also, because we want to override the logic in subdir configure scripts to
5486 # choose program_transform_name, replace any s,x,x, with s,y,y,.
5487 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5488 ${program_transform_name}
5490 gcc_transform_name
=`cat conftestsed.out`
5491 rm -f conftestsed.out
5492 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
5494 # For the build-side libraries, we just need to pretend we're native,
5495 # and not use the same cache file. Multilibs are neither needed nor
5497 build_configargs
="--cache-file=../config.cache ${baseargs}"
5499 # For host modules, accept cache file option, or specification as blank.
5500 case "${cache_file}" in
5502 cache_file_option
="" ;;
5503 /* |
[A-Za-z
]:[\\/]* ) # absolute path
5504 cache_file_option
="--cache-file=${cache_file}" ;;
5506 cache_file_option
="--cache-file=../${cache_file}" ;;
5509 # Host dirs don't like to share a cache file either, horribly enough.
5510 # This seems to be due to autoconf 2.5x stupidity.
5511 host_configargs
="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
5513 target_configargs
=${baseargs}
5515 # Passing a --with-cross-host argument lets the target libraries know
5516 # whether they are being built with a cross-compiler or being built
5517 # native. However, it would be better to use other mechanisms to make the
5518 # sorts of decisions they want to make on this basis. Please consider
5519 # this option to be deprecated. FIXME.
5520 if test x
${is_cross_compiler} = xyes
; then
5521 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
5524 # Default to --enable-multilib.
5525 if test x
${enable_multilib} = x
; then
5526 target_configargs
="--enable-multilib ${target_configargs}"
5529 # Pass --with-newlib if appropriate. Note that target_configdirs has
5530 # changed from the earlier setting of with_newlib.
5531 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
5532 target_configargs
="--with-newlib ${target_configargs}"
5535 # Different target subdirs use different values of certain variables
5536 # (notably CXX). Worse, multilibs use *lots* of different values.
5537 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5538 # it doesn't automatically accept command-line overrides of them.
5539 # This means it's not safe for target subdirs to share a cache file,
5540 # which is disgusting, but there you have it. Hopefully this can be
5541 # fixed in future. It's still worthwhile to use a cache file for each
5542 # directory. I think.
5544 # Pass the appropriate --build, --host, --target and --cache-file arguments.
5545 # We need to pass --target, as newer autoconf's requires consistency
5546 # for target_alias and gcc doesn't manage it consistently.
5547 target_configargs
="--cache-file=./config.cache ${target_configargs}"
5550 case " $target_configdirs " in
5552 case " $target_configargs " in
5553 *" --with-newlib "*)
5556 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' ;;
5559 # If we're not building GCC, don't discard standard headers.
5560 if test -d ${srcdir}/gcc
; then
5561 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
5563 if test "${build}" != "${host}"; then
5564 # On Canadian crosses, CC_FOR_TARGET will have already been set
5565 # by `configure', so we won't have an opportunity to add -Bgcc/
5566 # to it. This is right: we don't want to search that directory
5567 # for binaries, but we want the header files in there, so add
5569 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
5571 # Someone might think of using the pre-installed headers on
5572 # Canadian crosses, in case the installed compiler is not fully
5573 # compatible with the compiler being built. In this case, it
5574 # would be better to flag an error than risking having
5575 # incompatible object files being constructed. We can't
5576 # guarantee that an error will be flagged, but let's hope the
5577 # compiler will do it, when presented with incompatible header
5582 case "${target}-${is_cross_compiler}" in
5583 i
[3456789]86-*-linux*-no)
5584 # Here host == target, so we don't need to build gcc,
5585 # so we don't want to discard standard headers.
5586 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5589 # If we're building newlib, use its generic headers last, but search
5590 # for any libc-related directories first (so make it the last -B
5592 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5601 # Can't be handled as Cygwin above since Mingw does not use newlib.
5602 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' ;;
5605 # Allow the user to override the flags for
5606 # our build compiler if desired.
5607 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
5609 # On Canadian crosses, we'll be searching the right directories for
5610 # the previously-installed cross compiler, so don't bother to add
5611 # flags for directories within the install tree of the compiler
5612 # being built; programs in there won't even run.
5613 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5614 # Search for pre-installed headers if nothing else fits.
5615 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
5618 if test "x
${use_gnu_ld}" = x &&
5619 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
5620 # Arrange for us to find uninstalled linker scripts.
5621 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
5624 # Search for other target-specific linker scripts and such.
5627 if test -d ${srcdir}/libgloss/m32c; then
5628 # This is for crt0.o
5629 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5630 # This is for r8c.ld
5631 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5632 # This is for libnosys.a
5633 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5637 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5641 # Makefile fragments.
5642 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5644 eval fragval=\$$frag
5645 if test $fragval != /dev/null; then
5646 eval $frag=${srcdir}/$fragval
5654 # Miscellanea: directories, flags, etc.
5662 # Build module lists & subconfigure args.
5666 # Host module lists & subconfigure args.
5670 # Target module lists & subconfigure args.
5678 # Generate default definitions for YACC, M4, LEX and other programs that run
5679 # on the build machine. These are used if the Makefile can't locate these
5680 # programs in objdir.
5681 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5683 for ac_prog in 'bison -y' byacc yacc
5685 # Extract the first word of "$ac_prog", so it can be a program name with args.
5686 set dummy $ac_prog; ac_word=$2
5687 echo "$as_me:$LINENO: checking
for $ac_word" >&5
5688 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
5689 if test "${ac_cv_prog_YACC+set}" = set; then
5690 echo $ECHO_N "(cached
) $ECHO_C" >&6
5692 if test -n "$YACC"; then
5693 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_YACC="$ac_prog"
5703 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5711 YACC=$ac_cv_prog_YACC
5712 if test -n "$YACC"; then
5713 echo "$as_me:$LINENO: result
: $YACC" >&5
5714 echo "${ECHO_T}$YACC" >&6
5716 echo "$as_me:$LINENO: result
: no
" >&5
5717 echo "${ECHO_T}no
" >&6
5720 test -n "$YACC" && break
5722 test -n "$YACC" || YACC="$MISSING bison
-y"
5724 case " $build_configdirs " in
5725 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5726 *" byacc
"*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5729 for ac_prog in bison
5731 # Extract the first word of "$ac_prog", so it can be a program name with args.
5732 set dummy $ac_prog; ac_word=$2
5733 echo "$as_me:$LINENO: checking
for $ac_word" >&5
5734 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
5735 if test "${ac_cv_prog_BISON+set}" = set; then
5736 echo $ECHO_N "(cached
) $ECHO_C" >&6
5738 if test -n "$BISON"; then
5739 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 test -z "$as_dir" && as_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5748 ac_cv_prog_BISON="$ac_prog"
5749 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5757 BISON=$ac_cv_prog_BISON
5758 if test -n "$BISON"; then
5759 echo "$as_me:$LINENO: result
: $BISON" >&5
5760 echo "${ECHO_T}$BISON" >&6
5762 echo "$as_me:$LINENO: result
: no
" >&5
5763 echo "${ECHO_T}no
" >&6
5766 test -n "$BISON" && break
5768 test -n "$BISON" || BISON="$MISSING bison
"
5770 case " $build_configdirs " in
5771 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5774 for ac_prog in gm4 gnum4 m4
5776 # Extract the first word of "$ac_prog", so it can be a program name with args.
5777 set dummy $ac_prog; ac_word=$2
5778 echo "$as_me:$LINENO: checking
for $ac_word" >&5
5779 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
5780 if test "${ac_cv_prog_M4+set}" = set; then
5781 echo $ECHO_N "(cached
) $ECHO_C" >&6
5783 if test -n "$M4"; then
5784 ac_cv_prog_M4="$M4" # Let the user override the test.
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790 test -z "$as_dir" && as_dir=.
5791 for ac_exec_ext in '' $ac_executable_extensions; do
5792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5793 ac_cv_prog_M4="$ac_prog"
5794 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5803 if test -n "$M4"; then
5804 echo "$as_me:$LINENO: result
: $M4" >&5
5805 echo "${ECHO_T}$M4" >&6
5807 echo "$as_me:$LINENO: result
: no
" >&5
5808 echo "${ECHO_T}no
" >&6
5811 test -n "$M4" && break
5813 test -n "$M4" || M4="$MISSING m4"
5815 case " $build_configdirs " in
5816 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5819 for ac_prog in flex lex
5821 # Extract the first word of "$ac_prog", so it can be a program name with args.
5822 set dummy $ac_prog; ac_word=$2
5823 echo "$as_me:$LINENO: checking
for $ac_word" >&5
5824 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
5825 if test "${ac_cv_prog_LEX+set}" = set; then
5826 echo $ECHO_N "(cached
) $ECHO_C" >&6
5828 if test -n "$LEX"; then
5829 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 test -z "$as_dir" && as_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5838 ac_cv_prog_LEX="$ac_prog"
5839 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5848 if test -n "$LEX"; then
5849 echo "$as_me:$LINENO: result
: $LEX" >&5
5850 echo "${ECHO_T}$LEX" >&6
5852 echo "$as_me:$LINENO: result
: no
" >&5
5853 echo "${ECHO_T}no
" >&6
5856 test -n "$LEX" && break
5858 test -n "$LEX" || LEX="$MISSING flex
"
5860 case " $build_configdirs " in
5861 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5862 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
5867 # Extract the first word of "$ac_prog", so it can be a program name with args.
5868 set dummy $ac_prog; ac_word=$2
5869 echo "$as_me:$LINENO: checking
for $ac_word" >&5
5870 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
5871 if test "${ac_cv_prog_FLEX+set}" = set; then
5872 echo $ECHO_N "(cached
) $ECHO_C" >&6
5874 if test -n "$FLEX"; then
5875 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5884 ac_cv_prog_FLEX="$ac_prog"
5885 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5893 FLEX=$ac_cv_prog_FLEX
5894 if test -n "$FLEX"; then
5895 echo "$as_me:$LINENO: result
: $FLEX" >&5
5896 echo "${ECHO_T}$FLEX" >&6
5898 echo "$as_me:$LINENO: result
: no
" >&5
5899 echo "${ECHO_T}no
" >&6
5902 test -n "$FLEX" && break
5904 test -n "$FLEX" || FLEX="$MISSING flex
"
5906 case " $build_configdirs " in
5907 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5910 for ac_prog in makeinfo
5912 # Extract the first word of "$ac_prog", so it can be a program name with args.
5913 set dummy $ac_prog; ac_word=$2
5914 echo "$as_me:$LINENO: checking
for $ac_word" >&5
5915 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
5916 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5917 echo $ECHO_N "(cached
) $ECHO_C" >&6
5919 if test -n "$MAKEINFO"; then
5920 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_MAKEINFO="$ac_prog"
5930 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5938 MAKEINFO=$ac_cv_prog_MAKEINFO
5939 if test -n "$MAKEINFO"; then
5940 echo "$as_me:$LINENO: result
: $MAKEINFO" >&5
5941 echo "${ECHO_T}$MAKEINFO" >&6
5943 echo "$as_me:$LINENO: result
: no
" >&5
5944 echo "${ECHO_T}no
" >&6
5947 test -n "$MAKEINFO" && break
5949 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
5951 case " $build_configdirs " in
5952 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
5955 # For an installed makeinfo, we require it to be from texinfo 4.4 or
5956 # higher, else we use the "missing
" dummy.
5957 if ${MAKEINFO} --version \
5958 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
5961 MAKEINFO="$MISSING makeinfo
"
5967 # FIXME: expect and dejagnu may become build tools?
5969 for ac_prog in expect
5971 # Extract the first word of "$ac_prog", so it can be a program name with args.
5972 set dummy $ac_prog; ac_word=$2
5973 echo "$as_me:$LINENO: checking
for $ac_word" >&5
5974 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
5975 if test "${ac_cv_prog_EXPECT+set}" = set; then
5976 echo $ECHO_N "(cached
) $ECHO_C" >&6
5978 if test -n "$EXPECT"; then
5979 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5988 ac_cv_prog_EXPECT="$ac_prog"
5989 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5997 EXPECT=$ac_cv_prog_EXPECT
5998 if test -n "$EXPECT"; then
5999 echo "$as_me:$LINENO: result
: $EXPECT" >&5
6000 echo "${ECHO_T}$EXPECT" >&6
6002 echo "$as_me:$LINENO: result
: no
" >&5
6003 echo "${ECHO_T}no
" >&6
6006 test -n "$EXPECT" && break
6008 test -n "$EXPECT" || EXPECT="expect
"
6010 case " $configdirs " in
6012 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6016 for ac_prog in runtest
6018 # Extract the first word of "$ac_prog", so it can be a program name with args.
6019 set dummy $ac_prog; ac_word=$2
6020 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6021 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6022 if test "${ac_cv_prog_RUNTEST+set}" = set; then
6023 echo $ECHO_N "(cached
) $ECHO_C" >&6
6025 if test -n "$RUNTEST"; then
6026 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 test -z "$as_dir" && as_dir=.
6033 for ac_exec_ext in '' $ac_executable_extensions; do
6034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6035 ac_cv_prog_RUNTEST="$ac_prog"
6036 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6044 RUNTEST=$ac_cv_prog_RUNTEST
6045 if test -n "$RUNTEST"; then
6046 echo "$as_me:$LINENO: result
: $RUNTEST" >&5
6047 echo "${ECHO_T}$RUNTEST" >&6
6049 echo "$as_me:$LINENO: result
: no
" >&5
6050 echo "${ECHO_T}no
" >&6
6053 test -n "$RUNTEST" && break
6055 test -n "$RUNTEST" || RUNTEST="runtest
"
6057 case " $configdirs " in
6059 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
6066 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6067 ncn_target_tool_prefix=
6068 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6070 for ncn_progname in ar; do
6071 if test -n "$ncn_tool_prefix"; then
6072 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6073 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6074 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6075 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6076 if test "${ac_cv_prog_AR+set}" = set; then
6077 echo $ECHO_N "(cached
) $ECHO_C" >&6
6079 if test -n "$AR"; then
6080 ac_cv_prog_AR="$AR" # Let the user override the test.
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6090 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6099 if test -n "$AR"; then
6100 echo "$as_me:$LINENO: result
: $AR" >&5
6101 echo "${ECHO_T}$AR" >&6
6103 echo "$as_me:$LINENO: result
: no
" >&5
6104 echo "${ECHO_T}no
" >&6
6108 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6110 set dummy ${ncn_progname}; ac_word=$2
6111 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6112 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6113 if test "${ac_cv_prog_AR+set}" = set; then
6114 echo $ECHO_N "(cached
) $ECHO_C" >&6
6116 if test -n "$AR"; then
6117 ac_cv_prog_AR="$AR" # Let the user override the test.
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126 ac_cv_prog_AR="${ncn_progname}"
6127 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6136 if test -n "$AR"; then
6137 echo "$as_me:$LINENO: result
: $AR" >&5
6138 echo "${ECHO_T}$AR" >&6
6140 echo "$as_me:$LINENO: result
: no
" >&5
6141 echo "${ECHO_T}no
" >&6
6145 test -n "$ac_cv_prog_AR" && break
6148 if test -z "$ac_cv_prog_AR" ; then
6150 if test $build = $host ; then
6153 AR="${ncn_tool_prefix}$2"
6157 for ncn_progname in as; do
6158 if test -n "$ncn_tool_prefix"; then
6159 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6160 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6161 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6162 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6163 if test "${ac_cv_prog_AS+set}" = set; then
6164 echo $ECHO_N "(cached
) $ECHO_C" >&6
6166 if test -n "$AS"; then
6167 ac_cv_prog_AS="$AS" # Let the user override the test.
6169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 test -z "$as_dir" && as_dir=.
6174 for ac_exec_ext in '' $ac_executable_extensions; do
6175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6176 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6177 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6186 if test -n "$AS"; then
6187 echo "$as_me:$LINENO: result
: $AS" >&5
6188 echo "${ECHO_T}$AS" >&6
6190 echo "$as_me:$LINENO: result
: no
" >&5
6191 echo "${ECHO_T}no
" >&6
6195 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6197 set dummy ${ncn_progname}; ac_word=$2
6198 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6199 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6200 if test "${ac_cv_prog_AS+set}" = set; then
6201 echo $ECHO_N "(cached
) $ECHO_C" >&6
6203 if test -n "$AS"; then
6204 ac_cv_prog_AS="$AS" # Let the user override the test.
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 test -z "$as_dir" && as_dir=.
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6213 ac_cv_prog_AS="${ncn_progname}"
6214 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6223 if test -n "$AS"; then
6224 echo "$as_me:$LINENO: result
: $AS" >&5
6225 echo "${ECHO_T}$AS" >&6
6227 echo "$as_me:$LINENO: result
: no
" >&5
6228 echo "${ECHO_T}no
" >&6
6232 test -n "$ac_cv_prog_AS" && break
6235 if test -z "$ac_cv_prog_AS" ; then
6237 if test $build = $host ; then
6240 AS="${ncn_tool_prefix}$2"
6244 for ncn_progname in dlltool; do
6245 if test -n "$ncn_tool_prefix"; then
6246 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6247 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6248 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6249 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6250 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6251 echo $ECHO_N "(cached
) $ECHO_C" >&6
6253 if test -n "$DLLTOOL"; then
6254 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6263 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6264 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6272 DLLTOOL=$ac_cv_prog_DLLTOOL
6273 if test -n "$DLLTOOL"; then
6274 echo "$as_me:$LINENO: result
: $DLLTOOL" >&5
6275 echo "${ECHO_T}$DLLTOOL" >&6
6277 echo "$as_me:$LINENO: result
: no
" >&5
6278 echo "${ECHO_T}no
" >&6
6282 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6284 set dummy ${ncn_progname}; ac_word=$2
6285 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6286 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6287 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6288 echo $ECHO_N "(cached
) $ECHO_C" >&6
6290 if test -n "$DLLTOOL"; then
6291 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300 ac_cv_prog_DLLTOOL="${ncn_progname}"
6301 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6309 DLLTOOL=$ac_cv_prog_DLLTOOL
6310 if test -n "$DLLTOOL"; then
6311 echo "$as_me:$LINENO: result
: $DLLTOOL" >&5
6312 echo "${ECHO_T}$DLLTOOL" >&6
6314 echo "$as_me:$LINENO: result
: no
" >&5
6315 echo "${ECHO_T}no
" >&6
6319 test -n "$ac_cv_prog_DLLTOOL" && break
6322 if test -z "$ac_cv_prog_DLLTOOL" ; then
6324 if test $build = $host ; then
6327 DLLTOOL="${ncn_tool_prefix}$2"
6331 for ncn_progname in ld; do
6332 if test -n "$ncn_tool_prefix"; then
6333 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6334 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6335 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6336 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6337 if test "${ac_cv_prog_LD+set}" = set; then
6338 echo $ECHO_N "(cached
) $ECHO_C" >&6
6340 if test -n "$LD"; then
6341 ac_cv_prog_LD="$LD" # Let the user override the test.
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6350 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6351 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6360 if test -n "$LD"; then
6361 echo "$as_me:$LINENO: result
: $LD" >&5
6362 echo "${ECHO_T}$LD" >&6
6364 echo "$as_me:$LINENO: result
: no
" >&5
6365 echo "${ECHO_T}no
" >&6
6369 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6371 set dummy ${ncn_progname}; ac_word=$2
6372 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6373 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6374 if test "${ac_cv_prog_LD+set}" = set; then
6375 echo $ECHO_N "(cached
) $ECHO_C" >&6
6377 if test -n "$LD"; then
6378 ac_cv_prog_LD="$LD" # Let the user override the test.
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 test -z "$as_dir" && as_dir=.
6385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6387 ac_cv_prog_LD="${ncn_progname}"
6388 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6397 if test -n "$LD"; then
6398 echo "$as_me:$LINENO: result
: $LD" >&5
6399 echo "${ECHO_T}$LD" >&6
6401 echo "$as_me:$LINENO: result
: no
" >&5
6402 echo "${ECHO_T}no
" >&6
6406 test -n "$ac_cv_prog_LD" && break
6409 if test -z "$ac_cv_prog_LD" ; then
6411 if test $build = $host ; then
6414 LD="${ncn_tool_prefix}$2"
6418 for ncn_progname in lipo; do
6419 if test -n "$ncn_tool_prefix"; then
6420 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6421 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6422 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6423 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6424 if test "${ac_cv_prog_LIPO+set}" = set; then
6425 echo $ECHO_N "(cached
) $ECHO_C" >&6
6427 if test -n "$LIPO"; then
6428 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 test -z "$as_dir" && as_dir=.
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6437 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6438 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6446 LIPO=$ac_cv_prog_LIPO
6447 if test -n "$LIPO"; then
6448 echo "$as_me:$LINENO: result
: $LIPO" >&5
6449 echo "${ECHO_T}$LIPO" >&6
6451 echo "$as_me:$LINENO: result
: no
" >&5
6452 echo "${ECHO_T}no
" >&6
6456 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6457 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6458 set dummy ${ncn_progname}; ac_word=$2
6459 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6460 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6461 if test "${ac_cv_prog_LIPO+set}" = set; then
6462 echo $ECHO_N "(cached
) $ECHO_C" >&6
6464 if test -n "$LIPO"; then
6465 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6474 ac_cv_prog_LIPO="${ncn_progname}"
6475 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6483 LIPO=$ac_cv_prog_LIPO
6484 if test -n "$LIPO"; then
6485 echo "$as_me:$LINENO: result
: $LIPO" >&5
6486 echo "${ECHO_T}$LIPO" >&6
6488 echo "$as_me:$LINENO: result
: no
" >&5
6489 echo "${ECHO_T}no
" >&6
6493 test -n "$ac_cv_prog_LIPO" && break
6496 if test -z "$ac_cv_prog_LIPO" ; then
6498 if test $build = $host ; then
6501 LIPO="${ncn_tool_prefix}$2"
6505 for ncn_progname in nm; do
6506 if test -n "$ncn_tool_prefix"; then
6507 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6508 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6509 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6510 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6511 if test "${ac_cv_prog_NM+set}" = set; then
6512 echo $ECHO_N "(cached
) $ECHO_C" >&6
6514 if test -n "$NM"; then
6515 ac_cv_prog_NM="$NM" # Let the user override the test.
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
6525 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6534 if test -n "$NM"; then
6535 echo "$as_me:$LINENO: result
: $NM" >&5
6536 echo "${ECHO_T}$NM" >&6
6538 echo "$as_me:$LINENO: result
: no
" >&5
6539 echo "${ECHO_T}no
" >&6
6543 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
6544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6545 set dummy ${ncn_progname}; ac_word=$2
6546 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6547 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6548 if test "${ac_cv_prog_NM+set}" = set; then
6549 echo $ECHO_N "(cached
) $ECHO_C" >&6
6551 if test -n "$NM"; then
6552 ac_cv_prog_NM="$NM" # Let the user override the test.
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561 ac_cv_prog_NM="${ncn_progname}"
6562 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6571 if test -n "$NM"; then
6572 echo "$as_me:$LINENO: result
: $NM" >&5
6573 echo "${ECHO_T}$NM" >&6
6575 echo "$as_me:$LINENO: result
: no
" >&5
6576 echo "${ECHO_T}no
" >&6
6580 test -n "$ac_cv_prog_NM" && break
6583 if test -z "$ac_cv_prog_NM" ; then
6585 if test $build = $host ; then
6588 NM="${ncn_tool_prefix}$2"
6592 for ncn_progname in ranlib; do
6593 if test -n "$ncn_tool_prefix"; then
6594 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6595 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6596 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6597 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6598 if test "${ac_cv_prog_RANLIB+set}" = set; then
6599 echo $ECHO_N "(cached
) $ECHO_C" >&6
6601 if test -n "$RANLIB"; then
6602 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6611 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
6612 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6620 RANLIB=$ac_cv_prog_RANLIB
6621 if test -n "$RANLIB"; then
6622 echo "$as_me:$LINENO: result
: $RANLIB" >&5
6623 echo "${ECHO_T}$RANLIB" >&6
6625 echo "$as_me:$LINENO: result
: no
" >&5
6626 echo "${ECHO_T}no
" >&6
6630 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
6631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6632 set dummy ${ncn_progname}; ac_word=$2
6633 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6634 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6635 if test "${ac_cv_prog_RANLIB+set}" = set; then
6636 echo $ECHO_N "(cached
) $ECHO_C" >&6
6638 if test -n "$RANLIB"; then
6639 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6648 ac_cv_prog_RANLIB="${ncn_progname}"
6649 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6657 RANLIB=$ac_cv_prog_RANLIB
6658 if test -n "$RANLIB"; then
6659 echo "$as_me:$LINENO: result
: $RANLIB" >&5
6660 echo "${ECHO_T}$RANLIB" >&6
6662 echo "$as_me:$LINENO: result
: no
" >&5
6663 echo "${ECHO_T}no
" >&6
6667 test -n "$ac_cv_prog_RANLIB" && break
6670 if test -z "$ac_cv_prog_RANLIB" ; then
6674 for ncn_progname in strip; do
6675 if test -n "$ncn_tool_prefix"; then
6676 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6677 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6678 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6679 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6680 if test "${ac_cv_prog_STRIP+set}" = set; then
6681 echo $ECHO_N "(cached
) $ECHO_C" >&6
6683 if test -n "$STRIP"; then
6684 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6693 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
6694 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6702 STRIP=$ac_cv_prog_STRIP
6703 if test -n "$STRIP"; then
6704 echo "$as_me:$LINENO: result
: $STRIP" >&5
6705 echo "${ECHO_T}$STRIP" >&6
6707 echo "$as_me:$LINENO: result
: no
" >&5
6708 echo "${ECHO_T}no
" >&6
6712 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
6713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6714 set dummy ${ncn_progname}; ac_word=$2
6715 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6716 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6717 if test "${ac_cv_prog_STRIP+set}" = set; then
6718 echo $ECHO_N "(cached
) $ECHO_C" >&6
6720 if test -n "$STRIP"; then
6721 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6730 ac_cv_prog_STRIP="${ncn_progname}"
6731 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6739 STRIP=$ac_cv_prog_STRIP
6740 if test -n "$STRIP"; then
6741 echo "$as_me:$LINENO: result
: $STRIP" >&5
6742 echo "${ECHO_T}$STRIP" >&6
6744 echo "$as_me:$LINENO: result
: no
" >&5
6745 echo "${ECHO_T}no
" >&6
6749 test -n "$ac_cv_prog_STRIP" && break
6752 if test -z "$ac_cv_prog_STRIP" ; then
6756 for ncn_progname in windres; do
6757 if test -n "$ncn_tool_prefix"; then
6758 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6759 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6760 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6761 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6762 if test "${ac_cv_prog_WINDRES+set}" = set; then
6763 echo $ECHO_N "(cached
) $ECHO_C" >&6
6765 if test -n "$WINDRES"; then
6766 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6775 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
6776 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6784 WINDRES=$ac_cv_prog_WINDRES
6785 if test -n "$WINDRES"; then
6786 echo "$as_me:$LINENO: result
: $WINDRES" >&5
6787 echo "${ECHO_T}$WINDRES" >&6
6789 echo "$as_me:$LINENO: result
: no
" >&5
6790 echo "${ECHO_T}no
" >&6
6794 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
6795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6796 set dummy ${ncn_progname}; ac_word=$2
6797 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6798 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6799 if test "${ac_cv_prog_WINDRES+set}" = set; then
6800 echo $ECHO_N "(cached
) $ECHO_C" >&6
6802 if test -n "$WINDRES"; then
6803 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6812 ac_cv_prog_WINDRES="${ncn_progname}"
6813 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6821 WINDRES=$ac_cv_prog_WINDRES
6822 if test -n "$WINDRES"; then
6823 echo "$as_me:$LINENO: result
: $WINDRES" >&5
6824 echo "${ECHO_T}$WINDRES" >&6
6826 echo "$as_me:$LINENO: result
: no
" >&5
6827 echo "${ECHO_T}no
" >&6
6831 test -n "$ac_cv_prog_WINDRES" && break
6834 if test -z "$ac_cv_prog_WINDRES" ; then
6836 if test $build = $host ; then
6839 WINDRES="${ncn_tool_prefix}$2"
6843 for ncn_progname in objcopy; do
6844 if test -n "$ncn_tool_prefix"; then
6845 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6846 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6847 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6848 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6849 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6850 echo $ECHO_N "(cached
) $ECHO_C" >&6
6852 if test -n "$OBJCOPY"; then
6853 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 test -z "$as_dir" && as_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6862 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
6863 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6871 OBJCOPY=$ac_cv_prog_OBJCOPY
6872 if test -n "$OBJCOPY"; then
6873 echo "$as_me:$LINENO: result
: $OBJCOPY" >&5
6874 echo "${ECHO_T}$OBJCOPY" >&6
6876 echo "$as_me:$LINENO: result
: no
" >&5
6877 echo "${ECHO_T}no
" >&6
6881 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
6882 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6883 set dummy ${ncn_progname}; ac_word=$2
6884 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6885 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6886 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6887 echo $ECHO_N "(cached
) $ECHO_C" >&6
6889 if test -n "$OBJCOPY"; then
6890 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6899 ac_cv_prog_OBJCOPY="${ncn_progname}"
6900 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6908 OBJCOPY=$ac_cv_prog_OBJCOPY
6909 if test -n "$OBJCOPY"; then
6910 echo "$as_me:$LINENO: result
: $OBJCOPY" >&5
6911 echo "${ECHO_T}$OBJCOPY" >&6
6913 echo "$as_me:$LINENO: result
: no
" >&5
6914 echo "${ECHO_T}no
" >&6
6918 test -n "$ac_cv_prog_OBJCOPY" && break
6921 if test -z "$ac_cv_prog_OBJCOPY" ; then
6923 if test $build = $host ; then
6926 OBJCOPY="${ncn_tool_prefix}$2"
6930 for ncn_progname in objdump; do
6931 if test -n "$ncn_tool_prefix"; then
6932 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6933 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6934 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6935 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6936 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6937 echo $ECHO_N "(cached
) $ECHO_C" >&6
6939 if test -n "$OBJDUMP"; then
6940 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
6950 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6958 OBJDUMP=$ac_cv_prog_OBJDUMP
6959 if test -n "$OBJDUMP"; then
6960 echo "$as_me:$LINENO: result
: $OBJDUMP" >&5
6961 echo "${ECHO_T}$OBJDUMP" >&6
6963 echo "$as_me:$LINENO: result
: no
" >&5
6964 echo "${ECHO_T}no
" >&6
6968 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
6969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6970 set dummy ${ncn_progname}; ac_word=$2
6971 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6972 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6973 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6974 echo $ECHO_N "(cached
) $ECHO_C" >&6
6976 if test -n "$OBJDUMP"; then
6977 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 test -z "$as_dir" && as_dir=.
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6986 ac_cv_prog_OBJDUMP="${ncn_progname}"
6987 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6995 OBJDUMP=$ac_cv_prog_OBJDUMP
6996 if test -n "$OBJDUMP"; then
6997 echo "$as_me:$LINENO: result
: $OBJDUMP" >&5
6998 echo "${ECHO_T}$OBJDUMP" >&6
7000 echo "$as_me:$LINENO: result
: no
" >&5
7001 echo "${ECHO_T}no
" >&6
7005 test -n "$ac_cv_prog_OBJDUMP" && break
7008 if test -z "$ac_cv_prog_OBJDUMP" ; then
7010 if test $build = $host ; then
7013 OBJDUMP="${ncn_tool_prefix}$2"
7025 # Check whether --with-build-time-tools or --without-build-time-tools was given.
7026 if test "${with_build_time_tools+set}" = set; then
7027 withval="$with_build_time_tools"
7031 with_build_time_tools=
7032 { echo "$as_me:$LINENO: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
7033 echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
7037 with_build_time_tools=
7040 if test -n "$with_build_time_tools"; then
7041 for ncn_progname in cc gcc; do
7042 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
7043 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
7044 if test -x $with_build_time_tools/${ncn_progname}; then
7045 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7046 echo "$as_me:$LINENO: result
: yes" >&5
7047 echo "${ECHO_T}yes" >&6
7050 echo "$as_me:$LINENO: result
: no
" >&5
7051 echo "${ECHO_T}no
" >&6
7056 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7057 for ncn_progname in cc gcc; do
7058 if test -n "$ncn_target_tool_prefix"; then
7059 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7060 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7061 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7062 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7063 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7064 echo $ECHO_N "(cached
) $ECHO_C" >&6
7066 if test -n "$CC_FOR_TARGET"; then
7067 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7076 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7077 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7085 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7086 if test -n "$CC_FOR_TARGET"; then
7087 echo "$as_me:$LINENO: result
: $CC_FOR_TARGET" >&5
7088 echo "${ECHO_T}$CC_FOR_TARGET" >&6
7090 echo "$as_me:$LINENO: result
: no
" >&5
7091 echo "${ECHO_T}no
" >&6
7095 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
7096 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7097 set dummy ${ncn_progname}; ac_word=$2
7098 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7099 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7100 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7101 echo $ECHO_N "(cached
) $ECHO_C" >&6
7103 if test -n "$CC_FOR_TARGET"; then
7104 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7113 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7114 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7122 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7123 if test -n "$CC_FOR_TARGET"; then
7124 echo "$as_me:$LINENO: result
: $CC_FOR_TARGET" >&5
7125 echo "${ECHO_T}$CC_FOR_TARGET" >&6
7127 echo "$as_me:$LINENO: result
: no
" >&5
7128 echo "${ECHO_T}no
" >&6
7132 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
7136 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
7138 if test $build = $target ; then
7141 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
7145 if test -n "$with_build_time_tools"; then
7146 for ncn_progname in c++ g++ cxx gxx; do
7147 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
7148 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
7149 if test -x $with_build_time_tools/${ncn_progname}; then
7150 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7151 echo "$as_me:$LINENO: result
: yes" >&5
7152 echo "${ECHO_T}yes" >&6
7155 echo "$as_me:$LINENO: result
: no
" >&5
7156 echo "${ECHO_T}no
" >&6
7161 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
7162 for ncn_progname in c++ g++ cxx gxx; do
7163 if test -n "$ncn_target_tool_prefix"; then
7164 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7165 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7166 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7167 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7168 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7169 echo $ECHO_N "(cached
) $ECHO_C" >&6
7171 if test -n "$CXX_FOR_TARGET"; then
7172 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7182 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7190 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7191 if test -n "$CXX_FOR_TARGET"; then
7192 echo "$as_me:$LINENO: result
: $CXX_FOR_TARGET" >&5
7193 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
7195 echo "$as_me:$LINENO: result
: no
" >&5
7196 echo "${ECHO_T}no
" >&6
7200 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
7201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7202 set dummy ${ncn_progname}; ac_word=$2
7203 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7204 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7205 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7206 echo $ECHO_N "(cached
) $ECHO_C" >&6
7208 if test -n "$CXX_FOR_TARGET"; then
7209 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 test -z "$as_dir" && as_dir=.
7216 for ac_exec_ext in '' $ac_executable_extensions; do
7217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7218 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
7219 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7227 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7228 if test -n "$CXX_FOR_TARGET"; then
7229 echo "$as_me:$LINENO: result
: $CXX_FOR_TARGET" >&5
7230 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
7232 echo "$as_me:$LINENO: result
: no
" >&5
7233 echo "${ECHO_T}no
" >&6
7237 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
7241 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
7242 set dummy c++ g++ cxx gxx
7243 if test $build = $target ; then
7246 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
7250 if test -n "$with_build_time_tools"; then
7251 for ncn_progname in gcc; do
7252 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
7253 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
7254 if test -x $with_build_time_tools/${ncn_progname}; then
7255 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7256 echo "$as_me:$LINENO: result
: yes" >&5
7257 echo "${ECHO_T}yes" >&6
7260 echo "$as_me:$LINENO: result
: no
" >&5
7261 echo "${ECHO_T}no
" >&6
7266 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
7267 for ncn_progname in gcc; do
7268 if test -n "$ncn_target_tool_prefix"; then
7269 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7270 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7271 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7272 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7273 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
7274 echo $ECHO_N "(cached
) $ECHO_C" >&6
7276 if test -n "$GCC_FOR_TARGET"; then
7277 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
7279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 test -z "$as_dir" && as_dir=.
7284 for ac_exec_ext in '' $ac_executable_extensions; do
7285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7286 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7287 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7295 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
7296 if test -n "$GCC_FOR_TARGET"; then
7297 echo "$as_me:$LINENO: result
: $GCC_FOR_TARGET" >&5
7298 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
7300 echo "$as_me:$LINENO: result
: no
" >&5
7301 echo "${ECHO_T}no
" >&6
7305 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
7306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7307 set dummy ${ncn_progname}; ac_word=$2
7308 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7309 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7310 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
7311 echo $ECHO_N "(cached
) $ECHO_C" >&6
7313 if test -n "$GCC_FOR_TARGET"; then
7314 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 test -z "$as_dir" && as_dir=.
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7323 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
7324 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7332 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
7333 if test -n "$GCC_FOR_TARGET"; then
7334 echo "$as_me:$LINENO: result
: $GCC_FOR_TARGET" >&5
7335 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
7337 echo "$as_me:$LINENO: result
: no
" >&5
7338 echo "${ECHO_T}no
" >&6
7342 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
7346 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
7347 GCC_FOR_TARGET="${CC_FOR_TARGET}"
7350 if test -n "$with_build_time_tools"; then
7351 for ncn_progname in gcj; do
7352 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
7353 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
7354 if test -x $with_build_time_tools/${ncn_progname}; then
7355 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7356 echo "$as_me:$LINENO: result
: yes" >&5
7357 echo "${ECHO_T}yes" >&6
7360 echo "$as_me:$LINENO: result
: no
" >&5
7361 echo "${ECHO_T}no
" >&6
7366 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
7367 for ncn_progname in gcj; do
7368 if test -n "$ncn_target_tool_prefix"; then
7369 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7370 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7371 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7372 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7373 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
7374 echo $ECHO_N "(cached
) $ECHO_C" >&6
7376 if test -n "$GCJ_FOR_TARGET"; then
7377 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 test -z "$as_dir" && as_dir=.
7384 for ac_exec_ext in '' $ac_executable_extensions; do
7385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7386 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7387 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7395 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
7396 if test -n "$GCJ_FOR_TARGET"; then
7397 echo "$as_me:$LINENO: result
: $GCJ_FOR_TARGET" >&5
7398 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
7400 echo "$as_me:$LINENO: result
: no
" >&5
7401 echo "${ECHO_T}no
" >&6
7405 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
7406 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7407 set dummy ${ncn_progname}; ac_word=$2
7408 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7409 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7410 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
7411 echo $ECHO_N "(cached
) $ECHO_C" >&6
7413 if test -n "$GCJ_FOR_TARGET"; then
7414 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
7424 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7432 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
7433 if test -n "$GCJ_FOR_TARGET"; then
7434 echo "$as_me:$LINENO: result
: $GCJ_FOR_TARGET" >&5
7435 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
7437 echo "$as_me:$LINENO: result
: no
" >&5
7438 echo "${ECHO_T}no
" >&6
7442 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
7446 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
7448 if test $build = $target ; then
7451 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
7455 if test -n "$with_build_time_tools"; then
7456 for ncn_progname in gfortran; do
7457 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
7458 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
7459 if test -x $with_build_time_tools/${ncn_progname}; then
7460 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7461 echo "$as_me:$LINENO: result
: yes" >&5
7462 echo "${ECHO_T}yes" >&6
7465 echo "$as_me:$LINENO: result
: no
" >&5
7466 echo "${ECHO_T}no
" >&6
7471 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
7472 for ncn_progname in gfortran; do
7473 if test -n "$ncn_target_tool_prefix"; then
7474 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7475 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7476 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7477 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7478 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7479 echo $ECHO_N "(cached
) $ECHO_C" >&6
7481 if test -n "$GFORTRAN_FOR_TARGET"; then
7482 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 test -z "$as_dir" && as_dir=.
7489 for ac_exec_ext in '' $ac_executable_extensions; do
7490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7491 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7492 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7500 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
7501 if test -n "$GFORTRAN_FOR_TARGET"; then
7502 echo "$as_me:$LINENO: result
: $GFORTRAN_FOR_TARGET" >&5
7503 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
7505 echo "$as_me:$LINENO: result
: no
" >&5
7506 echo "${ECHO_T}no
" >&6
7510 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
7511 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7512 set dummy ${ncn_progname}; ac_word=$2
7513 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7514 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7515 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7516 echo $ECHO_N "(cached
) $ECHO_C" >&6
7518 if test -n "$GFORTRAN_FOR_TARGET"; then
7519 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7528 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
7529 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7537 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
7538 if test -n "$GFORTRAN_FOR_TARGET"; then
7539 echo "$as_me:$LINENO: result
: $GFORTRAN_FOR_TARGET" >&5
7540 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
7542 echo "$as_me:$LINENO: result
: no
" >&5
7543 echo "${ECHO_T}no
" >&6
7547 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
7551 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
7553 if test $build = $target ; then
7554 GFORTRAN_FOR_TARGET="$2"
7556 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
7562 cat > conftest.c << \EOF
7567 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
7568 have_gcc_for_target=yes
7570 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
7571 have_gcc_for_target=no
7578 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7579 if test -n "$with_build_time_tools"; then
7580 echo "$as_me:$LINENO: checking
for ar in $with_build_time_tools" >&5
7581 echo $ECHO_N "checking
for ar in $with_build_time_tools...
$ECHO_C" >&6
7582 if test -x $with_build_time_tools/ar; then
7583 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
7584 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
7585 echo "$as_me:$LINENO: result
: $ac_cv_path_AR_FOR_TARGET" >&5
7586 echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
7588 echo "$as_me:$LINENO: result
: no
" >&5
7589 echo "${ECHO_T}no
" >&6
7591 elif test $build != $host && test $have_gcc_for_target = yes; then
7592 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
7593 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
7594 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
7597 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
7598 # Extract the first word of "ar", so it can be a program name with args.
7599 set dummy ar; ac_word=$2
7600 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7601 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7602 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
7603 echo $ECHO_N "(cached
) $ECHO_C" >&6
7605 case $AR_FOR_TARGET in
7607 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $gcc_cv_tool_dirs
7614 test -z "$as_dir" && as_dir=.
7615 for ac_exec_ext in '' $ac_executable_extensions; do
7616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7617 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7618 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7627 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
7629 if test -n "$AR_FOR_TARGET"; then
7630 echo "$as_me:$LINENO: result
: $AR_FOR_TARGET" >&5
7631 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7633 echo "$as_me:$LINENO: result
: no
" >&5
7634 echo "${ECHO_T}no
" >&6
7638 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7639 if test -n "$with_build_time_tools"; then
7640 for ncn_progname in ar; do
7641 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
7642 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
7643 if test -x $with_build_time_tools/${ncn_progname}; then
7644 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7645 echo "$as_me:$LINENO: result
: yes" >&5
7646 echo "${ECHO_T}yes" >&6
7649 echo "$as_me:$LINENO: result
: no
" >&5
7650 echo "${ECHO_T}no
" >&6
7655 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
7656 for ncn_progname in ar; do
7657 if test -n "$ncn_target_tool_prefix"; then
7658 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7659 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7660 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7661 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7662 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7663 echo $ECHO_N "(cached
) $ECHO_C" >&6
7665 if test -n "$AR_FOR_TARGET"; then
7666 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7675 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7676 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7684 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
7685 if test -n "$AR_FOR_TARGET"; then
7686 echo "$as_me:$LINENO: result
: $AR_FOR_TARGET" >&5
7687 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7689 echo "$as_me:$LINENO: result
: no
" >&5
7690 echo "${ECHO_T}no
" >&6
7694 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
7695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7696 set dummy ${ncn_progname}; ac_word=$2
7697 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7698 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7699 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7700 echo $ECHO_N "(cached
) $ECHO_C" >&6
7702 if test -n "$AR_FOR_TARGET"; then
7703 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 test -z "$as_dir" && as_dir=.
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7712 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
7713 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7721 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
7722 if test -n "$AR_FOR_TARGET"; then
7723 echo "$as_me:$LINENO: result
: $AR_FOR_TARGET" >&5
7724 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7726 echo "$as_me:$LINENO: result
: no
" >&5
7727 echo "${ECHO_T}no
" >&6
7731 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
7735 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
7737 if test $build = $target ; then
7740 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7745 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
7751 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7752 if test -n "$with_build_time_tools"; then
7753 echo "$as_me:$LINENO: checking
for as
in $with_build_time_tools" >&5
7754 echo $ECHO_N "checking
for as
in $with_build_time_tools...
$ECHO_C" >&6
7755 if test -x $with_build_time_tools/as; then
7756 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
7757 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7758 echo "$as_me:$LINENO: result
: $ac_cv_path_AS_FOR_TARGET" >&5
7759 echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
7761 echo "$as_me:$LINENO: result
: no
" >&5
7762 echo "${ECHO_T}no
" >&6
7764 elif test $build != $host && test $have_gcc_for_target = yes; then
7765 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
7766 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
7767 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7770 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
7771 # Extract the first word of "as
", so it can be a program name with args.
7772 set dummy as; ac_word=$2
7773 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7774 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7775 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
7776 echo $ECHO_N "(cached
) $ECHO_C" >&6
7778 case $AS_FOR_TARGET in
7780 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
7783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 for as_dir in $gcc_cv_tool_dirs
7787 test -z "$as_dir" && as_dir=.
7788 for ac_exec_ext in '' $ac_executable_extensions; do
7789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7790 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7791 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7800 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7802 if test -n "$AS_FOR_TARGET"; then
7803 echo "$as_me:$LINENO: result
: $AS_FOR_TARGET" >&5
7804 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7806 echo "$as_me:$LINENO: result
: no
" >&5
7807 echo "${ECHO_T}no
" >&6
7811 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7812 if test -n "$with_build_time_tools"; then
7813 for ncn_progname in as; do
7814 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
7815 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
7816 if test -x $with_build_time_tools/${ncn_progname}; then
7817 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7818 echo "$as_me:$LINENO: result
: yes" >&5
7819 echo "${ECHO_T}yes" >&6
7822 echo "$as_me:$LINENO: result
: no
" >&5
7823 echo "${ECHO_T}no
" >&6
7828 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
7829 for ncn_progname in as; do
7830 if test -n "$ncn_target_tool_prefix"; then
7831 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7832 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7833 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7834 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7835 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7836 echo $ECHO_N "(cached
) $ECHO_C" >&6
7838 if test -n "$AS_FOR_TARGET"; then
7839 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 test -z "$as_dir" && as_dir=.
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7848 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7849 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7857 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
7858 if test -n "$AS_FOR_TARGET"; then
7859 echo "$as_me:$LINENO: result
: $AS_FOR_TARGET" >&5
7860 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7862 echo "$as_me:$LINENO: result
: no
" >&5
7863 echo "${ECHO_T}no
" >&6
7867 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
7868 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7869 set dummy ${ncn_progname}; ac_word=$2
7870 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7871 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7872 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7873 echo $ECHO_N "(cached
) $ECHO_C" >&6
7875 if test -n "$AS_FOR_TARGET"; then
7876 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882 test -z "$as_dir" && as_dir=.
7883 for ac_exec_ext in '' $ac_executable_extensions; do
7884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7885 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
7886 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7894 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
7895 if test -n "$AS_FOR_TARGET"; then
7896 echo "$as_me:$LINENO: result
: $AS_FOR_TARGET" >&5
7897 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7899 echo "$as_me:$LINENO: result
: no
" >&5
7900 echo "${ECHO_T}no
" >&6
7904 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
7908 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
7910 if test $build = $target ; then
7913 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
7918 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7924 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7925 if test -n "$with_build_time_tools"; then
7926 echo "$as_me:$LINENO: checking
for dlltool
in $with_build_time_tools" >&5
7927 echo $ECHO_N "checking
for dlltool
in $with_build_time_tools...
$ECHO_C" >&6
7928 if test -x $with_build_time_tools/dlltool; then
7929 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
7930 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7931 echo "$as_me:$LINENO: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
7932 echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
7934 echo "$as_me:$LINENO: result
: no
" >&5
7935 echo "${ECHO_T}no
" >&6
7937 elif test $build != $host && test $have_gcc_for_target = yes; then
7938 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
7939 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
7940 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7943 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
7944 # Extract the first word of "dlltool
", so it can be a program name with args.
7945 set dummy dlltool; ac_word=$2
7946 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7947 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7948 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
7949 echo $ECHO_N "(cached
) $ECHO_C" >&6
7951 case $DLLTOOL_FOR_TARGET in
7953 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 for as_dir in $gcc_cv_tool_dirs
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7963 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7964 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7973 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
7975 if test -n "$DLLTOOL_FOR_TARGET"; then
7976 echo "$as_me:$LINENO: result
: $DLLTOOL_FOR_TARGET" >&5
7977 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
7979 echo "$as_me:$LINENO: result
: no
" >&5
7980 echo "${ECHO_T}no
" >&6
7984 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7985 if test -n "$with_build_time_tools"; then
7986 for ncn_progname in dlltool; do
7987 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
7988 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
7989 if test -x $with_build_time_tools/${ncn_progname}; then
7990 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7991 echo "$as_me:$LINENO: result
: yes" >&5
7992 echo "${ECHO_T}yes" >&6
7995 echo "$as_me:$LINENO: result
: no
" >&5
7996 echo "${ECHO_T}no
" >&6
8001 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
8002 for ncn_progname in dlltool; do
8003 if test -n "$ncn_target_tool_prefix"; then
8004 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8005 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8006 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8007 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8008 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
8009 echo $ECHO_N "(cached
) $ECHO_C" >&6
8011 if test -n "$DLLTOOL_FOR_TARGET"; then
8012 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 test -z "$as_dir" && as_dir=.
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8021 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8022 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8030 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
8031 if test -n "$DLLTOOL_FOR_TARGET"; then
8032 echo "$as_me:$LINENO: result
: $DLLTOOL_FOR_TARGET" >&5
8033 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
8035 echo "$as_me:$LINENO: result
: no
" >&5
8036 echo "${ECHO_T}no
" >&6
8040 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
8041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8042 set dummy ${ncn_progname}; ac_word=$2
8043 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8044 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8045 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
8046 echo $ECHO_N "(cached
) $ECHO_C" >&6
8048 if test -n "$DLLTOOL_FOR_TARGET"; then
8049 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8058 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
8059 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8067 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
8068 if test -n "$DLLTOOL_FOR_TARGET"; then
8069 echo "$as_me:$LINENO: result
: $DLLTOOL_FOR_TARGET" >&5
8070 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
8072 echo "$as_me:$LINENO: result
: no
" >&5
8073 echo "${ECHO_T}no
" >&6
8077 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
8081 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
8083 if test $build = $target ; then
8084 DLLTOOL_FOR_TARGET="$2"
8086 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
8091 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
8097 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
8098 if test -n "$with_build_time_tools"; then
8099 echo "$as_me:$LINENO: checking
for ld
in $with_build_time_tools" >&5
8100 echo $ECHO_N "checking
for ld
in $with_build_time_tools...
$ECHO_C" >&6
8101 if test -x $with_build_time_tools/ld; then
8102 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
8103 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
8104 echo "$as_me:$LINENO: result
: $ac_cv_path_LD_FOR_TARGET" >&5
8105 echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
8107 echo "$as_me:$LINENO: result
: no
" >&5
8108 echo "${ECHO_T}no
" >&6
8110 elif test $build != $host && test $have_gcc_for_target = yes; then
8111 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
8112 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
8113 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
8116 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8117 # Extract the first word of "ld
", so it can be a program name with args.
8118 set dummy ld; ac_word=$2
8119 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8120 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8121 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
8122 echo $ECHO_N "(cached
) $ECHO_C" >&6
8124 case $LD_FOR_TARGET in
8126 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 for as_dir in $gcc_cv_tool_dirs
8133 test -z "$as_dir" && as_dir=.
8134 for ac_exec_ext in '' $ac_executable_extensions; do
8135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8136 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8137 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8146 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
8148 if test -n "$LD_FOR_TARGET"; then
8149 echo "$as_me:$LINENO: result
: $LD_FOR_TARGET" >&5
8150 echo "${ECHO_T}$LD_FOR_TARGET" >&6
8152 echo "$as_me:$LINENO: result
: no
" >&5
8153 echo "${ECHO_T}no
" >&6
8157 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
8158 if test -n "$with_build_time_tools"; then
8159 for ncn_progname in ld; do
8160 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
8161 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
8162 if test -x $with_build_time_tools/${ncn_progname}; then
8163 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8164 echo "$as_me:$LINENO: result
: yes" >&5
8165 echo "${ECHO_T}yes" >&6
8168 echo "$as_me:$LINENO: result
: no
" >&5
8169 echo "${ECHO_T}no
" >&6
8174 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
8175 for ncn_progname in ld; do
8176 if test -n "$ncn_target_tool_prefix"; then
8177 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8178 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8179 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8180 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8181 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
8182 echo $ECHO_N "(cached
) $ECHO_C" >&6
8184 if test -n "$LD_FOR_TARGET"; then
8185 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191 test -z "$as_dir" && as_dir=.
8192 for ac_exec_ext in '' $ac_executable_extensions; do
8193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8194 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8195 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8203 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
8204 if test -n "$LD_FOR_TARGET"; then
8205 echo "$as_me:$LINENO: result
: $LD_FOR_TARGET" >&5
8206 echo "${ECHO_T}$LD_FOR_TARGET" >&6
8208 echo "$as_me:$LINENO: result
: no
" >&5
8209 echo "${ECHO_T}no
" >&6
8213 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
8214 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8215 set dummy ${ncn_progname}; ac_word=$2
8216 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8217 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8218 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
8219 echo $ECHO_N "(cached
) $ECHO_C" >&6
8221 if test -n "$LD_FOR_TARGET"; then
8222 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 test -z "$as_dir" && as_dir=.
8229 for ac_exec_ext in '' $ac_executable_extensions; do
8230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8231 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
8232 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8240 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
8241 if test -n "$LD_FOR_TARGET"; then
8242 echo "$as_me:$LINENO: result
: $LD_FOR_TARGET" >&5
8243 echo "${ECHO_T}$LD_FOR_TARGET" >&6
8245 echo "$as_me:$LINENO: result
: no
" >&5
8246 echo "${ECHO_T}no
" >&6
8250 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
8254 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
8256 if test $build = $target ; then
8259 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
8264 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
8270 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
8271 if test -n "$with_build_time_tools"; then
8272 echo "$as_me:$LINENO: checking
for lipo
in $with_build_time_tools" >&5
8273 echo $ECHO_N "checking
for lipo
in $with_build_time_tools...
$ECHO_C" >&6
8274 if test -x $with_build_time_tools/lipo; then
8275 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
8276 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
8277 echo "$as_me:$LINENO: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
8278 echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
8280 echo "$as_me:$LINENO: result
: no
" >&5
8281 echo "${ECHO_T}no
" >&6
8283 elif test $build != $host && test $have_gcc_for_target = yes; then
8284 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
8285 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
8286 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
8289 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8290 # Extract the first word of "lipo
", so it can be a program name with args.
8291 set dummy lipo; ac_word=$2
8292 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8293 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8294 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
8295 echo $ECHO_N "(cached
) $ECHO_C" >&6
8297 case $LIPO_FOR_TARGET in
8299 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
8302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303 for as_dir in $gcc_cv_tool_dirs
8306 test -z "$as_dir" && as_dir=.
8307 for ac_exec_ext in '' $ac_executable_extensions; do
8308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8309 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8310 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8319 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
8321 if test -n "$LIPO_FOR_TARGET"; then
8322 echo "$as_me:$LINENO: result
: $LIPO_FOR_TARGET" >&5
8323 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
8325 echo "$as_me:$LINENO: result
: no
" >&5
8326 echo "${ECHO_T}no
" >&6
8330 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
8331 if test -n "$with_build_time_tools"; then
8332 for ncn_progname in lipo; do
8333 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
8334 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
8335 if test -x $with_build_time_tools/${ncn_progname}; then
8336 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8337 echo "$as_me:$LINENO: result
: yes" >&5
8338 echo "${ECHO_T}yes" >&6
8341 echo "$as_me:$LINENO: result
: no
" >&5
8342 echo "${ECHO_T}no
" >&6
8347 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
8348 for ncn_progname in lipo; do
8349 if test -n "$ncn_target_tool_prefix"; then
8350 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8351 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8352 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8353 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8354 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
8355 echo $ECHO_N "(cached
) $ECHO_C" >&6
8357 if test -n "$LIPO_FOR_TARGET"; then
8358 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 test -z "$as_dir" && as_dir=.
8365 for ac_exec_ext in '' $ac_executable_extensions; do
8366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8367 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8368 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8376 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
8377 if test -n "$LIPO_FOR_TARGET"; then
8378 echo "$as_me:$LINENO: result
: $LIPO_FOR_TARGET" >&5
8379 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
8381 echo "$as_me:$LINENO: result
: no
" >&5
8382 echo "${ECHO_T}no
" >&6
8386 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
8387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8388 set dummy ${ncn_progname}; ac_word=$2
8389 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8390 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8391 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
8392 echo $ECHO_N "(cached
) $ECHO_C" >&6
8394 if test -n "$LIPO_FOR_TARGET"; then
8395 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
8397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8401 test -z "$as_dir" && as_dir=.
8402 for ac_exec_ext in '' $ac_executable_extensions; do
8403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8404 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
8405 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8413 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
8414 if test -n "$LIPO_FOR_TARGET"; then
8415 echo "$as_me:$LINENO: result
: $LIPO_FOR_TARGET" >&5
8416 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
8418 echo "$as_me:$LINENO: result
: no
" >&5
8419 echo "${ECHO_T}no
" >&6
8423 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
8427 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
8429 if test $build = $target ; then
8430 LIPO_FOR_TARGET="$2"
8432 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
8437 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
8443 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8444 if test -n "$with_build_time_tools"; then
8445 echo "$as_me:$LINENO: checking
for nm
in $with_build_time_tools" >&5
8446 echo $ECHO_N "checking
for nm
in $with_build_time_tools...
$ECHO_C" >&6
8447 if test -x $with_build_time_tools/nm; then
8448 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
8449 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
8450 echo "$as_me:$LINENO: result
: $ac_cv_path_NM_FOR_TARGET" >&5
8451 echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
8453 echo "$as_me:$LINENO: result
: no
" >&5
8454 echo "${ECHO_T}no
" >&6
8456 elif test $build != $host && test $have_gcc_for_target = yes; then
8457 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
8458 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
8459 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
8462 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8463 # Extract the first word of "nm
", so it can be a program name with args.
8464 set dummy nm; ac_word=$2
8465 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8466 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8467 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
8468 echo $ECHO_N "(cached
) $ECHO_C" >&6
8470 case $NM_FOR_TARGET in
8472 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476 for as_dir in $gcc_cv_tool_dirs
8479 test -z "$as_dir" && as_dir=.
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8482 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8483 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8492 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
8494 if test -n "$NM_FOR_TARGET"; then
8495 echo "$as_me:$LINENO: result
: $NM_FOR_TARGET" >&5
8496 echo "${ECHO_T}$NM_FOR_TARGET" >&6
8498 echo "$as_me:$LINENO: result
: no
" >&5
8499 echo "${ECHO_T}no
" >&6
8503 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8504 if test -n "$with_build_time_tools"; then
8505 for ncn_progname in nm; do
8506 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
8507 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
8508 if test -x $with_build_time_tools/${ncn_progname}; then
8509 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8510 echo "$as_me:$LINENO: result
: yes" >&5
8511 echo "${ECHO_T}yes" >&6
8514 echo "$as_me:$LINENO: result
: no
" >&5
8515 echo "${ECHO_T}no
" >&6
8520 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
8521 for ncn_progname in nm; do
8522 if test -n "$ncn_target_tool_prefix"; then
8523 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8524 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8525 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8526 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8527 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8528 echo $ECHO_N "(cached
) $ECHO_C" >&6
8530 if test -n "$NM_FOR_TARGET"; then
8531 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 test -z "$as_dir" && as_dir=.
8538 for ac_exec_ext in '' $ac_executable_extensions; do
8539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8540 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8541 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8549 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
8550 if test -n "$NM_FOR_TARGET"; then
8551 echo "$as_me:$LINENO: result
: $NM_FOR_TARGET" >&5
8552 echo "${ECHO_T}$NM_FOR_TARGET" >&6
8554 echo "$as_me:$LINENO: result
: no
" >&5
8555 echo "${ECHO_T}no
" >&6
8559 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
8560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8561 set dummy ${ncn_progname}; ac_word=$2
8562 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8563 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8564 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8565 echo $ECHO_N "(cached
) $ECHO_C" >&6
8567 if test -n "$NM_FOR_TARGET"; then
8568 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
8570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8574 test -z "$as_dir" && as_dir=.
8575 for ac_exec_ext in '' $ac_executable_extensions; do
8576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8577 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
8578 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8586 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
8587 if test -n "$NM_FOR_TARGET"; then
8588 echo "$as_me:$LINENO: result
: $NM_FOR_TARGET" >&5
8589 echo "${ECHO_T}$NM_FOR_TARGET" >&6
8591 echo "$as_me:$LINENO: result
: no
" >&5
8592 echo "${ECHO_T}no
" >&6
8596 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
8600 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
8602 if test $build = $target ; then
8605 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
8610 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
8616 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8617 if test -n "$with_build_time_tools"; then
8618 echo "$as_me:$LINENO: checking
for objdump
in $with_build_time_tools" >&5
8619 echo $ECHO_N "checking
for objdump
in $with_build_time_tools...
$ECHO_C" >&6
8620 if test -x $with_build_time_tools/objdump; then
8621 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
8622 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
8623 echo "$as_me:$LINENO: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
8624 echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
8626 echo "$as_me:$LINENO: result
: no
" >&5
8627 echo "${ECHO_T}no
" >&6
8629 elif test $build != $host && test $have_gcc_for_target = yes; then
8630 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
8631 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
8632 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
8635 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8636 # Extract the first word of "objdump
", so it can be a program name with args.
8637 set dummy objdump; ac_word=$2
8638 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8639 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8640 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
8641 echo $ECHO_N "(cached
) $ECHO_C" >&6
8643 case $OBJDUMP_FOR_TARGET in
8645 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649 for as_dir in $gcc_cv_tool_dirs
8652 test -z "$as_dir" && as_dir=.
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8655 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8656 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8665 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8667 if test -n "$OBJDUMP_FOR_TARGET"; then
8668 echo "$as_me:$LINENO: result
: $OBJDUMP_FOR_TARGET" >&5
8669 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8671 echo "$as_me:$LINENO: result
: no
" >&5
8672 echo "${ECHO_T}no
" >&6
8676 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8677 if test -n "$with_build_time_tools"; then
8678 for ncn_progname in objdump; do
8679 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
8680 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
8681 if test -x $with_build_time_tools/${ncn_progname}; then
8682 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8683 echo "$as_me:$LINENO: result
: yes" >&5
8684 echo "${ECHO_T}yes" >&6
8687 echo "$as_me:$LINENO: result
: no
" >&5
8688 echo "${ECHO_T}no
" >&6
8693 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
8694 for ncn_progname in objdump; do
8695 if test -n "$ncn_target_tool_prefix"; then
8696 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8697 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8698 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8699 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8700 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8701 echo $ECHO_N "(cached
) $ECHO_C" >&6
8703 if test -n "$OBJDUMP_FOR_TARGET"; then
8704 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8710 test -z "$as_dir" && as_dir=.
8711 for ac_exec_ext in '' $ac_executable_extensions; do
8712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8713 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8714 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8722 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
8723 if test -n "$OBJDUMP_FOR_TARGET"; then
8724 echo "$as_me:$LINENO: result
: $OBJDUMP_FOR_TARGET" >&5
8725 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8727 echo "$as_me:$LINENO: result
: no
" >&5
8728 echo "${ECHO_T}no
" >&6
8732 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
8733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8734 set dummy ${ncn_progname}; ac_word=$2
8735 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8736 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8737 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8738 echo $ECHO_N "(cached
) $ECHO_C" >&6
8740 if test -n "$OBJDUMP_FOR_TARGET"; then
8741 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747 test -z "$as_dir" && as_dir=.
8748 for ac_exec_ext in '' $ac_executable_extensions; do
8749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8750 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
8751 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8759 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
8760 if test -n "$OBJDUMP_FOR_TARGET"; then
8761 echo "$as_me:$LINENO: result
: $OBJDUMP_FOR_TARGET" >&5
8762 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8764 echo "$as_me:$LINENO: result
: no
" >&5
8765 echo "${ECHO_T}no
" >&6
8769 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
8773 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
8775 if test $build = $target ; then
8776 OBJDUMP_FOR_TARGET="$2"
8778 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8783 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8789 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8790 if test -n "$with_build_time_tools"; then
8791 echo "$as_me:$LINENO: checking
for ranlib
in $with_build_time_tools" >&5
8792 echo $ECHO_N "checking
for ranlib
in $with_build_time_tools...
$ECHO_C" >&6
8793 if test -x $with_build_time_tools/ranlib; then
8794 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
8795 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8796 echo "$as_me:$LINENO: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
8797 echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
8799 echo "$as_me:$LINENO: result
: no
" >&5
8800 echo "${ECHO_T}no
" >&6
8802 elif test $build != $host && test $have_gcc_for_target = yes; then
8803 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
8804 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
8805 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8808 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8809 # Extract the first word of "ranlib
", so it can be a program name with args.
8810 set dummy ranlib; ac_word=$2
8811 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8812 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8813 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
8814 echo $ECHO_N "(cached
) $ECHO_C" >&6
8816 case $RANLIB_FOR_TARGET in
8818 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
8821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8822 for as_dir in $gcc_cv_tool_dirs
8825 test -z "$as_dir" && as_dir=.
8826 for ac_exec_ext in '' $ac_executable_extensions; do
8827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8828 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8829 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8838 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8840 if test -n "$RANLIB_FOR_TARGET"; then
8841 echo "$as_me:$LINENO: result
: $RANLIB_FOR_TARGET" >&5
8842 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8844 echo "$as_me:$LINENO: result
: no
" >&5
8845 echo "${ECHO_T}no
" >&6
8849 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8850 if test -n "$with_build_time_tools"; then
8851 for ncn_progname in ranlib; do
8852 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
8853 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
8854 if test -x $with_build_time_tools/${ncn_progname}; then
8855 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8856 echo "$as_me:$LINENO: result
: yes" >&5
8857 echo "${ECHO_T}yes" >&6
8860 echo "$as_me:$LINENO: result
: no
" >&5
8861 echo "${ECHO_T}no
" >&6
8866 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
8867 for ncn_progname in ranlib; do
8868 if test -n "$ncn_target_tool_prefix"; then
8869 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8870 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8871 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8872 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8873 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8874 echo $ECHO_N "(cached
) $ECHO_C" >&6
8876 if test -n "$RANLIB_FOR_TARGET"; then
8877 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
8879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883 test -z "$as_dir" && as_dir=.
8884 for ac_exec_ext in '' $ac_executable_extensions; do
8885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8886 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8887 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8895 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
8896 if test -n "$RANLIB_FOR_TARGET"; then
8897 echo "$as_me:$LINENO: result
: $RANLIB_FOR_TARGET" >&5
8898 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8900 echo "$as_me:$LINENO: result
: no
" >&5
8901 echo "${ECHO_T}no
" >&6
8905 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
8906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8907 set dummy ${ncn_progname}; ac_word=$2
8908 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8909 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8910 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8911 echo $ECHO_N "(cached
) $ECHO_C" >&6
8913 if test -n "$RANLIB_FOR_TARGET"; then
8914 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
8916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920 test -z "$as_dir" && as_dir=.
8921 for ac_exec_ext in '' $ac_executable_extensions; do
8922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8923 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
8924 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8932 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
8933 if test -n "$RANLIB_FOR_TARGET"; then
8934 echo "$as_me:$LINENO: result
: $RANLIB_FOR_TARGET" >&5
8935 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8937 echo "$as_me:$LINENO: result
: no
" >&5
8938 echo "${ECHO_T}no
" >&6
8942 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
8946 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
8948 if test $build = $target ; then
8949 RANLIB_FOR_TARGET="$2"
8951 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
8956 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8962 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8963 if test -n "$with_build_time_tools"; then
8964 echo "$as_me:$LINENO: checking
for strip
in $with_build_time_tools" >&5
8965 echo $ECHO_N "checking
for strip
in $with_build_time_tools...
$ECHO_C" >&6
8966 if test -x $with_build_time_tools/strip; then
8967 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
8968 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8969 echo "$as_me:$LINENO: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
8970 echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
8972 echo "$as_me:$LINENO: result
: no
" >&5
8973 echo "${ECHO_T}no
" >&6
8975 elif test $build != $host && test $have_gcc_for_target = yes; then
8976 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
8977 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
8978 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8981 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8982 # Extract the first word of "strip
", so it can be a program name with args.
8983 set dummy strip; ac_word=$2
8984 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8985 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8986 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
8987 echo $ECHO_N "(cached
) $ECHO_C" >&6
8989 case $STRIP_FOR_TARGET in
8991 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
8994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8995 for as_dir in $gcc_cv_tool_dirs
8998 test -z "$as_dir" && as_dir=.
8999 for ac_exec_ext in '' $ac_executable_extensions; do
9000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9001 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9002 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9011 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
9013 if test -n "$STRIP_FOR_TARGET"; then
9014 echo "$as_me:$LINENO: result
: $STRIP_FOR_TARGET" >&5
9015 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
9017 echo "$as_me:$LINENO: result
: no
" >&5
9018 echo "${ECHO_T}no
" >&6
9022 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9023 if test -n "$with_build_time_tools"; then
9024 for ncn_progname in strip; do
9025 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
9026 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
9027 if test -x $with_build_time_tools/${ncn_progname}; then
9028 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9029 echo "$as_me:$LINENO: result
: yes" >&5
9030 echo "${ECHO_T}yes" >&6
9033 echo "$as_me:$LINENO: result
: no
" >&5
9034 echo "${ECHO_T}no
" >&6
9039 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
9040 for ncn_progname in strip; do
9041 if test -n "$ncn_target_tool_prefix"; then
9042 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9043 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9044 echo "$as_me:$LINENO: checking
for $ac_word" >&5
9045 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
9046 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
9047 echo $ECHO_N "(cached
) $ECHO_C" >&6
9049 if test -n "$STRIP_FOR_TARGET"; then
9050 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
9052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056 test -z "$as_dir" && as_dir=.
9057 for ac_exec_ext in '' $ac_executable_extensions; do
9058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9059 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9060 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9068 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9069 if test -n "$STRIP_FOR_TARGET"; then
9070 echo "$as_me:$LINENO: result
: $STRIP_FOR_TARGET" >&5
9071 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
9073 echo "$as_me:$LINENO: result
: no
" >&5
9074 echo "${ECHO_T}no
" >&6
9078 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
9079 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9080 set dummy ${ncn_progname}; ac_word=$2
9081 echo "$as_me:$LINENO: checking
for $ac_word" >&5
9082 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
9083 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
9084 echo $ECHO_N "(cached
) $ECHO_C" >&6
9086 if test -n "$STRIP_FOR_TARGET"; then
9087 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
9089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9093 test -z "$as_dir" && as_dir=.
9094 for ac_exec_ext in '' $ac_executable_extensions; do
9095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9096 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
9097 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9105 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9106 if test -n "$STRIP_FOR_TARGET"; then
9107 echo "$as_me:$LINENO: result
: $STRIP_FOR_TARGET" >&5
9108 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
9110 echo "$as_me:$LINENO: result
: no
" >&5
9111 echo "${ECHO_T}no
" >&6
9115 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
9119 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
9121 if test $build = $target ; then
9122 STRIP_FOR_TARGET="$2"
9124 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
9129 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
9135 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9136 if test -n "$with_build_time_tools"; then
9137 echo "$as_me:$LINENO: checking
for windres
in $with_build_time_tools" >&5
9138 echo $ECHO_N "checking
for windres
in $with_build_time_tools...
$ECHO_C" >&6
9139 if test -x $with_build_time_tools/windres; then
9140 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
9141 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
9142 echo "$as_me:$LINENO: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
9143 echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
9145 echo "$as_me:$LINENO: result
: no
" >&5
9146 echo "${ECHO_T}no
" >&6
9148 elif test $build != $host && test $have_gcc_for_target = yes; then
9149 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
9150 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
9151 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
9154 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9155 # Extract the first word of "windres
", so it can be a program name with args.
9156 set dummy windres; ac_word=$2
9157 echo "$as_me:$LINENO: checking
for $ac_word" >&5
9158 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
9159 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
9160 echo $ECHO_N "(cached
) $ECHO_C" >&6
9162 case $WINDRES_FOR_TARGET in
9164 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
9167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9168 for as_dir in $gcc_cv_tool_dirs
9171 test -z "$as_dir" && as_dir=.
9172 for ac_exec_ext in '' $ac_executable_extensions; do
9173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9174 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9175 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9184 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
9186 if test -n "$WINDRES_FOR_TARGET"; then
9187 echo "$as_me:$LINENO: result
: $WINDRES_FOR_TARGET" >&5
9188 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
9190 echo "$as_me:$LINENO: result
: no
" >&5
9191 echo "${ECHO_T}no
" >&6
9195 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9196 if test -n "$with_build_time_tools"; then
9197 for ncn_progname in windres; do
9198 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
9199 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
9200 if test -x $with_build_time_tools/${ncn_progname}; then
9201 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9202 echo "$as_me:$LINENO: result
: yes" >&5
9203 echo "${ECHO_T}yes" >&6
9206 echo "$as_me:$LINENO: result
: no
" >&5
9207 echo "${ECHO_T}no
" >&6
9212 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
9213 for ncn_progname in windres; do
9214 if test -n "$ncn_target_tool_prefix"; then
9215 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9216 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9217 echo "$as_me:$LINENO: checking
for $ac_word" >&5
9218 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
9219 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
9220 echo $ECHO_N "(cached
) $ECHO_C" >&6
9222 if test -n "$WINDRES_FOR_TARGET"; then
9223 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
9225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9229 test -z "$as_dir" && as_dir=.
9230 for ac_exec_ext in '' $ac_executable_extensions; do
9231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9232 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9233 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9241 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
9242 if test -n "$WINDRES_FOR_TARGET"; then
9243 echo "$as_me:$LINENO: result
: $WINDRES_FOR_TARGET" >&5
9244 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
9246 echo "$as_me:$LINENO: result
: no
" >&5
9247 echo "${ECHO_T}no
" >&6
9251 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
9252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9253 set dummy ${ncn_progname}; ac_word=$2
9254 echo "$as_me:$LINENO: checking
for $ac_word" >&5
9255 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
9256 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
9257 echo $ECHO_N "(cached
) $ECHO_C" >&6
9259 if test -n "$WINDRES_FOR_TARGET"; then
9260 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
9262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9266 test -z "$as_dir" && as_dir=.
9267 for ac_exec_ext in '' $ac_executable_extensions; do
9268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9269 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
9270 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9278 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
9279 if test -n "$WINDRES_FOR_TARGET"; then
9280 echo "$as_me:$LINENO: result
: $WINDRES_FOR_TARGET" >&5
9281 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
9283 echo "$as_me:$LINENO: result
: no
" >&5
9284 echo "${ECHO_T}no
" >&6
9288 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
9292 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
9294 if test $build = $target ; then
9295 WINDRES_FOR_TARGET="$2"
9297 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
9302 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
9306 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
9308 echo "$as_me:$LINENO: checking where to
find the target
ar" >&5
9309 echo $ECHO_N "checking where to
find the target
ar...
$ECHO_C" >&6
9310 if test "x
${build}" != "x
${host}" ; then
9311 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
9312 # We already found the complete path
9313 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $AR_FOR_TARGET\`" >&5
9314 echo "${ECHO_T}pre-installed
in \
`dirname $AR_FOR_TARGET\`" >&6
9316 # Canadian cross, just use what we found
9317 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9318 echo "${ECHO_T}pre-installed
" >&6
9322 case " ${configdirs} " in
9327 if test $ok = yes; then
9328 # An in-tree tool is available and we can use it
9329 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
9330 echo "$as_me:$LINENO: result
: just compiled
" >&5
9331 echo "${ECHO_T}just compiled
" >&6
9332 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
9333 # We already found the complete path
9334 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $AR_FOR_TARGET\`" >&5
9335 echo "${ECHO_T}pre-installed
in \
`dirname $AR_FOR_TARGET\`" >&6
9336 elif test "x
$target" = "x
$host"; then
9337 # We can use an host tool
9338 AR_FOR_TARGET='$(AR)'
9339 echo "$as_me:$LINENO: result
: host tool
" >&5
9340 echo "${ECHO_T}host tool
" >&6
9342 # We need a cross tool
9343 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9344 echo "${ECHO_T}pre-installed
" >&6
9348 echo "$as_me:$LINENO: checking where to
find the target as
" >&5
9349 echo $ECHO_N "checking where to
find the target as...
$ECHO_C" >&6
9350 if test "x
${build}" != "x
${host}" ; then
9351 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
9352 # We already found the complete path
9353 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $AS_FOR_TARGET\`" >&5
9354 echo "${ECHO_T}pre-installed
in \
`dirname $AS_FOR_TARGET\`" >&6
9356 # Canadian cross, just use what we found
9357 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9358 echo "${ECHO_T}pre-installed
" >&6
9362 case " ${configdirs} " in
9367 if test $ok = yes; then
9368 # An in-tree tool is available and we can use it
9369 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
9370 echo "$as_me:$LINENO: result
: just compiled
" >&5
9371 echo "${ECHO_T}just compiled
" >&6
9372 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
9373 # We already found the complete path
9374 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $AS_FOR_TARGET\`" >&5
9375 echo "${ECHO_T}pre-installed
in \
`dirname $AS_FOR_TARGET\`" >&6
9376 elif test "x
$target" = "x
$host"; then
9377 # We can use an host tool
9378 AS_FOR_TARGET='$(AS)'
9379 echo "$as_me:$LINENO: result
: host tool
" >&5
9380 echo "${ECHO_T}host tool
" >&6
9382 # We need a cross tool
9383 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9384 echo "${ECHO_T}pre-installed
" >&6
9388 echo "$as_me:$LINENO: checking where to
find the target cc
" >&5
9389 echo $ECHO_N "checking where to
find the target cc...
$ECHO_C" >&6
9390 if test "x
${build}" != "x
${host}" ; then
9391 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
9392 # We already found the complete path
9393 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $CC_FOR_TARGET\`" >&5
9394 echo "${ECHO_T}pre-installed
in \
`dirname $CC_FOR_TARGET\`" >&6
9396 # Canadian cross, just use what we found
9397 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9398 echo "${ECHO_T}pre-installed
" >&6
9402 case " ${configdirs} " in
9407 if test $ok = yes; then
9408 # An in-tree tool is available and we can use it
9409 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
9410 echo "$as_me:$LINENO: result
: just compiled
" >&5
9411 echo "${ECHO_T}just compiled
" >&6
9412 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
9413 # We already found the complete path
9414 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $CC_FOR_TARGET\`" >&5
9415 echo "${ECHO_T}pre-installed
in \
`dirname $CC_FOR_TARGET\`" >&6
9416 elif test "x
$target" = "x
$host"; then
9417 # We can use an host tool
9418 CC_FOR_TARGET='$(CC)'
9419 echo "$as_me:$LINENO: result
: host tool
" >&5
9420 echo "${ECHO_T}host tool
" >&6
9422 # We need a cross tool
9423 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9424 echo "${ECHO_T}pre-installed
" >&6
9428 echo "$as_me:$LINENO: checking where to
find the target c
++" >&5
9429 echo $ECHO_N "checking where to
find the target c
++...
$ECHO_C" >&6
9430 if test "x
${build}" != "x
${host}" ; then
9431 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
9432 # We already found the complete path
9433 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $CXX_FOR_TARGET\`" >&5
9434 echo "${ECHO_T}pre-installed
in \
`dirname $CXX_FOR_TARGET\`" >&6
9436 # Canadian cross, just use what we found
9437 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9438 echo "${ECHO_T}pre-installed
" >&6
9442 case " ${configdirs} " in
9446 case ,${enable_languages}, in
9450 if test $ok = yes; then
9451 # An in-tree tool is available and we can use it
9452 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'
9453 echo "$as_me:$LINENO: result
: just compiled
" >&5
9454 echo "${ECHO_T}just compiled
" >&6
9455 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
9456 # We already found the complete path
9457 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $CXX_FOR_TARGET\`" >&5
9458 echo "${ECHO_T}pre-installed
in \
`dirname $CXX_FOR_TARGET\`" >&6
9459 elif test "x
$target" = "x
$host"; then
9460 # We can use an host tool
9461 CXX_FOR_TARGET='$(CXX)'
9462 echo "$as_me:$LINENO: result
: host tool
" >&5
9463 echo "${ECHO_T}host tool
" >&6
9465 # We need a cross tool
9466 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9467 echo "${ECHO_T}pre-installed
" >&6
9471 echo "$as_me:$LINENO: checking where to
find the target c
++ for libstdc
++" >&5
9472 echo $ECHO_N "checking where to
find the target c
++ for libstdc
++...
$ECHO_C" >&6
9473 if test "x
${build}" != "x
${host}" ; then
9474 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
9475 # We already found the complete path
9476 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $RAW_CXX_FOR_TARGET\`" >&5
9477 echo "${ECHO_T}pre-installed
in \
`dirname $RAW_CXX_FOR_TARGET\`" >&6
9479 # Canadian cross, just use what we found
9480 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9481 echo "${ECHO_T}pre-installed
" >&6
9485 case " ${configdirs} " in
9489 case ,${enable_languages}, in
9493 if test $ok = yes; then
9494 # An in-tree tool is available and we can use it
9495 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'
9496 echo "$as_me:$LINENO: result
: just compiled
" >&5
9497 echo "${ECHO_T}just compiled
" >&6
9498 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
9499 # We already found the complete path
9500 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $RAW_CXX_FOR_TARGET\`" >&5
9501 echo "${ECHO_T}pre-installed
in \
`dirname $RAW_CXX_FOR_TARGET\`" >&6
9502 elif test "x
$target" = "x
$host"; then
9503 # We can use an host tool
9504 RAW_CXX_FOR_TARGET='$(CXX)'
9505 echo "$as_me:$LINENO: result
: host tool
" >&5
9506 echo "${ECHO_T}host tool
" >&6
9508 # We need a cross tool
9509 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9510 echo "${ECHO_T}pre-installed
" >&6
9514 echo "$as_me:$LINENO: checking where to
find the target dlltool
" >&5
9515 echo $ECHO_N "checking where to
find the target dlltool...
$ECHO_C" >&6
9516 if test "x
${build}" != "x
${host}" ; then
9517 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
9518 # We already found the complete path
9519 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $DLLTOOL_FOR_TARGET\`" >&5
9520 echo "${ECHO_T}pre-installed
in \
`dirname $DLLTOOL_FOR_TARGET\`" >&6
9522 # Canadian cross, just use what we found
9523 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9524 echo "${ECHO_T}pre-installed
" >&6
9528 case " ${configdirs} " in
9533 if test $ok = yes; then
9534 # An in-tree tool is available and we can use it
9535 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
9536 echo "$as_me:$LINENO: result
: just compiled
" >&5
9537 echo "${ECHO_T}just compiled
" >&6
9538 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
9539 # We already found the complete path
9540 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $DLLTOOL_FOR_TARGET\`" >&5
9541 echo "${ECHO_T}pre-installed
in \
`dirname $DLLTOOL_FOR_TARGET\`" >&6
9542 elif test "x
$target" = "x
$host"; then
9543 # We can use an host tool
9544 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
9545 echo "$as_me:$LINENO: result
: host tool
" >&5
9546 echo "${ECHO_T}host tool
" >&6
9548 # We need a cross tool
9549 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9550 echo "${ECHO_T}pre-installed
" >&6
9554 echo "$as_me:$LINENO: checking where to
find the target gcc
" >&5
9555 echo $ECHO_N "checking where to
find the target gcc...
$ECHO_C" >&6
9556 if test "x
${build}" != "x
${host}" ; then
9557 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
9558 # We already found the complete path
9559 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $GCC_FOR_TARGET\`" >&5
9560 echo "${ECHO_T}pre-installed
in \
`dirname $GCC_FOR_TARGET\`" >&6
9562 # Canadian cross, just use what we found
9563 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9564 echo "${ECHO_T}pre-installed
" >&6
9568 case " ${configdirs} " in
9573 if test $ok = yes; then
9574 # An in-tree tool is available and we can use it
9575 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
9576 echo "$as_me:$LINENO: result
: just compiled
" >&5
9577 echo "${ECHO_T}just compiled
" >&6
9578 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
9579 # We already found the complete path
9580 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $GCC_FOR_TARGET\`" >&5
9581 echo "${ECHO_T}pre-installed
in \
`dirname $GCC_FOR_TARGET\`" >&6
9582 elif test "x
$target" = "x
$host"; then
9583 # We can use an host tool
9584 GCC_FOR_TARGET='$()'
9585 echo "$as_me:$LINENO: result
: host tool
" >&5
9586 echo "${ECHO_T}host tool
" >&6
9588 # We need a cross tool
9589 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9590 echo "${ECHO_T}pre-installed
" >&6
9594 echo "$as_me:$LINENO: checking where to
find the target gcj
" >&5
9595 echo $ECHO_N "checking where to
find the target gcj...
$ECHO_C" >&6
9596 if test "x
${build}" != "x
${host}" ; then
9597 if expr "x
$GCJ_FOR_TARGET" : "x
/" > /dev/null; then
9598 # We already found the complete path
9599 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $GCJ_FOR_TARGET\`" >&5
9600 echo "${ECHO_T}pre-installed
in \
`dirname $GCJ_FOR_TARGET\`" >&6
9602 # Canadian cross, just use what we found
9603 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9604 echo "${ECHO_T}pre-installed
" >&6
9608 case " ${configdirs} " in
9612 case ,${enable_languages}, in
9616 if test $ok = yes; then
9617 # An in-tree tool is available and we can use it
9618 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
9619 echo "$as_me:$LINENO: result
: just compiled
" >&5
9620 echo "${ECHO_T}just compiled
" >&6
9621 elif expr "x
$GCJ_FOR_TARGET" : "x
/" > /dev/null; then
9622 # We already found the complete path
9623 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $GCJ_FOR_TARGET\`" >&5
9624 echo "${ECHO_T}pre-installed
in \
`dirname $GCJ_FOR_TARGET\`" >&6
9625 elif test "x
$target" = "x
$host"; then
9626 # We can use an host tool
9627 GCJ_FOR_TARGET='$(GCJ)'
9628 echo "$as_me:$LINENO: result
: host tool
" >&5
9629 echo "${ECHO_T}host tool
" >&6
9631 # We need a cross tool
9632 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9633 echo "${ECHO_T}pre-installed
" >&6
9637 echo "$as_me:$LINENO: checking where to
find the target gfortran
" >&5
9638 echo $ECHO_N "checking where to
find the target gfortran...
$ECHO_C" >&6
9639 if test "x
${build}" != "x
${host}" ; then
9640 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
9641 # We already found the complete path
9642 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $GFORTRAN_FOR_TARGET\`" >&5
9643 echo "${ECHO_T}pre-installed
in \
`dirname $GFORTRAN_FOR_TARGET\`" >&6
9645 # Canadian cross, just use what we found
9646 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9647 echo "${ECHO_T}pre-installed
" >&6
9651 case " ${configdirs} " in
9655 case ,${enable_languages}, in
9659 if test $ok = yes; then
9660 # An in-tree tool is available and we can use it
9661 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
9662 echo "$as_me:$LINENO: result
: just compiled
" >&5
9663 echo "${ECHO_T}just compiled
" >&6
9664 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
9665 # We already found the complete path
9666 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $GFORTRAN_FOR_TARGET\`" >&5
9667 echo "${ECHO_T}pre-installed
in \
`dirname $GFORTRAN_FOR_TARGET\`" >&6
9668 elif test "x
$target" = "x
$host"; then
9669 # We can use an host tool
9670 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
9671 echo "$as_me:$LINENO: result
: host tool
" >&5
9672 echo "${ECHO_T}host tool
" >&6
9674 # We need a cross tool
9675 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9676 echo "${ECHO_T}pre-installed
" >&6
9680 echo "$as_me:$LINENO: checking where to
find the target ld
" >&5
9681 echo $ECHO_N "checking where to
find the target ld...
$ECHO_C" >&6
9682 if test "x
${build}" != "x
${host}" ; then
9683 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
9684 # We already found the complete path
9685 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $LD_FOR_TARGET\`" >&5
9686 echo "${ECHO_T}pre-installed
in \
`dirname $LD_FOR_TARGET\`" >&6
9688 # Canadian cross, just use what we found
9689 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9690 echo "${ECHO_T}pre-installed
" >&6
9694 case " ${configdirs} " in
9699 if test $ok = yes; then
9700 # An in-tree tool is available and we can use it
9701 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
9702 echo "$as_me:$LINENO: result
: just compiled
" >&5
9703 echo "${ECHO_T}just compiled
" >&6
9704 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
9705 # We already found the complete path
9706 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $LD_FOR_TARGET\`" >&5
9707 echo "${ECHO_T}pre-installed
in \
`dirname $LD_FOR_TARGET\`" >&6
9708 elif test "x
$target" = "x
$host"; then
9709 # We can use an host tool
9710 LD_FOR_TARGET='$(LD)'
9711 echo "$as_me:$LINENO: result
: host tool
" >&5
9712 echo "${ECHO_T}host tool
" >&6
9714 # We need a cross tool
9715 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9716 echo "${ECHO_T}pre-installed
" >&6
9720 echo "$as_me:$LINENO: checking where to
find the target lipo
" >&5
9721 echo $ECHO_N "checking where to
find the target lipo...
$ECHO_C" >&6
9722 if test "x
${build}" != "x
${host}" ; then
9723 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
9724 # We already found the complete path
9725 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $LIPO_FOR_TARGET\`" >&5
9726 echo "${ECHO_T}pre-installed
in \
`dirname $LIPO_FOR_TARGET\`" >&6
9728 # Canadian cross, just use what we found
9729 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9730 echo "${ECHO_T}pre-installed
" >&6
9733 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
9734 # We already found the complete path
9735 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $LIPO_FOR_TARGET\`" >&5
9736 echo "${ECHO_T}pre-installed
in \
`dirname $LIPO_FOR_TARGET\`" >&6
9737 elif test "x
$target" = "x
$host"; then
9738 # We can use an host tool
9739 LIPO_FOR_TARGET='$(LIPO)'
9740 echo "$as_me:$LINENO: result
: host tool
" >&5
9741 echo "${ECHO_T}host tool
" >&6
9743 # We need a cross tool
9744 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9745 echo "${ECHO_T}pre-installed
" >&6
9749 echo "$as_me:$LINENO: checking where to
find the target nm
" >&5
9750 echo $ECHO_N "checking where to
find the target nm...
$ECHO_C" >&6
9751 if test "x
${build}" != "x
${host}" ; then
9752 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
9753 # We already found the complete path
9754 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $NM_FOR_TARGET\`" >&5
9755 echo "${ECHO_T}pre-installed
in \
`dirname $NM_FOR_TARGET\`" >&6
9757 # Canadian cross, just use what we found
9758 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9759 echo "${ECHO_T}pre-installed
" >&6
9763 case " ${configdirs} " in
9768 if test $ok = yes; then
9769 # An in-tree tool is available and we can use it
9770 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
9771 echo "$as_me:$LINENO: result
: just compiled
" >&5
9772 echo "${ECHO_T}just compiled
" >&6
9773 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
9774 # We already found the complete path
9775 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $NM_FOR_TARGET\`" >&5
9776 echo "${ECHO_T}pre-installed
in \
`dirname $NM_FOR_TARGET\`" >&6
9777 elif test "x
$target" = "x
$host"; then
9778 # We can use an host tool
9779 NM_FOR_TARGET='$(NM)'
9780 echo "$as_me:$LINENO: result
: host tool
" >&5
9781 echo "${ECHO_T}host tool
" >&6
9783 # We need a cross tool
9784 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9785 echo "${ECHO_T}pre-installed
" >&6
9789 echo "$as_me:$LINENO: checking where to
find the target objdump
" >&5
9790 echo $ECHO_N "checking where to
find the target objdump...
$ECHO_C" >&6
9791 if test "x
${build}" != "x
${host}" ; then
9792 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
9793 # We already found the complete path
9794 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $OBJDUMP_FOR_TARGET\`" >&5
9795 echo "${ECHO_T}pre-installed
in \
`dirname $OBJDUMP_FOR_TARGET\`" >&6
9797 # Canadian cross, just use what we found
9798 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9799 echo "${ECHO_T}pre-installed
" >&6
9803 case " ${configdirs} " in
9808 if test $ok = yes; then
9809 # An in-tree tool is available and we can use it
9810 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
9811 echo "$as_me:$LINENO: result
: just compiled
" >&5
9812 echo "${ECHO_T}just compiled
" >&6
9813 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
9814 # We already found the complete path
9815 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $OBJDUMP_FOR_TARGET\`" >&5
9816 echo "${ECHO_T}pre-installed
in \
`dirname $OBJDUMP_FOR_TARGET\`" >&6
9817 elif test "x
$target" = "x
$host"; then
9818 # We can use an host tool
9819 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
9820 echo "$as_me:$LINENO: result
: host tool
" >&5
9821 echo "${ECHO_T}host tool
" >&6
9823 # We need a cross tool
9824 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9825 echo "${ECHO_T}pre-installed
" >&6
9829 echo "$as_me:$LINENO: checking where to
find the target ranlib
" >&5
9830 echo $ECHO_N "checking where to
find the target ranlib...
$ECHO_C" >&6
9831 if test "x
${build}" != "x
${host}" ; then
9832 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
9833 # We already found the complete path
9834 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $RANLIB_FOR_TARGET\`" >&5
9835 echo "${ECHO_T}pre-installed
in \
`dirname $RANLIB_FOR_TARGET\`" >&6
9837 # Canadian cross, just use what we found
9838 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9839 echo "${ECHO_T}pre-installed
" >&6
9843 case " ${configdirs} " in
9848 if test $ok = yes; then
9849 # An in-tree tool is available and we can use it
9850 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
9851 echo "$as_me:$LINENO: result
: just compiled
" >&5
9852 echo "${ECHO_T}just compiled
" >&6
9853 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
9854 # We already found the complete path
9855 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $RANLIB_FOR_TARGET\`" >&5
9856 echo "${ECHO_T}pre-installed
in \
`dirname $RANLIB_FOR_TARGET\`" >&6
9857 elif test "x
$target" = "x
$host"; then
9858 # We can use an host tool
9859 RANLIB_FOR_TARGET='$(RANLIB)'
9860 echo "$as_me:$LINENO: result
: host tool
" >&5
9861 echo "${ECHO_T}host tool
" >&6
9863 # We need a cross tool
9864 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9865 echo "${ECHO_T}pre-installed
" >&6
9869 echo "$as_me:$LINENO: checking where to
find the target strip
" >&5
9870 echo $ECHO_N "checking where to
find the target strip...
$ECHO_C" >&6
9871 if test "x
${build}" != "x
${host}" ; then
9872 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
9873 # We already found the complete path
9874 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $STRIP_FOR_TARGET\`" >&5
9875 echo "${ECHO_T}pre-installed
in \
`dirname $STRIP_FOR_TARGET\`" >&6
9877 # Canadian cross, just use what we found
9878 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9879 echo "${ECHO_T}pre-installed
" >&6
9883 case " ${configdirs} " in
9888 if test $ok = yes; then
9889 # An in-tree tool is available and we can use it
9890 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
9891 echo "$as_me:$LINENO: result
: just compiled
" >&5
9892 echo "${ECHO_T}just compiled
" >&6
9893 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
9894 # We already found the complete path
9895 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $STRIP_FOR_TARGET\`" >&5
9896 echo "${ECHO_T}pre-installed
in \
`dirname $STRIP_FOR_TARGET\`" >&6
9897 elif test "x
$target" = "x
$host"; then
9898 # We can use an host tool
9899 STRIP_FOR_TARGET='$(STRIP)'
9900 echo "$as_me:$LINENO: result
: host tool
" >&5
9901 echo "${ECHO_T}host tool
" >&6
9903 # We need a cross tool
9904 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9905 echo "${ECHO_T}pre-installed
" >&6
9909 echo "$as_me:$LINENO: checking where to
find the target windres
" >&5
9910 echo $ECHO_N "checking where to
find the target windres...
$ECHO_C" >&6
9911 if test "x
${build}" != "x
${host}" ; then
9912 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
9913 # We already found the complete path
9914 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $WINDRES_FOR_TARGET\`" >&5
9915 echo "${ECHO_T}pre-installed
in \
`dirname $WINDRES_FOR_TARGET\`" >&6
9917 # Canadian cross, just use what we found
9918 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9919 echo "${ECHO_T}pre-installed
" >&6
9923 case " ${configdirs} " in
9928 if test $ok = yes; then
9929 # An in-tree tool is available and we can use it
9930 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
9931 echo "$as_me:$LINENO: result
: just compiled
" >&5
9932 echo "${ECHO_T}just compiled
" >&6
9933 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
9934 # We already found the complete path
9935 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $WINDRES_FOR_TARGET\`" >&5
9936 echo "${ECHO_T}pre-installed
in \
`dirname $WINDRES_FOR_TARGET\`" >&6
9937 elif test "x
$target" = "x
$host"; then
9938 # We can use an host tool
9939 WINDRES_FOR_TARGET='$(WINDRES)'
9940 echo "$as_me:$LINENO: result
: host tool
" >&5
9941 echo "${ECHO_T}host tool
" >&6
9943 # We need a cross tool
9944 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9945 echo "${ECHO_T}pre-installed
" >&6
9953 # Certain tools may need extra flags.
9954 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
9955 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
9956 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
9958 # When building target libraries, except in a Canadian cross, we use
9959 # the same toolchain as the compiler we just built.
9960 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
9961 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
9962 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
9963 if test $host = $build; then
9964 case " $configdirs " in
9966 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
9967 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
9968 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
9977 echo "$as_me:$LINENO: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
9978 echo $ECHO_N "checking whether to
enable maintainer-specific portions of Makefiles...
$ECHO_C" >&6
9979 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9980 if test "${enable_maintainer_mode+set}" = set; then
9981 enableval="$enable_maintainer_mode"
9982 USE_MAINTAINER_MODE=$enableval
9984 USE_MAINTAINER_MODE=no
9986 echo "$as_me:$LINENO: result
: $USE_MAINTAINER_MODE" >&5
9987 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9990 if test "$USE_MAINTAINER_MODE" = yes; then
9991 MAINTAINER_MODE_TRUE=
9992 MAINTAINER_MODE_FALSE='#'
9994 MAINTAINER_MODE_TRUE='#'
9995 MAINTAINER_MODE_FALSE=
9997 MAINT=$MAINTAINER_MODE_TRUE
9999 # ---------------------
10000 # GCC bootstrap support
10001 # ---------------------
10003 # Stage specific cflags for build.
10008 yes) stage1_cflags="-g -Wa,-J" ;;
10009 *) stage1_cflags="-g -J" ;;
10013 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
10014 if test "$GCC" = yes; then
10015 saved_CFLAGS="$CFLAGS"
10017 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
10018 CFLAGS="$CFLAGS -fkeep-inline-functions"
10019 echo "$as_me:$LINENO: checking whether
-fkeep-inline-functions is supported
" >&5
10020 echo $ECHO_N "checking whether
-fkeep-inline-functions is supported...
$ECHO_C" >&6
10021 cat >conftest.$ac_ext <<_ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10036 rm -f conftest.$ac_objext
10037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10038 (eval $ac_compile) 2>conftest.er1
10040 grep -v '^ *+' conftest.er1 >conftest.err
10042 cat conftest.err >&5
10043 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10044 (exit $ac_status); } &&
10045 { ac_try='test -z "$ac_c_werror_flag"
10046 || test ! -s conftest.err'
10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10051 (exit $ac_status); }; } &&
10052 { ac_try='test -s conftest.$ac_objext'
10053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054 (eval $ac_try) 2>&5
10056 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10057 (exit $ac_status); }; }; then
10058 echo "$as_me:$LINENO: result
: yes" >&5
10059 echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
10061 echo "$as_me: failed program was
:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10064 echo "$as_me:$LINENO: result
: no
" >&5
10065 echo "${ECHO_T}no
" >&6
10067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10069 CFLAGS="$saved_CFLAGS"
10074 # Enable --enable-checking in stage1 of the compiler.
10075 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
10076 if test "${enable_stage1_checking+set}" = set; then
10077 enableval="$enable_stage1_checking"
10078 stage1_checking=--enable-checking=${enable_stage1_checking}
10080 if test "x
$enable_checking" = xno; then
10081 stage1_checking=--enable-checking
10083 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
10088 # Enable -Werror in bootstrap stage2 and later.
10089 # Check whether --enable-werror or --disable-werror was given.
10090 if test "${enable_werror+set}" = set; then
10091 enableval="$enable_werror"
10094 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
10100 case ${enable_werror} in
10101 yes) stage2_werror_flag="--enable-werror-always" ;;
10102 *) stage2_werror_flag="" ;;
10106 # Flags needed to enable html installing and building
10108 # Check whether --with-datarootdir or --without-datarootdir was given.
10109 if test "${with_datarootdir+set}" = set; then
10110 withval="$with_datarootdir"
10111 datarootdir="\
${prefix}/${withval}"
10113 datarootdir="\
${prefix}/share
"
10117 # Check whether --with-docdir or --without-docdir was given.
10118 if test "${with_docdir+set}" = set; then
10119 withval="$with_docdir"
10120 docdir="\
${prefix}/${withval}"
10122 docdir="\
${datarootdir}/doc
"
10126 # Check whether --with-htmldir or --without-htmldir was given.
10127 if test "${with_htmldir+set}" = set; then
10128 withval="$with_htmldir"
10129 htmldir="\
${prefix}/${withval}"
10131 htmldir="\
${docdir}"
10138 ac_config_files="$ac_config_files Makefile
"
10139 cat >confcache <<\_ACEOF
10140 # This file is a shell script that caches the results of configure
10141 # tests run on this system so they can be shared between configure
10142 # scripts and configure runs, see configure's option --config-cache.
10143 # It is not useful on other systems. If it contains results you don't
10144 # want to keep, you may remove or edit it.
10146 # config.status only pays attention to the cache file if you give it
10147 # the --recheck option to rerun configure.
10149 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10150 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10151 # following values.
10155 # The following way of writing the cache mishandles newlines in values,
10156 # but we know of no workaround that is simple, portable, and efficient.
10157 # So, don't put newlines in cache variables' values.
10158 # Ultrix sh set writes to stderr and can't be redirected directly,
10159 # and sets the high bit in the cache file unless we assign to the vars.
10162 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10164 # `set' does not quote correctly, so add quotes (double-quote
10165 # substitution turns \\\\ into \\, and sed turns \\ into \).
10168 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
10171 # `set' quotes correctly as required by POSIX, so do not add quotes.
10173 "s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1=\\2/p
"
10180 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10182 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10184 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10185 if test -w $cache_file; then
10186 test "x
$cache_file" != "x
/dev
/null
" && echo "updating cache
$cache_file"
10187 cat confcache >$cache_file
10189 echo "not updating unwritable cache
$cache_file"
10194 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
10195 # Let make expand exec_prefix.
10196 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
10198 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10199 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
10200 # trailing colons and then remove the whole line if VPATH becomes empty
10201 # (actually we leave an empty line to preserve line numbers).
10202 if test "x
$srcdir" = x.; then
10203 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10204 s/:*\$(srcdir):*/:/;
10205 s/:*\${srcdir}:*/:/;
10207 s/^\([^=]*=[ ]*\):*/\1/;
10213 # Transform confdefs.h into DEFS.
10214 # Protect against shell expansion while executing Makefile rules.
10215 # Protect against Makefile macro expansion.
10217 # If the first sed substitution is executed (which looks for macros that
10218 # take arguments), then we branch to the quote section. Otherwise,
10219 # look for a macro that doesn't take arguments.
10220 cat >confdef2opt.sed <<\_ACEOF
10223 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
10225 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
10229 s,[ `~#$^&*(){}\\|;'"<>?
],\\&,g
10235 # We use echo to avoid assuming a particular line-breaking character.
10236 # The extra dot is to prevent the shell from consuming trailing
10237 # line-breaks from the sub-command output. A line-break within
10238 # single-quotes doesn't work because, if this script is created in a
10239 # platform that uses two characters for line-breaks (e.g., DOS), tr
10241 ac_LF_and_DOT
=`echo; echo .`
10242 DEFS
=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
10243 rm -f confdef2opt.
sed
10248 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10249 # 1. Remove the extension, and $U if already installed.
10250 ac_i
=`echo "$ac_i" |
10251 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10253 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
10254 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
10256 LIBOBJS
=$ac_libobjs
10258 LTLIBOBJS
=$ac_ltlibobjs
10262 : ${CONFIG_STATUS=./config.status}
10263 ac_clean_files_save
=$ac_clean_files
10264 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10265 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10266 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10267 cat >$CONFIG_STATUS <<_ACEOF
10269 # Generated by $as_me.
10270 # Run this file to recreate the current configuration.
10271 # Compiler output produced by configure, useful for debugging
10272 # configure, is in config.log if it exists.
10275 ac_cs_recheck=false
10277 SHELL=\${CONFIG_SHELL-$SHELL}
10280 cat >>$CONFIG_STATUS <<\_ACEOF
10281 ## --------------------- ##
10282 ## M4sh Initialization. ##
10283 ## --------------------- ##
10285 # Be Bourne compatible
10286 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
10289 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10290 # is contrary to our usage. Disable this feature.
10291 alias -g '${1+"$@"}'='"$@"'
10292 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
10295 DUALCASE
=1; export DUALCASE
# for MKS sh
10297 # Support unset when possible.
10298 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
10305 # Work around bugs in pre-3.0 UWIN ksh.
10306 $as_unset ENV MAIL MAILPATH
10313 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10314 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10315 LC_TELEPHONE LC_TIME
10317 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10318 eval $as_var=C
; export $as_var
10324 # Required to use basename.
10325 if expr a
: '\(a\)' >/dev
/null
2>&1; then
10331 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
10332 as_basename
=basename
10338 # Name of the executable.
10339 as_me
=`$as_basename "$0" ||
10340 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10341 X"$0" : 'X\(//\)$' \| \
10342 X"$0" : 'X\(/\)$' \| \
10343 . : '\(.\)' 2>/dev/null ||
10345 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10346 /^X\/\(\/\/\)$/{ s//\1/; q; }
10347 /^X\/\(\/\).*/{ s//\1/; q; }
10351 # PATH needs CR, and LINENO needs CR and PATH.
10352 # Avoid depending upon Character Ranges.
10353 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10354 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10355 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10356 as_cr_digits
='0123456789'
10357 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10359 # The user is always right.
10360 if test "${PATH_SEPARATOR+set}" != set; then
10361 echo "#! /bin/sh" >conf$$.sh
10362 echo "exit 0" >>conf$$.sh
10364 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10373 as_lineno_1
=$LINENO
10374 as_lineno_2
=$LINENO
10375 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
10376 test "x$as_lineno_1" != "x$as_lineno_2" &&
10377 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
10378 # Find who we are. Look in the path if we contain no path at all
10381 *[\\/]* ) as_myself
=$0 ;;
10382 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10383 for as_dir
in $PATH
10386 test -z "$as_dir" && as_dir
=.
10387 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
10392 # We did not find ourselves, most probably we were run as `sh COMMAND'
10393 # in which case we are not to be found in the path.
10394 if test "x$as_myself" = x
; then
10397 if test ! -f "$as_myself"; then
10398 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10399 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10400 { (exit 1); exit 1; }; }
10402 case $CONFIG_SHELL in
10404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10405 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
10408 test -z "$as_dir" && as_dir
=.
10409 for as_base
in sh bash ksh sh5
; do
10412 if ("$as_dir/$as_base" -c '
10413 as_lineno_1=$LINENO
10414 as_lineno_2=$LINENO
10415 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10416 test "x$as_lineno_1" != "x$as_lineno_2" &&
10417 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
10418 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
10419 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
10420 CONFIG_SHELL
=$as_dir/$as_base
10421 export CONFIG_SHELL
10422 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10431 # uniformly replaced by the line number. The first 'sed' inserts a
10432 # line-number line before each line; the second 'sed' does the real
10433 # work. The second script uses 'N' to pair each line-number line
10434 # with the numbered line, and appends trailing '-' during
10435 # substitution so that $LINENO is not a special case at line end.
10436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10437 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10438 sed '=' <$as_myself |
10443 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10446 s,^['$as_cr_digits']*\n,,
10447 ' >$as_me.lineno
&&
10448 chmod +x
$as_me.lineno ||
10449 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10450 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10451 { (exit 1); exit 1; }; }
10453 # Don't try to exec as it changes $[0], causing all sort of problems
10454 # (the dirname of $[0] is not the place where we might find the
10455 # original and so on. Autoconf is especially sensible to this).
10457 # Exit status is that of the last command.
10462 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10463 *c
*,-n*) ECHO_N
= ECHO_C
='
10465 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
10466 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
10469 if expr a
: '\(a\)' >/dev
/null
2>&1; then
10475 rm -f conf$$ conf$$.exe conf$$.
file
10477 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10478 # We could just check for DJGPP; but this test a) works b) is more generic
10479 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10480 if test -f conf$$.exe
; then
10481 # Don't use ln at all; we don't have any links
10486 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10491 rm -f conf$$ conf$$.exe conf$$.
file
10493 if mkdir
-p .
2>/dev
/null
; then
10496 test -d .
/-p && rmdir .
/-p
10500 as_executable_p
="test -f"
10502 # Sed expression to map a string onto a valid CPP name.
10503 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10505 # Sed expression to map a string onto a valid variable name.
10506 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10510 # We need space, tab and new line, in precisely that order.
10520 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10521 # report actual input values of CONFIG_FILES etc. instead of their
10522 # values after options handling. Logging --version etc. is OK.
10526 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10527 ## Running $as_me. ##
10532 This file was extended by $as_me, which was
10533 generated by GNU Autoconf 2.59. Invocation command line was
10535 CONFIG_FILES = $CONFIG_FILES
10536 CONFIG_HEADERS = $CONFIG_HEADERS
10537 CONFIG_LINKS = $CONFIG_LINKS
10538 CONFIG_COMMANDS = $CONFIG_COMMANDS
10542 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10546 # Files that config.status was made for.
10547 if test -n "$ac_config_files"; then
10548 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10551 if test -n "$ac_config_headers"; then
10552 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10555 if test -n "$ac_config_links"; then
10556 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10559 if test -n "$ac_config_commands"; then
10560 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10563 cat >>$CONFIG_STATUS <<\_ACEOF
10566 \`$as_me' instantiates files from templates according to the
10567 current configuration.
10569 Usage: $0 [OPTIONS] [FILE]...
10571 -h, --help print this help, then exit
10572 -V, --version print version number, then exit
10573 -q, --quiet do not print progress messages
10574 -d, --debug don't remove temporary files
10575 --recheck update $as_me by reconfiguring in the same conditions
10576 --file=FILE[:TEMPLATE]
10577 instantiate the configuration file FILE
10579 Configuration files:
10582 Report bugs to <bug-autoconf@gnu.org>."
10585 cat >>$CONFIG_STATUS <<_ACEOF
10588 configured by $0, generated by GNU Autoconf 2.59,
10589 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10591 Copyright (C) 2003 Free Software Foundation, Inc.
10592 This config.status script is free software; the Free Software Foundation
10593 gives unlimited permission to copy, distribute and modify it."
10598 cat >>$CONFIG_STATUS <<\_ACEOF
10599 # If no file are specified by the user, then we need to provide default
10600 # value. By we need to know if files were specified by the user.
10606 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
10607 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
10615 *) # This is not an option, so the user has probably given explicit
10618 ac_need_defaults
=false
;;
10622 # Handling of the options.
10624 cat >>$CONFIG_STATUS <<\_ACEOF
10625 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10627 --version |
--vers* |
-V )
10628 echo "$ac_cs_version"; exit 0 ;;
10630 # Conflict between --help and --header
10631 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10632 Try \`$0 --help' for more information." >&5
10633 echo "$as_me: error: ambiguous option: $1
10634 Try \`$0 --help' for more information." >&2;}
10635 { (exit 1); exit 1; }; };;
10636 --help |
--hel |
-h )
10637 echo "$ac_cs_usage"; exit 0 ;;
10638 --debug |
--d* |
-d )
10640 --file |
--fil |
--fi |
--f )
10642 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
10643 ac_need_defaults
=false
;;
10644 --header |
--heade |
--head |
--hea )
10646 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
10647 ac_need_defaults
=false
;;
10648 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10649 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10652 # This is an error.
10653 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10654 Try \`$0 --help' for more information." >&5
10655 echo "$as_me: error: unrecognized option: $1
10656 Try \`$0 --help' for more information." >&2;}
10657 { (exit 1); exit 1; }; } ;;
10659 *) ac_config_targets
="$ac_config_targets $1" ;;
10665 ac_configure_extra_args
=
10667 if $ac_cs_silent; then
10669 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10673 cat >>$CONFIG_STATUS <<_ACEOF
10674 if \$ac_cs_recheck; then
10675 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10676 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10685 cat >>$CONFIG_STATUS <<\_ACEOF
10686 for ac_config_target
in $ac_config_targets
10688 case "$ac_config_target" in
10689 # Handling of arguments.
10690 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10691 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10692 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10693 { (exit 1); exit 1; }; };;
10697 # If the user did not use the arguments to specify the items to instantiate,
10698 # then the envvar interface is used. Set only those that are not.
10699 # We use the long form for the default assignment because of an extremely
10700 # bizarre bug on SunOS 4.1.3.
10701 if $ac_need_defaults; then
10702 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10705 # Have a temporary directory for convenience. Make it in the build tree
10706 # simply because there is no reason to put it here, and in addition,
10707 # creating and moving files from /tmp can sometimes cause problems.
10708 # Create a temporary directory, and hook for its removal unless debugging.
10711 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10712 trap '{ (exit 1); exit 1; }' 1 2 13 15
10715 # Create a (secure) tmp directory for tmp files.
10718 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10719 test -n "$tmp" && test -d "$tmp"
10722 tmp
=.
/confstat$$
-$RANDOM
10723 (umask 077 && mkdir
$tmp)
10726 echo "$me: cannot create a temporary directory in ." >&2
10727 { (exit 1); exit 1; }
10732 cat >>$CONFIG_STATUS <<_ACEOF
10735 # CONFIG_FILES section.
10738 # No need to generate the scripts if there are no CONFIG_FILES.
10739 # This happens for instance when ./config.status config.h
10740 if test -n "\$CONFIG_FILES"; then
10741 # Protect against being on the right side of a sed subst in config.status.
10742 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10743 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10744 s,@SHELL@,$SHELL,;t t
10745 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10746 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10747 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10748 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10749 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10750 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10751 s,@exec_prefix@,$exec_prefix,;t t
10752 s,@prefix@,$prefix,;t t
10753 s,@program_transform_name@,$program_transform_name,;t t
10754 s,@bindir@,$bindir,;t t
10755 s,@sbindir@,$sbindir,;t t
10756 s,@libexecdir@,$libexecdir,;t t
10757 s,@datadir@,$datadir,;t t
10758 s,@sysconfdir@,$sysconfdir,;t t
10759 s,@sharedstatedir@,$sharedstatedir,;t t
10760 s,@localstatedir@,$localstatedir,;t t
10761 s,@libdir@,$libdir,;t t
10762 s,@includedir@,$includedir,;t t
10763 s,@oldincludedir@,$oldincludedir,;t t
10764 s,@infodir@,$infodir,;t t
10765 s,@mandir@,$mandir,;t t
10766 s,@build_alias@,$build_alias,;t t
10767 s,@host_alias@,$host_alias,;t t
10768 s,@target_alias@,$target_alias,;t t
10769 s,@DEFS@,$DEFS,;t t
10770 s,@ECHO_C@,$ECHO_C,;t t
10771 s,@ECHO_N@,$ECHO_N,;t t
10772 s,@ECHO_T@,$ECHO_T,;t t
10773 s,@LIBS@,$LIBS,;t t
10774 s,@build@,$build,;t t
10775 s,@build_cpu@,$build_cpu,;t t
10776 s,@build_vendor@,$build_vendor,;t t
10777 s,@build_os@,$build_os,;t t
10778 s,@build_noncanonical@,$build_noncanonical,;t t
10779 s,@host_noncanonical@,$host_noncanonical,;t t
10780 s,@target_noncanonical@,$target_noncanonical,;t t
10781 s,@host@,$host,;t t
10782 s,@host_cpu@,$host_cpu,;t t
10783 s,@host_vendor@,$host_vendor,;t t
10784 s,@host_os@,$host_os,;t t
10785 s,@target@,$target,;t t
10786 s,@target_cpu@,$target_cpu,;t t
10787 s,@target_vendor@,$target_vendor,;t t
10788 s,@target_os@,$target_os,;t t
10789 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10790 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10791 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10793 s,@LN_S@,$LN_S,;t t
10794 s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
10795 s,@build_libsubdir@,$build_libsubdir,;t t
10796 s,@build_subdir@,$build_subdir,;t t
10797 s,@host_subdir@,$host_subdir,;t t
10798 s,@target_subdir@,$target_subdir,;t t
10800 s,@CFLAGS@,$CFLAGS,;t t
10801 s,@LDFLAGS@,$LDFLAGS,;t t
10802 s,@CPPFLAGS@,$CPPFLAGS,;t t
10803 s,@ac_ct_CC@,$ac_ct_CC,;t t
10804 s,@EXEEXT@,$EXEEXT,;t t
10805 s,@OBJEXT@,$OBJEXT,;t t
10807 s,@CXXFLAGS@,$CXXFLAGS,;t t
10808 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10809 s,@GNATBIND@,$GNATBIND,;t t
10810 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
10811 s,@GNATMAKE@,$GNATMAKE,;t t
10812 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
10813 s,@do_compare@,$do_compare,;t t
10814 s,@gmplibs@,$gmplibs,;t t
10815 s,@gmpinc@,$gmpinc,;t t
10816 s,@stage1_languages@,$stage1_languages,;t t
10817 s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
10818 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
10819 s,@tooldir@,$tooldir,;t t
10820 s,@build_tooldir@,$build_tooldir,;t t
10821 s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
10822 s,@GDB_TK@,$GDB_TK,;t t
10823 s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
10824 s,@build_configargs@,$build_configargs,;t t
10825 s,@build_configdirs@,$build_configdirs,;t t
10826 s,@host_configargs@,$host_configargs,;t t
10827 s,@configdirs@,$configdirs,;t t
10828 s,@target_configargs@,$target_configargs,;t t
10829 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
10830 s,@config_shell@,$config_shell,;t t
10831 s,@YACC@,$YACC,;t t
10832 s,@BISON@,$BISON,;t t
10835 s,@FLEX@,$FLEX,;t t
10836 s,@MAKEINFO@,$MAKEINFO,;t t
10837 s,@EXPECT@,$EXPECT,;t t
10838 s,@RUNTEST@,$RUNTEST,;t t
10841 s,@DLLTOOL@,$DLLTOOL,;t t
10843 s,@LIPO@,$LIPO,;t t
10845 s,@RANLIB@,$RANLIB,;t t
10846 s,@STRIP@,$STRIP,;t t
10847 s,@WINDRES@,$WINDRES,;t t
10848 s,@OBJCOPY@,$OBJCOPY,;t t
10849 s,@OBJDUMP@,$OBJDUMP,;t t
10850 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
10851 s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
10852 s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
10853 s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
10854 s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
10855 s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
10856 s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
10857 s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
10858 s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
10859 s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
10860 s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
10861 s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
10862 s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
10863 s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
10864 s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
10865 s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
10866 s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
10867 s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
10868 s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
10869 s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
10870 s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
10871 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10872 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10873 s,@MAINT@,$MAINT,;t t
10874 s,@stage1_cflags@,$stage1_cflags,;t t
10875 s,@stage1_checking@,$stage1_checking,;t t
10876 s,@stage2_werror_flag@,$stage2_werror_flag,;t t
10877 s,@datarootdir@,$datarootdir,;t t
10878 s,@docdir@,$docdir,;t t
10879 s,@htmldir@,$htmldir,;t t
10880 s,@LIBOBJS@,$LIBOBJS,;t t
10881 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10882 /@serialization_dependencies@/r $serialization_dependencies
10883 s,@serialization_dependencies@,,;t t
10884 /@host_makefile_frag@/r $host_makefile_frag
10885 s,@host_makefile_frag@,,;t t
10886 /@target_makefile_frag@/r $target_makefile_frag
10887 s,@target_makefile_frag@,,;t t
10888 /@alphaieee_frag@/r $alphaieee_frag
10889 s,@alphaieee_frag@,,;t t
10890 /@ospace_frag@/r $ospace_frag
10891 s,@ospace_frag@,,;t t
10896 cat >>$CONFIG_STATUS <<\_ACEOF
10897 # Split the substitutions into bite-sized pieces for seds with
10898 # small command number limits, like on Digital OSF/1 and HP-UX.
10899 ac_max_sed_lines
=48
10900 ac_sed_frag
=1 # Number of current file.
10901 ac_beg
=1 # First line for current file.
10902 ac_end
=$ac_max_sed_lines # Line after last line for current file.
10905 while $ac_more_lines; do
10906 if test $ac_beg -gt 1; then
10907 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
10909 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
10911 if test ! -s $tmp/subs.frag
; then
10912 ac_more_lines
=false
10914 # The purpose of the label and of the branching condition is to
10915 # speed up the sed processing (if there are no `@' at all, there
10916 # is no need to browse any of the substitutions).
10917 # These are the two extra sed commands mentioned above.
10919 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
10920 if test -z "$ac_sed_cmds"; then
10921 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
10923 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10925 ac_sed_frag
=`expr $ac_sed_frag + 1`
10927 ac_end
=`expr $ac_end + $ac_max_sed_lines`
10930 if test -z "$ac_sed_cmds"; then
10933 fi # test -n "$CONFIG_FILES"
10936 cat >>$CONFIG_STATUS <<\_ACEOF
10937 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
10938 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10940 - |
*:- |
*:-:* ) # input from stdin
10942 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10943 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10944 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10945 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10946 * ) ac_file_in
=$ac_file.
in ;;
10949 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10950 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
10951 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10952 X"$ac_file" : 'X\(//\)[^/]' \| \
10953 X"$ac_file" : 'X\(//\)$' \| \
10954 X"$ac_file" : 'X\(/\)' \| \
10955 . : '\(.\)' 2>/dev/null ||
10957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10958 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10959 /^X\(\/\/\)$/{ s//\1/; q; }
10960 /^X\(\/\).*/{ s//\1/; q; }
10962 { if $as_mkdir_p; then
10967 while test ! -d "$as_dir"; do
10968 as_dirs
="$as_dir $as_dirs"
10969 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
10970 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10971 X"$as_dir" : 'X\(//\)[^/]' \| \
10972 X"$as_dir" : 'X\(//\)$' \| \
10973 X"$as_dir" : 'X\(/\)' \| \
10974 . : '\(.\)' 2>/dev/null ||
10976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10977 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10978 /^X\(\/\/\)$/{ s//\1/; q; }
10979 /^X\(\/\).*/{ s//\1/; q; }
10982 test ! -n "$as_dirs" || mkdir
$as_dirs
10983 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10984 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10985 { (exit 1); exit 1; }; }; }
10989 if test "$ac_dir" != .
; then
10990 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10991 # A "../" for each directory in $ac_dir_suffix.
10992 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10994 ac_dir_suffix
= ac_top_builddir
=
10998 .
) # No --srcdir option. We are building in place.
11000 if test -z "$ac_top_builddir"; then
11003 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
11005 [\\/]* | ?
:[\\/]* ) # Absolute path.
11006 ac_srcdir
=$srcdir$ac_dir_suffix;
11007 ac_top_srcdir
=$srcdir ;;
11008 *) # Relative path.
11009 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
11010 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
11013 # Do not use `cd foo && pwd` to compute absolute paths, because
11014 # the directories may not exist.
11016 .
) ac_abs_builddir
="$ac_dir";;
11019 .
) ac_abs_builddir
=`pwd`;;
11020 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
11021 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
11024 case $ac_abs_builddir in
11025 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
11027 case ${ac_top_builddir}.
in
11028 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
11029 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
11030 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
11033 case $ac_abs_builddir in
11034 .
) ac_abs_srcdir
=$ac_srcdir;;
11037 .
) ac_abs_srcdir
=$ac_abs_builddir;;
11038 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
11039 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
11042 case $ac_abs_builddir in
11043 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
11045 case $ac_top_srcdir in
11046 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
11047 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
11048 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
11054 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11055 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
11058 if test x
"$ac_file" != x-
; then
11059 { echo "$as_me:$LINENO: creating $ac_file" >&5
11060 echo "$as_me: creating $ac_file" >&6;}
11063 # Let's still pretend it is `configure' which instantiates (i.e., don't
11064 # use $as_me), people would be surprised to read:
11065 # /* config.h. Generated by config.status. */
11066 if test x
"$ac_file" = x-
; then
11069 configure_input
="$ac_file. "
11071 configure_input
=$configure_input"Generated from `echo $ac_file_in |
11072 sed 's,.*/,,'` by configure."
11074 # First look for the input files in the build tree, otherwise in the
11076 ac_file_inputs
=`IFS=:
11077 for f in $ac_file_in; do
11079 -) echo $tmp/stdin ;;
11081 # Absolute (can't be DOS-style, as IFS=:)
11082 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11083 echo "$as_me: error: cannot find input file: $f" >&2;}
11084 { (exit 1); exit 1; }; }
11087 if test -f "$f"; then
11090 elif test -f "$srcdir/$f"; then
11095 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11096 echo "$as_me: error: cannot find input file: $f" >&2;}
11097 { (exit 1); exit 1; }; }
11100 done` ||
{ (exit 1); exit 1; }
11102 cat >>$CONFIG_STATUS <<_ACEOF
11106 cat >>$CONFIG_STATUS <<\_ACEOF
11108 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11109 s
,@configure_input@
,$configure_input,;t t
11110 s
,@srcdir@
,$ac_srcdir,;t t
11111 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
11112 s
,@top_srcdir@
,$ac_top_srcdir,;t t
11113 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
11114 s
,@builddir@
,$ac_builddir,;t t
11115 s
,@abs_builddir@
,$ac_abs_builddir,;t t
11116 s
,@top_builddir@
,$ac_top_builddir,;t t
11117 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
11118 s
,@INSTALL@
,$ac_INSTALL,;t t
11119 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11121 if test x"$ac_file" != x-; then
11122 mv $tmp/out $ac_file
11131 cat >>$CONFIG_STATUS <<\_ACEOF
11133 { (exit 0); exit 0; }
11135 chmod +x $CONFIG_STATUS
11136 ac_clean_files=$ac_clean_files_save
11139 # configure is writing to config.log, and then calls config.status.
11140 # config.status does its own redirection, appending to config.log.
11141 # Unfortunately, on DOS this fails, as config.log is still kept open
11142 # by configure, so config.status won't be able to write to it; its
11143 # output is simply discarded. So we exec the FD to /dev/null,
11144 # effectively closing config.log, so it can be properly (re)opened and
11145 # appended to by config.status. When coming back to configure, we
11146 # need to make the FD available again.
11147 if test "$no_create" != yes; then
11149 ac_config_status_args=
11150 test "$silent" = yes &&
11151 ac_config_status_args="$ac_config_status_args --quiet"
11153 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11155 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11156 # would make configure fail if this is the last instruction.
11157 $ac_cs_success || { (exit 1); exit 1; }