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.
1619 # Quote arguments with shell meta charatcers.
1620 TOPLEVEL_CONFIGURE_ARGUMENTS
=
1621 set -- "$progname" "$@"
1624 *" "*|
*" "*|
*\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?*)
1625 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1626 # if the argument is of the form -foo=baz, quote the baz part only
1627 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1630 # Add the quoted argument to the list.
1631 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1633 # Remove the initial space we just introduced and, as these will be
1634 # expanded by make, quote '$'.
1635 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1638 moveifchange
=${srcdir}/move-if-change
1640 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
1642 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
1644 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1645 INSTALL
="${srcpwd}/install-sh -c"
1648 # Set srcdir to "." if that's what it is.
1649 # This is important for multilib support.
1651 if test "${pwd}" = "${srcpwd}" ; then
1659 ### To add a new directory to the tree, first choose whether it is a target
1660 ### or a host dependent tool. Then put it into the appropriate list
1661 ### (library or tools, host or target), doing a dependency sort.
1663 # Subdirs will be configured in the order listed in build_configdirs,
1664 # configdirs, or target_configdirs; see the serialization section below.
1666 # Dependency sorting is only needed when *configuration* must be done in
1667 # a particular order. In all cases a dependency should be specified in
1668 # the Makefile, whether or not it's implicitly specified here.
1670 # Double entries in build_configdirs, configdirs, or target_configdirs may
1671 # cause circular dependencies and break everything horribly.
1673 # these library is used by various programs built for the build
1676 build_libs
="build-libiberty"
1678 # these tools are built for the build environment
1679 build_tools
="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1681 # these libraries are used by various programs built for the host environment
1683 host_libs
="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
1685 # these tools are built for the host environment
1686 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1687 # know that we are building the simulator.
1688 # binutils, gas and ld appear in that order because it makes sense to run
1689 # "make check" in that particular order.
1690 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"
1692 # libgcj represents the runtime libraries only used by gcj.
1693 libgcj
="target-libffi \
1698 # these libraries are built for the target environment, and are built after
1699 # the host libraries and the host tools (which may be a cross compiler)
1701 target_libraries
="target-libgcc \
1705 target-libstdc++-v3 \
1708 target-libgfortran \
1715 # these tools are built using the target libraries, and are intended to
1716 # run only in the target environment
1718 # note: any program that *uses* libraries that are in the "target_libraries"
1719 # list belongs in this list. those programs are also very likely
1720 # candidates for the "native_only" list which follows
1722 target_tools
="target-examples target-groff target-gperf target-rda"
1724 ################################################################################
1726 ## All tools belong in one of the four categories, and are assigned above
1727 ## We assign ${configdirs} this way to remove all embedded newlines. This
1728 ## is important because configure will choke if they ever get through.
1729 ## ${configdirs} is directories we build using the host tools.
1730 ## ${target_configdirs} is directories we build using the target tools.
1731 configdirs
=`echo ${host_libs} ${host_tools}`
1732 target_configdirs
=`echo ${target_libraries} ${target_tools}`
1733 build_configdirs
=`echo ${build_libs} ${build_tools}`
1735 ################################################################################
1737 srcname
="gnu development package"
1739 # This gets set non-empty for some net releases of packages.
1742 # Define is_cross_compiler to save on calls to 'test'.
1744 if test x
"${host}" = x
"${target}" ; then
1745 is_cross_compiler
=no
1747 is_cross_compiler
=yes
1750 # Find the build and target subdir names.
1752 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1753 # have matching libraries, they should use host libraries: Makefile.tpl
1754 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1755 # However, they still use the build modules, because the corresponding
1756 # host modules (e.g. bison) are only built for the host when bootstrap
1758 # - build_subdir is where we find build modules, and never changes.
1759 # - build_libsubdir is where we find build libraries, and can be overridden.
1761 # Prefix 'build-' so this never conflicts with target_subdir.
1762 build_subdir
="build-${build_noncanonical}"
1764 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1765 if test "${with_build_libsubdir+set}" = set; then
1766 withval
="$with_build_libsubdir"
1767 build_libsubdir
="$withval"
1769 build_libsubdir
="$build_subdir"
1771 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1772 if ( test $srcdir = .
&& test -d gcc
) \
1773 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
1774 host_subdir
="host-${host_noncanonical}"
1779 target_subdir
=${target_noncanonical}
1782 # Skipdirs are removed silently.
1784 # Noconfigdirs are removed loudly.
1788 # Make sure we don't let GNU ld be added if we didn't want it.
1789 if test x
$with_gnu_ld = xno
; then
1791 noconfigdirs
="$noconfigdirs ld"
1795 # Make sure we don't let GNU as be added if we didn't want it.
1796 if test x
$with_gnu_as = xno
; then
1798 noconfigdirs
="$noconfigdirs gas"
1801 # some tools are so dependent upon X11 that if we're not building with X,
1802 # it's not even worth trying to configure, much less build, that tool.
1805 yes |
"") ;; # the default value for this tree is that X11 is available
1807 skipdirs
="${skipdirs} tk itcl libgui"
1808 # We won't be able to build gdbtk without X.
1811 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1814 # Some tools are only suitable for building in a "native" situation.
1815 # Remove these if host!=target.
1816 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"
1818 # Similarly, some are only suitable for cross toolchains.
1819 # Remove these if host=target.
1820 cross_only
="target-libgloss target-newlib target-opcodes"
1822 case $is_cross_compiler in
1823 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
1824 yes) skipdirs
="${skipdirs} ${native_only}" ;;
1827 # If both --with-headers and --with-libs are specified, default to
1829 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
1830 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
1831 if test x
"${with_newlib}" = x
; then
1836 # Recognize --with-newlib/--without-newlib.
1837 case ${with_newlib} in
1838 no
) skipdirs
="${skipdirs} target-newlib" ;;
1839 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1842 # Configure extra directories which are host specific
1846 configdirs
="$configdirs libtermcap" ;;
1849 # A target can indicate whether a language isn't supported for some reason.
1850 # Only spaces may be used in this macro; not newlines or tabs.
1851 unsupported_languages
=
1853 # Remove more programs from consideration, based on the host or
1854 # target this usually means that a port of the program doesn't
1859 noconfigdirs
="$noconfigdirs byacc"
1861 i
[3456789]86-*-vsta)
1862 noconfigdirs
="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1864 i
[3456789]86-*-go32* | i
[3456789]86-*-msdosdjgpp*)
1865 noconfigdirs
="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1868 noconfigdirs
="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1870 i
[3456789]86-*-mingw32*)
1871 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1872 noconfigdirs
="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1874 i
[3456789]86-*-beos*)
1875 noconfigdirs
="$noconfigdirs tk itcl libgui gdb"
1878 noconfigdirs
="$noconfigdirs autoconf automake send-pr rcs guile perl"
1881 noconfigdirs
="$noconfigdirs rcs"
1884 noconfigdirs
="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1887 noconfigdirs
="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1892 # Check whether --enable-libada or --disable-libada was given.
1893 if test "${enable_libada+set}" = set; then
1894 enableval
="$enable_libada"
1895 ENABLE_LIBADA
=$enableval
1899 if test "${ENABLE_LIBADA}" != "yes" ; then
1900 noconfigdirs
="$noconfigdirs gnattools"
1903 # Check whether --enable-libssp or --disable-libssp was given.
1904 if test "${enable_libssp+set}" = set; then
1905 enableval
="$enable_libssp"
1906 ENABLE_LIBSSP
=$enableval
1911 # Save it here so that, even in case of --enable-libgcj, if the Java
1912 # front-end isn't enabled, we still get libgcj disabled.
1913 libgcj_saved
=$libgcj
1914 case $enable_libgcj in
1916 # If we reset it here, it won't get added to noconfigdirs in the
1917 # target-specific build rules, so it will be forcibly enabled
1918 # (unless the Java language itself isn't enabled).
1922 # Make sure we get it printed in the list of not supported target libs.
1923 noconfigdirs
="$noconfigdirs ${libgcj}"
1928 # Disable libmudflap on some systems.
1929 if test x
$enable_libmudflap = x
; then
1931 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1932 # Enable libmudflap by default in GNU and friends.
1935 # Enable libmudflap by default in FreeBSD.
1938 # Disable it by default everywhere else.
1939 noconfigdirs
="$noconfigdirs target-libmudflap"
1944 # Disable libgomp on non POSIX hosted systems.
1945 if test x
$enable_libgomp = x
; then
1946 # Enable libgomp by default on hosted POSIX systems.
1948 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1950 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd*)
1952 *-*-solaris2* |
*-*-sysv4* |
*-*-irix6* |
*-*-osf* |
*-*-hpux11*)
1954 *-*-darwin* |
*-*-aix*)
1957 noconfigdirs
="$noconfigdirs target-libgomp"
1965 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1967 powerpc-
*-darwin* | i
[3456789]86-*-darwin*)
1968 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1969 noconfigdirs
="$noconfigdirs sim target-rda"
1972 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
1973 noconfigdirs
="$noconfigdirs sim target-rda"
1974 noconfigdirs
="$noconfigdirs ${libgcj}"
1976 *-*-freebsd[12] |
*-*-freebsd[12].
* |
*-*-freebsd*aout
*)
1977 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1980 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1981 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
1982 && test -f /usr
/local
/include
/gmp.h
; then
1986 # Skip some stuff that's unsupported on some FreeBSD configurations.
1991 noconfigdirs
="$noconfigdirs ${libgcj}"
1996 # Remove unsupported stuff on all kaOS configurations.
1997 skipdirs
="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1998 skipdirs
="$skipdirs target-libobjc target-examples target-groff target-gperf"
1999 skipdirs
="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2000 noconfigdirs
="$noconfigdirs target-libgloss"
2003 # Skip some stuff on all NetBSD configurations.
2004 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss"
2006 # Skip some stuff that's unsupported on some NetBSD configurations.
2008 i
*86-*-netbsdelf*) ;;
2009 arm
*-*-netbsdelf*) ;;
2011 noconfigdirs
="$noconfigdirs ${libgcj}"
2016 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2019 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
2021 # The tpf target doesn't support gdb yet.
2023 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2026 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2029 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2032 # ld works, but does not support shared libraries.
2033 # newlib is not 64 bit ready. I'm not sure about fileutils.
2034 # gas doesn't generate exception information.
2035 noconfigdirs
="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2038 noconfigdirs
="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2041 # newlib is not 64 bit ready
2042 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
2045 # newlib is not 64 bit ready
2046 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2049 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2052 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2054 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
2055 noconfigdirs
="$noconfigdirs ${libgcj}"
2056 noconfigdirs
="$noconfigdirs target-examples"
2057 noconfigdirs
="$noconfigdirs target-libiberty texinfo send-pr"
2058 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
2059 noconfigdirs
="$noconfigdirs expect dejagnu"
2060 # the C++ libraries don't build on top of CE's C libraries
2061 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
2062 noconfigdirs
="$noconfigdirs target-newlib"
2064 *-*-cygwin*) ;; # keep gdb and readline
2065 *) noconfigdirs
="$noconfigdirs gdb readline"
2070 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
2074 arm-
*-coff | strongarm-
*-coff | xscale-
*-coff)
2075 noconfigdirs
="$noconfigdirs ${libgcj}"
2077 arm-
*-elf* | strongarm-
*-elf* | xscale-
*-elf* | arm
*-*-eabi* )
2078 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
2080 arm
*-*-linux-gnueabi)
2081 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
2082 noconfigdirs
="$noconfigdirs target-libjava target-libobjc"
2085 noconfigdirs
="$noconfigdirs ${libgcj} target-libiberty"
2088 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
2091 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
2094 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
2097 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
2100 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
2103 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2106 noconfigdirs
="$noconfigdirs gdb"
2107 if test x
${is_cross_compiler} != xno
; then
2108 target_configdirs
="${target_configdirs} target-bsp target-cygmon"
2111 c4x-
*-* | tic4x-
*-*)
2112 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2114 c54x
*-*-* | tic54x-
*-*)
2115 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2117 cris-
*-* | crisv32-
*-*)
2118 unsupported_languages
="$unsupported_languages java"
2121 unsupported_languages
="$unsupported_languages fortran"
2122 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc";;
2124 unsupported_languages
="$unsupported_languages fortran"
2125 noconfigdirs
="$noconfigdirs target-boehm-gc";;
2127 noconfigdirs
="$noconfigdirs target-newlib target-libgloss";;
2129 unsupported_languages
="$unsupported_languages fortran"
2130 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2134 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2137 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2140 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
2143 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
2146 noconfigdirs
="$noconfigdirs ${libgcj}"
2149 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
2152 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2154 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
2156 hppa
*64*-*-linux* | parisc
*64*-*-linux*)
2157 # In this case, it's because the hppa64-linux target is for
2158 # the kernel only at this point and has no libc, and thus no
2159 # headers, crt*.o, etc., all of which are needed by these.
2160 noconfigdirs
="$noconfigdirs target-zlib"
2162 parisc
*-*-linux* | hppa
*-*-linux*)
2166 hppa
*-*-openbsd* | \
2168 noconfigdirs
="$noconfigdirs ${libgcj}"
2171 noconfigdirs
="$noconfigdirs ld shellutils"
2174 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2175 # build on HP-UX 10.20.
2176 noconfigdirs
="$noconfigdirs ld shellutils ${libgcj}"
2179 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
2182 # No gdb support yet.
2183 noconfigdirs
="$noconfigdirs readline mmalloc libgui itcl gdb"
2186 # No gdb or ld support yet.
2187 noconfigdirs
="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2191 i
[3456789]86-*-coff | i
[3456789]86-*-elf)
2192 noconfigdirs
="$noconfigdirs ${libgcj}"
2194 i
[3456789]86-*-linux*)
2195 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2196 # not build java stuff by default.
2199 noconfigdirs
="$noconfigdirs ${libgcj}";;
2202 # This section makes it possible to build newlib natively on linux.
2203 # If we are using a cross compiler then don't configure newlib.
2204 if test x
${is_cross_compiler} != xno
; then
2205 noconfigdirs
="$noconfigdirs target-newlib"
2207 noconfigdirs
="$noconfigdirs target-libgloss"
2208 # If we are not using a cross compiler, do configure newlib.
2209 # Note however, that newlib will only be configured in this situation
2210 # if the --with-newlib option has been given, because otherwise
2211 # 'target-newlib' will appear in skipdirs.
2213 i
[3456789]86-*-mingw32*)
2214 target_configdirs
="$target_configdirs target-winsup"
2215 noconfigdirs
="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2218 target_configdirs
="$target_configdirs target-winsup"
2219 noconfigdirs
="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2222 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
2223 noconfigdirs
="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2224 # always build newlib if winsup directory is present.
2225 if test -d "$srcdir/winsup/cygwin"; then
2226 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2227 elif test -d "$srcdir/newlib"; then
2228 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2231 i
[3456789]86-moss-msdos | i
[3456789]86-*-moss* | \
2232 i
[3456789]86-*-uwin* | i
[3456789]86-*-interix* )
2235 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2237 i
[3456789]86-*-sco3.2v5
*)
2238 # The linker does not yet know about weak symbols in COFF,
2239 # and is not configured to handle mixed ELF and COFF.
2240 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
2242 i
[3456789]86-*-sco*)
2243 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
2245 i
[3456789]86-*-solaris2*)
2246 noconfigdirs
="$noconfigdirs target-libgloss"
2248 i
[3456789]86-*-sysv4*)
2249 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
2251 i
[3456789]86-*-beos*)
2252 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2254 i
[3456789]86-*-rdos*)
2255 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
2258 noconfigdirs
="$noconfigdirs ${libgcj}"
2260 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
2261 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2264 noconfigdirs
="$noconfigdirs ${libgcj}"
2267 noconfigdirs
="$noconfigdirs ${libgcj}"
2270 # The EPOC C++ environment does not support exceptions or rtti,
2271 # and so building libstdc++-v3 tends not to always work.
2272 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
2275 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2276 unsupported_languages
="$unsupported_languages fortran java"
2279 noconfigdirs
="$noconfigdirs ${libgcj}"
2282 noconfigdirs
="$noconfigdirs ${libgcj}"
2285 noconfigdirs
="$noconfigdirs sim"
2288 # copied from rs6000-*-* entry
2289 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2291 powerpc
*-*-winnt* | powerpc
*-*-pe* | ppc
*-*-pe)
2292 target_configdirs
="$target_configdirs target-winsup"
2293 noconfigdirs
="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2294 # always build newlib.
2295 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2297 # This is temporary until we can link against shared libraries
2298 powerpcle-
*-solaris*)
2299 noconfigdirs
="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2302 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2305 noconfigdirs
="$noconfigdirs ${libgcj}"
2307 powerpc-
*-eabi* | powerpcle-
*-eabi* | powerpc-
*-rtems* )
2310 noconfigdirs
="$noconfigdirs target-newlib gprof ${libgcj}"
2313 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2316 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
2319 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2322 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
2325 # Linking libjava exceeds command-line length limits on at least
2326 # IRIX 6.2, but not on IRIX 6.5.
2327 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2328 # <oldham@codesourcery.com>
2329 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
2332 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
2335 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2338 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
2341 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
2344 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2348 i
[3456789]86-*-vsta) ;; # don't add gprof back in
2349 i
[3456789]86-*-go32*) ;; # don't add gprof back in
2350 i
[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2351 *) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2353 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
2356 noconfigdirs
="$noconfigdirs ${libgcj}"
2359 noconfigdirs
="$noconfigdirs ${libgcj}"
2362 noconfigdirs
="$noconfigdirs ${libgcj}"
2365 noconfigdirs
="$noconfigdirs ${libgcj}"
2366 if test x
${is_cross_compiler} != xno
; then
2367 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
2372 sparc-
*-solaris2.
[0-6] | sparc-
*-solaris2.
[0-6].
*)
2373 noconfigdirs
="$noconfigdirs ${libgcj}"
2375 sparc-
*-solaris* | sparc64-
*-solaris* | sparcv9-
*-solaris*)
2378 skipdirs
="target-libssp"
2381 noconfigdirs
="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2384 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
2387 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
2390 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
2393 noconfigdirs
="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2396 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2399 noconfigdirs
="$noconfigdirs ${libgcj}"
2402 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2404 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
2405 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
2408 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2411 noconfigdirs
="$noconfigdirs ${libgcj}"
2415 # If we aren't building newlib, then don't build libgloss, since libgloss
2416 # depends upon some newlib header files.
2417 case "${noconfigdirs}" in
2418 *target-libgloss
*) ;;
2419 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
2422 # Work in distributions that contain no compiler tools, like Autoconf.
2424 host_makefile_frag
=/dev
/null
2425 if test -d ${srcdir}/config
; then
2428 # Avoid "too much defining" errors from HPUX compiler.
2429 tentative_cc
="cc -Wp,-H256000"
2430 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2431 # If it's HP/UX ar, this should be harmless.
2435 tentative_cc
="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2438 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2439 # chokes on bfd, the compiler won't let you assign integers to enums, and
2440 # other problems. Defining CC to gcc is a questionable way to say "don't use
2441 # the apollo compiler" (the preferred version of GCC could be called cc,
2442 # or whatever), but I'm not sure leaving CC as cc is any better...
2443 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2444 # Used to have BISON=yacc.
2448 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
2451 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2452 tentative_cc
="cc -Xa"
2453 host_makefile_frag
="config/mh-cxux"
2455 m88k-motorola-sysv
*)
2458 tentative_cc
="cc -Wf,-XNg1000"
2459 host_makefile_frag
="config/mh-decstation"
2462 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2463 tentative_cc
="cc -ZXNd=5000 -ZXNg=1000"
2464 host_makefile_frag
="config/mh-necv4"
2467 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2468 # environment. Also bump switch table size so that cp-parse will
2469 # compile. Bump string length limit so linker builds.
2470 tentative_cc
="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2473 host_makefile_frag
="config/mh-sysv4"
2476 # This is for a MIPS running RISC/os 4.52C.
2478 # This is needed for GDB, but needs to be in the top-level make because
2479 # if a library is compiled with the bsd headers and gets linked with the
2480 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2481 # a different size).
2482 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2483 # known except to select the sysv environment. Could we use /proc instead?
2484 # These "sysv environments" and "bsd environments" often end up being a pain.
2486 # This is not part of CFLAGS because perhaps not all C compilers have this
2488 tentative_cc
="cc -systype sysv"
2493 i
[3456789]86-*-sysv5*)
2494 host_makefile_frag
="config/mh-sysv5"
2496 i
[3456789]86-*-dgux*)
2497 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
2498 host_makefile_frag
="config/mh-dgux386"
2500 i
[3456789]86-ncr-sysv4.3
*)
2501 # The MetaWare compiler will generate a copyright message unless you
2502 # turn it off by adding the -Hnocopyr flag.
2503 tentative_cc
="cc -Hnocopyr"
2505 i
[3456789]86-ncr-sysv4*)
2506 # for an NCR 3000 (i486/SVR4) system.
2507 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2508 # This compiler not only emits obnoxious copyright messages every time
2509 # you run it, but it chokes and dies on a whole bunch of GNU source
2510 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2511 tentative_cc
="/usr/ccs/ATT/cc"
2512 host_makefile_frag
="config/mh-ncr3000"
2514 i
[3456789]86-*-sco3.2v5
*)
2516 i
[3456789]86-*-sco*)
2517 # The native C compiler botches some simple uses of const. Unfortunately,
2518 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2519 tentative_cc
="cc -Dconst="
2520 host_makefile_frag
="config/mh-sco"
2522 i
[3456789]86-*-udk*)
2523 host_makefile_frag
="config/mh-sysv5"
2525 i
[3456789]86-*-solaris2*)
2526 host_makefile_frag
="config/mh-sysv4"
2528 i
[3456789]86-*-msdosdjgpp*)
2529 host_makefile_frag
="config/mh-djgpp"
2532 host_makefile_frag
="config/mh-cygwin"
2539 host_makefile_frag
="config/mh-interix"
2542 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2546 host_makefile_frag
="config/mh-solaris"
2549 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2550 # without overflowing the jump tables (-J says to use a 32 bit table)
2551 tentative_cc
="cc -J"
2554 tentative_cc
="cc -Wp,-H256000"
2557 tentative_cc
="cc -Wp,-H256000"
2560 # /bin/cc is less than useful for our purposes. Always use GCC
2561 tentative_cc
="/usr/cygnus/progressive/bin/gcc"
2562 host_makefile_frag
="config/mh-lynxrs6k"
2565 host_makefile_frag
="config/mh-ppc-darwin"
2568 host_makefile_frag
="config/mh-ppc-aix"
2571 host_makefile_frag
="config/mh-ppc-aix"
2574 # /bin/cc is less than useful for our purposes. Always use GCC
2575 tentative_cc
="/bin/gcc"
2578 host_makefile_frag
="config/mh-sysv4"
2580 # This is placed last to prevent interfering with the cases above.
2582 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2583 host_makefile_frag
="config/mh-x86omitfp"
2588 # If we aren't going to be using gcc, see if we can extract a definition
2589 # of CC from the fragment.
2590 # Actually, use the 'pre-extracted' version above.
2591 if test -z "${CC}" && test "${build}" = "${host}" ; then
2592 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
2594 for dir
in $PATH; do
2595 test -z "$dir" && dir
=.
2596 if test -f $dir/gcc
; then
2602 if test -z "${found}" && test -n "${tentative_cc}" ; then
2607 if test "${build}" != "${host}" ; then
2608 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
2610 CC_FOR_BUILD
="\$(CC)"
2614 ac_cpp
='$CPP $CPPFLAGS'
2615 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2618 if test -n "$ac_tool_prefix"; then
2619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2620 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2621 echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2623 if test "${ac_cv_prog_CC+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC
="$CC" # Let the user override the test.
2629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2633 test -z "$as_dir" && as_dir
=.
2634 for ac_exec_ext
in '' $ac_executable_extensions; do
2635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 if test -n "$CC"; then
2647 echo "$as_me:$LINENO: result: $CC" >&5
2648 echo "${ECHO_T}$CC" >&6
2650 echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6
2655 if test -z "$ac_cv_prog_CC"; then
2657 # Extract the first word of "gcc", so it can be a program name with args.
2658 set dummy gcc
; ac_word
=$2
2659 echo "$as_me:$LINENO: checking for $ac_word" >&5
2660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2661 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 if test -n "$ac_ct_CC"; then
2665 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2667 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2671 test -z "$as_dir" && as_dir
=.
2672 for ac_exec_ext
in '' $ac_executable_extensions; do
2673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2674 ac_cv_prog_ac_ct_CC
="gcc"
2675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2684 if test -n "$ac_ct_CC"; then
2685 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2686 echo "${ECHO_T}$ac_ct_CC" >&6
2688 echo "$as_me:$LINENO: result: no" >&5
2689 echo "${ECHO_T}no" >&6
2697 if test -z "$CC"; then
2698 if test -n "$ac_tool_prefix"; then
2699 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2700 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2701 echo "$as_me:$LINENO: checking for $ac_word" >&5
2702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2703 if test "${ac_cv_prog_CC+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 if test -n "$CC"; then
2707 ac_cv_prog_CC
="$CC" # Let the user override the test.
2709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2713 test -z "$as_dir" && as_dir
=.
2714 for ac_exec_ext
in '' $ac_executable_extensions; do
2715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 if test -n "$CC"; then
2727 echo "$as_me:$LINENO: result: $CC" >&5
2728 echo "${ECHO_T}$CC" >&6
2730 echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6
2735 if test -z "$ac_cv_prog_CC"; then
2737 # Extract the first word of "cc", so it can be a program name with args.
2738 set dummy cc
; ac_word
=$2
2739 echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 if test -n "$ac_ct_CC"; then
2745 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2747 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2751 test -z "$as_dir" && as_dir
=.
2752 for ac_exec_ext
in '' $ac_executable_extensions; do
2753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2754 ac_cv_prog_ac_ct_CC
="cc"
2755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2764 if test -n "$ac_ct_CC"; then
2765 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2766 echo "${ECHO_T}$ac_ct_CC" >&6
2768 echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6
2778 if test -z "$CC"; then
2779 # Extract the first word of "cc", so it can be a program name with args.
2780 set dummy cc
; ac_word
=$2
2781 echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2783 if test "${ac_cv_prog_CC+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 if test -n "$CC"; then
2787 ac_cv_prog_CC
="$CC" # Let the user override the test.
2790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2794 test -z "$as_dir" && as_dir
=.
2795 for ac_exec_ext
in '' $ac_executable_extensions; do
2796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2798 ac_prog_rejected
=yes
2802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 if test $ac_prog_rejected = yes; then
2809 # We found a bogon in the path, so make sure we never use it.
2810 set dummy
$ac_cv_prog_CC
2812 if test $# != 0; then
2813 # We chose a different compiler from the bogus one.
2814 # However, it has the same basename, so the bogon will be chosen
2815 # first if we set CC to just the basename; use the full file name.
2817 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2823 if test -n "$CC"; then
2824 echo "$as_me:$LINENO: result: $CC" >&5
2825 echo "${ECHO_T}$CC" >&6
2827 echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6
2832 if test -z "$CC"; then
2833 if test -n "$ac_tool_prefix"; then
2836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2837 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2838 echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2840 if test "${ac_cv_prog_CC+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 if test -n "$CC"; then
2844 ac_cv_prog_CC
="$CC" # Let the user override the test.
2846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2850 test -z "$as_dir" && as_dir
=.
2851 for ac_exec_ext
in '' $ac_executable_extensions; do
2852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 if test -n "$CC"; then
2864 echo "$as_me:$LINENO: result: $CC" >&5
2865 echo "${ECHO_T}$CC" >&6
2867 echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6
2871 test -n "$CC" && break
2874 if test -z "$CC"; then
2878 # Extract the first word of "$ac_prog", so it can be a program name with args.
2879 set dummy
$ac_prog; ac_word
=$2
2880 echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 if test -n "$ac_ct_CC"; then
2886 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2892 test -z "$as_dir" && as_dir
=.
2893 for ac_exec_ext
in '' $ac_executable_extensions; do
2894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 ac_cv_prog_ac_ct_CC
="$ac_prog"
2896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2905 if test -n "$ac_ct_CC"; then
2906 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2907 echo "${ECHO_T}$ac_ct_CC" >&6
2909 echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6
2913 test -n "$ac_ct_CC" && break
2922 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2923 See \`config.log' for more details." >&5
2924 echo "$as_me: error: no acceptable C compiler found in \$PATH
2925 See \`config.log' for more details." >&2;}
2926 { (exit 1); exit 1; }; }
2928 # Provide some information about the compiler.
2929 echo "$as_me:$LINENO:" \
2930 "checking for C compiler version" >&5
2931 ac_compiler
=`set X $ac_compile; echo $2`
2932 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2933 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }
2937 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2938 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }
2942 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2943 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }
2948 cat >conftest.
$ac_ext <<_ACEOF
2951 cat confdefs.h
>>conftest.
$ac_ext
2952 cat >>conftest.
$ac_ext <<_ACEOF
2953 /* end confdefs.h. */
2963 ac_clean_files_save
=$ac_clean_files
2964 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2965 # Try to create an executable without -o first, disregard a.out.
2966 # It will help us diagnose broken compilers, and finding out an intuition
2968 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2969 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2970 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2971 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2972 (eval $ac_link_default) 2>&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; then
2976 # Find the output, starting from the most likely. This scheme is
2977 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2980 # Be careful to initialize this variable, since it used to be cached.
2981 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2983 # b.out is created by i960 compilers.
2984 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2986 test -f "$ac_file" ||
continue
2988 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2991 # This is the source file.
2994 # We found the default executable, but exeext='' is most
2998 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2999 # FIXME: I believe we export ac_cv_exeext for Libtool,
3000 # but it would be cool to find out if it's true. Does anybody
3001 # maintain Libtool? --akim.
3009 echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.
$ac_ext >&5
3012 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3013 See \`config.log' for more details." >&5
3014 echo "$as_me: error: C compiler cannot create executables
3015 See \`config.log' for more details." >&2;}
3016 { (exit 77); exit 77; }; }
3019 ac_exeext
=$ac_cv_exeext
3020 echo "$as_me:$LINENO: result: $ac_file" >&5
3021 echo "${ECHO_T}$ac_file" >&6
3023 # Check the compiler produces executables we can run. If not, either
3024 # the compiler is broken, or we cross compile.
3025 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3026 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3027 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3028 # If not cross compiling, check that we can run a simple program.
3029 if test "$cross_compiling" != yes; then
3030 if { ac_try
='./$ac_file'
3031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; }; then
3038 if test "$cross_compiling" = maybe
; then
3041 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3042 If you meant to cross compile, use \`--host'.
3043 See \`config.log' for more details." >&5
3044 echo "$as_me: error: cannot run C compiled programs.
3045 If you meant to cross compile, use \`--host'.
3046 See \`config.log' for more details." >&2;}
3047 { (exit 1); exit 1; }; }
3051 echo "$as_me:$LINENO: result: yes" >&5
3052 echo "${ECHO_T}yes" >&6
3054 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3055 ac_clean_files
=$ac_clean_files_save
3056 # Check the compiler produces executables we can run. If not, either
3057 # the compiler is broken, or we cross compile.
3058 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3059 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3060 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3061 echo "${ECHO_T}$cross_compiling" >&6
3063 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3064 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3066 (eval $ac_link) 2>&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; then
3070 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3071 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3072 # work properly (i.e., refer to `conftest.exe'), while it won't with
3074 for ac_file
in conftest.exe conftest conftest.
*; do
3075 test -f "$ac_file" ||
continue
3077 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3078 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3085 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3086 See \`config.log' for more details." >&5
3087 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3088 See \`config.log' for more details." >&2;}
3089 { (exit 1); exit 1; }; }
3092 rm -f conftest
$ac_cv_exeext
3093 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3094 echo "${ECHO_T}$ac_cv_exeext" >&6
3096 rm -f conftest.
$ac_ext
3097 EXEEXT
=$ac_cv_exeext
3099 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3100 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3101 if test "${ac_cv_objext+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 cat >conftest.
$ac_ext <<_ACEOF
3107 cat confdefs.h
>>conftest.
$ac_ext
3108 cat >>conftest.
$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3119 rm -f conftest.o conftest.obj
3120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3121 (eval $ac_compile) 2>&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; then
3125 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3127 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3128 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3133 echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.
$ac_ext >&5
3136 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3137 See \`config.log' for more details." >&5
3138 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3139 See \`config.log' for more details." >&2;}
3140 { (exit 1); exit 1; }; }
3143 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3145 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3146 echo "${ECHO_T}$ac_cv_objext" >&6
3147 OBJEXT
=$ac_cv_objext
3149 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3150 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3151 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3154 cat >conftest.
$ac_ext <<_ACEOF
3157 cat confdefs.h
>>conftest.
$ac_ext
3158 cat >>conftest.
$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3172 rm -f conftest.
$ac_objext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3174 (eval $ac_compile) 2>conftest.er1
3176 grep -v '^ *+' conftest.er1
>conftest.err
3178 cat conftest.err
>&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } &&
3181 { ac_try
='test -z "$ac_c_werror_flag"
3182 || test ! -s conftest.err'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; } &&
3188 { ac_try
='test -s conftest.$ac_objext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.
$ac_ext >&5
3201 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3202 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3205 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3206 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3207 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3208 ac_test_CFLAGS
=${CFLAGS+set}
3209 ac_save_CFLAGS
=$CFLAGS
3211 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3212 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3213 if test "${ac_cv_prog_cc_g+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3216 cat >conftest.
$ac_ext <<_ACEOF
3219 cat confdefs.h
>>conftest.
$ac_ext
3220 cat >>conftest.
$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3231 rm -f conftest.
$ac_objext
3232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3233 (eval $ac_compile) 2>conftest.er1
3235 grep -v '^ *+' conftest.er1
>conftest.err
3237 cat conftest.err
>&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } &&
3240 { ac_try
='test -z "$ac_c_werror_flag"
3241 || test ! -s conftest.err'
3242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; } &&
3247 { ac_try
='test -s conftest.$ac_objext'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; }; then
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.
$ac_ext >&5
3260 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3262 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3263 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3264 if test "$ac_test_CFLAGS" = set; then
3265 CFLAGS
=$ac_save_CFLAGS
3266 elif test $ac_cv_prog_cc_g = yes; then
3267 if test "$GCC" = yes; then
3273 if test "$GCC" = yes; then
3279 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3280 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3281 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 ac_cv_prog_cc_stdc
=no
3286 cat >conftest.
$ac_ext <<_ACEOF
3289 cat confdefs.h
>>conftest.
$ac_ext
3290 cat >>conftest.
$ac_ext <<_ACEOF
3291 /* end confdefs.h. */
3294 #include <sys/types.h>
3295 #include <sys/stat.h>
3296 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3297 struct buf { int x; };
3298 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3299 static char *e (p, i)
3305 static char *f (char * (*g) (char **, int), char **p, ...)
3310 s = g (p, va_arg (v,int));
3315 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3316 function prototypes and stuff, but not '\xHH' hex character constants.
3317 These don't provoke an error unfortunately, instead are silently treated
3318 as 'x'. The following induces an error, until -std1 is added to get
3319 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3320 array size at least. It's necessary to write '\x00'==0 to get something
3321 that's true only with -std1. */
3322 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3324 int test (int i, double x);
3325 struct s1 {int (*f) (int a);};
3326 struct s2 {int (*f) (double a);};
3327 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3333 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3338 # Don't try gcc -ansi; that turns off useful extensions and
3339 # breaks some systems' header files.
3340 # AIX -qlanglvl=ansi
3341 # Ultrix and OSF/1 -std1
3342 # HP-UX 10.20 and later -Ae
3343 # HP-UX older versions -Aa -D_HPUX_SOURCE
3344 # SVR4 -Xc -D__EXTENSIONS__
3345 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3347 CC
="$ac_save_CC $ac_arg"
3348 rm -f conftest.
$ac_objext
3349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3350 (eval $ac_compile) 2>conftest.er1
3352 grep -v '^ *+' conftest.er1
>conftest.err
3354 cat conftest.err
>&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } &&
3357 { ac_try
='test -z "$ac_c_werror_flag"
3358 || test ! -s conftest.err'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; } &&
3364 { ac_try
='test -s conftest.$ac_objext'
3365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; }; then
3370 ac_cv_prog_cc_stdc
=$ac_arg
3373 echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.
$ac_ext >&5
3377 rm -f conftest.err conftest.
$ac_objext
3379 rm -f conftest.
$ac_ext conftest.
$ac_objext
3384 case "x$ac_cv_prog_cc_stdc" in
3386 echo "$as_me:$LINENO: result: none needed" >&5
3387 echo "${ECHO_T}none needed" >&6 ;;
3389 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3390 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3391 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3394 # Some people use a C++ compiler to compile C. Since we use `exit',
3395 # in C++ we need to declare it. In case someone uses the same compiler
3396 # for both compiling C and C++ we need to have the C++ compiler decide
3397 # the declaration of exit, since it's the most demanding environment.
3398 cat >conftest.
$ac_ext <<_ACEOF
3403 rm -f conftest.
$ac_objext
3404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3405 (eval $ac_compile) 2>conftest.er1
3407 grep -v '^ *+' conftest.er1
>conftest.err
3409 cat conftest.err
>&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } &&
3412 { ac_try
='test -z "$ac_c_werror_flag"
3413 || test ! -s conftest.err'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; } &&
3419 { ac_try
='test -s conftest.$ac_objext'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
3425 for ac_declaration
in \
3427 'extern "C" void std::exit (int) throw (); using std::exit;' \
3428 'extern "C" void std::exit (int); using std::exit;' \
3429 'extern "C" void exit (int) throw ();' \
3430 'extern "C" void exit (int);' \
3433 cat >conftest.
$ac_ext <<_ACEOF
3436 cat confdefs.h
>>conftest.
$ac_ext
3437 cat >>conftest.
$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3449 rm -f conftest.
$ac_objext
3450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3451 (eval $ac_compile) 2>conftest.er1
3453 grep -v '^ *+' conftest.er1
>conftest.err
3455 cat conftest.err
>&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } &&
3458 { ac_try
='test -z "$ac_c_werror_flag"
3459 || test ! -s conftest.err'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; } &&
3465 { ac_try
='test -s conftest.$ac_objext'
3466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; }; then
3473 echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.
$ac_ext >&5
3478 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3479 cat >conftest.
$ac_ext <<_ACEOF
3482 cat confdefs.h
>>conftest.
$ac_ext
3483 cat >>conftest.
$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3494 rm -f conftest.
$ac_objext
3495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3496 (eval $ac_compile) 2>conftest.er1
3498 grep -v '^ *+' conftest.er1
>conftest.err
3500 cat conftest.err
>&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } &&
3503 { ac_try
='test -z "$ac_c_werror_flag"
3504 || test ! -s conftest.err'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; } &&
3510 { ac_try
='test -s conftest.$ac_objext'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; }; then
3518 echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.
$ac_ext >&5
3522 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3525 if test -n "$ac_declaration"; then
3526 echo '#ifdef __cplusplus' >>confdefs.h
3527 echo $ac_declaration >>confdefs.h
3528 echo '#endif' >>confdefs.h
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.
$ac_ext >&5
3536 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3538 ac_cpp
='$CPP $CPPFLAGS'
3539 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3544 ac_cpp
='$CXXCPP $CPPFLAGS'
3545 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3548 if test -n "$ac_tool_prefix"; then
3549 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
3551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3552 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3553 echo "$as_me:$LINENO: checking for $ac_word" >&5
3554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3555 if test "${ac_cv_prog_CXX+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 if test -n "$CXX"; then
3559 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3565 test -z "$as_dir" && as_dir
=.
3566 for ac_exec_ext
in '' $ac_executable_extensions; do
3567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 if test -n "$CXX"; then
3579 echo "$as_me:$LINENO: result: $CXX" >&5
3580 echo "${ECHO_T}$CXX" >&6
3582 echo "$as_me:$LINENO: result: no" >&5
3583 echo "${ECHO_T}no" >&6
3586 test -n "$CXX" && break
3589 if test -z "$CXX"; then
3591 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
3593 # Extract the first word of "$ac_prog", so it can be a program name with args.
3594 set dummy
$ac_prog; ac_word
=$2
3595 echo "$as_me:$LINENO: checking for $ac_word" >&5
3596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3597 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3600 if test -n "$ac_ct_CXX"; then
3601 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3607 test -z "$as_dir" && as_dir
=.
3608 for ac_exec_ext
in '' $ac_executable_extensions; do
3609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3610 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3619 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3620 if test -n "$ac_ct_CXX"; then
3621 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3622 echo "${ECHO_T}$ac_ct_CXX" >&6
3624 echo "$as_me:$LINENO: result: no" >&5
3625 echo "${ECHO_T}no" >&6
3628 test -n "$ac_ct_CXX" && break
3630 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
3636 # Provide some information about the compiler.
3637 echo "$as_me:$LINENO:" \
3638 "checking for C++ compiler version" >&5
3639 ac_compiler
=`set X $ac_compile; echo $2`
3640 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3641 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }
3645 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3646 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }
3650 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3651 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); }
3656 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3657 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3658 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 cat >conftest.
$ac_ext <<_ACEOF
3664 cat confdefs.h
>>conftest.
$ac_ext
3665 cat >>conftest.
$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3679 rm -f conftest.
$ac_objext
3680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681 (eval $ac_compile) 2>conftest.er1
3683 grep -v '^ *+' conftest.er1
>conftest.err
3685 cat conftest.err
>&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } &&
3688 { ac_try
='test -z "$ac_cxx_werror_flag"
3689 || test ! -s conftest.err'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; } &&
3695 { ac_try
='test -s conftest.$ac_objext'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
3703 echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.
$ac_ext >&5
3708 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3709 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3712 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3713 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3714 GXX
=`test $ac_compiler_gnu = yes && echo yes`
3715 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3716 ac_save_CXXFLAGS
=$CXXFLAGS
3718 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3719 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3720 if test "${ac_cv_prog_cxx_g+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 cat >conftest.
$ac_ext <<_ACEOF
3726 cat confdefs.h
>>conftest.
$ac_ext
3727 cat >>conftest.
$ac_ext <<_ACEOF
3728 /* end confdefs.h. */
3738 rm -f conftest.
$ac_objext
3739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3740 (eval $ac_compile) 2>conftest.er1
3742 grep -v '^ *+' conftest.er1
>conftest.err
3744 cat conftest.err
>&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } &&
3747 { ac_try
='test -z "$ac_cxx_werror_flag"
3748 || test ! -s conftest.err'
3749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; } &&
3754 { ac_try
='test -s conftest.$ac_objext'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; }; then
3760 ac_cv_prog_cxx_g
=yes
3762 echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.
$ac_ext >&5
3767 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3769 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3770 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3771 if test "$ac_test_CXXFLAGS" = set; then
3772 CXXFLAGS
=$ac_save_CXXFLAGS
3773 elif test $ac_cv_prog_cxx_g = yes; then
3774 if test "$GXX" = yes; then
3780 if test "$GXX" = yes; then
3786 for ac_declaration
in \
3788 'extern "C" void std::exit (int) throw (); using std::exit;' \
3789 'extern "C" void std::exit (int); using std::exit;' \
3790 'extern "C" void exit (int) throw ();' \
3791 'extern "C" void exit (int);' \
3794 cat >conftest.
$ac_ext <<_ACEOF
3797 cat confdefs.h
>>conftest.
$ac_ext
3798 cat >>conftest.
$ac_ext <<_ACEOF
3799 /* end confdefs.h. */
3810 rm -f conftest.
$ac_objext
3811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3812 (eval $ac_compile) 2>conftest.er1
3814 grep -v '^ *+' conftest.er1
>conftest.err
3816 cat conftest.err
>&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } &&
3819 { ac_try
='test -z "$ac_cxx_werror_flag"
3820 || test ! -s conftest.err'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; } &&
3826 { ac_try
='test -s conftest.$ac_objext'
3827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; }; then
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.
$ac_ext >&5
3839 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3840 cat >conftest.
$ac_ext <<_ACEOF
3843 cat confdefs.h
>>conftest.
$ac_ext
3844 cat >>conftest.
$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3855 rm -f conftest.
$ac_objext
3856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3857 (eval $ac_compile) 2>conftest.er1
3859 grep -v '^ *+' conftest.er1
>conftest.err
3861 cat conftest.err
>&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } &&
3864 { ac_try
='test -z "$ac_cxx_werror_flag"
3865 || test ! -s conftest.err'
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; } &&
3871 { ac_try
='test -s conftest.$ac_objext'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; }; then
3879 echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.
$ac_ext >&5
3883 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3886 if test -n "$ac_declaration"; then
3887 echo '#ifdef __cplusplus' >>confdefs.h
3888 echo $ac_declaration >>confdefs.h
3889 echo '#endif' >>confdefs.h
3893 ac_cpp
='$CPP $CPPFLAGS'
3894 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3899 # We must set the default linker to the linker used by gcc for the correct
3900 # operation of libtool. If LD is not defined and we are using gcc, try to
3901 # set the LD default to the ld used by gcc.
3902 if test -z "$LD"; then
3903 if test "$GCC" = yes; then
3906 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
3908 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
3910 case $gcc_prog_ld in
3911 # Accept absolute paths.
3912 [\\/]* |
[A-Za-z
]:[\\/]*)
3913 LD
="$gcc_prog_ld" ;;
3921 if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3923 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
3924 echo "$as_me:$LINENO: checking for $ac_word" >&5
3925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3926 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 if test -n "$GNATBIND"; then
3930 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
3932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3936 test -z "$as_dir" && as_dir
=.
3937 for ac_exec_ext
in '' $ac_executable_extensions; do
3938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
3940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 GNATBIND
=$ac_cv_prog_GNATBIND
3949 if test -n "$GNATBIND"; then
3950 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3951 echo "${ECHO_T}$GNATBIND" >&6
3953 echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3958 if test -z "$ac_cv_prog_GNATBIND"; then
3959 ac_ct_GNATBIND
=$GNATBIND
3960 # Extract the first word of "gnatbind", so it can be a program name with args.
3961 set dummy gnatbind
; ac_word
=$2
3962 echo "$as_me:$LINENO: checking for $ac_word" >&5
3963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3964 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 if test -n "$ac_ct_GNATBIND"; then
3968 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
3970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3974 test -z "$as_dir" && as_dir
=.
3975 for ac_exec_ext
in '' $ac_executable_extensions; do
3976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
3978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3984 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND
="no"
3987 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
3988 if test -n "$ac_ct_GNATBIND"; then
3989 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3990 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3992 echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3996 GNATBIND
=$ac_ct_GNATBIND
3998 GNATBIND
="$ac_cv_prog_GNATBIND"
4001 if test -n "$ac_tool_prefix"; then
4002 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4003 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4004 echo "$as_me:$LINENO: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 if test -n "$GNATMAKE"; then
4010 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4016 test -z "$as_dir" && as_dir
=.
4017 for ac_exec_ext
in '' $ac_executable_extensions; do
4018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4028 GNATMAKE
=$ac_cv_prog_GNATMAKE
4029 if test -n "$GNATMAKE"; then
4030 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4031 echo "${ECHO_T}$GNATMAKE" >&6
4033 echo "$as_me:$LINENO: result: no" >&5
4034 echo "${ECHO_T}no" >&6
4038 if test -z "$ac_cv_prog_GNATMAKE"; then
4039 ac_ct_GNATMAKE
=$GNATMAKE
4040 # Extract the first word of "gnatmake", so it can be a program name with args.
4041 set dummy gnatmake
; ac_word
=$2
4042 echo "$as_me:$LINENO: checking for $ac_word" >&5
4043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4044 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 if test -n "$ac_ct_GNATMAKE"; then
4048 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4054 test -z "$as_dir" && as_dir
=.
4055 for ac_exec_ext
in '' $ac_executable_extensions; do
4056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4057 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4064 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE
="no"
4067 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4068 if test -n "$ac_ct_GNATMAKE"; then
4069 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4070 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
4072 echo "$as_me:$LINENO: result: no" >&5
4073 echo "${ECHO_T}no" >&6
4076 GNATMAKE
=$ac_ct_GNATMAKE
4078 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4081 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4082 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4083 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 cat >conftest.adb
<<EOF
4087 procedure conftest is begin null; end conftest;
4089 acx_cv_cc_gcc_supports_ada
=no
4090 # There is a bug in old released versions of GCC which causes the
4091 # driver to exit successfully when the appropriate language module
4092 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4093 # Therefore we must check for the error message as well as an
4094 # unsuccessful exit.
4095 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4096 # given a .adb file, but produce no object file. So we must check
4097 # if an object file was really produced to guard against this.
4098 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4099 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4100 acx_cv_cc_gcc_supports_ada
=yes
4104 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4105 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
4107 if test x
$GNATBIND != xno
&& test x
$GNATMAKE != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4113 echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4114 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4115 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 gcc_cv_prog_cmp_skip
='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4121 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
4122 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
4125 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
4128 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
4129 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
4132 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
4138 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4139 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4140 do_compare
="$gcc_cv_prog_cmp_skip"
4144 # Check for GMP and MPFR
4145 gmplibs
="-lmpfr -lgmp"
4149 # Specify a location for mpfr
4150 # check for this first so it ends up on the link line before gmp.
4152 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4153 if test "${with_mpfr_dir+set}" = set; then
4154 withval
="$with_mpfr_dir"
4155 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4156 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4157 echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4158 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4159 { (exit 1); exit 1; }; }
4163 # Check whether --with-mpfr or --without-mpfr was given.
4164 if test "${with_mpfr+set}" = set; then
4165 withval
="$with_mpfr"
4169 # Check whether --with-mpfr_include or --without-mpfr_include was given.
4170 if test "${with_mpfr_include+set}" = set; then
4171 withval
="$with_mpfr_include"
4175 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4176 if test "${with_mpfr_lib+set}" = set; then
4177 withval
="$with_mpfr_lib"
4181 if test "x$with_mpfr" != x
; then
4182 gmplibs
="-L$with_mpfr/lib $gmplibs"
4183 gmpinc
="-I$with_mpfr/include"
4185 if test "x$with_mpfr_include" != x
; then
4186 gmpinc
="-I$with_mpfr_include"
4188 if test "x$with_mpfr_lib" != x
; then
4189 gmplibs
="-L$with_mpfr_lib $gmplibs"
4191 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
4192 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4193 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4194 # Do not test the mpfr version. Assume that it is sufficient, since
4195 # it is in the source tree, and the library has not been built yet
4196 # but it would be included on the link line in the version check below
4197 # hence making the test fail.
4201 # Specify a location for gmp
4203 # Check whether --with-gmp-dir or --without-gmp-dir was given.
4204 if test "${with_gmp_dir+set}" = set; then
4205 withval
="$with_gmp_dir"
4206 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4207 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4208 echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4209 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4210 { (exit 1); exit 1; }; }
4214 # Check whether --with-gmp or --without-gmp was given.
4215 if test "${with_gmp+set}" = set; then
4220 # Check whether --with-gmp_include or --without-gmp_include was given.
4221 if test "${with_gmp_include+set}" = set; then
4222 withval
="$with_gmp_include"
4226 # Check whether --with-gmp_lib or --without-gmp_lib was given.
4227 if test "${with_gmp_lib+set}" = set; then
4228 withval
="$with_gmp_lib"
4233 if test "x$with_gmp" != x
; then
4234 gmplibs
="-L$with_gmp/lib $gmplibs"
4235 gmpinc
="-I$with_gmp/include $gmpinc"
4237 if test "x$with_gmp_include" != x
; then
4238 gmpinc
="-I$with_gmp_include $gmpinc"
4240 if test "x$with_gmp_lib" != x
; then
4241 gmplibs
="-L$with_gmp_lib $gmplibs"
4243 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
4244 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4245 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4246 # Do not test the gmp version. Assume that it is sufficient, since
4247 # it is in the source tree, and the library has not been built yet
4248 # but it would be included on the link line in the version check below
4249 # hence making the test fail.
4253 if test -d ${srcdir}/gcc
&& test "x$have_gmp" = xno
; then
4255 saved_CFLAGS
="$CFLAGS"
4256 CFLAGS
="$CFLAGS $gmpinc"
4257 # Check GMP actually works
4258 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4259 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4261 cat >conftest.
$ac_ext <<_ACEOF
4264 cat confdefs.h
>>conftest.
$ac_ext
4265 cat >>conftest.
$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4272 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4280 rm -f conftest.
$ac_objext
4281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4282 (eval $ac_compile) 2>conftest.er1
4284 grep -v '^ *+' conftest.er1
>conftest.err
4286 cat conftest.err
>&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } &&
4289 { ac_try
='test -z "$ac_c_werror_flag"
4290 || test ! -s conftest.err'
4291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; } &&
4296 { ac_try
='test -s conftest.$ac_objext'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then
4302 echo "$as_me:$LINENO: result: yes" >&5
4303 echo "${ECHO_T}yes" >&6
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.
$ac_ext >&5
4308 echo "$as_me:$LINENO: result: no" >&5
4309 echo "${ECHO_T}no" >&6; have_gmp
=no
4311 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4313 if test x
"$have_gmp" = xyes
; then
4315 LIBS
="$LIBS $gmplibs"
4316 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4317 echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4318 cat >conftest.
$ac_ext <<_ACEOF
4321 cat confdefs.h
>>conftest.
$ac_ext
4322 cat >>conftest.
$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4330 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4333 mpfr_t n; mpfr_init(n);
4334 mpfr_t x; mpfr_init(x);
4336 mpfr_atan2 (n, n, x, GMP_RNDN);
4337 mpfr_erfc (n, x, GMP_RNDN);
4338 mpfr_subnormalize (x, t, GMP_RNDN);
4344 rm -f conftest.
$ac_objext conftest
$ac_exeext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4346 (eval $ac_link) 2>conftest.er1
4348 grep -v '^ *+' conftest.er1
>conftest.err
4350 cat conftest.err
>&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try
='test -z "$ac_c_werror_flag"
4354 || test ! -s conftest.err'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; } &&
4360 { ac_try
='test -s conftest$ac_exeext'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 cat >conftest.
$ac_ext <<_ACEOF
4369 cat confdefs.h
>>conftest.
$ac_ext
4370 cat >>conftest.
$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4378 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4381 mpfr_t n; mpfr_init(n);
4387 rm -f conftest.
$ac_objext conftest
$ac_exeext
4388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4389 (eval $ac_link) 2>conftest.er1
4391 grep -v '^ *+' conftest.er1
>conftest.err
4393 cat conftest.err
>&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } &&
4396 { ac_try
='test -z "$ac_c_werror_flag"
4397 || test ! -s conftest.err'
4398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; } &&
4403 { ac_try
='test -s conftest$ac_exeext'
4404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; }; then
4409 echo "$as_me:$LINENO: result: yes" >&5
4410 echo "${ECHO_T}yes" >&6
4412 echo "$as_me: failed program was:" >&5
4413 sed 's/^/| /' conftest.
$ac_ext >&5
4415 echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4416 echo "${ECHO_T}buggy but acceptable" >&6
4418 rm -f conftest.err conftest.
$ac_objext \
4419 conftest
$ac_exeext conftest.
$ac_ext
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.
$ac_ext >&5
4424 echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6; have_gmp
=no
4427 rm -f conftest.err conftest.
$ac_objext \
4428 conftest
$ac_exeext conftest.
$ac_ext
4431 CFLAGS
="$saved_CFLAGS"
4433 if test x
$have_gmp != xyes
; then
4434 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4435 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4436 Copies of these libraries' source code can be found at their respective
4437 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4438 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4439 If you obtained GMP and/or MPFR from a vendor distribution package, make
4440 sure that you have installed both the libraries and the header files.
4441 They may be located in separate packages." >&5
4442 echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4443 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4444 Copies of these libraries' source code can be found at their respective
4445 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4446 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4447 If you obtained GMP and/or MPFR from a vendor distribution package, make
4448 sure that you have installed both the libraries and the header files.
4449 They may be located in separate packages." >&2;}
4450 { (exit 1); exit 1; }; }
4454 # Flags needed for both GMP and/or MPFR
4458 # By default, C is the only stage 1 language.
4459 stage1_languages
=,c
,
4461 # Figure out what language subdirectories are present.
4462 # Look if the user specified --enable-languages="..."; if not, use
4463 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4465 # NB: embedded tabs in this IF block -- do not untabify
4466 if test -d ${srcdir}/gcc
; then
4467 if test x
"${enable_languages+set}" != xset
; then
4468 if test x
"${LANGUAGES+set}" = xset
; then
4469 enable_languages
="${LANGUAGES}"
4470 echo configure.
in: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
4472 enable_languages
=all
4475 if test x
"${enable_languages}" = x ||
4476 test x
"${enable_languages}" = xyes
;
4478 echo configure.
in: --enable-languages needs
at least one language argument
1>&2
4482 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4484 # 'f95' is the old name for the 'fortran' language. We issue a warning
4485 # and make the substitution.
4486 case ,${enable_languages}, in
4488 echo configure.
in: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
4489 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4493 # First scan to see if an enabled language requires some other language.
4494 # We assume that a given config-lang.in will list all the language
4495 # front ends it requires, even if some are required indirectly.
4496 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
4497 case ${lang_frag} in
4499 # The odd quoting in the next line works around
4500 # an apparent bug in bash 1.12 on linux.
4501 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
4503 # From the config-lang.in, get $language, $lang_requires
4507 for other
in ${lang_requires} ; do
4508 case ,${enable_languages}, in
4512 echo " \`$other' language required by \`$language'; enabling" 1>&2
4513 enable_languages
="${enable_languages},${other}"
4521 new_enable_languages
=,c
,
4522 missing_languages
=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
4523 potential_languages
=,c
,
4525 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
4526 case ${lang_frag} in
4528 # The odd quoting in the next line works around
4529 # an apparent bug in bash 1.12 on linux.
4530 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
4532 # From the config-lang.in, get $language, $target_libs,
4533 # $lang_dirs, $boot_language, and $build_by_default
4539 build_by_default
=yes
4541 if test x
${language} = x
; then
4542 echo "${lang_frag} doesn't set \$language." 1>&2
4546 case ,${enable_languages}, in
4548 # Language was explicitly selected; include it.
4552 # 'all' was selected, select it if it is a default language
4553 add_this_lang
=${build_by_default}
4560 # Disable languages that need other directories if these aren't available.
4561 for i
in $subdir_requires; do
4562 test -f "$srcdir/gcc/$i/config-lang.in" && continue
4563 case ,${enable_languages}, in
4565 # Specifically requested language; tell them.
4566 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4567 echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4568 { (exit 1); exit 1; }; }
4572 add_this_lang
=unsupported
4577 # Disable Ada if no preexisting GNAT is available.
4578 case ,${enable_languages},:${language}:${have_gnat} in
4579 *,${language},*:ada
:no
)
4580 # Specifically requested language; tell them.
4581 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4582 echo "$as_me: error: GNAT is required to build $language" >&2;}
4583 { (exit 1); exit 1; }; }
4587 add_this_lang
=unsupported
4591 # Disable a language that is unsupported by the target.
4592 case " $unsupported_languages " in
4594 add_this_lang
=unsupported
4598 case $add_this_lang in
4600 # Remove language-dependent dirs.
4601 eval noconfigdirs
='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4604 # Remove language-dependent dirs; still show language as supported.
4605 eval noconfigdirs
='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4606 potential_languages
="${potential_languages}${language},"
4609 new_enable_languages
="${new_enable_languages}${language},"
4610 potential_languages
="${potential_languages}${language},"
4611 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
4612 case ${boot_language} in
4614 # Add to (comma-separated) list of stage 1 languages.
4615 stage1_languages
="${stage1_languages}${language},"
4624 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4625 if test "${enable_stage1_languages+set}" = set; then
4626 enableval
="$enable_stage1_languages"
4627 case ,${enable_stage1_languages}, in
4629 # Set it to something that will have no effect in the loop below
4630 enable_stage1_languages
=c
;;
4632 enable_stage1_languages
=`echo $new_enable_languages | \
4633 sed -e "s/^,//" -e "s/,$//" ` ;;
4635 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
4636 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4639 # Add "good" languages from enable_stage1_languages to stage1_languages,
4640 # while "bad" languages go in missing_languages. Leave no duplicates.
4641 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4642 case $potential_languages in
4644 case $stage1_languages in
4646 *) stage1_languages
="$stage1_languages$i," ;;
4649 case $missing_languages in
4651 *) missing_languages
="$missing_languages$i," ;;
4657 # Remove leading/trailing commas that were added for simplicity
4658 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4659 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
4660 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4661 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4663 if test "x$missing_languages" != x
; then
4664 { { echo "$as_me:$LINENO: error:
4665 The following requested languages could not be built: ${missing_languages}
4666 Supported languages are: ${potential_languages}" >&5
4667 echo "$as_me: error:
4668 The following requested languages could not be built: ${missing_languages}
4669 Supported languages are: ${potential_languages}" >&2;}
4670 { (exit 1); exit 1; }; }
4672 if test "x$new_enable_languages" != "x$enable_languages"; then
4673 echo The following languages will be built
: ${new_enable_languages}
4674 enable_languages
="$new_enable_languages"
4678 ac_configure_args
=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
4681 # Handle --disable-<component> generically.
4682 for dir
in $configdirs $build_configdirs $target_configdirs ; do
4683 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4684 if eval test x\
${enable_${dirname}} "=" xno
; then
4685 noconfigdirs
="$noconfigdirs $dir"
4689 # Check for Boehm's garbage collector
4690 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4691 if test "${enable_objc_gc+set}" = set; then
4692 enableval
="$enable_objc_gc"
4693 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4694 *,objc
,*:*:yes:*target-boehm-gc
*)
4695 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4696 echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4697 { (exit 1); exit 1; }; }
4702 # Make sure we only build Boehm's garbage collector if required.
4703 case ,${enable_languages},:${enable_objc_gc} in
4705 # Keep target-boehm-gc if requested for Objective-C.
4708 # Otherwise remove target-boehm-gc depending on target-libjava.
4709 if echo " ${noconfigdirs} " |
grep "target-libjava" >/dev
/null
2>&1; then
4710 noconfigdirs
="$noconfigdirs target-boehm-gc"
4715 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4716 # $build_configdirs and $target_configdirs.
4717 # If we have the source for $noconfigdirs entries, add them to $notsupp.
4720 for dir
in .
$skipdirs $noconfigdirs ; do
4721 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
4722 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
4723 configdirs
=`echo " ${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 " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
4733 build_configdirs
=`echo " ${build_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"
4742 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
4743 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4744 if test -r $srcdir/$dirname/configure
; then
4745 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
4748 notsupp
="$notsupp $dir"
4754 # Sometimes the tools are distributed with libiberty but with no other
4755 # libraries. In that case, we don't want to build target-libiberty.
4756 # Don't let libgcc imply libiberty either.
4757 if test -n "${target_configdirs}" ; then
4760 for i
in `echo ${target_configdirs} | sed -e s/target-//g` ; do
4761 if test "$i" = "libgcc"; then
4762 libgcc
=target-libgcc
4763 elif test "$i" != "libiberty" ; then
4764 if test -r $srcdir/$i/configure
; then
4770 if test -z "${others}" ; then
4771 target_configdirs
=$libgcc
4775 # Quietly strip out all directories which aren't configurable in this tree.
4776 # This relies on all configurable subdirectories being autoconfiscated, which
4778 build_configdirs_all
="$build_configdirs"
4780 for i
in ${build_configdirs_all} ; do
4781 j
=`echo $i | sed -e s/build-//g`
4782 if test -f ${srcdir}/$j/configure
; then
4783 build_configdirs
="${build_configdirs} $i"
4787 configdirs_all
="$configdirs"
4789 for i
in ${configdirs_all} ; do
4790 if test -f ${srcdir}/$i/configure
; then
4791 configdirs
="${configdirs} $i"
4795 target_configdirs_all
="$target_configdirs"
4797 for i
in ${target_configdirs_all} ; do
4798 j
=`echo $i | sed -e s/target-//g`
4799 if test -f ${srcdir}/$j/configure
; then
4800 target_configdirs
="${target_configdirs} $i"
4804 # Produce a warning message for the subdirs we can't configure.
4805 # This isn't especially interesting in the Cygnus tree, but in the individual
4806 # FSF releases, it's important to let people know when their machine isn't
4807 # supported by the one or two programs in a package.
4809 if test -n "${notsupp}" && test -z "${norecursion}" ; then
4810 # If $appdirs is non-empty, at least one of those directories must still
4811 # be configured, or we error out. (E.g., if the gas release supports a
4812 # specified target in some subdirs but not the gas subdir, we shouldn't
4813 # pretend that all is well.)
4814 if test -n "$appdirs" ; then
4815 for dir
in $appdirs ; do
4816 if test -r $dir/Makefile.
in ; then
4817 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
4821 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
4827 if test -n "$appdirs" ; then
4828 echo "*** This configuration is not supported by this package." 1>&2
4832 # Okay, some application will build, or we don't care to check. Still
4833 # notify of subdirs not getting built.
4834 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4835 echo " ${notsupp}" 1>&2
4836 echo " (Any other directories should still work fine.)" 1>&2
4844 # To find our prefix, in gcc_cv_tool_prefix.
4846 # The user is always right.
4847 if test "${PATH_SEPARATOR+set}" != set; then
4848 echo "#! /bin/sh" >conf$$.sh
4849 echo "exit 0" >>conf$$.sh
4851 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4861 if test "x$exec_prefix" = xNONE
; then
4862 if test "x$prefix" = xNONE
; then
4863 gcc_cv_tool_prefix
=$ac_default_prefix
4865 gcc_cv_tool_prefix
=$prefix
4868 gcc_cv_tool_prefix
=$exec_prefix
4871 # If there is no compiler in the tree, use the PATH only. In any
4872 # case, if there is no compiler in the tree nobody should use
4873 # AS_FOR_TARGET and LD_FOR_TARGET.
4874 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
4875 gcc_version
=`cat $srcdir/gcc/BASE-VER`
4876 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
4877 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
4878 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
4879 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
4880 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
4881 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
4886 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
4887 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
4895 # Check whether --with-build-sysroot or --without-build-sysroot was given.
4896 if test "${with_build_sysroot+set}" = set; then
4897 withval
="$with_build_sysroot"
4898 if test x
"$withval" != x
; then
4899 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
4902 SYSROOT_CFLAGS_FOR_TARGET
=
4906 # Handle --with-headers=XXX. If the value is not "yes", the contents of
4907 # the named directory are copied to $(tooldir)/sys-include.
4908 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
4909 if test x
${is_cross_compiler} = xno
; then
4910 echo 1>&2 '***' --with-headers is only supported when cross compiling
4913 if test x
"${with_headers}" != xyes
; then
4914 x
=${gcc_cv_tool_prefix}
4915 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
4919 # Handle --with-libs=XXX. If the value is not "yes", the contents of
4920 # the name directories are copied to $(tooldir)/lib. Multiple directories
4922 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
4923 if test x
${is_cross_compiler} = xno
; then
4924 echo 1>&2 '***' --with-libs is only supported when cross compiling
4927 if test x
"${with_libs}" != xyes
; then
4928 # Copy the libraries in reverse order, so that files in the first named
4929 # library override files in subsequent libraries.
4930 x
=${gcc_cv_tool_prefix}
4931 for l
in ${with_libs}; do
4932 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
4937 # Set with_gnu_as and with_gnu_ld as appropriate.
4939 # This is done by determining whether or not the appropriate directory
4940 # is available, and by checking whether or not specific configurations
4941 # have requested that this magic not happen.
4943 # The command line options always override the explicit settings in
4944 # configure.in, and the settings in configure.in override this magic.
4946 # If the default for a toolchain is to use GNU as and ld, and you don't
4947 # want to do that, then you should use the --without-gnu-as and
4948 # --without-gnu-ld options for the configure script.
4950 if test x
${use_gnu_as} = x
&&
4951 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
4953 extra_host_args
="$extra_host_args --with-gnu-as"
4956 if test x
${use_gnu_ld} = x
&&
4957 echo " ${configdirs} " |
grep " ld " > /dev
/null
2>&1 ; then
4959 extra_host_args
="$extra_host_args --with-gnu-ld"
4962 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
4963 # can detect this case.
4965 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
4967 extra_host_args
="$extra_host_args --with-newlib"
4970 # Handle ${copy_dirs}
4971 set fnord
${copy_dirs}
4973 while test $# != 0 ; do
4974 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
4977 echo Copying
$1 to
$2
4979 # Use the install script to create the directory and all required
4980 # parent directories.
4981 if test -d $2 ; then
4985 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
4988 # Copy the directory, assuming we have tar.
4989 # FIXME: Should we use B in the second tar? Not all systems support it.
4990 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
4992 # It is the responsibility of the user to correctly adjust all
4993 # symlinks. If somebody can figure out how to handle them correctly
4994 # here, feel free to add the code.
5001 # Determine a target-dependent exec_prefix that the installed
5002 # gcc will search in. Keep this list sorted by triplet, with
5003 # the *-*-osname triplets last.
5007 md_exec_prefix
=/gnu
/lib
/gcc-lib
5009 i3456786-pc-msdosdjgpp
*)
5010 md_exec_prefix
=/dev
/env
/DJDIR
/bin
5012 i3456786-
*-sco3.2v5
*)
5013 if test $with_gnu_as = yes; then
5014 md_exec_prefix
=/usr
/gnu
/bin
5016 md_exec_prefix
=/usr
/ccs
/bin
/elf
5021 powerpc-
*-chorusos* | \
5022 powerpc
*-*-eabi* | \
5023 powerpc
*-*-sysv* | \
5024 powerpc
*-*-kaos* | \
5026 md_exec_prefix
=/usr
/ccs
/bin
5031 md_exec_prefix
=/usr
/ccs
/bin
5046 md_exec_prefix
=/usr
/ccs
/bin
5050 extra_arflags_for_target
=
5051 extra_nmflags_for_target
=
5052 extra_ranlibflags_for_target
=
5053 target_makefile_frag
=/dev
/null
5056 target_makefile_frag
="config/mt-mep"
5059 target_makefile_frag
="config/mt-spu"
5062 target_makefile_frag
="config/mt-netware"
5064 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
5065 target_makefile_frag
="config/mt-gnu"
5067 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
5068 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
5069 # commands to handle both 32-bit and 64-bit objects. These flags are
5070 # harmless if we're using GNU nm or ar.
5071 extra_arflags_for_target
=" -X32_64"
5072 extra_nmflags_for_target
=" -B -X32_64"
5075 # ranlib from Darwin requires the -c flag to look at common symbols.
5076 extra_ranlibflags_for_target
=" -c"
5078 mips
*-*-pe | sh
*-*-pe |
*arm-wince-pe
)
5079 target_makefile_frag
="config/mt-wince"
5083 alphaieee_frag
=/dev
/null
5086 # This just makes sure to use the -mieee option to build target libs.
5087 # This should probably be set individually by each library.
5088 alphaieee_frag
="config/mt-alphaieee"
5092 # If --enable-target-optspace always use -Os instead of -O2 to build
5093 # the target libraries, similarly if it is not specified, use -Os
5094 # on selected platforms.
5095 ospace_frag
=/dev
/null
5096 case "${enable_target_optspace}:${target}" in
5098 ospace_frag
="config/mt-ospace"
5101 ospace_frag
="config/mt-d30v"
5103 :m32r-
* |
:d10v-
* |
:fr30-
*)
5104 ospace_frag
="config/mt-ospace"
5109 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5113 # Default to using --with-stabs for certain targets.
5114 if test x
${with_stabs} = x
; then
5118 mips
*-*-* | alpha
*-*-osf*)
5120 extra_host_args
="${extra_host_args} --with-stabs"
5125 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5126 # them automatically.
5129 extra_host_args
="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5133 # Some systems (e.g., one of the i386-aix systems the gas testers are
5134 # using) don't handle "\$" correctly, so don't use it here.
5135 tooldir
='${exec_prefix}'/${target_noncanonical}
5136 build_tooldir
=${tooldir}
5138 # Create a .gdbinit file which runs the one in srcdir
5139 # and tells GDB to look there for source files.
5141 if test -r ${srcdir}/.gdbinit
; then
5144 *) cat > .
/.gdbinit
<<EOF
5148 source ${srcdir}/.gdbinit
5154 # Make sure that the compiler is able to generate an executable. If it
5155 # can't, we are probably in trouble. We don't care whether we can run the
5156 # executable--we might be using a cross compiler--we only care whether it
5157 # can be created. At this point the main configure script has set CC.
5159 echo "int main () { return 0; }" > conftest.c
5160 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5161 if test $?
= 0 ; then
5162 if test -s conftest ||
test -s conftest.exe
; then
5168 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5169 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5176 # The Solaris /usr/ucb/cc compiler does not appear to work.
5178 sparc-sun-solaris2
*)
5179 CCBASE
="`echo ${CC-cc} | sed 's/ .*$//'`"
5180 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5182 test -d /opt
/SUNWspro
/bin
&& could_use
="/opt/SUNWspro/bin"
5183 if test -d /opt
/cygnus
/bin
; then
5184 if test "$could_use" = "" ; then
5185 could_use
="/opt/cygnus/bin"
5187 could_use
="$could_use or /opt/cygnus/bin"
5190 if test "$could_use" = "" ; then
5191 echo "Warning: compilation may fail because you're using"
5192 echo "/usr/ucb/cc. You should change your PATH or CC "
5193 echo "variable and rerun configure."
5195 echo "Warning: compilation may fail because you're using"
5196 echo "/usr/ucb/cc, when you should use the C compiler from"
5197 echo "$could_use. You should change your"
5198 echo "PATH or CC variable and rerun configure."
5205 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
5206 *-*-darwin* |
*-*-rhapsody* ) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
5207 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
5210 # Record target_configdirs and the configure arguments for target and
5211 # build configuration in Makefile.
5212 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
5213 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
5215 # Determine whether gdb needs tk/tcl or not.
5216 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5217 # and in that case we want gdb to be built without tk. Ugh!
5218 # In fact I believe gdb is the *only* package directly dependent on tk,
5219 # so we should be able to put the 'maybe's in unconditionally and
5220 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
5221 # 100% sure that that's safe though.
5223 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
5224 case "$enable_gdbtk" in
5228 GDB_TK
="${gdb_tk}" ;;
5230 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5231 # distro. Eventually someone will fix this and move Insight, nee
5232 # gdbtk to a separate directory.
5233 if test -d ${srcdir}/gdb
/gdbtk
; then
5240 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5241 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
5243 # Strip out unwanted targets.
5245 # While at that, we remove Makefiles if we were started for recursive
5246 # configuration, so that the top-level Makefile reconfigures them,
5247 # like we used to do when configure itself was recursive.
5249 # Loop over modules. $extrasub must be used with care, limiting as
5250 # much as possible the usage of range addresses. That's because autoconf
5251 # splits the sed script to overcome limits in the number of commands,
5252 # and relying on carefully-timed sed passes may turn out to be very hard
5253 # to maintain later. In this particular case, you just have to be careful
5254 # not to nest @if/@endif pairs, because configure will not warn you at all.
5256 # Check whether --enable-bootstrap or --disable-bootstrap was given.
5257 if test "${enable_bootstrap+set}" = set; then
5258 enableval
="$enable_bootstrap"
5261 enable_bootstrap
=default
5264 # Issue errors and warnings for invalid/strange bootstrap combinations.
5265 case "$configdirs" in
5266 *gcc
*) have_compiler
=yes ;;
5267 *) have_compiler
=no
;;
5270 case "$have_compiler:$host:$target:$enable_bootstrap" in
5273 # Default behavior. Enable bootstrap if we have a compiler
5274 # and we are in a native configuration.
5275 yes:$build:$build:default
)
5276 enable_bootstrap
=yes ;;
5279 enable_bootstrap
=no
;;
5281 # We have a compiler and we are in a native configuration, bootstrap is ok
5282 yes:$build:$build:yes)
5285 # Other configurations, but we have a compiler. Assume the user knows
5288 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5289 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5292 # No compiler: if they passed --enable-bootstrap explicitly, fail
5294 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5295 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5296 { (exit 1); exit 1; }; } ;;
5298 # Fail if wrong command line
5300 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5301 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5302 { (exit 1); exit 1; }; }
5306 # Adjust the toplevel makefile according to whether bootstrap was selected.
5307 case "$enable_bootstrap" in
5309 bootstrap_suffix
=bootstrap
;;
5311 bootstrap_suffix
=no-bootstrap
;;
5314 for module
in ${build_configdirs} ; do
5315 if test -z "${no_recursion}" \
5316 && test -f ${build_subdir}/${module}/Makefile
; then
5317 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5318 rm -f ${build_subdir}/${module}/Makefile
5321 /^@if build-$module\$/d
5322 /^@endif build-$module\$/d
5323 /^@if build-$module-$bootstrap_suffix\$/d
5324 /^@endif build-$module-$bootstrap_suffix\$/d"
5326 for module
in ${configdirs} ; do
5327 if test -z "${no_recursion}"; then
5328 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
5329 if test -f ${file}; then
5330 echo 1>&2 "*** removing ${file} to force reconfigure"
5337 /^@endif $module\$/d
5338 /^@if $module-$bootstrap_suffix\$/d
5339 /^@endif $module-$bootstrap_suffix\$/d"
5341 for module
in ${target_configdirs} ; do
5342 if test -z "${no_recursion}" \
5343 && test -f ${target_subdir}/${module}/Makefile
; then
5344 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5345 rm -f ${target_subdir}/${module}/Makefile
5348 /^@if target-$module\$/d
5349 /^@endif target-$module\$/d
5350 /^@if target-$module-$bootstrap_suffix\$/d
5351 /^@endif target-$module-$bootstrap_suffix\$/d"
5355 /^@if /,/^@endif /d"
5357 # Create the serialization dependencies. This uses a temporary file.
5359 # Check whether --enable-serial-configure or --disable-serial-configure was given.
5360 if test "${enable_serial_configure+set}" = set; then
5361 enableval
="$enable_serial_configure"
5365 case ${enable_serial_configure} in
5367 enable_serial_build_configure
=yes
5368 enable_serial_host_configure
=yes
5369 enable_serial_target_configure
=yes
5373 # These force 'configure's to be done one at a time, to avoid problems
5374 # with contention over a shared config.cache.
5376 echo '# serdep.tmp' > serdep.tmp
5378 test "x${enable_serial_build_configure}" = xyes
&&
5379 for item
in ${build_configdirs} ; do
5382 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
5387 test "x${enable_serial_host_configure}" = xyes
&&
5388 for item
in ${configdirs} ; do
5391 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
5396 test "x${enable_serial_target_configure}" = xyes
&&
5397 for item
in ${target_configdirs} ; do
5400 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
5404 serialization_dependencies
=serdep.tmp
5407 # Base args. Strip norecursion, cache-file, srcdir, host, build,
5408 # target, nonopt, and variable assignments. These are the ones we
5409 # might not want to pass down to subconfigures. Also strip
5410 # program-prefix, program-suffix, and program-transform-name, so that
5411 # we can pass down a consistent program-transform-name.
5415 eval "set -- $ac_configure_args"
5418 if test X
"$skip_next" = X
"yes"; then
5422 if test X
"$keep_next" = X
"yes"; then
5425 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5427 baseargs
="$baseargs '$ac_arg'"
5432 # Handle separated arguments. Based on the logic generated by
5435 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
5436 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
5437 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
5438 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
5464 -program-prefix* | \
5465 -program-suffix* | \
5466 -program-transform-name* )
5467 skip_next
=$separate_arg
5471 # An option. Add it.
5474 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5476 baseargs
="$baseargs '$ac_arg'"
5477 keep_next
=$separate_arg
5480 # Either a variable assignment, or a nonopt (triplet). Don't
5481 # pass it down; let the Makefile handle this.
5486 # Remove the initial space we just introduced and, as these will be
5487 # expanded by make, quote '$'.
5488 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
5490 # Add in --program-transform-name, after --program-prefix and
5491 # --program-suffix have been applied to it. Autoconf has already
5492 # doubled dollar signs and backslashes in program_transform_name; we want
5493 # the backslashes un-doubled, and then the entire thing wrapped in single
5494 # quotes, because this will be expanded first by make and then by the shell.
5495 # Also, because we want to override the logic in subdir configure scripts to
5496 # choose program_transform_name, replace any s,x,x, with s,y,y,.
5497 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5498 ${program_transform_name}
5500 gcc_transform_name
=`cat conftestsed.out`
5501 rm -f conftestsed.out
5502 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
5504 # For the build-side libraries, we just need to pretend we're native,
5505 # and not use the same cache file. Multilibs are neither needed nor
5507 build_configargs
="--cache-file=../config.cache ${baseargs}"
5509 # For host modules, accept cache file option, or specification as blank.
5510 case "${cache_file}" in
5512 cache_file_option
="" ;;
5513 /* |
[A-Za-z
]:[\\/]* ) # absolute path
5514 cache_file_option
="--cache-file=${cache_file}" ;;
5516 cache_file_option
="--cache-file=../${cache_file}" ;;
5519 # Host dirs don't like to share a cache file either, horribly enough.
5520 # This seems to be due to autoconf 2.5x stupidity.
5521 host_configargs
="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
5523 target_configargs
=${baseargs}
5525 # Passing a --with-cross-host argument lets the target libraries know
5526 # whether they are being built with a cross-compiler or being built
5527 # native. However, it would be better to use other mechanisms to make the
5528 # sorts of decisions they want to make on this basis. Please consider
5529 # this option to be deprecated. FIXME.
5530 if test x
${is_cross_compiler} = xyes
; then
5531 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
5534 # Default to --enable-multilib.
5535 if test x
${enable_multilib} = x
; then
5536 target_configargs
="--enable-multilib ${target_configargs}"
5539 # Pass --with-newlib if appropriate. Note that target_configdirs has
5540 # changed from the earlier setting of with_newlib.
5541 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
5542 target_configargs
="--with-newlib ${target_configargs}"
5545 # Different target subdirs use different values of certain variables
5546 # (notably CXX). Worse, multilibs use *lots* of different values.
5547 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5548 # it doesn't automatically accept command-line overrides of them.
5549 # This means it's not safe for target subdirs to share a cache file,
5550 # which is disgusting, but there you have it. Hopefully this can be
5551 # fixed in future. It's still worthwhile to use a cache file for each
5552 # directory. I think.
5554 # Pass the appropriate --build, --host, --target and --cache-file arguments.
5555 # We need to pass --target, as newer autoconf's requires consistency
5556 # for target_alias and gcc doesn't manage it consistently.
5557 target_configargs
="--cache-file=./config.cache ${target_configargs}"
5560 case " $target_configdirs " in
5562 case " $target_configargs " in
5563 *" --with-newlib "*)
5566 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' ;;
5569 # If we're not building GCC, don't discard standard headers.
5570 if test -d ${srcdir}/gcc
; then
5571 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
5573 if test "${build}" != "${host}"; then
5574 # On Canadian crosses, CC_FOR_TARGET will have already been set
5575 # by `configure', so we won't have an opportunity to add -Bgcc/
5576 # to it. This is right: we don't want to search that directory
5577 # for binaries, but we want the header files in there, so add
5579 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
5581 # Someone might think of using the pre-installed headers on
5582 # Canadian crosses, in case the installed compiler is not fully
5583 # compatible with the compiler being built. In this case, it
5584 # would be better to flag an error than risking having
5585 # incompatible object files being constructed. We can't
5586 # guarantee that an error will be flagged, but let's hope the
5587 # compiler will do it, when presented with incompatible header
5592 case "${target}-${is_cross_compiler}" in
5593 i
[3456789]86-*-linux*-no)
5594 # Here host == target, so we don't need to build gcc,
5595 # so we don't want to discard standard headers.
5596 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5599 # If we're building newlib, use its generic headers last, but search
5600 # for any libc-related directories first (so make it the last -B
5602 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5611 # Can't be handled as Cygwin above since Mingw does not use newlib.
5612 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' ;;
5615 # Allow the user to override the flags for
5616 # our build compiler if desired.
5617 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
5619 # On Canadian crosses, we'll be searching the right directories for
5620 # the previously-installed cross compiler, so don't bother to add
5621 # flags for directories within the install tree of the compiler
5622 # being built; programs in there won't even run.
5623 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5624 # Search for pre-installed headers if nothing else fits.
5625 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
5628 if test "x
${use_gnu_ld}" = x &&
5629 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
5630 # Arrange for us to find uninstalled linker scripts.
5631 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
5634 # Search for other target-specific linker scripts and such.
5637 if test -d ${srcdir}/libgloss/m32c; then
5638 # This is for crt0.o
5639 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5640 # This is for r8c.ld
5641 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5642 # This is for libnosys.a
5643 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5647 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5651 # Makefile fragments.
5652 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5654 eval fragval=\$$frag
5655 if test $fragval != /dev/null; then
5656 eval $frag=${srcdir}/$fragval
5664 # Miscellanea: directories, flags, etc.
5672 # Build module lists & subconfigure args.
5676 # Host module lists & subconfigure args.
5680 # Target module lists & subconfigure args.
5688 # Generate default definitions for YACC, M4, LEX and other programs that run
5689 # on the build machine. These are used if the Makefile can't locate these
5690 # programs in objdir.
5691 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5693 for ac_prog in 'bison -y' byacc yacc
5695 # Extract the first word of "$ac_prog", so it can be a program name with args.
5696 set dummy $ac_prog; ac_word=$2
5697 echo "$as_me:$LINENO: checking
for $ac_word" >&5
5698 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
5699 if test "${ac_cv_prog_YACC+set}" = set; then
5700 echo $ECHO_N "(cached
) $ECHO_C" >&6
5702 if test -n "$YACC"; then
5703 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_YACC="$ac_prog"
5713 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5721 YACC=$ac_cv_prog_YACC
5722 if test -n "$YACC"; then
5723 echo "$as_me:$LINENO: result
: $YACC" >&5
5724 echo "${ECHO_T}$YACC" >&6
5726 echo "$as_me:$LINENO: result
: no
" >&5
5727 echo "${ECHO_T}no
" >&6
5730 test -n "$YACC" && break
5732 test -n "$YACC" || YACC="$MISSING bison
-y"
5734 case " $build_configdirs " in
5735 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5736 *" byacc
"*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5739 for ac_prog in bison
5741 # Extract the first word of "$ac_prog", so it can be a program name with args.
5742 set dummy $ac_prog; ac_word=$2
5743 echo "$as_me:$LINENO: checking
for $ac_word" >&5
5744 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
5745 if test "${ac_cv_prog_BISON+set}" = set; then
5746 echo $ECHO_N "(cached
) $ECHO_C" >&6
5748 if test -n "$BISON"; then
5749 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_prog_BISON="$ac_prog"
5759 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5767 BISON=$ac_cv_prog_BISON
5768 if test -n "$BISON"; then
5769 echo "$as_me:$LINENO: result
: $BISON" >&5
5770 echo "${ECHO_T}$BISON" >&6
5772 echo "$as_me:$LINENO: result
: no
" >&5
5773 echo "${ECHO_T}no
" >&6
5776 test -n "$BISON" && break
5778 test -n "$BISON" || BISON="$MISSING bison
"
5780 case " $build_configdirs " in
5781 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5784 for ac_prog in gm4 gnum4 m4
5786 # Extract the first word of "$ac_prog", so it can be a program name with args.
5787 set dummy $ac_prog; ac_word=$2
5788 echo "$as_me:$LINENO: checking
for $ac_word" >&5
5789 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
5790 if test "${ac_cv_prog_M4+set}" = set; then
5791 echo $ECHO_N "(cached
) $ECHO_C" >&6
5793 if test -n "$M4"; then
5794 ac_cv_prog_M4="$M4" # Let the user override the test.
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803 ac_cv_prog_M4="$ac_prog"
5804 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5813 if test -n "$M4"; then
5814 echo "$as_me:$LINENO: result
: $M4" >&5
5815 echo "${ECHO_T}$M4" >&6
5817 echo "$as_me:$LINENO: result
: no
" >&5
5818 echo "${ECHO_T}no
" >&6
5821 test -n "$M4" && break
5823 test -n "$M4" || M4="$MISSING m4"
5825 case " $build_configdirs " in
5826 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5829 for ac_prog in flex lex
5831 # Extract the first word of "$ac_prog", so it can be a program name with args.
5832 set dummy $ac_prog; ac_word=$2
5833 echo "$as_me:$LINENO: checking
for $ac_word" >&5
5834 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
5835 if test "${ac_cv_prog_LEX+set}" = set; then
5836 echo $ECHO_N "(cached
) $ECHO_C" >&6
5838 if test -n "$LEX"; then
5839 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848 ac_cv_prog_LEX="$ac_prog"
5849 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5858 if test -n "$LEX"; then
5859 echo "$as_me:$LINENO: result
: $LEX" >&5
5860 echo "${ECHO_T}$LEX" >&6
5862 echo "$as_me:$LINENO: result
: no
" >&5
5863 echo "${ECHO_T}no
" >&6
5866 test -n "$LEX" && break
5868 test -n "$LEX" || LEX="$MISSING flex
"
5870 case " $build_configdirs " in
5871 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5872 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
5877 # Extract the first word of "$ac_prog", so it can be a program name with args.
5878 set dummy $ac_prog; ac_word=$2
5879 echo "$as_me:$LINENO: checking
for $ac_word" >&5
5880 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
5881 if test "${ac_cv_prog_FLEX+set}" = set; then
5882 echo $ECHO_N "(cached
) $ECHO_C" >&6
5884 if test -n "$FLEX"; then
5885 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894 ac_cv_prog_FLEX="$ac_prog"
5895 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5903 FLEX=$ac_cv_prog_FLEX
5904 if test -n "$FLEX"; then
5905 echo "$as_me:$LINENO: result
: $FLEX" >&5
5906 echo "${ECHO_T}$FLEX" >&6
5908 echo "$as_me:$LINENO: result
: no
" >&5
5909 echo "${ECHO_T}no
" >&6
5912 test -n "$FLEX" && break
5914 test -n "$FLEX" || FLEX="$MISSING flex
"
5916 case " $build_configdirs " in
5917 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5920 for ac_prog in makeinfo
5922 # Extract the first word of "$ac_prog", so it can be a program name with args.
5923 set dummy $ac_prog; ac_word=$2
5924 echo "$as_me:$LINENO: checking
for $ac_word" >&5
5925 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
5926 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5927 echo $ECHO_N "(cached
) $ECHO_C" >&6
5929 if test -n "$MAKEINFO"; then
5930 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939 ac_cv_prog_MAKEINFO="$ac_prog"
5940 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5948 MAKEINFO=$ac_cv_prog_MAKEINFO
5949 if test -n "$MAKEINFO"; then
5950 echo "$as_me:$LINENO: result
: $MAKEINFO" >&5
5951 echo "${ECHO_T}$MAKEINFO" >&6
5953 echo "$as_me:$LINENO: result
: no
" >&5
5954 echo "${ECHO_T}no
" >&6
5957 test -n "$MAKEINFO" && break
5959 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
5961 case " $build_configdirs " in
5962 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
5965 # For an installed makeinfo, we require it to be from texinfo 4.4 or
5966 # higher, else we use the "missing
" dummy.
5967 if ${MAKEINFO} --version \
5968 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
5971 MAKEINFO="$MISSING makeinfo
"
5977 # FIXME: expect and dejagnu may become build tools?
5979 for ac_prog in expect
5981 # Extract the first word of "$ac_prog", so it can be a program name with args.
5982 set dummy $ac_prog; ac_word=$2
5983 echo "$as_me:$LINENO: checking
for $ac_word" >&5
5984 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
5985 if test "${ac_cv_prog_EXPECT+set}" = set; then
5986 echo $ECHO_N "(cached
) $ECHO_C" >&6
5988 if test -n "$EXPECT"; then
5989 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 test -z "$as_dir" && as_dir=.
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5998 ac_cv_prog_EXPECT="$ac_prog"
5999 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6007 EXPECT=$ac_cv_prog_EXPECT
6008 if test -n "$EXPECT"; then
6009 echo "$as_me:$LINENO: result
: $EXPECT" >&5
6010 echo "${ECHO_T}$EXPECT" >&6
6012 echo "$as_me:$LINENO: result
: no
" >&5
6013 echo "${ECHO_T}no
" >&6
6016 test -n "$EXPECT" && break
6018 test -n "$EXPECT" || EXPECT="expect
"
6020 case " $configdirs " in
6022 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6026 for ac_prog in runtest
6028 # Extract the first word of "$ac_prog", so it can be a program name with args.
6029 set dummy $ac_prog; ac_word=$2
6030 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6031 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6032 if test "${ac_cv_prog_RUNTEST+set}" = set; then
6033 echo $ECHO_N "(cached
) $ECHO_C" >&6
6035 if test -n "$RUNTEST"; then
6036 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6045 ac_cv_prog_RUNTEST="$ac_prog"
6046 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6054 RUNTEST=$ac_cv_prog_RUNTEST
6055 if test -n "$RUNTEST"; then
6056 echo "$as_me:$LINENO: result
: $RUNTEST" >&5
6057 echo "${ECHO_T}$RUNTEST" >&6
6059 echo "$as_me:$LINENO: result
: no
" >&5
6060 echo "${ECHO_T}no
" >&6
6063 test -n "$RUNTEST" && break
6065 test -n "$RUNTEST" || RUNTEST="runtest
"
6067 case " $configdirs " in
6069 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
6076 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6077 ncn_target_tool_prefix=
6078 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6080 for ncn_progname in ar; do
6081 if test -n "$ncn_tool_prefix"; then
6082 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6083 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6084 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6085 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6086 if test "${ac_cv_prog_AR+set}" = set; then
6087 echo $ECHO_N "(cached
) $ECHO_C" >&6
6089 if test -n "$AR"; then
6090 ac_cv_prog_AR="$AR" # Let the user override the test.
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6099 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6100 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6109 if test -n "$AR"; then
6110 echo "$as_me:$LINENO: result
: $AR" >&5
6111 echo "${ECHO_T}$AR" >&6
6113 echo "$as_me:$LINENO: result
: no
" >&5
6114 echo "${ECHO_T}no
" >&6
6118 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6120 set dummy ${ncn_progname}; ac_word=$2
6121 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6122 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6123 if test "${ac_cv_prog_AR+set}" = set; then
6124 echo $ECHO_N "(cached
) $ECHO_C" >&6
6126 if test -n "$AR"; then
6127 ac_cv_prog_AR="$AR" # Let the user override the test.
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133 test -z "$as_dir" && as_dir=.
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6136 ac_cv_prog_AR="${ncn_progname}"
6137 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6146 if test -n "$AR"; then
6147 echo "$as_me:$LINENO: result
: $AR" >&5
6148 echo "${ECHO_T}$AR" >&6
6150 echo "$as_me:$LINENO: result
: no
" >&5
6151 echo "${ECHO_T}no
" >&6
6155 test -n "$ac_cv_prog_AR" && break
6158 if test -z "$ac_cv_prog_AR" ; then
6160 if test $build = $host ; then
6163 AR="${ncn_tool_prefix}$2"
6167 for ncn_progname in as; do
6168 if test -n "$ncn_tool_prefix"; then
6169 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6170 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6171 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6172 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6173 if test "${ac_cv_prog_AS+set}" = set; then
6174 echo $ECHO_N "(cached
) $ECHO_C" >&6
6176 if test -n "$AS"; then
6177 ac_cv_prog_AS="$AS" # Let the user override the test.
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6186 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6187 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6196 if test -n "$AS"; then
6197 echo "$as_me:$LINENO: result
: $AS" >&5
6198 echo "${ECHO_T}$AS" >&6
6200 echo "$as_me:$LINENO: result
: no
" >&5
6201 echo "${ECHO_T}no
" >&6
6205 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6206 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6207 set dummy ${ncn_progname}; ac_word=$2
6208 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6209 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6210 if test "${ac_cv_prog_AS+set}" = set; then
6211 echo $ECHO_N "(cached
) $ECHO_C" >&6
6213 if test -n "$AS"; then
6214 ac_cv_prog_AS="$AS" # Let the user override the test.
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6223 ac_cv_prog_AS="${ncn_progname}"
6224 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6233 if test -n "$AS"; then
6234 echo "$as_me:$LINENO: result
: $AS" >&5
6235 echo "${ECHO_T}$AS" >&6
6237 echo "$as_me:$LINENO: result
: no
" >&5
6238 echo "${ECHO_T}no
" >&6
6242 test -n "$ac_cv_prog_AS" && break
6245 if test -z "$ac_cv_prog_AS" ; then
6247 if test $build = $host ; then
6250 AS="${ncn_tool_prefix}$2"
6254 for ncn_progname in dlltool; do
6255 if test -n "$ncn_tool_prefix"; then
6256 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6257 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6258 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6259 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6260 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6261 echo $ECHO_N "(cached
) $ECHO_C" >&6
6263 if test -n "$DLLTOOL"; then
6264 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6273 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6274 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6282 DLLTOOL=$ac_cv_prog_DLLTOOL
6283 if test -n "$DLLTOOL"; then
6284 echo "$as_me:$LINENO: result
: $DLLTOOL" >&5
6285 echo "${ECHO_T}$DLLTOOL" >&6
6287 echo "$as_me:$LINENO: result
: no
" >&5
6288 echo "${ECHO_T}no
" >&6
6292 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6293 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6294 set dummy ${ncn_progname}; ac_word=$2
6295 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6296 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6297 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6298 echo $ECHO_N "(cached
) $ECHO_C" >&6
6300 if test -n "$DLLTOOL"; then
6301 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6310 ac_cv_prog_DLLTOOL="${ncn_progname}"
6311 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6319 DLLTOOL=$ac_cv_prog_DLLTOOL
6320 if test -n "$DLLTOOL"; then
6321 echo "$as_me:$LINENO: result
: $DLLTOOL" >&5
6322 echo "${ECHO_T}$DLLTOOL" >&6
6324 echo "$as_me:$LINENO: result
: no
" >&5
6325 echo "${ECHO_T}no
" >&6
6329 test -n "$ac_cv_prog_DLLTOOL" && break
6332 if test -z "$ac_cv_prog_DLLTOOL" ; then
6334 if test $build = $host ; then
6337 DLLTOOL="${ncn_tool_prefix}$2"
6341 for ncn_progname in ld; do
6342 if test -n "$ncn_tool_prefix"; then
6343 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6344 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6345 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6346 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6347 if test "${ac_cv_prog_LD+set}" = set; then
6348 echo $ECHO_N "(cached
) $ECHO_C" >&6
6350 if test -n "$LD"; then
6351 ac_cv_prog_LD="$LD" # Let the user override the test.
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6360 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6361 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6370 if test -n "$LD"; then
6371 echo "$as_me:$LINENO: result
: $LD" >&5
6372 echo "${ECHO_T}$LD" >&6
6374 echo "$as_me:$LINENO: result
: no
" >&5
6375 echo "${ECHO_T}no
" >&6
6379 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6381 set dummy ${ncn_progname}; ac_word=$2
6382 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6383 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6384 if test "${ac_cv_prog_LD+set}" = set; then
6385 echo $ECHO_N "(cached
) $ECHO_C" >&6
6387 if test -n "$LD"; then
6388 ac_cv_prog_LD="$LD" # Let the user override the test.
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 test -z "$as_dir" && as_dir=.
6395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6397 ac_cv_prog_LD="${ncn_progname}"
6398 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6407 if test -n "$LD"; then
6408 echo "$as_me:$LINENO: result
: $LD" >&5
6409 echo "${ECHO_T}$LD" >&6
6411 echo "$as_me:$LINENO: result
: no
" >&5
6412 echo "${ECHO_T}no
" >&6
6416 test -n "$ac_cv_prog_LD" && break
6419 if test -z "$ac_cv_prog_LD" ; then
6421 if test $build = $host ; then
6424 LD="${ncn_tool_prefix}$2"
6428 for ncn_progname in lipo; do
6429 if test -n "$ncn_tool_prefix"; then
6430 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6431 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6432 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6433 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6434 if test "${ac_cv_prog_LIPO+set}" = set; then
6435 echo $ECHO_N "(cached
) $ECHO_C" >&6
6437 if test -n "$LIPO"; then
6438 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6448 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6456 LIPO=$ac_cv_prog_LIPO
6457 if test -n "$LIPO"; then
6458 echo "$as_me:$LINENO: result
: $LIPO" >&5
6459 echo "${ECHO_T}$LIPO" >&6
6461 echo "$as_me:$LINENO: result
: no
" >&5
6462 echo "${ECHO_T}no
" >&6
6466 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6468 set dummy ${ncn_progname}; ac_word=$2
6469 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6470 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6471 if test "${ac_cv_prog_LIPO+set}" = set; then
6472 echo $ECHO_N "(cached
) $ECHO_C" >&6
6474 if test -n "$LIPO"; then
6475 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484 ac_cv_prog_LIPO="${ncn_progname}"
6485 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6493 LIPO=$ac_cv_prog_LIPO
6494 if test -n "$LIPO"; then
6495 echo "$as_me:$LINENO: result
: $LIPO" >&5
6496 echo "${ECHO_T}$LIPO" >&6
6498 echo "$as_me:$LINENO: result
: no
" >&5
6499 echo "${ECHO_T}no
" >&6
6503 test -n "$ac_cv_prog_LIPO" && break
6506 if test -z "$ac_cv_prog_LIPO" ; then
6508 if test $build = $host ; then
6511 LIPO="${ncn_tool_prefix}$2"
6515 for ncn_progname in nm; do
6516 if test -n "$ncn_tool_prefix"; then
6517 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6518 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6519 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6520 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6521 if test "${ac_cv_prog_NM+set}" = set; then
6522 echo $ECHO_N "(cached
) $ECHO_C" >&6
6524 if test -n "$NM"; then
6525 ac_cv_prog_NM="$NM" # Let the user override the test.
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 test -z "$as_dir" && as_dir=.
6532 for ac_exec_ext in '' $ac_executable_extensions; do
6533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6534 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
6535 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6544 if test -n "$NM"; then
6545 echo "$as_me:$LINENO: result
: $NM" >&5
6546 echo "${ECHO_T}$NM" >&6
6548 echo "$as_me:$LINENO: result
: no
" >&5
6549 echo "${ECHO_T}no
" >&6
6553 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
6554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6555 set dummy ${ncn_progname}; ac_word=$2
6556 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6557 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6558 if test "${ac_cv_prog_NM+set}" = set; then
6559 echo $ECHO_N "(cached
) $ECHO_C" >&6
6561 if test -n "$NM"; then
6562 ac_cv_prog_NM="$NM" # Let the user override the test.
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568 test -z "$as_dir" && as_dir=.
6569 for ac_exec_ext in '' $ac_executable_extensions; do
6570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6571 ac_cv_prog_NM="${ncn_progname}"
6572 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6581 if test -n "$NM"; then
6582 echo "$as_me:$LINENO: result
: $NM" >&5
6583 echo "${ECHO_T}$NM" >&6
6585 echo "$as_me:$LINENO: result
: no
" >&5
6586 echo "${ECHO_T}no
" >&6
6590 test -n "$ac_cv_prog_NM" && break
6593 if test -z "$ac_cv_prog_NM" ; then
6595 if test $build = $host ; then
6598 NM="${ncn_tool_prefix}$2"
6602 for ncn_progname in ranlib; do
6603 if test -n "$ncn_tool_prefix"; then
6604 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6605 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6606 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6607 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6608 if test "${ac_cv_prog_RANLIB+set}" = set; then
6609 echo $ECHO_N "(cached
) $ECHO_C" >&6
6611 if test -n "$RANLIB"; then
6612 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6621 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
6622 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6630 RANLIB=$ac_cv_prog_RANLIB
6631 if test -n "$RANLIB"; then
6632 echo "$as_me:$LINENO: result
: $RANLIB" >&5
6633 echo "${ECHO_T}$RANLIB" >&6
6635 echo "$as_me:$LINENO: result
: no
" >&5
6636 echo "${ECHO_T}no
" >&6
6640 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
6641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6642 set dummy ${ncn_progname}; ac_word=$2
6643 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6644 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6645 if test "${ac_cv_prog_RANLIB+set}" = set; then
6646 echo $ECHO_N "(cached
) $ECHO_C" >&6
6648 if test -n "$RANLIB"; then
6649 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6658 ac_cv_prog_RANLIB="${ncn_progname}"
6659 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6667 RANLIB=$ac_cv_prog_RANLIB
6668 if test -n "$RANLIB"; then
6669 echo "$as_me:$LINENO: result
: $RANLIB" >&5
6670 echo "${ECHO_T}$RANLIB" >&6
6672 echo "$as_me:$LINENO: result
: no
" >&5
6673 echo "${ECHO_T}no
" >&6
6677 test -n "$ac_cv_prog_RANLIB" && break
6680 if test -z "$ac_cv_prog_RANLIB" ; then
6684 for ncn_progname in strip; do
6685 if test -n "$ncn_tool_prefix"; then
6686 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6687 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6688 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6689 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6690 if test "${ac_cv_prog_STRIP+set}" = set; then
6691 echo $ECHO_N "(cached
) $ECHO_C" >&6
6693 if test -n "$STRIP"; then
6694 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 test -z "$as_dir" && as_dir=.
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6703 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
6704 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6712 STRIP=$ac_cv_prog_STRIP
6713 if test -n "$STRIP"; then
6714 echo "$as_me:$LINENO: result
: $STRIP" >&5
6715 echo "${ECHO_T}$STRIP" >&6
6717 echo "$as_me:$LINENO: result
: no
" >&5
6718 echo "${ECHO_T}no
" >&6
6722 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
6723 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6724 set dummy ${ncn_progname}; ac_word=$2
6725 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6726 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6727 if test "${ac_cv_prog_STRIP+set}" = set; then
6728 echo $ECHO_N "(cached
) $ECHO_C" >&6
6730 if test -n "$STRIP"; then
6731 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6740 ac_cv_prog_STRIP="${ncn_progname}"
6741 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6749 STRIP=$ac_cv_prog_STRIP
6750 if test -n "$STRIP"; then
6751 echo "$as_me:$LINENO: result
: $STRIP" >&5
6752 echo "${ECHO_T}$STRIP" >&6
6754 echo "$as_me:$LINENO: result
: no
" >&5
6755 echo "${ECHO_T}no
" >&6
6759 test -n "$ac_cv_prog_STRIP" && break
6762 if test -z "$ac_cv_prog_STRIP" ; then
6766 for ncn_progname in windres; do
6767 if test -n "$ncn_tool_prefix"; then
6768 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6769 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6770 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6771 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6772 if test "${ac_cv_prog_WINDRES+set}" = set; then
6773 echo $ECHO_N "(cached
) $ECHO_C" >&6
6775 if test -n "$WINDRES"; then
6776 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6785 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
6786 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6794 WINDRES=$ac_cv_prog_WINDRES
6795 if test -n "$WINDRES"; then
6796 echo "$as_me:$LINENO: result
: $WINDRES" >&5
6797 echo "${ECHO_T}$WINDRES" >&6
6799 echo "$as_me:$LINENO: result
: no
" >&5
6800 echo "${ECHO_T}no
" >&6
6804 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
6805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6806 set dummy ${ncn_progname}; ac_word=$2
6807 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6808 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6809 if test "${ac_cv_prog_WINDRES+set}" = set; then
6810 echo $ECHO_N "(cached
) $ECHO_C" >&6
6812 if test -n "$WINDRES"; then
6813 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6822 ac_cv_prog_WINDRES="${ncn_progname}"
6823 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6831 WINDRES=$ac_cv_prog_WINDRES
6832 if test -n "$WINDRES"; then
6833 echo "$as_me:$LINENO: result
: $WINDRES" >&5
6834 echo "${ECHO_T}$WINDRES" >&6
6836 echo "$as_me:$LINENO: result
: no
" >&5
6837 echo "${ECHO_T}no
" >&6
6841 test -n "$ac_cv_prog_WINDRES" && break
6844 if test -z "$ac_cv_prog_WINDRES" ; then
6846 if test $build = $host ; then
6849 WINDRES="${ncn_tool_prefix}$2"
6853 for ncn_progname in objcopy; do
6854 if test -n "$ncn_tool_prefix"; then
6855 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6856 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6857 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6858 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6859 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6860 echo $ECHO_N "(cached
) $ECHO_C" >&6
6862 if test -n "$OBJCOPY"; then
6863 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
6873 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6881 OBJCOPY=$ac_cv_prog_OBJCOPY
6882 if test -n "$OBJCOPY"; then
6883 echo "$as_me:$LINENO: result
: $OBJCOPY" >&5
6884 echo "${ECHO_T}$OBJCOPY" >&6
6886 echo "$as_me:$LINENO: result
: no
" >&5
6887 echo "${ECHO_T}no
" >&6
6891 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
6892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6893 set dummy ${ncn_progname}; ac_word=$2
6894 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6895 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6896 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6897 echo $ECHO_N "(cached
) $ECHO_C" >&6
6899 if test -n "$OBJCOPY"; then
6900 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909 ac_cv_prog_OBJCOPY="${ncn_progname}"
6910 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6918 OBJCOPY=$ac_cv_prog_OBJCOPY
6919 if test -n "$OBJCOPY"; then
6920 echo "$as_me:$LINENO: result
: $OBJCOPY" >&5
6921 echo "${ECHO_T}$OBJCOPY" >&6
6923 echo "$as_me:$LINENO: result
: no
" >&5
6924 echo "${ECHO_T}no
" >&6
6928 test -n "$ac_cv_prog_OBJCOPY" && break
6931 if test -z "$ac_cv_prog_OBJCOPY" ; then
6933 if test $build = $host ; then
6936 OBJCOPY="${ncn_tool_prefix}$2"
6940 for ncn_progname in objdump; do
6941 if test -n "$ncn_tool_prefix"; then
6942 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6943 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6944 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6945 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6946 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6947 echo $ECHO_N "(cached
) $ECHO_C" >&6
6949 if test -n "$OBJDUMP"; then
6950 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6959 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
6960 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6968 OBJDUMP=$ac_cv_prog_OBJDUMP
6969 if test -n "$OBJDUMP"; then
6970 echo "$as_me:$LINENO: result
: $OBJDUMP" >&5
6971 echo "${ECHO_T}$OBJDUMP" >&6
6973 echo "$as_me:$LINENO: result
: no
" >&5
6974 echo "${ECHO_T}no
" >&6
6978 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
6979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6980 set dummy ${ncn_progname}; ac_word=$2
6981 echo "$as_me:$LINENO: checking
for $ac_word" >&5
6982 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
6983 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6984 echo $ECHO_N "(cached
) $ECHO_C" >&6
6986 if test -n "$OBJDUMP"; then
6987 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996 ac_cv_prog_OBJDUMP="${ncn_progname}"
6997 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7005 OBJDUMP=$ac_cv_prog_OBJDUMP
7006 if test -n "$OBJDUMP"; then
7007 echo "$as_me:$LINENO: result
: $OBJDUMP" >&5
7008 echo "${ECHO_T}$OBJDUMP" >&6
7010 echo "$as_me:$LINENO: result
: no
" >&5
7011 echo "${ECHO_T}no
" >&6
7015 test -n "$ac_cv_prog_OBJDUMP" && break
7018 if test -z "$ac_cv_prog_OBJDUMP" ; then
7020 if test $build = $host ; then
7023 OBJDUMP="${ncn_tool_prefix}$2"
7035 # Check whether --with-build-time-tools or --without-build-time-tools was given.
7036 if test "${with_build_time_tools+set}" = set; then
7037 withval="$with_build_time_tools"
7041 with_build_time_tools=
7042 { echo "$as_me:$LINENO: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
7043 echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
7047 with_build_time_tools=
7050 if test -n "$with_build_time_tools"; then
7051 for ncn_progname in cc gcc; do
7052 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
7053 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
7054 if test -x $with_build_time_tools/${ncn_progname}; then
7055 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7056 echo "$as_me:$LINENO: result
: yes" >&5
7057 echo "${ECHO_T}yes" >&6
7060 echo "$as_me:$LINENO: result
: no
" >&5
7061 echo "${ECHO_T}no
" >&6
7066 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7067 for ncn_progname in cc gcc; do
7068 if test -n "$ncn_target_tool_prefix"; then
7069 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7070 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7071 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7072 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7073 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7074 echo $ECHO_N "(cached
) $ECHO_C" >&6
7076 if test -n "$CC_FOR_TARGET"; then
7077 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7087 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7095 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7096 if test -n "$CC_FOR_TARGET"; then
7097 echo "$as_me:$LINENO: result
: $CC_FOR_TARGET" >&5
7098 echo "${ECHO_T}$CC_FOR_TARGET" >&6
7100 echo "$as_me:$LINENO: result
: no
" >&5
7101 echo "${ECHO_T}no
" >&6
7105 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
7106 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7107 set dummy ${ncn_progname}; ac_word=$2
7108 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7109 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7110 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7111 echo $ECHO_N "(cached
) $ECHO_C" >&6
7113 if test -n "$CC_FOR_TARGET"; then
7114 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7123 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7124 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7132 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7133 if test -n "$CC_FOR_TARGET"; then
7134 echo "$as_me:$LINENO: result
: $CC_FOR_TARGET" >&5
7135 echo "${ECHO_T}$CC_FOR_TARGET" >&6
7137 echo "$as_me:$LINENO: result
: no
" >&5
7138 echo "${ECHO_T}no
" >&6
7142 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
7146 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
7148 if test $build = $target ; then
7151 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
7155 if test -n "$with_build_time_tools"; then
7156 for ncn_progname in c++ g++ cxx gxx; do
7157 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
7158 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
7159 if test -x $with_build_time_tools/${ncn_progname}; then
7160 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7161 echo "$as_me:$LINENO: result
: yes" >&5
7162 echo "${ECHO_T}yes" >&6
7165 echo "$as_me:$LINENO: result
: no
" >&5
7166 echo "${ECHO_T}no
" >&6
7171 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
7172 for ncn_progname in c++ g++ cxx gxx; do
7173 if test -n "$ncn_target_tool_prefix"; then
7174 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7175 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7176 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7177 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7178 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7179 echo $ECHO_N "(cached
) $ECHO_C" >&6
7181 if test -n "$CXX_FOR_TARGET"; then
7182 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 test -z "$as_dir" && as_dir=.
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7191 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7192 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7200 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7201 if test -n "$CXX_FOR_TARGET"; then
7202 echo "$as_me:$LINENO: result
: $CXX_FOR_TARGET" >&5
7203 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
7205 echo "$as_me:$LINENO: result
: no
" >&5
7206 echo "${ECHO_T}no
" >&6
7210 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
7211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7212 set dummy ${ncn_progname}; ac_word=$2
7213 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7214 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7215 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7216 echo $ECHO_N "(cached
) $ECHO_C" >&6
7218 if test -n "$CXX_FOR_TARGET"; then
7219 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7228 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
7229 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7237 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7238 if test -n "$CXX_FOR_TARGET"; then
7239 echo "$as_me:$LINENO: result
: $CXX_FOR_TARGET" >&5
7240 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
7242 echo "$as_me:$LINENO: result
: no
" >&5
7243 echo "${ECHO_T}no
" >&6
7247 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
7251 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
7252 set dummy c++ g++ cxx gxx
7253 if test $build = $target ; then
7256 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
7260 if test -n "$with_build_time_tools"; then
7261 for ncn_progname in gcc; do
7262 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
7263 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
7264 if test -x $with_build_time_tools/${ncn_progname}; then
7265 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7266 echo "$as_me:$LINENO: result
: yes" >&5
7267 echo "${ECHO_T}yes" >&6
7270 echo "$as_me:$LINENO: result
: no
" >&5
7271 echo "${ECHO_T}no
" >&6
7276 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
7277 for ncn_progname in gcc; do
7278 if test -n "$ncn_target_tool_prefix"; then
7279 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7280 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7281 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7282 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7283 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
7284 echo $ECHO_N "(cached
) $ECHO_C" >&6
7286 if test -n "$GCC_FOR_TARGET"; then
7287 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 test -z "$as_dir" && as_dir=.
7294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7296 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7297 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7305 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
7306 if test -n "$GCC_FOR_TARGET"; then
7307 echo "$as_me:$LINENO: result
: $GCC_FOR_TARGET" >&5
7308 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
7310 echo "$as_me:$LINENO: result
: no
" >&5
7311 echo "${ECHO_T}no
" >&6
7315 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
7316 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7317 set dummy ${ncn_progname}; ac_word=$2
7318 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7319 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7320 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
7321 echo $ECHO_N "(cached
) $ECHO_C" >&6
7323 if test -n "$GCC_FOR_TARGET"; then
7324 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 test -z "$as_dir" && as_dir=.
7331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7333 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
7334 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7342 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
7343 if test -n "$GCC_FOR_TARGET"; then
7344 echo "$as_me:$LINENO: result
: $GCC_FOR_TARGET" >&5
7345 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
7347 echo "$as_me:$LINENO: result
: no
" >&5
7348 echo "${ECHO_T}no
" >&6
7352 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
7356 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
7357 GCC_FOR_TARGET="${CC_FOR_TARGET}"
7360 if test -n "$with_build_time_tools"; then
7361 for ncn_progname in gcj; do
7362 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
7363 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
7364 if test -x $with_build_time_tools/${ncn_progname}; then
7365 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7366 echo "$as_me:$LINENO: result
: yes" >&5
7367 echo "${ECHO_T}yes" >&6
7370 echo "$as_me:$LINENO: result
: no
" >&5
7371 echo "${ECHO_T}no
" >&6
7376 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
7377 for ncn_progname in gcj; do
7378 if test -n "$ncn_target_tool_prefix"; then
7379 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7380 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7381 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7382 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7383 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
7384 echo $ECHO_N "(cached
) $ECHO_C" >&6
7386 if test -n "$GCJ_FOR_TARGET"; then
7387 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7396 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7397 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7405 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
7406 if test -n "$GCJ_FOR_TARGET"; then
7407 echo "$as_me:$LINENO: result
: $GCJ_FOR_TARGET" >&5
7408 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
7410 echo "$as_me:$LINENO: result
: no
" >&5
7411 echo "${ECHO_T}no
" >&6
7415 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
7416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7417 set dummy ${ncn_progname}; ac_word=$2
7418 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7419 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7420 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
7421 echo $ECHO_N "(cached
) $ECHO_C" >&6
7423 if test -n "$GCJ_FOR_TARGET"; then
7424 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 test -z "$as_dir" && as_dir=.
7431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7433 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
7434 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7442 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
7443 if test -n "$GCJ_FOR_TARGET"; then
7444 echo "$as_me:$LINENO: result
: $GCJ_FOR_TARGET" >&5
7445 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
7447 echo "$as_me:$LINENO: result
: no
" >&5
7448 echo "${ECHO_T}no
" >&6
7452 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
7456 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
7458 if test $build = $target ; then
7461 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
7465 if test -n "$with_build_time_tools"; then
7466 for ncn_progname in gfortran; do
7467 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
7468 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
7469 if test -x $with_build_time_tools/${ncn_progname}; then
7470 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7471 echo "$as_me:$LINENO: result
: yes" >&5
7472 echo "${ECHO_T}yes" >&6
7475 echo "$as_me:$LINENO: result
: no
" >&5
7476 echo "${ECHO_T}no
" >&6
7481 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
7482 for ncn_progname in gfortran; do
7483 if test -n "$ncn_target_tool_prefix"; then
7484 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7485 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7486 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7487 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7488 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7489 echo $ECHO_N "(cached
) $ECHO_C" >&6
7491 if test -n "$GFORTRAN_FOR_TARGET"; then
7492 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7502 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7510 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
7511 if test -n "$GFORTRAN_FOR_TARGET"; then
7512 echo "$as_me:$LINENO: result
: $GFORTRAN_FOR_TARGET" >&5
7513 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
7515 echo "$as_me:$LINENO: result
: no
" >&5
7516 echo "${ECHO_T}no
" >&6
7520 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
7521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7522 set dummy ${ncn_progname}; ac_word=$2
7523 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7524 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7525 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7526 echo $ECHO_N "(cached
) $ECHO_C" >&6
7528 if test -n "$GFORTRAN_FOR_TARGET"; then
7529 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7538 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
7539 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7547 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
7548 if test -n "$GFORTRAN_FOR_TARGET"; then
7549 echo "$as_me:$LINENO: result
: $GFORTRAN_FOR_TARGET" >&5
7550 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
7552 echo "$as_me:$LINENO: result
: no
" >&5
7553 echo "${ECHO_T}no
" >&6
7557 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
7561 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
7563 if test $build = $target ; then
7564 GFORTRAN_FOR_TARGET="$2"
7566 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
7572 cat > conftest.c << \EOF
7577 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
7578 have_gcc_for_target=yes
7580 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
7581 have_gcc_for_target=no
7588 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7589 if test -n "$with_build_time_tools"; then
7590 echo "$as_me:$LINENO: checking
for ar in $with_build_time_tools" >&5
7591 echo $ECHO_N "checking
for ar in $with_build_time_tools...
$ECHO_C" >&6
7592 if test -x $with_build_time_tools/ar; then
7593 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
7594 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
7595 echo "$as_me:$LINENO: result
: $ac_cv_path_AR_FOR_TARGET" >&5
7596 echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
7598 echo "$as_me:$LINENO: result
: no
" >&5
7599 echo "${ECHO_T}no
" >&6
7601 elif test $build != $host && test $have_gcc_for_target = yes; then
7602 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
7603 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
7604 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
7607 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
7608 # Extract the first word of "ar", so it can be a program name with args.
7609 set dummy ar; ac_word=$2
7610 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7611 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7612 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
7613 echo $ECHO_N "(cached
) $ECHO_C" >&6
7615 case $AR_FOR_TARGET in
7617 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $gcc_cv_tool_dirs
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7627 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7628 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7637 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
7639 if test -n "$AR_FOR_TARGET"; then
7640 echo "$as_me:$LINENO: result
: $AR_FOR_TARGET" >&5
7641 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7643 echo "$as_me:$LINENO: result
: no
" >&5
7644 echo "${ECHO_T}no
" >&6
7648 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7649 if test -n "$with_build_time_tools"; then
7650 for ncn_progname in ar; do
7651 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
7652 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
7653 if test -x $with_build_time_tools/${ncn_progname}; then
7654 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7655 echo "$as_me:$LINENO: result
: yes" >&5
7656 echo "${ECHO_T}yes" >&6
7659 echo "$as_me:$LINENO: result
: no
" >&5
7660 echo "${ECHO_T}no
" >&6
7665 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
7666 for ncn_progname in ar; do
7667 if test -n "$ncn_target_tool_prefix"; then
7668 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7669 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7670 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7671 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7672 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7673 echo $ECHO_N "(cached
) $ECHO_C" >&6
7675 if test -n "$AR_FOR_TARGET"; then
7676 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 test -z "$as_dir" && as_dir=.
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7685 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7686 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7694 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
7695 if test -n "$AR_FOR_TARGET"; then
7696 echo "$as_me:$LINENO: result
: $AR_FOR_TARGET" >&5
7697 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7699 echo "$as_me:$LINENO: result
: no
" >&5
7700 echo "${ECHO_T}no
" >&6
7704 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
7705 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7706 set dummy ${ncn_progname}; ac_word=$2
7707 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7708 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7709 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7710 echo $ECHO_N "(cached
) $ECHO_C" >&6
7712 if test -n "$AR_FOR_TARGET"; then
7713 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
7723 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7731 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
7732 if test -n "$AR_FOR_TARGET"; then
7733 echo "$as_me:$LINENO: result
: $AR_FOR_TARGET" >&5
7734 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7736 echo "$as_me:$LINENO: result
: no
" >&5
7737 echo "${ECHO_T}no
" >&6
7741 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
7745 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
7747 if test $build = $target ; then
7750 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7755 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
7761 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7762 if test -n "$with_build_time_tools"; then
7763 echo "$as_me:$LINENO: checking
for as
in $with_build_time_tools" >&5
7764 echo $ECHO_N "checking
for as
in $with_build_time_tools...
$ECHO_C" >&6
7765 if test -x $with_build_time_tools/as; then
7766 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
7767 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7768 echo "$as_me:$LINENO: result
: $ac_cv_path_AS_FOR_TARGET" >&5
7769 echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
7771 echo "$as_me:$LINENO: result
: no
" >&5
7772 echo "${ECHO_T}no
" >&6
7774 elif test $build != $host && test $have_gcc_for_target = yes; then
7775 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
7776 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
7777 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7780 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
7781 # Extract the first word of "as
", so it can be a program name with args.
7782 set dummy as; ac_word=$2
7783 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7784 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7785 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
7786 echo $ECHO_N "(cached
) $ECHO_C" >&6
7788 case $AS_FOR_TARGET in
7790 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $gcc_cv_tool_dirs
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7800 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7801 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7810 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7812 if test -n "$AS_FOR_TARGET"; then
7813 echo "$as_me:$LINENO: result
: $AS_FOR_TARGET" >&5
7814 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7816 echo "$as_me:$LINENO: result
: no
" >&5
7817 echo "${ECHO_T}no
" >&6
7821 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7822 if test -n "$with_build_time_tools"; then
7823 for ncn_progname in as; do
7824 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
7825 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
7826 if test -x $with_build_time_tools/${ncn_progname}; then
7827 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7828 echo "$as_me:$LINENO: result
: yes" >&5
7829 echo "${ECHO_T}yes" >&6
7832 echo "$as_me:$LINENO: result
: no
" >&5
7833 echo "${ECHO_T}no
" >&6
7838 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
7839 for ncn_progname in as; do
7840 if test -n "$ncn_target_tool_prefix"; then
7841 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7842 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7843 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7844 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7845 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7846 echo $ECHO_N "(cached
) $ECHO_C" >&6
7848 if test -n "$AS_FOR_TARGET"; then
7849 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7858 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7859 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7867 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
7868 if test -n "$AS_FOR_TARGET"; then
7869 echo "$as_me:$LINENO: result
: $AS_FOR_TARGET" >&5
7870 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7872 echo "$as_me:$LINENO: result
: no
" >&5
7873 echo "${ECHO_T}no
" >&6
7877 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
7878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7879 set dummy ${ncn_progname}; ac_word=$2
7880 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7881 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7882 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7883 echo $ECHO_N "(cached
) $ECHO_C" >&6
7885 if test -n "$AS_FOR_TARGET"; then
7886 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7895 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
7896 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7904 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
7905 if test -n "$AS_FOR_TARGET"; then
7906 echo "$as_me:$LINENO: result
: $AS_FOR_TARGET" >&5
7907 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7909 echo "$as_me:$LINENO: result
: no
" >&5
7910 echo "${ECHO_T}no
" >&6
7914 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
7918 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
7920 if test $build = $target ; then
7923 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
7928 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7934 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7935 if test -n "$with_build_time_tools"; then
7936 echo "$as_me:$LINENO: checking
for dlltool
in $with_build_time_tools" >&5
7937 echo $ECHO_N "checking
for dlltool
in $with_build_time_tools...
$ECHO_C" >&6
7938 if test -x $with_build_time_tools/dlltool; then
7939 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
7940 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7941 echo "$as_me:$LINENO: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
7942 echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
7944 echo "$as_me:$LINENO: result
: no
" >&5
7945 echo "${ECHO_T}no
" >&6
7947 elif test $build != $host && test $have_gcc_for_target = yes; then
7948 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
7949 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
7950 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7953 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
7954 # Extract the first word of "dlltool
", so it can be a program name with args.
7955 set dummy dlltool; ac_word=$2
7956 echo "$as_me:$LINENO: checking
for $ac_word" >&5
7957 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
7958 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
7959 echo $ECHO_N "(cached
) $ECHO_C" >&6
7961 case $DLLTOOL_FOR_TARGET in
7963 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
7966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967 for as_dir in $gcc_cv_tool_dirs
7970 test -z "$as_dir" && as_dir=.
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7973 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7974 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7983 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
7985 if test -n "$DLLTOOL_FOR_TARGET"; then
7986 echo "$as_me:$LINENO: result
: $DLLTOOL_FOR_TARGET" >&5
7987 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
7989 echo "$as_me:$LINENO: result
: no
" >&5
7990 echo "${ECHO_T}no
" >&6
7994 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7995 if test -n "$with_build_time_tools"; then
7996 for ncn_progname in dlltool; do
7997 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
7998 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
7999 if test -x $with_build_time_tools/${ncn_progname}; then
8000 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8001 echo "$as_me:$LINENO: result
: yes" >&5
8002 echo "${ECHO_T}yes" >&6
8005 echo "$as_me:$LINENO: result
: no
" >&5
8006 echo "${ECHO_T}no
" >&6
8011 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
8012 for ncn_progname in dlltool; do
8013 if test -n "$ncn_target_tool_prefix"; then
8014 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8015 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8016 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8017 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8018 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
8019 echo $ECHO_N "(cached
) $ECHO_C" >&6
8021 if test -n "$DLLTOOL_FOR_TARGET"; then
8022 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8031 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8032 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8040 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
8041 if test -n "$DLLTOOL_FOR_TARGET"; then
8042 echo "$as_me:$LINENO: result
: $DLLTOOL_FOR_TARGET" >&5
8043 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
8045 echo "$as_me:$LINENO: result
: no
" >&5
8046 echo "${ECHO_T}no
" >&6
8050 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
8051 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8052 set dummy ${ncn_progname}; ac_word=$2
8053 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8054 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8055 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
8056 echo $ECHO_N "(cached
) $ECHO_C" >&6
8058 if test -n "$DLLTOOL_FOR_TARGET"; then
8059 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 test -z "$as_dir" && as_dir=.
8066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8068 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
8069 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8077 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
8078 if test -n "$DLLTOOL_FOR_TARGET"; then
8079 echo "$as_me:$LINENO: result
: $DLLTOOL_FOR_TARGET" >&5
8080 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
8082 echo "$as_me:$LINENO: result
: no
" >&5
8083 echo "${ECHO_T}no
" >&6
8087 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
8091 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
8093 if test $build = $target ; then
8094 DLLTOOL_FOR_TARGET="$2"
8096 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
8101 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
8107 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
8108 if test -n "$with_build_time_tools"; then
8109 echo "$as_me:$LINENO: checking
for ld
in $with_build_time_tools" >&5
8110 echo $ECHO_N "checking
for ld
in $with_build_time_tools...
$ECHO_C" >&6
8111 if test -x $with_build_time_tools/ld; then
8112 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
8113 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
8114 echo "$as_me:$LINENO: result
: $ac_cv_path_LD_FOR_TARGET" >&5
8115 echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
8117 echo "$as_me:$LINENO: result
: no
" >&5
8118 echo "${ECHO_T}no
" >&6
8120 elif test $build != $host && test $have_gcc_for_target = yes; then
8121 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
8122 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
8123 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
8126 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8127 # Extract the first word of "ld
", so it can be a program name with args.
8128 set dummy ld; ac_word=$2
8129 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8130 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8131 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
8132 echo $ECHO_N "(cached
) $ECHO_C" >&6
8134 case $LD_FOR_TARGET in
8136 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
8139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140 for as_dir in $gcc_cv_tool_dirs
8143 test -z "$as_dir" && as_dir=.
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8146 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8147 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8156 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
8158 if test -n "$LD_FOR_TARGET"; then
8159 echo "$as_me:$LINENO: result
: $LD_FOR_TARGET" >&5
8160 echo "${ECHO_T}$LD_FOR_TARGET" >&6
8162 echo "$as_me:$LINENO: result
: no
" >&5
8163 echo "${ECHO_T}no
" >&6
8167 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
8168 if test -n "$with_build_time_tools"; then
8169 for ncn_progname in ld; do
8170 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
8171 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
8172 if test -x $with_build_time_tools/${ncn_progname}; then
8173 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8174 echo "$as_me:$LINENO: result
: yes" >&5
8175 echo "${ECHO_T}yes" >&6
8178 echo "$as_me:$LINENO: result
: no
" >&5
8179 echo "${ECHO_T}no
" >&6
8184 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
8185 for ncn_progname in ld; do
8186 if test -n "$ncn_target_tool_prefix"; then
8187 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8188 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8189 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8190 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8191 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
8192 echo $ECHO_N "(cached
) $ECHO_C" >&6
8194 if test -n "$LD_FOR_TARGET"; then
8195 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
8197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201 test -z "$as_dir" && as_dir=.
8202 for ac_exec_ext in '' $ac_executable_extensions; do
8203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8204 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8205 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8213 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
8214 if test -n "$LD_FOR_TARGET"; then
8215 echo "$as_me:$LINENO: result
: $LD_FOR_TARGET" >&5
8216 echo "${ECHO_T}$LD_FOR_TARGET" >&6
8218 echo "$as_me:$LINENO: result
: no
" >&5
8219 echo "${ECHO_T}no
" >&6
8223 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
8224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8225 set dummy ${ncn_progname}; ac_word=$2
8226 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8227 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8228 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
8229 echo $ECHO_N "(cached
) $ECHO_C" >&6
8231 if test -n "$LD_FOR_TARGET"; then
8232 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
8234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238 test -z "$as_dir" && as_dir=.
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8241 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
8242 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8250 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
8251 if test -n "$LD_FOR_TARGET"; then
8252 echo "$as_me:$LINENO: result
: $LD_FOR_TARGET" >&5
8253 echo "${ECHO_T}$LD_FOR_TARGET" >&6
8255 echo "$as_me:$LINENO: result
: no
" >&5
8256 echo "${ECHO_T}no
" >&6
8260 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
8264 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
8266 if test $build = $target ; then
8269 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
8274 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
8280 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
8281 if test -n "$with_build_time_tools"; then
8282 echo "$as_me:$LINENO: checking
for lipo
in $with_build_time_tools" >&5
8283 echo $ECHO_N "checking
for lipo
in $with_build_time_tools...
$ECHO_C" >&6
8284 if test -x $with_build_time_tools/lipo; then
8285 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
8286 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
8287 echo "$as_me:$LINENO: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
8288 echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
8290 echo "$as_me:$LINENO: result
: no
" >&5
8291 echo "${ECHO_T}no
" >&6
8293 elif test $build != $host && test $have_gcc_for_target = yes; then
8294 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
8295 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
8296 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
8299 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8300 # Extract the first word of "lipo
", so it can be a program name with args.
8301 set dummy lipo; ac_word=$2
8302 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8303 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8304 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
8305 echo $ECHO_N "(cached
) $ECHO_C" >&6
8307 case $LIPO_FOR_TARGET in
8309 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
8312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313 for as_dir in $gcc_cv_tool_dirs
8316 test -z "$as_dir" && as_dir=.
8317 for ac_exec_ext in '' $ac_executable_extensions; do
8318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8319 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8320 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8329 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
8331 if test -n "$LIPO_FOR_TARGET"; then
8332 echo "$as_me:$LINENO: result
: $LIPO_FOR_TARGET" >&5
8333 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
8335 echo "$as_me:$LINENO: result
: no
" >&5
8336 echo "${ECHO_T}no
" >&6
8340 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
8341 if test -n "$with_build_time_tools"; then
8342 for ncn_progname in lipo; do
8343 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
8344 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
8345 if test -x $with_build_time_tools/${ncn_progname}; then
8346 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8347 echo "$as_me:$LINENO: result
: yes" >&5
8348 echo "${ECHO_T}yes" >&6
8351 echo "$as_me:$LINENO: result
: no
" >&5
8352 echo "${ECHO_T}no
" >&6
8357 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
8358 for ncn_progname in lipo; do
8359 if test -n "$ncn_target_tool_prefix"; then
8360 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8361 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8362 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8363 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8364 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
8365 echo $ECHO_N "(cached
) $ECHO_C" >&6
8367 if test -n "$LIPO_FOR_TARGET"; then
8368 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 test -z "$as_dir" && as_dir=.
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8377 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8378 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8386 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
8387 if test -n "$LIPO_FOR_TARGET"; then
8388 echo "$as_me:$LINENO: result
: $LIPO_FOR_TARGET" >&5
8389 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
8391 echo "$as_me:$LINENO: result
: no
" >&5
8392 echo "${ECHO_T}no
" >&6
8396 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
8397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8398 set dummy ${ncn_progname}; ac_word=$2
8399 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8400 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8401 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
8402 echo $ECHO_N "(cached
) $ECHO_C" >&6
8404 if test -n "$LIPO_FOR_TARGET"; then
8405 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
8415 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8423 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
8424 if test -n "$LIPO_FOR_TARGET"; then
8425 echo "$as_me:$LINENO: result
: $LIPO_FOR_TARGET" >&5
8426 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
8428 echo "$as_me:$LINENO: result
: no
" >&5
8429 echo "${ECHO_T}no
" >&6
8433 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
8437 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
8439 if test $build = $target ; then
8440 LIPO_FOR_TARGET="$2"
8442 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
8447 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
8453 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8454 if test -n "$with_build_time_tools"; then
8455 echo "$as_me:$LINENO: checking
for nm
in $with_build_time_tools" >&5
8456 echo $ECHO_N "checking
for nm
in $with_build_time_tools...
$ECHO_C" >&6
8457 if test -x $with_build_time_tools/nm; then
8458 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
8459 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
8460 echo "$as_me:$LINENO: result
: $ac_cv_path_NM_FOR_TARGET" >&5
8461 echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
8463 echo "$as_me:$LINENO: result
: no
" >&5
8464 echo "${ECHO_T}no
" >&6
8466 elif test $build != $host && test $have_gcc_for_target = yes; then
8467 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
8468 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
8469 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
8472 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8473 # Extract the first word of "nm
", so it can be a program name with args.
8474 set dummy nm; ac_word=$2
8475 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8476 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8477 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
8478 echo $ECHO_N "(cached
) $ECHO_C" >&6
8480 case $NM_FOR_TARGET in
8482 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
8485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8486 for as_dir in $gcc_cv_tool_dirs
8489 test -z "$as_dir" && as_dir=.
8490 for ac_exec_ext in '' $ac_executable_extensions; do
8491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8492 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8493 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8502 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
8504 if test -n "$NM_FOR_TARGET"; then
8505 echo "$as_me:$LINENO: result
: $NM_FOR_TARGET" >&5
8506 echo "${ECHO_T}$NM_FOR_TARGET" >&6
8508 echo "$as_me:$LINENO: result
: no
" >&5
8509 echo "${ECHO_T}no
" >&6
8513 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8514 if test -n "$with_build_time_tools"; then
8515 for ncn_progname in nm; do
8516 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
8517 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
8518 if test -x $with_build_time_tools/${ncn_progname}; then
8519 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8520 echo "$as_me:$LINENO: result
: yes" >&5
8521 echo "${ECHO_T}yes" >&6
8524 echo "$as_me:$LINENO: result
: no
" >&5
8525 echo "${ECHO_T}no
" >&6
8530 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
8531 for ncn_progname in nm; do
8532 if test -n "$ncn_target_tool_prefix"; then
8533 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8534 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8535 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8536 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8537 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8538 echo $ECHO_N "(cached
) $ECHO_C" >&6
8540 if test -n "$NM_FOR_TARGET"; then
8541 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
8543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547 test -z "$as_dir" && as_dir=.
8548 for ac_exec_ext in '' $ac_executable_extensions; do
8549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8550 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8551 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8559 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
8560 if test -n "$NM_FOR_TARGET"; then
8561 echo "$as_me:$LINENO: result
: $NM_FOR_TARGET" >&5
8562 echo "${ECHO_T}$NM_FOR_TARGET" >&6
8564 echo "$as_me:$LINENO: result
: no
" >&5
8565 echo "${ECHO_T}no
" >&6
8569 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
8570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8571 set dummy ${ncn_progname}; ac_word=$2
8572 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8573 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8574 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8575 echo $ECHO_N "(cached
) $ECHO_C" >&6
8577 if test -n "$NM_FOR_TARGET"; then
8578 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
8580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584 test -z "$as_dir" && as_dir=.
8585 for ac_exec_ext in '' $ac_executable_extensions; do
8586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8587 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
8588 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8596 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
8597 if test -n "$NM_FOR_TARGET"; then
8598 echo "$as_me:$LINENO: result
: $NM_FOR_TARGET" >&5
8599 echo "${ECHO_T}$NM_FOR_TARGET" >&6
8601 echo "$as_me:$LINENO: result
: no
" >&5
8602 echo "${ECHO_T}no
" >&6
8606 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
8610 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
8612 if test $build = $target ; then
8615 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
8620 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
8626 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8627 if test -n "$with_build_time_tools"; then
8628 echo "$as_me:$LINENO: checking
for objdump
in $with_build_time_tools" >&5
8629 echo $ECHO_N "checking
for objdump
in $with_build_time_tools...
$ECHO_C" >&6
8630 if test -x $with_build_time_tools/objdump; then
8631 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
8632 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
8633 echo "$as_me:$LINENO: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
8634 echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
8636 echo "$as_me:$LINENO: result
: no
" >&5
8637 echo "${ECHO_T}no
" >&6
8639 elif test $build != $host && test $have_gcc_for_target = yes; then
8640 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
8641 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
8642 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
8645 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8646 # Extract the first word of "objdump
", so it can be a program name with args.
8647 set dummy objdump; ac_word=$2
8648 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8649 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8650 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
8651 echo $ECHO_N "(cached
) $ECHO_C" >&6
8653 case $OBJDUMP_FOR_TARGET in
8655 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
8658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659 for as_dir in $gcc_cv_tool_dirs
8662 test -z "$as_dir" && as_dir=.
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8665 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8666 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8675 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8677 if test -n "$OBJDUMP_FOR_TARGET"; then
8678 echo "$as_me:$LINENO: result
: $OBJDUMP_FOR_TARGET" >&5
8679 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8681 echo "$as_me:$LINENO: result
: no
" >&5
8682 echo "${ECHO_T}no
" >&6
8686 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8687 if test -n "$with_build_time_tools"; then
8688 for ncn_progname in objdump; do
8689 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
8690 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
8691 if test -x $with_build_time_tools/${ncn_progname}; then
8692 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8693 echo "$as_me:$LINENO: result
: yes" >&5
8694 echo "${ECHO_T}yes" >&6
8697 echo "$as_me:$LINENO: result
: no
" >&5
8698 echo "${ECHO_T}no
" >&6
8703 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
8704 for ncn_progname in objdump; do
8705 if test -n "$ncn_target_tool_prefix"; then
8706 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8707 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8708 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8709 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8710 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8711 echo $ECHO_N "(cached
) $ECHO_C" >&6
8713 if test -n "$OBJDUMP_FOR_TARGET"; then
8714 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8720 test -z "$as_dir" && as_dir=.
8721 for ac_exec_ext in '' $ac_executable_extensions; do
8722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8723 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8724 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8732 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
8733 if test -n "$OBJDUMP_FOR_TARGET"; then
8734 echo "$as_me:$LINENO: result
: $OBJDUMP_FOR_TARGET" >&5
8735 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8737 echo "$as_me:$LINENO: result
: no
" >&5
8738 echo "${ECHO_T}no
" >&6
8742 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
8743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8744 set dummy ${ncn_progname}; ac_word=$2
8745 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8746 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8747 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8748 echo $ECHO_N "(cached
) $ECHO_C" >&6
8750 if test -n "$OBJDUMP_FOR_TARGET"; then
8751 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8757 test -z "$as_dir" && as_dir=.
8758 for ac_exec_ext in '' $ac_executable_extensions; do
8759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8760 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
8761 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8769 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
8770 if test -n "$OBJDUMP_FOR_TARGET"; then
8771 echo "$as_me:$LINENO: result
: $OBJDUMP_FOR_TARGET" >&5
8772 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8774 echo "$as_me:$LINENO: result
: no
" >&5
8775 echo "${ECHO_T}no
" >&6
8779 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
8783 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
8785 if test $build = $target ; then
8786 OBJDUMP_FOR_TARGET="$2"
8788 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8793 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8799 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8800 if test -n "$with_build_time_tools"; then
8801 echo "$as_me:$LINENO: checking
for ranlib
in $with_build_time_tools" >&5
8802 echo $ECHO_N "checking
for ranlib
in $with_build_time_tools...
$ECHO_C" >&6
8803 if test -x $with_build_time_tools/ranlib; then
8804 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
8805 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8806 echo "$as_me:$LINENO: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
8807 echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
8809 echo "$as_me:$LINENO: result
: no
" >&5
8810 echo "${ECHO_T}no
" >&6
8812 elif test $build != $host && test $have_gcc_for_target = yes; then
8813 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
8814 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
8815 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8818 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8819 # Extract the first word of "ranlib
", so it can be a program name with args.
8820 set dummy ranlib; ac_word=$2
8821 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8822 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8823 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
8824 echo $ECHO_N "(cached
) $ECHO_C" >&6
8826 case $RANLIB_FOR_TARGET in
8828 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
8831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832 for as_dir in $gcc_cv_tool_dirs
8835 test -z "$as_dir" && as_dir=.
8836 for ac_exec_ext in '' $ac_executable_extensions; do
8837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8838 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8839 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8848 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8850 if test -n "$RANLIB_FOR_TARGET"; then
8851 echo "$as_me:$LINENO: result
: $RANLIB_FOR_TARGET" >&5
8852 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8854 echo "$as_me:$LINENO: result
: no
" >&5
8855 echo "${ECHO_T}no
" >&6
8859 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8860 if test -n "$with_build_time_tools"; then
8861 for ncn_progname in ranlib; do
8862 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
8863 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
8864 if test -x $with_build_time_tools/${ncn_progname}; then
8865 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8866 echo "$as_me:$LINENO: result
: yes" >&5
8867 echo "${ECHO_T}yes" >&6
8870 echo "$as_me:$LINENO: result
: no
" >&5
8871 echo "${ECHO_T}no
" >&6
8876 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
8877 for ncn_progname in ranlib; do
8878 if test -n "$ncn_target_tool_prefix"; then
8879 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8880 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8881 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8882 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8883 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8884 echo $ECHO_N "(cached
) $ECHO_C" >&6
8886 if test -n "$RANLIB_FOR_TARGET"; then
8887 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
8889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8893 test -z "$as_dir" && as_dir=.
8894 for ac_exec_ext in '' $ac_executable_extensions; do
8895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8896 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8897 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8905 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
8906 if test -n "$RANLIB_FOR_TARGET"; then
8907 echo "$as_me:$LINENO: result
: $RANLIB_FOR_TARGET" >&5
8908 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8910 echo "$as_me:$LINENO: result
: no
" >&5
8911 echo "${ECHO_T}no
" >&6
8915 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
8916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8917 set dummy ${ncn_progname}; ac_word=$2
8918 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8919 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8920 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8921 echo $ECHO_N "(cached
) $ECHO_C" >&6
8923 if test -n "$RANLIB_FOR_TARGET"; then
8924 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
8926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930 test -z "$as_dir" && as_dir=.
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8933 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
8934 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8942 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
8943 if test -n "$RANLIB_FOR_TARGET"; then
8944 echo "$as_me:$LINENO: result
: $RANLIB_FOR_TARGET" >&5
8945 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8947 echo "$as_me:$LINENO: result
: no
" >&5
8948 echo "${ECHO_T}no
" >&6
8952 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
8956 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
8958 if test $build = $target ; then
8959 RANLIB_FOR_TARGET="$2"
8961 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
8966 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8972 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8973 if test -n "$with_build_time_tools"; then
8974 echo "$as_me:$LINENO: checking
for strip
in $with_build_time_tools" >&5
8975 echo $ECHO_N "checking
for strip
in $with_build_time_tools...
$ECHO_C" >&6
8976 if test -x $with_build_time_tools/strip; then
8977 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
8978 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8979 echo "$as_me:$LINENO: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
8980 echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
8982 echo "$as_me:$LINENO: result
: no
" >&5
8983 echo "${ECHO_T}no
" >&6
8985 elif test $build != $host && test $have_gcc_for_target = yes; then
8986 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
8987 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
8988 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8991 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8992 # Extract the first word of "strip
", so it can be a program name with args.
8993 set dummy strip; ac_word=$2
8994 echo "$as_me:$LINENO: checking
for $ac_word" >&5
8995 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
8996 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
8997 echo $ECHO_N "(cached
) $ECHO_C" >&6
8999 case $STRIP_FOR_TARGET in
9001 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 for as_dir in $gcc_cv_tool_dirs
9008 test -z "$as_dir" && as_dir=.
9009 for ac_exec_ext in '' $ac_executable_extensions; do
9010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9011 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9012 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9021 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
9023 if test -n "$STRIP_FOR_TARGET"; then
9024 echo "$as_me:$LINENO: result
: $STRIP_FOR_TARGET" >&5
9025 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
9027 echo "$as_me:$LINENO: result
: no
" >&5
9028 echo "${ECHO_T}no
" >&6
9032 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9033 if test -n "$with_build_time_tools"; then
9034 for ncn_progname in strip; do
9035 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
9036 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
9037 if test -x $with_build_time_tools/${ncn_progname}; then
9038 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9039 echo "$as_me:$LINENO: result
: yes" >&5
9040 echo "${ECHO_T}yes" >&6
9043 echo "$as_me:$LINENO: result
: no
" >&5
9044 echo "${ECHO_T}no
" >&6
9049 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
9050 for ncn_progname in strip; do
9051 if test -n "$ncn_target_tool_prefix"; then
9052 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9053 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9054 echo "$as_me:$LINENO: checking
for $ac_word" >&5
9055 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
9056 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
9057 echo $ECHO_N "(cached
) $ECHO_C" >&6
9059 if test -n "$STRIP_FOR_TARGET"; then
9060 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
9062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066 test -z "$as_dir" && as_dir=.
9067 for ac_exec_ext in '' $ac_executable_extensions; do
9068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9069 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9070 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9078 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9079 if test -n "$STRIP_FOR_TARGET"; then
9080 echo "$as_me:$LINENO: result
: $STRIP_FOR_TARGET" >&5
9081 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
9083 echo "$as_me:$LINENO: result
: no
" >&5
9084 echo "${ECHO_T}no
" >&6
9088 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
9089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9090 set dummy ${ncn_progname}; ac_word=$2
9091 echo "$as_me:$LINENO: checking
for $ac_word" >&5
9092 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
9093 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
9094 echo $ECHO_N "(cached
) $ECHO_C" >&6
9096 if test -n "$STRIP_FOR_TARGET"; then
9097 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
9099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9103 test -z "$as_dir" && as_dir=.
9104 for ac_exec_ext in '' $ac_executable_extensions; do
9105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9106 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
9107 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9115 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9116 if test -n "$STRIP_FOR_TARGET"; then
9117 echo "$as_me:$LINENO: result
: $STRIP_FOR_TARGET" >&5
9118 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
9120 echo "$as_me:$LINENO: result
: no
" >&5
9121 echo "${ECHO_T}no
" >&6
9125 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
9129 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
9131 if test $build = $target ; then
9132 STRIP_FOR_TARGET="$2"
9134 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
9139 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
9145 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9146 if test -n "$with_build_time_tools"; then
9147 echo "$as_me:$LINENO: checking
for windres
in $with_build_time_tools" >&5
9148 echo $ECHO_N "checking
for windres
in $with_build_time_tools...
$ECHO_C" >&6
9149 if test -x $with_build_time_tools/windres; then
9150 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
9151 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
9152 echo "$as_me:$LINENO: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
9153 echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
9155 echo "$as_me:$LINENO: result
: no
" >&5
9156 echo "${ECHO_T}no
" >&6
9158 elif test $build != $host && test $have_gcc_for_target = yes; then
9159 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
9160 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
9161 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
9164 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9165 # Extract the first word of "windres
", so it can be a program name with args.
9166 set dummy windres; ac_word=$2
9167 echo "$as_me:$LINENO: checking
for $ac_word" >&5
9168 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
9169 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
9170 echo $ECHO_N "(cached
) $ECHO_C" >&6
9172 case $WINDRES_FOR_TARGET in
9174 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
9177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9178 for as_dir in $gcc_cv_tool_dirs
9181 test -z "$as_dir" && as_dir=.
9182 for ac_exec_ext in '' $ac_executable_extensions; do
9183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9184 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9185 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9194 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
9196 if test -n "$WINDRES_FOR_TARGET"; then
9197 echo "$as_me:$LINENO: result
: $WINDRES_FOR_TARGET" >&5
9198 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
9200 echo "$as_me:$LINENO: result
: no
" >&5
9201 echo "${ECHO_T}no
" >&6
9205 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9206 if test -n "$with_build_time_tools"; then
9207 for ncn_progname in windres; do
9208 echo "$as_me:$LINENO: checking
for ${ncn_progname} in $with_build_time_tools" >&5
9209 echo $ECHO_N "checking
for ${ncn_progname} in $with_build_time_tools...
$ECHO_C" >&6
9210 if test -x $with_build_time_tools/${ncn_progname}; then
9211 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9212 echo "$as_me:$LINENO: result
: yes" >&5
9213 echo "${ECHO_T}yes" >&6
9216 echo "$as_me:$LINENO: result
: no
" >&5
9217 echo "${ECHO_T}no
" >&6
9222 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
9223 for ncn_progname in windres; do
9224 if test -n "$ncn_target_tool_prefix"; then
9225 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9226 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9227 echo "$as_me:$LINENO: checking
for $ac_word" >&5
9228 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
9229 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
9230 echo $ECHO_N "(cached
) $ECHO_C" >&6
9232 if test -n "$WINDRES_FOR_TARGET"; then
9233 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
9235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9239 test -z "$as_dir" && as_dir=.
9240 for ac_exec_ext in '' $ac_executable_extensions; do
9241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9242 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9243 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9251 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
9252 if test -n "$WINDRES_FOR_TARGET"; then
9253 echo "$as_me:$LINENO: result
: $WINDRES_FOR_TARGET" >&5
9254 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
9256 echo "$as_me:$LINENO: result
: no
" >&5
9257 echo "${ECHO_T}no
" >&6
9261 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
9262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9263 set dummy ${ncn_progname}; ac_word=$2
9264 echo "$as_me:$LINENO: checking
for $ac_word" >&5
9265 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
9266 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
9267 echo $ECHO_N "(cached
) $ECHO_C" >&6
9269 if test -n "$WINDRES_FOR_TARGET"; then
9270 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
9272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9276 test -z "$as_dir" && as_dir=.
9277 for ac_exec_ext in '' $ac_executable_extensions; do
9278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9279 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
9280 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9288 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
9289 if test -n "$WINDRES_FOR_TARGET"; then
9290 echo "$as_me:$LINENO: result
: $WINDRES_FOR_TARGET" >&5
9291 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
9293 echo "$as_me:$LINENO: result
: no
" >&5
9294 echo "${ECHO_T}no
" >&6
9298 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
9302 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
9304 if test $build = $target ; then
9305 WINDRES_FOR_TARGET="$2"
9307 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
9312 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
9316 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
9318 echo "$as_me:$LINENO: checking where to
find the target
ar" >&5
9319 echo $ECHO_N "checking where to
find the target
ar...
$ECHO_C" >&6
9320 if test "x
${build}" != "x
${host}" ; then
9321 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
9322 # We already found the complete path
9323 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $AR_FOR_TARGET\`" >&5
9324 echo "${ECHO_T}pre-installed
in \
`dirname $AR_FOR_TARGET\`" >&6
9326 # Canadian cross, just use what we found
9327 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9328 echo "${ECHO_T}pre-installed
" >&6
9332 case " ${configdirs} " in
9337 if test $ok = yes; then
9338 # An in-tree tool is available and we can use it
9339 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
9340 echo "$as_me:$LINENO: result
: just compiled
" >&5
9341 echo "${ECHO_T}just compiled
" >&6
9342 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
9343 # We already found the complete path
9344 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $AR_FOR_TARGET\`" >&5
9345 echo "${ECHO_T}pre-installed
in \
`dirname $AR_FOR_TARGET\`" >&6
9346 elif test "x
$target" = "x
$host"; then
9347 # We can use an host tool
9348 AR_FOR_TARGET='$(AR)'
9349 echo "$as_me:$LINENO: result
: host tool
" >&5
9350 echo "${ECHO_T}host tool
" >&6
9352 # We need a cross tool
9353 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9354 echo "${ECHO_T}pre-installed
" >&6
9358 echo "$as_me:$LINENO: checking where to
find the target as
" >&5
9359 echo $ECHO_N "checking where to
find the target as...
$ECHO_C" >&6
9360 if test "x
${build}" != "x
${host}" ; then
9361 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
9362 # We already found the complete path
9363 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $AS_FOR_TARGET\`" >&5
9364 echo "${ECHO_T}pre-installed
in \
`dirname $AS_FOR_TARGET\`" >&6
9366 # Canadian cross, just use what we found
9367 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9368 echo "${ECHO_T}pre-installed
" >&6
9372 case " ${configdirs} " in
9377 if test $ok = yes; then
9378 # An in-tree tool is available and we can use it
9379 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
9380 echo "$as_me:$LINENO: result
: just compiled
" >&5
9381 echo "${ECHO_T}just compiled
" >&6
9382 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
9383 # We already found the complete path
9384 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $AS_FOR_TARGET\`" >&5
9385 echo "${ECHO_T}pre-installed
in \
`dirname $AS_FOR_TARGET\`" >&6
9386 elif test "x
$target" = "x
$host"; then
9387 # We can use an host tool
9388 AS_FOR_TARGET='$(AS)'
9389 echo "$as_me:$LINENO: result
: host tool
" >&5
9390 echo "${ECHO_T}host tool
" >&6
9392 # We need a cross tool
9393 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9394 echo "${ECHO_T}pre-installed
" >&6
9398 echo "$as_me:$LINENO: checking where to
find the target cc
" >&5
9399 echo $ECHO_N "checking where to
find the target cc...
$ECHO_C" >&6
9400 if test "x
${build}" != "x
${host}" ; then
9401 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
9402 # We already found the complete path
9403 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $CC_FOR_TARGET\`" >&5
9404 echo "${ECHO_T}pre-installed
in \
`dirname $CC_FOR_TARGET\`" >&6
9406 # Canadian cross, just use what we found
9407 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9408 echo "${ECHO_T}pre-installed
" >&6
9412 case " ${configdirs} " in
9417 if test $ok = yes; then
9418 # An in-tree tool is available and we can use it
9419 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
9420 echo "$as_me:$LINENO: result
: just compiled
" >&5
9421 echo "${ECHO_T}just compiled
" >&6
9422 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
9423 # We already found the complete path
9424 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $CC_FOR_TARGET\`" >&5
9425 echo "${ECHO_T}pre-installed
in \
`dirname $CC_FOR_TARGET\`" >&6
9426 elif test "x
$target" = "x
$host"; then
9427 # We can use an host tool
9428 CC_FOR_TARGET='$(CC)'
9429 echo "$as_me:$LINENO: result
: host tool
" >&5
9430 echo "${ECHO_T}host tool
" >&6
9432 # We need a cross tool
9433 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9434 echo "${ECHO_T}pre-installed
" >&6
9438 echo "$as_me:$LINENO: checking where to
find the target c
++" >&5
9439 echo $ECHO_N "checking where to
find the target c
++...
$ECHO_C" >&6
9440 if test "x
${build}" != "x
${host}" ; then
9441 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
9442 # We already found the complete path
9443 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $CXX_FOR_TARGET\`" >&5
9444 echo "${ECHO_T}pre-installed
in \
`dirname $CXX_FOR_TARGET\`" >&6
9446 # Canadian cross, just use what we found
9447 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9448 echo "${ECHO_T}pre-installed
" >&6
9452 case " ${configdirs} " in
9456 case ,${enable_languages}, in
9460 if test $ok = yes; then
9461 # An in-tree tool is available and we can use it
9462 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'
9463 echo "$as_me:$LINENO: result
: just compiled
" >&5
9464 echo "${ECHO_T}just compiled
" >&6
9465 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
9466 # We already found the complete path
9467 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $CXX_FOR_TARGET\`" >&5
9468 echo "${ECHO_T}pre-installed
in \
`dirname $CXX_FOR_TARGET\`" >&6
9469 elif test "x
$target" = "x
$host"; then
9470 # We can use an host tool
9471 CXX_FOR_TARGET='$(CXX)'
9472 echo "$as_me:$LINENO: result
: host tool
" >&5
9473 echo "${ECHO_T}host tool
" >&6
9475 # We need a cross tool
9476 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9477 echo "${ECHO_T}pre-installed
" >&6
9481 echo "$as_me:$LINENO: checking where to
find the target c
++ for libstdc
++" >&5
9482 echo $ECHO_N "checking where to
find the target c
++ for libstdc
++...
$ECHO_C" >&6
9483 if test "x
${build}" != "x
${host}" ; then
9484 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
9485 # We already found the complete path
9486 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $RAW_CXX_FOR_TARGET\`" >&5
9487 echo "${ECHO_T}pre-installed
in \
`dirname $RAW_CXX_FOR_TARGET\`" >&6
9489 # Canadian cross, just use what we found
9490 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9491 echo "${ECHO_T}pre-installed
" >&6
9495 case " ${configdirs} " in
9499 case ,${enable_languages}, in
9503 if test $ok = yes; then
9504 # An in-tree tool is available and we can use it
9505 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'
9506 echo "$as_me:$LINENO: result
: just compiled
" >&5
9507 echo "${ECHO_T}just compiled
" >&6
9508 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
9509 # We already found the complete path
9510 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $RAW_CXX_FOR_TARGET\`" >&5
9511 echo "${ECHO_T}pre-installed
in \
`dirname $RAW_CXX_FOR_TARGET\`" >&6
9512 elif test "x
$target" = "x
$host"; then
9513 # We can use an host tool
9514 RAW_CXX_FOR_TARGET='$(CXX)'
9515 echo "$as_me:$LINENO: result
: host tool
" >&5
9516 echo "${ECHO_T}host tool
" >&6
9518 # We need a cross tool
9519 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9520 echo "${ECHO_T}pre-installed
" >&6
9524 echo "$as_me:$LINENO: checking where to
find the target dlltool
" >&5
9525 echo $ECHO_N "checking where to
find the target dlltool...
$ECHO_C" >&6
9526 if test "x
${build}" != "x
${host}" ; then
9527 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
9528 # We already found the complete path
9529 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $DLLTOOL_FOR_TARGET\`" >&5
9530 echo "${ECHO_T}pre-installed
in \
`dirname $DLLTOOL_FOR_TARGET\`" >&6
9532 # Canadian cross, just use what we found
9533 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9534 echo "${ECHO_T}pre-installed
" >&6
9538 case " ${configdirs} " in
9543 if test $ok = yes; then
9544 # An in-tree tool is available and we can use it
9545 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
9546 echo "$as_me:$LINENO: result
: just compiled
" >&5
9547 echo "${ECHO_T}just compiled
" >&6
9548 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
9549 # We already found the complete path
9550 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $DLLTOOL_FOR_TARGET\`" >&5
9551 echo "${ECHO_T}pre-installed
in \
`dirname $DLLTOOL_FOR_TARGET\`" >&6
9552 elif test "x
$target" = "x
$host"; then
9553 # We can use an host tool
9554 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
9555 echo "$as_me:$LINENO: result
: host tool
" >&5
9556 echo "${ECHO_T}host tool
" >&6
9558 # We need a cross tool
9559 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9560 echo "${ECHO_T}pre-installed
" >&6
9564 echo "$as_me:$LINENO: checking where to
find the target gcc
" >&5
9565 echo $ECHO_N "checking where to
find the target gcc...
$ECHO_C" >&6
9566 if test "x
${build}" != "x
${host}" ; then
9567 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
9568 # We already found the complete path
9569 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $GCC_FOR_TARGET\`" >&5
9570 echo "${ECHO_T}pre-installed
in \
`dirname $GCC_FOR_TARGET\`" >&6
9572 # Canadian cross, just use what we found
9573 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9574 echo "${ECHO_T}pre-installed
" >&6
9578 case " ${configdirs} " in
9583 if test $ok = yes; then
9584 # An in-tree tool is available and we can use it
9585 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
9586 echo "$as_me:$LINENO: result
: just compiled
" >&5
9587 echo "${ECHO_T}just compiled
" >&6
9588 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
9589 # We already found the complete path
9590 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $GCC_FOR_TARGET\`" >&5
9591 echo "${ECHO_T}pre-installed
in \
`dirname $GCC_FOR_TARGET\`" >&6
9592 elif test "x
$target" = "x
$host"; then
9593 # We can use an host tool
9594 GCC_FOR_TARGET='$()'
9595 echo "$as_me:$LINENO: result
: host tool
" >&5
9596 echo "${ECHO_T}host tool
" >&6
9598 # We need a cross tool
9599 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9600 echo "${ECHO_T}pre-installed
" >&6
9604 echo "$as_me:$LINENO: checking where to
find the target gcj
" >&5
9605 echo $ECHO_N "checking where to
find the target gcj...
$ECHO_C" >&6
9606 if test "x
${build}" != "x
${host}" ; then
9607 if expr "x
$GCJ_FOR_TARGET" : "x
/" > /dev/null; then
9608 # We already found the complete path
9609 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $GCJ_FOR_TARGET\`" >&5
9610 echo "${ECHO_T}pre-installed
in \
`dirname $GCJ_FOR_TARGET\`" >&6
9612 # Canadian cross, just use what we found
9613 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9614 echo "${ECHO_T}pre-installed
" >&6
9618 case " ${configdirs} " in
9622 case ,${enable_languages}, in
9626 if test $ok = yes; then
9627 # An in-tree tool is available and we can use it
9628 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
9629 echo "$as_me:$LINENO: result
: just compiled
" >&5
9630 echo "${ECHO_T}just compiled
" >&6
9631 elif expr "x
$GCJ_FOR_TARGET" : "x
/" > /dev/null; then
9632 # We already found the complete path
9633 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $GCJ_FOR_TARGET\`" >&5
9634 echo "${ECHO_T}pre-installed
in \
`dirname $GCJ_FOR_TARGET\`" >&6
9635 elif test "x
$target" = "x
$host"; then
9636 # We can use an host tool
9637 GCJ_FOR_TARGET='$(GCJ)'
9638 echo "$as_me:$LINENO: result
: host tool
" >&5
9639 echo "${ECHO_T}host tool
" >&6
9641 # We need a cross tool
9642 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9643 echo "${ECHO_T}pre-installed
" >&6
9647 echo "$as_me:$LINENO: checking where to
find the target gfortran
" >&5
9648 echo $ECHO_N "checking where to
find the target gfortran...
$ECHO_C" >&6
9649 if test "x
${build}" != "x
${host}" ; then
9650 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
9651 # We already found the complete path
9652 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $GFORTRAN_FOR_TARGET\`" >&5
9653 echo "${ECHO_T}pre-installed
in \
`dirname $GFORTRAN_FOR_TARGET\`" >&6
9655 # Canadian cross, just use what we found
9656 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9657 echo "${ECHO_T}pre-installed
" >&6
9661 case " ${configdirs} " in
9665 case ,${enable_languages}, in
9669 if test $ok = yes; then
9670 # An in-tree tool is available and we can use it
9671 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
9672 echo "$as_me:$LINENO: result
: just compiled
" >&5
9673 echo "${ECHO_T}just compiled
" >&6
9674 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
9675 # We already found the complete path
9676 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $GFORTRAN_FOR_TARGET\`" >&5
9677 echo "${ECHO_T}pre-installed
in \
`dirname $GFORTRAN_FOR_TARGET\`" >&6
9678 elif test "x
$target" = "x
$host"; then
9679 # We can use an host tool
9680 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
9681 echo "$as_me:$LINENO: result
: host tool
" >&5
9682 echo "${ECHO_T}host tool
" >&6
9684 # We need a cross tool
9685 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9686 echo "${ECHO_T}pre-installed
" >&6
9690 echo "$as_me:$LINENO: checking where to
find the target ld
" >&5
9691 echo $ECHO_N "checking where to
find the target ld...
$ECHO_C" >&6
9692 if test "x
${build}" != "x
${host}" ; then
9693 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
9694 # We already found the complete path
9695 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $LD_FOR_TARGET\`" >&5
9696 echo "${ECHO_T}pre-installed
in \
`dirname $LD_FOR_TARGET\`" >&6
9698 # Canadian cross, just use what we found
9699 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9700 echo "${ECHO_T}pre-installed
" >&6
9704 case " ${configdirs} " in
9709 if test $ok = yes; then
9710 # An in-tree tool is available and we can use it
9711 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
9712 echo "$as_me:$LINENO: result
: just compiled
" >&5
9713 echo "${ECHO_T}just compiled
" >&6
9714 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
9715 # We already found the complete path
9716 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $LD_FOR_TARGET\`" >&5
9717 echo "${ECHO_T}pre-installed
in \
`dirname $LD_FOR_TARGET\`" >&6
9718 elif test "x
$target" = "x
$host"; then
9719 # We can use an host tool
9720 LD_FOR_TARGET='$(LD)'
9721 echo "$as_me:$LINENO: result
: host tool
" >&5
9722 echo "${ECHO_T}host tool
" >&6
9724 # We need a cross tool
9725 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9726 echo "${ECHO_T}pre-installed
" >&6
9730 echo "$as_me:$LINENO: checking where to
find the target lipo
" >&5
9731 echo $ECHO_N "checking where to
find the target lipo...
$ECHO_C" >&6
9732 if test "x
${build}" != "x
${host}" ; then
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
9738 # Canadian cross, just use what we found
9739 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9740 echo "${ECHO_T}pre-installed
" >&6
9743 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
9744 # We already found the complete path
9745 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $LIPO_FOR_TARGET\`" >&5
9746 echo "${ECHO_T}pre-installed
in \
`dirname $LIPO_FOR_TARGET\`" >&6
9747 elif test "x
$target" = "x
$host"; then
9748 # We can use an host tool
9749 LIPO_FOR_TARGET='$(LIPO)'
9750 echo "$as_me:$LINENO: result
: host tool
" >&5
9751 echo "${ECHO_T}host tool
" >&6
9753 # We need a cross tool
9754 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9755 echo "${ECHO_T}pre-installed
" >&6
9759 echo "$as_me:$LINENO: checking where to
find the target nm
" >&5
9760 echo $ECHO_N "checking where to
find the target nm...
$ECHO_C" >&6
9761 if test "x
${build}" != "x
${host}" ; then
9762 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
9763 # We already found the complete path
9764 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $NM_FOR_TARGET\`" >&5
9765 echo "${ECHO_T}pre-installed
in \
`dirname $NM_FOR_TARGET\`" >&6
9767 # Canadian cross, just use what we found
9768 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9769 echo "${ECHO_T}pre-installed
" >&6
9773 case " ${configdirs} " in
9778 if test $ok = yes; then
9779 # An in-tree tool is available and we can use it
9780 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
9781 echo "$as_me:$LINENO: result
: just compiled
" >&5
9782 echo "${ECHO_T}just compiled
" >&6
9783 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
9784 # We already found the complete path
9785 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $NM_FOR_TARGET\`" >&5
9786 echo "${ECHO_T}pre-installed
in \
`dirname $NM_FOR_TARGET\`" >&6
9787 elif test "x
$target" = "x
$host"; then
9788 # We can use an host tool
9789 NM_FOR_TARGET='$(NM)'
9790 echo "$as_me:$LINENO: result
: host tool
" >&5
9791 echo "${ECHO_T}host tool
" >&6
9793 # We need a cross tool
9794 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9795 echo "${ECHO_T}pre-installed
" >&6
9799 echo "$as_me:$LINENO: checking where to
find the target objdump
" >&5
9800 echo $ECHO_N "checking where to
find the target objdump...
$ECHO_C" >&6
9801 if test "x
${build}" != "x
${host}" ; then
9802 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
9803 # We already found the complete path
9804 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $OBJDUMP_FOR_TARGET\`" >&5
9805 echo "${ECHO_T}pre-installed
in \
`dirname $OBJDUMP_FOR_TARGET\`" >&6
9807 # Canadian cross, just use what we found
9808 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9809 echo "${ECHO_T}pre-installed
" >&6
9813 case " ${configdirs} " in
9818 if test $ok = yes; then
9819 # An in-tree tool is available and we can use it
9820 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
9821 echo "$as_me:$LINENO: result
: just compiled
" >&5
9822 echo "${ECHO_T}just compiled
" >&6
9823 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
9824 # We already found the complete path
9825 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $OBJDUMP_FOR_TARGET\`" >&5
9826 echo "${ECHO_T}pre-installed
in \
`dirname $OBJDUMP_FOR_TARGET\`" >&6
9827 elif test "x
$target" = "x
$host"; then
9828 # We can use an host tool
9829 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
9830 echo "$as_me:$LINENO: result
: host tool
" >&5
9831 echo "${ECHO_T}host tool
" >&6
9833 # We need a cross tool
9834 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9835 echo "${ECHO_T}pre-installed
" >&6
9839 echo "$as_me:$LINENO: checking where to
find the target ranlib
" >&5
9840 echo $ECHO_N "checking where to
find the target ranlib...
$ECHO_C" >&6
9841 if test "x
${build}" != "x
${host}" ; then
9842 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
9843 # We already found the complete path
9844 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $RANLIB_FOR_TARGET\`" >&5
9845 echo "${ECHO_T}pre-installed
in \
`dirname $RANLIB_FOR_TARGET\`" >&6
9847 # Canadian cross, just use what we found
9848 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9849 echo "${ECHO_T}pre-installed
" >&6
9853 case " ${configdirs} " in
9858 if test $ok = yes; then
9859 # An in-tree tool is available and we can use it
9860 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
9861 echo "$as_me:$LINENO: result
: just compiled
" >&5
9862 echo "${ECHO_T}just compiled
" >&6
9863 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
9864 # We already found the complete path
9865 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $RANLIB_FOR_TARGET\`" >&5
9866 echo "${ECHO_T}pre-installed
in \
`dirname $RANLIB_FOR_TARGET\`" >&6
9867 elif test "x
$target" = "x
$host"; then
9868 # We can use an host tool
9869 RANLIB_FOR_TARGET='$(RANLIB)'
9870 echo "$as_me:$LINENO: result
: host tool
" >&5
9871 echo "${ECHO_T}host tool
" >&6
9873 # We need a cross tool
9874 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9875 echo "${ECHO_T}pre-installed
" >&6
9879 echo "$as_me:$LINENO: checking where to
find the target strip
" >&5
9880 echo $ECHO_N "checking where to
find the target strip...
$ECHO_C" >&6
9881 if test "x
${build}" != "x
${host}" ; then
9882 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
9883 # We already found the complete path
9884 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $STRIP_FOR_TARGET\`" >&5
9885 echo "${ECHO_T}pre-installed
in \
`dirname $STRIP_FOR_TARGET\`" >&6
9887 # Canadian cross, just use what we found
9888 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9889 echo "${ECHO_T}pre-installed
" >&6
9893 case " ${configdirs} " in
9898 if test $ok = yes; then
9899 # An in-tree tool is available and we can use it
9900 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
9901 echo "$as_me:$LINENO: result
: just compiled
" >&5
9902 echo "${ECHO_T}just compiled
" >&6
9903 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
9904 # We already found the complete path
9905 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $STRIP_FOR_TARGET\`" >&5
9906 echo "${ECHO_T}pre-installed
in \
`dirname $STRIP_FOR_TARGET\`" >&6
9907 elif test "x
$target" = "x
$host"; then
9908 # We can use an host tool
9909 STRIP_FOR_TARGET='$(STRIP)'
9910 echo "$as_me:$LINENO: result
: host tool
" >&5
9911 echo "${ECHO_T}host tool
" >&6
9913 # We need a cross tool
9914 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9915 echo "${ECHO_T}pre-installed
" >&6
9919 echo "$as_me:$LINENO: checking where to
find the target windres
" >&5
9920 echo $ECHO_N "checking where to
find the target windres...
$ECHO_C" >&6
9921 if test "x
${build}" != "x
${host}" ; then
9922 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
9923 # We already found the complete path
9924 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $WINDRES_FOR_TARGET\`" >&5
9925 echo "${ECHO_T}pre-installed
in \
`dirname $WINDRES_FOR_TARGET\`" >&6
9927 # Canadian cross, just use what we found
9928 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9929 echo "${ECHO_T}pre-installed
" >&6
9933 case " ${configdirs} " in
9938 if test $ok = yes; then
9939 # An in-tree tool is available and we can use it
9940 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
9941 echo "$as_me:$LINENO: result
: just compiled
" >&5
9942 echo "${ECHO_T}just compiled
" >&6
9943 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
9944 # We already found the complete path
9945 echo "$as_me:$LINENO: result
: pre-installed
in \
`dirname $WINDRES_FOR_TARGET\`" >&5
9946 echo "${ECHO_T}pre-installed
in \
`dirname $WINDRES_FOR_TARGET\`" >&6
9947 elif test "x
$target" = "x
$host"; then
9948 # We can use an host tool
9949 WINDRES_FOR_TARGET='$(WINDRES)'
9950 echo "$as_me:$LINENO: result
: host tool
" >&5
9951 echo "${ECHO_T}host tool
" >&6
9953 # We need a cross tool
9954 echo "$as_me:$LINENO: result
: pre-installed
" >&5
9955 echo "${ECHO_T}pre-installed
" >&6
9963 # Certain tools may need extra flags.
9964 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
9965 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
9966 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
9968 # When building target libraries, except in a Canadian cross, we use
9969 # the same toolchain as the compiler we just built.
9970 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
9971 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
9972 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
9973 if test $host = $build; then
9974 case " $configdirs " in
9976 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
9977 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
9978 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
9987 echo "$as_me:$LINENO: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
9988 echo $ECHO_N "checking whether to
enable maintainer-specific portions of Makefiles...
$ECHO_C" >&6
9989 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9990 if test "${enable_maintainer_mode+set}" = set; then
9991 enableval="$enable_maintainer_mode"
9992 USE_MAINTAINER_MODE=$enableval
9994 USE_MAINTAINER_MODE=no
9996 echo "$as_me:$LINENO: result
: $USE_MAINTAINER_MODE" >&5
9997 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10000 if test "$USE_MAINTAINER_MODE" = yes; then
10001 MAINTAINER_MODE_TRUE=
10002 MAINTAINER_MODE_FALSE='#'
10004 MAINTAINER_MODE_TRUE='#'
10005 MAINTAINER_MODE_FALSE=
10007 MAINT=$MAINTAINER_MODE_TRUE
10009 # ---------------------
10010 # GCC bootstrap support
10011 # ---------------------
10013 # Stage specific cflags for build.
10018 yes) stage1_cflags="-g -Wa,-J" ;;
10019 *) stage1_cflags="-g -J" ;;
10023 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
10024 if test "$GCC" = yes; then
10025 saved_CFLAGS="$CFLAGS"
10027 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
10028 CFLAGS="$CFLAGS -fkeep-inline-functions"
10029 echo "$as_me:$LINENO: checking whether
-fkeep-inline-functions is supported
" >&5
10030 echo $ECHO_N "checking whether
-fkeep-inline-functions is supported...
$ECHO_C" >&6
10031 cat >conftest.$ac_ext <<_ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h. */
10046 rm -f conftest.$ac_objext
10047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10048 (eval $ac_compile) 2>conftest.er1
10050 grep -v '^ *+' conftest.er1 >conftest.err
10052 cat conftest.err >&5
10053 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10054 (exit $ac_status); } &&
10055 { ac_try='test -z "$ac_c_werror_flag"
10056 || test ! -s conftest.err'
10057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058 (eval $ac_try) 2>&5
10060 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10061 (exit $ac_status); }; } &&
10062 { ac_try='test -s conftest.$ac_objext'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10066 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10067 (exit $ac_status); }; }; then
10068 echo "$as_me:$LINENO: result
: yes" >&5
10069 echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
10071 echo "$as_me: failed program was
:" >&5
10072 sed 's/^/| /' conftest.$ac_ext >&5
10074 echo "$as_me:$LINENO: result
: no
" >&5
10075 echo "${ECHO_T}no
" >&6
10077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10079 CFLAGS="$saved_CFLAGS"
10084 # Enable --enable-checking in stage1 of the compiler.
10085 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
10086 if test "${enable_stage1_checking+set}" = set; then
10087 enableval="$enable_stage1_checking"
10088 stage1_checking=--enable-checking=${enable_stage1_checking}
10090 if test "x
$enable_checking" = xno; then
10091 stage1_checking=--enable-checking
10093 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
10098 # Enable -Werror in bootstrap stage2 and later.
10099 # Check whether --enable-werror or --disable-werror was given.
10100 if test "${enable_werror+set}" = set; then
10101 enableval="$enable_werror"
10104 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
10110 case ${enable_werror} in
10111 yes) stage2_werror_flag="--enable-werror-always" ;;
10112 *) stage2_werror_flag="" ;;
10116 # Flags needed to enable html installing and building
10118 # Check whether --with-datarootdir or --without-datarootdir was given.
10119 if test "${with_datarootdir+set}" = set; then
10120 withval="$with_datarootdir"
10121 datarootdir="\
${prefix}/${withval}"
10123 datarootdir="\
${prefix}/share
"
10127 # Check whether --with-docdir or --without-docdir was given.
10128 if test "${with_docdir+set}" = set; then
10129 withval="$with_docdir"
10130 docdir="\
${prefix}/${withval}"
10132 docdir="\
${datarootdir}/doc
"
10136 # Check whether --with-htmldir or --without-htmldir was given.
10137 if test "${with_htmldir+set}" = set; then
10138 withval="$with_htmldir"
10139 htmldir="\
${prefix}/${withval}"
10141 htmldir="\
${docdir}"
10148 ac_config_files="$ac_config_files Makefile
"
10149 cat >confcache <<\_ACEOF
10150 # This file is a shell script that caches the results of configure
10151 # tests run on this system so they can be shared between configure
10152 # scripts and configure runs, see configure's option --config-cache.
10153 # It is not useful on other systems. If it contains results you don't
10154 # want to keep, you may remove or edit it.
10156 # config.status only pays attention to the cache file if you give it
10157 # the --recheck option to rerun configure.
10159 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10160 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10161 # following values.
10165 # The following way of writing the cache mishandles newlines in values,
10166 # but we know of no workaround that is simple, portable, and efficient.
10167 # So, don't put newlines in cache variables' values.
10168 # Ultrix sh set writes to stderr and can't be redirected directly,
10169 # and sets the high bit in the cache file unless we assign to the vars.
10172 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10174 # `set' does not quote correctly, so add quotes (double-quote
10175 # substitution turns \\\\ into \\, and sed turns \\ into \).
10178 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
10181 # `set' quotes correctly as required by POSIX, so do not add quotes.
10183 "s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1=\\2/p
"
10190 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10192 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10194 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10195 if test -w $cache_file; then
10196 test "x
$cache_file" != "x
/dev
/null
" && echo "updating cache
$cache_file"
10197 cat confcache >$cache_file
10199 echo "not updating unwritable cache
$cache_file"
10204 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
10205 # Let make expand exec_prefix.
10206 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
10208 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10209 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
10210 # trailing colons and then remove the whole line if VPATH becomes empty
10211 # (actually we leave an empty line to preserve line numbers).
10212 if test "x
$srcdir" = x.; then
10213 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10214 s/:*\$(srcdir):*/:/;
10215 s/:*\${srcdir}:*/:/;
10217 s/^\([^=]*=[ ]*\):*/\1/;
10223 # Transform confdefs.h into DEFS.
10224 # Protect against shell expansion while executing Makefile rules.
10225 # Protect against Makefile macro expansion.
10227 # If the first sed substitution is executed (which looks for macros that
10228 # take arguments), then we branch to the quote section. Otherwise,
10229 # look for a macro that doesn't take arguments.
10230 cat >confdef2opt.sed <<\_ACEOF
10233 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
10235 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
10239 s,[ `~#$^&*(){}\\|;'"<>?
],\\&,g
10245 # We use echo to avoid assuming a particular line-breaking character.
10246 # The extra dot is to prevent the shell from consuming trailing
10247 # line-breaks from the sub-command output. A line-break within
10248 # single-quotes doesn't work because, if this script is created in a
10249 # platform that uses two characters for line-breaks (e.g., DOS), tr
10251 ac_LF_and_DOT
=`echo; echo .`
10252 DEFS
=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
10253 rm -f confdef2opt.
sed
10258 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10259 # 1. Remove the extension, and $U if already installed.
10260 ac_i
=`echo "$ac_i" |
10261 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10263 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
10264 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
10266 LIBOBJS
=$ac_libobjs
10268 LTLIBOBJS
=$ac_ltlibobjs
10272 : ${CONFIG_STATUS=./config.status}
10273 ac_clean_files_save
=$ac_clean_files
10274 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10275 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10276 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10277 cat >$CONFIG_STATUS <<_ACEOF
10279 # Generated by $as_me.
10280 # Run this file to recreate the current configuration.
10281 # Compiler output produced by configure, useful for debugging
10282 # configure, is in config.log if it exists.
10285 ac_cs_recheck=false
10287 SHELL=\${CONFIG_SHELL-$SHELL}
10290 cat >>$CONFIG_STATUS <<\_ACEOF
10291 ## --------------------- ##
10292 ## M4sh Initialization. ##
10293 ## --------------------- ##
10295 # Be Bourne compatible
10296 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
10299 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10300 # is contrary to our usage. Disable this feature.
10301 alias -g '${1+"$@"}'='"$@"'
10302 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
10305 DUALCASE
=1; export DUALCASE
# for MKS sh
10307 # Support unset when possible.
10308 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
10315 # Work around bugs in pre-3.0 UWIN ksh.
10316 $as_unset ENV MAIL MAILPATH
10323 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10324 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10325 LC_TELEPHONE LC_TIME
10327 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10328 eval $as_var=C
; export $as_var
10334 # Required to use basename.
10335 if expr a
: '\(a\)' >/dev
/null
2>&1; then
10341 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
10342 as_basename
=basename
10348 # Name of the executable.
10349 as_me
=`$as_basename "$0" ||
10350 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10351 X"$0" : 'X\(//\)$' \| \
10352 X"$0" : 'X\(/\)$' \| \
10353 . : '\(.\)' 2>/dev/null ||
10355 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10356 /^X\/\(\/\/\)$/{ s//\1/; q; }
10357 /^X\/\(\/\).*/{ s//\1/; q; }
10361 # PATH needs CR, and LINENO needs CR and PATH.
10362 # Avoid depending upon Character Ranges.
10363 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10364 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10365 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10366 as_cr_digits
='0123456789'
10367 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10369 # The user is always right.
10370 if test "${PATH_SEPARATOR+set}" != set; then
10371 echo "#! /bin/sh" >conf$$.sh
10372 echo "exit 0" >>conf$$.sh
10374 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10383 as_lineno_1
=$LINENO
10384 as_lineno_2
=$LINENO
10385 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
10386 test "x$as_lineno_1" != "x$as_lineno_2" &&
10387 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
10388 # Find who we are. Look in the path if we contain no path at all
10391 *[\\/]* ) as_myself
=$0 ;;
10392 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10393 for as_dir
in $PATH
10396 test -z "$as_dir" && as_dir
=.
10397 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
10402 # We did not find ourselves, most probably we were run as `sh COMMAND'
10403 # in which case we are not to be found in the path.
10404 if test "x$as_myself" = x
; then
10407 if test ! -f "$as_myself"; then
10408 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10409 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10410 { (exit 1); exit 1; }; }
10412 case $CONFIG_SHELL in
10414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10415 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
10418 test -z "$as_dir" && as_dir
=.
10419 for as_base
in sh bash ksh sh5
; do
10422 if ("$as_dir/$as_base" -c '
10423 as_lineno_1=$LINENO
10424 as_lineno_2=$LINENO
10425 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10426 test "x$as_lineno_1" != "x$as_lineno_2" &&
10427 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
10428 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
10429 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
10430 CONFIG_SHELL
=$as_dir/$as_base
10431 export CONFIG_SHELL
10432 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10440 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10441 # uniformly replaced by the line number. The first 'sed' inserts a
10442 # line-number line before each line; the second 'sed' does the real
10443 # work. The second script uses 'N' to pair each line-number line
10444 # with the numbered line, and appends trailing '-' during
10445 # substitution so that $LINENO is not a special case at line end.
10446 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10447 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10448 sed '=' <$as_myself |
10453 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10456 s,^['$as_cr_digits']*\n,,
10457 ' >$as_me.lineno
&&
10458 chmod +x
$as_me.lineno ||
10459 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10460 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10461 { (exit 1); exit 1; }; }
10463 # Don't try to exec as it changes $[0], causing all sort of problems
10464 # (the dirname of $[0] is not the place where we might find the
10465 # original and so on. Autoconf is especially sensible to this).
10467 # Exit status is that of the last command.
10472 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10473 *c
*,-n*) ECHO_N
= ECHO_C
='
10475 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
10476 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
10479 if expr a
: '\(a\)' >/dev
/null
2>&1; then
10485 rm -f conf$$ conf$$.exe conf$$.
file
10487 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10488 # We could just check for DJGPP; but this test a) works b) is more generic
10489 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10490 if test -f conf$$.exe
; then
10491 # Don't use ln at all; we don't have any links
10496 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10501 rm -f conf$$ conf$$.exe conf$$.
file
10503 if mkdir
-p .
2>/dev
/null
; then
10506 test -d .
/-p && rmdir .
/-p
10510 as_executable_p
="test -f"
10512 # Sed expression to map a string onto a valid CPP name.
10513 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10515 # Sed expression to map a string onto a valid variable name.
10516 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10520 # We need space, tab and new line, in precisely that order.
10530 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10531 # report actual input values of CONFIG_FILES etc. instead of their
10532 # values after options handling. Logging --version etc. is OK.
10536 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10537 ## Running $as_me. ##
10542 This file was extended by $as_me, which was
10543 generated by GNU Autoconf 2.59. Invocation command line was
10545 CONFIG_FILES = $CONFIG_FILES
10546 CONFIG_HEADERS = $CONFIG_HEADERS
10547 CONFIG_LINKS = $CONFIG_LINKS
10548 CONFIG_COMMANDS = $CONFIG_COMMANDS
10552 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10556 # Files that config.status was made for.
10557 if test -n "$ac_config_files"; then
10558 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10561 if test -n "$ac_config_headers"; then
10562 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10565 if test -n "$ac_config_links"; then
10566 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10569 if test -n "$ac_config_commands"; then
10570 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10573 cat >>$CONFIG_STATUS <<\_ACEOF
10576 \`$as_me' instantiates files from templates according to the
10577 current configuration.
10579 Usage: $0 [OPTIONS] [FILE]...
10581 -h, --help print this help, then exit
10582 -V, --version print version number, then exit
10583 -q, --quiet do not print progress messages
10584 -d, --debug don't remove temporary files
10585 --recheck update $as_me by reconfiguring in the same conditions
10586 --file=FILE[:TEMPLATE]
10587 instantiate the configuration file FILE
10589 Configuration files:
10592 Report bugs to <bug-autoconf@gnu.org>."
10595 cat >>$CONFIG_STATUS <<_ACEOF
10598 configured by $0, generated by GNU Autoconf 2.59,
10599 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10601 Copyright (C) 2003 Free Software Foundation, Inc.
10602 This config.status script is free software; the Free Software Foundation
10603 gives unlimited permission to copy, distribute and modify it."
10608 cat >>$CONFIG_STATUS <<\_ACEOF
10609 # If no file are specified by the user, then we need to provide default
10610 # value. By we need to know if files were specified by the user.
10616 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
10617 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
10625 *) # This is not an option, so the user has probably given explicit
10628 ac_need_defaults
=false
;;
10632 # Handling of the options.
10634 cat >>$CONFIG_STATUS <<\_ACEOF
10635 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10637 --version |
--vers* |
-V )
10638 echo "$ac_cs_version"; exit 0 ;;
10640 # Conflict between --help and --header
10641 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10642 Try \`$0 --help' for more information." >&5
10643 echo "$as_me: error: ambiguous option: $1
10644 Try \`$0 --help' for more information." >&2;}
10645 { (exit 1); exit 1; }; };;
10646 --help |
--hel |
-h )
10647 echo "$ac_cs_usage"; exit 0 ;;
10648 --debug |
--d* |
-d )
10650 --file |
--fil |
--fi |
--f )
10652 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
10653 ac_need_defaults
=false
;;
10654 --header |
--heade |
--head |
--hea )
10656 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
10657 ac_need_defaults
=false
;;
10658 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10659 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10662 # This is an error.
10663 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10664 Try \`$0 --help' for more information." >&5
10665 echo "$as_me: error: unrecognized option: $1
10666 Try \`$0 --help' for more information." >&2;}
10667 { (exit 1); exit 1; }; } ;;
10669 *) ac_config_targets
="$ac_config_targets $1" ;;
10675 ac_configure_extra_args
=
10677 if $ac_cs_silent; then
10679 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10683 cat >>$CONFIG_STATUS <<_ACEOF
10684 if \$ac_cs_recheck; then
10685 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10686 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10695 cat >>$CONFIG_STATUS <<\_ACEOF
10696 for ac_config_target
in $ac_config_targets
10698 case "$ac_config_target" in
10699 # Handling of arguments.
10700 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10701 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10702 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10703 { (exit 1); exit 1; }; };;
10707 # If the user did not use the arguments to specify the items to instantiate,
10708 # then the envvar interface is used. Set only those that are not.
10709 # We use the long form for the default assignment because of an extremely
10710 # bizarre bug on SunOS 4.1.3.
10711 if $ac_need_defaults; then
10712 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10715 # Have a temporary directory for convenience. Make it in the build tree
10716 # simply because there is no reason to put it here, and in addition,
10717 # creating and moving files from /tmp can sometimes cause problems.
10718 # Create a temporary directory, and hook for its removal unless debugging.
10721 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10722 trap '{ (exit 1); exit 1; }' 1 2 13 15
10725 # Create a (secure) tmp directory for tmp files.
10728 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10729 test -n "$tmp" && test -d "$tmp"
10732 tmp
=.
/confstat$$
-$RANDOM
10733 (umask 077 && mkdir
$tmp)
10736 echo "$me: cannot create a temporary directory in ." >&2
10737 { (exit 1); exit 1; }
10742 cat >>$CONFIG_STATUS <<_ACEOF
10745 # CONFIG_FILES section.
10748 # No need to generate the scripts if there are no CONFIG_FILES.
10749 # This happens for instance when ./config.status config.h
10750 if test -n "\$CONFIG_FILES"; then
10751 # Protect against being on the right side of a sed subst in config.status.
10752 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10753 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10754 s,@SHELL@,$SHELL,;t t
10755 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10756 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10757 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10758 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10759 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10760 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10761 s,@exec_prefix@,$exec_prefix,;t t
10762 s,@prefix@,$prefix,;t t
10763 s,@program_transform_name@,$program_transform_name,;t t
10764 s,@bindir@,$bindir,;t t
10765 s,@sbindir@,$sbindir,;t t
10766 s,@libexecdir@,$libexecdir,;t t
10767 s,@datadir@,$datadir,;t t
10768 s,@sysconfdir@,$sysconfdir,;t t
10769 s,@sharedstatedir@,$sharedstatedir,;t t
10770 s,@localstatedir@,$localstatedir,;t t
10771 s,@libdir@,$libdir,;t t
10772 s,@includedir@,$includedir,;t t
10773 s,@oldincludedir@,$oldincludedir,;t t
10774 s,@infodir@,$infodir,;t t
10775 s,@mandir@,$mandir,;t t
10776 s,@build_alias@,$build_alias,;t t
10777 s,@host_alias@,$host_alias,;t t
10778 s,@target_alias@,$target_alias,;t t
10779 s,@DEFS@,$DEFS,;t t
10780 s,@ECHO_C@,$ECHO_C,;t t
10781 s,@ECHO_N@,$ECHO_N,;t t
10782 s,@ECHO_T@,$ECHO_T,;t t
10783 s,@LIBS@,$LIBS,;t t
10784 s,@build@,$build,;t t
10785 s,@build_cpu@,$build_cpu,;t t
10786 s,@build_vendor@,$build_vendor,;t t
10787 s,@build_os@,$build_os,;t t
10788 s,@build_noncanonical@,$build_noncanonical,;t t
10789 s,@host_noncanonical@,$host_noncanonical,;t t
10790 s,@target_noncanonical@,$target_noncanonical,;t t
10791 s,@host@,$host,;t t
10792 s,@host_cpu@,$host_cpu,;t t
10793 s,@host_vendor@,$host_vendor,;t t
10794 s,@host_os@,$host_os,;t t
10795 s,@target@,$target,;t t
10796 s,@target_cpu@,$target_cpu,;t t
10797 s,@target_vendor@,$target_vendor,;t t
10798 s,@target_os@,$target_os,;t t
10799 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10800 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10801 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10803 s,@LN_S@,$LN_S,;t t
10804 s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
10805 s,@build_libsubdir@,$build_libsubdir,;t t
10806 s,@build_subdir@,$build_subdir,;t t
10807 s,@host_subdir@,$host_subdir,;t t
10808 s,@target_subdir@,$target_subdir,;t t
10810 s,@CFLAGS@,$CFLAGS,;t t
10811 s,@LDFLAGS@,$LDFLAGS,;t t
10812 s,@CPPFLAGS@,$CPPFLAGS,;t t
10813 s,@ac_ct_CC@,$ac_ct_CC,;t t
10814 s,@EXEEXT@,$EXEEXT,;t t
10815 s,@OBJEXT@,$OBJEXT,;t t
10817 s,@CXXFLAGS@,$CXXFLAGS,;t t
10818 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10819 s,@GNATBIND@,$GNATBIND,;t t
10820 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
10821 s,@GNATMAKE@,$GNATMAKE,;t t
10822 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
10823 s,@do_compare@,$do_compare,;t t
10824 s,@gmplibs@,$gmplibs,;t t
10825 s,@gmpinc@,$gmpinc,;t t
10826 s,@stage1_languages@,$stage1_languages,;t t
10827 s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
10828 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
10829 s,@tooldir@,$tooldir,;t t
10830 s,@build_tooldir@,$build_tooldir,;t t
10831 s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
10832 s,@GDB_TK@,$GDB_TK,;t t
10833 s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
10834 s,@build_configargs@,$build_configargs,;t t
10835 s,@build_configdirs@,$build_configdirs,;t t
10836 s,@host_configargs@,$host_configargs,;t t
10837 s,@configdirs@,$configdirs,;t t
10838 s,@target_configargs@,$target_configargs,;t t
10839 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
10840 s,@config_shell@,$config_shell,;t t
10841 s,@YACC@,$YACC,;t t
10842 s,@BISON@,$BISON,;t t
10845 s,@FLEX@,$FLEX,;t t
10846 s,@MAKEINFO@,$MAKEINFO,;t t
10847 s,@EXPECT@,$EXPECT,;t t
10848 s,@RUNTEST@,$RUNTEST,;t t
10851 s,@DLLTOOL@,$DLLTOOL,;t t
10853 s,@LIPO@,$LIPO,;t t
10855 s,@RANLIB@,$RANLIB,;t t
10856 s,@STRIP@,$STRIP,;t t
10857 s,@WINDRES@,$WINDRES,;t t
10858 s,@OBJCOPY@,$OBJCOPY,;t t
10859 s,@OBJDUMP@,$OBJDUMP,;t t
10860 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
10861 s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
10862 s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
10863 s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
10864 s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
10865 s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
10866 s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
10867 s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
10868 s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
10869 s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
10870 s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
10871 s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
10872 s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
10873 s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
10874 s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
10875 s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
10876 s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
10877 s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
10878 s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
10879 s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
10880 s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
10881 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10882 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10883 s,@MAINT@,$MAINT,;t t
10884 s,@stage1_cflags@,$stage1_cflags,;t t
10885 s,@stage1_checking@,$stage1_checking,;t t
10886 s,@stage2_werror_flag@,$stage2_werror_flag,;t t
10887 s,@datarootdir@,$datarootdir,;t t
10888 s,@docdir@,$docdir,;t t
10889 s,@htmldir@,$htmldir,;t t
10890 s,@LIBOBJS@,$LIBOBJS,;t t
10891 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10892 /@serialization_dependencies@/r $serialization_dependencies
10893 s,@serialization_dependencies@,,;t t
10894 /@host_makefile_frag@/r $host_makefile_frag
10895 s,@host_makefile_frag@,,;t t
10896 /@target_makefile_frag@/r $target_makefile_frag
10897 s,@target_makefile_frag@,,;t t
10898 /@alphaieee_frag@/r $alphaieee_frag
10899 s,@alphaieee_frag@,,;t t
10900 /@ospace_frag@/r $ospace_frag
10901 s,@ospace_frag@,,;t t
10906 cat >>$CONFIG_STATUS <<\_ACEOF
10907 # Split the substitutions into bite-sized pieces for seds with
10908 # small command number limits, like on Digital OSF/1 and HP-UX.
10909 ac_max_sed_lines
=48
10910 ac_sed_frag
=1 # Number of current file.
10911 ac_beg
=1 # First line for current file.
10912 ac_end
=$ac_max_sed_lines # Line after last line for current file.
10915 while $ac_more_lines; do
10916 if test $ac_beg -gt 1; then
10917 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
10919 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
10921 if test ! -s $tmp/subs.frag
; then
10922 ac_more_lines
=false
10924 # The purpose of the label and of the branching condition is to
10925 # speed up the sed processing (if there are no `@' at all, there
10926 # is no need to browse any of the substitutions).
10927 # These are the two extra sed commands mentioned above.
10929 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
10930 if test -z "$ac_sed_cmds"; then
10931 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
10933 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10935 ac_sed_frag
=`expr $ac_sed_frag + 1`
10937 ac_end
=`expr $ac_end + $ac_max_sed_lines`
10940 if test -z "$ac_sed_cmds"; then
10943 fi # test -n "$CONFIG_FILES"
10946 cat >>$CONFIG_STATUS <<\_ACEOF
10947 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
10948 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10950 - |
*:- |
*:-:* ) # input from stdin
10952 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10953 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10954 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10955 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10956 * ) ac_file_in
=$ac_file.
in ;;
10959 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10960 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
10961 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10962 X"$ac_file" : 'X\(//\)[^/]' \| \
10963 X"$ac_file" : 'X\(//\)$' \| \
10964 X"$ac_file" : 'X\(/\)' \| \
10965 . : '\(.\)' 2>/dev/null ||
10967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10969 /^X\(\/\/\)$/{ s//\1/; q; }
10970 /^X\(\/\).*/{ s//\1/; q; }
10972 { if $as_mkdir_p; then
10977 while test ! -d "$as_dir"; do
10978 as_dirs
="$as_dir $as_dirs"
10979 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
10980 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10981 X"$as_dir" : 'X\(//\)[^/]' \| \
10982 X"$as_dir" : 'X\(//\)$' \| \
10983 X"$as_dir" : 'X\(/\)' \| \
10984 . : '\(.\)' 2>/dev/null ||
10986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10987 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10988 /^X\(\/\/\)$/{ s//\1/; q; }
10989 /^X\(\/\).*/{ s//\1/; q; }
10992 test ! -n "$as_dirs" || mkdir
$as_dirs
10993 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10994 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10995 { (exit 1); exit 1; }; }; }
10999 if test "$ac_dir" != .
; then
11000 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11001 # A "../" for each directory in $ac_dir_suffix.
11002 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11004 ac_dir_suffix
= ac_top_builddir
=
11008 .
) # No --srcdir option. We are building in place.
11010 if test -z "$ac_top_builddir"; then
11013 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
11015 [\\/]* | ?
:[\\/]* ) # Absolute path.
11016 ac_srcdir
=$srcdir$ac_dir_suffix;
11017 ac_top_srcdir
=$srcdir ;;
11018 *) # Relative path.
11019 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
11020 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
11023 # Do not use `cd foo && pwd` to compute absolute paths, because
11024 # the directories may not exist.
11026 .
) ac_abs_builddir
="$ac_dir";;
11029 .
) ac_abs_builddir
=`pwd`;;
11030 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
11031 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
11034 case $ac_abs_builddir in
11035 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
11037 case ${ac_top_builddir}.
in
11038 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
11039 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
11040 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
11043 case $ac_abs_builddir in
11044 .
) ac_abs_srcdir
=$ac_srcdir;;
11047 .
) ac_abs_srcdir
=$ac_abs_builddir;;
11048 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
11049 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
11052 case $ac_abs_builddir in
11053 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
11055 case $ac_top_srcdir in
11056 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
11057 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
11058 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
11064 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11065 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
11068 if test x
"$ac_file" != x-
; then
11069 { echo "$as_me:$LINENO: creating $ac_file" >&5
11070 echo "$as_me: creating $ac_file" >&6;}
11073 # Let's still pretend it is `configure' which instantiates (i.e., don't
11074 # use $as_me), people would be surprised to read:
11075 # /* config.h. Generated by config.status. */
11076 if test x
"$ac_file" = x-
; then
11079 configure_input
="$ac_file. "
11081 configure_input
=$configure_input"Generated from `echo $ac_file_in |
11082 sed 's,.*/,,'` by configure."
11084 # First look for the input files in the build tree, otherwise in the
11086 ac_file_inputs
=`IFS=:
11087 for f in $ac_file_in; do
11089 -) echo $tmp/stdin ;;
11091 # Absolute (can't be DOS-style, as IFS=:)
11092 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11093 echo "$as_me: error: cannot find input file: $f" >&2;}
11094 { (exit 1); exit 1; }; }
11097 if test -f "$f"; then
11100 elif test -f "$srcdir/$f"; then
11105 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11106 echo "$as_me: error: cannot find input file: $f" >&2;}
11107 { (exit 1); exit 1; }; }
11110 done` ||
{ (exit 1); exit 1; }
11112 cat >>$CONFIG_STATUS <<_ACEOF
11116 cat >>$CONFIG_STATUS <<\_ACEOF
11118 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11119 s
,@configure_input@
,$configure_input,;t t
11120 s
,@srcdir@
,$ac_srcdir,;t t
11121 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
11122 s
,@top_srcdir@
,$ac_top_srcdir,;t t
11123 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
11124 s
,@builddir@
,$ac_builddir,;t t
11125 s
,@abs_builddir@
,$ac_abs_builddir,;t t
11126 s
,@top_builddir@
,$ac_top_builddir,;t t
11127 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
11128 s
,@INSTALL@
,$ac_INSTALL,;t t
11129 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11131 if test x"$ac_file" != x-; then
11132 mv $tmp/out $ac_file
11141 cat >>$CONFIG_STATUS <<\_ACEOF
11143 { (exit 0); exit 0; }
11145 chmod +x $CONFIG_STATUS
11146 ac_clean_files=$ac_clean_files_save
11149 # configure is writing to config.log, and then calls config.status.
11150 # config.status does its own redirection, appending to config.log.
11151 # Unfortunately, on DOS this fails, as config.log is still kept open
11152 # by configure, so config.status won't be able to write to it; its
11153 # output is simply discarded. So we exec the FD to /dev/null,
11154 # effectively closing config.log, so it can be properly (re)opened and
11155 # appended to by config.status. When coming back to configure, we
11156 # need to make the FD available again.
11157 if test "$no_create" != yes; then
11159 ac_config_status_args=
11160 test "$silent" = yes &&
11161 ac_config_status_args="$ac_config_status_args --quiet"
11163 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11165 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11166 # would make configure fail if this is the last instruction.
11167 $ac_cs_success || { (exit 1); exit 1; }