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 host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT GNATBIND ac_ct_GNATBIND do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES OBJCOPY OBJDUMP CXX CFLAGS_FOR_BUILD CXXFLAGS CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
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
734 # Report the --help message.
736 if test "$ac_init_help" = "long"; then
737 # Omit some internal or obsolete options to make the list less imposing.
738 # This message is too long to be a string in the A/UX 3.1 sh.
740 \`configure' configures this package to adapt to many kinds of systems.
742 Usage: $0 [OPTION]... [VAR=VALUE]...
744 To assign environment variables (e.g., CC, CFLAGS...), specify them as
745 VAR=VALUE. See below for descriptions of some of the useful variables.
747 Defaults for the options are specified in brackets.
750 -h, --help display this help and exit
751 --help=short display options specific to this package
752 --help=recursive display the short help of all the included packages
753 -V, --version display version information and exit
754 -q, --quiet, --silent do not print \`checking...' messages
755 --cache-file=FILE cache test results in FILE [disabled]
756 -C, --config-cache alias for \`--cache-file=config.cache'
757 -n, --no-create do not create output files
758 --srcdir=DIR find the sources in DIR [configure dir or \`..']
763 Installation directories:
764 --prefix=PREFIX install architecture-independent files in PREFIX
766 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
769 By default, \`make install' will install all the files in
770 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
771 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
772 for instance \`--prefix=\$HOME'.
774 For better control, use the options below.
776 Fine tuning of the installation directories:
777 --bindir=DIR user executables [EPREFIX/bin]
778 --sbindir=DIR system admin executables [EPREFIX/sbin]
779 --libexecdir=DIR program executables [EPREFIX/libexec]
780 --datadir=DIR read-only architecture-independent data [PREFIX/share]
781 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
782 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
783 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
784 --libdir=DIR object code libraries [EPREFIX/lib]
785 --includedir=DIR C header files [PREFIX/include]
786 --oldincludedir=DIR C header files for non-gcc [/usr/include]
787 --infodir=DIR info documentation [PREFIX/info]
788 --mandir=DIR man documentation [PREFIX/man]
794 --program-prefix=PREFIX prepend PREFIX to installed program names
795 --program-suffix=SUFFIX append SUFFIX to installed program names
796 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
799 --build=BUILD configure for building on BUILD [guessed]
800 --host=HOST cross-compile to build programs to run on HOST [BUILD]
801 --target=TARGET configure for building compilers for TARGET [HOST]
805 if test -n "$ac_init_help"; then
810 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
811 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
812 --enable-libada Builds libada directory
813 --enable-libssp Builds libssp directory
814 --enable-objc-gc enable the use of Boehm's garbage collector with
815 the GNU Objective-C runtime.
816 --enable-bootstrap Enable bootstrapping yes if native build
817 --enable-serial-{host,target,build}-configure
818 Force sequential configuration of
819 sub-packages for the host, target or build
820 machine, or all sub-packages
821 --enable-maintainer-mode enable make rules and dependencies not useful
822 (and sometimes confusing) to the casual installer
823 --enable-stage1-checking=all choose additional checking for stage1
825 --enable-werror enable -Werror in bootstrap stage2 and later
828 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
829 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
830 --with-build-libsubdir=DIR Directory where to find libraries for build system
831 --with-mpfr-dir=PATH This option has been REMOVED
832 --with-mpfr=PATH Specify prefix directory for installed MPFR package
833 Equivalent to --with-mpfr-include=PATH/include
834 plus --with-mpfr-lib=PATH/lib
835 --with-mpfr-include=PATH
836 Specify directory for installed MPFR include files
837 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library
838 --with-gmp-dir=PATH This option has been REMOVED
839 --with-gmp=PATH Specify prefix directory for the installed GMP package
840 Equivalent to --with-gmp-include=PATH/include
841 plus --with-gmp-lib=PATH/lib
842 --with-gmp-include=PATH Specify directory for installed GMP include files
843 --with-gmp-lib=PATH Specify the directory for the installed GMP library
844 --with-build-sysroot=sysroot
845 use sysroot as the system root during the build
846 --with-build-time-tools=path
847 use given path to find target tools during the build
848 --with-datarootdir Use datarootdir as the data root directory.
849 --with-docdir Install documentation in this directory.
850 --with-htmldir Install html in this directory.
852 Some influential environment variables:
853 CC C compiler command
854 CFLAGS C compiler flags
855 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
856 nonstandard directory <lib dir>
857 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
858 headers in a nonstandard directory <include dir>
860 Use these variables to override the choices made by `configure' or to help
861 it to find libraries and programs with nonstandard names/locations.
866 if test "$ac_init_help" = "recursive"; then
867 # If there are subdirs, report their specific --help.
869 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
870 test -d $ac_dir || continue
873 if test "$ac_dir" != .; then
874 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
875 # A "../" for each directory in $ac_dir_suffix.
876 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
878 ac_dir_suffix= ac_top_builddir=
882 .) # No --srcdir option. We are building in place.
884 if test -z "$ac_top_builddir"; then
887 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
889 [\\/]* | ?:[\\/]* ) # Absolute path.
890 ac_srcdir=$srcdir$ac_dir_suffix;
891 ac_top_srcdir=$srcdir ;;
893 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
894 ac_top_srcdir=$ac_top_builddir$srcdir ;;
897 # Do not use `cd foo && pwd` to compute absolute paths, because
898 # the directories may not exist.
900 .) ac_abs_builddir="$ac_dir";;
903 .) ac_abs_builddir=`pwd`;;
904 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
905 *) ac_abs_builddir=`pwd`/"$ac_dir";;
908 case $ac_abs_builddir in
909 .) ac_abs_top_builddir=${ac_top_builddir}.;;
911 case ${ac_top_builddir}. in
912 .) ac_abs_top_builddir=$ac_abs_builddir;;
913 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
914 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
917 case $ac_abs_builddir in
918 .) ac_abs_srcdir=$ac_srcdir;;
921 .) ac_abs_srcdir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
923 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
926 case $ac_abs_builddir in
927 .) ac_abs_top_srcdir=$ac_top_srcdir;;
929 case $ac_top_srcdir in
930 .) ac_abs_top_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
932 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu; then
940 $SHELL $ac_srcdir/configure.gnu --help=recursive
941 elif test -f $ac_srcdir/configure; then
943 $SHELL $ac_srcdir/configure --help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.in; then
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
959 Copyright (C) 2003 Free Software Foundation, Inc.
960 This configure script is free software; the Free Software Foundation
961 gives unlimited permission to copy, distribute and modify it.
967 This file contains any messages produced by compilers while
968 running configure, to aid debugging if configure makes a mistake.
970 It was created by $as_me, which was
971 generated by GNU Autoconf 2.59. Invocation command line was
982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
989 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
991 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
992 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
994 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
995 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
996 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
997 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1005 test -z "$as_dir" && as_dir=.
1006 echo "PATH: $as_dir"
1021 # Keep a trace of the command line.
1022 # Strip out --no-create and --no-recursion so they do not pile up.
1023 # Strip out --silent because we don't want to record it for future runs.
1024 # Also quote any args containing shell meta-characters.
1025 # Make two passes to allow for proper duplicate-argument suppression.
1030 ac_must_keep_next=false
1036 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1038 | -silent | --silent | --silen | --sile | --sil)
1040 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1041 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1044 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1046 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1047 if test $ac_must_keep_next = true; then
1048 ac_must_keep_next=false # Got value, back to normal.
1051 *=* | --config-cache | -C | -disable-* | --disable-* \
1052 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1053 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1054 | -with-* | --with-* | -without-* | --without-* | --x)
1055 case "$ac_configure_args0 " in
1056 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1059 -* ) ac_must_keep_next=true ;;
1062 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1063 # Get rid of the leading space.
1069 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1070 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1072 # When interrupted or exit'd, cleanup temporary files, and complete
1073 # config.log. We remove comments because anyway the quotes in there
1074 # would cause problems or look ugly.
1075 # WARNING: Be sure not to use single quotes in there, as some shells,
1076 # such as our DU 5.0 friend, will then `close' the trap.
1077 trap 'exit_status=$?
1078 # Save into config.log some information that might help in debugging.
1083 ## ---------------- ##
1084 ## Cache variables. ##
1085 ## ---------------- ##
1088 # The following way of writing the cache mishandles newlines in values,
1091 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1094 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1099 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1106 ## ----------------- ##
1107 ## Output variables. ##
1108 ## ----------------- ##
1111 for ac_var in $ac_subst_vars
1113 eval ac_val=$`echo $ac_var`
1114 echo "$ac_var='"'"'$ac_val'"'"'"
1118 if test -n "$ac_subst_files"; then
1125 for ac_var in $ac_subst_files
1127 eval ac_val=$`echo $ac_var`
1128 echo "$ac_var='"'"'$ac_val'"'"'"
1133 if test -s confdefs.h; then
1140 sed "/^$/d" confdefs.h | sort
1143 test "$ac_signal" != 0 &&
1144 echo "$as_me: caught signal $ac_signal"
1145 echo "$as_me: exit $exit_status"
1147 rm -f core *.core &&
1148 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1151 for ac_signal in 1 2 13 15; do
1152 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1156 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1157 rm -rf conftest* confdefs.h
1158 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1161 # Predefined preprocessor variables.
1163 cat >>confdefs.h <<_ACEOF
1164 #define PACKAGE_NAME "$PACKAGE_NAME"
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_STRING "$PACKAGE_STRING"
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1188 # Let the site file select an alternate cache file if it wants to.
1189 # Prefer explicitly selected file to automatically selected ones.
1190 if test -z "$CONFIG_SITE"; then
1191 if test "x$prefix" != xNONE; then
1192 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1194 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1197 for ac_site_file in $CONFIG_SITE; do
1198 if test -r "$ac_site_file"; then
1199 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1200 echo "$as_me: loading site script $ac_site_file" >&6;}
1201 sed 's/^/| /' "$ac_site_file" >&5
1206 if test -r "$cache_file"; then
1207 # Some versions of bash will fail to source /dev/null (special
1208 # files actually), so we avoid doing that.
1209 if test -f "$cache_file"; then
1210 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1211 echo "$as_me: loading cache $cache_file" >&6;}
1213 [\\/]* | ?:[\\/]* ) . $cache_file;;
1214 *) . ./$cache_file;;
1218 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1219 echo "$as_me: creating cache $cache_file" >&6;}
1223 # Check that the precious variables saved in the cache have kept the same
1225 ac_cache_corrupted=false
1226 for ac_var in `(set) 2>&1 |
1227 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1228 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1229 eval ac_new_set=\$ac_env_${ac_var}_set
1230 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1231 eval ac_new_val="\$ac_env_${ac_var}_value"
1232 case $ac_old_set,$ac_new_set in
1234 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1235 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1236 ac_cache_corrupted=: ;;
1238 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1239 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1240 ac_cache_corrupted=: ;;
1243 if test "x$ac_old_val" != "x$ac_new_val"; then
1244 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1245 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1246 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1247 echo "$as_me: former value: $ac_old_val" >&2;}
1248 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1249 echo "$as_me: current value: $ac_new_val" >&2;}
1250 ac_cache_corrupted=:
1253 # Pass precious variables to config.status.
1254 if test "$ac_new_set" = set; then
1256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1257 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1258 *) ac_arg=$ac_var=$ac_new_val ;;
1260 case " $ac_configure_args " in
1261 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1262 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1266 if $ac_cache_corrupted; then
1267 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1268 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1269 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1270 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1271 { (exit 1); exit 1; }; }
1275 ac_cpp='$CPP $CPPFLAGS'
1276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1300 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1301 if test -f $ac_dir/install-sh; then
1303 ac_install_sh="$ac_aux_dir/install-sh -c"
1305 elif test -f $ac_dir/install.sh; then
1307 ac_install_sh="$ac_aux_dir/install.sh -c"
1309 elif test -f $ac_dir/shtool; then
1311 ac_install_sh="$ac_aux_dir/shtool install -c"
1315 if test -z "$ac_aux_dir"; then
1316 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1317 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1318 { (exit 1); exit 1; }; }
1320 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1321 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1322 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1324 # Make sure we can run config.sub.
1325 $ac_config_sub sun4 >/dev/null 2>&1 ||
1326 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1327 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1328 { (exit 1); exit 1; }; }
1330 echo "$as_me:$LINENO: checking build system type" >&5
1331 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1332 if test "${ac_cv_build+set}" = set; then
1333 echo $ECHO_N "(cached) $ECHO_C" >&6
1335 ac_cv_build_alias=$build_alias
1336 test -z "$ac_cv_build_alias" &&
1337 ac_cv_build_alias=`$ac_config_guess`
1338 test -z "$ac_cv_build_alias" &&
1339 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1340 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1341 { (exit 1); exit 1; }; }
1342 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1343 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1344 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1345 { (exit 1); exit 1; }; }
1348 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1349 echo "${ECHO_T}$ac_cv_build" >&6
1351 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1352 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1353 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1356 echo "$as_me:$LINENO: checking host system type" >&5
1357 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1358 if test "${ac_cv_host+set}" = set; then
1359 echo $ECHO_N "(cached) $ECHO_C" >&6
1361 ac_cv_host_alias=$host_alias
1362 test -z "$ac_cv_host_alias" &&
1363 ac_cv_host_alias=$ac_cv_build_alias
1364 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1365 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1366 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1367 { (exit 1); exit 1; }; }
1370 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1371 echo "${ECHO_T}$ac_cv_host" >&6
1373 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1374 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1375 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1378 echo "$as_me:$LINENO: checking target system type" >&5
1379 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1380 if test "${ac_cv_target+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 ac_cv_target_alias=$target_alias
1384 test "x$ac_cv_target_alias" = "x" &&
1385 ac_cv_target_alias=$ac_cv_host_alias
1386 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1387 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1388 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1389 { (exit 1); exit 1; }; }
1392 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1393 echo "${ECHO_T}$ac_cv_target" >&6
1394 target=$ac_cv_target
1395 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400 # The aliases save the names the user supplied, while $host etc.
1401 # will get canonicalized.
1402 test -n "$target_alias" &&
1403 test "$program_prefix$program_suffix$program_transform_name" = \
1405 program_prefix=${target_alias}-
1406 test "$program_prefix" != NONE &&
1407 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1408 # Use a double $ so make ignores it.
1409 test "$program_suffix" != NONE &&
1410 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1411 # Double any \ or $. echo might interpret backslashes.
1412 # By default was `s,x,x', remove it if useless.
1413 cat <<\_ACEOF >conftest.sed
1414 s/[\\$]/&&/g;s/;s,x,x,$//
1416 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1420 # Get 'install' or 'install-sh' and its variants.
1421 # Find a good install program. We prefer a C program (faster),
1422 # so one script is as good as another. But avoid the broken or
1423 # incompatible versions:
1424 # SysV /etc/install, /usr/sbin/install
1425 # SunOS /usr/etc/install
1426 # IRIX /sbin/install
1428 # AmigaOS /C/install, which installs bootblocks on floppy discs
1429 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1430 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1431 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1432 # OS/2's system install, which has a completely different semantic
1433 # ./install, which can be erroneously created by make from ./install.sh.
1434 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1435 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1436 if test -z "$INSTALL"; then
1437 if test "${ac_cv_path_install+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1444 test -z "$as_dir" && as_dir=.
1445 # Account for people who put trailing slashes in PATH elements.
1447 ./ | .// | /cC/* | \
1448 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1449 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1452 # OSF1 and SCO ODT 3.0 have their own names for install.
1453 # Don't use installbsd from OSF since it installs stuff as root
1455 for ac_prog in ginstall scoinst install; do
1456 for ac_exec_ext in '' $ac_executable_extensions; do
1457 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1458 if test $ac_prog = install &&
1459 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1460 # AIX install. It has an incompatible calling convention.
1462 elif test $ac_prog = install &&
1463 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1464 # program-specific install script used by HP pwplus--don't use.
1467 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1479 if test "${ac_cv_path_install+set}" = set; then
1480 INSTALL=$ac_cv_path_install
1482 # As a last resort, use the slow shell script. We don't cache a
1483 # path for INSTALL within a source directory, because that will
1484 # break other packages using the cache if that directory is
1485 # removed, or if the path is relative.
1486 INSTALL=$ac_install_sh
1489 echo "$as_me:$LINENO: result: $INSTALL" >&5
1490 echo "${ECHO_T}$INSTALL" >&6
1492 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1493 # It thinks the first close brace ends the variable substitution.
1494 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1496 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1498 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1500 echo "$as_me:$LINENO: checking whether ln works" >&5
1501 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1502 if test "${acx_cv_prog_LN+set}" = set; then
1503 echo $ECHO_N "(cached) $ECHO_C" >&6
1505 rm -f conftestdata_t
1506 echo >conftestdata_f
1507 if ln conftestdata_f conftestdata_t 2>/dev/null
1513 rm -f conftestdata_f conftestdata_t
1516 if test $acx_cv_prog_LN = no; then
1518 echo "$as_me:$LINENO: result: no, using $LN" >&5
1519 echo "${ECHO_T}no, using $LN" >&6
1521 LN="$acx_cv_prog_LN"
1522 echo "$as_me:$LINENO: result: yes" >&5
1523 echo "${ECHO_T}yes" >&6
1526 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1527 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1529 if test "$LN_S" = "ln -s"; then
1530 echo "$as_me:$LINENO: result: yes" >&5
1531 echo "${ECHO_T}yes" >&6
1533 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1534 echo "${ECHO_T}no, using $LN_S" >&6
1538 ### we might need to use some other shell than /bin/sh for running subshells
1539 ### If we are on Windows, search for the shell. This will permit people
1540 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1541 ### without also having to set CONFIG_SHELL. This code will work when
1542 ### using bash, which sets OSTYPE.
1545 if test x${CONFIG_SHELL} = x ; then
1546 if test ! -f /bin/sh ; then
1547 if test x${SHELL} != x && test -f ${SHELL} ; then
1548 CONFIG_SHELL=${SHELL}
1551 for prog in sh sh.exe bash bash.exe; do
1552 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1553 for dir in $PATH; do
1554 test -z "$dir" && dir=.
1555 if test -f $dir/$prog; then
1556 CONFIG_SHELL=$dir/$prog
1562 test -n "${CONFIG_SHELL}" && break
1570 config_shell=${CONFIG_SHELL-/bin/sh}
1573 # if PWD already has a value, it is probably wrong.
1574 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1576 # Export original configure arguments for use by sub-configures. These
1577 # will be expanded by make, so quote '$'.
1579 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
1582 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
1583 rm -f conftestsed.out
1586 moveifchange=${srcdir}/move-if-change
1588 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1590 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
1592 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1593 INSTALL="${srcpwd}/install-sh -c"
1596 # Set srcdir to "." if that's what it is.
1597 # This is important for multilib support.
1599 if test "${pwd}" = "${srcpwd}" ; then
1607 ### To add a new directory to the tree, first choose whether it is a target
1608 ### or a host dependent tool. Then put it into the appropriate list
1609 ### (library or tools, host or target), doing a dependency sort.
1611 # Subdirs will be configured in the order listed in build_configdirs,
1612 # configdirs, or target_configdirs; see the serialization section below.
1614 # Dependency sorting is only needed when *configuration* must be done in
1615 # a particular order. In all cases a dependency should be specified in
1616 # the Makefile, whether or not it's implicitly specified here.
1618 # Double entries in build_configdirs, configdirs, or target_configdirs may
1619 # cause circular dependencies and break everything horribly.
1621 # these library is used by various programs built for the build
1624 build_libs="build-libiberty"
1626 # these tools are built for the build environment
1627 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1629 # these libraries are used by various programs built for the host environment
1631 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
1633 # these tools are built for the host environment
1634 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1635 # know that we are building the simulator.
1636 # binutils, gas and ld appear in that order because it makes sense to run
1637 # "make check" in that particular order.
1638 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"
1640 # libgcj represents the runtime libraries only used by gcj.
1641 libgcj="target-libffi \
1646 # these libraries are built for the target environment, and are built after
1647 # the host libraries and the host tools (which may be a cross compiler)
1649 target_libraries="target-libiberty \
1652 target-libstdc++-v3 \
1655 target-libgfortran \
1662 # these tools are built using the target libraries, and are intended to
1663 # run only in the target environment
1665 # note: any program that *uses* libraries that are in the "target_libraries"
1666 # list belongs in this list. those programs are also very likely
1667 # candidates for the "native_only" list which follows
1669 target_tools="target-examples target-groff target-gperf target-rda"
1671 ################################################################################
1673 ## All tools belong in one of the four categories, and are assigned above
1674 ## We assign ${configdirs} this way to remove all embedded newlines. This
1675 ## is important because configure will choke if they ever get through.
1676 ## ${configdirs} is directories we build using the host tools.
1677 ## ${target_configdirs} is directories we build using the target tools.
1678 configdirs=`echo ${host_libs} ${host_tools}`
1679 target_configdirs=`echo ${target_libraries} ${target_tools}`
1680 build_configdirs=`echo ${build_libs} ${build_tools}`
1682 ################################################################################
1684 srcname="gnu development package"
1686 # This gets set non-empty for some net releases of packages.
1689 # Define is_cross_compiler to save on calls to 'test'.
1691 if test x"${host}" = x"${target}" ; then
1692 is_cross_compiler=no
1694 is_cross_compiler=yes
1697 # Find the build and target subdir names.
1698 case ${build_alias} in
1699 "") build_noncanonical=${build} ;;
1700 *) build_noncanonical=${build_alias} ;;
1703 case ${host_alias} in
1704 "") host_noncanonical=${build_noncanonical} ;;
1705 *) host_noncanonical=${host_alias} ;;
1708 case ${target_alias} in
1709 "") target_noncanonical=${host_noncanonical} ;;
1710 *) target_noncanonical=${target_alias} ;;
1714 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1715 # have matching libraries, they should use host libraries: Makefile.tpl
1716 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1717 # However, they still use the build modules, because the corresponding
1718 # host modules (e.g. bison) are only built for the host when bootstrap
1720 # - build_subdir is where we find build modules, and never changes.
1721 # - build_libsubdir is where we find build libraries, and can be overridden.
1723 # Prefix 'build-' so this never conflicts with target_subdir.
1724 build_subdir="build-${build_noncanonical}"
1726 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1727 if test "${with_build_libsubdir+set}" = set; then
1728 withval="$with_build_libsubdir"
1729 build_libsubdir="$withval"
1731 build_libsubdir="$build_subdir"
1733 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1734 if ( test $srcdir = . && test -d gcc ) \
1735 || test -d $srcdir/../host-${host_noncanonical}; then
1736 host_subdir="host-${host_noncanonical}"
1741 target_subdir=${target_noncanonical}
1744 # Skipdirs are removed silently.
1746 # Noconfigdirs are removed loudly.
1750 # Make sure we don't let GNU ld be added if we didn't want it.
1751 if test x$with_gnu_ld = xno ; then
1753 noconfigdirs="$noconfigdirs ld"
1757 # Make sure we don't let GNU as be added if we didn't want it.
1758 if test x$with_gnu_as = xno ; then
1760 noconfigdirs="$noconfigdirs gas"
1763 # some tools are so dependent upon X11 that if we're not building with X,
1764 # it's not even worth trying to configure, much less build, that tool.
1767 yes | "") ;; # the default value for this tree is that X11 is available
1769 skipdirs="${skipdirs} tk itcl libgui"
1770 # We won't be able to build gdbtk without X.
1773 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1776 # Some tools are only suitable for building in a "native" situation.
1777 # Remove these if host!=target.
1778 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"
1780 # Similarly, some are only suitable for cross toolchains.
1781 # Remove these if host=target.
1782 cross_only="target-libgloss target-newlib target-opcodes"
1784 case $is_cross_compiler in
1785 no) skipdirs="${skipdirs} ${cross_only}" ;;
1786 yes) skipdirs="${skipdirs} ${native_only}" ;;
1789 # If both --with-headers and --with-libs are specified, default to
1791 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1792 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1793 if test x"${with_newlib}" = x ; then
1798 # Recognize --with-newlib/--without-newlib.
1799 case ${with_newlib} in
1800 no) skipdirs="${skipdirs} target-newlib" ;;
1801 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1804 # Configure extra directories which are host specific
1808 configdirs="$configdirs libtermcap" ;;
1811 # A target can indicate whether a language isn't supported for some reason.
1812 # Only spaces may be used in this macro; not newlines or tabs.
1813 unsupported_languages=
1815 # Remove more programs from consideration, based on the host or
1816 # target this usually means that a port of the program doesn't
1821 noconfigdirs="$noconfigdirs byacc"
1823 i[3456789]86-*-vsta)
1824 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1826 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1827 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1829 i[3456789]86-*-mingw32*)
1830 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1831 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1833 i[3456789]86-*-beos*)
1834 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1837 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1840 noconfigdirs="$noconfigdirs rcs"
1843 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1846 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1851 # Check whether --enable-libada or --disable-libada was given.
1852 if test "${enable_libada+set}" = set; then
1853 enableval="$enable_libada"
1854 ENABLE_LIBADA=$enableval
1858 if test "${ENABLE_LIBADA}" != "yes" ; then
1859 noconfigdirs="$noconfigdirs gnattools"
1862 # Check whether --enable-libssp or --disable-libssp was given.
1863 if test "${enable_libssp+set}" = set; then
1864 enableval="$enable_libssp"
1865 ENABLE_LIBSSP=$enableval
1870 # Save it here so that, even in case of --enable-libgcj, if the Java
1871 # front-end isn't enabled, we still get libgcj disabled.
1872 libgcj_saved=$libgcj
1873 case $enable_libgcj in
1875 # If we reset it here, it won't get added to noconfigdirs in the
1876 # target-specific build rules, so it will be forcibly enabled
1877 # (unless the Java language itself isn't enabled).
1881 # Make sure we get it printed in the list of not supported target libs.
1882 noconfigdirs="$noconfigdirs ${libgcj}"
1887 # Disable libmudflap on some systems.
1888 if test x$enable_libmudflap = x ; then
1890 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1891 # Enable libmudflap by default in GNU and friends.
1894 # Enable libmudflap by default in FreeBSD.
1897 # Disable it by default everywhere else.
1898 noconfigdirs="$noconfigdirs target-libmudflap"
1903 # Disable libgomp on non POSIX hosted systems.
1904 if test x$enable_libgomp = x ; then
1905 # Enable libgomp by default on hosted POSIX systems.
1907 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1909 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1911 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
1913 *-*-darwin* | *-*-aix*)
1916 noconfigdirs="$noconfigdirs target-libgomp"
1924 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1926 powerpc-*-darwin* | i[3456789]86-*-darwin*)
1927 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1928 noconfigdirs="$noconfigdirs sim target-rda"
1931 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1932 noconfigdirs="$noconfigdirs sim target-rda"
1933 noconfigdirs="$noconfigdirs ${libgcj}"
1935 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1936 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1939 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1940 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1941 && test -f /usr/local/include/gmp.h; then
1945 # Skip some stuff that's unsupported on some FreeBSD configurations.
1950 noconfigdirs="$noconfigdirs ${libgcj}"
1955 # Remove unsupported stuff on all kaOS configurations.
1956 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1957 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1958 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1959 noconfigdirs="$noconfigdirs target-libgloss"
1962 # Skip some stuff on all NetBSD configurations.
1963 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1965 # Skip some stuff that's unsupported on some NetBSD configurations.
1967 i*86-*-netbsdelf*) ;;
1968 arm*-*-netbsdelf*) ;;
1970 noconfigdirs="$noconfigdirs ${libgcj}"
1975 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1978 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1980 # The tpf target doesn't support gdb yet.
1982 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1985 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1988 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1991 # ld works, but does not support shared libraries.
1992 # newlib is not 64 bit ready. I'm not sure about fileutils.
1993 # gas doesn't generate exception information.
1994 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1997 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2000 # newlib is not 64 bit ready
2001 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2004 # newlib is not 64 bit ready
2005 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2008 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2011 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2013 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2014 noconfigdirs="$noconfigdirs ${libgcj}"
2015 noconfigdirs="$noconfigdirs target-examples"
2016 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2017 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2018 noconfigdirs="$noconfigdirs expect dejagnu"
2019 # the C++ libraries don't build on top of CE's C libraries
2020 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2021 noconfigdirs="$noconfigdirs target-newlib"
2023 *-*-cygwin*) ;; # keep gdb and readline
2024 *) noconfigdirs="$noconfigdirs gdb readline"
2029 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2033 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2034 noconfigdirs="$noconfigdirs ${libgcj}"
2036 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2037 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2039 arm*-*-linux-gnueabi)
2040 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2041 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2044 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2047 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2050 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2053 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2056 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2059 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2062 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2065 noconfigdirs="$noconfigdirs gdb"
2066 if test x${is_cross_compiler} != xno ; then
2067 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2070 c4x-*-* | tic4x-*-*)
2071 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2073 c54x*-*-* | tic54x-*-*)
2074 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2076 cris-*-* | crisv32-*-*)
2077 unsupported_languages="$unsupported_languages java"
2080 unsupported_languages="$unsupported_languages fortran"
2081 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2083 unsupported_languages="$unsupported_languages fortran"
2084 noconfigdirs="$noconfigdirs target-boehm-gc";;
2086 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2088 unsupported_languages="$unsupported_languages fortran"
2089 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2093 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2096 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2099 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2102 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2105 noconfigdirs="$noconfigdirs ${libgcj}"
2108 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2111 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2113 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2115 hppa*64*-*-linux* | parisc*64*-*-linux*)
2116 # In this case, it's because the hppa64-linux target is for
2117 # the kernel only at this point and has no libc, and thus no
2118 # headers, crt*.o, etc., all of which are needed by these.
2119 noconfigdirs="$noconfigdirs target-zlib"
2121 parisc*-*-linux* | hppa*-*-linux*)
2125 hppa*-*-openbsd* | \
2127 noconfigdirs="$noconfigdirs ${libgcj}"
2130 noconfigdirs="$noconfigdirs ld shellutils"
2133 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2134 # build on HP-UX 10.20.
2135 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2138 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2141 # No gdb support yet.
2142 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2145 # No gdb or ld support yet.
2146 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2150 i[3456789]86-*-coff | i[3456789]86-*-elf)
2151 noconfigdirs="$noconfigdirs ${libgcj}"
2153 i[3456789]86-*-linux*)
2154 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2155 # not build java stuff by default.
2158 noconfigdirs="$noconfigdirs ${libgcj}";;
2161 # This section makes it possible to build newlib natively on linux.
2162 # If we are using a cross compiler then don't configure newlib.
2163 if test x${is_cross_compiler} != xno ; then
2164 noconfigdirs="$noconfigdirs target-newlib"
2166 noconfigdirs="$noconfigdirs target-libgloss"
2167 # If we are not using a cross compiler, do configure newlib.
2168 # Note however, that newlib will only be configured in this situation
2169 # if the --with-newlib option has been given, because otherwise
2170 # 'target-newlib' will appear in skipdirs.
2172 i[3456789]86-*-mingw32*)
2173 target_configdirs="$target_configdirs target-winsup"
2174 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2177 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2178 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2179 # always build newlib if winsup directory is present.
2180 if test -d "$srcdir/winsup/cygwin"; then
2181 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2182 elif test -d "$srcdir/newlib"; then
2183 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2186 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2187 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2190 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2192 i[3456789]86-*-sco3.2v5*)
2193 # The linker does not yet know about weak symbols in COFF,
2194 # and is not configured to handle mixed ELF and COFF.
2195 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2197 i[3456789]86-*-sco*)
2198 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2200 i[3456789]86-*-solaris2*)
2201 noconfigdirs="$noconfigdirs target-libgloss"
2203 i[3456789]86-*-sysv4*)
2204 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2206 i[3456789]86-*-beos*)
2207 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2209 i[3456789]86-*-rdos*)
2210 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2213 noconfigdirs="$noconfigdirs ${libgcj}"
2215 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2216 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2219 noconfigdirs="$noconfigdirs ${libgcj}"
2222 noconfigdirs="$noconfigdirs ${libgcj}"
2225 # The EPOC C++ environment does not support exceptions or rtti,
2226 # and so building libstdc++-v3 tends not to always work.
2227 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2230 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2231 unsupported_languages="$unsupported_languages fortran java"
2234 noconfigdirs="$noconfigdirs ${libgcj}"
2237 noconfigdirs="$noconfigdirs ${libgcj}"
2240 noconfigdirs="$noconfigdirs sim"
2243 # copied from rs6000-*-* entry
2244 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2246 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2247 target_configdirs="$target_configdirs target-winsup"
2248 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2249 # always build newlib.
2250 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2252 # This is temporary until we can link against shared libraries
2253 powerpcle-*-solaris*)
2254 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2257 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2260 noconfigdirs="$noconfigdirs ${libgcj}"
2262 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2265 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2268 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2271 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2274 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2277 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2280 # Linking libjava exceeds command-line length limits on at least
2281 # IRIX 6.2, but not on IRIX 6.5.
2282 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2283 # <oldham@codesourcery.com>
2284 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2287 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2290 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2293 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2296 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2299 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2303 i[3456789]86-*-vsta) ;; # don't add gprof back in
2304 i[3456789]86-*-go32*) ;; # don't add gprof back in
2305 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2306 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2308 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2311 noconfigdirs="$noconfigdirs ${libgcj}"
2314 noconfigdirs="$noconfigdirs ${libgcj}"
2317 noconfigdirs="$noconfigdirs ${libgcj}"
2320 noconfigdirs="$noconfigdirs ${libgcj}"
2321 if test x${is_cross_compiler} != xno ; then
2322 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2327 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2328 noconfigdirs="$noconfigdirs ${libgcj}"
2330 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2333 skipdirs="target-libssp"
2336 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2339 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2342 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2345 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2348 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2351 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2354 noconfigdirs="$noconfigdirs ${libgcj}"
2357 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2359 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2360 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2363 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2366 noconfigdirs="$noconfigdirs ${libgcj}"
2370 # If we aren't building newlib, then don't build libgloss, since libgloss
2371 # depends upon some newlib header files.
2372 case "${noconfigdirs}" in
2373 *target-libgloss*) ;;
2374 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2377 # Work in distributions that contain no compiler tools, like Autoconf.
2379 host_makefile_frag=/dev/null
2380 if test -d ${srcdir}/config ; then
2383 # Avoid "too much defining" errors from HPUX compiler.
2384 tentative_cc="cc -Wp,-H256000"
2385 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2386 # If it's HP/UX ar, this should be harmless.
2390 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2393 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2394 # chokes on bfd, the compiler won't let you assign integers to enums, and
2395 # other problems. Defining CC to gcc is a questionable way to say "don't use
2396 # the apollo compiler" (the preferred version of GCC could be called cc,
2397 # or whatever), but I'm not sure leaving CC as cc is any better...
2398 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2399 # Used to have BISON=yacc.
2403 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2406 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2407 tentative_cc="cc -Xa"
2408 host_makefile_frag="config/mh-cxux"
2410 m88k-motorola-sysv*)
2413 tentative_cc="cc -Wf,-XNg1000"
2414 host_makefile_frag="config/mh-decstation"
2417 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2418 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2419 host_makefile_frag="config/mh-necv4"
2422 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2423 # environment. Also bump switch table size so that cp-parse will
2424 # compile. Bump string length limit so linker builds.
2425 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2428 host_makefile_frag="config/mh-sysv4"
2431 # This is for a MIPS running RISC/os 4.52C.
2433 # This is needed for GDB, but needs to be in the top-level make because
2434 # if a library is compiled with the bsd headers and gets linked with the
2435 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2436 # a different size).
2437 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2438 # known except to select the sysv environment. Could we use /proc instead?
2439 # These "sysv environments" and "bsd environments" often end up being a pain.
2441 # This is not part of CFLAGS because perhaps not all C compilers have this
2443 tentative_cc="cc -systype sysv"
2448 i[3456789]86-*-sysv5*)
2449 host_makefile_frag="config/mh-sysv5"
2451 i[3456789]86-*-dgux*)
2452 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2453 host_makefile_frag="config/mh-dgux386"
2455 i[3456789]86-ncr-sysv4.3*)
2456 # The MetaWare compiler will generate a copyright message unless you
2457 # turn it off by adding the -Hnocopyr flag.
2458 tentative_cc="cc -Hnocopyr"
2460 i[3456789]86-ncr-sysv4*)
2461 # for an NCR 3000 (i486/SVR4) system.
2462 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2463 # This compiler not only emits obnoxious copyright messages every time
2464 # you run it, but it chokes and dies on a whole bunch of GNU source
2465 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2466 tentative_cc="/usr/ccs/ATT/cc"
2467 host_makefile_frag="config/mh-ncr3000"
2469 i[3456789]86-*-sco3.2v5*)
2471 i[3456789]86-*-sco*)
2472 # The native C compiler botches some simple uses of const. Unfortunately,
2473 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2474 tentative_cc="cc -Dconst="
2475 host_makefile_frag="config/mh-sco"
2477 i[3456789]86-*-udk*)
2478 host_makefile_frag="config/mh-sysv5"
2480 i[3456789]86-*-solaris2*)
2481 host_makefile_frag="config/mh-sysv4"
2483 i[3456789]86-*-msdosdjgpp*)
2484 host_makefile_frag="config/mh-djgpp"
2487 host_makefile_frag="config/mh-cygwin"
2492 host_makefile_frag="config/mh-interix"
2495 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2499 host_makefile_frag="config/mh-solaris"
2502 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2503 # without overflowing the jump tables (-J says to use a 32 bit table)
2504 tentative_cc="cc -J"
2507 tentative_cc="cc -Wp,-H256000"
2510 tentative_cc="cc -Wp,-H256000"
2513 # /bin/cc is less than useful for our purposes. Always use GCC
2514 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2515 host_makefile_frag="config/mh-lynxrs6k"
2518 host_makefile_frag="config/mh-ppc-darwin"
2521 host_makefile_frag="config/mh-ppc-aix"
2524 host_makefile_frag="config/mh-ppc-aix"
2527 # /bin/cc is less than useful for our purposes. Always use GCC
2528 tentative_cc="/bin/gcc"
2531 host_makefile_frag="config/mh-sysv4"
2533 # This is placed last to prevent interfering with the cases above.
2535 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2536 host_makefile_frag="config/mh-x86omitfp"
2541 # If we aren't going to be using gcc, see if we can extract a definition
2542 # of CC from the fragment.
2543 # Actually, use the 'pre-extracted' version above.
2544 if test -z "${CC}" && test "${build}" = "${host}" ; then
2545 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2547 for dir in $PATH; do
2548 test -z "$dir" && dir=.
2549 if test -f $dir/gcc; then
2555 if test -z "${found}" && test -n "${tentative_cc}" ; then
2560 if test "${build}" != "${host}" ; then
2561 # If we are doing a Canadian Cross, in which the host and build systems
2562 # are not the same, we set reasonable default values for the tools.
2564 CC=${CC-${host_alias}-gcc}
2565 CFLAGS=${CFLAGS-"-g -O2"}
2566 CXX=${CXX-${host_alias}-c++}
2567 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2568 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2571 # Set reasonable default values for some tools even if not Canadian.
2572 # Of course, these are different reasonable default values, originally
2573 # specified directly in the Makefile.
2574 # We don't export, so that autoconf can do its job.
2575 # Note that all these settings are above the fragment inclusion point
2576 # in Makefile.in, so can still be overridden by fragments.
2577 # This is all going to change when we autoconfiscate...
2579 CC_FOR_BUILD="\$(CC)"
2581 ac_cpp='$CPP $CPPFLAGS'
2582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2585 if test -n "$ac_tool_prefix"; then
2586 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2587 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2588 echo "$as_me:$LINENO: checking for $ac_word" >&5
2589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2590 if test "${ac_cv_prog_CC+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 if test -n "$CC"; then
2594 ac_cv_prog_CC="$CC" # Let the user override the test.
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2603 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 if test -n "$CC"; then
2614 echo "$as_me:$LINENO: result: $CC" >&5
2615 echo "${ECHO_T}$CC" >&6
2617 echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6
2622 if test -z "$ac_cv_prog_CC"; then
2624 # Extract the first word of "gcc", so it can be a program name with args.
2625 set dummy gcc; ac_word=$2
2626 echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2628 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 if test -n "$ac_ct_CC"; then
2632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2641 ac_cv_prog_ac_ct_CC="gcc"
2642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2651 if test -n "$ac_ct_CC"; then
2652 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2653 echo "${ECHO_T}$ac_ct_CC" >&6
2655 echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2664 if test -z "$CC"; then
2665 if test -n "$ac_tool_prefix"; then
2666 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2667 set dummy ${ac_tool_prefix}cc; ac_word=$2
2668 echo "$as_me:$LINENO: checking for $ac_word" >&5
2669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2670 if test "${ac_cv_prog_CC+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 if test -n "$CC"; then
2674 ac_cv_prog_CC="$CC" # Let the user override the test.
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 test -z "$as_dir" && as_dir=.
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2683 ac_cv_prog_CC="${ac_tool_prefix}cc"
2684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 if test -n "$CC"; then
2694 echo "$as_me:$LINENO: result: $CC" >&5
2695 echo "${ECHO_T}$CC" >&6
2697 echo "$as_me:$LINENO: result: no" >&5
2698 echo "${ECHO_T}no" >&6
2702 if test -z "$ac_cv_prog_CC"; then
2704 # Extract the first word of "cc", so it can be a program name with args.
2705 set dummy cc; ac_word=$2
2706 echo "$as_me:$LINENO: checking for $ac_word" >&5
2707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2708 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 if test -n "$ac_ct_CC"; then
2712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2721 ac_cv_prog_ac_ct_CC="cc"
2722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2731 if test -n "$ac_ct_CC"; then
2732 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2733 echo "${ECHO_T}$ac_ct_CC" >&6
2735 echo "$as_me:$LINENO: result: no" >&5
2736 echo "${ECHO_T}no" >&6
2745 if test -z "$CC"; then
2746 # Extract the first word of "cc", so it can be a program name with args.
2747 set dummy cc; ac_word=$2
2748 echo "$as_me:$LINENO: checking for $ac_word" >&5
2749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2750 if test "${ac_cv_prog_CC+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 if test -n "$CC"; then
2754 ac_cv_prog_CC="$CC" # Let the user override the test.
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2764 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2765 ac_prog_rejected=yes
2769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 if test $ac_prog_rejected = yes; then
2776 # We found a bogon in the path, so make sure we never use it.
2777 set dummy $ac_cv_prog_CC
2779 if test $# != 0; then
2780 # We chose a different compiler from the bogus one.
2781 # However, it has the same basename, so the bogon will be chosen
2782 # first if we set CC to just the basename; use the full file name.
2784 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2790 if test -n "$CC"; then
2791 echo "$as_me:$LINENO: result: $CC" >&5
2792 echo "${ECHO_T}$CC" >&6
2794 echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6
2799 if test -z "$CC"; then
2800 if test -n "$ac_tool_prefix"; then
2803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2805 echo "$as_me:$LINENO: checking for $ac_word" >&5
2806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2807 if test "${ac_cv_prog_CC+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 if test -n "$CC"; then
2811 ac_cv_prog_CC="$CC" # Let the user override the test.
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2820 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 if test -n "$CC"; then
2831 echo "$as_me:$LINENO: result: $CC" >&5
2832 echo "${ECHO_T}$CC" >&6
2834 echo "$as_me:$LINENO: result: no" >&5
2835 echo "${ECHO_T}no" >&6
2838 test -n "$CC" && break
2841 if test -z "$CC"; then
2845 # Extract the first word of "$ac_prog", so it can be a program name with args.
2846 set dummy $ac_prog; ac_word=$2
2847 echo "$as_me:$LINENO: checking for $ac_word" >&5
2848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2849 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2852 if test -n "$ac_ct_CC"; then
2853 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862 ac_cv_prog_ac_ct_CC="$ac_prog"
2863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2872 if test -n "$ac_ct_CC"; then
2873 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2874 echo "${ECHO_T}$ac_ct_CC" >&6
2876 echo "$as_me:$LINENO: result: no" >&5
2877 echo "${ECHO_T}no" >&6
2880 test -n "$ac_ct_CC" && break
2889 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2890 See \`config.log' for more details." >&5
2891 echo "$as_me: error: no acceptable C compiler found in \$PATH
2892 See \`config.log' for more details." >&2;}
2893 { (exit 1); exit 1; }; }
2895 # Provide some information about the compiler.
2896 echo "$as_me:$LINENO:" \
2897 "checking for C compiler version" >&5
2898 ac_compiler=`set X $ac_compile; echo $2`
2899 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2900 (eval $ac_compiler --version </dev/null >&5) 2>&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }
2904 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2905 (eval $ac_compiler -v </dev/null >&5) 2>&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }
2909 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2910 (eval $ac_compiler -V </dev/null >&5) 2>&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }
2915 cat >conftest.$ac_ext <<_ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2930 ac_clean_files_save=$ac_clean_files
2931 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2932 # Try to create an executable without -o first, disregard a.out.
2933 # It will help us diagnose broken compilers, and finding out an intuition
2935 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2936 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2937 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2938 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2939 (eval $ac_link_default) 2>&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; then
2943 # Find the output, starting from the most likely. This scheme is
2944 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2947 # Be careful to initialize this variable, since it used to be cached.
2948 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2950 # b.out is created by i960 compilers.
2951 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2953 test -f "$ac_file" || continue
2955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2958 # This is the source file.
2961 # We found the default executable, but exeext='' is most
2965 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2966 # FIXME: I believe we export ac_cv_exeext for Libtool,
2967 # but it would be cool to find out if it's true. Does anybody
2968 # maintain Libtool? --akim.
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2979 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2980 See \`config.log' for more details." >&5
2981 echo "$as_me: error: C compiler cannot create executables
2982 See \`config.log' for more details." >&2;}
2983 { (exit 77); exit 77; }; }
2986 ac_exeext=$ac_cv_exeext
2987 echo "$as_me:$LINENO: result: $ac_file" >&5
2988 echo "${ECHO_T}$ac_file" >&6
2990 # Check the compiler produces executables we can run. If not, either
2991 # the compiler is broken, or we cross compile.
2992 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2993 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2994 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2995 # If not cross compiling, check that we can run a simple program.
2996 if test "$cross_compiling" != yes; then
2997 if { ac_try='./$ac_file'
2998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3005 if test "$cross_compiling" = maybe; then
3008 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3009 If you meant to cross compile, use \`--host'.
3010 See \`config.log' for more details." >&5
3011 echo "$as_me: error: cannot run C compiled programs.
3012 If you meant to cross compile, use \`--host'.
3013 See \`config.log' for more details." >&2;}
3014 { (exit 1); exit 1; }; }
3018 echo "$as_me:$LINENO: result: yes" >&5
3019 echo "${ECHO_T}yes" >&6
3021 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3022 ac_clean_files=$ac_clean_files_save
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 we are cross compiling" >&5
3026 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3027 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3028 echo "${ECHO_T}$cross_compiling" >&6
3030 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3031 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3033 (eval $ac_link) 2>&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; then
3037 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3038 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3039 # work properly (i.e., refer to `conftest.exe'), while it won't with
3041 for ac_file in conftest.exe conftest conftest.*; do
3042 test -f "$ac_file" || continue
3044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3045 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3052 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3053 See \`config.log' for more details." >&5
3054 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3055 See \`config.log' for more details." >&2;}
3056 { (exit 1); exit 1; }; }
3059 rm -f conftest$ac_cv_exeext
3060 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3061 echo "${ECHO_T}$ac_cv_exeext" >&6
3063 rm -f conftest.$ac_ext
3064 EXEEXT=$ac_cv_exeext
3066 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3067 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3068 if test "${ac_cv_objext+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 cat >conftest.$ac_ext <<_ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3086 rm -f conftest.o conftest.obj
3087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3088 (eval $ac_compile) 2>&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; then
3092 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3095 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3104 See \`config.log' for more details." >&5
3105 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3106 See \`config.log' for more details." >&2;}
3107 { (exit 1); exit 1; }; }
3110 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3112 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3113 echo "${ECHO_T}$ac_cv_objext" >&6
3114 OBJEXT=$ac_cv_objext
3116 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3117 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3118 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3139 rm -f conftest.$ac_objext
3140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141 (eval $ac_compile) 2>conftest.er1
3143 grep -v '^ *+' conftest.er1 >conftest.err
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } &&
3148 { ac_try='test -z "$ac_c_werror_flag"
3149 || test ! -s conftest.err'
3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; } &&
3155 { ac_try='test -s conftest.$ac_objext'
3156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; }; then
3163 echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3169 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3172 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3173 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3174 GCC=`test $ac_compiler_gnu = yes && echo yes`
3175 ac_test_CFLAGS=${CFLAGS+set}
3176 ac_save_CFLAGS=$CFLAGS
3178 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3179 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3180 if test "${ac_cv_prog_cc_g+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 cat >conftest.$ac_ext <<_ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3198 rm -f conftest.$ac_objext
3199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200 (eval $ac_compile) 2>conftest.er1
3202 grep -v '^ *+' conftest.er1 >conftest.err
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try='test -z "$ac_c_werror_flag"
3208 || test ! -s conftest.err'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; } &&
3214 { ac_try='test -s conftest.$ac_objext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3229 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3230 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3231 if test "$ac_test_CFLAGS" = set; then
3232 CFLAGS=$ac_save_CFLAGS
3233 elif test $ac_cv_prog_cc_g = yes; then
3234 if test "$GCC" = yes; then
3240 if test "$GCC" = yes; then
3246 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3247 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3248 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 ac_cv_prog_cc_stdc=no
3253 cat >conftest.$ac_ext <<_ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h. */
3261 #include <sys/types.h>
3262 #include <sys/stat.h>
3263 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3264 struct buf { int x; };
3265 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3266 static char *e (p, i)
3272 static char *f (char * (*g) (char **, int), char **p, ...)
3277 s = g (p, va_arg (v,int));
3282 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3283 function prototypes and stuff, but not '\xHH' hex character constants.
3284 These don't provoke an error unfortunately, instead are silently treated
3285 as 'x'. The following induces an error, until -std1 is added to get
3286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3287 array size at least. It's necessary to write '\x00'==0 to get something
3288 that's true only with -std1. */
3289 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3291 int test (int i, double x);
3292 struct s1 {int (*f) (int a);};
3293 struct s2 {int (*f) (double a);};
3294 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3300 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3305 # Don't try gcc -ansi; that turns off useful extensions and
3306 # breaks some systems' header files.
3307 # AIX -qlanglvl=ansi
3308 # Ultrix and OSF/1 -std1
3309 # HP-UX 10.20 and later -Ae
3310 # HP-UX older versions -Aa -D_HPUX_SOURCE
3311 # SVR4 -Xc -D__EXTENSIONS__
3312 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3314 CC="$ac_save_CC $ac_arg"
3315 rm -f conftest.$ac_objext
3316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3317 (eval $ac_compile) 2>conftest.er1
3319 grep -v '^ *+' conftest.er1 >conftest.err
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } &&
3324 { ac_try='test -z "$ac_c_werror_flag"
3325 || test ! -s conftest.err'
3326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; } &&
3331 { ac_try='test -s conftest.$ac_objext'
3332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; }; then
3337 ac_cv_prog_cc_stdc=$ac_arg
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3344 rm -f conftest.err conftest.$ac_objext
3346 rm -f conftest.$ac_ext conftest.$ac_objext
3351 case "x$ac_cv_prog_cc_stdc" in
3353 echo "$as_me:$LINENO: result: none needed" >&5
3354 echo "${ECHO_T}none needed" >&6 ;;
3356 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3357 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3358 CC="$CC $ac_cv_prog_cc_stdc" ;;
3361 # Some people use a C++ compiler to compile C. Since we use `exit',
3362 # in C++ we need to declare it. In case someone uses the same compiler
3363 # for both compiling C and C++ we need to have the C++ compiler decide
3364 # the declaration of exit, since it's the most demanding environment.
3365 cat >conftest.$ac_ext <<_ACEOF
3370 rm -f conftest.$ac_objext
3371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3372 (eval $ac_compile) 2>conftest.er1
3374 grep -v '^ *+' conftest.er1 >conftest.err
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } &&
3379 { ac_try='test -z "$ac_c_werror_flag"
3380 || test ! -s conftest.err'
3381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; } &&
3386 { ac_try='test -s conftest.$ac_objext'
3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; }; then
3392 for ac_declaration in \
3394 'extern "C" void std::exit (int) throw (); using std::exit;' \
3395 'extern "C" void std::exit (int); using std::exit;' \
3396 'extern "C" void exit (int) throw ();' \
3397 'extern "C" void exit (int);' \
3400 cat >conftest.$ac_ext <<_ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3416 rm -f conftest.$ac_objext
3417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3418 (eval $ac_compile) 2>conftest.er1
3420 grep -v '^ *+' conftest.er1 >conftest.err
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } &&
3425 { ac_try='test -z "$ac_c_werror_flag"
3426 || test ! -s conftest.err'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; } &&
3432 { ac_try='test -s conftest.$ac_objext'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; }; then
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3446 cat >conftest.$ac_ext <<_ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3461 rm -f conftest.$ac_objext
3462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3463 (eval $ac_compile) 2>conftest.er1
3465 grep -v '^ *+' conftest.er1 >conftest.err
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } &&
3470 { ac_try='test -z "$ac_c_werror_flag"
3471 || test ! -s conftest.err'
3472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; } &&
3477 { ac_try='test -s conftest.$ac_objext'
3478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; }; then
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3492 if test -n "$ac_declaration"; then
3493 echo '#ifdef __cplusplus' >>confdefs.h
3494 echo $ac_declaration >>confdefs.h
3495 echo '#endif' >>confdefs.h
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3505 ac_cpp='$CPP $CPPFLAGS'
3506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3511 # We must set the default linker to the linker used by gcc for the correct
3512 # operation of libtool. If LD is not defined and we are using gcc, try to
3513 # set the LD default to the ld used by gcc.
3514 if test -z "$LD"; then
3515 if test "$GCC" = yes; then
3518 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
3520 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
3522 case $gcc_prog_ld in
3523 # Accept absolute paths.
3524 [\\/]* | [A-Za-z]:[\\/]*)
3525 LD="$gcc_prog_ld" ;;
3531 CFLAGS=${CFLAGS-"-g"}
3532 CXXFLAGS=${CXXFLAGS-"-g -O2"}
3538 if test -n "$ac_tool_prefix"; then
3539 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3540 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3541 echo "$as_me:$LINENO: checking for $ac_word" >&5
3542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 if test -n "$GNATBIND"; then
3547 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 GNATBIND=$ac_cv_prog_GNATBIND
3566 if test -n "$GNATBIND"; then
3567 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3568 echo "${ECHO_T}$GNATBIND" >&6
3570 echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3575 if test -z "$ac_cv_prog_GNATBIND"; then
3576 ac_ct_GNATBIND=$GNATBIND
3577 # Extract the first word of "gnatbind", so it can be a program name with args.
3578 set dummy gnatbind; ac_word=$2
3579 echo "$as_me:$LINENO: checking for $ac_word" >&5
3580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3581 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 if test -n "$ac_ct_GNATBIND"; then
3585 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3594 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3604 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3605 if test -n "$ac_ct_GNATBIND"; then
3606 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3607 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3609 echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6
3613 GNATBIND=$ac_ct_GNATBIND
3615 GNATBIND="$ac_cv_prog_GNATBIND"
3618 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3619 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3620 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 cat >conftest.adb <<EOF
3624 procedure conftest is begin null; end conftest;
3626 acx_cv_cc_gcc_supports_ada=no
3627 # There is a bug in old released versions of GCC which causes the
3628 # driver to exit successfully when the appropriate language module
3629 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3630 # Therefore we must check for the error message as well as an
3631 # unsuccessful exit.
3632 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3633 # given a .adb file, but produce no object file. So we must check
3634 # if an object file was really produced to guard against this.
3635 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3636 if test x"$errors" = x && test -f conftest.$ac_objext; then
3637 acx_cv_cc_gcc_supports_ada=yes
3641 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3642 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3644 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
3650 echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
3651 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
3652 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
3658 if cmp t1 t2 2 2 > /dev/null 2>&1; then
3659 if cmp t1 t2 1 1 > /dev/null 2>&1; then
3662 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
3665 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
3666 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
3669 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
3675 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
3676 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
3677 do_compare="$gcc_cv_prog_cmp_skip"
3681 # Check for GMP and MPFR
3685 # Specify a location for mpfr
3686 # check for this first so it ends up on the link line before gmp.
3688 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
3689 if test "${with_mpfr_dir+set}" = set; then
3690 withval="$with_mpfr_dir"
3691 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
3692 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
3693 echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
3694 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
3695 { (exit 1); exit 1; }; }
3699 # Check whether --with-mpfr or --without-mpfr was given.
3700 if test "${with_mpfr+set}" = set; then
3701 withval="$with_mpfr"
3705 # Check whether --with-mpfr_include or --without-mpfr_include was given.
3706 if test "${with_mpfr_include+set}" = set; then
3707 withval="$with_mpfr_include"
3711 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
3712 if test "${with_mpfr_lib+set}" = set; then
3713 withval="$with_mpfr_lib"
3717 if test "x$with_mpfr" != x; then
3718 gmplibs="-L$with_mpfr/lib $gmplibs"
3719 gmpinc="-I$with_mpfr/include"
3721 if test "x$with_mpfr_include" != x; then
3722 gmpinc="-I$with_mpfr_include"
3724 if test "x$with_mpfr_lib" != x; then
3725 gmplibs="-L$with_mpfr_lib $gmplibs"
3728 # Specify a location for gmp
3730 # Check whether --with-gmp-dir or --without-gmp-dir was given.
3731 if test "${with_gmp_dir+set}" = set; then
3732 withval="$with_gmp_dir"
3733 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
3734 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
3735 echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
3736 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
3737 { (exit 1); exit 1; }; }
3740 gmplibs="$gmplibs -lgmp"
3743 # Check whether --with-gmp or --without-gmp was given.
3744 if test "${with_gmp+set}" = set; then
3749 # Check whether --with-gmp_include or --without-gmp_include was given.
3750 if test "${with_gmp_include+set}" = set; then
3751 withval="$with_gmp_include"
3755 # Check whether --with-gmp_lib or --without-gmp_lib was given.
3756 if test "${with_gmp_lib+set}" = set; then
3757 withval="$with_gmp_lib"
3762 if test "x$with_gmp" != x; then
3763 gmplibs="-L$with_gmp/lib $gmplibs"
3764 gmpinc="-I$with_gmp/include $gmpinc"
3766 if test "x$with_gmp_include" != x; then
3767 gmpinc="-I$with_gmp_include $gmpinc"
3769 if test "x$with_gmp_lib" != x; then
3770 gmplibs="-L$with_gmp_lib $gmplibs"
3773 saved_CFLAGS="$CFLAGS"
3774 CFLAGS="$CFLAGS $gmpinc"
3775 # Check GMP actually works
3776 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
3777 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
3779 cat >conftest.$ac_ext <<_ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3790 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
3798 rm -f conftest.$ac_objext
3799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3800 (eval $ac_compile) 2>conftest.er1
3802 grep -v '^ *+' conftest.er1 >conftest.err
3804 cat conftest.err >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } &&
3807 { ac_try='test -z "$ac_c_werror_flag"
3808 || test ! -s conftest.err'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; } &&
3814 { ac_try='test -s conftest.$ac_objext'
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; }; then
3820 echo "$as_me:$LINENO: result: yes" >&5
3821 echo "${ECHO_T}yes" >&6
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3826 echo "$as_me:$LINENO: result: no" >&5
3827 echo "${ECHO_T}no" >&6; have_gmp=no
3829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3831 if test x"$have_gmp" = xyes; then
3833 LIBS="$LIBS $gmplibs"
3834 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
3835 echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
3836 cat >conftest.$ac_ext <<_ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h. */
3848 #if MPFR_VERSION_MAJOR < 2 || (MPFR_VERSION_MAJOR == 2 && MPFR_VERSION_MINOR < 2)
3851 mpfr_t n; mpfr_init(n);
3857 rm -f conftest.$ac_objext conftest$ac_exeext
3858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3859 (eval $ac_link) 2>conftest.er1
3861 grep -v '^ *+' conftest.er1 >conftest.err
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } &&
3866 { ac_try='test -z "$ac_c_werror_flag"
3867 || test ! -s conftest.err'
3868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; } &&
3873 { ac_try='test -s conftest$ac_exeext'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 echo "$as_me:$LINENO: result: yes" >&5
3880 echo "${ECHO_T}yes" >&6
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3885 echo "$as_me:$LINENO: result: no" >&5
3886 echo "${ECHO_T}no" >&6; have_gmp=no
3888 rm -f conftest.err conftest.$ac_objext \
3889 conftest$ac_exeext conftest.$ac_ext
3892 CFLAGS="$saved_CFLAGS"
3894 if test -d ${srcdir}/gcc && test x$have_gmp != xyes; then
3895 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
3896 Try the --with-gmp and/or --with-mpfr options to specify their locations.
3897 Copies of these libraries' source code can be found at their respective
3898 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
3899 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
3900 If you obtained GMP and/or MPFR from a vendor distribution package, make
3901 sure that you have installed both the libraries and the header files.
3902 They may be located in separate packages." >&5
3903 echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
3904 Try the --with-gmp and/or --with-mpfr options to specify their locations.
3905 Copies of these libraries' source code can be found at their respective
3906 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
3907 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
3908 If you obtained GMP and/or MPFR from a vendor distribution package, make
3909 sure that you have installed both the libraries and the header files.
3910 They may be located in separate packages." >&2;}
3911 { (exit 1); exit 1; }; }
3914 # Flags needed for both GMP and/or MPFR
3918 # By default, C is the only stage 1 language.
3922 # Figure out what language subdirectories are present.
3923 # Look if the user specified --enable-languages="..."; if not, use
3924 # the environment variable $LANGUAGES if defined. $LANGUAGES might
3926 # NB: embedded tabs in this IF block -- do not untabify
3927 if test -d ${srcdir}/gcc; then
3928 if test x"${enable_languages+set}" != xset; then
3929 if test x"${LANGUAGES+set}" = xset; then
3930 enable_languages="${LANGUAGES}"
3931 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
3933 enable_languages=all
3936 if test x"${enable_languages}" = x ||
3937 test x"${enable_languages}" = xyes;
3939 echo configure.in: --enable-languages needs at least one language argument 1>&2
3943 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
3945 # 'f95' is the old name for the 'fortran' language. We issue a warning
3946 # and make the substitution.
3947 case ,${enable_languages}, in
3949 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
3950 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
3954 # First scan to see if an enabled language requires some other language.
3955 # We assume that a given config-lang.in will list all the language
3956 # front ends it requires, even if some are required indirectly.
3957 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
3958 case ${lang_frag} in
3960 # The odd quoting in the next line works around
3961 # an apparent bug in bash 1.12 on linux.
3962 ${srcdir}/gcc/[*]/config-lang.in) ;;
3964 # From the config-lang.in, get $language, $lang_requires
3968 for other in ${lang_requires} ; do
3969 case ,${enable_languages}, in
3973 echo " \`$other' language required by \`$language'; enabling" 1>&2
3974 enable_languages="${enable_languages},${other}"
3982 new_enable_languages=c
3983 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
3984 potential_languages=c
3986 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
3987 case ${lang_frag} in
3989 # The odd quoting in the next line works around
3990 # an apparent bug in bash 1.12 on linux.
3991 ${srcdir}/gcc/[*]/config-lang.in) ;;
3993 # From the config-lang.in, get $language, $target_libs,
3994 # $lang_dirs, $boot_language, and $build_by_default
4002 potential_languages="${potential_languages},${language}"
4003 # This is quite sensitive to the ordering of the case statement arms.
4004 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
4006 echo "${lang_frag} doesn't set \$language." 1>&2
4010 # Ada was requested with no preexisting GNAT. Disable unconditionally.
4013 *,${language},*:*:*:*)
4014 # Language was explicitly selected; include it.
4018 # 'all' was selected, but this is not a default language
4019 # so do not include it.
4023 # 'all' was selected and this is a default language; include it.
4031 # Disable languages that need other directories if these aren't available.
4032 for i in $subdir_requires; do
4033 test -f "$srcdir/gcc/$i/config-lang.in" && continue
4034 case ,${enable_languages}, in
4036 # Specifically requested language; tell them.
4037 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4038 echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4039 { (exit 1); exit 1; }; }
4048 # Disable a language that is unsupported by the target.
4049 case " $unsupported_languages " in
4055 case $add_this_lang in
4057 # Remove language-dependent dirs.
4058 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4061 new_enable_languages="$new_enable_languages,$language"
4062 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4063 case ${boot_language} in
4065 # Add to (comma-separated) list of stage 1 languages.
4066 stage1_languages="${stage1_languages},${language}"
4075 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
4076 if test "x$missing_languages" != x; then
4077 { { echo "$as_me:$LINENO: error:
4078 The following requested languages could not be built: ${missing_languages}
4079 Recognised languages are: ${potential_languages}" >&5
4080 echo "$as_me: error:
4081 The following requested languages could not be built: ${missing_languages}
4082 Recognised languages are: ${potential_languages}" >&2;}
4083 { (exit 1); exit 1; }; }
4086 if test "x$new_enable_languages" != "x$enable_languages"; then
4087 echo The following languages will be built: ${new_enable_languages}
4089 enable_languages="$new_enable_languages"
4090 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
4093 # Handle --disable-<component> generically.
4094 for dir in $configdirs $build_configdirs $target_configdirs ; do
4095 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4096 if eval test x\${enable_${dirname}} "=" xno ; then
4097 noconfigdirs="$noconfigdirs $dir"
4101 # Check for Boehm's garbage collector
4102 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4103 if test "${enable_objc_gc+set}" = set; then
4104 enableval="$enable_objc_gc"
4105 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4106 *,objc,*:*:yes:*target-boehm-gc*)
4107 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4108 echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4109 { (exit 1); exit 1; }; }
4114 # Make sure we only build Boehm's garbage collector if required.
4115 case ,${enable_languages},:${enable_objc_gc} in
4117 # Keep target-boehm-gc if requested for Objective-C.
4120 # Otherwise remove target-boehm-gc depending on target-libjava.
4121 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4122 noconfigdirs="$noconfigdirs target-boehm-gc"
4127 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4128 # $build_configdirs and $target_configdirs.
4129 # If we have the source for $noconfigdirs entries, add them to $notsupp.
4132 for dir in . $skipdirs $noconfigdirs ; do
4133 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
4134 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4135 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4136 if test -r $srcdir/$dirname/configure ; then
4137 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4140 notsupp="$notsupp $dir"
4144 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4145 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4146 if test -r $srcdir/$dirname/configure ; then
4147 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4150 notsupp="$notsupp $dir"
4154 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4155 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4156 if test -r $srcdir/$dirname/configure ; then
4157 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4160 notsupp="$notsupp $dir"
4166 # Sometimes the tools are distributed with libiberty but with no other
4167 # libraries. In that case, we don't want to build target-libiberty.
4168 if test -n "${target_configdirs}" ; then
4170 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
4171 if test "$i" != "libiberty" ; then
4172 if test -r $srcdir/$i/configure ; then
4178 if test -z "${others}" ; then
4183 # Quietly strip out all directories which aren't configurable in this tree.
4184 # This relies on all configurable subdirectories being autoconfiscated, which
4186 build_configdirs_all="$build_configdirs"
4188 for i in ${build_configdirs_all} ; do
4189 j=`echo $i | sed -e s/build-//g`
4190 if test -f ${srcdir}/$j/configure ; then
4191 build_configdirs="${build_configdirs} $i"
4195 configdirs_all="$configdirs"
4197 for i in ${configdirs_all} ; do
4198 if test -f ${srcdir}/$i/configure ; then
4199 configdirs="${configdirs} $i"
4203 target_configdirs_all="$target_configdirs"
4205 for i in ${target_configdirs_all} ; do
4206 j=`echo $i | sed -e s/target-//g`
4207 if test -f ${srcdir}/$j/configure ; then
4208 target_configdirs="${target_configdirs} $i"
4212 # Produce a warning message for the subdirs we can't configure.
4213 # This isn't especially interesting in the Cygnus tree, but in the individual
4214 # FSF releases, it's important to let people know when their machine isn't
4215 # supported by the one or two programs in a package.
4217 if test -n "${notsupp}" && test -z "${norecursion}" ; then
4218 # If $appdirs is non-empty, at least one of those directories must still
4219 # be configured, or we error out. (E.g., if the gas release supports a
4220 # specified target in some subdirs but not the gas subdir, we shouldn't
4221 # pretend that all is well.)
4222 if test -n "$appdirs" ; then
4223 for dir in $appdirs ; do
4224 if test -r $dir/Makefile.in ; then
4225 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4229 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
4235 if test -n "$appdirs" ; then
4236 echo "*** This configuration is not supported by this package." 1>&2
4240 # Okay, some application will build, or we don't care to check. Still
4241 # notify of subdirs not getting built.
4242 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4243 echo " ${notsupp}" 1>&2
4244 echo " (Any other directories should still work fine.)" 1>&2
4255 # Check whether --with-build-sysroot or --without-build-sysroot was given.
4256 if test "${with_build_sysroot+set}" = set; then
4257 withval="$with_build_sysroot"
4258 if test x"$withval" != x ; then
4259 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
4262 SYSROOT_CFLAGS_FOR_TARGET=
4266 # Handle --with-headers=XXX. If the value is not "yes", the contents of
4267 # the named directory are copied to $(tooldir)/sys-include.
4268 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
4269 if test x${is_cross_compiler} = xno ; then
4270 echo 1>&2 '***' --with-headers is only supported when cross compiling
4273 if test x"${with_headers}" != xyes ; then
4274 case "${exec_prefixoption}" in
4276 *) x=${exec_prefix} ;;
4278 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
4282 # Handle --with-libs=XXX. If the value is not "yes", the contents of
4283 # the name directories are copied to $(tooldir)/lib. Multiple directories
4285 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
4286 if test x${is_cross_compiler} = xno ; then
4287 echo 1>&2 '***' --with-libs is only supported when cross compiling
4290 if test x"${with_libs}" != xyes ; then
4291 # Copy the libraries in reverse order, so that files in the first named
4292 # library override files in subsequent libraries.
4293 case "${exec_prefixoption}" in
4295 *) x=${exec_prefix} ;;
4297 for l in ${with_libs}; do
4298 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
4303 # Set with_gnu_as and with_gnu_ld as appropriate.
4305 # This is done by determining whether or not the appropriate directory
4306 # is available, and by checking whether or not specific configurations
4307 # have requested that this magic not happen.
4309 # The command line options always override the explicit settings in
4310 # configure.in, and the settings in configure.in override this magic.
4312 # If the default for a toolchain is to use GNU as and ld, and you don't
4313 # want to do that, then you should use the --without-gnu-as and
4314 # --without-gnu-ld options for the configure script.
4316 if test x${use_gnu_as} = x &&
4317 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
4319 extra_host_args="$extra_host_args --with-gnu-as"
4322 if test x${use_gnu_ld} = x &&
4323 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
4325 extra_host_args="$extra_host_args --with-gnu-ld"
4328 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
4329 # can detect this case.
4331 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
4333 extra_host_args="$extra_host_args --with-newlib"
4336 # Handle ${copy_dirs}
4337 set fnord ${copy_dirs}
4339 while test $# != 0 ; do
4340 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
4343 echo Copying $1 to $2
4345 # Use the install script to create the directory and all required
4346 # parent directories.
4347 if test -d $2 ; then
4351 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
4354 # Copy the directory, assuming we have tar.
4355 # FIXME: Should we use B in the second tar? Not all systems support it.
4356 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
4358 # It is the responsibility of the user to correctly adjust all
4359 # symlinks. If somebody can figure out how to handle them correctly
4360 # here, feel free to add the code.
4367 # Determine a target-dependent exec_prefix that the installed
4368 # gcc will search in. Keep this list sorted by triplet, with
4369 # the *-*-osname triplets last.
4373 md_exec_prefix=/gnu/lib/gcc-lib
4375 i3456786-pc-msdosdjgpp*)
4376 md_exec_prefix=/dev/env/DJDIR/bin
4378 i3456786-*-sco3.2v5*)
4379 if test $with_gnu_as = yes; then
4380 md_exec_prefix=/usr/gnu/bin
4382 md_exec_prefix=/usr/ccs/bin/elf
4387 powerpc-*-chorusos* | \
4388 powerpc*-*-eabi* | \
4389 powerpc*-*-sysv* | \
4390 powerpc*-*-kaos* | \
4392 md_exec_prefix=/usr/ccs/bin
4397 md_exec_prefix=/usr/ccs/bin
4412 md_exec_prefix=/usr/ccs/bin
4416 extra_arflags_for_target=
4417 extra_nmflags_for_target=
4418 extra_ranlibflags_for_target=
4419 target_makefile_frag=/dev/null
4422 target_makefile_frag="config/mt-spu"
4425 target_makefile_frag="config/mt-netware"
4427 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
4428 target_makefile_frag="config/mt-gnu"
4430 *-*-aix4.[3456789]* | *-*-aix[56789].*)
4431 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
4432 # commands to handle both 32-bit and 64-bit objects. These flags are
4433 # harmless if we're using GNU nm or ar.
4434 extra_arflags_for_target=" -X32_64"
4435 extra_nmflags_for_target=" -B -X32_64"
4438 # ranlib from Darwin requires the -c flag to look at common symbols.
4439 extra_ranlibflags_for_target=" -c"
4441 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
4442 target_makefile_frag="config/mt-wince"
4446 alphaieee_frag=/dev/null
4449 # This just makes sure to use the -mieee option to build target libs.
4450 # This should probably be set individually by each library.
4451 alphaieee_frag="config/mt-alphaieee"
4455 # If --enable-target-optspace always use -Os instead of -O2 to build
4456 # the target libraries, similarly if it is not specified, use -Os
4457 # on selected platforms.
4458 ospace_frag=/dev/null
4459 case "${enable_target_optspace}:${target}" in
4461 ospace_frag="config/mt-ospace"
4464 ospace_frag="config/mt-d30v"
4466 :m32r-* | :d10v-* | :fr30-*)
4467 ospace_frag="config/mt-ospace"
4472 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
4476 # Default to using --with-stabs for certain targets.
4477 if test x${with_stabs} = x ; then
4481 mips*-*-* | alpha*-*-osf*)
4483 extra_host_args="${extra_host_args} --with-stabs"
4488 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
4489 # them automatically.
4492 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
4496 # Some systems (e.g., one of the i386-aix systems the gas testers are
4497 # using) don't handle "\$" correctly, so don't use it here.
4498 tooldir='${exec_prefix}'/${target_alias}
4499 build_tooldir=${tooldir}
4501 # Create a .gdbinit file which runs the one in srcdir
4502 # and tells GDB to look there for source files.
4504 if test -r ${srcdir}/.gdbinit ; then
4507 *) cat > ./.gdbinit <<EOF
4511 source ${srcdir}/.gdbinit
4517 # Make sure that the compiler is able to generate an executable. If it
4518 # can't, we are probably in trouble. We don't care whether we can run the
4519 # executable--we might be using a cross compiler--we only care whether it
4520 # can be created. At this point the main configure script has set CC.
4522 echo "int main () { return 0; }" > conftest.c
4523 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
4524 if test $? = 0 ; then
4525 if test -s conftest || test -s conftest.exe ; then
4531 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
4532 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
4539 # The Solaris /usr/ucb/cc compiler does not appear to work.
4541 sparc-sun-solaris2*)
4542 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
4543 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
4545 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
4546 if test -d /opt/cygnus/bin ; then
4547 if test "$could_use" = "" ; then
4548 could_use="/opt/cygnus/bin"
4550 could_use="$could_use or /opt/cygnus/bin"
4553 if test "$could_use" = "" ; then
4554 echo "Warning: compilation may fail because you're using"
4555 echo "/usr/ucb/cc. You should change your PATH or CC "
4556 echo "variable and rerun configure."
4558 echo "Warning: compilation may fail because you're using"
4559 echo "/usr/ucb/cc, when you should use the C compiler from"
4560 echo "$could_use. You should change your"
4561 echo "PATH or CC variable and rerun configure."
4568 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
4569 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
4570 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
4573 # Record target_configdirs and the configure arguments for target and
4574 # build configuration in Makefile.
4575 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
4576 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
4578 # Determine whether gdb needs tk/tcl or not.
4579 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
4580 # and in that case we want gdb to be built without tk. Ugh!
4581 # In fact I believe gdb is the *only* package directly dependent on tk,
4582 # so we should be able to put the 'maybe's in unconditionally and
4583 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
4584 # 100% sure that that's safe though.
4586 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
4587 case "$enable_gdbtk" in
4591 GDB_TK="${gdb_tk}" ;;
4593 # Only add the dependency on gdbtk when GDBtk is part of the gdb
4594 # distro. Eventually someone will fix this and move Insight, nee
4595 # gdbtk to a separate directory.
4596 if test -d ${srcdir}/gdb/gdbtk ; then
4603 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
4604 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
4606 # Strip out unwanted targets.
4608 # While at that, we remove Makefiles if we were started for recursive
4609 # configuration, so that the top-level Makefile reconfigures them,
4610 # like we used to do when configure itself was recursive.
4612 # Loop over modules. $extrasub must be used with care, limiting as
4613 # much as possible the usage of range addresses. That's because autoconf
4614 # splits the sed script to overcome limits in the number of commands,
4615 # and relying on carefully-timed sed passes may turn out to be very hard
4616 # to maintain later. In this particular case, you just have to be careful
4617 # not to nest @if/@endif pairs, because configure will not warn you at all.
4619 # Check whether --enable-bootstrap or --disable-bootstrap was given.
4620 if test "${enable_bootstrap+set}" = set; then
4621 enableval="$enable_bootstrap"
4624 enable_bootstrap=default
4627 # Issue errors and warnings for invalid/strange bootstrap combinations.
4628 case "$configdirs" in
4629 *gcc*) have_compiler=yes ;;
4630 *) have_compiler=no ;;
4633 case "$have_compiler:$host:$target:$enable_bootstrap" in
4636 # Default behavior. Enable bootstrap if we have a compiler
4637 # and we are in a native configuration.
4638 yes:$build:$build:default)
4639 enable_bootstrap=yes ;;
4642 enable_bootstrap=no ;;
4644 # We have a compiler and we are in a native configuration, bootstrap is ok
4645 yes:$build:$build:yes)
4648 # Other configurations, but we have a compiler. Assume the user knows
4651 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
4652 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
4655 # No compiler: if they passed --enable-bootstrap explicitly, fail
4657 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
4658 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
4659 { (exit 1); exit 1; }; } ;;
4661 # Fail if wrong command line
4663 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
4664 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
4665 { (exit 1); exit 1; }; }
4669 # Adjust the toplevel makefile according to whether bootstrap was selected.
4670 case "$enable_bootstrap" in
4672 bootstrap_suffix=bootstrap ;;
4674 bootstrap_suffix=no-bootstrap ;;
4677 for module in ${build_configdirs} ; do
4678 if test -z "${no_recursion}" \
4679 && test -f ${build_subdir}/${module}/Makefile; then
4680 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
4681 rm -f ${build_subdir}/${module}/Makefile
4684 /^@if build-$module\$/d
4685 /^@endif build-$module\$/d
4686 /^@if build-$module-$bootstrap_suffix\$/d
4687 /^@endif build-$module-$bootstrap_suffix\$/d"
4689 for module in ${configdirs} ; do
4690 if test -z "${no_recursion}"; then
4691 for file in stage*-${module}/Makefile ${module}/Makefile; do
4692 if test -f ${file}; then
4693 echo 1>&2 "*** removing ${file} to force reconfigure"
4700 /^@endif $module\$/d
4701 /^@if $module-$bootstrap_suffix\$/d
4702 /^@endif $module-$bootstrap_suffix\$/d"
4704 for module in ${target_configdirs} ; do
4705 if test -z "${no_recursion}" \
4706 && test -f ${target_subdir}/${module}/Makefile; then
4707 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
4708 rm -f ${target_subdir}/${module}/Makefile
4711 /^@if target-$module\$/d
4712 /^@endif target-$module\$/d
4713 /^@if target-$module-$bootstrap_suffix\$/d
4714 /^@endif target-$module-$bootstrap_suffix\$/d"
4718 /^@if /,/^@endif /d"
4720 # Create the serialization dependencies. This uses a temporary file.
4722 # Check whether --enable-serial-configure or --disable-serial-configure was given.
4723 if test "${enable_serial_configure+set}" = set; then
4724 enableval="$enable_serial_configure"
4728 case ${enable_serial_configure} in
4730 enable_serial_build_configure=yes
4731 enable_serial_host_configure=yes
4732 enable_serial_target_configure=yes
4736 # These force 'configure's to be done one at a time, to avoid problems
4737 # with contention over a shared config.cache.
4739 echo '# serdep.tmp' > serdep.tmp
4741 test "x${enable_serial_build_configure}" = xyes &&
4742 for item in ${build_configdirs} ; do
4745 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
4750 test "x${enable_serial_host_configure}" = xyes &&
4751 for item in ${configdirs} ; do
4754 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
4759 test "x${enable_serial_target_configure}" = xyes &&
4760 for item in ${target_configdirs} ; do
4763 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
4767 serialization_dependencies=serdep.tmp
4770 # Base args. Strip norecursion, cache-file, srcdir, host, build,
4771 # target and nonopt. These are the ones we might not want to pass
4772 # down to subconfigures. Also strip program-prefix, program-suffix,
4773 # and program-transform-name, so that we can pass down a consistent
4774 # program-transform-name. If autoconf has put single quotes around
4775 # any of these arguments (because they contain shell metacharacters)
4776 # then this will fail; in practice this only happens for
4777 # --program-transform-name, so be sure to override --program-transform-name
4778 # at the end of the argument list.
4779 # These will be expanded by make, so quote '$'.
4780 cat <<\EOF_SED > conftestsed
4782 s/ --c[a-z-]*[= ][^ ]*//g
4783 s/ --sr[a-z-]*[= ][^ ]*//g
4784 s/ --ho[a-z-]*[= ][^ ]*//g
4785 s/ --bu[a-z-]*[= ][^ ]*//g
4786 s/ --t[a-z-]*[= ][^ ]*//g
4787 s/ --program-[pst][a-z-]*[= ][^ ]*//g
4788 s/ -cache-file[= ][^ ]*//g
4789 s/ -srcdir[= ][^ ]*//g
4790 s/ -host[= ][^ ]*//g
4791 s/ -build[= ][^ ]*//g
4792 s/ -target[= ][^ ]*//g
4793 s/ -program-prefix[= ][^ ]*//g
4794 s/ -program-suffix[= ][^ ]*//g
4795 s/ -program-transform-name[= ][^ ]*//g
4800 sed -f conftestsed <<EOF_SED > conftestsed.out
4801 ${ac_configure_args}
4803 baseargs=`cat conftestsed.out`
4804 rm -f conftestsed conftestsed.out
4806 # Add in --program-transform-name, after --program-prefix and
4807 # --program-suffix have been applied to it. Autoconf has already
4808 # doubled dollar signs and backslashes in program_transform_name; we want
4809 # the backslashes un-doubled, and then the entire thing wrapped in single
4810 # quotes, because this will be expanded first by make and then by the shell.
4811 # Also, because we want to override the logic in subdir configure scripts to
4812 # choose program_transform_name, replace any s,x,x, with s,y,y,.
4813 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
4814 ${program_transform_name}
4816 gcc_transform_name=`cat conftestsed.out`
4817 rm -f conftestsed.out
4818 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
4820 # For the build-side libraries, we just need to pretend we're native,
4821 # and not use the same cache file. Multilibs are neither needed nor
4823 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
4825 # For host modules, accept cache file option, or specification as blank.
4826 case "${cache_file}" in
4828 cache_file_option="" ;;
4829 /* | [A-Za-z]:[\\/]* ) # absolute path
4830 cache_file_option="--cache-file=${cache_file}" ;;
4832 cache_file_option="--cache-file=../${cache_file}" ;;
4835 # Host dirs don't like to share a cache file either, horribly enough.
4836 # This seems to be due to autoconf 2.5x stupidity.
4837 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
4839 target_configargs=${baseargs}
4841 # Passing a --with-cross-host argument lets the target libraries know
4842 # whether they are being built with a cross-compiler or being built
4843 # native. However, it would be better to use other mechanisms to make the
4844 # sorts of decisions they want to make on this basis. Please consider
4845 # this option to be deprecated. FIXME.
4846 if test x${is_cross_compiler} = xyes ; then
4847 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
4850 # Default to --enable-multilib.
4851 if test x${enable_multilib} = x ; then
4852 target_configargs="--enable-multilib ${target_configargs}"
4855 # Pass --with-newlib if appropriate. Note that target_configdirs has
4856 # changed from the earlier setting of with_newlib.
4857 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
4858 target_configargs="--with-newlib ${target_configargs}"
4861 # Different target subdirs use different values of certain variables
4862 # (notably CXX). Worse, multilibs use *lots* of different values.
4863 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
4864 # it doesn't automatically accept command-line overrides of them.
4865 # This means it's not safe for target subdirs to share a cache file,
4866 # which is disgusting, but there you have it. Hopefully this can be
4867 # fixed in future. It's still worthwhile to use a cache file for each
4868 # directory. I think.
4870 # Pass the appropriate --build, --host, --target and --cache-file arguments.
4871 # We need to pass --target, as newer autoconf's requires consistency
4872 # for target_alias and gcc doesn't manage it consistently.
4873 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
4876 case " $target_configdirs " in
4878 case " $target_configargs " in
4879 *" --with-newlib "*)
4882 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' ;;
4885 # If we're not building GCC, don't discard standard headers.
4886 if test -d ${srcdir}/gcc; then
4887 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
4889 if test "${build}" != "${host}"; then
4890 # On Canadian crosses, CC_FOR_TARGET will have already been set
4891 # by `configure', so we won't have an opportunity to add -Bgcc/
4892 # to it. This is right: we don't want to search that directory
4893 # for binaries, but we want the header files in there, so add
4895 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
4897 # Someone might think of using the pre-installed headers on
4898 # Canadian crosses, in case the installed compiler is not fully
4899 # compatible with the compiler being built. In this case, it
4900 # would be better to flag an error than risking having
4901 # incompatible object files being constructed. We can't
4902 # guarantee that an error will be flagged, but let's hope the
4903 # compiler will do it, when presented with incompatible header
4908 case "${target}-${is_cross_compiler}" in
4909 i[3456789]86-*-linux*-no)
4910 # Here host == target, so we don't need to build gcc,
4911 # so we don't want to discard standard headers.
4912 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
4915 # If we're building newlib, use its generic headers last, but search
4916 # for any libc-related directories first (so make it the last -B
4918 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
4927 # Can't be handled as Cygwin above since Mingw does not use newlib.
4928 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' ;;
4931 # Allow the user to override the flags for
4932 # our build compiler if desired.
4933 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
4935 # On Canadian crosses, we'll be searching the right directories for
4936 # the previously-installed cross compiler, so don't bother to add
4937 # flags for directories within the install tree of the compiler
4938 # being built; programs in there won't even run.
4939 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
4940 # Search for pre-installed headers if nothing else fits.
4941 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
4944 if test "x${use_gnu_ld}" = x &&
4945 echo " ${configdirs} " | grep " ld " > /dev/null ; then
4946 # Arrange for us to find uninstalled linker scripts.
4947 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
4950 # Search for other target-specific linker scripts and such.
4953 if test -d ${srcdir}/libgloss/m32c; then
4954 # This is for crt0.o
4955 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
4956 # This is for r8c.ld
4957 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
4958 # This is for libnosys.a
4959 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
4964 # Makefile fragments.
4965 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
4967 eval fragval=\$$frag
4968 if test $fragval != /dev/null; then
4969 eval $frag=${srcdir}/$fragval
4977 # Miscellanea: directories, flags, etc.
4985 # Build module lists & subconfigure args.
4989 # Host module lists & subconfigure args.
4993 # Target module lists & subconfigure args.
5001 # Generate default definitions for YACC, M4, LEX and other programs that run
5002 # on the build machine. These are used if the Makefile can't locate these
5003 # programs in objdir.
5004 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5006 for ac_prog in 'bison -y' byacc yacc
5008 # Extract the first word of "$ac_prog", so it can be a program name with args.
5009 set dummy $ac_prog; ac_word=$2
5010 echo "$as_me:$LINENO: checking for $ac_word" >&5
5011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5012 if test "${ac_cv_prog_YACC+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 if test -n "$YACC"; then
5016 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5025 ac_cv_prog_YACC="$ac_prog"
5026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 YACC=$ac_cv_prog_YACC
5035 if test -n "$YACC"; then
5036 echo "$as_me:$LINENO: result: $YACC" >&5
5037 echo "${ECHO_T}$YACC" >&6
5039 echo "$as_me:$LINENO: result: no" >&5
5040 echo "${ECHO_T}no" >&6
5043 test -n "$YACC" && break
5045 test -n "$YACC" || YACC="$MISSING bison -y"
5047 case " $build_configdirs " in
5048 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5049 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5052 for ac_prog in bison
5054 # Extract the first word of "$ac_prog", so it can be a program name with args.
5055 set dummy $ac_prog; ac_word=$2
5056 echo "$as_me:$LINENO: checking for $ac_word" >&5
5057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5058 if test "${ac_cv_prog_BISON+set}" = set; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5061 if test -n "$BISON"; then
5062 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5071 ac_cv_prog_BISON="$ac_prog"
5072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 BISON=$ac_cv_prog_BISON
5081 if test -n "$BISON"; then
5082 echo "$as_me:$LINENO: result: $BISON" >&5
5083 echo "${ECHO_T}$BISON" >&6
5085 echo "$as_me:$LINENO: result: no" >&5
5086 echo "${ECHO_T}no" >&6
5089 test -n "$BISON" && break
5091 test -n "$BISON" || BISON="$MISSING bison"
5093 case " $build_configdirs " in
5094 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5097 for ac_prog in gm4 gnum4 m4
5099 # Extract the first word of "$ac_prog", so it can be a program name with args.
5100 set dummy $ac_prog; ac_word=$2
5101 echo "$as_me:$LINENO: checking for $ac_word" >&5
5102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5103 if test "${ac_cv_prog_M4+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 if test -n "$M4"; then
5107 ac_cv_prog_M4="$M4" # Let the user override the test.
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5116 ac_cv_prog_M4="$ac_prog"
5117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 if test -n "$M4"; then
5127 echo "$as_me:$LINENO: result: $M4" >&5
5128 echo "${ECHO_T}$M4" >&6
5130 echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6
5134 test -n "$M4" && break
5136 test -n "$M4" || M4="$MISSING m4"
5138 case " $build_configdirs " in
5139 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5142 for ac_prog in flex lex
5144 # Extract the first word of "$ac_prog", so it can be a program name with args.
5145 set dummy $ac_prog; ac_word=$2
5146 echo "$as_me:$LINENO: checking for $ac_word" >&5
5147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5148 if test "${ac_cv_prog_LEX+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5151 if test -n "$LEX"; then
5152 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161 ac_cv_prog_LEX="$ac_prog"
5162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 if test -n "$LEX"; then
5172 echo "$as_me:$LINENO: result: $LEX" >&5
5173 echo "${ECHO_T}$LEX" >&6
5175 echo "$as_me:$LINENO: result: no" >&5
5176 echo "${ECHO_T}no" >&6
5179 test -n "$LEX" && break
5181 test -n "$LEX" || LEX="$MISSING flex"
5183 case " $build_configdirs " in
5184 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5185 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
5190 # Extract the first word of "$ac_prog", so it can be a program name with args.
5191 set dummy $ac_prog; ac_word=$2
5192 echo "$as_me:$LINENO: checking for $ac_word" >&5
5193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5194 if test "${ac_cv_prog_FLEX+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 if test -n "$FLEX"; then
5198 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5207 ac_cv_prog_FLEX="$ac_prog"
5208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 FLEX=$ac_cv_prog_FLEX
5217 if test -n "$FLEX"; then
5218 echo "$as_me:$LINENO: result: $FLEX" >&5
5219 echo "${ECHO_T}$FLEX" >&6
5221 echo "$as_me:$LINENO: result: no" >&5
5222 echo "${ECHO_T}no" >&6
5225 test -n "$FLEX" && break
5227 test -n "$FLEX" || FLEX="$MISSING flex"
5229 case " $build_configdirs " in
5230 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5233 for ac_prog in makeinfo
5235 # Extract the first word of "$ac_prog", so it can be a program name with args.
5236 set dummy $ac_prog; ac_word=$2
5237 echo "$as_me:$LINENO: checking for $ac_word" >&5
5238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5239 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 if test -n "$MAKEINFO"; then
5243 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252 ac_cv_prog_MAKEINFO="$ac_prog"
5253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 MAKEINFO=$ac_cv_prog_MAKEINFO
5262 if test -n "$MAKEINFO"; then
5263 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5264 echo "${ECHO_T}$MAKEINFO" >&6
5266 echo "$as_me:$LINENO: result: no" >&5
5267 echo "${ECHO_T}no" >&6
5270 test -n "$MAKEINFO" && break
5272 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
5274 case " $build_configdirs " in
5275 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
5278 # For an installed makeinfo, we require it to be from texinfo 4.4 or
5279 # higher, else we use the "missing" dummy.
5280 if ${MAKEINFO} --version \
5281 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
5284 MAKEINFO="$MISSING makeinfo"
5290 # FIXME: expect and dejagnu may become build tools?
5292 for ac_prog in expect
5294 # Extract the first word of "$ac_prog", so it can be a program name with args.
5295 set dummy $ac_prog; ac_word=$2
5296 echo "$as_me:$LINENO: checking for $ac_word" >&5
5297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5298 if test "${ac_cv_prog_EXPECT+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 if test -n "$EXPECT"; then
5302 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5311 ac_cv_prog_EXPECT="$ac_prog"
5312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 EXPECT=$ac_cv_prog_EXPECT
5321 if test -n "$EXPECT"; then
5322 echo "$as_me:$LINENO: result: $EXPECT" >&5
5323 echo "${ECHO_T}$EXPECT" >&6
5325 echo "$as_me:$LINENO: result: no" >&5
5326 echo "${ECHO_T}no" >&6
5329 test -n "$EXPECT" && break
5331 test -n "$EXPECT" || EXPECT="expect"
5333 case " $configdirs " in
5335 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
5339 for ac_prog in runtest
5341 # Extract the first word of "$ac_prog", so it can be a program name with args.
5342 set dummy $ac_prog; ac_word=$2
5343 echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5345 if test "${ac_cv_prog_RUNTEST+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 if test -n "$RUNTEST"; then
5349 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 test -z "$as_dir" && as_dir=.
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358 ac_cv_prog_RUNTEST="$ac_prog"
5359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 RUNTEST=$ac_cv_prog_RUNTEST
5368 if test -n "$RUNTEST"; then
5369 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5370 echo "${ECHO_T}$RUNTEST" >&6
5372 echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6
5376 test -n "$RUNTEST" && break
5378 test -n "$RUNTEST" || RUNTEST="runtest"
5380 case " $configdirs " in
5382 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
5389 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
5390 ncn_target_tool_prefix=
5391 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
5393 for ncn_progname in ar; do
5394 if test -n "$ncn_tool_prefix"; then
5395 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5396 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5397 echo "$as_me:$LINENO: checking for $ac_word" >&5
5398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5399 if test "${ac_cv_prog_AR+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 if test -n "$AR"; then
5403 ac_cv_prog_AR="$AR" # Let the user override the test.
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5412 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 if test -n "$AR"; then
5423 echo "$as_me:$LINENO: result: $AR" >&5
5424 echo "${ECHO_T}$AR" >&6
5426 echo "$as_me:$LINENO: result: no" >&5
5427 echo "${ECHO_T}no" >&6
5431 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
5432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5433 set dummy ${ncn_progname}; ac_word=$2
5434 echo "$as_me:$LINENO: checking for $ac_word" >&5
5435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5436 if test "${ac_cv_prog_AR+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 if test -n "$AR"; then
5440 ac_cv_prog_AR="$AR" # Let the user override the test.
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449 ac_cv_prog_AR="${ncn_progname}"
5450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 if test -n "$AR"; then
5460 echo "$as_me:$LINENO: result: $AR" >&5
5461 echo "${ECHO_T}$AR" >&6
5463 echo "$as_me:$LINENO: result: no" >&5
5464 echo "${ECHO_T}no" >&6
5468 test -n "$ac_cv_prog_AR" && break
5471 if test -z "$ac_cv_prog_AR" ; then
5473 if test $build = $host ; then
5476 AR="${ncn_tool_prefix}$2"
5480 for ncn_progname in as; do
5481 if test -n "$ncn_tool_prefix"; then
5482 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5483 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5484 echo "$as_me:$LINENO: checking for $ac_word" >&5
5485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5486 if test "${ac_cv_prog_AS+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 if test -n "$AS"; then
5490 ac_cv_prog_AS="$AS" # Let the user override the test.
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 if test -n "$AS"; then
5510 echo "$as_me:$LINENO: result: $AS" >&5
5511 echo "${ECHO_T}$AS" >&6
5513 echo "$as_me:$LINENO: result: no" >&5
5514 echo "${ECHO_T}no" >&6
5518 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
5519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5520 set dummy ${ncn_progname}; ac_word=$2
5521 echo "$as_me:$LINENO: checking for $ac_word" >&5
5522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5523 if test "${ac_cv_prog_AS+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 if test -n "$AS"; then
5527 ac_cv_prog_AS="$AS" # Let the user override the test.
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5536 ac_cv_prog_AS="${ncn_progname}"
5537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 if test -n "$AS"; then
5547 echo "$as_me:$LINENO: result: $AS" >&5
5548 echo "${ECHO_T}$AS" >&6
5550 echo "$as_me:$LINENO: result: no" >&5
5551 echo "${ECHO_T}no" >&6
5555 test -n "$ac_cv_prog_AS" && break
5558 if test -z "$ac_cv_prog_AS" ; then
5560 if test $build = $host ; then
5563 AS="${ncn_tool_prefix}$2"
5567 for ncn_progname in dlltool; do
5568 if test -n "$ncn_tool_prefix"; then
5569 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5570 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5571 echo "$as_me:$LINENO: checking for $ac_word" >&5
5572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5573 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 if test -n "$DLLTOOL"; then
5577 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 test -z "$as_dir" && as_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 DLLTOOL=$ac_cv_prog_DLLTOOL
5596 if test -n "$DLLTOOL"; then
5597 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5598 echo "${ECHO_T}$DLLTOOL" >&6
5600 echo "$as_me:$LINENO: result: no" >&5
5601 echo "${ECHO_T}no" >&6
5605 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
5606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5607 set dummy ${ncn_progname}; ac_word=$2
5608 echo "$as_me:$LINENO: checking for $ac_word" >&5
5609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5610 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 if test -n "$DLLTOOL"; then
5614 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 test -z "$as_dir" && as_dir=.
5621 for ac_exec_ext in '' $ac_executable_extensions; do
5622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5623 ac_cv_prog_DLLTOOL="${ncn_progname}"
5624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 DLLTOOL=$ac_cv_prog_DLLTOOL
5633 if test -n "$DLLTOOL"; then
5634 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5635 echo "${ECHO_T}$DLLTOOL" >&6
5637 echo "$as_me:$LINENO: result: no" >&5
5638 echo "${ECHO_T}no" >&6
5642 test -n "$ac_cv_prog_DLLTOOL" && break
5645 if test -z "$ac_cv_prog_DLLTOOL" ; then
5647 if test $build = $host ; then
5650 DLLTOOL="${ncn_tool_prefix}$2"
5654 for ncn_progname in ld; do
5655 if test -n "$ncn_tool_prefix"; then
5656 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5657 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5658 echo "$as_me:$LINENO: checking for $ac_word" >&5
5659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5660 if test "${ac_cv_prog_LD+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 if test -n "$LD"; then
5664 ac_cv_prog_LD="$LD" # Let the user override the test.
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5683 if test -n "$LD"; then
5684 echo "$as_me:$LINENO: result: $LD" >&5
5685 echo "${ECHO_T}$LD" >&6
5687 echo "$as_me:$LINENO: result: no" >&5
5688 echo "${ECHO_T}no" >&6
5692 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
5693 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5694 set dummy ${ncn_progname}; ac_word=$2
5695 echo "$as_me:$LINENO: checking for $ac_word" >&5
5696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5697 if test "${ac_cv_prog_LD+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 if test -n "$LD"; then
5701 ac_cv_prog_LD="$LD" # Let the user override the test.
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5710 ac_cv_prog_LD="${ncn_progname}"
5711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5720 if test -n "$LD"; then
5721 echo "$as_me:$LINENO: result: $LD" >&5
5722 echo "${ECHO_T}$LD" >&6
5724 echo "$as_me:$LINENO: result: no" >&5
5725 echo "${ECHO_T}no" >&6
5729 test -n "$ac_cv_prog_LD" && break
5732 if test -z "$ac_cv_prog_LD" ; then
5734 if test $build = $host ; then
5737 LD="${ncn_tool_prefix}$2"
5741 for ncn_progname in lipo; do
5742 if test -n "$ncn_tool_prefix"; then
5743 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5744 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5745 echo "$as_me:$LINENO: checking for $ac_word" >&5
5746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5747 if test "${ac_cv_prog_LIPO+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 if test -n "$LIPO"; then
5751 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 test -z "$as_dir" && as_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5760 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 LIPO=$ac_cv_prog_LIPO
5770 if test -n "$LIPO"; then
5771 echo "$as_me:$LINENO: result: $LIPO" >&5
5772 echo "${ECHO_T}$LIPO" >&6
5774 echo "$as_me:$LINENO: result: no" >&5
5775 echo "${ECHO_T}no" >&6
5779 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
5780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5781 set dummy ${ncn_progname}; ac_word=$2
5782 echo "$as_me:$LINENO: checking for $ac_word" >&5
5783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5784 if test "${ac_cv_prog_LIPO+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 if test -n "$LIPO"; then
5788 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 test -z "$as_dir" && as_dir=.
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5797 ac_cv_prog_LIPO="${ncn_progname}"
5798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5806 LIPO=$ac_cv_prog_LIPO
5807 if test -n "$LIPO"; then
5808 echo "$as_me:$LINENO: result: $LIPO" >&5
5809 echo "${ECHO_T}$LIPO" >&6
5811 echo "$as_me:$LINENO: result: no" >&5
5812 echo "${ECHO_T}no" >&6
5816 test -n "$ac_cv_prog_LIPO" && break
5819 if test -z "$ac_cv_prog_LIPO" ; then
5821 if test $build = $host ; then
5824 LIPO="${ncn_tool_prefix}$2"
5828 for ncn_progname in nm; do
5829 if test -n "$ncn_tool_prefix"; then
5830 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5831 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5832 echo "$as_me:$LINENO: checking for $ac_word" >&5
5833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5834 if test "${ac_cv_prog_NM+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 if test -n "$NM"; then
5838 ac_cv_prog_NM="$NM" # Let the user override the test.
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5847 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 if test -n "$NM"; then
5858 echo "$as_me:$LINENO: result: $NM" >&5
5859 echo "${ECHO_T}$NM" >&6
5861 echo "$as_me:$LINENO: result: no" >&5
5862 echo "${ECHO_T}no" >&6
5866 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
5867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5868 set dummy ${ncn_progname}; ac_word=$2
5869 echo "$as_me:$LINENO: checking for $ac_word" >&5
5870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5871 if test "${ac_cv_prog_NM+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 if test -n "$NM"; then
5875 ac_cv_prog_NM="$NM" # Let the user override the test.
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5884 ac_cv_prog_NM="${ncn_progname}"
5885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 if test -n "$NM"; then
5895 echo "$as_me:$LINENO: result: $NM" >&5
5896 echo "${ECHO_T}$NM" >&6
5898 echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6
5903 test -n "$ac_cv_prog_NM" && break
5906 if test -z "$ac_cv_prog_NM" ; then
5908 if test $build = $host ; then
5911 NM="${ncn_tool_prefix}$2"
5915 for ncn_progname in ranlib; do
5916 if test -n "$ncn_tool_prefix"; then
5917 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5918 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5919 echo "$as_me:$LINENO: checking for $ac_word" >&5
5920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5921 if test "${ac_cv_prog_RANLIB+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5924 if test -n "$RANLIB"; then
5925 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5934 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 RANLIB=$ac_cv_prog_RANLIB
5944 if test -n "$RANLIB"; then
5945 echo "$as_me:$LINENO: result: $RANLIB" >&5
5946 echo "${ECHO_T}$RANLIB" >&6
5948 echo "$as_me:$LINENO: result: no" >&5
5949 echo "${ECHO_T}no" >&6
5953 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
5954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5955 set dummy ${ncn_progname}; ac_word=$2
5956 echo "$as_me:$LINENO: checking for $ac_word" >&5
5957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5958 if test "${ac_cv_prog_RANLIB+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 if test -n "$RANLIB"; then
5962 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5971 ac_cv_prog_RANLIB="${ncn_progname}"
5972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 RANLIB=$ac_cv_prog_RANLIB
5981 if test -n "$RANLIB"; then
5982 echo "$as_me:$LINENO: result: $RANLIB" >&5
5983 echo "${ECHO_T}$RANLIB" >&6
5985 echo "$as_me:$LINENO: result: no" >&5
5986 echo "${ECHO_T}no" >&6
5990 test -n "$ac_cv_prog_RANLIB" && break
5993 if test -z "$ac_cv_prog_RANLIB" ; then
5997 for ncn_progname in strip; do
5998 if test -n "$ncn_tool_prefix"; then
5999 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6000 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6001 echo "$as_me:$LINENO: checking for $ac_word" >&5
6002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6003 if test "${ac_cv_prog_STRIP+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 if test -n "$STRIP"; then
6007 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
6017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 STRIP=$ac_cv_prog_STRIP
6026 if test -n "$STRIP"; then
6027 echo "$as_me:$LINENO: result: $STRIP" >&5
6028 echo "${ECHO_T}$STRIP" >&6
6030 echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6
6035 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
6036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6037 set dummy ${ncn_progname}; ac_word=$2
6038 echo "$as_me:$LINENO: checking for $ac_word" >&5
6039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6040 if test "${ac_cv_prog_STRIP+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 if test -n "$STRIP"; then
6044 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6053 ac_cv_prog_STRIP="${ncn_progname}"
6054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 STRIP=$ac_cv_prog_STRIP
6063 if test -n "$STRIP"; then
6064 echo "$as_me:$LINENO: result: $STRIP" >&5
6065 echo "${ECHO_T}$STRIP" >&6
6067 echo "$as_me:$LINENO: result: no" >&5
6068 echo "${ECHO_T}no" >&6
6072 test -n "$ac_cv_prog_STRIP" && break
6075 if test -z "$ac_cv_prog_STRIP" ; then
6079 for ncn_progname in windres; do
6080 if test -n "$ncn_tool_prefix"; then
6081 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6082 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6083 echo "$as_me:$LINENO: checking for $ac_word" >&5
6084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6085 if test "${ac_cv_prog_WINDRES+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 if test -n "$WINDRES"; then
6089 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 test -z "$as_dir" && as_dir=.
6096 for ac_exec_ext in '' $ac_executable_extensions; do
6097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6098 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
6099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 WINDRES=$ac_cv_prog_WINDRES
6108 if test -n "$WINDRES"; then
6109 echo "$as_me:$LINENO: result: $WINDRES" >&5
6110 echo "${ECHO_T}$WINDRES" >&6
6112 echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6
6117 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
6118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6119 set dummy ${ncn_progname}; ac_word=$2
6120 echo "$as_me:$LINENO: checking for $ac_word" >&5
6121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6122 if test "${ac_cv_prog_WINDRES+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 if test -n "$WINDRES"; then
6126 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6135 ac_cv_prog_WINDRES="${ncn_progname}"
6136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 WINDRES=$ac_cv_prog_WINDRES
6145 if test -n "$WINDRES"; then
6146 echo "$as_me:$LINENO: result: $WINDRES" >&5
6147 echo "${ECHO_T}$WINDRES" >&6
6149 echo "$as_me:$LINENO: result: no" >&5
6150 echo "${ECHO_T}no" >&6
6154 test -n "$ac_cv_prog_WINDRES" && break
6157 if test -z "$ac_cv_prog_WINDRES" ; then
6159 if test $build = $host ; then
6162 WINDRES="${ncn_tool_prefix}$2"
6166 for ncn_progname in objcopy; do
6167 if test -n "$ncn_tool_prefix"; then
6168 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6169 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6170 echo "$as_me:$LINENO: checking for $ac_word" >&5
6171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6172 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 if test -n "$OBJCOPY"; then
6176 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6185 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
6186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6194 OBJCOPY=$ac_cv_prog_OBJCOPY
6195 if test -n "$OBJCOPY"; then
6196 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6197 echo "${ECHO_T}$OBJCOPY" >&6
6199 echo "$as_me:$LINENO: result: no" >&5
6200 echo "${ECHO_T}no" >&6
6204 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
6205 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6206 set dummy ${ncn_progname}; ac_word=$2
6207 echo "$as_me:$LINENO: checking for $ac_word" >&5
6208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6209 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 if test -n "$OBJCOPY"; then
6213 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 test -z "$as_dir" && as_dir=.
6220 for ac_exec_ext in '' $ac_executable_extensions; do
6221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6222 ac_cv_prog_OBJCOPY="${ncn_progname}"
6223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6231 OBJCOPY=$ac_cv_prog_OBJCOPY
6232 if test -n "$OBJCOPY"; then
6233 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6234 echo "${ECHO_T}$OBJCOPY" >&6
6236 echo "$as_me:$LINENO: result: no" >&5
6237 echo "${ECHO_T}no" >&6
6241 test -n "$ac_cv_prog_OBJCOPY" && break
6244 if test -z "$ac_cv_prog_OBJCOPY" ; then
6246 if test $build = $host ; then
6249 OBJCOPY="${ncn_tool_prefix}$2"
6253 for ncn_progname in objdump; do
6254 if test -n "$ncn_tool_prefix"; then
6255 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6256 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6257 echo "$as_me:$LINENO: checking for $ac_word" >&5
6258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6259 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6262 if test -n "$OBJDUMP"; then
6263 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 test -z "$as_dir" && as_dir=.
6270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6272 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
6273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 OBJDUMP=$ac_cv_prog_OBJDUMP
6282 if test -n "$OBJDUMP"; then
6283 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6284 echo "${ECHO_T}$OBJDUMP" >&6
6286 echo "$as_me:$LINENO: result: no" >&5
6287 echo "${ECHO_T}no" >&6
6291 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
6292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6293 set dummy ${ncn_progname}; ac_word=$2
6294 echo "$as_me:$LINENO: checking for $ac_word" >&5
6295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6296 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 if test -n "$OBJDUMP"; then
6300 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 test -z "$as_dir" && as_dir=.
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6309 ac_cv_prog_OBJDUMP="${ncn_progname}"
6310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 OBJDUMP=$ac_cv_prog_OBJDUMP
6319 if test -n "$OBJDUMP"; then
6320 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6321 echo "${ECHO_T}$OBJDUMP" >&6
6323 echo "$as_me:$LINENO: result: no" >&5
6324 echo "${ECHO_T}no" >&6
6328 test -n "$ac_cv_prog_OBJDUMP" && break
6331 if test -z "$ac_cv_prog_OBJDUMP" ; then
6333 if test $build = $host ; then
6336 OBJDUMP="${ncn_tool_prefix}$2"
6348 # Check whether --with-build-time-tools or --without-build-time-tools was given.
6349 if test "${with_build_time_tools+set}" = set; then
6350 withval="$with_build_time_tools"
6354 with_build_time_tools=
6355 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
6356 echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
6360 with_build_time_tools=
6363 if test -n "$with_build_time_tools"; then
6364 for ncn_progname in cc gcc; do
6365 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6366 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6367 if test -x $with_build_time_tools/${ncn_progname}; then
6368 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6369 echo "$as_me:$LINENO: result: yes" >&5
6370 echo "${ECHO_T}yes" >&6
6373 echo "$as_me:$LINENO: result: no" >&5
6374 echo "${ECHO_T}no" >&6
6379 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
6380 for ncn_progname in cc gcc; do
6381 if test -n "$ncn_target_tool_prefix"; then
6382 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6383 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6384 echo "$as_me:$LINENO: checking for $ac_word" >&5
6385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6386 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 if test -n "$CC_FOR_TARGET"; then
6390 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6399 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
6409 if test -n "$CC_FOR_TARGET"; then
6410 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
6411 echo "${ECHO_T}$CC_FOR_TARGET" >&6
6413 echo "$as_me:$LINENO: result: no" >&5
6414 echo "${ECHO_T}no" >&6
6418 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
6419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6420 set dummy ${ncn_progname}; ac_word=$2
6421 echo "$as_me:$LINENO: checking for $ac_word" >&5
6422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6423 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 if test -n "$CC_FOR_TARGET"; then
6427 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
6437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6445 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
6446 if test -n "$CC_FOR_TARGET"; then
6447 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
6448 echo "${ECHO_T}$CC_FOR_TARGET" >&6
6450 echo "$as_me:$LINENO: result: no" >&5
6451 echo "${ECHO_T}no" >&6
6455 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
6459 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
6461 if test $build = $target ; then
6464 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
6468 if test -n "$with_build_time_tools"; then
6469 for ncn_progname in c++ g++ cxx gxx; do
6470 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6471 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6472 if test -x $with_build_time_tools/${ncn_progname}; then
6473 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6474 echo "$as_me:$LINENO: result: yes" >&5
6475 echo "${ECHO_T}yes" >&6
6478 echo "$as_me:$LINENO: result: no" >&5
6479 echo "${ECHO_T}no" >&6
6484 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
6485 for ncn_progname in c++ g++ cxx gxx; do
6486 if test -n "$ncn_target_tool_prefix"; then
6487 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6488 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6489 echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6491 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 if test -n "$CXX_FOR_TARGET"; then
6495 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6504 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
6514 if test -n "$CXX_FOR_TARGET"; then
6515 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
6516 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
6518 echo "$as_me:$LINENO: result: no" >&5
6519 echo "${ECHO_T}no" >&6
6523 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
6524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6525 set dummy ${ncn_progname}; ac_word=$2
6526 echo "$as_me:$LINENO: checking for $ac_word" >&5
6527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6528 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 if test -n "$CXX_FOR_TARGET"; then
6532 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6541 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
6551 if test -n "$CXX_FOR_TARGET"; then
6552 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
6553 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
6555 echo "$as_me:$LINENO: result: no" >&5
6556 echo "${ECHO_T}no" >&6
6560 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
6564 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
6565 set dummy c++ g++ cxx gxx
6566 if test $build = $target ; then
6569 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
6573 if test -n "$with_build_time_tools"; then
6574 for ncn_progname in gcc; do
6575 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6576 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6577 if test -x $with_build_time_tools/${ncn_progname}; then
6578 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6579 echo "$as_me:$LINENO: result: yes" >&5
6580 echo "${ECHO_T}yes" >&6
6583 echo "$as_me:$LINENO: result: no" >&5
6584 echo "${ECHO_T}no" >&6
6589 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
6590 for ncn_progname in gcc; do
6591 if test -n "$ncn_target_tool_prefix"; then
6592 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6593 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6594 echo "$as_me:$LINENO: checking for $ac_word" >&5
6595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6596 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 if test -n "$GCC_FOR_TARGET"; then
6600 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
6602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 test -z "$as_dir" && as_dir=.
6607 for ac_exec_ext in '' $ac_executable_extensions; do
6608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6609 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
6619 if test -n "$GCC_FOR_TARGET"; then
6620 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
6621 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
6623 echo "$as_me:$LINENO: result: no" >&5
6624 echo "${ECHO_T}no" >&6
6628 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
6629 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6630 set dummy ${ncn_progname}; ac_word=$2
6631 echo "$as_me:$LINENO: checking for $ac_word" >&5
6632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6633 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 if test -n "$GCC_FOR_TARGET"; then
6637 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 test -z "$as_dir" && as_dir=.
6644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6646 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
6647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
6656 if test -n "$GCC_FOR_TARGET"; then
6657 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
6658 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
6660 echo "$as_me:$LINENO: result: no" >&5
6661 echo "${ECHO_T}no" >&6
6665 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
6669 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
6670 GCC_FOR_TARGET="${CC_FOR_TARGET}"
6673 if test -n "$with_build_time_tools"; then
6674 for ncn_progname in gcj; do
6675 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6676 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6677 if test -x $with_build_time_tools/${ncn_progname}; then
6678 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6679 echo "$as_me:$LINENO: result: yes" >&5
6680 echo "${ECHO_T}yes" >&6
6683 echo "$as_me:$LINENO: result: no" >&5
6684 echo "${ECHO_T}no" >&6
6689 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
6690 for ncn_progname in gcj; do
6691 if test -n "$ncn_target_tool_prefix"; then
6692 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6693 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6694 echo "$as_me:$LINENO: checking for $ac_word" >&5
6695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6696 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 if test -n "$GCJ_FOR_TARGET"; then
6700 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
6719 if test -n "$GCJ_FOR_TARGET"; then
6720 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
6721 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
6723 echo "$as_me:$LINENO: result: no" >&5
6724 echo "${ECHO_T}no" >&6
6728 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
6729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6730 set dummy ${ncn_progname}; ac_word=$2
6731 echo "$as_me:$LINENO: checking for $ac_word" >&5
6732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6733 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 if test -n "$GCJ_FOR_TARGET"; then
6737 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6746 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
6756 if test -n "$GCJ_FOR_TARGET"; then
6757 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
6758 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
6760 echo "$as_me:$LINENO: result: no" >&5
6761 echo "${ECHO_T}no" >&6
6765 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
6769 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
6771 if test $build = $target ; then
6774 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
6778 if test -n "$with_build_time_tools"; then
6779 for ncn_progname in gfortran; do
6780 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6781 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6782 if test -x $with_build_time_tools/${ncn_progname}; then
6783 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6784 echo "$as_me:$LINENO: result: yes" >&5
6785 echo "${ECHO_T}yes" >&6
6788 echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6
6794 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
6795 for ncn_progname in gfortran; do
6796 if test -n "$ncn_target_tool_prefix"; then
6797 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6798 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6799 echo "$as_me:$LINENO: checking for $ac_word" >&5
6800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6801 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 if test -n "$GFORTRAN_FOR_TARGET"; then
6805 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6814 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
6824 if test -n "$GFORTRAN_FOR_TARGET"; then
6825 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
6826 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
6828 echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6
6833 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
6834 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6835 set dummy ${ncn_progname}; ac_word=$2
6836 echo "$as_me:$LINENO: checking for $ac_word" >&5
6837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6838 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 if test -n "$GFORTRAN_FOR_TARGET"; then
6842 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
6852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
6861 if test -n "$GFORTRAN_FOR_TARGET"; then
6862 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
6863 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
6865 echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6
6870 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
6874 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
6876 if test $build = $target ; then
6877 GFORTRAN_FOR_TARGET="$2"
6879 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
6885 # The user is always right.
6886 if test "${PATH_SEPARATOR+set}" != set; then
6887 echo "#! /bin/sh" >conf$$.sh
6888 echo "exit 0" >>conf$$.sh
6890 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6900 if test "x$exec_prefix" = xNONE; then
6901 if test "x$prefix" = xNONE; then
6902 gcc_cv_tool_prefix=$ac_default_prefix
6904 gcc_cv_tool_prefix=$prefix
6907 gcc_cv_tool_prefix=$exec_prefix
6910 # If there is no compiler in the tree, use the PATH only. In any
6911 # case, if there is no compiler in the tree nobody should use
6912 # AS_FOR_TARGET and LD_FOR_TARGET.
6913 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6914 gcc_version=`cat $srcdir/gcc/BASE-VER`
6915 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6916 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6917 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6918 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6919 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6920 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6925 if test x$build = x$target && test -n "$md_exec_prefix"; then
6926 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6931 cat > conftest.c << \EOF
6936 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
6937 have_gcc_for_target=yes
6939 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
6940 have_gcc_for_target=no
6947 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
6948 if test -n "$with_build_time_tools"; then
6949 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
6950 echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
6951 if test -x $with_build_time_tools/ar; then
6952 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
6953 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
6954 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
6955 echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
6957 echo "$as_me:$LINENO: result: no" >&5
6958 echo "${ECHO_T}no" >&6
6960 elif test $build != $host && test $have_gcc_for_target = yes; then
6961 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
6962 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
6963 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
6966 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
6967 # Extract the first word of "ar", so it can be a program name with args.
6968 set dummy ar; ac_word=$2
6969 echo "$as_me:$LINENO: checking for $ac_word" >&5
6970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6971 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6974 case $AR_FOR_TARGET in
6976 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 for as_dir in $gcc_cv_tool_dirs
6983 test -z "$as_dir" && as_dir=.
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6986 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
6987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6996 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
6998 if test -n "$AR_FOR_TARGET"; then
6999 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7000 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7002 echo "$as_me:$LINENO: result: no" >&5
7003 echo "${ECHO_T}no" >&6
7007 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7008 if test -n "$with_build_time_tools"; then
7009 for ncn_progname in ar; do
7010 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7011 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7012 if test -x $with_build_time_tools/${ncn_progname}; then
7013 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7014 echo "$as_me:$LINENO: result: yes" >&5
7015 echo "${ECHO_T}yes" >&6
7018 echo "$as_me:$LINENO: result: no" >&5
7019 echo "${ECHO_T}no" >&6
7024 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
7025 for ncn_progname in ar; do
7026 if test -n "$ncn_target_tool_prefix"; then
7027 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7028 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7029 echo "$as_me:$LINENO: checking for $ac_word" >&5
7030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7031 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 if test -n "$AR_FOR_TARGET"; then
7035 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7044 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7053 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
7054 if test -n "$AR_FOR_TARGET"; then
7055 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7056 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7058 echo "$as_me:$LINENO: result: no" >&5
7059 echo "${ECHO_T}no" >&6
7063 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
7064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7065 set dummy ${ncn_progname}; ac_word=$2
7066 echo "$as_me:$LINENO: checking for $ac_word" >&5
7067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7068 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7071 if test -n "$AR_FOR_TARGET"; then
7072 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
7082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
7091 if test -n "$AR_FOR_TARGET"; then
7092 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7093 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7095 echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6
7100 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
7104 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
7106 if test $build = $target ; then
7109 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7114 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
7120 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7121 if test -n "$with_build_time_tools"; then
7122 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
7123 echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
7124 if test -x $with_build_time_tools/as; then
7125 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
7126 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7127 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
7128 echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
7130 echo "$as_me:$LINENO: result: no" >&5
7131 echo "${ECHO_T}no" >&6
7133 elif test $build != $host && test $have_gcc_for_target = yes; then
7134 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
7135 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
7136 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7139 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7140 # Extract the first word of "as", so it can be a program name with args.
7141 set dummy as; ac_word=$2
7142 echo "$as_me:$LINENO: checking for $ac_word" >&5
7143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7144 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 case $AS_FOR_TARGET in
7149 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 for as_dir in $gcc_cv_tool_dirs
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7159 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7171 if test -n "$AS_FOR_TARGET"; then
7172 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7173 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7175 echo "$as_me:$LINENO: result: no" >&5
7176 echo "${ECHO_T}no" >&6
7180 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7181 if test -n "$with_build_time_tools"; then
7182 for ncn_progname in as; do
7183 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7184 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7185 if test -x $with_build_time_tools/${ncn_progname}; then
7186 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7187 echo "$as_me:$LINENO: result: yes" >&5
7188 echo "${ECHO_T}yes" >&6
7191 echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6
7197 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
7198 for ncn_progname in as; do
7199 if test -n "$ncn_target_tool_prefix"; then
7200 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7201 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7202 echo "$as_me:$LINENO: checking for $ac_word" >&5
7203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7204 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7207 if test -n "$AS_FOR_TARGET"; then
7208 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7217 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7226 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
7227 if test -n "$AS_FOR_TARGET"; then
7228 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7229 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7231 echo "$as_me:$LINENO: result: no" >&5
7232 echo "${ECHO_T}no" >&6
7236 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
7237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7238 set dummy ${ncn_progname}; ac_word=$2
7239 echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7241 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 if test -n "$AS_FOR_TARGET"; then
7245 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7254 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
7255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
7264 if test -n "$AS_FOR_TARGET"; then
7265 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7266 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7268 echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6
7273 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
7277 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
7279 if test $build = $target ; then
7282 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
7287 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7293 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7294 if test -n "$with_build_time_tools"; then
7295 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
7296 echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
7297 if test -x $with_build_time_tools/dlltool; then
7298 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
7299 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7300 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
7301 echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
7303 echo "$as_me:$LINENO: result: no" >&5
7304 echo "${ECHO_T}no" >&6
7306 elif test $build != $host && test $have_gcc_for_target = yes; then
7307 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
7308 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
7309 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7312 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7313 # Extract the first word of "dlltool", so it can be a program name with args.
7314 set dummy dlltool; ac_word=$2
7315 echo "$as_me:$LINENO: checking for $ac_word" >&5
7316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7317 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7320 case $DLLTOOL_FOR_TARGET in
7322 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $gcc_cv_tool_dirs
7329 test -z "$as_dir" && as_dir=.
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
7344 if test -n "$DLLTOOL_FOR_TARGET"; then
7345 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7346 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
7348 echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6
7353 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7354 if test -n "$with_build_time_tools"; then
7355 for ncn_progname in dlltool; do
7356 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7357 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7358 if test -x $with_build_time_tools/${ncn_progname}; then
7359 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7360 echo "$as_me:$LINENO: result: yes" >&5
7361 echo "${ECHO_T}yes" >&6
7364 echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7370 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
7371 for ncn_progname in dlltool; do
7372 if test -n "$ncn_target_tool_prefix"; then
7373 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7374 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7375 echo "$as_me:$LINENO: checking for $ac_word" >&5
7376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7377 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 if test -n "$DLLTOOL_FOR_TARGET"; then
7381 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7390 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7399 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
7400 if test -n "$DLLTOOL_FOR_TARGET"; then
7401 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7402 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
7404 echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6
7409 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
7410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7411 set dummy ${ncn_progname}; ac_word=$2
7412 echo "$as_me:$LINENO: checking for $ac_word" >&5
7413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7414 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 if test -n "$DLLTOOL_FOR_TARGET"; then
7418 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7427 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
7428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
7437 if test -n "$DLLTOOL_FOR_TARGET"; then
7438 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7439 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
7441 echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6
7446 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
7450 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
7452 if test $build = $target ; then
7453 DLLTOOL_FOR_TARGET="$2"
7455 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
7460 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
7466 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
7467 if test -n "$with_build_time_tools"; then
7468 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
7469 echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
7470 if test -x $with_build_time_tools/ld; then
7471 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
7472 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
7473 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
7474 echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
7476 echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6
7479 elif test $build != $host && test $have_gcc_for_target = yes; then
7480 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
7481 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
7482 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
7485 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
7486 # Extract the first word of "ld", so it can be a program name with args.
7487 set dummy ld; ac_word=$2
7488 echo "$as_me:$LINENO: checking for $ac_word" >&5
7489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7490 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7493 case $LD_FOR_TARGET in
7495 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 for as_dir in $gcc_cv_tool_dirs
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7505 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
7517 if test -n "$LD_FOR_TARGET"; then
7518 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7519 echo "${ECHO_T}$LD_FOR_TARGET" >&6
7521 echo "$as_me:$LINENO: result: no" >&5
7522 echo "${ECHO_T}no" >&6
7526 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
7527 if test -n "$with_build_time_tools"; then
7528 for ncn_progname in ld; do
7529 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7530 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7531 if test -x $with_build_time_tools/${ncn_progname}; then
7532 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7533 echo "$as_me:$LINENO: result: yes" >&5
7534 echo "${ECHO_T}yes" >&6
7537 echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6
7543 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
7544 for ncn_progname in ld; do
7545 if test -n "$ncn_target_tool_prefix"; then
7546 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7547 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7548 echo "$as_me:$LINENO: checking for $ac_word" >&5
7549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7550 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 if test -n "$LD_FOR_TARGET"; then
7554 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7563 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
7573 if test -n "$LD_FOR_TARGET"; then
7574 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7575 echo "${ECHO_T}$LD_FOR_TARGET" >&6
7577 echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6
7582 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
7583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7584 set dummy ${ncn_progname}; ac_word=$2
7585 echo "$as_me:$LINENO: checking for $ac_word" >&5
7586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7587 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
7588 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 if test -n "$LD_FOR_TARGET"; then
7591 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7600 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
7601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
7610 if test -n "$LD_FOR_TARGET"; then
7611 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7612 echo "${ECHO_T}$LD_FOR_TARGET" >&6
7614 echo "$as_me:$LINENO: result: no" >&5
7615 echo "${ECHO_T}no" >&6
7619 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
7623 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
7625 if test $build = $target ; then
7628 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
7633 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
7639 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
7640 if test -n "$with_build_time_tools"; then
7641 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
7642 echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
7643 if test -x $with_build_time_tools/lipo; then
7644 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
7645 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
7646 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
7647 echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
7649 echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6
7652 elif test $build != $host && test $have_gcc_for_target = yes; then
7653 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
7654 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
7655 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
7658 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
7659 # Extract the first word of "lipo", so it can be a program name with args.
7660 set dummy lipo; ac_word=$2
7661 echo "$as_me:$LINENO: checking for $ac_word" >&5
7662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7663 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 case $LIPO_FOR_TARGET in
7668 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $gcc_cv_tool_dirs
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
7690 if test -n "$LIPO_FOR_TARGET"; then
7691 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
7692 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
7694 echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6
7699 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
7700 if test -n "$with_build_time_tools"; then
7701 for ncn_progname in lipo; do
7702 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7703 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7704 if test -x $with_build_time_tools/${ncn_progname}; then
7705 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7706 echo "$as_me:$LINENO: result: yes" >&5
7707 echo "${ECHO_T}yes" >&6
7710 echo "$as_me:$LINENO: result: no" >&5
7711 echo "${ECHO_T}no" >&6
7716 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
7717 for ncn_progname in lipo; do
7718 if test -n "$ncn_target_tool_prefix"; then
7719 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7720 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7721 echo "$as_me:$LINENO: checking for $ac_word" >&5
7722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7723 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 if test -n "$LIPO_FOR_TARGET"; then
7727 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7736 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
7746 if test -n "$LIPO_FOR_TARGET"; then
7747 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
7748 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
7750 echo "$as_me:$LINENO: result: no" >&5
7751 echo "${ECHO_T}no" >&6
7755 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
7756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7757 set dummy ${ncn_progname}; ac_word=$2
7758 echo "$as_me:$LINENO: checking for $ac_word" >&5
7759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7760 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 if test -n "$LIPO_FOR_TARGET"; then
7764 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7773 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
7774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7782 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
7783 if test -n "$LIPO_FOR_TARGET"; then
7784 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
7785 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
7787 echo "$as_me:$LINENO: result: no" >&5
7788 echo "${ECHO_T}no" >&6
7792 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
7796 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
7798 if test $build = $target ; then
7799 LIPO_FOR_TARGET="$2"
7801 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
7806 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
7812 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
7813 if test -n "$with_build_time_tools"; then
7814 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
7815 echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
7816 if test -x $with_build_time_tools/nm; then
7817 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
7818 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
7819 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
7820 echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
7822 echo "$as_me:$LINENO: result: no" >&5
7823 echo "${ECHO_T}no" >&6
7825 elif test $build != $host && test $have_gcc_for_target = yes; then
7826 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
7827 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
7828 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
7831 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
7832 # Extract the first word of "nm", so it can be a program name with args.
7833 set dummy nm; ac_word=$2
7834 echo "$as_me:$LINENO: checking for $ac_word" >&5
7835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7836 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7839 case $NM_FOR_TARGET in
7841 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 for as_dir in $gcc_cv_tool_dirs
7848 test -z "$as_dir" && as_dir=.
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7851 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7861 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
7863 if test -n "$NM_FOR_TARGET"; then
7864 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
7865 echo "${ECHO_T}$NM_FOR_TARGET" >&6
7867 echo "$as_me:$LINENO: result: no" >&5
7868 echo "${ECHO_T}no" >&6
7872 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
7873 if test -n "$with_build_time_tools"; then
7874 for ncn_progname in nm; do
7875 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7876 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7877 if test -x $with_build_time_tools/${ncn_progname}; then
7878 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7879 echo "$as_me:$LINENO: result: yes" >&5
7880 echo "${ECHO_T}yes" >&6
7883 echo "$as_me:$LINENO: result: no" >&5
7884 echo "${ECHO_T}no" >&6
7889 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
7890 for ncn_progname in nm; do
7891 if test -n "$ncn_target_tool_prefix"; then
7892 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7893 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7894 echo "$as_me:$LINENO: checking for $ac_word" >&5
7895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7896 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 if test -n "$NM_FOR_TARGET"; then
7900 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7909 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
7919 if test -n "$NM_FOR_TARGET"; then
7920 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
7921 echo "${ECHO_T}$NM_FOR_TARGET" >&6
7923 echo "$as_me:$LINENO: result: no" >&5
7924 echo "${ECHO_T}no" >&6
7928 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
7929 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7930 set dummy ${ncn_progname}; ac_word=$2
7931 echo "$as_me:$LINENO: checking for $ac_word" >&5
7932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7933 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
7934 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 if test -n "$NM_FOR_TARGET"; then
7937 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943 test -z "$as_dir" && as_dir=.
7944 for ac_exec_ext in '' $ac_executable_extensions; do
7945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7946 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
7947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7955 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
7956 if test -n "$NM_FOR_TARGET"; then
7957 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
7958 echo "${ECHO_T}$NM_FOR_TARGET" >&6
7960 echo "$as_me:$LINENO: result: no" >&5
7961 echo "${ECHO_T}no" >&6
7965 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
7969 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
7971 if test $build = $target ; then
7974 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
7979 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
7985 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
7986 if test -n "$with_build_time_tools"; then
7987 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
7988 echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
7989 if test -x $with_build_time_tools/objdump; then
7990 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
7991 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
7992 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
7993 echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
7995 echo "$as_me:$LINENO: result: no" >&5
7996 echo "${ECHO_T}no" >&6
7998 elif test $build != $host && test $have_gcc_for_target = yes; then
7999 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
8000 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
8001 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
8004 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8005 # Extract the first word of "objdump", so it can be a program name with args.
8006 set dummy objdump; ac_word=$2
8007 echo "$as_me:$LINENO: checking for $ac_word" >&5
8008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8009 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8012 case $OBJDUMP_FOR_TARGET in
8014 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 for as_dir in $gcc_cv_tool_dirs
8021 test -z "$as_dir" && as_dir=.
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8024 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8034 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8036 if test -n "$OBJDUMP_FOR_TARGET"; then
8037 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8038 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8040 echo "$as_me:$LINENO: result: no" >&5
8041 echo "${ECHO_T}no" >&6
8045 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8046 if test -n "$with_build_time_tools"; then
8047 for ncn_progname in objdump; do
8048 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8049 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8050 if test -x $with_build_time_tools/${ncn_progname}; then
8051 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8052 echo "$as_me:$LINENO: result: yes" >&5
8053 echo "${ECHO_T}yes" >&6
8056 echo "$as_me:$LINENO: result: no" >&5
8057 echo "${ECHO_T}no" >&6
8062 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
8063 for ncn_progname in objdump; do
8064 if test -n "$ncn_target_tool_prefix"; then
8065 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8066 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8067 echo "$as_me:$LINENO: checking for $ac_word" >&5
8068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8069 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 if test -n "$OBJDUMP_FOR_TARGET"; then
8073 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8091 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
8092 if test -n "$OBJDUMP_FOR_TARGET"; then
8093 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8094 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8096 echo "$as_me:$LINENO: result: no" >&5
8097 echo "${ECHO_T}no" >&6
8101 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
8102 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8103 set dummy ${ncn_progname}; ac_word=$2
8104 echo "$as_me:$LINENO: checking for $ac_word" >&5
8105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8106 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8109 if test -n "$OBJDUMP_FOR_TARGET"; then
8110 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 test -z "$as_dir" && as_dir=.
8117 for ac_exec_ext in '' $ac_executable_extensions; do
8118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8119 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
8120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8128 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
8129 if test -n "$OBJDUMP_FOR_TARGET"; then
8130 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8131 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8133 echo "$as_me:$LINENO: result: no" >&5
8134 echo "${ECHO_T}no" >&6
8138 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
8142 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
8144 if test $build = $target ; then
8145 OBJDUMP_FOR_TARGET="$2"
8147 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8152 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8158 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8159 if test -n "$with_build_time_tools"; then
8160 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
8161 echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
8162 if test -x $with_build_time_tools/ranlib; then
8163 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
8164 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8165 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
8166 echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
8168 echo "$as_me:$LINENO: result: no" >&5
8169 echo "${ECHO_T}no" >&6
8171 elif test $build != $host && test $have_gcc_for_target = yes; then
8172 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
8173 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
8174 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8177 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8178 # Extract the first word of "ranlib", so it can be a program name with args.
8179 set dummy ranlib; ac_word=$2
8180 echo "$as_me:$LINENO: checking for $ac_word" >&5
8181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8182 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8185 case $RANLIB_FOR_TARGET in
8187 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
8190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191 for as_dir in $gcc_cv_tool_dirs
8194 test -z "$as_dir" && as_dir=.
8195 for ac_exec_ext in '' $ac_executable_extensions; do
8196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8197 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8207 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8209 if test -n "$RANLIB_FOR_TARGET"; then
8210 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8211 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8213 echo "$as_me:$LINENO: result: no" >&5
8214 echo "${ECHO_T}no" >&6
8218 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8219 if test -n "$with_build_time_tools"; then
8220 for ncn_progname in ranlib; do
8221 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8222 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8223 if test -x $with_build_time_tools/${ncn_progname}; then
8224 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8225 echo "$as_me:$LINENO: result: yes" >&5
8226 echo "${ECHO_T}yes" >&6
8229 echo "$as_me:$LINENO: result: no" >&5
8230 echo "${ECHO_T}no" >&6
8235 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
8236 for ncn_progname in ranlib; do
8237 if test -n "$ncn_target_tool_prefix"; then
8238 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8239 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8240 echo "$as_me:$LINENO: checking for $ac_word" >&5
8241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8242 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 if test -n "$RANLIB_FOR_TARGET"; then
8246 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
8248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252 test -z "$as_dir" && as_dir=.
8253 for ac_exec_ext in '' $ac_executable_extensions; do
8254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8255 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
8265 if test -n "$RANLIB_FOR_TARGET"; then
8266 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8267 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8269 echo "$as_me:$LINENO: result: no" >&5
8270 echo "${ECHO_T}no" >&6
8274 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
8275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8276 set dummy ${ncn_progname}; ac_word=$2
8277 echo "$as_me:$LINENO: checking for $ac_word" >&5
8278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8279 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 if test -n "$RANLIB_FOR_TARGET"; then
8283 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
8285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8289 test -z "$as_dir" && as_dir=.
8290 for ac_exec_ext in '' $ac_executable_extensions; do
8291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8292 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
8293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8301 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
8302 if test -n "$RANLIB_FOR_TARGET"; then
8303 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8304 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8306 echo "$as_me:$LINENO: result: no" >&5
8307 echo "${ECHO_T}no" >&6
8311 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
8315 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
8317 if test $build = $target ; then
8318 RANLIB_FOR_TARGET="$2"
8320 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
8325 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8331 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8332 if test -n "$with_build_time_tools"; then
8333 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
8334 echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
8335 if test -x $with_build_time_tools/strip; then
8336 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
8337 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8338 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
8339 echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
8341 echo "$as_me:$LINENO: result: no" >&5
8342 echo "${ECHO_T}no" >&6
8344 elif test $build != $host && test $have_gcc_for_target = yes; then
8345 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
8346 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
8347 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8350 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8351 # Extract the first word of "strip", so it can be a program name with args.
8352 set dummy strip; ac_word=$2
8353 echo "$as_me:$LINENO: checking for $ac_word" >&5
8354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8355 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 case $STRIP_FOR_TARGET in
8360 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 for as_dir in $gcc_cv_tool_dirs
8367 test -z "$as_dir" && as_dir=.
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8370 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
8382 if test -n "$STRIP_FOR_TARGET"; then
8383 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8384 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
8386 echo "$as_me:$LINENO: result: no" >&5
8387 echo "${ECHO_T}no" >&6
8391 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8392 if test -n "$with_build_time_tools"; then
8393 for ncn_progname in strip; do
8394 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8395 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8396 if test -x $with_build_time_tools/${ncn_progname}; then
8397 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8398 echo "$as_me:$LINENO: result: yes" >&5
8399 echo "${ECHO_T}yes" >&6
8402 echo "$as_me:$LINENO: result: no" >&5
8403 echo "${ECHO_T}no" >&6
8408 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
8409 for ncn_progname in strip; do
8410 if test -n "$ncn_target_tool_prefix"; then
8411 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8412 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8413 echo "$as_me:$LINENO: checking for $ac_word" >&5
8414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8415 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
8418 if test -n "$STRIP_FOR_TARGET"; then
8419 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
8421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8425 test -z "$as_dir" && as_dir=.
8426 for ac_exec_ext in '' $ac_executable_extensions; do
8427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8428 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8437 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
8438 if test -n "$STRIP_FOR_TARGET"; then
8439 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8440 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
8442 echo "$as_me:$LINENO: result: no" >&5
8443 echo "${ECHO_T}no" >&6
8447 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
8448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8449 set dummy ${ncn_progname}; ac_word=$2
8450 echo "$as_me:$LINENO: checking for $ac_word" >&5
8451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8452 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
8455 if test -n "$STRIP_FOR_TARGET"; then
8456 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
8458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462 test -z "$as_dir" && as_dir=.
8463 for ac_exec_ext in '' $ac_executable_extensions; do
8464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8465 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
8466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8474 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
8475 if test -n "$STRIP_FOR_TARGET"; then
8476 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8477 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
8479 echo "$as_me:$LINENO: result: no" >&5
8480 echo "${ECHO_T}no" >&6
8484 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
8488 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
8490 if test $build = $target ; then
8491 STRIP_FOR_TARGET="$2"
8493 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8498 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
8504 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
8505 if test -n "$with_build_time_tools"; then
8506 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
8507 echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
8508 if test -x $with_build_time_tools/windres; then
8509 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
8510 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
8511 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
8512 echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
8514 echo "$as_me:$LINENO: result: no" >&5
8515 echo "${ECHO_T}no" >&6
8517 elif test $build != $host && test $have_gcc_for_target = yes; then
8518 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
8519 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
8520 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
8523 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
8524 # Extract the first word of "windres", so it can be a program name with args.
8525 set dummy windres; ac_word=$2
8526 echo "$as_me:$LINENO: checking for $ac_word" >&5
8527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8528 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8531 case $WINDRES_FOR_TARGET in
8533 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
8536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 for as_dir in $gcc_cv_tool_dirs
8540 test -z "$as_dir" && as_dir=.
8541 for ac_exec_ext in '' $ac_executable_extensions; do
8542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8543 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8553 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
8555 if test -n "$WINDRES_FOR_TARGET"; then
8556 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8557 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
8559 echo "$as_me:$LINENO: result: no" >&5
8560 echo "${ECHO_T}no" >&6
8564 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
8565 if test -n "$with_build_time_tools"; then
8566 for ncn_progname in windres; do
8567 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8568 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8569 if test -x $with_build_time_tools/${ncn_progname}; then
8570 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8571 echo "$as_me:$LINENO: result: yes" >&5
8572 echo "${ECHO_T}yes" >&6
8575 echo "$as_me:$LINENO: result: no" >&5
8576 echo "${ECHO_T}no" >&6
8581 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
8582 for ncn_progname in windres; do
8583 if test -n "$ncn_target_tool_prefix"; then
8584 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8585 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8586 echo "$as_me:$LINENO: checking for $ac_word" >&5
8587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8588 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8591 if test -n "$WINDRES_FOR_TARGET"; then
8592 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
8594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8598 test -z "$as_dir" && as_dir=.
8599 for ac_exec_ext in '' $ac_executable_extensions; do
8600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8601 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8610 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
8611 if test -n "$WINDRES_FOR_TARGET"; then
8612 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8613 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
8615 echo "$as_me:$LINENO: result: no" >&5
8616 echo "${ECHO_T}no" >&6
8620 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
8621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8622 set dummy ${ncn_progname}; ac_word=$2
8623 echo "$as_me:$LINENO: checking for $ac_word" >&5
8624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8625 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
8628 if test -n "$WINDRES_FOR_TARGET"; then
8629 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
8631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8635 test -z "$as_dir" && as_dir=.
8636 for ac_exec_ext in '' $ac_executable_extensions; do
8637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8638 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
8639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8647 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
8648 if test -n "$WINDRES_FOR_TARGET"; then
8649 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8650 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
8652 echo "$as_me:$LINENO: result: no" >&5
8653 echo "${ECHO_T}no" >&6
8657 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
8661 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
8663 if test $build = $target ; then
8664 WINDRES_FOR_TARGET="$2"
8666 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
8671 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
8675 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
8677 echo "$as_me:$LINENO: checking where to find the target ar" >&5
8678 echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
8679 if test "x${build}" != "x${host}" ; then
8680 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
8681 # We already found the complete path
8682 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
8683 echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
8685 # Canadian cross, just use what we found
8686 echo "$as_me:$LINENO: result: pre-installed" >&5
8687 echo "${ECHO_T}pre-installed" >&6
8691 case " ${configdirs} " in
8696 if test $ok = yes; then
8697 # An in-tree tool is available and we can use it
8698 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
8699 echo "$as_me:$LINENO: result: just compiled" >&5
8700 echo "${ECHO_T}just compiled" >&6
8701 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
8702 # We already found the complete path
8703 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
8704 echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
8705 elif test "x$target" = "x$host"; then
8706 # We can use an host tool
8707 AR_FOR_TARGET='$(AR)'
8708 echo "$as_me:$LINENO: result: host tool" >&5
8709 echo "${ECHO_T}host tool" >&6
8711 # We need a cross tool
8712 echo "$as_me:$LINENO: result: pre-installed" >&5
8713 echo "${ECHO_T}pre-installed" >&6
8717 echo "$as_me:$LINENO: checking where to find the target as" >&5
8718 echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
8719 if test "x${build}" != "x${host}" ; then
8720 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
8721 # We already found the complete path
8722 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
8723 echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
8725 # Canadian cross, just use what we found
8726 echo "$as_me:$LINENO: result: pre-installed" >&5
8727 echo "${ECHO_T}pre-installed" >&6
8731 case " ${configdirs} " in
8736 if test $ok = yes; then
8737 # An in-tree tool is available and we can use it
8738 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
8739 echo "$as_me:$LINENO: result: just compiled" >&5
8740 echo "${ECHO_T}just compiled" >&6
8741 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
8742 # We already found the complete path
8743 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
8744 echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
8745 elif test "x$target" = "x$host"; then
8746 # We can use an host tool
8747 AS_FOR_TARGET='$(AS)'
8748 echo "$as_me:$LINENO: result: host tool" >&5
8749 echo "${ECHO_T}host tool" >&6
8751 # We need a cross tool
8752 echo "$as_me:$LINENO: result: pre-installed" >&5
8753 echo "${ECHO_T}pre-installed" >&6
8757 echo "$as_me:$LINENO: checking where to find the target cc" >&5
8758 echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
8759 if test "x${build}" != "x${host}" ; then
8760 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
8761 # We already found the complete path
8762 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
8763 echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
8765 # Canadian cross, just use what we found
8766 echo "$as_me:$LINENO: result: pre-installed" >&5
8767 echo "${ECHO_T}pre-installed" >&6
8771 case " ${configdirs} " in
8776 if test $ok = yes; then
8777 # An in-tree tool is available and we can use it
8778 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
8779 echo "$as_me:$LINENO: result: just compiled" >&5
8780 echo "${ECHO_T}just compiled" >&6
8781 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
8782 # We already found the complete path
8783 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
8784 echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
8785 elif test "x$target" = "x$host"; then
8786 # We can use an host tool
8787 CC_FOR_TARGET='$(CC)'
8788 echo "$as_me:$LINENO: result: host tool" >&5
8789 echo "${ECHO_T}host tool" >&6
8791 # We need a cross tool
8792 echo "$as_me:$LINENO: result: pre-installed" >&5
8793 echo "${ECHO_T}pre-installed" >&6
8797 echo "$as_me:$LINENO: checking where to find the target c++" >&5
8798 echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
8799 if test "x${build}" != "x${host}" ; then
8800 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
8801 # We already found the complete path
8802 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
8803 echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
8805 # Canadian cross, just use what we found
8806 echo "$as_me:$LINENO: result: pre-installed" >&5
8807 echo "${ECHO_T}pre-installed" >&6
8811 case " ${configdirs} " in
8815 case ,${enable_languages}, in
8819 if test $ok = yes; then
8820 # An in-tree tool is available and we can use it
8821 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'
8822 echo "$as_me:$LINENO: result: just compiled" >&5
8823 echo "${ECHO_T}just compiled" >&6
8824 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
8825 # We already found the complete path
8826 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
8827 echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
8828 elif test "x$target" = "x$host"; then
8829 # We can use an host tool
8830 CXX_FOR_TARGET='$(CXX)'
8831 echo "$as_me:$LINENO: result: host tool" >&5
8832 echo "${ECHO_T}host tool" >&6
8834 # We need a cross tool
8835 echo "$as_me:$LINENO: result: pre-installed" >&5
8836 echo "${ECHO_T}pre-installed" >&6
8840 echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
8841 echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
8842 if test "x${build}" != "x${host}" ; then
8843 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
8844 # We already found the complete path
8845 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
8846 echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
8848 # Canadian cross, just use what we found
8849 echo "$as_me:$LINENO: result: pre-installed" >&5
8850 echo "${ECHO_T}pre-installed" >&6
8854 case " ${configdirs} " in
8858 case ,${enable_languages}, in
8862 if test $ok = yes; then
8863 # An in-tree tool is available and we can use it
8864 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'
8865 echo "$as_me:$LINENO: result: just compiled" >&5
8866 echo "${ECHO_T}just compiled" >&6
8867 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
8868 # We already found the complete path
8869 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
8870 echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
8871 elif test "x$target" = "x$host"; then
8872 # We can use an host tool
8873 RAW_CXX_FOR_TARGET='$(CXX)'
8874 echo "$as_me:$LINENO: result: host tool" >&5
8875 echo "${ECHO_T}host tool" >&6
8877 # We need a cross tool
8878 echo "$as_me:$LINENO: result: pre-installed" >&5
8879 echo "${ECHO_T}pre-installed" >&6
8883 echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
8884 echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
8885 if test "x${build}" != "x${host}" ; then
8886 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
8887 # We already found the complete path
8888 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
8889 echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
8891 # Canadian cross, just use what we found
8892 echo "$as_me:$LINENO: result: pre-installed" >&5
8893 echo "${ECHO_T}pre-installed" >&6
8897 case " ${configdirs} " in
8902 if test $ok = yes; then
8903 # An in-tree tool is available and we can use it
8904 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
8905 echo "$as_me:$LINENO: result: just compiled" >&5
8906 echo "${ECHO_T}just compiled" >&6
8907 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
8908 # We already found the complete path
8909 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
8910 echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
8911 elif test "x$target" = "x$host"; then
8912 # We can use an host tool
8913 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
8914 echo "$as_me:$LINENO: result: host tool" >&5
8915 echo "${ECHO_T}host tool" >&6
8917 # We need a cross tool
8918 echo "$as_me:$LINENO: result: pre-installed" >&5
8919 echo "${ECHO_T}pre-installed" >&6
8923 echo "$as_me:$LINENO: checking where to find the target gcc" >&5
8924 echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
8925 if test "x${build}" != "x${host}" ; then
8926 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
8927 # We already found the complete path
8928 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
8929 echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
8931 # Canadian cross, just use what we found
8932 echo "$as_me:$LINENO: result: pre-installed" >&5
8933 echo "${ECHO_T}pre-installed" >&6
8937 case " ${configdirs} " in
8942 if test $ok = yes; then
8943 # An in-tree tool is available and we can use it
8944 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
8945 echo "$as_me:$LINENO: result: just compiled" >&5
8946 echo "${ECHO_T}just compiled" >&6
8947 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
8948 # We already found the complete path
8949 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
8950 echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
8951 elif test "x$target" = "x$host"; then
8952 # We can use an host tool
8953 GCC_FOR_TARGET='$()'
8954 echo "$as_me:$LINENO: result: host tool" >&5
8955 echo "${ECHO_T}host tool" >&6
8957 # We need a cross tool
8958 echo "$as_me:$LINENO: result: pre-installed" >&5
8959 echo "${ECHO_T}pre-installed" >&6
8963 echo "$as_me:$LINENO: checking where to find the target gcj" >&5
8964 echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
8965 if test "x${build}" != "x${host}" ; then
8966 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
8967 # We already found the complete path
8968 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
8969 echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
8971 # Canadian cross, just use what we found
8972 echo "$as_me:$LINENO: result: pre-installed" >&5
8973 echo "${ECHO_T}pre-installed" >&6
8977 case " ${configdirs} " in
8981 case ,${enable_languages}, in
8985 if test $ok = yes; then
8986 # An in-tree tool is available and we can use it
8987 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
8988 echo "$as_me:$LINENO: result: just compiled" >&5
8989 echo "${ECHO_T}just compiled" >&6
8990 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
8991 # We already found the complete path
8992 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
8993 echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
8994 elif test "x$target" = "x$host"; then
8995 # We can use an host tool
8996 GCJ_FOR_TARGET='$(GCJ)'
8997 echo "$as_me:$LINENO: result: host tool" >&5
8998 echo "${ECHO_T}host tool" >&6
9000 # We need a cross tool
9001 echo "$as_me:$LINENO: result: pre-installed" >&5
9002 echo "${ECHO_T}pre-installed" >&6
9006 echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
9007 echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
9008 if test "x${build}" != "x${host}" ; then
9009 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9010 # We already found the complete path
9011 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9012 echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
9014 # Canadian cross, just use what we found
9015 echo "$as_me:$LINENO: result: pre-installed" >&5
9016 echo "${ECHO_T}pre-installed" >&6
9020 case " ${configdirs} " in
9024 case ,${enable_languages}, in
9028 if test $ok = yes; then
9029 # An in-tree tool is available and we can use it
9030 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
9031 echo "$as_me:$LINENO: result: just compiled" >&5
9032 echo "${ECHO_T}just compiled" >&6
9033 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9034 # We already found the complete path
9035 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9036 echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
9037 elif test "x$target" = "x$host"; then
9038 # We can use an host tool
9039 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
9040 echo "$as_me:$LINENO: result: host tool" >&5
9041 echo "${ECHO_T}host tool" >&6
9043 # We need a cross tool
9044 echo "$as_me:$LINENO: result: pre-installed" >&5
9045 echo "${ECHO_T}pre-installed" >&6
9049 echo "$as_me:$LINENO: checking where to find the target ld" >&5
9050 echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
9051 if test "x${build}" != "x${host}" ; then
9052 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9053 # We already found the complete path
9054 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9055 echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
9057 # Canadian cross, just use what we found
9058 echo "$as_me:$LINENO: result: pre-installed" >&5
9059 echo "${ECHO_T}pre-installed" >&6
9063 case " ${configdirs} " in
9068 if test $ok = yes; then
9069 # An in-tree tool is available and we can use it
9070 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
9071 echo "$as_me:$LINENO: result: just compiled" >&5
9072 echo "${ECHO_T}just compiled" >&6
9073 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9074 # We already found the complete path
9075 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9076 echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
9077 elif test "x$target" = "x$host"; then
9078 # We can use an host tool
9079 LD_FOR_TARGET='$(LD)'
9080 echo "$as_me:$LINENO: result: host tool" >&5
9081 echo "${ECHO_T}host tool" >&6
9083 # We need a cross tool
9084 echo "$as_me:$LINENO: result: pre-installed" >&5
9085 echo "${ECHO_T}pre-installed" >&6
9089 echo "$as_me:$LINENO: checking where to find the target lipo" >&5
9090 echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
9091 if test "x${build}" != "x${host}" ; then
9092 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9093 # We already found the complete path
9094 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9095 echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
9097 # Canadian cross, just use what we found
9098 echo "$as_me:$LINENO: result: pre-installed" >&5
9099 echo "${ECHO_T}pre-installed" >&6
9102 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9103 # We already found the complete path
9104 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9105 echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
9106 elif test "x$target" = "x$host"; then
9107 # We can use an host tool
9108 LIPO_FOR_TARGET='$(LIPO)'
9109 echo "$as_me:$LINENO: result: host tool" >&5
9110 echo "${ECHO_T}host tool" >&6
9112 # We need a cross tool
9113 echo "$as_me:$LINENO: result: pre-installed" >&5
9114 echo "${ECHO_T}pre-installed" >&6
9118 echo "$as_me:$LINENO: checking where to find the target nm" >&5
9119 echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
9120 if test "x${build}" != "x${host}" ; then
9121 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9122 # We already found the complete path
9123 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9124 echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
9126 # Canadian cross, just use what we found
9127 echo "$as_me:$LINENO: result: pre-installed" >&5
9128 echo "${ECHO_T}pre-installed" >&6
9132 case " ${configdirs} " in
9137 if test $ok = yes; then
9138 # An in-tree tool is available and we can use it
9139 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
9140 echo "$as_me:$LINENO: result: just compiled" >&5
9141 echo "${ECHO_T}just compiled" >&6
9142 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9143 # We already found the complete path
9144 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9145 echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
9146 elif test "x$target" = "x$host"; then
9147 # We can use an host tool
9148 NM_FOR_TARGET='$(NM)'
9149 echo "$as_me:$LINENO: result: host tool" >&5
9150 echo "${ECHO_T}host tool" >&6
9152 # We need a cross tool
9153 echo "$as_me:$LINENO: result: pre-installed" >&5
9154 echo "${ECHO_T}pre-installed" >&6
9158 echo "$as_me:$LINENO: checking where to find the target objdump" >&5
9159 echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
9160 if test "x${build}" != "x${host}" ; then
9161 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9162 # We already found the complete path
9163 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9164 echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
9166 # Canadian cross, just use what we found
9167 echo "$as_me:$LINENO: result: pre-installed" >&5
9168 echo "${ECHO_T}pre-installed" >&6
9172 case " ${configdirs} " in
9177 if test $ok = yes; then
9178 # An in-tree tool is available and we can use it
9179 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
9180 echo "$as_me:$LINENO: result: just compiled" >&5
9181 echo "${ECHO_T}just compiled" >&6
9182 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9183 # We already found the complete path
9184 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9185 echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
9186 elif test "x$target" = "x$host"; then
9187 # We can use an host tool
9188 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
9189 echo "$as_me:$LINENO: result: host tool" >&5
9190 echo "${ECHO_T}host tool" >&6
9192 # We need a cross tool
9193 echo "$as_me:$LINENO: result: pre-installed" >&5
9194 echo "${ECHO_T}pre-installed" >&6
9198 echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
9199 echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
9200 if test "x${build}" != "x${host}" ; then
9201 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9202 # We already found the complete path
9203 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9204 echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
9206 # Canadian cross, just use what we found
9207 echo "$as_me:$LINENO: result: pre-installed" >&5
9208 echo "${ECHO_T}pre-installed" >&6
9212 case " ${configdirs} " in
9217 if test $ok = yes; then
9218 # An in-tree tool is available and we can use it
9219 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
9220 echo "$as_me:$LINENO: result: just compiled" >&5
9221 echo "${ECHO_T}just compiled" >&6
9222 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9223 # We already found the complete path
9224 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9225 echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
9226 elif test "x$target" = "x$host"; then
9227 # We can use an host tool
9228 RANLIB_FOR_TARGET='$(RANLIB)'
9229 echo "$as_me:$LINENO: result: host tool" >&5
9230 echo "${ECHO_T}host tool" >&6
9232 # We need a cross tool
9233 echo "$as_me:$LINENO: result: pre-installed" >&5
9234 echo "${ECHO_T}pre-installed" >&6
9238 echo "$as_me:$LINENO: checking where to find the target strip" >&5
9239 echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
9240 if test "x${build}" != "x${host}" ; then
9241 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9242 # We already found the complete path
9243 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9244 echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
9246 # Canadian cross, just use what we found
9247 echo "$as_me:$LINENO: result: pre-installed" >&5
9248 echo "${ECHO_T}pre-installed" >&6
9252 case " ${configdirs} " in
9257 if test $ok = yes; then
9258 # An in-tree tool is available and we can use it
9259 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
9260 echo "$as_me:$LINENO: result: just compiled" >&5
9261 echo "${ECHO_T}just compiled" >&6
9262 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9263 # We already found the complete path
9264 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9265 echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
9266 elif test "x$target" = "x$host"; then
9267 # We can use an host tool
9268 STRIP_FOR_TARGET='$(STRIP)'
9269 echo "$as_me:$LINENO: result: host tool" >&5
9270 echo "${ECHO_T}host tool" >&6
9272 # We need a cross tool
9273 echo "$as_me:$LINENO: result: pre-installed" >&5
9274 echo "${ECHO_T}pre-installed" >&6
9278 echo "$as_me:$LINENO: checking where to find the target windres" >&5
9279 echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
9280 if test "x${build}" != "x${host}" ; then
9281 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9282 # We already found the complete path
9283 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9284 echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
9286 # Canadian cross, just use what we found
9287 echo "$as_me:$LINENO: result: pre-installed" >&5
9288 echo "${ECHO_T}pre-installed" >&6
9292 case " ${configdirs} " in
9297 if test $ok = yes; then
9298 # An in-tree tool is available and we can use it
9299 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
9300 echo "$as_me:$LINENO: result: just compiled" >&5
9301 echo "${ECHO_T}just compiled" >&6
9302 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9303 # We already found the complete path
9304 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9305 echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
9306 elif test "x$target" = "x$host"; then
9307 # We can use an host tool
9308 WINDRES_FOR_TARGET='$(WINDRES)'
9309 echo "$as_me:$LINENO: result: host tool" >&5
9310 echo "${ECHO_T}host tool" >&6
9312 # We need a cross tool
9313 echo "$as_me:$LINENO: result: pre-installed" >&5
9314 echo "${ECHO_T}pre-installed" >&6
9322 # Certain tools may need extra flags.
9323 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
9324 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
9325 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
9327 # When building target libraries, except in a Canadian cross, we use
9328 # the same toolchain as the compiler we just built.
9329 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
9330 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
9331 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
9332 if test $host = $build; then
9333 case " $configdirs " in
9335 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
9336 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
9337 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
9346 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9347 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9348 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9349 if test "${enable_maintainer_mode+set}" = set; then
9350 enableval="$enable_maintainer_mode"
9351 USE_MAINTAINER_MODE=$enableval
9353 USE_MAINTAINER_MODE=no
9355 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9356 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9359 if test "$USE_MAINTAINER_MODE" = yes; then
9360 MAINTAINER_MODE_TRUE=
9361 MAINTAINER_MODE_FALSE='#'
9363 MAINTAINER_MODE_TRUE='#'
9364 MAINTAINER_MODE_FALSE=
9366 MAINT=$MAINTAINER_MODE_TRUE
9368 # ---------------------
9369 # GCC bootstrap support
9370 # ---------------------
9372 # Stage specific cflags for build.
9377 yes) stage1_cflags="-g -Wa,-J" ;;
9378 *) stage1_cflags="-g -J" ;;
9382 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
9383 if test "$GCC" = yes; then
9384 saved_CFLAGS="$CFLAGS"
9386 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
9387 CFLAGS="$CFLAGS -fkeep-inline-functions"
9388 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
9389 echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
9390 cat >conftest.$ac_ext <<_ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9405 rm -f conftest.$ac_objext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9407 (eval $ac_compile) 2>conftest.er1
9409 grep -v '^ *+' conftest.er1 >conftest.err
9411 cat conftest.err >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); } &&
9414 { ac_try='test -z "$ac_c_werror_flag"
9415 || test ! -s conftest.err'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; } &&
9421 { ac_try='test -s conftest.$ac_objext'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 echo "$as_me:$LINENO: result: yes" >&5
9428 echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
9430 echo "$as_me: failed program was:" >&5
9431 sed 's/^/| /' conftest.$ac_ext >&5
9433 echo "$as_me:$LINENO: result: no" >&5
9434 echo "${ECHO_T}no" >&6
9436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9438 CFLAGS="$saved_CFLAGS"
9443 # Enable --enable-checking in stage1 of the compiler.
9444 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
9445 if test "${enable_stage1_checking+set}" = set; then
9446 enableval="$enable_stage1_checking"
9447 stage1_checking=--enable-checking=${enable_stage1_checking}
9449 if test "x$enable_checking" = xno; then
9450 stage1_checking=--enable-checking
9452 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
9457 # Enable -Werror in bootstrap stage2 and later.
9458 # Change the default to "no" on release branches.
9459 # Check whether --enable-werror or --disable-werror was given.
9460 if test "${enable_werror+set}" = set; then
9461 enableval="$enable_werror"
9466 case ${enable_werror} in
9467 yes) stage2_werror_flag="--enable-werror-always" ;;
9468 *) stage2_werror_flag="" ;;
9472 # Flags needed to enable html installing and building
9474 # Check whether --with-datarootdir or --without-datarootdir was given.
9475 if test "${with_datarootdir+set}" = set; then
9476 withval="$with_datarootdir"
9477 datarootdir="\${prefix}/${withval}"
9479 datarootdir="\${prefix}/share"
9483 # Check whether --with-docdir or --without-docdir was given.
9484 if test "${with_docdir+set}" = set; then
9485 withval="$with_docdir"
9486 docdir="\${prefix}/${withval}"
9488 docdir="\${datarootdir}/doc"
9492 # Check whether --with-htmldir or --without-htmldir was given.
9493 if test "${with_htmldir+set}" = set; then
9494 withval="$with_htmldir"
9495 htmldir="\${prefix}/${withval}"
9497 htmldir="\${docdir}"
9504 ac_config_files="$ac_config_files Makefile"
9505 cat >confcache <<\_ACEOF
9506 # This file is a shell script that caches the results of configure
9507 # tests run on this system so they can be shared between configure
9508 # scripts and configure runs, see configure's option --config-cache.
9509 # It is not useful on other systems. If it contains results you don't
9510 # want to keep, you may remove or edit it.
9512 # config.status only pays attention to the cache file if you give it
9513 # the --recheck option to rerun configure.
9515 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9516 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9521 # The following way of writing the cache mishandles newlines in values,
9522 # but we know of no workaround that is simple, portable, and efficient.
9523 # So, don't put newlines in cache variables' values.
9524 # Ultrix sh set writes to stderr and can't be redirected directly,
9525 # and sets the high bit in the cache file unless we assign to the vars.
9528 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9530 # `set' does not quote correctly, so add quotes (double-quote
9531 # substitution turns \\\\ into \\, and sed turns \\ into \).
9534 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9537 # `set' quotes correctly as required by POSIX, so do not add quotes.
9539 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9546 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9548 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9550 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9551 if test -w $cache_file; then
9552 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9553 cat confcache >$cache_file
9555 echo "not updating unwritable cache $cache_file"
9560 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9561 # Let make expand exec_prefix.
9562 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9564 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9565 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9566 # trailing colons and then remove the whole line if VPATH becomes empty
9567 # (actually we leave an empty line to preserve line numbers).
9568 if test "x$srcdir" = x.; then
9569 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9570 s/:*\$(srcdir):*/:/;
9571 s/:*\${srcdir}:*/:/;
9573 s/^\([^=]*=[ ]*\):*/\1/;
9579 # Transform confdefs.h into DEFS.
9580 # Protect against shell expansion while executing Makefile rules.
9581 # Protect against Makefile macro expansion.
9583 # If the first sed substitution is executed (which looks for macros that
9584 # take arguments), then we branch to the quote section. Otherwise,
9585 # look for a macro that doesn't take arguments.
9586 cat >confdef2opt.sed <<\_ACEOF
9589 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
9591 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
9595 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
9601 # We use echo to avoid assuming a particular line-breaking character.
9602 # The extra dot is to prevent the shell from consuming trailing
9603 # line-breaks from the sub-command output. A line-break within
9604 # single-quotes doesn't work because, if this script is created in a
9605 # platform that uses two characters for line-breaks (e.g., DOS), tr
9607 ac_LF_and_DOT=`echo; echo .`
9608 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
9609 rm -f confdef2opt.sed
9614 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9615 # 1. Remove the extension, and $U if already installed.
9616 ac_i=`echo "$ac_i" |
9617 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9619 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9620 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9624 LTLIBOBJS=$ac_ltlibobjs
9628 : ${CONFIG_STATUS=./config.status}
9629 ac_clean_files_save=$ac_clean_files
9630 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9631 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9632 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9633 cat >$CONFIG_STATUS <<_ACEOF
9635 # Generated by $as_me.
9636 # Run this file to recreate the current configuration.
9637 # Compiler output produced by configure, useful for debugging
9638 # configure, is in config.log if it exists.
9643 SHELL=\${CONFIG_SHELL-$SHELL}
9646 cat >>$CONFIG_STATUS <<\_ACEOF
9647 ## --------------------- ##
9648 ## M4sh Initialization. ##
9649 ## --------------------- ##
9651 # Be Bourne compatible
9652 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9655 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9656 # is contrary to our usage. Disable this feature.
9657 alias -g '${1+"$@"}'='"$@"'
9658 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9661 DUALCASE=1; export DUALCASE # for MKS sh
9663 # Support unset when possible.
9664 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9671 # Work around bugs in pre-3.0 UWIN ksh.
9672 $as_unset ENV MAIL MAILPATH
9679 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9680 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9681 LC_TELEPHONE LC_TIME
9683 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9684 eval $as_var=C; export $as_var
9690 # Required to use basename.
9691 if expr a : '\(a\)' >/dev/null 2>&1; then
9697 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9698 as_basename=basename
9704 # Name of the executable.
9705 as_me=`$as_basename "$0" ||
9706 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9707 X"$0" : 'X\(//\)$' \| \
9708 X"$0" : 'X\(/\)$' \| \
9709 . : '\(.\)' 2>/dev/null ||
9711 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9712 /^X\/\(\/\/\)$/{ s//\1/; q; }
9713 /^X\/\(\/\).*/{ s//\1/; q; }
9717 # PATH needs CR, and LINENO needs CR and PATH.
9718 # Avoid depending upon Character Ranges.
9719 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9720 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9721 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9722 as_cr_digits='0123456789'
9723 as_cr_alnum=$as_cr_Letters$as_cr_digits
9725 # The user is always right.
9726 if test "${PATH_SEPARATOR+set}" != set; then
9727 echo "#! /bin/sh" >conf$$.sh
9728 echo "exit 0" >>conf$$.sh
9730 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9741 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9742 test "x$as_lineno_1" != "x$as_lineno_2" &&
9743 test "x$as_lineno_3" = "x$as_lineno_2" || {
9744 # Find who we are. Look in the path if we contain no path at all
9747 *[\\/]* ) as_myself=$0 ;;
9748 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9752 test -z "$as_dir" && as_dir=.
9753 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9758 # We did not find ourselves, most probably we were run as `sh COMMAND'
9759 # in which case we are not to be found in the path.
9760 if test "x$as_myself" = x; then
9763 if test ! -f "$as_myself"; then
9764 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9765 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9766 { (exit 1); exit 1; }; }
9768 case $CONFIG_SHELL in
9770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9771 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9774 test -z "$as_dir" && as_dir=.
9775 for as_base in sh bash ksh sh5; do
9778 if ("$as_dir/$as_base" -c '
9781 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9782 test "x$as_lineno_1" != "x$as_lineno_2" &&
9783 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9784 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9785 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9786 CONFIG_SHELL=$as_dir/$as_base
9788 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9796 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9797 # uniformly replaced by the line number. The first 'sed' inserts a
9798 # line-number line before each line; the second 'sed' does the real
9799 # work. The second script uses 'N' to pair each line-number line
9800 # with the numbered line, and appends trailing '-' during
9801 # substitution so that $LINENO is not a special case at line end.
9802 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9803 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9804 sed '=' <$as_myself |
9809 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9812 s,^['$as_cr_digits']*\n,,
9814 chmod +x $as_me.lineno ||
9815 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9816 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9817 { (exit 1); exit 1; }; }
9819 # Don't try to exec as it changes $[0], causing all sort of problems
9820 # (the dirname of $[0] is not the place where we might find the
9821 # original and so on. Autoconf is especially sensible to this).
9823 # Exit status is that of the last command.
9828 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9829 *c*,-n*) ECHO_N= ECHO_C='
9831 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9832 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9835 if expr a : '\(a\)' >/dev/null 2>&1; then
9841 rm -f conf$$ conf$$.exe conf$$.file
9843 if ln -s conf$$.file conf$$ 2>/dev/null; then
9844 # We could just check for DJGPP; but this test a) works b) is more generic
9845 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9846 if test -f conf$$.exe; then
9847 # Don't use ln at all; we don't have any links
9852 elif ln conf$$.file conf$$ 2>/dev/null; then
9857 rm -f conf$$ conf$$.exe conf$$.file
9859 if mkdir -p . 2>/dev/null; then
9862 test -d ./-p && rmdir ./-p
9866 as_executable_p="test -f"
9868 # Sed expression to map a string onto a valid CPP name.
9869 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9871 # Sed expression to map a string onto a valid variable name.
9872 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9876 # We need space, tab and new line, in precisely that order.
9886 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9887 # report actual input values of CONFIG_FILES etc. instead of their
9888 # values after options handling. Logging --version etc. is OK.
9892 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9893 ## Running $as_me. ##
9898 This file was extended by $as_me, which was
9899 generated by GNU Autoconf 2.59. Invocation command line was
9901 CONFIG_FILES = $CONFIG_FILES
9902 CONFIG_HEADERS = $CONFIG_HEADERS
9903 CONFIG_LINKS = $CONFIG_LINKS
9904 CONFIG_COMMANDS = $CONFIG_COMMANDS
9908 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9912 # Files that config.status was made for.
9913 if test -n "$ac_config_files"; then
9914 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9917 if test -n "$ac_config_headers"; then
9918 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9921 if test -n "$ac_config_links"; then
9922 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9925 if test -n "$ac_config_commands"; then
9926 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9929 cat >>$CONFIG_STATUS <<\_ACEOF
9932 \`$as_me' instantiates files from templates according to the
9933 current configuration.
9935 Usage: $0 [OPTIONS] [FILE]...
9937 -h, --help print this help, then exit
9938 -V, --version print version number, then exit
9939 -q, --quiet do not print progress messages
9940 -d, --debug don't remove temporary files
9941 --recheck update $as_me by reconfiguring in the same conditions
9942 --file=FILE[:TEMPLATE]
9943 instantiate the configuration file FILE
9945 Configuration files:
9948 Report bugs to <bug-autoconf@gnu.org>."
9951 cat >>$CONFIG_STATUS <<_ACEOF
9954 configured by $0, generated by GNU Autoconf 2.59,
9955 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9957 Copyright (C) 2003 Free Software Foundation, Inc.
9958 This config.status script is free software; the Free Software Foundation
9959 gives unlimited permission to copy, distribute and modify it."
9964 cat >>$CONFIG_STATUS <<\_ACEOF
9965 # If no file are specified by the user, then we need to provide default
9966 # value. By we need to know if files were specified by the user.
9972 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9973 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9981 *) # This is not an option, so the user has probably given explicit
9984 ac_need_defaults=false;;
9988 # Handling of the options.
9990 cat >>$CONFIG_STATUS <<\_ACEOF
9991 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9993 --version | --vers* | -V )
9994 echo "$ac_cs_version"; exit 0 ;;
9996 # Conflict between --help and --header
9997 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9998 Try \`$0 --help' for more information." >&5
9999 echo "$as_me: error: ambiguous option: $1
10000 Try \`$0 --help' for more information." >&2;}
10001 { (exit 1); exit 1; }; };;
10002 --help | --hel | -h )
10003 echo "$ac_cs_usage"; exit 0 ;;
10004 --debug | --d* | -d )
10006 --file | --fil | --fi | --f )
10008 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10009 ac_need_defaults=false;;
10010 --header | --heade | --head | --hea )
10012 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10013 ac_need_defaults=false;;
10014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10015 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10018 # This is an error.
10019 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10020 Try \`$0 --help' for more information." >&5
10021 echo "$as_me: error: unrecognized option: $1
10022 Try \`$0 --help' for more information." >&2;}
10023 { (exit 1); exit 1; }; } ;;
10025 *) ac_config_targets="$ac_config_targets $1" ;;
10031 ac_configure_extra_args=
10033 if $ac_cs_silent; then
10035 ac_configure_extra_args="$ac_configure_extra_args --silent"
10039 cat >>$CONFIG_STATUS <<_ACEOF
10040 if \$ac_cs_recheck; then
10041 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10042 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10051 cat >>$CONFIG_STATUS <<\_ACEOF
10052 for ac_config_target in $ac_config_targets
10054 case "$ac_config_target" in
10055 # Handling of arguments.
10056 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10057 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10058 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10059 { (exit 1); exit 1; }; };;
10063 # If the user did not use the arguments to specify the items to instantiate,
10064 # then the envvar interface is used. Set only those that are not.
10065 # We use the long form for the default assignment because of an extremely
10066 # bizarre bug on SunOS 4.1.3.
10067 if $ac_need_defaults; then
10068 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10071 # Have a temporary directory for convenience. Make it in the build tree
10072 # simply because there is no reason to put it here, and in addition,
10073 # creating and moving files from /tmp can sometimes cause problems.
10074 # Create a temporary directory, and hook for its removal unless debugging.
10077 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10078 trap '{ (exit 1); exit 1; }' 1 2 13 15
10081 # Create a (secure) tmp directory for tmp files.
10084 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10085 test -n "$tmp" && test -d "$tmp"
10088 tmp=./confstat$$-$RANDOM
10089 (umask 077 && mkdir $tmp)
10092 echo "$me: cannot create a temporary directory in ." >&2
10093 { (exit 1); exit 1; }
10098 cat >>$CONFIG_STATUS <<_ACEOF
10101 # CONFIG_FILES section.
10104 # No need to generate the scripts if there are no CONFIG_FILES.
10105 # This happens for instance when ./config.status config.h
10106 if test -n "\$CONFIG_FILES"; then
10107 # Protect against being on the right side of a sed subst in config.status.
10108 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10109 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10110 s,@SHELL@,$SHELL,;t t
10111 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10112 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10113 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10114 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10115 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10116 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10117 s,@exec_prefix@,$exec_prefix,;t t
10118 s,@prefix@,$prefix,;t t
10119 s,@program_transform_name@,$program_transform_name,;t t
10120 s,@bindir@,$bindir,;t t
10121 s,@sbindir@,$sbindir,;t t
10122 s,@libexecdir@,$libexecdir,;t t
10123 s,@datadir@,$datadir,;t t
10124 s,@sysconfdir@,$sysconfdir,;t t
10125 s,@sharedstatedir@,$sharedstatedir,;t t
10126 s,@localstatedir@,$localstatedir,;t t
10127 s,@libdir@,$libdir,;t t
10128 s,@includedir@,$includedir,;t t
10129 s,@oldincludedir@,$oldincludedir,;t t
10130 s,@infodir@,$infodir,;t t
10131 s,@mandir@,$mandir,;t t
10132 s,@build_alias@,$build_alias,;t t
10133 s,@host_alias@,$host_alias,;t t
10134 s,@target_alias@,$target_alias,;t t
10135 s,@DEFS@,$DEFS,;t t
10136 s,@ECHO_C@,$ECHO_C,;t t
10137 s,@ECHO_N@,$ECHO_N,;t t
10138 s,@ECHO_T@,$ECHO_T,;t t
10139 s,@LIBS@,$LIBS,;t t
10140 s,@build@,$build,;t t
10141 s,@build_cpu@,$build_cpu,;t t
10142 s,@build_vendor@,$build_vendor,;t t
10143 s,@build_os@,$build_os,;t t
10144 s,@host@,$host,;t t
10145 s,@host_cpu@,$host_cpu,;t t
10146 s,@host_vendor@,$host_vendor,;t t
10147 s,@host_os@,$host_os,;t t
10148 s,@target@,$target,;t t
10149 s,@target_cpu@,$target_cpu,;t t
10150 s,@target_vendor@,$target_vendor,;t t
10151 s,@target_os@,$target_os,;t t
10152 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10153 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10154 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10156 s,@LN_S@,$LN_S,;t t
10157 s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
10158 s,@build_libsubdir@,$build_libsubdir,;t t
10159 s,@build_subdir@,$build_subdir,;t t
10160 s,@host_subdir@,$host_subdir,;t t
10161 s,@target_subdir@,$target_subdir,;t t
10163 s,@CFLAGS@,$CFLAGS,;t t
10164 s,@LDFLAGS@,$LDFLAGS,;t t
10165 s,@CPPFLAGS@,$CPPFLAGS,;t t
10166 s,@ac_ct_CC@,$ac_ct_CC,;t t
10167 s,@EXEEXT@,$EXEEXT,;t t
10168 s,@OBJEXT@,$OBJEXT,;t t
10169 s,@GNATBIND@,$GNATBIND,;t t
10170 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
10171 s,@do_compare@,$do_compare,;t t
10172 s,@gmplibs@,$gmplibs,;t t
10173 s,@gmpinc@,$gmpinc,;t t
10174 s,@stage1_languages@,$stage1_languages,;t t
10175 s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
10176 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
10177 s,@tooldir@,$tooldir,;t t
10178 s,@build_tooldir@,$build_tooldir,;t t
10179 s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
10180 s,@GDB_TK@,$GDB_TK,;t t
10181 s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
10182 s,@build_configargs@,$build_configargs,;t t
10183 s,@build_configdirs@,$build_configdirs,;t t
10184 s,@host_configargs@,$host_configargs,;t t
10185 s,@configdirs@,$configdirs,;t t
10186 s,@target_configargs@,$target_configargs,;t t
10187 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
10188 s,@config_shell@,$config_shell,;t t
10189 s,@YACC@,$YACC,;t t
10190 s,@BISON@,$BISON,;t t
10193 s,@FLEX@,$FLEX,;t t
10194 s,@MAKEINFO@,$MAKEINFO,;t t
10195 s,@EXPECT@,$EXPECT,;t t
10196 s,@RUNTEST@,$RUNTEST,;t t
10199 s,@DLLTOOL@,$DLLTOOL,;t t
10201 s,@LIPO@,$LIPO,;t t
10203 s,@RANLIB@,$RANLIB,;t t
10204 s,@STRIP@,$STRIP,;t t
10205 s,@WINDRES@,$WINDRES,;t t
10206 s,@OBJCOPY@,$OBJCOPY,;t t
10207 s,@OBJDUMP@,$OBJDUMP,;t t
10209 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
10210 s,@CXXFLAGS@,$CXXFLAGS,;t t
10211 s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
10212 s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
10213 s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
10214 s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
10215 s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
10216 s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
10217 s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
10218 s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
10219 s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
10220 s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
10221 s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
10222 s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
10223 s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
10224 s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
10225 s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
10226 s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
10227 s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
10228 s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
10229 s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
10230 s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
10231 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10232 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10233 s,@MAINT@,$MAINT,;t t
10234 s,@stage1_cflags@,$stage1_cflags,;t t
10235 s,@stage1_checking@,$stage1_checking,;t t
10236 s,@stage2_werror_flag@,$stage2_werror_flag,;t t
10237 s,@datarootdir@,$datarootdir,;t t
10238 s,@docdir@,$docdir,;t t
10239 s,@htmldir@,$htmldir,;t t
10240 s,@LIBOBJS@,$LIBOBJS,;t t
10241 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10242 /@serialization_dependencies@/r $serialization_dependencies
10243 s,@serialization_dependencies@,,;t t
10244 /@host_makefile_frag@/r $host_makefile_frag
10245 s,@host_makefile_frag@,,;t t
10246 /@target_makefile_frag@/r $target_makefile_frag
10247 s,@target_makefile_frag@,,;t t
10248 /@alphaieee_frag@/r $alphaieee_frag
10249 s,@alphaieee_frag@,,;t t
10250 /@ospace_frag@/r $ospace_frag
10251 s,@ospace_frag@,,;t t
10256 cat >>$CONFIG_STATUS <<\_ACEOF
10257 # Split the substitutions into bite-sized pieces for seds with
10258 # small command number limits, like on Digital OSF/1 and HP-UX.
10259 ac_max_sed_lines=48
10260 ac_sed_frag=1 # Number of current file.
10261 ac_beg=1 # First line for current file.
10262 ac_end=$ac_max_sed_lines # Line after last line for current file.
10265 while $ac_more_lines; do
10266 if test $ac_beg -gt 1; then
10267 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10269 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10271 if test ! -s $tmp/subs.frag; then
10272 ac_more_lines=false
10274 # The purpose of the label and of the branching condition is to
10275 # speed up the sed processing (if there are no `@' at all, there
10276 # is no need to browse any of the substitutions).
10277 # These are the two extra sed commands mentioned above.
10279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10280 if test -z "$ac_sed_cmds"; then
10281 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10283 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10285 ac_sed_frag=`expr $ac_sed_frag + 1`
10287 ac_end=`expr $ac_end + $ac_max_sed_lines`
10290 if test -z "$ac_sed_cmds"; then
10293 fi # test -n "$CONFIG_FILES"
10296 cat >>$CONFIG_STATUS <<\_ACEOF
10297 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10298 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10300 - | *:- | *:-:* ) # input from stdin
10302 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10303 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10304 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10305 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10306 * ) ac_file_in=$ac_file.in ;;
10309 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10310 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10311 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10312 X"$ac_file" : 'X\(//\)[^/]' \| \
10313 X"$ac_file" : 'X\(//\)$' \| \
10314 X"$ac_file" : 'X\(/\)' \| \
10315 . : '\(.\)' 2>/dev/null ||
10317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10318 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10319 /^X\(\/\/\)$/{ s//\1/; q; }
10320 /^X\(\/\).*/{ s//\1/; q; }
10322 { if $as_mkdir_p; then
10327 while test ! -d "$as_dir"; do
10328 as_dirs="$as_dir $as_dirs"
10329 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10331 X"$as_dir" : 'X\(//\)[^/]' \| \
10332 X"$as_dir" : 'X\(//\)$' \| \
10333 X"$as_dir" : 'X\(/\)' \| \
10334 . : '\(.\)' 2>/dev/null ||
10336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10337 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10338 /^X\(\/\/\)$/{ s//\1/; q; }
10339 /^X\(\/\).*/{ s//\1/; q; }
10342 test ! -n "$as_dirs" || mkdir $as_dirs
10343 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10344 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10345 { (exit 1); exit 1; }; }; }
10349 if test "$ac_dir" != .; then
10350 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10351 # A "../" for each directory in $ac_dir_suffix.
10352 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10354 ac_dir_suffix= ac_top_builddir=
10358 .) # No --srcdir option. We are building in place.
10360 if test -z "$ac_top_builddir"; then
10363 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10365 [\\/]* | ?:[\\/]* ) # Absolute path.
10366 ac_srcdir=$srcdir$ac_dir_suffix;
10367 ac_top_srcdir=$srcdir ;;
10368 *) # Relative path.
10369 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10370 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10373 # Do not use `cd foo && pwd` to compute absolute paths, because
10374 # the directories may not exist.
10376 .) ac_abs_builddir="$ac_dir";;
10379 .) ac_abs_builddir=`pwd`;;
10380 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10381 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10384 case $ac_abs_builddir in
10385 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10387 case ${ac_top_builddir}. in
10388 .) ac_abs_top_builddir=$ac_abs_builddir;;
10389 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10390 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10393 case $ac_abs_builddir in
10394 .) ac_abs_srcdir=$ac_srcdir;;
10397 .) ac_abs_srcdir=$ac_abs_builddir;;
10398 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10399 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10402 case $ac_abs_builddir in
10403 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10405 case $ac_top_srcdir in
10406 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10407 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10408 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10414 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10415 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10418 if test x"$ac_file" != x-; then
10419 { echo "$as_me:$LINENO: creating $ac_file" >&5
10420 echo "$as_me: creating $ac_file" >&6;}
10423 # Let's still pretend it is `configure' which instantiates (i.e., don't
10424 # use $as_me), people would be surprised to read:
10425 # /* config.h. Generated by config.status. */
10426 if test x"$ac_file" = x-; then
10429 configure_input="$ac_file. "
10431 configure_input=$configure_input"Generated from `echo $ac_file_in |
10432 sed 's,.*/,,'` by configure."
10434 # First look for the input files in the build tree, otherwise in the
10436 ac_file_inputs=`IFS=:
10437 for f in $ac_file_in; do
10439 -) echo $tmp/stdin ;;
10441 # Absolute (can't be DOS-style, as IFS=:)
10442 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10443 echo "$as_me: error: cannot find input file: $f" >&2;}
10444 { (exit 1); exit 1; }; }
10447 if test -f "$f"; then
10450 elif test -f "$srcdir/$f"; then
10455 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10456 echo "$as_me: error: cannot find input file: $f" >&2;}
10457 { (exit 1); exit 1; }; }
10460 done` || { (exit 1); exit 1; }
10462 cat >>$CONFIG_STATUS <<_ACEOF
10466 cat >>$CONFIG_STATUS <<\_ACEOF
10468 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10469 s,@configure_input@,$configure_input,;t t
10470 s,@srcdir@,$ac_srcdir,;t t
10471 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10472 s,@top_srcdir@,$ac_top_srcdir,;t t
10473 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10474 s,@builddir@,$ac_builddir,;t t
10475 s,@abs_builddir@,$ac_abs_builddir,;t t
10476 s,@top_builddir@,$ac_top_builddir,;t t
10477 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10478 s,@INSTALL@,$ac_INSTALL,;t t
10479 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10481 if test x"$ac_file" != x-; then
10482 mv $tmp/out $ac_file
10491 cat >>$CONFIG_STATUS <<\_ACEOF
10493 { (exit 0); exit 0; }
10495 chmod +x $CONFIG_STATUS
10496 ac_clean_files=$ac_clean_files_save
10499 # configure is writing to config.log, and then calls config.status.
10500 # config.status does its own redirection, appending to config.log.
10501 # Unfortunately, on DOS this fails, as config.log is still kept open
10502 # by configure, so config.status won't be able to write to it; its
10503 # output is simply discarded. So we exec the FD to /dev/null,
10504 # effectively closing config.log, so it can be properly (re)opened and
10505 # appended to by config.status. When coming back to configure, we
10506 # need to make the FD available again.
10507 if test "$no_create" != yes; then
10509 ac_config_status_args=
10510 test "$silent" = yes &&
10511 ac_config_status_args="$ac_config_status_args --quiet"
10513 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10515 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10516 # would make configure fail if this is the last instruction.
10517 $ac_cs_success || { (exit 1); exit 1; }