2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="move-if-change"
275 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_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 WINDMC OBJCOPY OBJDUMP CFLAGS_FOR_BUILD CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
276 ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
278 # Initialize some variables set by options.
280 ac_init_version=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
290 program_transform_name=s,x,x,
298 # Installation directory options.
299 # These are left unexpanded so users can "make install exec_prefix=/foo"
300 # and all the variables that are supposed to be based on exec_prefix
301 # by default will actually change.
302 # Use braces instead of parens because sh, perl, etc. also accept them.
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328 # Accept the important Cygnus configure options, so we can diagnose typos.
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
337 -build | --build | --buil | --bui | --bu)
338 ac_prev=build_alias ;;
339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340 build_alias=$ac_optarg ;;
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347 cache_file=$ac_optarg ;;
350 cache_file=config.cache ;;
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 datadir=$ac_optarg ;;
358 -disable-* | --disable-*)
359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360 # Reject names that are not valid shell variable names.
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
367 -enable-* | --enable-*)
368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369 # Reject names that are not valid shell variable names.
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
378 eval "enable_$ac_feature='$ac_optarg'" ;;
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
387 exec_prefix=$ac_optarg ;;
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
393 -help | --help | --hel | --he | -h)
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
400 -host | --host | --hos | --ho)
401 ac_prev=host_alias ;;
402 -host=* | --host=* | --hos=* | --ho=*)
403 host_alias=$ac_optarg ;;
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
410 includedir=$ac_optarg ;;
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415 infodir=$ac_optarg ;;
417 -libdir | --libdir | --libdi | --libd)
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
427 libexecdir=$ac_optarg ;;
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436 localstatedir=$ac_optarg ;;
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
444 # Obsolete; use --without-fp.
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c | -n)
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462 oldincludedir=$ac_optarg ;;
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474 program_prefix=$ac_optarg ;;
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481 program_suffix=$ac_optarg ;;
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
498 program_transform_name=$ac_optarg ;;
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 sbindir=$ac_optarg ;;
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 sharedstatedir=$ac_optarg ;;
521 -site | --site | --sit)
523 -site=* | --site=* | --sit=*)
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536 sysconfdir=$ac_optarg ;;
538 -target | --target | --targe | --targ | --tar | --ta | --t)
539 ac_prev=target_alias ;;
540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541 target_alias=$ac_optarg ;;
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
546 -version | --version | --versio | --versi | --vers | -V)
550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
555 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
560 eval "with_$ac_package='$ac_optarg'" ;;
562 -without-* | --without-*)
563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
572 # Obsolete; use --with-x.
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580 x_includes=$ac_optarg ;;
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587 x_libraries=$ac_optarg ;;
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
615 if test -n "$ac_prev"; then
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
621 # Be sure to have absolute paths.
622 for ac_var in exec_prefix prefix
624 eval ac_val=$`echo $ac_var`
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
632 # Be sure to have absolute paths.
633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
636 eval ac_val=$`echo $ac_var`
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
644 # There might be people who depend on the old broken behavior: `$host'
645 # used to hold the argument of --host etc.
646 # FIXME: To remove some day.
651 # FIXME: To remove some day.
652 if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
663 test -n "$host_alias" && ac_tool_prefix=$host_alias-
665 test "$silent" = yes && exec 6>/dev/null
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
685 if test ! -r $srcdir/$ac_unique_file; then
689 ac_srcdir_defaulted=no
691 if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
700 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
716 ac_env_CC_set=${CC+set}
718 ac_cv_env_CC_set=${CC+set}
719 ac_cv_env_CC_value=$CC
720 ac_env_CFLAGS_set=${CFLAGS+set}
721 ac_env_CFLAGS_value=$CFLAGS
722 ac_cv_env_CFLAGS_set=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value=$CFLAGS
724 ac_env_LDFLAGS_set=${LDFLAGS+set}
725 ac_env_LDFLAGS_value=$LDFLAGS
726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value=$LDFLAGS
728 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732 ac_env_CXX_set=${CXX+set}
733 ac_env_CXX_value=$CXX
734 ac_cv_env_CXX_set=${CXX+set}
735 ac_cv_env_CXX_value=$CXX
736 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737 ac_env_CXXFLAGS_value=$CXXFLAGS
738 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
740 ac_env_AR_set=${AR+set}
742 ac_cv_env_AR_set=${AR+set}
743 ac_cv_env_AR_value=$AR
744 ac_env_AS_set=${AS+set}
746 ac_cv_env_AS_set=${AS+set}
747 ac_cv_env_AS_value=$AS
748 ac_env_DLLTOOL_set=${DLLTOOL+set}
749 ac_env_DLLTOOL_value=$DLLTOOL
750 ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
751 ac_cv_env_DLLTOOL_value=$DLLTOOL
752 ac_env_LD_set=${LD+set}
754 ac_cv_env_LD_set=${LD+set}
755 ac_cv_env_LD_value=$LD
756 ac_env_LIPO_set=${LIPO+set}
757 ac_env_LIPO_value=$LIPO
758 ac_cv_env_LIPO_set=${LIPO+set}
759 ac_cv_env_LIPO_value=$LIPO
760 ac_env_NM_set=${NM+set}
762 ac_cv_env_NM_set=${NM+set}
763 ac_cv_env_NM_value=$NM
764 ac_env_RANLIB_set=${RANLIB+set}
765 ac_env_RANLIB_value=$RANLIB
766 ac_cv_env_RANLIB_set=${RANLIB+set}
767 ac_cv_env_RANLIB_value=$RANLIB
768 ac_env_STRIP_set=${STRIP+set}
769 ac_env_STRIP_value=$STRIP
770 ac_cv_env_STRIP_set=${STRIP+set}
771 ac_cv_env_STRIP_value=$STRIP
772 ac_env_WINDRES_set=${WINDRES+set}
773 ac_env_WINDRES_value=$WINDRES
774 ac_cv_env_WINDRES_set=${WINDRES+set}
775 ac_cv_env_WINDRES_value=$WINDRES
776 ac_env_WINDMC_set=${WINDMC+set}
777 ac_env_WINDMC_value=$WINDMC
778 ac_cv_env_WINDMC_set=${WINDMC+set}
779 ac_cv_env_WINDMC_value=$WINDMC
780 ac_env_OBJCOPY_set=${OBJCOPY+set}
781 ac_env_OBJCOPY_value=$OBJCOPY
782 ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
783 ac_cv_env_OBJCOPY_value=$OBJCOPY
784 ac_env_OBJDUMP_set=${OBJDUMP+set}
785 ac_env_OBJDUMP_value=$OBJDUMP
786 ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
787 ac_cv_env_OBJDUMP_value=$OBJDUMP
788 ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
789 ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
790 ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
791 ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
792 ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
793 ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
794 ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
795 ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
796 ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
797 ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
798 ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
799 ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
800 ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
801 ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
802 ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
803 ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
804 ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
805 ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
806 ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
807 ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
808 ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
809 ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
810 ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
811 ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
812 ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
813 ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
814 ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
815 ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
816 ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
817 ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
818 ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
819 ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
820 ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
821 ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
822 ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
823 ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
824 ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
825 ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
826 ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
827 ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
828 ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
829 ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
830 ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
831 ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
832 ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
833 ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
834 ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
835 ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
836 ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
837 ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
838 ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
839 ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
840 ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
841 ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
842 ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
843 ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
844 ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
845 ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
846 ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
847 ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
848 ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
849 ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
850 ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
851 ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
854 # Report the --help message.
856 if test "$ac_init_help" = "long"; then
857 # Omit some internal or obsolete options to make the list less imposing.
858 # This message is too long to be a string in the A/UX 3.1 sh.
860 \`configure' configures this package to adapt to many kinds of systems.
862 Usage: $0 [OPTION]... [VAR=VALUE]...
864 To assign environment variables (e.g., CC, CFLAGS...), specify them as
865 VAR=VALUE. See below for descriptions of some of the useful variables.
867 Defaults for the options are specified in brackets.
870 -h, --help display this help and exit
871 --help=short display options specific to this package
872 --help=recursive display the short help of all the included packages
873 -V, --version display version information and exit
874 -q, --quiet, --silent do not print \`checking...' messages
875 --cache-file=FILE cache test results in FILE [disabled]
876 -C, --config-cache alias for \`--cache-file=config.cache'
877 -n, --no-create do not create output files
878 --srcdir=DIR find the sources in DIR [configure dir or \`..']
883 Installation directories:
884 --prefix=PREFIX install architecture-independent files in PREFIX
886 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
889 By default, \`make install' will install all the files in
890 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
891 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
892 for instance \`--prefix=\$HOME'.
894 For better control, use the options below.
896 Fine tuning of the installation directories:
897 --bindir=DIR user executables [EPREFIX/bin]
898 --sbindir=DIR system admin executables [EPREFIX/sbin]
899 --libexecdir=DIR program executables [EPREFIX/libexec]
900 --datadir=DIR read-only architecture-independent data [PREFIX/share]
901 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
902 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
903 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
904 --libdir=DIR object code libraries [EPREFIX/lib]
905 --includedir=DIR C header files [PREFIX/include]
906 --oldincludedir=DIR C header files for non-gcc [/usr/include]
907 --infodir=DIR info documentation [PREFIX/info]
908 --mandir=DIR man documentation [PREFIX/man]
914 --program-prefix=PREFIX prepend PREFIX to installed program names
915 --program-suffix=SUFFIX append SUFFIX to installed program names
916 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
919 --build=BUILD configure for building on BUILD [guessed]
920 --host=HOST cross-compile to build programs to run on HOST [BUILD]
921 --target=TARGET configure for building compilers for TARGET [HOST]
925 if test -n "$ac_init_help"; then
930 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
931 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
932 --enable-libada build libada directory
933 --enable-libssp build libssp directory
934 --enable-stage1-languages[=all] choose additional languages to build during
935 stage1. Mostly useful for compiler development.
936 --enable-objc-gc enable use of Boehm's garbage collector with the
937 GNU Objective-C runtime
938 --enable-bootstrap enable bootstrapping [yes if native build]
939 --enable-serial-[{host,target,build}-]configure
940 force sequential configuration of
941 sub-packages for the host, target or build
942 machine, or all sub-packages
943 --enable-maintainer-mode enable make rules and dependencies not useful
944 (and sometimes confusing) to the casual installer
945 --enable-stage1-checking[=all] choose additional checking for stage1
947 --enable-werror enable -Werror in bootstrap stage2 and later
950 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
951 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
952 --with-build-libsubdir=DIR Directory where to find libraries for build system
953 --with-mpfr-dir=PATH this option has been REMOVED
954 --with-mpfr=PATH specify prefix directory for installed MPFR package.
955 Equivalent to --with-mpfr-include=PATH/include
956 plus --with-mpfr-lib=PATH/lib
957 --with-mpfr-include=PATH
958 specify directory for installed MPFR include files
959 --with-mpfr-lib=PATH specify directory for the installed MPFR library
960 --with-gmp-dir=PATH this option has been REMOVED
961 --with-gmp=PATH specify prefix directory for the installed GMP package.
962 Equivalent to --with-gmp-include=PATH/include
963 plus --with-gmp-lib=PATH/lib
964 --with-gmp-include=PATH specify directory for installed GMP include files
965 --with-gmp-lib=PATH specify directory for the installed GMP library
966 --with-build-sysroot=SYSROOT
967 use sysroot as the system root during the build
968 --with-debug-prefix-map='A=B C=D ...'
969 map A to B, C to D ... in debug information
970 --with-build-time-tools=PATH
971 use given path to find target tools during the build
972 --with-datarootdir use datarootdir as the data root directory.
973 --with-docdir install documentation in this directory.
974 --with-pdfdir install pdf in this directory.
975 --with-htmldir install html in this directory.
977 Some influential environment variables:
978 CC C compiler command
979 CFLAGS C compiler flags
980 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
981 nonstandard directory <lib dir>
982 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
983 headers in a nonstandard directory <include dir>
984 CXX C++ compiler command
985 CXXFLAGS C++ compiler flags
988 DLLTOOL DLLTOOL for the host
990 LIPO LIPO for the host
992 RANLIB RANLIB for the host
993 STRIP STRIP for the host
994 WINDRES WINDRES for the host
995 WINDMC WINDMC for the host
996 OBJCOPY OBJCOPY for the host
997 OBJDUMP OBJDUMP for the host
1007 GFORTRAN for the target
1013 DLLTOOL for the target
1021 OBJDUMP for the target
1023 RANLIB for the target
1025 STRIP for the target
1027 WINDRES for the target
1029 WINDMC for the target
1031 Use these variables to override the choices made by `configure' or to help
1032 it to find libraries and programs with nonstandard names/locations.
1037 if test "$ac_init_help" = "recursive"; then
1038 # If there are subdirs, report their specific --help.
1040 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1041 test -d $ac_dir || continue
1044 if test "$ac_dir" != .; then
1045 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1046 # A "../" for each directory in $ac_dir_suffix.
1047 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1049 ac_dir_suffix= ac_top_builddir=
1053 .) # No --srcdir option. We are building in place.
1055 if test -z "$ac_top_builddir"; then
1058 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1060 [\\/]* | ?:[\\/]* ) # Absolute path.
1061 ac_srcdir=$srcdir$ac_dir_suffix;
1062 ac_top_srcdir=$srcdir ;;
1064 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1065 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1068 # Do not use `cd foo && pwd` to compute absolute paths, because
1069 # the directories may not exist.
1071 .) ac_abs_builddir="$ac_dir";;
1074 .) ac_abs_builddir=`pwd`;;
1075 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1076 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1079 case $ac_abs_builddir in
1080 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1082 case ${ac_top_builddir}. in
1083 .) ac_abs_top_builddir=$ac_abs_builddir;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1085 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1088 case $ac_abs_builddir in
1089 .) ac_abs_srcdir=$ac_srcdir;;
1092 .) ac_abs_srcdir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1094 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1097 case $ac_abs_builddir in
1098 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1100 case $ac_top_srcdir in
1101 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1103 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1108 # Check for guested configure; otherwise get Cygnus style configure.
1109 if test -f $ac_srcdir/configure.gnu; then
1111 $SHELL $ac_srcdir/configure.gnu --help=recursive
1112 elif test -f $ac_srcdir/configure; then
1114 $SHELL $ac_srcdir/configure --help=recursive
1115 elif test -f $ac_srcdir/configure.ac ||
1116 test -f $ac_srcdir/configure.in; then
1118 $ac_configure --help
1120 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126 test -n "$ac_init_help" && exit 0
1127 if $ac_init_version; then
1130 Copyright (C) 2003 Free Software Foundation, Inc.
1131 This configure script is free software; the Free Software Foundation
1132 gives unlimited permission to copy, distribute and modify it.
1138 This file contains any messages produced by compilers while
1139 running configure, to aid debugging if configure makes a mistake.
1141 It was created by $as_me, which was
1142 generated by GNU Autoconf 2.59. Invocation command line was
1153 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1154 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1155 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1156 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1157 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1159 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1160 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1162 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1163 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1164 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1165 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1166 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1167 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1168 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1176 test -z "$as_dir" && as_dir=.
1177 echo "PATH: $as_dir"
1192 # Keep a trace of the command line.
1193 # Strip out --no-create and --no-recursion so they do not pile up.
1194 # Strip out --silent because we don't want to record it for future runs.
1195 # Also quote any args containing shell meta-characters.
1196 # Make two passes to allow for proper duplicate-argument suppression.
1201 ac_must_keep_next=false
1207 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1211 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1212 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1215 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1217 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1218 if test $ac_must_keep_next = true; then
1219 ac_must_keep_next=false # Got value, back to normal.
1222 *=* | --config-cache | -C | -disable-* | --disable-* \
1223 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1224 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1225 | -with-* | --with-* | -without-* | --without-* | --x)
1226 case "$ac_configure_args0 " in
1227 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1230 -* ) ac_must_keep_next=true ;;
1233 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1234 # Get rid of the leading space.
1240 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1241 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1243 # When interrupted or exit'd, cleanup temporary files, and complete
1244 # config.log. We remove comments because anyway the quotes in there
1245 # would cause problems or look ugly.
1246 # WARNING: Be sure not to use single quotes in there, as some shells,
1247 # such as our DU 5.0 friend, will then `close' the trap.
1248 trap 'exit_status=$?
1249 # Save into config.log some information that might help in debugging.
1254 ## ---------------- ##
1255 ## Cache variables. ##
1256 ## ---------------- ##
1259 # The following way of writing the cache mishandles newlines in values,
1262 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1265 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1270 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1277 ## ----------------- ##
1278 ## Output variables. ##
1279 ## ----------------- ##
1282 for ac_var in $ac_subst_vars
1284 eval ac_val=$`echo $ac_var`
1285 echo "$ac_var='"'"'$ac_val'"'"'"
1289 if test -n "$ac_subst_files"; then
1296 for ac_var in $ac_subst_files
1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
1304 if test -s confdefs.h; then
1311 sed "/^$/d" confdefs.h | sort
1314 test "$ac_signal" != 0 &&
1315 echo "$as_me: caught signal $ac_signal"
1316 echo "$as_me: exit $exit_status"
1318 rm -f core *.core &&
1319 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1322 for ac_signal in 1 2 13 15; do
1323 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1327 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1328 rm -rf conftest* confdefs.h
1329 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1332 # Predefined preprocessor variables.
1334 cat >>confdefs.h <<_ACEOF
1335 #define PACKAGE_NAME "$PACKAGE_NAME"
1339 cat >>confdefs.h <<_ACEOF
1340 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_STRING "$PACKAGE_STRING"
1354 cat >>confdefs.h <<_ACEOF
1355 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1359 # Let the site file select an alternate cache file if it wants to.
1360 # Prefer explicitly selected file to automatically selected ones.
1361 if test -z "$CONFIG_SITE"; then
1362 if test "x$prefix" != xNONE; then
1363 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1365 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1368 for ac_site_file in $CONFIG_SITE; do
1369 if test -r "$ac_site_file"; then
1370 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1371 echo "$as_me: loading site script $ac_site_file" >&6;}
1372 sed 's/^/| /' "$ac_site_file" >&5
1377 if test -r "$cache_file"; then
1378 # Some versions of bash will fail to source /dev/null (special
1379 # files actually), so we avoid doing that.
1380 if test -f "$cache_file"; then
1381 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1382 echo "$as_me: loading cache $cache_file" >&6;}
1384 [\\/]* | ?:[\\/]* ) . $cache_file;;
1385 *) . ./$cache_file;;
1389 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1390 echo "$as_me: creating cache $cache_file" >&6;}
1394 # Check that the precious variables saved in the cache have kept the same
1396 ac_cache_corrupted=false
1397 for ac_var in `(set) 2>&1 |
1398 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1400 eval ac_new_set=\$ac_env_${ac_var}_set
1401 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1402 eval ac_new_val="\$ac_env_${ac_var}_value"
1403 case $ac_old_set,$ac_new_set in
1405 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1406 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1407 ac_cache_corrupted=: ;;
1409 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1410 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1411 ac_cache_corrupted=: ;;
1414 if test "x$ac_old_val" != "x$ac_new_val"; then
1415 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1416 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1417 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1418 echo "$as_me: former value: $ac_old_val" >&2;}
1419 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1420 echo "$as_me: current value: $ac_new_val" >&2;}
1421 ac_cache_corrupted=:
1424 # Pass precious variables to config.status.
1425 if test "$ac_new_set" = set; then
1427 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1428 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1429 *) ac_arg=$ac_var=$ac_new_val ;;
1431 case " $ac_configure_args " in
1432 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1433 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1437 if $ac_cache_corrupted; then
1438 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1439 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1440 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1441 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1442 { (exit 1); exit 1; }; }
1446 ac_cpp='$CPP $CPPFLAGS'
1447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1471 # Find the build, host, and target systems.
1473 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1474 if test -f $ac_dir/install-sh; then
1476 ac_install_sh="$ac_aux_dir/install-sh -c"
1478 elif test -f $ac_dir/install.sh; then
1480 ac_install_sh="$ac_aux_dir/install.sh -c"
1482 elif test -f $ac_dir/shtool; then
1484 ac_install_sh="$ac_aux_dir/shtool install -c"
1488 if test -z "$ac_aux_dir"; then
1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1491 { (exit 1); exit 1; }; }
1493 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1497 # Make sure we can run config.sub.
1498 $ac_config_sub sun4 >/dev/null 2>&1 ||
1499 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1501 { (exit 1); exit 1; }; }
1503 echo "$as_me:$LINENO: checking build system type" >&5
1504 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1505 if test "${ac_cv_build+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 ac_cv_build_alias=$build_alias
1509 test -z "$ac_cv_build_alias" &&
1510 ac_cv_build_alias=`$ac_config_guess`
1511 test -z "$ac_cv_build_alias" &&
1512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514 { (exit 1); exit 1; }; }
1515 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1518 { (exit 1); exit 1; }; }
1521 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522 echo "${ECHO_T}$ac_cv_build" >&6
1524 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1529 case ${build_alias} in
1530 "") build_noncanonical=${build} ;;
1531 *) build_noncanonical=${build_alias} ;;
1536 case ${host_alias} in
1537 "") host_noncanonical=${build_noncanonical} ;;
1538 *) host_noncanonical=${host_alias} ;;
1543 case ${target_alias} in
1544 "") target_noncanonical=${host_noncanonical} ;;
1545 *) target_noncanonical=${target_alias} ;;
1551 test "$host_noncanonical" = "$target_noncanonical" &&
1552 test "$program_prefix$program_suffix$program_transform_name" = \
1554 program_transform_name=s,y,y,
1556 echo "$as_me:$LINENO: checking host system type" >&5
1557 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1558 if test "${ac_cv_host+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 ac_cv_host_alias=$host_alias
1562 test -z "$ac_cv_host_alias" &&
1563 ac_cv_host_alias=$ac_cv_build_alias
1564 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1565 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1566 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1567 { (exit 1); exit 1; }; }
1570 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1571 echo "${ECHO_T}$ac_cv_host" >&6
1573 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1578 echo "$as_me:$LINENO: checking target system type" >&5
1579 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1580 if test "${ac_cv_target+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1583 ac_cv_target_alias=$target_alias
1584 test "x$ac_cv_target_alias" = "x" &&
1585 ac_cv_target_alias=$ac_cv_host_alias
1586 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1588 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1592 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1593 echo "${ECHO_T}$ac_cv_target" >&6
1594 target=$ac_cv_target
1595 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600 # The aliases save the names the user supplied, while $host etc.
1601 # will get canonicalized.
1602 test -n "$target_alias" &&
1603 test "$program_prefix$program_suffix$program_transform_name" = \
1605 program_prefix=${target_alias}-
1606 test "$program_prefix" != NONE &&
1607 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1608 # Use a double $ so make ignores it.
1609 test "$program_suffix" != NONE &&
1610 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1611 # Double any \ or $. echo might interpret backslashes.
1612 # By default was `s,x,x', remove it if useless.
1613 cat <<\_ACEOF >conftest.sed
1614 s/[\\$]/&&/g;s/;s,x,x,$//
1616 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1621 # Get 'install' or 'install-sh' and its variants.
1622 # Find a good install program. We prefer a C program (faster),
1623 # so one script is as good as another. But avoid the broken or
1624 # incompatible versions:
1625 # SysV /etc/install, /usr/sbin/install
1626 # SunOS /usr/etc/install
1627 # IRIX /sbin/install
1629 # AmigaOS /C/install, which installs bootblocks on floppy discs
1630 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1631 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1632 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1633 # OS/2's system install, which has a completely different semantic
1634 # ./install, which can be erroneously created by make from ./install.sh.
1635 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1636 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1637 if test -z "$INSTALL"; then
1638 if test "${ac_cv_path_install+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 test -z "$as_dir" && as_dir=.
1646 # Account for people who put trailing slashes in PATH elements.
1648 ./ | .// | /cC/* | \
1649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1650 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1653 # OSF1 and SCO ODT 3.0 have their own names for install.
1654 # Don't use installbsd from OSF since it installs stuff as root
1656 for ac_prog in ginstall scoinst install; do
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1659 if test $ac_prog = install &&
1660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1661 # AIX install. It has an incompatible calling convention.
1663 elif test $ac_prog = install &&
1664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1665 # program-specific install script used by HP pwplus--don't use.
1668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1680 if test "${ac_cv_path_install+set}" = set; then
1681 INSTALL=$ac_cv_path_install
1683 # As a last resort, use the slow shell script. We don't cache a
1684 # path for INSTALL within a source directory, because that will
1685 # break other packages using the cache if that directory is
1686 # removed, or if the path is relative.
1687 INSTALL=$ac_install_sh
1690 echo "$as_me:$LINENO: result: $INSTALL" >&5
1691 echo "${ECHO_T}$INSTALL" >&6
1693 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1694 # It thinks the first close brace ends the variable substitution.
1695 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1697 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1699 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1701 echo "$as_me:$LINENO: checking whether ln works" >&5
1702 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1703 if test "${acx_cv_prog_LN+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 rm -f conftestdata_t
1707 echo >conftestdata_f
1708 if ln conftestdata_f conftestdata_t 2>/dev/null
1714 rm -f conftestdata_f conftestdata_t
1717 if test $acx_cv_prog_LN = no; then
1719 echo "$as_me:$LINENO: result: no, using $LN" >&5
1720 echo "${ECHO_T}no, using $LN" >&6
1722 LN="$acx_cv_prog_LN"
1723 echo "$as_me:$LINENO: result: yes" >&5
1724 echo "${ECHO_T}yes" >&6
1727 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1728 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1730 if test "$LN_S" = "ln -s"; then
1731 echo "$as_me:$LINENO: result: yes" >&5
1732 echo "${ECHO_T}yes" >&6
1734 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1735 echo "${ECHO_T}no, using $LN_S" >&6
1739 ### we might need to use some other shell than /bin/sh for running subshells
1740 ### If we are on Windows, search for the shell. This will permit people
1741 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1742 ### without also having to set CONFIG_SHELL. This code will work when
1743 ### using bash, which sets OSTYPE.
1746 if test x${CONFIG_SHELL} = x ; then
1747 if test ! -f /bin/sh ; then
1748 if test x${SHELL} != x && test -f ${SHELL} ; then
1749 CONFIG_SHELL=${SHELL}
1752 for prog in sh sh.exe bash bash.exe; do
1753 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1754 for dir in $PATH; do
1755 test -z "$dir" && dir=.
1756 if test -f $dir/$prog; then
1757 CONFIG_SHELL=$dir/$prog
1763 test -n "${CONFIG_SHELL}" && break
1771 config_shell=${CONFIG_SHELL-/bin/sh}
1774 # if PWD already has a value, it is probably wrong.
1775 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1777 # Export original configure arguments for use by sub-configures.
1778 # Quote arguments with shell meta charatcers.
1779 TOPLEVEL_CONFIGURE_ARGUMENTS=
1780 set -- "$progname" "$@"
1784 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1785 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1786 # if the argument is of the form -foo=baz, quote the baz part only
1787 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1790 # Add the quoted argument to the list.
1791 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1793 if test "$silent" = yes; then
1794 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1796 # Remove the initial space we just introduced and, as these will be
1797 # expanded by make, quote '$'.
1798 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1801 moveifchange=${srcdir}/move-if-change
1803 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1805 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
1807 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1808 INSTALL="${srcpwd}/install-sh -c"
1811 # Set srcdir to "." if that's what it is.
1812 # This is important for multilib support.
1814 if test "${pwd}" = "${srcpwd}" ; then
1822 ### To add a new directory to the tree, first choose whether it is a target
1823 ### or a host dependent tool. Then put it into the appropriate list
1824 ### (library or tools, host or target), doing a dependency sort.
1826 # Subdirs will be configured in the order listed in build_configdirs,
1827 # configdirs, or target_configdirs; see the serialization section below.
1829 # Dependency sorting is only needed when *configuration* must be done in
1830 # a particular order. In all cases a dependency should be specified in
1831 # the Makefile, whether or not it's implicitly specified here.
1833 # Double entries in build_configdirs, configdirs, or target_configdirs may
1834 # cause circular dependencies and break everything horribly.
1836 # these library is used by various programs built for the build
1839 build_libs="build-libiberty"
1841 # these tools are built for the build environment
1842 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1844 # these libraries are used by various programs built for the host environment
1846 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
1848 # these tools are built for the host environment
1849 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1850 # know that we are building the simulator.
1851 # binutils, gas and ld appear in that order because it makes sense to run
1852 # "make check" in that particular order.
1853 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"
1855 # libgcj represents the runtime libraries only used by gcj.
1856 libgcj="target-libffi \
1861 # these libraries are built for the target environment, and are built after
1862 # the host libraries and the host tools (which may be a cross compiler)
1864 target_libraries="target-libgcc \
1868 target-libstdc++-v3 \
1871 target-libgfortran \
1878 # these tools are built using the target libraries, and are intended to
1879 # run only in the target environment
1881 # note: any program that *uses* libraries that are in the "target_libraries"
1882 # list belongs in this list. those programs are also very likely
1883 # candidates for the "native_only" list which follows
1885 target_tools="target-examples target-groff target-gperf target-rda"
1887 ################################################################################
1889 ## All tools belong in one of the four categories, and are assigned above
1890 ## We assign ${configdirs} this way to remove all embedded newlines. This
1891 ## is important because configure will choke if they ever get through.
1892 ## ${configdirs} is directories we build using the host tools.
1893 ## ${target_configdirs} is directories we build using the target tools.
1894 configdirs=`echo ${host_libs} ${host_tools}`
1895 target_configdirs=`echo ${target_libraries} ${target_tools}`
1896 build_configdirs=`echo ${build_libs} ${build_tools}`
1898 ################################################################################
1900 srcname="gnu development package"
1902 # This gets set non-empty for some net releases of packages.
1905 # Define is_cross_compiler to save on calls to 'test'.
1907 if test x"${host}" = x"${target}" ; then
1908 is_cross_compiler=no
1910 is_cross_compiler=yes
1913 # Find the build and target subdir names.
1915 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1916 # have matching libraries, they should use host libraries: Makefile.tpl
1917 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1918 # However, they still use the build modules, because the corresponding
1919 # host modules (e.g. bison) are only built for the host when bootstrap
1921 # - build_subdir is where we find build modules, and never changes.
1922 # - build_libsubdir is where we find build libraries, and can be overridden.
1924 # Prefix 'build-' so this never conflicts with target_subdir.
1925 build_subdir="build-${build_noncanonical}"
1927 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1928 if test "${with_build_libsubdir+set}" = set; then
1929 withval="$with_build_libsubdir"
1930 build_libsubdir="$withval"
1932 build_libsubdir="$build_subdir"
1934 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1935 if ( test $srcdir = . && test -d gcc ) \
1936 || test -d $srcdir/../host-${host_noncanonical}; then
1937 host_subdir="host-${host_noncanonical}"
1942 target_subdir=${target_noncanonical}
1945 # Skipdirs are removed silently.
1947 # Noconfigdirs are removed loudly.
1951 # Make sure we don't let GNU ld be added if we didn't want it.
1952 if test x$with_gnu_ld = xno ; then
1954 noconfigdirs="$noconfigdirs ld"
1958 # Make sure we don't let GNU as be added if we didn't want it.
1959 if test x$with_gnu_as = xno ; then
1961 noconfigdirs="$noconfigdirs gas"
1964 # some tools are so dependent upon X11 that if we're not building with X,
1965 # it's not even worth trying to configure, much less build, that tool.
1968 yes | "") ;; # the default value for this tree is that X11 is available
1970 skipdirs="${skipdirs} tk itcl libgui"
1971 # We won't be able to build gdbtk without X.
1974 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1977 # Some tools are only suitable for building in a "native" situation.
1978 # Remove these if host!=target.
1979 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"
1981 # Similarly, some are only suitable for cross toolchains.
1982 # Remove these if host=target.
1983 cross_only="target-libgloss target-newlib target-opcodes"
1985 case $is_cross_compiler in
1986 no) skipdirs="${skipdirs} ${cross_only}" ;;
1987 yes) skipdirs="${skipdirs} ${native_only}" ;;
1990 # If both --with-headers and --with-libs are specified, default to
1992 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1993 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1994 if test x"${with_newlib}" = x ; then
1999 # Recognize --with-newlib/--without-newlib.
2000 case ${with_newlib} in
2001 no) skipdirs="${skipdirs} target-newlib" ;;
2002 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2005 # Configure extra directories which are host specific
2009 configdirs="$configdirs libtermcap" ;;
2012 # A target can indicate whether a language isn't supported for some reason.
2013 # Only spaces may be used in this macro; not newlines or tabs.
2014 unsupported_languages=
2016 # Remove more programs from consideration, based on the host or
2017 # target this usually means that a port of the program doesn't
2022 noconfigdirs="$noconfigdirs byacc"
2024 i[3456789]86-*-vsta)
2025 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2027 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2028 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2031 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2033 i[3456789]86-*-mingw32*)
2034 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2035 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2037 i[3456789]86-*-beos*)
2038 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2041 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2044 noconfigdirs="$noconfigdirs rcs"
2047 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2050 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2055 # Check whether --enable-libada or --disable-libada was given.
2056 if test "${enable_libada+set}" = set; then
2057 enableval="$enable_libada"
2058 ENABLE_LIBADA=$enableval
2062 if test "${ENABLE_LIBADA}" != "yes" ; then
2063 noconfigdirs="$noconfigdirs gnattools"
2066 # Check whether --enable-libssp or --disable-libssp was given.
2067 if test "${enable_libssp+set}" = set; then
2068 enableval="$enable_libssp"
2069 ENABLE_LIBSSP=$enableval
2074 # Save it here so that, even in case of --enable-libgcj, if the Java
2075 # front-end isn't enabled, we still get libgcj disabled.
2076 libgcj_saved=$libgcj
2077 case $enable_libgcj in
2079 # If we reset it here, it won't get added to noconfigdirs in the
2080 # target-specific build rules, so it will be forcibly enabled
2081 # (unless the Java language itself isn't enabled).
2085 # Make sure we get it printed in the list of not supported target libs.
2086 noconfigdirs="$noconfigdirs ${libgcj}"
2091 # Disable libmudflap on some systems.
2092 if test x$enable_libmudflap = x ; then
2094 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
2095 # Enable libmudflap by default in GNU and friends.
2098 # Enable libmudflap by default in FreeBSD.
2101 # Disable it by default everywhere else.
2102 noconfigdirs="$noconfigdirs target-libmudflap"
2107 # Disable libgomp on non POSIX hosted systems.
2108 if test x$enable_libgomp = x ; then
2109 # Enable libgomp by default on hosted POSIX systems.
2111 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2113 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2115 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2117 *-*-darwin* | *-*-aix*)
2120 noconfigdirs="$noconfigdirs target-libgomp"
2128 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2130 powerpc-*-darwin* | i[3456789]86-*-darwin*)
2131 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
2132 noconfigdirs="$noconfigdirs sim target-rda"
2135 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2136 noconfigdirs="$noconfigdirs sim target-rda"
2137 noconfigdirs="$noconfigdirs ${libgcj}"
2139 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2140 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2143 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2144 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2145 && test -f /usr/local/include/gmp.h; then
2149 # Skip some stuff that's unsupported on some FreeBSD configurations.
2154 noconfigdirs="$noconfigdirs ${libgcj}"
2159 # Remove unsupported stuff on all kaOS configurations.
2160 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
2161 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2162 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2163 noconfigdirs="$noconfigdirs target-libgloss"
2166 # Skip some stuff on all NetBSD configurations.
2167 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2169 # Skip some stuff that's unsupported on some NetBSD configurations.
2171 i*86-*-netbsdelf*) ;;
2172 arm*-*-netbsdelf*) ;;
2174 noconfigdirs="$noconfigdirs ${libgcj}"
2179 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2182 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2184 # The tpf target doesn't support gdb yet.
2186 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2189 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2192 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2195 # ld works, but does not support shared libraries.
2196 # newlib is not 64 bit ready. I'm not sure about fileutils.
2197 # gas doesn't generate exception information.
2198 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2201 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2204 # newlib is not 64 bit ready
2205 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2208 # newlib is not 64 bit ready
2209 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2212 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2215 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2217 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2218 noconfigdirs="$noconfigdirs ${libgcj}"
2219 noconfigdirs="$noconfigdirs target-examples"
2220 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2221 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2222 noconfigdirs="$noconfigdirs expect dejagnu"
2223 # the C++ libraries don't build on top of CE's C libraries
2224 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2225 noconfigdirs="$noconfigdirs target-newlib"
2227 *-*-cygwin*) ;; # keep gdb and readline
2228 *) noconfigdirs="$noconfigdirs gdb readline"
2233 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2237 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2238 noconfigdirs="$noconfigdirs ${libgcj}"
2240 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2241 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2243 arm*-*-linux-gnueabi)
2244 noconfigdirs="$noconfigdirs target-qthreads"
2245 noconfigdirs="$noconfigdirs target-libobjc"
2246 case ${with_newlib} in
2247 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2251 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2254 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2257 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2260 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2263 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2266 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2269 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2272 noconfigdirs="$noconfigdirs gdb"
2273 if test x${is_cross_compiler} != xno ; then
2274 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2277 c4x-*-* | tic4x-*-*)
2278 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2280 c54x*-*-* | tic54x-*-*)
2281 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2283 cris-*-* | crisv32-*-*)
2284 unsupported_languages="$unsupported_languages java"
2287 unsupported_languages="$unsupported_languages fortran"
2288 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2290 unsupported_languages="$unsupported_languages fortran"
2291 noconfigdirs="$noconfigdirs target-boehm-gc";;
2293 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2295 unsupported_languages="$unsupported_languages fortran"
2296 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2300 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2303 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2306 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2309 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2312 noconfigdirs="$noconfigdirs ${libgcj}"
2315 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2318 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2320 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2322 hppa*64*-*-linux* | parisc*64*-*-linux*)
2323 # In this case, it's because the hppa64-linux target is for
2324 # the kernel only at this point and has no libc, and thus no
2325 # headers, crt*.o, etc., all of which are needed by these.
2326 noconfigdirs="$noconfigdirs target-zlib"
2328 parisc*-*-linux* | hppa*-*-linux*)
2332 hppa*-*-openbsd* | \
2334 noconfigdirs="$noconfigdirs ${libgcj}"
2337 noconfigdirs="$noconfigdirs ld shellutils"
2340 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2341 # build on HP-UX 10.20.
2342 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2345 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2348 # No gdb support yet.
2349 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2352 # No gdb or ld support yet.
2353 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2357 i[3456789]86-*-coff | i[3456789]86-*-elf)
2358 noconfigdirs="$noconfigdirs ${libgcj}"
2360 i[3456789]86-*-linux*)
2361 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2362 # not build java stuff by default.
2365 noconfigdirs="$noconfigdirs ${libgcj}";;
2368 # This section makes it possible to build newlib natively on linux.
2369 # If we are using a cross compiler then don't configure newlib.
2370 if test x${is_cross_compiler} != xno ; then
2371 noconfigdirs="$noconfigdirs target-newlib"
2373 noconfigdirs="$noconfigdirs target-libgloss"
2374 # If we are not using a cross compiler, do configure newlib.
2375 # Note however, that newlib will only be configured in this situation
2376 # if the --with-newlib option has been given, because otherwise
2377 # 'target-newlib' will appear in skipdirs.
2379 i[3456789]86-*-mingw32*)
2380 target_configdirs="$target_configdirs target-winsup"
2381 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2384 target_configdirs="$target_configdirs target-winsup"
2385 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2388 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2389 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2390 # always build newlib if winsup directory is present.
2391 if test -d "$srcdir/winsup/cygwin"; then
2392 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2393 elif test -d "$srcdir/newlib"; then
2394 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2397 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2398 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2401 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2403 i[3456789]86-*-sco3.2v5*)
2404 # The linker does not yet know about weak symbols in COFF,
2405 # and is not configured to handle mixed ELF and COFF.
2406 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2408 i[3456789]86-*-sco*)
2409 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2411 i[3456789]86-*-solaris2*)
2412 noconfigdirs="$noconfigdirs target-libgloss"
2414 i[3456789]86-*-sysv4*)
2415 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2417 i[3456789]86-*-beos*)
2418 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2420 i[3456789]86-*-rdos*)
2421 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2424 noconfigdirs="$noconfigdirs ${libgcj}"
2426 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2427 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2430 noconfigdirs="$noconfigdirs ${libgcj}"
2433 noconfigdirs="$noconfigdirs ${libgcj}"
2436 # The EPOC C++ environment does not support exceptions or rtti,
2437 # and so building libstdc++-v3 tends not to always work.
2438 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2441 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2442 unsupported_languages="$unsupported_languages fortran java"
2445 noconfigdirs="$noconfigdirs ${libgcj}"
2448 noconfigdirs="$noconfigdirs ${libgcj}"
2451 noconfigdirs="$noconfigdirs sim"
2454 # copied from rs6000-*-* entry
2455 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2457 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2458 target_configdirs="$target_configdirs target-winsup"
2459 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2460 # always build newlib.
2461 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2463 # This is temporary until we can link against shared libraries
2464 powerpcle-*-solaris*)
2465 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2468 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2471 noconfigdirs="$noconfigdirs ${libgcj}"
2473 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2476 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2479 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2482 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2485 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2488 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2491 # Linking libjava exceeds command-line length limits on at least
2492 # IRIX 6.2, but not on IRIX 6.5.
2493 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2494 # <oldham@codesourcery.com>
2495 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2498 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2501 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2504 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2507 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2510 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2514 i[3456789]86-*-vsta) ;; # don't add gprof back in
2515 i[3456789]86-*-go32*) ;; # don't add gprof back in
2516 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2517 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2519 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2522 noconfigdirs="$noconfigdirs ${libgcj}"
2525 noconfigdirs="$noconfigdirs ${libgcj}"
2528 noconfigdirs="$noconfigdirs ${libgcj}"
2531 noconfigdirs="$noconfigdirs ${libgcj}"
2532 if test x${is_cross_compiler} != xno ; then
2533 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2538 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2539 noconfigdirs="$noconfigdirs ${libgcj}"
2541 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2544 skipdirs="target-libssp"
2547 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2550 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2553 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2556 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2559 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2562 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2565 noconfigdirs="$noconfigdirs ${libgcj}"
2568 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2570 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2574 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2577 noconfigdirs="$noconfigdirs ${libgcj}"
2581 # If we aren't building newlib, then don't build libgloss, since libgloss
2582 # depends upon some newlib header files.
2583 case "${noconfigdirs}" in
2584 *target-libgloss*) ;;
2585 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2588 # Work in distributions that contain no compiler tools, like Autoconf.
2590 host_makefile_frag=/dev/null
2591 if test -d ${srcdir}/config ; then
2594 # Avoid "too much defining" errors from HPUX compiler.
2595 tentative_cc="cc -Wp,-H256000"
2596 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2597 # If it's HP/UX ar, this should be harmless.
2601 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2604 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2605 # chokes on bfd, the compiler won't let you assign integers to enums, and
2606 # other problems. Defining CC to gcc is a questionable way to say "don't use
2607 # the apollo compiler" (the preferred version of GCC could be called cc,
2608 # or whatever), but I'm not sure leaving CC as cc is any better...
2609 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2610 # Used to have BISON=yacc.
2614 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2617 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2618 tentative_cc="cc -Xa"
2619 host_makefile_frag="config/mh-cxux"
2621 m88k-motorola-sysv*)
2624 tentative_cc="cc -Wf,-XNg1000"
2625 host_makefile_frag="config/mh-decstation"
2628 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2629 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2630 host_makefile_frag="config/mh-necv4"
2633 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2634 # environment. Also bump switch table size so that cp-parse will
2635 # compile. Bump string length limit so linker builds.
2636 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2639 host_makefile_frag="config/mh-sysv4"
2642 # This is for a MIPS running RISC/os 4.52C.
2644 # This is needed for GDB, but needs to be in the top-level make because
2645 # if a library is compiled with the bsd headers and gets linked with the
2646 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2647 # a different size).
2648 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2649 # known except to select the sysv environment. Could we use /proc instead?
2650 # These "sysv environments" and "bsd environments" often end up being a pain.
2652 # This is not part of CFLAGS because perhaps not all C compilers have this
2654 tentative_cc="cc -systype sysv"
2659 i[3456789]86-*-sysv5*)
2660 host_makefile_frag="config/mh-sysv5"
2662 i[3456789]86-*-dgux*)
2663 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2664 host_makefile_frag="config/mh-dgux386"
2666 i[3456789]86-ncr-sysv4.3*)
2667 # The MetaWare compiler will generate a copyright message unless you
2668 # turn it off by adding the -Hnocopyr flag.
2669 tentative_cc="cc -Hnocopyr"
2671 i[3456789]86-ncr-sysv4*)
2672 # for an NCR 3000 (i486/SVR4) system.
2673 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2674 # This compiler not only emits obnoxious copyright messages every time
2675 # you run it, but it chokes and dies on a whole bunch of GNU source
2676 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2677 tentative_cc="/usr/ccs/ATT/cc"
2678 host_makefile_frag="config/mh-ncr3000"
2680 i[3456789]86-*-sco3.2v5*)
2682 i[3456789]86-*-sco*)
2683 # The native C compiler botches some simple uses of const. Unfortunately,
2684 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2685 tentative_cc="cc -Dconst="
2686 host_makefile_frag="config/mh-sco"
2688 i[3456789]86-*-udk*)
2689 host_makefile_frag="config/mh-sysv5"
2691 i[3456789]86-*-solaris2*)
2692 host_makefile_frag="config/mh-sysv4"
2694 i[3456789]86-*-msdosdjgpp*)
2695 host_makefile_frag="config/mh-djgpp"
2698 host_makefile_frag="config/mh-cygwin"
2705 host_makefile_frag="config/mh-interix"
2708 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2712 host_makefile_frag="config/mh-solaris"
2715 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2716 # without overflowing the jump tables (-J says to use a 32 bit table)
2717 tentative_cc="cc -J"
2720 tentative_cc="cc -Wp,-H256000"
2723 tentative_cc="cc -Wp,-H256000"
2726 # /bin/cc is less than useful for our purposes. Always use GCC
2727 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2728 host_makefile_frag="config/mh-lynxrs6k"
2731 host_makefile_frag="config/mh-ppc-darwin"
2734 host_makefile_frag="config/mh-ppc-aix"
2737 host_makefile_frag="config/mh-ppc-aix"
2740 # /bin/cc is less than useful for our purposes. Always use GCC
2741 tentative_cc="/bin/gcc"
2744 host_makefile_frag="config/mh-sysv4"
2746 # This is placed last to prevent interfering with the cases above.
2748 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2749 host_makefile_frag="config/mh-x86omitfp"
2754 # If we aren't going to be using gcc, see if we can extract a definition
2755 # of CC from the fragment.
2756 # Actually, use the 'pre-extracted' version above.
2757 if test -z "${CC}" && test "${build}" = "${host}" ; then
2758 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2760 for dir in $PATH; do
2761 test -z "$dir" && dir=.
2762 if test -f $dir/gcc; then
2768 if test -z "${found}" && test -n "${tentative_cc}" ; then
2773 if test "${build}" != "${host}" ; then
2774 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2776 CC_FOR_BUILD="\$(CC)"
2780 ac_cpp='$CPP $CPPFLAGS'
2781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784 if test -n "$ac_tool_prefix"; then
2785 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2786 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2787 echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2789 if test "${ac_cv_prog_CC+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 if test -n "$CC"; then
2793 ac_cv_prog_CC="$CC" # Let the user override the test.
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 if test -n "$CC"; then
2813 echo "$as_me:$LINENO: result: $CC" >&5
2814 echo "${ECHO_T}$CC" >&6
2816 echo "$as_me:$LINENO: result: no" >&5
2817 echo "${ECHO_T}no" >&6
2821 if test -z "$ac_cv_prog_CC"; then
2823 # Extract the first word of "gcc", so it can be a program name with args.
2824 set dummy gcc; ac_word=$2
2825 echo "$as_me:$LINENO: checking for $ac_word" >&5
2826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2827 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 if test -n "$ac_ct_CC"; then
2831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2840 ac_cv_prog_ac_ct_CC="gcc"
2841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2850 if test -n "$ac_ct_CC"; then
2851 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2852 echo "${ECHO_T}$ac_ct_CC" >&6
2854 echo "$as_me:$LINENO: result: no" >&5
2855 echo "${ECHO_T}no" >&6
2863 if test -z "$CC"; then
2864 if test -n "$ac_tool_prefix"; then
2865 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2866 set dummy ${ac_tool_prefix}cc; ac_word=$2
2867 echo "$as_me:$LINENO: checking for $ac_word" >&5
2868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2869 if test "${ac_cv_prog_CC+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 if test -n "$CC"; then
2873 ac_cv_prog_CC="$CC" # Let the user override the test.
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882 ac_cv_prog_CC="${ac_tool_prefix}cc"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 if test -n "$CC"; then
2893 echo "$as_me:$LINENO: result: $CC" >&5
2894 echo "${ECHO_T}$CC" >&6
2896 echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6
2901 if test -z "$ac_cv_prog_CC"; then
2903 # Extract the first word of "cc", so it can be a program name with args.
2904 set dummy cc; ac_word=$2
2905 echo "$as_me:$LINENO: checking for $ac_word" >&5
2906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2907 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 if test -n "$ac_ct_CC"; then
2911 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920 ac_cv_prog_ac_ct_CC="cc"
2921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2930 if test -n "$ac_ct_CC"; then
2931 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2932 echo "${ECHO_T}$ac_ct_CC" >&6
2934 echo "$as_me:$LINENO: result: no" >&5
2935 echo "${ECHO_T}no" >&6
2944 if test -z "$CC"; then
2945 # Extract the first word of "cc", so it can be a program name with args.
2946 set dummy cc; ac_word=$2
2947 echo "$as_me:$LINENO: checking for $ac_word" >&5
2948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2949 if test "${ac_cv_prog_CC+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 if test -n "$CC"; then
2953 ac_cv_prog_CC="$CC" # Let the user override the test.
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2964 ac_prog_rejected=yes
2968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 if test $ac_prog_rejected = yes; then
2975 # We found a bogon in the path, so make sure we never use it.
2976 set dummy $ac_cv_prog_CC
2978 if test $# != 0; then
2979 # We chose a different compiler from the bogus one.
2980 # However, it has the same basename, so the bogon will be chosen
2981 # first if we set CC to just the basename; use the full file name.
2983 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2989 if test -n "$CC"; then
2990 echo "$as_me:$LINENO: result: $CC" >&5
2991 echo "${ECHO_T}$CC" >&6
2993 echo "$as_me:$LINENO: result: no" >&5
2994 echo "${ECHO_T}no" >&6
2998 if test -z "$CC"; then
2999 if test -n "$ac_tool_prefix"; then
3002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3004 echo "$as_me:$LINENO: checking for $ac_word" >&5
3005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3006 if test "${ac_cv_prog_CC+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 if test -n "$CC"; then
3030 echo "$as_me:$LINENO: result: $CC" >&5
3031 echo "${ECHO_T}$CC" >&6
3033 echo "$as_me:$LINENO: result: no" >&5
3034 echo "${ECHO_T}no" >&6
3037 test -n "$CC" && break
3040 if test -z "$CC"; then
3044 # Extract the first word of "$ac_prog", so it can be a program name with args.
3045 set dummy $ac_prog; ac_word=$2
3046 echo "$as_me:$LINENO: checking for $ac_word" >&5
3047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3048 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 if test -n "$ac_ct_CC"; then
3052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061 ac_cv_prog_ac_ct_CC="$ac_prog"
3062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3071 if test -n "$ac_ct_CC"; then
3072 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3073 echo "${ECHO_T}$ac_ct_CC" >&6
3075 echo "$as_me:$LINENO: result: no" >&5
3076 echo "${ECHO_T}no" >&6
3079 test -n "$ac_ct_CC" && break
3088 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3089 See \`config.log' for more details." >&5
3090 echo "$as_me: error: no acceptable C compiler found in \$PATH
3091 See \`config.log' for more details." >&2;}
3092 { (exit 1); exit 1; }; }
3094 # Provide some information about the compiler.
3095 echo "$as_me:$LINENO:" \
3096 "checking for C compiler version" >&5
3097 ac_compiler=`set X $ac_compile; echo $2`
3098 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3099 (eval $ac_compiler --version </dev/null >&5) 2>&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }
3103 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3104 (eval $ac_compiler -v </dev/null >&5) 2>&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }
3108 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3109 (eval $ac_compiler -V </dev/null >&5) 2>&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }
3114 cat >conftest.$ac_ext <<_ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3129 ac_clean_files_save=$ac_clean_files
3130 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3131 # Try to create an executable without -o first, disregard a.out.
3132 # It will help us diagnose broken compilers, and finding out an intuition
3134 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3135 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3136 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3137 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3138 (eval $ac_link_default) 2>&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; then
3142 # Find the output, starting from the most likely. This scheme is
3143 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3146 # Be careful to initialize this variable, since it used to be cached.
3147 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3149 # b.out is created by i960 compilers.
3150 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3152 test -f "$ac_file" || continue
3154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3157 # This is the source file.
3160 # We found the default executable, but exeext='' is most
3164 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3165 # FIXME: I believe we export ac_cv_exeext for Libtool,
3166 # but it would be cool to find out if it's true. Does anybody
3167 # maintain Libtool? --akim.
3175 echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3178 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3179 See \`config.log' for more details." >&5
3180 echo "$as_me: error: C compiler cannot create executables
3181 See \`config.log' for more details." >&2;}
3182 { (exit 77); exit 77; }; }
3185 ac_exeext=$ac_cv_exeext
3186 echo "$as_me:$LINENO: result: $ac_file" >&5
3187 echo "${ECHO_T}$ac_file" >&6
3189 # Check the compiler produces executables we can run. If not, either
3190 # the compiler is broken, or we cross compile.
3191 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3192 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3193 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3194 # If not cross compiling, check that we can run a simple program.
3195 if test "$cross_compiling" != yes; then
3196 if { ac_try='./$ac_file'
3197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3204 if test "$cross_compiling" = maybe; then
3207 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3208 If you meant to cross compile, use \`--host'.
3209 See \`config.log' for more details." >&5
3210 echo "$as_me: error: cannot run C compiled programs.
3211 If you meant to cross compile, use \`--host'.
3212 See \`config.log' for more details." >&2;}
3213 { (exit 1); exit 1; }; }
3217 echo "$as_me:$LINENO: result: yes" >&5
3218 echo "${ECHO_T}yes" >&6
3220 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3221 ac_clean_files=$ac_clean_files_save
3222 # Check the compiler produces executables we can run. If not, either
3223 # the compiler is broken, or we cross compile.
3224 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3225 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3226 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3227 echo "${ECHO_T}$cross_compiling" >&6
3229 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3230 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3232 (eval $ac_link) 2>&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }; then
3236 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3237 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3238 # work properly (i.e., refer to `conftest.exe'), while it won't with
3240 for ac_file in conftest.exe conftest conftest.*; do
3241 test -f "$ac_file" || continue
3243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3244 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3251 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3252 See \`config.log' for more details." >&5
3253 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3254 See \`config.log' for more details." >&2;}
3255 { (exit 1); exit 1; }; }
3258 rm -f conftest$ac_cv_exeext
3259 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3260 echo "${ECHO_T}$ac_cv_exeext" >&6
3262 rm -f conftest.$ac_ext
3263 EXEEXT=$ac_cv_exeext
3265 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3266 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3267 if test "${ac_cv_objext+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 cat >conftest.$ac_ext <<_ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3285 rm -f conftest.o conftest.obj
3286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3287 (eval $ac_compile) 2>&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; then
3291 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3294 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3299 echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3302 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3303 See \`config.log' for more details." >&5
3304 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3305 See \`config.log' for more details." >&2;}
3306 { (exit 1); exit 1; }; }
3309 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3311 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3312 echo "${ECHO_T}$ac_cv_objext" >&6
3313 OBJEXT=$ac_cv_objext
3315 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3316 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3317 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 cat >conftest.$ac_ext <<_ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3338 rm -f conftest.$ac_objext
3339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3340 (eval $ac_compile) 2>conftest.er1
3342 grep -v '^ *+' conftest.er1 >conftest.err
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try='test -z "$ac_c_werror_flag"
3348 || test ! -s conftest.err'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; } &&
3354 { ac_try='test -s conftest.$ac_objext'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3362 echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3368 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3371 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3372 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3373 GCC=`test $ac_compiler_gnu = yes && echo yes`
3374 ac_test_CFLAGS=${CFLAGS+set}
3375 ac_save_CFLAGS=$CFLAGS
3377 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3378 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3379 if test "${ac_cv_prog_cc_g+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 cat >conftest.$ac_ext <<_ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3397 rm -f conftest.$ac_objext
3398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3399 (eval $ac_compile) 2>conftest.er1
3401 grep -v '^ *+' conftest.er1 >conftest.err
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } &&
3406 { ac_try='test -z "$ac_c_werror_flag"
3407 || test ! -s conftest.err'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; } &&
3413 { ac_try='test -s conftest.$ac_objext'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; }; then
3421 echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3428 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3429 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3430 if test "$ac_test_CFLAGS" = set; then
3431 CFLAGS=$ac_save_CFLAGS
3432 elif test $ac_cv_prog_cc_g = yes; then
3433 if test "$GCC" = yes; then
3439 if test "$GCC" = yes; then
3445 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3446 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3447 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 ac_cv_prog_cc_stdc=no
3452 cat >conftest.$ac_ext <<_ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h. */
3460 #include <sys/types.h>
3461 #include <sys/stat.h>
3462 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3463 struct buf { int x; };
3464 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3465 static char *e (p, i)
3471 static char *f (char * (*g) (char **, int), char **p, ...)
3476 s = g (p, va_arg (v,int));
3481 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3482 function prototypes and stuff, but not '\xHH' hex character constants.
3483 These don't provoke an error unfortunately, instead are silently treated
3484 as 'x'. The following induces an error, until -std1 is added to get
3485 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3486 array size at least. It's necessary to write '\x00'==0 to get something
3487 that's true only with -std1. */
3488 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3490 int test (int i, double x);
3491 struct s1 {int (*f) (int a);};
3492 struct s2 {int (*f) (double a);};
3493 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3499 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3504 # Don't try gcc -ansi; that turns off useful extensions and
3505 # breaks some systems' header files.
3506 # AIX -qlanglvl=ansi
3507 # Ultrix and OSF/1 -std1
3508 # HP-UX 10.20 and later -Ae
3509 # HP-UX older versions -Aa -D_HPUX_SOURCE
3510 # SVR4 -Xc -D__EXTENSIONS__
3511 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3513 CC="$ac_save_CC $ac_arg"
3514 rm -f conftest.$ac_objext
3515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3516 (eval $ac_compile) 2>conftest.er1
3518 grep -v '^ *+' conftest.er1 >conftest.err
3520 cat conftest.err >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); } &&
3523 { ac_try='test -z "$ac_c_werror_flag"
3524 || test ! -s conftest.err'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; } &&
3530 { ac_try='test -s conftest.$ac_objext'
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; }; then
3536 ac_cv_prog_cc_stdc=$ac_arg
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3543 rm -f conftest.err conftest.$ac_objext
3545 rm -f conftest.$ac_ext conftest.$ac_objext
3550 case "x$ac_cv_prog_cc_stdc" in
3552 echo "$as_me:$LINENO: result: none needed" >&5
3553 echo "${ECHO_T}none needed" >&6 ;;
3555 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3556 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3557 CC="$CC $ac_cv_prog_cc_stdc" ;;
3560 # Some people use a C++ compiler to compile C. Since we use `exit',
3561 # in C++ we need to declare it. In case someone uses the same compiler
3562 # for both compiling C and C++ we need to have the C++ compiler decide
3563 # the declaration of exit, since it's the most demanding environment.
3564 cat >conftest.$ac_ext <<_ACEOF
3569 rm -f conftest.$ac_objext
3570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3571 (eval $ac_compile) 2>conftest.er1
3573 grep -v '^ *+' conftest.er1 >conftest.err
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } &&
3578 { ac_try='test -z "$ac_c_werror_flag"
3579 || test ! -s conftest.err'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; } &&
3585 { ac_try='test -s conftest.$ac_objext'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; }; then
3591 for ac_declaration in \
3593 'extern "C" void std::exit (int) throw (); using std::exit;' \
3594 'extern "C" void std::exit (int); using std::exit;' \
3595 'extern "C" void exit (int) throw ();' \
3596 'extern "C" void exit (int);' \
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3615 rm -f conftest.$ac_objext
3616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3617 (eval $ac_compile) 2>conftest.er1
3619 grep -v '^ *+' conftest.er1 >conftest.err
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } &&
3624 { ac_try='test -z "$ac_c_werror_flag"
3625 || test ! -s conftest.err'
3626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; } &&
3631 { ac_try='test -s conftest.$ac_objext'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3639 echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3645 cat >conftest.$ac_ext <<_ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3660 rm -f conftest.$ac_objext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662 (eval $ac_compile) 2>conftest.er1
3664 grep -v '^ *+' conftest.er1 >conftest.err
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try='test -z "$ac_c_werror_flag"
3670 || test ! -s conftest.err'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try='test -s conftest.$ac_objext'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3691 if test -n "$ac_declaration"; then
3692 echo '#ifdef __cplusplus' >>confdefs.h
3693 echo $ac_declaration >>confdefs.h
3694 echo '#endif' >>confdefs.h
3698 echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3704 ac_cpp='$CPP $CPPFLAGS'
3705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710 ac_cpp='$CXXCPP $CPPFLAGS'
3711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3714 if test -n "$ac_tool_prefix"; then
3715 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3718 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3719 echo "$as_me:$LINENO: checking for $ac_word" >&5
3720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3721 if test "${ac_cv_prog_CXX+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 if test -n "$CXX"; then
3725 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3734 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 if test -n "$CXX"; then
3745 echo "$as_me:$LINENO: result: $CXX" >&5
3746 echo "${ECHO_T}$CXX" >&6
3748 echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6
3752 test -n "$CXX" && break
3755 if test -z "$CXX"; then
3757 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3759 # Extract the first word of "$ac_prog", so it can be a program name with args.
3760 set dummy $ac_prog; ac_word=$2
3761 echo "$as_me:$LINENO: checking for $ac_word" >&5
3762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3763 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 if test -n "$ac_ct_CXX"; then
3767 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776 ac_cv_prog_ac_ct_CXX="$ac_prog"
3777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3786 if test -n "$ac_ct_CXX"; then
3787 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3788 echo "${ECHO_T}$ac_ct_CXX" >&6
3790 echo "$as_me:$LINENO: result: no" >&5
3791 echo "${ECHO_T}no" >&6
3794 test -n "$ac_ct_CXX" && break
3796 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3802 # Provide some information about the compiler.
3803 echo "$as_me:$LINENO:" \
3804 "checking for C++ compiler version" >&5
3805 ac_compiler=`set X $ac_compile; echo $2`
3806 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3807 (eval $ac_compiler --version </dev/null >&5) 2>&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }
3811 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3812 (eval $ac_compiler -v </dev/null >&5) 2>&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }
3816 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3817 (eval $ac_compiler -V </dev/null >&5) 2>&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }
3822 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3823 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3824 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 cat >conftest.$ac_ext <<_ACEOF
3830 cat confdefs.h >>conftest.$ac_ext
3831 cat >>conftest.$ac_ext <<_ACEOF
3832 /* end confdefs.h. */
3845 rm -f conftest.$ac_objext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3847 (eval $ac_compile) 2>conftest.er1
3849 grep -v '^ *+' conftest.er1 >conftest.err
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_cxx_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3875 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3878 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3879 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3880 GXX=`test $ac_compiler_gnu = yes && echo yes`
3881 ac_test_CXXFLAGS=${CXXFLAGS+set}
3882 ac_save_CXXFLAGS=$CXXFLAGS
3884 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3885 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3886 if test "${ac_cv_prog_cxx_g+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 cat >conftest.$ac_ext <<_ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3904 rm -f conftest.$ac_objext
3905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3906 (eval $ac_compile) 2>conftest.er1
3908 grep -v '^ *+' conftest.er1 >conftest.err
3910 cat conftest.err >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } &&
3913 { ac_try='test -z "$ac_cxx_werror_flag"
3914 || test ! -s conftest.err'
3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); }; } &&
3920 { ac_try='test -s conftest.$ac_objext'
3921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }; }; then
3926 ac_cv_prog_cxx_g=yes
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3935 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3936 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3937 if test "$ac_test_CXXFLAGS" = set; then
3938 CXXFLAGS=$ac_save_CXXFLAGS
3939 elif test $ac_cv_prog_cxx_g = yes; then
3940 if test "$GXX" = yes; then
3946 if test "$GXX" = yes; then
3952 for ac_declaration in \
3954 'extern "C" void std::exit (int) throw (); using std::exit;' \
3955 'extern "C" void std::exit (int); using std::exit;' \
3956 'extern "C" void exit (int) throw ();' \
3957 'extern "C" void exit (int);' \
3960 cat >conftest.$ac_ext <<_ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3976 rm -f conftest.$ac_objext
3977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3978 (eval $ac_compile) 2>conftest.er1
3980 grep -v '^ *+' conftest.er1 >conftest.err
3982 cat conftest.err >&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } &&
3985 { ac_try='test -z "$ac_cxx_werror_flag"
3986 || test ! -s conftest.err'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; } &&
3992 { ac_try='test -s conftest.$ac_objext'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; }; then
4000 echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4006 cat >conftest.$ac_ext <<_ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4021 rm -f conftest.$ac_objext
4022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4023 (eval $ac_compile) 2>conftest.er1
4025 grep -v '^ *+' conftest.er1 >conftest.err
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try='test -z "$ac_cxx_werror_flag"
4031 || test ! -s conftest.err'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; } &&
4037 { ac_try='test -s conftest.$ac_objext'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
4045 echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.$ac_ext >&5
4049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4052 if test -n "$ac_declaration"; then
4053 echo '#ifdef __cplusplus' >>confdefs.h
4054 echo $ac_declaration >>confdefs.h
4055 echo '#endif' >>confdefs.h
4059 ac_cpp='$CPP $CPPFLAGS'
4060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4065 # We must set the default linker to the linker used by gcc for the correct
4066 # operation of libtool. If LD is not defined and we are using gcc, try to
4067 # set the LD default to the ld used by gcc.
4068 if test -z "$LD"; then
4069 if test "$GCC" = yes; then
4072 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4074 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4076 case $gcc_prog_ld in
4077 # Accept absolute paths.
4078 [\\/]* | [A-Za-z]:[\\/]*)
4079 LD="$gcc_prog_ld" ;;
4087 if test -n "$ac_tool_prefix"; then
4088 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4089 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4090 echo "$as_me:$LINENO: checking for $ac_word" >&5
4091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4092 if test "${ac_cv_prog_GNATBIND+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 if test -n "$GNATBIND"; then
4096 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 test -z "$as_dir" && as_dir=.
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4105 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 GNATBIND=$ac_cv_prog_GNATBIND
4115 if test -n "$GNATBIND"; then
4116 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4117 echo "${ECHO_T}$GNATBIND" >&6
4119 echo "$as_me:$LINENO: result: no" >&5
4120 echo "${ECHO_T}no" >&6
4124 if test -z "$ac_cv_prog_GNATBIND"; then
4125 ac_ct_GNATBIND=$GNATBIND
4126 # Extract the first word of "gnatbind", so it can be a program name with args.
4127 set dummy gnatbind; ac_word=$2
4128 echo "$as_me:$LINENO: checking for $ac_word" >&5
4129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4130 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 if test -n "$ac_ct_GNATBIND"; then
4134 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 test -z "$as_dir" && as_dir=.
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4143 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4150 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
4153 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4154 if test -n "$ac_ct_GNATBIND"; then
4155 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4156 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
4158 echo "$as_me:$LINENO: result: no" >&5
4159 echo "${ECHO_T}no" >&6
4162 GNATBIND=$ac_ct_GNATBIND
4164 GNATBIND="$ac_cv_prog_GNATBIND"
4167 if test -n "$ac_tool_prefix"; then
4168 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4169 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4170 echo "$as_me:$LINENO: checking for $ac_word" >&5
4171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4172 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4173 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 if test -n "$GNATMAKE"; then
4176 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 test -z "$as_dir" && as_dir=.
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4185 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4194 GNATMAKE=$ac_cv_prog_GNATMAKE
4195 if test -n "$GNATMAKE"; then
4196 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4197 echo "${ECHO_T}$GNATMAKE" >&6
4199 echo "$as_me:$LINENO: result: no" >&5
4200 echo "${ECHO_T}no" >&6
4204 if test -z "$ac_cv_prog_GNATMAKE"; then
4205 ac_ct_GNATMAKE=$GNATMAKE
4206 # Extract the first word of "gnatmake", so it can be a program name with args.
4207 set dummy gnatmake; ac_word=$2
4208 echo "$as_me:$LINENO: checking for $ac_word" >&5
4209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4210 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4213 if test -n "$ac_ct_GNATMAKE"; then
4214 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4223 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
4233 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4234 if test -n "$ac_ct_GNATMAKE"; then
4235 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4236 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
4238 echo "$as_me:$LINENO: result: no" >&5
4239 echo "${ECHO_T}no" >&6
4242 GNATMAKE=$ac_ct_GNATMAKE
4244 GNATMAKE="$ac_cv_prog_GNATMAKE"
4247 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4248 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4249 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4250 echo $ECHO_N "(cached) $ECHO_C" >&6
4252 cat >conftest.adb <<EOF
4253 procedure conftest is begin null; end conftest;
4255 acx_cv_cc_gcc_supports_ada=no
4256 # There is a bug in old released versions of GCC which causes the
4257 # driver to exit successfully when the appropriate language module
4258 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4259 # Therefore we must check for the error message as well as an
4260 # unsuccessful exit.
4261 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4262 # given a .adb file, but produce no object file. So we must check
4263 # if an object file was really produced to guard against this.
4264 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4265 if test x"$errors" = x && test -f conftest.$ac_objext; then
4266 acx_cv_cc_gcc_supports_ada=yes
4270 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4271 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
4273 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4279 echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4280 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4281 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4287 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4288 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4291 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4294 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4295 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4298 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4304 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4305 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4306 do_compare="$gcc_cv_prog_cmp_skip"
4310 # Check for GMP and MPFR
4311 gmplibs="-lmpfr -lgmp"
4315 # Specify a location for mpfr
4316 # check for this first so it ends up on the link line before gmp.
4318 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4319 if test "${with_mpfr_dir+set}" = set; then
4320 withval="$with_mpfr_dir"
4321 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4322 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4323 echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4324 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4325 { (exit 1); exit 1; }; }
4329 # Check whether --with-mpfr or --without-mpfr was given.
4330 if test "${with_mpfr+set}" = set; then
4331 withval="$with_mpfr"
4335 # Check whether --with-mpfr_include or --without-mpfr_include was given.
4336 if test "${with_mpfr_include+set}" = set; then
4337 withval="$with_mpfr_include"
4341 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4342 if test "${with_mpfr_lib+set}" = set; then
4343 withval="$with_mpfr_lib"
4347 if test "x$with_mpfr" != x; then
4348 gmplibs="-L$with_mpfr/lib $gmplibs"
4349 gmpinc="-I$with_mpfr/include"
4351 if test "x$with_mpfr_include" != x; then
4352 gmpinc="-I$with_mpfr_include"
4354 if test "x$with_mpfr_lib" != x; then
4355 gmplibs="-L$with_mpfr_lib $gmplibs"
4357 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4358 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4359 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4360 # Do not test the mpfr version. Assume that it is sufficient, since
4361 # it is in the source tree, and the library has not been built yet
4362 # but it would be included on the link line in the version check below
4363 # hence making the test fail.
4367 # Specify a location for gmp
4369 # Check whether --with-gmp-dir or --without-gmp-dir was given.
4370 if test "${with_gmp_dir+set}" = set; then
4371 withval="$with_gmp_dir"
4372 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4373 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4374 echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4375 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4376 { (exit 1); exit 1; }; }
4380 # Check whether --with-gmp or --without-gmp was given.
4381 if test "${with_gmp+set}" = set; then
4386 # Check whether --with-gmp_include or --without-gmp_include was given.
4387 if test "${with_gmp_include+set}" = set; then
4388 withval="$with_gmp_include"
4392 # Check whether --with-gmp_lib or --without-gmp_lib was given.
4393 if test "${with_gmp_lib+set}" = set; then
4394 withval="$with_gmp_lib"
4399 if test "x$with_gmp" != x; then
4400 gmplibs="-L$with_gmp/lib $gmplibs"
4401 gmpinc="-I$with_gmp/include $gmpinc"
4403 if test "x$with_gmp_include" != x; then
4404 gmpinc="-I$with_gmp_include $gmpinc"
4406 if test "x$with_gmp_lib" != x; then
4407 gmplibs="-L$with_gmp_lib $gmplibs"
4409 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4410 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4411 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4412 # Do not test the gmp version. Assume that it is sufficient, since
4413 # it is in the source tree, and the library has not been built yet
4414 # but it would be included on the link line in the version check below
4415 # hence making the test fail.
4419 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4421 saved_CFLAGS="$CFLAGS"
4422 CFLAGS="$CFLAGS $gmpinc"
4423 # Check GMP actually works
4424 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4425 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4427 cat >conftest.$ac_ext <<_ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4438 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4446 rm -f conftest.$ac_objext
4447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4448 (eval $ac_compile) 2>conftest.er1
4450 grep -v '^ *+' conftest.er1 >conftest.err
4452 cat conftest.err >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } &&
4455 { ac_try='test -z "$ac_c_werror_flag"
4456 || test ! -s conftest.err'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; } &&
4462 { ac_try='test -s conftest.$ac_objext'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; }; then
4468 echo "$as_me:$LINENO: result: yes" >&5
4469 echo "${ECHO_T}yes" >&6
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6; have_gmp=no
4477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4479 if test x"$have_gmp" = xyes; then
4481 LIBS="$LIBS $gmplibs"
4482 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4483 echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4484 cat >conftest.$ac_ext <<_ACEOF
4487 cat confdefs.h >>conftest.$ac_ext
4488 cat >>conftest.$ac_ext <<_ACEOF
4489 /* end confdefs.h. */
4496 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4504 mpfr_atan2 (n, n, x, GMP_RNDN);
4505 mpfr_erfc (n, x, GMP_RNDN);
4506 mpfr_subnormalize (x, t, GMP_RNDN);
4512 rm -f conftest.$ac_objext conftest$ac_exeext
4513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4514 (eval $ac_link) 2>conftest.er1
4516 grep -v '^ *+' conftest.er1 >conftest.err
4518 cat conftest.err >&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); } &&
4521 { ac_try='test -z "$ac_c_werror_flag"
4522 || test ! -s conftest.err'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; } &&
4528 { ac_try='test -s conftest$ac_exeext'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; }; then
4534 cat >conftest.$ac_ext <<_ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4546 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4549 mpfr_t n; mpfr_init(n);
4555 rm -f conftest.$ac_objext conftest$ac_exeext
4556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4557 (eval $ac_link) 2>conftest.er1
4559 grep -v '^ *+' conftest.er1 >conftest.err
4561 cat conftest.err >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
4564 { ac_try='test -z "$ac_c_werror_flag"
4565 || test ! -s conftest.err'
4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; } &&
4571 { ac_try='test -s conftest$ac_exeext'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
4577 echo "$as_me:$LINENO: result: yes" >&5
4578 echo "${ECHO_T}yes" >&6
4580 echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4583 echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4584 echo "${ECHO_T}buggy but acceptable" >&6
4586 rm -f conftest.err conftest.$ac_objext \
4587 conftest$ac_exeext conftest.$ac_ext
4589 echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4592 echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6; have_gmp=no
4595 rm -f conftest.err conftest.$ac_objext \
4596 conftest$ac_exeext conftest.$ac_ext
4599 CFLAGS="$saved_CFLAGS"
4601 if test x$have_gmp != xyes; then
4602 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4603 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4604 Copies of these libraries' source code can be found at their respective
4605 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4606 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4607 If you obtained GMP and/or MPFR from a vendor distribution package, make
4608 sure that you have installed both the libraries and the header files.
4609 They may be located in separate packages." >&5
4610 echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4611 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4612 Copies of these libraries' source code can be found at their respective
4613 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4614 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4615 If you obtained GMP and/or MPFR from a vendor distribution package, make
4616 sure that you have installed both the libraries and the header files.
4617 They may be located in separate packages." >&2;}
4618 { (exit 1); exit 1; }; }
4622 # Flags needed for both GMP and/or MPFR
4626 # By default, C is the only stage 1 language.
4627 stage1_languages=,c,
4629 # Figure out what language subdirectories are present.
4630 # Look if the user specified --enable-languages="..."; if not, use
4631 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4633 # NB: embedded tabs in this IF block -- do not untabify
4634 if test -d ${srcdir}/gcc; then
4635 if test x"${enable_languages+set}" != xset; then
4636 if test x"${LANGUAGES+set}" = xset; then
4637 enable_languages="${LANGUAGES}"
4638 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4640 enable_languages=all
4643 if test x"${enable_languages}" = x ||
4644 test x"${enable_languages}" = xyes;
4646 echo configure.in: --enable-languages needs at least one language argument 1>&2
4650 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4652 # 'f95' is the old name for the 'fortran' language. We issue a warning
4653 # and make the substitution.
4654 case ,${enable_languages}, in
4656 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4657 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4661 # First scan to see if an enabled language requires some other language.
4662 # We assume that a given config-lang.in will list all the language
4663 # front ends it requires, even if some are required indirectly.
4664 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4665 case ${lang_frag} in
4667 # The odd quoting in the next line works around
4668 # an apparent bug in bash 1.12 on linux.
4669 ${srcdir}/gcc/[*]/config-lang.in) ;;
4671 # From the config-lang.in, get $language, $lang_requires
4675 for other in ${lang_requires} ; do
4676 case ,${enable_languages}, in
4680 echo " \`$other' language required by \`$language'; enabling" 1>&2
4681 enable_languages="${enable_languages},${other}"
4689 new_enable_languages=,c,
4690 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
4691 potential_languages=,c,
4693 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4694 case ${lang_frag} in
4696 # The odd quoting in the next line works around
4697 # an apparent bug in bash 1.12 on linux.
4698 ${srcdir}/gcc/[*]/config-lang.in) ;;
4700 # From the config-lang.in, get $language, $target_libs,
4701 # $lang_dirs, $boot_language, and $build_by_default
4707 build_by_default=yes
4709 if test x${language} = x; then
4710 echo "${lang_frag} doesn't set \$language." 1>&2
4714 case ,${enable_languages}, in
4716 # Language was explicitly selected; include it.
4720 # 'all' was selected, select it if it is a default language
4721 add_this_lang=${build_by_default}
4728 # Disable languages that need other directories if these aren't available.
4729 for i in $subdir_requires; do
4730 test -f "$srcdir/gcc/$i/config-lang.in" && continue
4731 case ,${enable_languages}, in
4733 # Specifically requested language; tell them.
4734 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4735 echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4736 { (exit 1); exit 1; }; }
4740 add_this_lang=unsupported
4745 # Disable Ada if no preexisting GNAT is available.
4746 case ,${enable_languages},:${language}:${have_gnat} in
4747 *,${language},*:ada:no)
4748 # Specifically requested language; tell them.
4749 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4750 echo "$as_me: error: GNAT is required to build $language" >&2;}
4751 { (exit 1); exit 1; }; }
4755 add_this_lang=unsupported
4759 # Disable a language that is unsupported by the target.
4760 case " $unsupported_languages " in
4762 add_this_lang=unsupported
4766 case $add_this_lang in
4768 # Remove language-dependent dirs.
4769 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4772 # Remove language-dependent dirs; still show language as supported.
4773 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4774 potential_languages="${potential_languages}${language},"
4777 new_enable_languages="${new_enable_languages}${language},"
4778 potential_languages="${potential_languages}${language},"
4779 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4780 case ${boot_language} in
4782 # Add to (comma-separated) list of stage 1 languages.
4783 stage1_languages="${stage1_languages}${language},"
4792 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4793 if test "${enable_stage1_languages+set}" = set; then
4794 enableval="$enable_stage1_languages"
4795 case ,${enable_stage1_languages}, in
4797 # Set it to something that will have no effect in the loop below
4798 enable_stage1_languages=c ;;
4800 enable_stage1_languages=`echo $new_enable_languages | \
4801 sed -e "s/^,//" -e "s/,$//" ` ;;
4803 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4804 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4807 # Add "good" languages from enable_stage1_languages to stage1_languages,
4808 # while "bad" languages go in missing_languages. Leave no duplicates.
4809 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4810 case $potential_languages in
4812 case $stage1_languages in
4814 *) stage1_languages="$stage1_languages$i," ;;
4817 case $missing_languages in
4819 *) missing_languages="$missing_languages$i," ;;
4825 # Remove leading/trailing commas that were added for simplicity
4826 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4827 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
4828 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4829 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4831 if test "x$missing_languages" != x; then
4832 { { echo "$as_me:$LINENO: error:
4833 The following requested languages could not be built: ${missing_languages}
4834 Supported languages are: ${potential_languages}" >&5
4835 echo "$as_me: error:
4836 The following requested languages could not be built: ${missing_languages}
4837 Supported languages are: ${potential_languages}" >&2;}
4838 { (exit 1); exit 1; }; }
4840 if test "x$new_enable_languages" != "x$enable_languages"; then
4841 echo The following languages will be built: ${new_enable_languages}
4842 enable_languages="$new_enable_languages"
4846 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
4849 # Handle --disable-<component> generically.
4850 for dir in $configdirs $build_configdirs $target_configdirs ; do
4851 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4852 if eval test x\${enable_${dirname}} "=" xno ; then
4853 noconfigdirs="$noconfigdirs $dir"
4857 # Check for Boehm's garbage collector
4858 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4859 if test "${enable_objc_gc+set}" = set; then
4860 enableval="$enable_objc_gc"
4861 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4862 *,objc,*:*:yes:*target-boehm-gc*)
4863 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4864 echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4865 { (exit 1); exit 1; }; }
4870 # Make sure we only build Boehm's garbage collector if required.
4871 case ,${enable_languages},:${enable_objc_gc} in
4873 # Keep target-boehm-gc if requested for Objective-C.
4876 # Otherwise remove target-boehm-gc depending on target-libjava.
4877 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4878 noconfigdirs="$noconfigdirs target-boehm-gc"
4883 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4884 # $build_configdirs and $target_configdirs.
4885 # If we have the source for $noconfigdirs entries, add them to $notsupp.
4888 for dir in . $skipdirs $noconfigdirs ; do
4889 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
4890 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4891 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4892 if test -r $srcdir/$dirname/configure ; then
4893 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4896 notsupp="$notsupp $dir"
4900 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4901 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4902 if test -r $srcdir/$dirname/configure ; then
4903 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4906 notsupp="$notsupp $dir"
4910 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4911 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4912 if test -r $srcdir/$dirname/configure ; then
4913 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4916 notsupp="$notsupp $dir"
4922 # Sometimes the tools are distributed with libiberty but with no other
4923 # libraries. In that case, we don't want to build target-libiberty.
4924 # Don't let libgcc imply libiberty either.
4925 if test -n "${target_configdirs}" ; then
4928 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
4929 if test "$i" = "libgcc"; then
4930 libgcc=target-libgcc
4931 elif test "$i" != "libiberty" ; then
4932 if test -r $srcdir/$i/configure ; then
4938 if test -z "${others}" ; then
4939 target_configdirs=$libgcc
4943 # Quietly strip out all directories which aren't configurable in this tree.
4944 # This relies on all configurable subdirectories being autoconfiscated, which
4946 build_configdirs_all="$build_configdirs"
4948 for i in ${build_configdirs_all} ; do
4949 j=`echo $i | sed -e s/build-//g`
4950 if test -f ${srcdir}/$j/configure ; then
4951 build_configdirs="${build_configdirs} $i"
4955 configdirs_all="$configdirs"
4957 for i in ${configdirs_all} ; do
4958 if test -f ${srcdir}/$i/configure ; then
4959 configdirs="${configdirs} $i"
4963 target_configdirs_all="$target_configdirs"
4965 for i in ${target_configdirs_all} ; do
4966 j=`echo $i | sed -e s/target-//g`
4967 if test -f ${srcdir}/$j/configure ; then
4968 target_configdirs="${target_configdirs} $i"
4972 # Produce a warning message for the subdirs we can't configure.
4973 # This isn't especially interesting in the Cygnus tree, but in the individual
4974 # FSF releases, it's important to let people know when their machine isn't
4975 # supported by the one or two programs in a package.
4977 if test -n "${notsupp}" && test -z "${norecursion}" ; then
4978 # If $appdirs is non-empty, at least one of those directories must still
4979 # be configured, or we error out. (E.g., if the gas release supports a
4980 # specified target in some subdirs but not the gas subdir, we shouldn't
4981 # pretend that all is well.)
4982 if test -n "$appdirs" ; then
4983 for dir in $appdirs ; do
4984 if test -r $dir/Makefile.in ; then
4985 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4989 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
4995 if test -n "$appdirs" ; then
4996 echo "*** This configuration is not supported by this package." 1>&2
5000 # Okay, some application will build, or we don't care to check. Still
5001 # notify of subdirs not getting built.
5002 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5003 echo " ${notsupp}" 1>&2
5004 echo " (Any other directories should still work fine.)" 1>&2
5012 # To find our prefix, in gcc_cv_tool_prefix.
5014 # The user is always right.
5015 if test "${PATH_SEPARATOR+set}" != set; then
5016 echo "#! /bin/sh" >conf$$.sh
5017 echo "exit 0" >>conf$$.sh
5019 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5029 if test "x$exec_prefix" = xNONE; then
5030 if test "x$prefix" = xNONE; then
5031 gcc_cv_tool_prefix=$ac_default_prefix
5033 gcc_cv_tool_prefix=$prefix
5036 gcc_cv_tool_prefix=$exec_prefix
5039 # If there is no compiler in the tree, use the PATH only. In any
5040 # case, if there is no compiler in the tree nobody should use
5041 # AS_FOR_TARGET and LD_FOR_TARGET.
5042 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5043 gcc_version=`cat $srcdir/gcc/BASE-VER`
5044 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5045 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5046 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5047 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5048 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5049 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5054 if test x$build = x$target && test -n "$md_exec_prefix"; then
5055 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5063 # Check whether --with-build-sysroot or --without-build-sysroot was given.
5064 if test "${with_build_sysroot+set}" = set; then
5065 withval="$with_build_sysroot"
5066 if test x"$withval" != x ; then
5067 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5070 SYSROOT_CFLAGS_FOR_TARGET=
5075 # Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5076 if test "${with_debug_prefix_map+set}" = set; then
5077 withval="$with_debug_prefix_map"
5078 if test x"$withval" != x; then
5079 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5080 for debug_map in $withval; do
5081 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5085 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5089 # Handle --with-headers=XXX. If the value is not "yes", the contents of
5090 # the named directory are copied to $(tooldir)/sys-include.
5091 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5092 if test x${is_cross_compiler} = xno ; then
5093 echo 1>&2 '***' --with-headers is only supported when cross compiling
5096 if test x"${with_headers}" != xyes ; then
5097 x=${gcc_cv_tool_prefix}
5098 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
5102 # Handle --with-libs=XXX. If the value is not "yes", the contents of
5103 # the name directories are copied to $(tooldir)/lib. Multiple directories
5105 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5106 if test x${is_cross_compiler} = xno ; then
5107 echo 1>&2 '***' --with-libs is only supported when cross compiling
5110 if test x"${with_libs}" != xyes ; then
5111 # Copy the libraries in reverse order, so that files in the first named
5112 # library override files in subsequent libraries.
5113 x=${gcc_cv_tool_prefix}
5114 for l in ${with_libs}; do
5115 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
5120 # Set with_gnu_as and with_gnu_ld as appropriate.
5122 # This is done by determining whether or not the appropriate directory
5123 # is available, and by checking whether or not specific configurations
5124 # have requested that this magic not happen.
5126 # The command line options always override the explicit settings in
5127 # configure.in, and the settings in configure.in override this magic.
5129 # If the default for a toolchain is to use GNU as and ld, and you don't
5130 # want to do that, then you should use the --without-gnu-as and
5131 # --without-gnu-ld options for the configure script.
5133 if test x${use_gnu_as} = x &&
5134 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5136 extra_host_args="$extra_host_args --with-gnu-as"
5139 if test x${use_gnu_ld} = x &&
5140 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5142 extra_host_args="$extra_host_args --with-gnu-ld"
5145 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5146 # can detect this case.
5148 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5150 extra_host_args="$extra_host_args --with-newlib"
5153 # Handle ${copy_dirs}
5154 set fnord ${copy_dirs}
5156 while test $# != 0 ; do
5157 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5160 echo Copying $1 to $2
5162 # Use the install script to create the directory and all required
5163 # parent directories.
5164 if test -d $2 ; then
5168 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5171 # Copy the directory, assuming we have tar.
5172 # FIXME: Should we use B in the second tar? Not all systems support it.
5173 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5175 # It is the responsibility of the user to correctly adjust all
5176 # symlinks. If somebody can figure out how to handle them correctly
5177 # here, feel free to add the code.
5184 # Determine a target-dependent exec_prefix that the installed
5185 # gcc will search in. Keep this list sorted by triplet, with
5186 # the *-*-osname triplets last.
5190 md_exec_prefix=/gnu/lib/gcc-lib
5192 i[34567]86-pc-msdosdjgpp*)
5193 md_exec_prefix=/dev/env/DJDIR/bin
5195 i[34567]86-*-sco3.2v5*)
5196 if test $with_gnu_as = yes; then
5197 md_exec_prefix=/usr/gnu/bin
5199 md_exec_prefix=/usr/ccs/bin/elf
5204 powerpc-*-chorusos* | \
5205 powerpc*-*-eabi* | \
5206 powerpc*-*-sysv* | \
5207 powerpc*-*-kaos* | \
5209 md_exec_prefix=/usr/ccs/bin
5214 md_exec_prefix=/usr/ccs/bin
5229 md_exec_prefix=/usr/ccs/bin
5233 extra_arflags_for_target=
5234 extra_nmflags_for_target=
5235 extra_ranlibflags_for_target=
5236 target_makefile_frag=/dev/null
5239 target_makefile_frag="config/mt-mep"
5242 target_makefile_frag="config/mt-spu"
5245 target_makefile_frag="config/mt-sde"
5248 target_makefile_frag="config/mt-netware"
5250 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5251 target_makefile_frag="config/mt-gnu"
5253 *-*-aix4.[3456789]* | *-*-aix[56789].*)
5254 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
5255 # commands to handle both 32-bit and 64-bit objects. These flags are
5256 # harmless if we're using GNU nm or ar.
5257 extra_arflags_for_target=" -X32_64"
5258 extra_nmflags_for_target=" -B -X32_64"
5261 # ranlib from Darwin requires the -c flag to look at common symbols.
5262 extra_ranlibflags_for_target=" -c"
5264 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5265 target_makefile_frag="config/mt-wince"
5269 alphaieee_frag=/dev/null
5272 # This just makes sure to use the -mieee option to build target libs.
5273 # This should probably be set individually by each library.
5274 alphaieee_frag="config/mt-alphaieee"
5278 # If --enable-target-optspace always use -Os instead of -O2 to build
5279 # the target libraries, similarly if it is not specified, use -Os
5280 # on selected platforms.
5281 ospace_frag=/dev/null
5282 case "${enable_target_optspace}:${target}" in
5284 ospace_frag="config/mt-ospace"
5287 ospace_frag="config/mt-d30v"
5289 :m32r-* | :d10v-* | :fr30-*)
5290 ospace_frag="config/mt-ospace"
5295 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5299 # Default to using --with-stabs for certain targets.
5300 if test x${with_stabs} = x ; then
5304 mips*-*-* | alpha*-*-osf*)
5306 extra_host_args="${extra_host_args} --with-stabs"
5311 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5312 # them automatically.
5315 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5319 # Some systems (e.g., one of the i386-aix systems the gas testers are
5320 # using) don't handle "\$" correctly, so don't use it here.
5321 tooldir='${exec_prefix}'/${target_noncanonical}
5322 build_tooldir=${tooldir}
5324 # Create a .gdbinit file which runs the one in srcdir
5325 # and tells GDB to look there for source files.
5327 if test -r ${srcdir}/.gdbinit ; then
5330 *) cat > ./.gdbinit <<EOF
5334 source ${srcdir}/.gdbinit
5340 # Make sure that the compiler is able to generate an executable. If it
5341 # can't, we are probably in trouble. We don't care whether we can run the
5342 # executable--we might be using a cross compiler--we only care whether it
5343 # can be created. At this point the main configure script has set CC.
5345 echo "int main () { return 0; }" > conftest.c
5346 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5347 if test $? = 0 ; then
5348 if test -s conftest || test -s conftest.exe ; then
5354 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5355 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5362 # The Solaris /usr/ucb/cc compiler does not appear to work.
5364 sparc-sun-solaris2*)
5365 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5366 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5368 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5369 if test -d /opt/cygnus/bin ; then
5370 if test "$could_use" = "" ; then
5371 could_use="/opt/cygnus/bin"
5373 could_use="$could_use or /opt/cygnus/bin"
5376 if test "$could_use" = "" ; then
5377 echo "Warning: compilation may fail because you're using"
5378 echo "/usr/ucb/cc. You should change your PATH or CC "
5379 echo "variable and rerun configure."
5381 echo "Warning: compilation may fail because you're using"
5382 echo "/usr/ucb/cc, when you should use the C compiler from"
5383 echo "$could_use. You should change your"
5384 echo "PATH or CC variable and rerun configure."
5391 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
5392 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
5393 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5396 # Record target_configdirs and the configure arguments for target and
5397 # build configuration in Makefile.
5398 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
5399 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
5401 # Determine whether gdb needs tk/tcl or not.
5402 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5403 # and in that case we want gdb to be built without tk. Ugh!
5404 # In fact I believe gdb is the *only* package directly dependent on tk,
5405 # so we should be able to put the 'maybe's in unconditionally and
5406 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
5407 # 100% sure that that's safe though.
5409 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
5410 case "$enable_gdbtk" in
5414 GDB_TK="${gdb_tk}" ;;
5416 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5417 # distro. Eventually someone will fix this and move Insight, nee
5418 # gdbtk to a separate directory.
5419 if test -d ${srcdir}/gdb/gdbtk ; then
5426 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5427 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
5429 # Strip out unwanted targets.
5431 # While at that, we remove Makefiles if we were started for recursive
5432 # configuration, so that the top-level Makefile reconfigures them,
5433 # like we used to do when configure itself was recursive.
5435 # Loop over modules. $extrasub must be used with care, limiting as
5436 # much as possible the usage of range addresses. That's because autoconf
5437 # splits the sed script to overcome limits in the number of commands,
5438 # and relying on carefully-timed sed passes may turn out to be very hard
5439 # to maintain later. In this particular case, you just have to be careful
5440 # not to nest @if/@endif pairs, because configure will not warn you at all.
5442 # Check whether --enable-bootstrap or --disable-bootstrap was given.
5443 if test "${enable_bootstrap+set}" = set; then
5444 enableval="$enable_bootstrap"
5447 enable_bootstrap=default
5450 # Issue errors and warnings for invalid/strange bootstrap combinations.
5451 case "$configdirs" in
5452 *gcc*) have_compiler=yes ;;
5453 *) have_compiler=no ;;
5456 case "$have_compiler:$host:$target:$enable_bootstrap" in
5459 # Default behavior. Enable bootstrap if we have a compiler
5460 # and we are in a native configuration.
5461 yes:$build:$build:default)
5462 enable_bootstrap=yes ;;
5465 enable_bootstrap=no ;;
5467 # We have a compiler and we are in a native configuration, bootstrap is ok
5468 yes:$build:$build:yes)
5471 # Other configurations, but we have a compiler. Assume the user knows
5474 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5475 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5478 # No compiler: if they passed --enable-bootstrap explicitly, fail
5480 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5481 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5482 { (exit 1); exit 1; }; } ;;
5484 # Fail if wrong command line
5486 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5487 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5488 { (exit 1); exit 1; }; }
5492 # Adjust the toplevel makefile according to whether bootstrap was selected.
5493 case "$enable_bootstrap" in
5495 bootstrap_suffix=bootstrap ;;
5497 bootstrap_suffix=no-bootstrap ;;
5500 for module in ${build_configdirs} ; do
5501 if test -z "${no_recursion}" \
5502 && test -f ${build_subdir}/${module}/Makefile; then
5503 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5504 rm -f ${build_subdir}/${module}/Makefile
5507 /^@if build-$module\$/d
5508 /^@endif build-$module\$/d
5509 /^@if build-$module-$bootstrap_suffix\$/d
5510 /^@endif build-$module-$bootstrap_suffix\$/d"
5512 for module in ${configdirs} ; do
5513 if test -z "${no_recursion}"; then
5514 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
5515 if test -f ${file}; then
5516 echo 1>&2 "*** removing ${file} to force reconfigure"
5523 /^@endif $module\$/d
5524 /^@if $module-$bootstrap_suffix\$/d
5525 /^@endif $module-$bootstrap_suffix\$/d"
5527 for module in ${target_configdirs} ; do
5528 if test -z "${no_recursion}" \
5529 && test -f ${target_subdir}/${module}/Makefile; then
5530 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5531 rm -f ${target_subdir}/${module}/Makefile
5534 /^@if target-$module\$/d
5535 /^@endif target-$module\$/d
5536 /^@if target-$module-$bootstrap_suffix\$/d
5537 /^@endif target-$module-$bootstrap_suffix\$/d"
5541 /^@if /,/^@endif /d"
5543 # Create the serialization dependencies. This uses a temporary file.
5545 # Check whether --enable-serial-configure or --disable-serial-configure was given.
5546 if test "${enable_serial_configure+set}" = set; then
5547 enableval="$enable_serial_configure"
5551 case ${enable_serial_configure} in
5553 enable_serial_build_configure=yes
5554 enable_serial_host_configure=yes
5555 enable_serial_target_configure=yes
5559 # These force 'configure's to be done one at a time, to avoid problems
5560 # with contention over a shared config.cache.
5562 echo '# serdep.tmp' > serdep.tmp
5564 test "x${enable_serial_build_configure}" = xyes &&
5565 for item in ${build_configdirs} ; do
5568 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
5573 test "x${enable_serial_host_configure}" = xyes &&
5574 for item in ${configdirs} ; do
5577 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
5582 test "x${enable_serial_target_configure}" = xyes &&
5583 for item in ${target_configdirs} ; do
5586 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
5590 serialization_dependencies=serdep.tmp
5593 # Base args. Strip norecursion, cache-file, srcdir, host, build,
5594 # target, nonopt, and variable assignments. These are the ones we
5595 # might not want to pass down to subconfigures. Also strip
5596 # program-prefix, program-suffix, and program-transform-name, so that
5597 # we can pass down a consistent program-transform-name.
5601 eval "set -- $ac_configure_args"
5604 if test X"$skip_next" = X"yes"; then
5608 if test X"$keep_next" = X"yes"; then
5611 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5613 baseargs="$baseargs '$ac_arg'"
5618 # Handle separated arguments. Based on the logic generated by
5621 *=* | --config-cache | -C | -disable-* | --disable-* \
5622 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5623 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5624 | -with-* | --with-* | -without-* | --without-* | --x)
5650 -program-prefix* | \
5651 -program-suffix* | \
5652 -program-transform-name* )
5653 skip_next=$separate_arg
5657 # An option. Add it.
5660 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5662 baseargs="$baseargs '$ac_arg'"
5663 keep_next=$separate_arg
5666 # Either a variable assignment, or a nonopt (triplet). Don't
5667 # pass it down; let the Makefile handle this.
5672 # Remove the initial space we just introduced and, as these will be
5673 # expanded by make, quote '$'.
5674 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
5676 # Add in --program-transform-name, after --program-prefix and
5677 # --program-suffix have been applied to it. Autoconf has already
5678 # doubled dollar signs and backslashes in program_transform_name; we want
5679 # the backslashes un-doubled, and then the entire thing wrapped in single
5680 # quotes, because this will be expanded first by make and then by the shell.
5681 # Also, because we want to override the logic in subdir configure scripts to
5682 # choose program_transform_name, replace any s,x,x, with s,y,y,.
5683 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5684 ${program_transform_name}
5686 gcc_transform_name=`cat conftestsed.out`
5687 rm -f conftestsed.out
5688 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5689 if test "$silent" = yes; then
5690 baseargs="$baseargs --silent"
5693 # For the build-side libraries, we just need to pretend we're native,
5694 # and not use the same cache file. Multilibs are neither needed nor
5696 build_configargs="--cache-file=../config.cache ${baseargs}"
5698 # For host modules, accept cache file option, or specification as blank.
5699 case "${cache_file}" in
5701 cache_file_option="" ;;
5702 /* | [A-Za-z]:[\\/]* ) # absolute path
5703 cache_file_option="--cache-file=${cache_file}" ;;
5705 cache_file_option="--cache-file=../${cache_file}" ;;
5708 # Host dirs don't like to share a cache file either, horribly enough.
5709 # This seems to be due to autoconf 2.5x stupidity.
5710 host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
5712 target_configargs=${baseargs}
5714 # Passing a --with-cross-host argument lets the target libraries know
5715 # whether they are being built with a cross-compiler or being built
5716 # native. However, it would be better to use other mechanisms to make the
5717 # sorts of decisions they want to make on this basis. Please consider
5718 # this option to be deprecated. FIXME.
5719 if test x${is_cross_compiler} = xyes ; then
5720 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
5723 # Default to --enable-multilib.
5724 if test x${enable_multilib} = x ; then
5725 target_configargs="--enable-multilib ${target_configargs}"
5728 # Pass --with-newlib if appropriate. Note that target_configdirs has
5729 # changed from the earlier setting of with_newlib.
5730 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5731 target_configargs="--with-newlib ${target_configargs}"
5734 # Different target subdirs use different values of certain variables
5735 # (notably CXX). Worse, multilibs use *lots* of different values.
5736 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5737 # it doesn't automatically accept command-line overrides of them.
5738 # This means it's not safe for target subdirs to share a cache file,
5739 # which is disgusting, but there you have it. Hopefully this can be
5740 # fixed in future. It's still worthwhile to use a cache file for each
5741 # directory. I think.
5743 # Pass the appropriate --build, --host, --target and --cache-file arguments.
5744 # We need to pass --target, as newer autoconf's requires consistency
5745 # for target_alias and gcc doesn't manage it consistently.
5746 target_configargs="--cache-file=./config.cache ${target_configargs}"
5749 case " $target_configdirs " in
5751 case " $target_configargs " in
5752 *" --with-newlib "*)
5755 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' ;;
5758 # If we're not building GCC, don't discard standard headers.
5759 if test -d ${srcdir}/gcc; then
5760 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5762 if test "${build}" != "${host}"; then
5763 # On Canadian crosses, CC_FOR_TARGET will have already been set
5764 # by `configure', so we won't have an opportunity to add -Bgcc/
5765 # to it. This is right: we don't want to search that directory
5766 # for binaries, but we want the header files in there, so add
5768 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
5770 # Someone might think of using the pre-installed headers on
5771 # Canadian crosses, in case the installed compiler is not fully
5772 # compatible with the compiler being built. In this case, it
5773 # would be better to flag an error than risking having
5774 # incompatible object files being constructed. We can't
5775 # guarantee that an error will be flagged, but let's hope the
5776 # compiler will do it, when presented with incompatible header
5781 case "${target}-${is_cross_compiler}" in
5782 i[3456789]86-*-linux*-no)
5783 # Here host == target, so we don't need to build gcc,
5784 # so we don't want to discard standard headers.
5785 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5788 # If we're building newlib, use its generic headers last, but search
5789 # for any libc-related directories first (so make it the last -B
5791 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5800 # Can't be handled as Cygwin above since Mingw does not use newlib.
5801 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' ;;
5804 # Allow the user to override the flags for
5805 # our build compiler if desired.
5806 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5808 # On Canadian crosses, we'll be searching the right directories for
5809 # the previously-installed cross compiler, so don't bother to add
5810 # flags for directories within the install tree of the compiler
5811 # being built; programs in there won't even run.
5812 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5813 # Search for pre-installed headers if nothing else fits.
5814 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
5817 if test "x${use_gnu_ld}" = x &&
5818 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5819 # Arrange for us to find uninstalled linker scripts.
5820 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
5823 # Search for other target-specific linker scripts and such.
5826 if test -d ${srcdir}/libgloss/m32c; then
5827 # This is for crt0.o
5828 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5829 # This is for r8c.ld
5830 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5831 # This is for libnosys.a
5832 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5836 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5840 # Makefile fragments.
5841 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5843 eval fragval=\$$frag
5844 if test $fragval != /dev/null; then
5845 eval $frag=${srcdir}/$fragval
5853 # Miscellanea: directories, flags, etc.
5861 # Build module lists & subconfigure args.
5865 # Host module lists & subconfigure args.
5869 # Target module lists & subconfigure args.
5877 # Generate default definitions for YACC, M4, LEX and other programs that run
5878 # on the build machine. These are used if the Makefile can't locate these
5879 # programs in objdir.
5880 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5882 for ac_prog in 'bison -y' byacc yacc
5884 # Extract the first word of "$ac_prog", so it can be a program name with args.
5885 set dummy $ac_prog; ac_word=$2
5886 echo "$as_me:$LINENO: checking for $ac_word" >&5
5887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5888 if test "${ac_cv_prog_YACC+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 if test -n "$YACC"; then
5892 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901 ac_cv_prog_YACC="$ac_prog"
5902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 YACC=$ac_cv_prog_YACC
5911 if test -n "$YACC"; then
5912 echo "$as_me:$LINENO: result: $YACC" >&5
5913 echo "${ECHO_T}$YACC" >&6
5915 echo "$as_me:$LINENO: result: no" >&5
5916 echo "${ECHO_T}no" >&6
5919 test -n "$YACC" && break
5921 test -n "$YACC" || YACC="$MISSING bison -y"
5923 case " $build_configdirs " in
5924 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5925 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5928 for ac_prog in bison
5930 # Extract the first word of "$ac_prog", so it can be a program name with args.
5931 set dummy $ac_prog; ac_word=$2
5932 echo "$as_me:$LINENO: checking for $ac_word" >&5
5933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5934 if test "${ac_cv_prog_BISON+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 if test -n "$BISON"; then
5938 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 test -z "$as_dir" && as_dir=.
5945 for ac_exec_ext in '' $ac_executable_extensions; do
5946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5947 ac_cv_prog_BISON="$ac_prog"
5948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 BISON=$ac_cv_prog_BISON
5957 if test -n "$BISON"; then
5958 echo "$as_me:$LINENO: result: $BISON" >&5
5959 echo "${ECHO_T}$BISON" >&6
5961 echo "$as_me:$LINENO: result: no" >&5
5962 echo "${ECHO_T}no" >&6
5965 test -n "$BISON" && break
5967 test -n "$BISON" || BISON="$MISSING bison"
5969 case " $build_configdirs " in
5970 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5973 for ac_prog in gm4 gnum4 m4
5975 # Extract the first word of "$ac_prog", so it can be a program name with args.
5976 set dummy $ac_prog; ac_word=$2
5977 echo "$as_me:$LINENO: checking for $ac_word" >&5
5978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5979 if test "${ac_cv_prog_M4+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 if test -n "$M4"; then
5983 ac_cv_prog_M4="$M4" # Let the user override the test.
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 test -z "$as_dir" && as_dir=.
5990 for ac_exec_ext in '' $ac_executable_extensions; do
5991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5992 ac_cv_prog_M4="$ac_prog"
5993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6002 if test -n "$M4"; then
6003 echo "$as_me:$LINENO: result: $M4" >&5
6004 echo "${ECHO_T}$M4" >&6
6006 echo "$as_me:$LINENO: result: no" >&5
6007 echo "${ECHO_T}no" >&6
6010 test -n "$M4" && break
6012 test -n "$M4" || M4="$MISSING m4"
6014 case " $build_configdirs " in
6015 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6018 for ac_prog in flex lex
6020 # Extract the first word of "$ac_prog", so it can be a program name with args.
6021 set dummy $ac_prog; ac_word=$2
6022 echo "$as_me:$LINENO: checking for $ac_word" >&5
6023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6024 if test "${ac_cv_prog_LEX+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 if test -n "$LEX"; then
6028 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 test -z "$as_dir" && as_dir=.
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6037 ac_cv_prog_LEX="$ac_prog"
6038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 if test -n "$LEX"; then
6048 echo "$as_me:$LINENO: result: $LEX" >&5
6049 echo "${ECHO_T}$LEX" >&6
6051 echo "$as_me:$LINENO: result: no" >&5
6052 echo "${ECHO_T}no" >&6
6055 test -n "$LEX" && break
6057 test -n "$LEX" || LEX="$MISSING flex"
6059 case " $build_configdirs " in
6060 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6061 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6066 # Extract the first word of "$ac_prog", so it can be a program name with args.
6067 set dummy $ac_prog; ac_word=$2
6068 echo "$as_me:$LINENO: checking for $ac_word" >&5
6069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6070 if test "${ac_cv_prog_FLEX+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 if test -n "$FLEX"; then
6074 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6083 ac_cv_prog_FLEX="$ac_prog"
6084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 FLEX=$ac_cv_prog_FLEX
6093 if test -n "$FLEX"; then
6094 echo "$as_me:$LINENO: result: $FLEX" >&5
6095 echo "${ECHO_T}$FLEX" >&6
6097 echo "$as_me:$LINENO: result: no" >&5
6098 echo "${ECHO_T}no" >&6
6101 test -n "$FLEX" && break
6103 test -n "$FLEX" || FLEX="$MISSING flex"
6105 case " $build_configdirs " in
6106 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6109 for ac_prog in makeinfo
6111 # Extract the first word of "$ac_prog", so it can be a program name with args.
6112 set dummy $ac_prog; ac_word=$2
6113 echo "$as_me:$LINENO: checking for $ac_word" >&5
6114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6115 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 if test -n "$MAKEINFO"; then
6119 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 test -z "$as_dir" && as_dir=.
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6128 ac_cv_prog_MAKEINFO="$ac_prog"
6129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 MAKEINFO=$ac_cv_prog_MAKEINFO
6138 if test -n "$MAKEINFO"; then
6139 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6140 echo "${ECHO_T}$MAKEINFO" >&6
6142 echo "$as_me:$LINENO: result: no" >&5
6143 echo "${ECHO_T}no" >&6
6146 test -n "$MAKEINFO" && break
6148 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6150 case " $build_configdirs " in
6151 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6154 # For an installed makeinfo, we require it to be from texinfo 4.4 or
6155 # higher, else we use the "missing" dummy.
6156 if ${MAKEINFO} --version \
6157 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
6160 MAKEINFO="$MISSING makeinfo"
6166 # FIXME: expect and dejagnu may become build tools?
6168 for ac_prog in expect
6170 # Extract the first word of "$ac_prog", so it can be a program name with args.
6171 set dummy $ac_prog; ac_word=$2
6172 echo "$as_me:$LINENO: checking for $ac_word" >&5
6173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6174 if test "${ac_cv_prog_EXPECT+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 if test -n "$EXPECT"; then
6178 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6187 ac_cv_prog_EXPECT="$ac_prog"
6188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 EXPECT=$ac_cv_prog_EXPECT
6197 if test -n "$EXPECT"; then
6198 echo "$as_me:$LINENO: result: $EXPECT" >&5
6199 echo "${ECHO_T}$EXPECT" >&6
6201 echo "$as_me:$LINENO: result: no" >&5
6202 echo "${ECHO_T}no" >&6
6205 test -n "$EXPECT" && break
6207 test -n "$EXPECT" || EXPECT="expect"
6209 case " $configdirs " in
6211 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6215 for ac_prog in runtest
6217 # Extract the first word of "$ac_prog", so it can be a program name with args.
6218 set dummy $ac_prog; ac_word=$2
6219 echo "$as_me:$LINENO: checking for $ac_word" >&5
6220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6221 if test "${ac_cv_prog_RUNTEST+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 if test -n "$RUNTEST"; then
6225 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 test -z "$as_dir" && as_dir=.
6232 for ac_exec_ext in '' $ac_executable_extensions; do
6233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6234 ac_cv_prog_RUNTEST="$ac_prog"
6235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 RUNTEST=$ac_cv_prog_RUNTEST
6244 if test -n "$RUNTEST"; then
6245 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6246 echo "${ECHO_T}$RUNTEST" >&6
6248 echo "$as_me:$LINENO: result: no" >&5
6249 echo "${ECHO_T}no" >&6
6252 test -n "$RUNTEST" && break
6254 test -n "$RUNTEST" || RUNTEST="runtest"
6256 case " $configdirs " in
6258 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
6265 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6266 ncn_target_tool_prefix=
6267 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6271 if test -n "$AR"; then
6273 elif test -n "$ac_cv_prog_AR"; then
6277 if test -n "$ac_cv_prog_AR"; then
6278 for ncn_progname in ar; do
6279 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6280 set dummy ${ncn_progname}; ac_word=$2
6281 echo "$as_me:$LINENO: checking for $ac_word" >&5
6282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6283 if test "${ac_cv_prog_AR+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6286 if test -n "$AR"; then
6287 ac_cv_prog_AR="$AR" # Let the user override the test.
6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6296 ac_cv_prog_AR="${ncn_progname}"
6297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 if test -n "$AR"; then
6307 echo "$as_me:$LINENO: result: $AR" >&5
6308 echo "${ECHO_T}$AR" >&6
6310 echo "$as_me:$LINENO: result: no" >&5
6311 echo "${ECHO_T}no" >&6
6317 for ncn_progname in ar; do
6318 if test -n "$ncn_tool_prefix"; then
6319 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6320 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6321 echo "$as_me:$LINENO: checking for $ac_word" >&5
6322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6323 if test "${ac_cv_prog_AR+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 if test -n "$AR"; then
6327 ac_cv_prog_AR="$AR" # Let the user override the test.
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6336 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 if test -n "$AR"; then
6347 echo "$as_me:$LINENO: result: $AR" >&5
6348 echo "${ECHO_T}$AR" >&6
6350 echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6
6355 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6356 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6357 set dummy ${ncn_progname}; ac_word=$2
6358 echo "$as_me:$LINENO: checking for $ac_word" >&5
6359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6360 if test "${ac_cv_prog_AR+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 if test -n "$AR"; then
6364 ac_cv_prog_AR="$AR" # Let the user override the test.
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6373 ac_cv_prog_AR="${ncn_progname}"
6374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 if test -n "$AR"; then
6384 echo "$as_me:$LINENO: result: $AR" >&5
6385 echo "${ECHO_T}$AR" >&6
6387 echo "$as_me:$LINENO: result: no" >&5
6388 echo "${ECHO_T}no" >&6
6392 test -n "$ac_cv_prog_AR" && break
6395 if test -z "$ac_cv_prog_AR" ; then
6397 if test $build = $host ; then
6400 AR="${ncn_tool_prefix}$2"
6406 if test -n "$AS"; then
6408 elif test -n "$ac_cv_prog_AS"; then
6412 if test -n "$ac_cv_prog_AS"; then
6413 for ncn_progname in as; do
6414 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6415 set dummy ${ncn_progname}; ac_word=$2
6416 echo "$as_me:$LINENO: checking for $ac_word" >&5
6417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6418 if test "${ac_cv_prog_AS+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6421 if test -n "$AS"; then
6422 ac_cv_prog_AS="$AS" # Let the user override the test.
6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 test -z "$as_dir" && as_dir=.
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6431 ac_cv_prog_AS="${ncn_progname}"
6432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6441 if test -n "$AS"; then
6442 echo "$as_me:$LINENO: result: $AS" >&5
6443 echo "${ECHO_T}$AS" >&6
6445 echo "$as_me:$LINENO: result: no" >&5
6446 echo "${ECHO_T}no" >&6
6452 for ncn_progname in as; do
6453 if test -n "$ncn_tool_prefix"; then
6454 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6455 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6456 echo "$as_me:$LINENO: checking for $ac_word" >&5
6457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6458 if test "${ac_cv_prog_AS+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 if test -n "$AS"; then
6462 ac_cv_prog_AS="$AS" # Let the user override the test.
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6471 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 if test -n "$AS"; then
6482 echo "$as_me:$LINENO: result: $AS" >&5
6483 echo "${ECHO_T}$AS" >&6
6485 echo "$as_me:$LINENO: result: no" >&5
6486 echo "${ECHO_T}no" >&6
6490 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6491 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6492 set dummy ${ncn_progname}; ac_word=$2
6493 echo "$as_me:$LINENO: checking for $ac_word" >&5
6494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6495 if test "${ac_cv_prog_AS+set}" = set; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6498 if test -n "$AS"; then
6499 ac_cv_prog_AS="$AS" # Let the user override the test.
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 test -z "$as_dir" && as_dir=.
6506 for ac_exec_ext in '' $ac_executable_extensions; do
6507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6508 ac_cv_prog_AS="${ncn_progname}"
6509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 if test -n "$AS"; then
6519 echo "$as_me:$LINENO: result: $AS" >&5
6520 echo "${ECHO_T}$AS" >&6
6522 echo "$as_me:$LINENO: result: no" >&5
6523 echo "${ECHO_T}no" >&6
6527 test -n "$ac_cv_prog_AS" && break
6530 if test -z "$ac_cv_prog_AS" ; then
6532 if test $build = $host ; then
6535 AS="${ncn_tool_prefix}$2"
6541 if test -n "$DLLTOOL"; then
6542 ac_cv_prog_DLLTOOL=$DLLTOOL
6543 elif test -n "$ac_cv_prog_DLLTOOL"; then
6544 DLLTOOL=$ac_cv_prog_DLLTOOL
6547 if test -n "$ac_cv_prog_DLLTOOL"; then
6548 for ncn_progname in dlltool; do
6549 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6550 set dummy ${ncn_progname}; ac_word=$2
6551 echo "$as_me:$LINENO: checking for $ac_word" >&5
6552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6553 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 if test -n "$DLLTOOL"; then
6557 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6566 ac_cv_prog_DLLTOOL="${ncn_progname}"
6567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6575 DLLTOOL=$ac_cv_prog_DLLTOOL
6576 if test -n "$DLLTOOL"; then
6577 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6578 echo "${ECHO_T}$DLLTOOL" >&6
6580 echo "$as_me:$LINENO: result: no" >&5
6581 echo "${ECHO_T}no" >&6
6587 for ncn_progname in dlltool; do
6588 if test -n "$ncn_tool_prefix"; then
6589 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6590 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6591 echo "$as_me:$LINENO: checking for $ac_word" >&5
6592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6593 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6596 if test -n "$DLLTOOL"; then
6597 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6615 DLLTOOL=$ac_cv_prog_DLLTOOL
6616 if test -n "$DLLTOOL"; then
6617 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6618 echo "${ECHO_T}$DLLTOOL" >&6
6620 echo "$as_me:$LINENO: result: no" >&5
6621 echo "${ECHO_T}no" >&6
6625 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6627 set dummy ${ncn_progname}; ac_word=$2
6628 echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6630 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 if test -n "$DLLTOOL"; then
6634 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6643 ac_cv_prog_DLLTOOL="${ncn_progname}"
6644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 DLLTOOL=$ac_cv_prog_DLLTOOL
6653 if test -n "$DLLTOOL"; then
6654 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6655 echo "${ECHO_T}$DLLTOOL" >&6
6657 echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6
6662 test -n "$ac_cv_prog_DLLTOOL" && break
6665 if test -z "$ac_cv_prog_DLLTOOL" ; then
6667 if test $build = $host ; then
6670 DLLTOOL="${ncn_tool_prefix}$2"
6676 if test -n "$LD"; then
6678 elif test -n "$ac_cv_prog_LD"; then
6682 if test -n "$ac_cv_prog_LD"; then
6683 for ncn_progname in ld; do
6684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6685 set dummy ${ncn_progname}; ac_word=$2
6686 echo "$as_me:$LINENO: checking for $ac_word" >&5
6687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6688 if test "${ac_cv_prog_LD+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 if test -n "$LD"; then
6692 ac_cv_prog_LD="$LD" # Let the user override the test.
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6701 ac_cv_prog_LD="${ncn_progname}"
6702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 if test -n "$LD"; then
6712 echo "$as_me:$LINENO: result: $LD" >&5
6713 echo "${ECHO_T}$LD" >&6
6715 echo "$as_me:$LINENO: result: no" >&5
6716 echo "${ECHO_T}no" >&6
6722 for ncn_progname in ld; do
6723 if test -n "$ncn_tool_prefix"; then
6724 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6725 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6726 echo "$as_me:$LINENO: checking for $ac_word" >&5
6727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6728 if test "${ac_cv_prog_LD+set}" = set; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 if test -n "$LD"; then
6732 ac_cv_prog_LD="$LD" # Let the user override the test.
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6741 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 if test -n "$LD"; then
6752 echo "$as_me:$LINENO: result: $LD" >&5
6753 echo "${ECHO_T}$LD" >&6
6755 echo "$as_me:$LINENO: result: no" >&5
6756 echo "${ECHO_T}no" >&6
6760 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6761 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6762 set dummy ${ncn_progname}; ac_word=$2
6763 echo "$as_me:$LINENO: checking for $ac_word" >&5
6764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6765 if test "${ac_cv_prog_LD+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 if test -n "$LD"; then
6769 ac_cv_prog_LD="$LD" # Let the user override the test.
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6778 ac_cv_prog_LD="${ncn_progname}"
6779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 if test -n "$LD"; then
6789 echo "$as_me:$LINENO: result: $LD" >&5
6790 echo "${ECHO_T}$LD" >&6
6792 echo "$as_me:$LINENO: result: no" >&5
6793 echo "${ECHO_T}no" >&6
6797 test -n "$ac_cv_prog_LD" && break
6800 if test -z "$ac_cv_prog_LD" ; then
6802 if test $build = $host ; then
6805 LD="${ncn_tool_prefix}$2"
6811 if test -n "$LIPO"; then
6812 ac_cv_prog_LIPO=$LIPO
6813 elif test -n "$ac_cv_prog_LIPO"; then
6814 LIPO=$ac_cv_prog_LIPO
6817 if test -n "$ac_cv_prog_LIPO"; then
6818 for ncn_progname in lipo; do
6819 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6820 set dummy ${ncn_progname}; ac_word=$2
6821 echo "$as_me:$LINENO: checking for $ac_word" >&5
6822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6823 if test "${ac_cv_prog_LIPO+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 if test -n "$LIPO"; then
6827 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6836 ac_cv_prog_LIPO="${ncn_progname}"
6837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 LIPO=$ac_cv_prog_LIPO
6846 if test -n "$LIPO"; then
6847 echo "$as_me:$LINENO: result: $LIPO" >&5
6848 echo "${ECHO_T}$LIPO" >&6
6850 echo "$as_me:$LINENO: result: no" >&5
6851 echo "${ECHO_T}no" >&6
6857 for ncn_progname in lipo; do
6858 if test -n "$ncn_tool_prefix"; then
6859 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6860 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6861 echo "$as_me:$LINENO: checking for $ac_word" >&5
6862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6863 if test "${ac_cv_prog_LIPO+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 if test -n "$LIPO"; then
6867 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6876 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 LIPO=$ac_cv_prog_LIPO
6886 if test -n "$LIPO"; then
6887 echo "$as_me:$LINENO: result: $LIPO" >&5
6888 echo "${ECHO_T}$LIPO" >&6
6890 echo "$as_me:$LINENO: result: no" >&5
6891 echo "${ECHO_T}no" >&6
6895 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6897 set dummy ${ncn_progname}; ac_word=$2
6898 echo "$as_me:$LINENO: checking for $ac_word" >&5
6899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6900 if test "${ac_cv_prog_LIPO+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 if test -n "$LIPO"; then
6904 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6913 ac_cv_prog_LIPO="${ncn_progname}"
6914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 LIPO=$ac_cv_prog_LIPO
6923 if test -n "$LIPO"; then
6924 echo "$as_me:$LINENO: result: $LIPO" >&5
6925 echo "${ECHO_T}$LIPO" >&6
6927 echo "$as_me:$LINENO: result: no" >&5
6928 echo "${ECHO_T}no" >&6
6932 test -n "$ac_cv_prog_LIPO" && break
6935 if test -z "$ac_cv_prog_LIPO" ; then
6937 if test $build = $host ; then
6940 LIPO="${ncn_tool_prefix}$2"
6946 if test -n "$NM"; then
6948 elif test -n "$ac_cv_prog_NM"; then
6952 if test -n "$ac_cv_prog_NM"; then
6953 for ncn_progname in nm; do
6954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6955 set dummy ${ncn_progname}; ac_word=$2
6956 echo "$as_me:$LINENO: checking for $ac_word" >&5
6957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6958 if test "${ac_cv_prog_NM+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6961 if test -n "$NM"; then
6962 ac_cv_prog_NM="$NM" # Let the user override the test.
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6971 ac_cv_prog_NM="${ncn_progname}"
6972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 if test -n "$NM"; then
6982 echo "$as_me:$LINENO: result: $NM" >&5
6983 echo "${ECHO_T}$NM" >&6
6985 echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6
6992 for ncn_progname in nm; do
6993 if test -n "$ncn_tool_prefix"; then
6994 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6995 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6996 echo "$as_me:$LINENO: checking for $ac_word" >&5
6997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6998 if test "${ac_cv_prog_NM+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 if test -n "$NM"; then
7002 ac_cv_prog_NM="$NM" # Let the user override the test.
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7011 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
7012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 if test -n "$NM"; then
7022 echo "$as_me:$LINENO: result: $NM" >&5
7023 echo "${ECHO_T}$NM" >&6
7025 echo "$as_me:$LINENO: result: no" >&5
7026 echo "${ECHO_T}no" >&6
7030 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7031 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7032 set dummy ${ncn_progname}; ac_word=$2
7033 echo "$as_me:$LINENO: checking for $ac_word" >&5
7034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7035 if test "${ac_cv_prog_NM+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 if test -n "$NM"; then
7039 ac_cv_prog_NM="$NM" # Let the user override the test.
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7048 ac_cv_prog_NM="${ncn_progname}"
7049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 if test -n "$NM"; then
7059 echo "$as_me:$LINENO: result: $NM" >&5
7060 echo "${ECHO_T}$NM" >&6
7062 echo "$as_me:$LINENO: result: no" >&5
7063 echo "${ECHO_T}no" >&6
7067 test -n "$ac_cv_prog_NM" && break
7070 if test -z "$ac_cv_prog_NM" ; then
7072 if test $build = $host ; then
7075 NM="${ncn_tool_prefix}$2"
7081 if test -n "$RANLIB"; then
7082 ac_cv_prog_RANLIB=$RANLIB
7083 elif test -n "$ac_cv_prog_RANLIB"; then
7084 RANLIB=$ac_cv_prog_RANLIB
7087 if test -n "$ac_cv_prog_RANLIB"; then
7088 for ncn_progname in ranlib; do
7089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7090 set dummy ${ncn_progname}; ac_word=$2
7091 echo "$as_me:$LINENO: checking for $ac_word" >&5
7092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7093 if test "${ac_cv_prog_RANLIB+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7096 if test -n "$RANLIB"; then
7097 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 test -z "$as_dir" && as_dir=.
7104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7106 ac_cv_prog_RANLIB="${ncn_progname}"
7107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 RANLIB=$ac_cv_prog_RANLIB
7116 if test -n "$RANLIB"; then
7117 echo "$as_me:$LINENO: result: $RANLIB" >&5
7118 echo "${ECHO_T}$RANLIB" >&6
7120 echo "$as_me:$LINENO: result: no" >&5
7121 echo "${ECHO_T}no" >&6
7127 for ncn_progname in ranlib; do
7128 if test -n "$ncn_tool_prefix"; then
7129 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7130 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7131 echo "$as_me:$LINENO: checking for $ac_word" >&5
7132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7133 if test "${ac_cv_prog_RANLIB+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 if test -n "$RANLIB"; then
7137 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 test -z "$as_dir" && as_dir=.
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 RANLIB=$ac_cv_prog_RANLIB
7156 if test -n "$RANLIB"; then
7157 echo "$as_me:$LINENO: result: $RANLIB" >&5
7158 echo "${ECHO_T}$RANLIB" >&6
7160 echo "$as_me:$LINENO: result: no" >&5
7161 echo "${ECHO_T}no" >&6
7165 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7167 set dummy ${ncn_progname}; ac_word=$2
7168 echo "$as_me:$LINENO: checking for $ac_word" >&5
7169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7170 if test "${ac_cv_prog_RANLIB+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 if test -n "$RANLIB"; then
7174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7183 ac_cv_prog_RANLIB="${ncn_progname}"
7184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 RANLIB=$ac_cv_prog_RANLIB
7193 if test -n "$RANLIB"; then
7194 echo "$as_me:$LINENO: result: $RANLIB" >&5
7195 echo "${ECHO_T}$RANLIB" >&6
7197 echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6
7202 test -n "$ac_cv_prog_RANLIB" && break
7205 if test -z "$ac_cv_prog_RANLIB" ; then
7211 if test -n "$STRIP"; then
7212 ac_cv_prog_STRIP=$STRIP
7213 elif test -n "$ac_cv_prog_STRIP"; then
7214 STRIP=$ac_cv_prog_STRIP
7217 if test -n "$ac_cv_prog_STRIP"; then
7218 for ncn_progname in strip; do
7219 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7220 set dummy ${ncn_progname}; ac_word=$2
7221 echo "$as_me:$LINENO: checking for $ac_word" >&5
7222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7223 if test "${ac_cv_prog_STRIP+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 if test -n "$STRIP"; then
7227 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7236 ac_cv_prog_STRIP="${ncn_progname}"
7237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 STRIP=$ac_cv_prog_STRIP
7246 if test -n "$STRIP"; then
7247 echo "$as_me:$LINENO: result: $STRIP" >&5
7248 echo "${ECHO_T}$STRIP" >&6
7250 echo "$as_me:$LINENO: result: no" >&5
7251 echo "${ECHO_T}no" >&6
7257 for ncn_progname in strip; do
7258 if test -n "$ncn_tool_prefix"; then
7259 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7260 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7261 echo "$as_me:$LINENO: checking for $ac_word" >&5
7262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7263 if test "${ac_cv_prog_STRIP+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 if test -n "$STRIP"; then
7267 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 STRIP=$ac_cv_prog_STRIP
7286 if test -n "$STRIP"; then
7287 echo "$as_me:$LINENO: result: $STRIP" >&5
7288 echo "${ECHO_T}$STRIP" >&6
7290 echo "$as_me:$LINENO: result: no" >&5
7291 echo "${ECHO_T}no" >&6
7295 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7297 set dummy ${ncn_progname}; ac_word=$2
7298 echo "$as_me:$LINENO: checking for $ac_word" >&5
7299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7300 if test "${ac_cv_prog_STRIP+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 if test -n "$STRIP"; then
7304 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 test -z "$as_dir" && as_dir=.
7311 for ac_exec_ext in '' $ac_executable_extensions; do
7312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7313 ac_cv_prog_STRIP="${ncn_progname}"
7314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 STRIP=$ac_cv_prog_STRIP
7323 if test -n "$STRIP"; then
7324 echo "$as_me:$LINENO: result: $STRIP" >&5
7325 echo "${ECHO_T}$STRIP" >&6
7327 echo "$as_me:$LINENO: result: no" >&5
7328 echo "${ECHO_T}no" >&6
7332 test -n "$ac_cv_prog_STRIP" && break
7335 if test -z "$ac_cv_prog_STRIP" ; then
7341 if test -n "$WINDRES"; then
7342 ac_cv_prog_WINDRES=$WINDRES
7343 elif test -n "$ac_cv_prog_WINDRES"; then
7344 WINDRES=$ac_cv_prog_WINDRES
7347 if test -n "$ac_cv_prog_WINDRES"; then
7348 for ncn_progname in windres; do
7349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7350 set dummy ${ncn_progname}; ac_word=$2
7351 echo "$as_me:$LINENO: checking for $ac_word" >&5
7352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7353 if test "${ac_cv_prog_WINDRES+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7356 if test -n "$WINDRES"; then
7357 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366 ac_cv_prog_WINDRES="${ncn_progname}"
7367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 WINDRES=$ac_cv_prog_WINDRES
7376 if test -n "$WINDRES"; then
7377 echo "$as_me:$LINENO: result: $WINDRES" >&5
7378 echo "${ECHO_T}$WINDRES" >&6
7380 echo "$as_me:$LINENO: result: no" >&5
7381 echo "${ECHO_T}no" >&6
7387 for ncn_progname in windres; do
7388 if test -n "$ncn_tool_prefix"; then
7389 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7390 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7391 echo "$as_me:$LINENO: checking for $ac_word" >&5
7392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7393 if test "${ac_cv_prog_WINDRES+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 if test -n "$WINDRES"; then
7397 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7406 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 WINDRES=$ac_cv_prog_WINDRES
7416 if test -n "$WINDRES"; then
7417 echo "$as_me:$LINENO: result: $WINDRES" >&5
7418 echo "${ECHO_T}$WINDRES" >&6
7420 echo "$as_me:$LINENO: result: no" >&5
7421 echo "${ECHO_T}no" >&6
7425 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7426 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7427 set dummy ${ncn_progname}; ac_word=$2
7428 echo "$as_me:$LINENO: checking for $ac_word" >&5
7429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7430 if test "${ac_cv_prog_WINDRES+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 if test -n "$WINDRES"; then
7434 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7443 ac_cv_prog_WINDRES="${ncn_progname}"
7444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7452 WINDRES=$ac_cv_prog_WINDRES
7453 if test -n "$WINDRES"; then
7454 echo "$as_me:$LINENO: result: $WINDRES" >&5
7455 echo "${ECHO_T}$WINDRES" >&6
7457 echo "$as_me:$LINENO: result: no" >&5
7458 echo "${ECHO_T}no" >&6
7462 test -n "$ac_cv_prog_WINDRES" && break
7465 if test -z "$ac_cv_prog_WINDRES" ; then
7467 if test $build = $host ; then
7470 WINDRES="${ncn_tool_prefix}$2"
7476 if test -n "$WINDMC"; then
7477 ac_cv_prog_WINDMC=$WINDMC
7478 elif test -n "$ac_cv_prog_WINDMC"; then
7479 WINDMC=$ac_cv_prog_WINDMC
7482 if test -n "$ac_cv_prog_WINDMC"; then
7483 for ncn_progname in windmc; do
7484 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7485 set dummy ${ncn_progname}; ac_word=$2
7486 echo "$as_me:$LINENO: checking for $ac_word" >&5
7487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7488 if test "${ac_cv_prog_WINDMC+set}" = set; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 if test -n "$WINDMC"; then
7492 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501 ac_cv_prog_WINDMC="${ncn_progname}"
7502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 WINDMC=$ac_cv_prog_WINDMC
7511 if test -n "$WINDMC"; then
7512 echo "$as_me:$LINENO: result: $WINDMC" >&5
7513 echo "${ECHO_T}$WINDMC" >&6
7515 echo "$as_me:$LINENO: result: no" >&5
7516 echo "${ECHO_T}no" >&6
7522 for ncn_progname in windmc; do
7523 if test -n "$ncn_tool_prefix"; then
7524 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7525 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7526 echo "$as_me:$LINENO: checking for $ac_word" >&5
7527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7528 if test "${ac_cv_prog_WINDMC+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7531 if test -n "$WINDMC"; then
7532 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7541 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7550 WINDMC=$ac_cv_prog_WINDMC
7551 if test -n "$WINDMC"; then
7552 echo "$as_me:$LINENO: result: $WINDMC" >&5
7553 echo "${ECHO_T}$WINDMC" >&6
7555 echo "$as_me:$LINENO: result: no" >&5
7556 echo "${ECHO_T}no" >&6
7560 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7561 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7562 set dummy ${ncn_progname}; ac_word=$2
7563 echo "$as_me:$LINENO: checking for $ac_word" >&5
7564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7565 if test "${ac_cv_prog_WINDMC+set}" = set; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7568 if test -n "$WINDMC"; then
7569 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575 test -z "$as_dir" && as_dir=.
7576 for ac_exec_ext in '' $ac_executable_extensions; do
7577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7578 ac_cv_prog_WINDMC="${ncn_progname}"
7579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7587 WINDMC=$ac_cv_prog_WINDMC
7588 if test -n "$WINDMC"; then
7589 echo "$as_me:$LINENO: result: $WINDMC" >&5
7590 echo "${ECHO_T}$WINDMC" >&6
7592 echo "$as_me:$LINENO: result: no" >&5
7593 echo "${ECHO_T}no" >&6
7597 test -n "$ac_cv_prog_WINDMC" && break
7600 if test -z "$ac_cv_prog_WINDMC" ; then
7602 if test $build = $host ; then
7605 WINDMC="${ncn_tool_prefix}$2"
7611 if test -n "$OBJCOPY"; then
7612 ac_cv_prog_OBJCOPY=$OBJCOPY
7613 elif test -n "$ac_cv_prog_OBJCOPY"; then
7614 OBJCOPY=$ac_cv_prog_OBJCOPY
7617 if test -n "$ac_cv_prog_OBJCOPY"; then
7618 for ncn_progname in objcopy; do
7619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7620 set dummy ${ncn_progname}; ac_word=$2
7621 echo "$as_me:$LINENO: checking for $ac_word" >&5
7622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7623 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 if test -n "$OBJCOPY"; then
7627 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 test -z "$as_dir" && as_dir=.
7634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7636 ac_cv_prog_OBJCOPY="${ncn_progname}"
7637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 OBJCOPY=$ac_cv_prog_OBJCOPY
7646 if test -n "$OBJCOPY"; then
7647 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7648 echo "${ECHO_T}$OBJCOPY" >&6
7650 echo "$as_me:$LINENO: result: no" >&5
7651 echo "${ECHO_T}no" >&6
7657 for ncn_progname in objcopy; do
7658 if test -n "$ncn_tool_prefix"; then
7659 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7660 set dummy ${ncn_tool_prefix}${ncn_progname}; 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_prog_OBJCOPY+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 if test -n "$OBJCOPY"; then
7667 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 OBJCOPY=$ac_cv_prog_OBJCOPY
7686 if test -n "$OBJCOPY"; then
7687 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7688 echo "${ECHO_T}$OBJCOPY" >&6
7690 echo "$as_me:$LINENO: result: no" >&5
7691 echo "${ECHO_T}no" >&6
7695 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7696 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7697 set dummy ${ncn_progname}; ac_word=$2
7698 echo "$as_me:$LINENO: checking for $ac_word" >&5
7699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7700 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7703 if test -n "$OBJCOPY"; then
7704 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7713 ac_cv_prog_OBJCOPY="${ncn_progname}"
7714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 OBJCOPY=$ac_cv_prog_OBJCOPY
7723 if test -n "$OBJCOPY"; then
7724 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7725 echo "${ECHO_T}$OBJCOPY" >&6
7727 echo "$as_me:$LINENO: result: no" >&5
7728 echo "${ECHO_T}no" >&6
7732 test -n "$ac_cv_prog_OBJCOPY" && break
7735 if test -z "$ac_cv_prog_OBJCOPY" ; then
7737 if test $build = $host ; then
7740 OBJCOPY="${ncn_tool_prefix}$2"
7746 if test -n "$OBJDUMP"; then
7747 ac_cv_prog_OBJDUMP=$OBJDUMP
7748 elif test -n "$ac_cv_prog_OBJDUMP"; then
7749 OBJDUMP=$ac_cv_prog_OBJDUMP
7752 if test -n "$ac_cv_prog_OBJDUMP"; then
7753 for ncn_progname in objdump; do
7754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7755 set dummy ${ncn_progname}; ac_word=$2
7756 echo "$as_me:$LINENO: checking for $ac_word" >&5
7757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7758 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7759 echo $ECHO_N "(cached) $ECHO_C" >&6
7761 if test -n "$OBJDUMP"; then
7762 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 test -z "$as_dir" && as_dir=.
7769 for ac_exec_ext in '' $ac_executable_extensions; do
7770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7771 ac_cv_prog_OBJDUMP="${ncn_progname}"
7772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 OBJDUMP=$ac_cv_prog_OBJDUMP
7781 if test -n "$OBJDUMP"; then
7782 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7783 echo "${ECHO_T}$OBJDUMP" >&6
7785 echo "$as_me:$LINENO: result: no" >&5
7786 echo "${ECHO_T}no" >&6
7792 for ncn_progname in objdump; do
7793 if test -n "$ncn_tool_prefix"; then
7794 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7795 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7796 echo "$as_me:$LINENO: checking for $ac_word" >&5
7797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7798 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 if test -n "$OBJDUMP"; then
7802 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7811 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 OBJDUMP=$ac_cv_prog_OBJDUMP
7821 if test -n "$OBJDUMP"; then
7822 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7823 echo "${ECHO_T}$OBJDUMP" >&6
7825 echo "$as_me:$LINENO: result: no" >&5
7826 echo "${ECHO_T}no" >&6
7830 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7832 set dummy ${ncn_progname}; ac_word=$2
7833 echo "$as_me:$LINENO: checking for $ac_word" >&5
7834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7835 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7838 if test -n "$OBJDUMP"; then
7839 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 test -z "$as_dir" && as_dir=.
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7848 ac_cv_prog_OBJDUMP="${ncn_progname}"
7849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7857 OBJDUMP=$ac_cv_prog_OBJDUMP
7858 if test -n "$OBJDUMP"; then
7859 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7860 echo "${ECHO_T}$OBJDUMP" >&6
7862 echo "$as_me:$LINENO: result: no" >&5
7863 echo "${ECHO_T}no" >&6
7867 test -n "$ac_cv_prog_OBJDUMP" && break
7870 if test -z "$ac_cv_prog_OBJDUMP" ; then
7872 if test $build = $host ; then
7875 OBJDUMP="${ncn_tool_prefix}$2"
7887 # Check whether --with-build-time-tools or --without-build-time-tools was given.
7888 if test "${with_build_time_tools+set}" = set; then
7889 withval="$with_build_time_tools"
7893 with_build_time_tools=
7894 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7895 echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
7899 with_build_time_tools=
7904 if test -n "$CC_FOR_TARGET"; then
7905 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7906 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7907 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7910 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7911 for ncn_progname in cc gcc; do
7912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7913 set dummy ${ncn_progname}; ac_word=$2
7914 echo "$as_me:$LINENO: checking for $ac_word" >&5
7915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7916 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 if test -n "$CC_FOR_TARGET"; then
7920 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7939 if test -n "$CC_FOR_TARGET"; then
7940 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7941 echo "${ECHO_T}$CC_FOR_TARGET" >&6
7943 echo "$as_me:$LINENO: result: no" >&5
7944 echo "${ECHO_T}no" >&6
7950 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
7951 for ncn_progname in cc gcc; do
7952 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7953 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7954 if test -x $with_build_time_tools/${ncn_progname}; then
7955 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7956 echo "$as_me:$LINENO: result: yes" >&5
7957 echo "${ECHO_T}yes" >&6
7960 echo "$as_me:$LINENO: result: no" >&5
7961 echo "${ECHO_T}no" >&6
7966 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7967 for ncn_progname in cc gcc; do
7968 if test -n "$ncn_target_tool_prefix"; then
7969 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7970 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7971 echo "$as_me:$LINENO: checking for $ac_word" >&5
7972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7973 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 if test -n "$CC_FOR_TARGET"; then
7977 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 test -z "$as_dir" && as_dir=.
7984 for ac_exec_ext in '' $ac_executable_extensions; do
7985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7986 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7995 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7996 if test -n "$CC_FOR_TARGET"; then
7997 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7998 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8000 echo "$as_me:$LINENO: result: no" >&5
8001 echo "${ECHO_T}no" >&6
8005 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8007 set dummy ${ncn_progname}; ac_word=$2
8008 echo "$as_me:$LINENO: checking for $ac_word" >&5
8009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8010 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 if test -n "$CC_FOR_TARGET"; then
8014 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 test -z "$as_dir" && as_dir=.
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8023 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8032 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8033 if test -n "$CC_FOR_TARGET"; then
8034 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8035 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8037 echo "$as_me:$LINENO: result: no" >&5
8038 echo "${ECHO_T}no" >&6
8042 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8046 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8048 if test $build = $target ; then
8051 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
8054 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
8059 if test -n "$CXX_FOR_TARGET"; then
8060 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8061 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8062 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8065 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8066 for ncn_progname in c++ g++ cxx gxx; do
8067 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8068 set dummy ${ncn_progname}; ac_word=$2
8069 echo "$as_me:$LINENO: checking for $ac_word" >&5
8070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8071 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8074 if test -n "$CXX_FOR_TARGET"; then
8075 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081 test -z "$as_dir" && as_dir=.
8082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8084 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8093 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8094 if test -n "$CXX_FOR_TARGET"; then
8095 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8096 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8098 echo "$as_me:$LINENO: result: no" >&5
8099 echo "${ECHO_T}no" >&6
8105 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
8106 for ncn_progname in c++ g++ cxx gxx; do
8107 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8108 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8109 if test -x $with_build_time_tools/${ncn_progname}; then
8110 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8111 echo "$as_me:$LINENO: result: yes" >&5
8112 echo "${ECHO_T}yes" >&6
8115 echo "$as_me:$LINENO: result: no" >&5
8116 echo "${ECHO_T}no" >&6
8121 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8122 for ncn_progname in c++ g++ cxx gxx; do
8123 if test -n "$ncn_target_tool_prefix"; then
8124 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8125 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8126 echo "$as_me:$LINENO: checking for $ac_word" >&5
8127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8128 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
8131 if test -n "$CXX_FOR_TARGET"; then
8132 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 test -z "$as_dir" && as_dir=.
8139 for ac_exec_ext in '' $ac_executable_extensions; do
8140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8141 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8150 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8151 if test -n "$CXX_FOR_TARGET"; then
8152 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8153 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8155 echo "$as_me:$LINENO: result: no" >&5
8156 echo "${ECHO_T}no" >&6
8160 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8161 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8162 set dummy ${ncn_progname}; ac_word=$2
8163 echo "$as_me:$LINENO: checking for $ac_word" >&5
8164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8165 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8166 echo $ECHO_N "(cached) $ECHO_C" >&6
8168 if test -n "$CXX_FOR_TARGET"; then
8169 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175 test -z "$as_dir" && as_dir=.
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8178 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8187 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8188 if test -n "$CXX_FOR_TARGET"; then
8189 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8190 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8192 echo "$as_me:$LINENO: result: no" >&5
8193 echo "${ECHO_T}no" >&6
8197 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8201 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8202 set dummy c++ g++ cxx gxx
8203 if test $build = $target ; then
8206 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
8209 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
8214 if test -n "$GCC_FOR_TARGET"; then
8215 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8216 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8217 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8220 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8221 for ncn_progname in gcc; do
8222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8223 set dummy ${ncn_progname}; ac_word=$2
8224 echo "$as_me:$LINENO: checking for $ac_word" >&5
8225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8226 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 if test -n "$GCC_FOR_TARGET"; then
8230 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
8238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8239 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8248 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8249 if test -n "$GCC_FOR_TARGET"; then
8250 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8251 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8253 echo "$as_me:$LINENO: result: no" >&5
8254 echo "${ECHO_T}no" >&6
8260 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8261 for ncn_progname in gcc; do
8262 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8263 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8264 if test -x $with_build_time_tools/${ncn_progname}; then
8265 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8266 echo "$as_me:$LINENO: result: yes" >&5
8267 echo "${ECHO_T}yes" >&6
8270 echo "$as_me:$LINENO: result: no" >&5
8271 echo "${ECHO_T}no" >&6
8276 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8277 for ncn_progname in gcc; do
8278 if test -n "$ncn_target_tool_prefix"; then
8279 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8280 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8281 echo "$as_me:$LINENO: checking for $ac_word" >&5
8282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8283 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 if test -n "$GCC_FOR_TARGET"; then
8287 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293 test -z "$as_dir" && as_dir=.
8294 for ac_exec_ext in '' $ac_executable_extensions; do
8295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8296 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8305 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8306 if test -n "$GCC_FOR_TARGET"; then
8307 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8308 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8310 echo "$as_me:$LINENO: result: no" >&5
8311 echo "${ECHO_T}no" >&6
8315 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8316 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8317 set dummy ${ncn_progname}; ac_word=$2
8318 echo "$as_me:$LINENO: checking for $ac_word" >&5
8319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8320 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 if test -n "$GCC_FOR_TARGET"; then
8324 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330 test -z "$as_dir" && as_dir=.
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8333 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8342 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8343 if test -n "$GCC_FOR_TARGET"; then
8344 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8345 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8347 echo "$as_me:$LINENO: result: no" >&5
8348 echo "${ECHO_T}no" >&6
8352 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8356 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8357 GCC_FOR_TARGET="${CC_FOR_TARGET}"
8359 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
8364 if test -n "$GCJ_FOR_TARGET"; then
8365 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8366 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8367 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8370 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8371 for ncn_progname in gcj; do
8372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8373 set dummy ${ncn_progname}; ac_word=$2
8374 echo "$as_me:$LINENO: checking for $ac_word" >&5
8375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8376 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8379 if test -n "$GCJ_FOR_TARGET"; then
8380 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386 test -z "$as_dir" && as_dir=.
8387 for ac_exec_ext in '' $ac_executable_extensions; do
8388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8389 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8398 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8399 if test -n "$GCJ_FOR_TARGET"; then
8400 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8401 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8403 echo "$as_me:$LINENO: result: no" >&5
8404 echo "${ECHO_T}no" >&6
8410 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
8411 for ncn_progname in gcj; do
8412 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8413 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8414 if test -x $with_build_time_tools/${ncn_progname}; then
8415 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8416 echo "$as_me:$LINENO: result: yes" >&5
8417 echo "${ECHO_T}yes" >&6
8420 echo "$as_me:$LINENO: result: no" >&5
8421 echo "${ECHO_T}no" >&6
8426 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8427 for ncn_progname in gcj; do
8428 if test -n "$ncn_target_tool_prefix"; then
8429 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8430 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8431 echo "$as_me:$LINENO: checking for $ac_word" >&5
8432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8433 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8436 if test -n "$GCJ_FOR_TARGET"; then
8437 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8443 test -z "$as_dir" && as_dir=.
8444 for ac_exec_ext in '' $ac_executable_extensions; do
8445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8446 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8455 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8456 if test -n "$GCJ_FOR_TARGET"; then
8457 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8458 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8460 echo "$as_me:$LINENO: result: no" >&5
8461 echo "${ECHO_T}no" >&6
8465 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8467 set dummy ${ncn_progname}; ac_word=$2
8468 echo "$as_me:$LINENO: checking for $ac_word" >&5
8469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8470 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8473 if test -n "$GCJ_FOR_TARGET"; then
8474 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 test -z "$as_dir" && as_dir=.
8481 for ac_exec_ext in '' $ac_executable_extensions; do
8482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8483 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8492 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8493 if test -n "$GCJ_FOR_TARGET"; then
8494 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8495 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8497 echo "$as_me:$LINENO: result: no" >&5
8498 echo "${ECHO_T}no" >&6
8502 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8506 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8508 if test $build = $target ; then
8511 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8514 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
8519 if test -n "$GFORTRAN_FOR_TARGET"; then
8520 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8521 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8522 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8525 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8526 for ncn_progname in gfortran; do
8527 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8528 set dummy ${ncn_progname}; ac_word=$2
8529 echo "$as_me:$LINENO: checking for $ac_word" >&5
8530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8531 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 if test -n "$GFORTRAN_FOR_TARGET"; then
8535 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541 test -z "$as_dir" && as_dir=.
8542 for ac_exec_ext in '' $ac_executable_extensions; do
8543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8544 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8553 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8554 if test -n "$GFORTRAN_FOR_TARGET"; then
8555 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8556 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8558 echo "$as_me:$LINENO: result: no" >&5
8559 echo "${ECHO_T}no" >&6
8565 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
8566 for ncn_progname in gfortran; 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_GFORTRAN_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_GFORTRAN_FOR_TARGET"; then
8582 for ncn_progname in gfortran; 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_GFORTRAN_FOR_TARGET+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8591 if test -n "$GFORTRAN_FOR_TARGET"; then
8592 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_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_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8610 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8611 if test -n "$GFORTRAN_FOR_TARGET"; then
8612 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8613 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8615 echo "$as_me:$LINENO: result: no" >&5
8616 echo "${ECHO_T}no" >&6
8620 if test -z "$ac_cv_prog_GFORTRAN_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_GFORTRAN_FOR_TARGET+set}" = set; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
8628 if test -n "$GFORTRAN_FOR_TARGET"; then
8629 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_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_GFORTRAN_FOR_TARGET="${ncn_progname}"
8639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8647 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8648 if test -n "$GFORTRAN_FOR_TARGET"; then
8649 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8650 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8652 echo "$as_me:$LINENO: result: no" >&5
8653 echo "${ECHO_T}no" >&6
8657 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8661 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8663 if test $build = $target ; then
8664 GFORTRAN_FOR_TARGET="$2"
8666 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8669 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
8674 cat > conftest.c << \EOF
8679 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8680 have_gcc_for_target=yes
8682 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8683 have_gcc_for_target=no
8690 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8691 if test -n "$with_build_time_tools"; then
8692 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8693 echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
8694 if test -x $with_build_time_tools/ar; then
8695 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8696 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
8697 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8698 echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
8700 echo "$as_me:$LINENO: result: no" >&5
8701 echo "${ECHO_T}no" >&6
8703 elif test $build != $host && test $have_gcc_for_target = yes; then
8704 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
8705 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8706 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
8709 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8710 # Extract the first word of "ar", so it can be a program name with args.
8711 set dummy ar; ac_word=$2
8712 echo "$as_me:$LINENO: checking for $ac_word" >&5
8713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8714 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
8717 case $AR_FOR_TARGET in
8719 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723 for as_dir in $gcc_cv_tool_dirs
8726 test -z "$as_dir" && as_dir=.
8727 for ac_exec_ext in '' $ac_executable_extensions; do
8728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8729 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8739 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8741 if test -n "$AR_FOR_TARGET"; then
8742 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8743 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8745 echo "$as_me:$LINENO: result: no" >&5
8746 echo "${ECHO_T}no" >&6
8750 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8753 if test -n "$AR_FOR_TARGET"; then
8754 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8755 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8756 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8759 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8760 for ncn_progname in ar; do
8761 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8762 set dummy ${ncn_progname}; ac_word=$2
8763 echo "$as_me:$LINENO: checking for $ac_word" >&5
8764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8765 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
8768 if test -n "$AR_FOR_TARGET"; then
8769 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775 test -z "$as_dir" && as_dir=.
8776 for ac_exec_ext in '' $ac_executable_extensions; do
8777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8778 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8787 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8788 if test -n "$AR_FOR_TARGET"; then
8789 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8790 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8792 echo "$as_me:$LINENO: result: no" >&5
8793 echo "${ECHO_T}no" >&6
8799 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
8800 for ncn_progname in ar; do
8801 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8802 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8803 if test -x $with_build_time_tools/${ncn_progname}; then
8804 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8805 echo "$as_me:$LINENO: result: yes" >&5
8806 echo "${ECHO_T}yes" >&6
8809 echo "$as_me:$LINENO: result: no" >&5
8810 echo "${ECHO_T}no" >&6
8815 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8816 for ncn_progname in ar; do
8817 if test -n "$ncn_target_tool_prefix"; then
8818 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8819 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8820 echo "$as_me:$LINENO: checking for $ac_word" >&5
8821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8822 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8825 if test -n "$AR_FOR_TARGET"; then
8826 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832 test -z "$as_dir" && as_dir=.
8833 for ac_exec_ext in '' $ac_executable_extensions; do
8834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8835 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8844 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8845 if test -n "$AR_FOR_TARGET"; then
8846 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8847 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8849 echo "$as_me:$LINENO: result: no" >&5
8850 echo "${ECHO_T}no" >&6
8854 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8856 set dummy ${ncn_progname}; ac_word=$2
8857 echo "$as_me:$LINENO: checking for $ac_word" >&5
8858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8859 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 if test -n "$AR_FOR_TARGET"; then
8863 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8869 test -z "$as_dir" && as_dir=.
8870 for ac_exec_ext in '' $ac_executable_extensions; do
8871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8872 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8881 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8882 if test -n "$AR_FOR_TARGET"; then
8883 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8884 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8886 echo "$as_me:$LINENO: result: no" >&5
8887 echo "${ECHO_T}no" >&6
8891 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8895 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8897 if test $build = $target ; then
8900 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
8903 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
8907 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8913 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8914 if test -n "$with_build_time_tools"; then
8915 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8916 echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
8917 if test -x $with_build_time_tools/as; then
8918 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8919 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
8920 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8921 echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
8923 echo "$as_me:$LINENO: result: no" >&5
8924 echo "${ECHO_T}no" >&6
8926 elif test $build != $host && test $have_gcc_for_target = yes; then
8927 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
8928 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
8929 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
8932 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8933 # Extract the first word of "as", so it can be a program name with args.
8934 set dummy as; ac_word=$2
8935 echo "$as_me:$LINENO: checking for $ac_word" >&5
8936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8937 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
8940 case $AS_FOR_TARGET in
8942 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946 for as_dir in $gcc_cv_tool_dirs
8949 test -z "$as_dir" && as_dir=.
8950 for ac_exec_ext in '' $ac_executable_extensions; do
8951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8952 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8962 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
8964 if test -n "$AS_FOR_TARGET"; then
8965 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8966 echo "${ECHO_T}$AS_FOR_TARGET" >&6
8968 echo "$as_me:$LINENO: result: no" >&5
8969 echo "${ECHO_T}no" >&6
8973 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8976 if test -n "$AS_FOR_TARGET"; then
8977 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
8978 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8979 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8982 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8983 for ncn_progname in as; do
8984 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8985 set dummy ${ncn_progname}; ac_word=$2
8986 echo "$as_me:$LINENO: checking for $ac_word" >&5
8987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8988 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8989 echo $ECHO_N "(cached) $ECHO_C" >&6
8991 if test -n "$AS_FOR_TARGET"; then
8992 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998 test -z "$as_dir" && as_dir=.
8999 for ac_exec_ext in '' $ac_executable_extensions; do
9000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9001 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9010 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9011 if test -n "$AS_FOR_TARGET"; then
9012 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9013 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9015 echo "$as_me:$LINENO: result: no" >&5
9016 echo "${ECHO_T}no" >&6
9022 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
9023 for ncn_progname in as; do
9024 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9025 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9026 if test -x $with_build_time_tools/${ncn_progname}; then
9027 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9028 echo "$as_me:$LINENO: result: yes" >&5
9029 echo "${ECHO_T}yes" >&6
9032 echo "$as_me:$LINENO: result: no" >&5
9033 echo "${ECHO_T}no" >&6
9038 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9039 for ncn_progname in as; do
9040 if test -n "$ncn_target_tool_prefix"; then
9041 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9042 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9043 echo "$as_me:$LINENO: checking for $ac_word" >&5
9044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9045 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9048 if test -n "$AS_FOR_TARGET"; then
9049 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9055 test -z "$as_dir" && as_dir=.
9056 for ac_exec_ext in '' $ac_executable_extensions; do
9057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9058 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9067 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9068 if test -n "$AS_FOR_TARGET"; then
9069 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9070 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9072 echo "$as_me:$LINENO: result: no" >&5
9073 echo "${ECHO_T}no" >&6
9077 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9079 set dummy ${ncn_progname}; ac_word=$2
9080 echo "$as_me:$LINENO: checking for $ac_word" >&5
9081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9082 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 if test -n "$AS_FOR_TARGET"; then
9086 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9092 test -z "$as_dir" && as_dir=.
9093 for ac_exec_ext in '' $ac_executable_extensions; do
9094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9095 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9104 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9105 if test -n "$AS_FOR_TARGET"; then
9106 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9107 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9109 echo "$as_me:$LINENO: result: no" >&5
9110 echo "${ECHO_T}no" >&6
9114 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9118 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9120 if test $build = $target ; then
9123 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9126 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
9130 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9136 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9137 if test -n "$with_build_time_tools"; then
9138 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9139 echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
9140 if test -x $with_build_time_tools/dlltool; then
9141 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9142 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9143 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9144 echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
9146 echo "$as_me:$LINENO: result: no" >&5
9147 echo "${ECHO_T}no" >&6
9149 elif test $build != $host && test $have_gcc_for_target = yes; then
9150 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
9151 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9152 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9155 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9156 # Extract the first word of "dlltool", so it can be a program name with args.
9157 set dummy dlltool; ac_word=$2
9158 echo "$as_me:$LINENO: checking for $ac_word" >&5
9159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9160 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 case $DLLTOOL_FOR_TARGET in
9165 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9169 for as_dir in $gcc_cv_tool_dirs
9172 test -z "$as_dir" && as_dir=.
9173 for ac_exec_ext in '' $ac_executable_extensions; do
9174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9175 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9185 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9187 if test -n "$DLLTOOL_FOR_TARGET"; then
9188 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9189 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9191 echo "$as_me:$LINENO: result: no" >&5
9192 echo "${ECHO_T}no" >&6
9196 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9199 if test -n "$DLLTOOL_FOR_TARGET"; then
9200 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9201 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9202 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9205 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9206 for ncn_progname in dlltool; do
9207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9208 set dummy ${ncn_progname}; ac_word=$2
9209 echo "$as_me:$LINENO: checking for $ac_word" >&5
9210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9211 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 if test -n "$DLLTOOL_FOR_TARGET"; then
9215 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221 test -z "$as_dir" && as_dir=.
9222 for ac_exec_ext in '' $ac_executable_extensions; do
9223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9224 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9233 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9234 if test -n "$DLLTOOL_FOR_TARGET"; then
9235 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9236 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9238 echo "$as_me:$LINENO: result: no" >&5
9239 echo "${ECHO_T}no" >&6
9245 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
9246 for ncn_progname in dlltool; do
9247 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9248 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9249 if test -x $with_build_time_tools/${ncn_progname}; then
9250 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9251 echo "$as_me:$LINENO: result: yes" >&5
9252 echo "${ECHO_T}yes" >&6
9255 echo "$as_me:$LINENO: result: no" >&5
9256 echo "${ECHO_T}no" >&6
9261 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9262 for ncn_progname in dlltool; do
9263 if test -n "$ncn_target_tool_prefix"; then
9264 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9265 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9266 echo "$as_me:$LINENO: checking for $ac_word" >&5
9267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9268 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9271 if test -n "$DLLTOOL_FOR_TARGET"; then
9272 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9278 test -z "$as_dir" && as_dir=.
9279 for ac_exec_ext in '' $ac_executable_extensions; do
9280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9281 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9290 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9291 if test -n "$DLLTOOL_FOR_TARGET"; then
9292 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9293 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9295 echo "$as_me:$LINENO: result: no" >&5
9296 echo "${ECHO_T}no" >&6
9300 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9302 set dummy ${ncn_progname}; ac_word=$2
9303 echo "$as_me:$LINENO: checking for $ac_word" >&5
9304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9305 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9308 if test -n "$DLLTOOL_FOR_TARGET"; then
9309 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9315 test -z "$as_dir" && as_dir=.
9316 for ac_exec_ext in '' $ac_executable_extensions; do
9317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9318 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9327 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9328 if test -n "$DLLTOOL_FOR_TARGET"; then
9329 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9330 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9332 echo "$as_me:$LINENO: result: no" >&5
9333 echo "${ECHO_T}no" >&6
9337 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9341 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9343 if test $build = $target ; then
9344 DLLTOOL_FOR_TARGET="$2"
9346 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9349 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
9353 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9359 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9360 if test -n "$with_build_time_tools"; then
9361 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9362 echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
9363 if test -x $with_build_time_tools/ld; then
9364 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9365 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9366 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9367 echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
9369 echo "$as_me:$LINENO: result: no" >&5
9370 echo "${ECHO_T}no" >&6
9372 elif test $build != $host && test $have_gcc_for_target = yes; then
9373 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
9374 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9375 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9378 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9379 # Extract the first word of "ld", so it can be a program name with args.
9380 set dummy ld; ac_word=$2
9381 echo "$as_me:$LINENO: checking for $ac_word" >&5
9382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9383 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
9386 case $LD_FOR_TARGET in
9388 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9392 for as_dir in $gcc_cv_tool_dirs
9395 test -z "$as_dir" && as_dir=.
9396 for ac_exec_ext in '' $ac_executable_extensions; do
9397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9398 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9408 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9410 if test -n "$LD_FOR_TARGET"; then
9411 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9412 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9414 echo "$as_me:$LINENO: result: no" >&5
9415 echo "${ECHO_T}no" >&6
9419 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9422 if test -n "$LD_FOR_TARGET"; then
9423 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9424 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9425 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9428 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9429 for ncn_progname in ld; do
9430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9431 set dummy ${ncn_progname}; ac_word=$2
9432 echo "$as_me:$LINENO: checking for $ac_word" >&5
9433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9434 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9437 if test -n "$LD_FOR_TARGET"; then
9438 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9444 test -z "$as_dir" && as_dir=.
9445 for ac_exec_ext in '' $ac_executable_extensions; do
9446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9447 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9456 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9457 if test -n "$LD_FOR_TARGET"; then
9458 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9459 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9461 echo "$as_me:$LINENO: result: no" >&5
9462 echo "${ECHO_T}no" >&6
9468 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
9469 for ncn_progname in ld; do
9470 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9471 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9472 if test -x $with_build_time_tools/${ncn_progname}; then
9473 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9474 echo "$as_me:$LINENO: result: yes" >&5
9475 echo "${ECHO_T}yes" >&6
9478 echo "$as_me:$LINENO: result: no" >&5
9479 echo "${ECHO_T}no" >&6
9484 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9485 for ncn_progname in ld; do
9486 if test -n "$ncn_target_tool_prefix"; then
9487 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9488 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9489 echo "$as_me:$LINENO: checking for $ac_word" >&5
9490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9491 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 if test -n "$LD_FOR_TARGET"; then
9495 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9501 test -z "$as_dir" && as_dir=.
9502 for ac_exec_ext in '' $ac_executable_extensions; do
9503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9504 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9513 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9514 if test -n "$LD_FOR_TARGET"; then
9515 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9516 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9518 echo "$as_me:$LINENO: result: no" >&5
9519 echo "${ECHO_T}no" >&6
9523 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9525 set dummy ${ncn_progname}; ac_word=$2
9526 echo "$as_me:$LINENO: checking for $ac_word" >&5
9527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9528 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9529 echo $ECHO_N "(cached) $ECHO_C" >&6
9531 if test -n "$LD_FOR_TARGET"; then
9532 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538 test -z "$as_dir" && as_dir=.
9539 for ac_exec_ext in '' $ac_executable_extensions; do
9540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9541 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9550 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9551 if test -n "$LD_FOR_TARGET"; then
9552 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9553 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9555 echo "$as_me:$LINENO: result: no" >&5
9556 echo "${ECHO_T}no" >&6
9560 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9564 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9566 if test $build = $target ; then
9569 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9572 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
9576 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9582 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9583 if test -n "$with_build_time_tools"; then
9584 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9585 echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
9586 if test -x $with_build_time_tools/lipo; then
9587 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9588 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9589 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9590 echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
9592 echo "$as_me:$LINENO: result: no" >&5
9593 echo "${ECHO_T}no" >&6
9595 elif test $build != $host && test $have_gcc_for_target = yes; then
9596 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
9597 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9598 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9601 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9602 # Extract the first word of "lipo", so it can be a program name with args.
9603 set dummy lipo; ac_word=$2
9604 echo "$as_me:$LINENO: checking for $ac_word" >&5
9605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9606 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 case $LIPO_FOR_TARGET in
9611 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9615 for as_dir in $gcc_cv_tool_dirs
9618 test -z "$as_dir" && as_dir=.
9619 for ac_exec_ext in '' $ac_executable_extensions; do
9620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9621 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9631 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9633 if test -n "$LIPO_FOR_TARGET"; then
9634 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9635 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9637 echo "$as_me:$LINENO: result: no" >&5
9638 echo "${ECHO_T}no" >&6
9642 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9645 if test -n "$LIPO_FOR_TARGET"; then
9646 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9647 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9648 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9651 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9652 for ncn_progname in lipo; do
9653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9654 set dummy ${ncn_progname}; ac_word=$2
9655 echo "$as_me:$LINENO: checking for $ac_word" >&5
9656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9657 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9660 if test -n "$LIPO_FOR_TARGET"; then
9661 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667 test -z "$as_dir" && as_dir=.
9668 for ac_exec_ext in '' $ac_executable_extensions; do
9669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9670 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9679 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9680 if test -n "$LIPO_FOR_TARGET"; then
9681 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9682 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9684 echo "$as_me:$LINENO: result: no" >&5
9685 echo "${ECHO_T}no" >&6
9691 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
9692 for ncn_progname in lipo; do
9693 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9694 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9695 if test -x $with_build_time_tools/${ncn_progname}; then
9696 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9697 echo "$as_me:$LINENO: result: yes" >&5
9698 echo "${ECHO_T}yes" >&6
9701 echo "$as_me:$LINENO: result: no" >&5
9702 echo "${ECHO_T}no" >&6
9707 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9708 for ncn_progname in lipo; do
9709 if test -n "$ncn_target_tool_prefix"; then
9710 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9711 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9712 echo "$as_me:$LINENO: checking for $ac_word" >&5
9713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9714 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9717 if test -n "$LIPO_FOR_TARGET"; then
9718 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724 test -z "$as_dir" && as_dir=.
9725 for ac_exec_ext in '' $ac_executable_extensions; do
9726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9727 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9736 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9737 if test -n "$LIPO_FOR_TARGET"; then
9738 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9739 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9741 echo "$as_me:$LINENO: result: no" >&5
9742 echo "${ECHO_T}no" >&6
9746 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9748 set dummy ${ncn_progname}; ac_word=$2
9749 echo "$as_me:$LINENO: checking for $ac_word" >&5
9750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9751 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9752 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 if test -n "$LIPO_FOR_TARGET"; then
9755 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9761 test -z "$as_dir" && as_dir=.
9762 for ac_exec_ext in '' $ac_executable_extensions; do
9763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9764 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9773 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9774 if test -n "$LIPO_FOR_TARGET"; then
9775 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9776 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9778 echo "$as_me:$LINENO: result: no" >&5
9779 echo "${ECHO_T}no" >&6
9783 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9787 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9789 if test $build = $target ; then
9790 LIPO_FOR_TARGET="$2"
9792 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9795 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
9799 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9805 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9806 if test -n "$with_build_time_tools"; then
9807 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9808 echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
9809 if test -x $with_build_time_tools/nm; then
9810 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9811 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
9812 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9813 echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
9815 echo "$as_me:$LINENO: result: no" >&5
9816 echo "${ECHO_T}no" >&6
9818 elif test $build != $host && test $have_gcc_for_target = yes; then
9819 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
9820 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9821 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
9824 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9825 # Extract the first word of "nm", so it can be a program name with args.
9826 set dummy nm; ac_word=$2
9827 echo "$as_me:$LINENO: checking for $ac_word" >&5
9828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9829 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 case $NM_FOR_TARGET in
9834 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838 for as_dir in $gcc_cv_tool_dirs
9841 test -z "$as_dir" && as_dir=.
9842 for ac_exec_ext in '' $ac_executable_extensions; do
9843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9844 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9854 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9856 if test -n "$NM_FOR_TARGET"; then
9857 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9858 echo "${ECHO_T}$NM_FOR_TARGET" >&6
9860 echo "$as_me:$LINENO: result: no" >&5
9861 echo "${ECHO_T}no" >&6
9865 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9868 if test -n "$NM_FOR_TARGET"; then
9869 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9870 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9871 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9874 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9875 for ncn_progname in nm; do
9876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9877 set dummy ${ncn_progname}; ac_word=$2
9878 echo "$as_me:$LINENO: checking for $ac_word" >&5
9879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9880 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 if test -n "$NM_FOR_TARGET"; then
9884 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9890 test -z "$as_dir" && as_dir=.
9891 for ac_exec_ext in '' $ac_executable_extensions; do
9892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9893 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9902 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9903 if test -n "$NM_FOR_TARGET"; then
9904 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9905 echo "${ECHO_T}$NM_FOR_TARGET" >&6
9907 echo "$as_me:$LINENO: result: no" >&5
9908 echo "${ECHO_T}no" >&6
9914 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
9915 for ncn_progname in nm; do
9916 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9917 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9918 if test -x $with_build_time_tools/${ncn_progname}; then
9919 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9920 echo "$as_me:$LINENO: result: yes" >&5
9921 echo "${ECHO_T}yes" >&6
9924 echo "$as_me:$LINENO: result: no" >&5
9925 echo "${ECHO_T}no" >&6
9930 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9931 for ncn_progname in nm; do
9932 if test -n "$ncn_target_tool_prefix"; then
9933 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9934 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9935 echo "$as_me:$LINENO: checking for $ac_word" >&5
9936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9937 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 if test -n "$NM_FOR_TARGET"; then
9941 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9947 test -z "$as_dir" && as_dir=.
9948 for ac_exec_ext in '' $ac_executable_extensions; do
9949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9950 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9959 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9960 if test -n "$NM_FOR_TARGET"; then
9961 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9962 echo "${ECHO_T}$NM_FOR_TARGET" >&6
9964 echo "$as_me:$LINENO: result: no" >&5
9965 echo "${ECHO_T}no" >&6
9969 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
9970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9971 set dummy ${ncn_progname}; ac_word=$2
9972 echo "$as_me:$LINENO: checking for $ac_word" >&5
9973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9974 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 if test -n "$NM_FOR_TARGET"; then
9978 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9984 test -z "$as_dir" && as_dir=.
9985 for ac_exec_ext in '' $ac_executable_extensions; do
9986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9987 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9996 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9997 if test -n "$NM_FOR_TARGET"; then
9998 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9999 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10001 echo "$as_me:$LINENO: result: no" >&5
10002 echo "${ECHO_T}no" >&6
10006 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10010 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10012 if test $build = $target ; then
10015 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
10018 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
10022 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10028 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10029 if test -n "$with_build_time_tools"; then
10030 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10031 echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
10032 if test -x $with_build_time_tools/objdump; then
10033 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10034 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10035 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10036 echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
10038 echo "$as_me:$LINENO: result: no" >&5
10039 echo "${ECHO_T}no" >&6
10041 elif test $build != $host && test $have_gcc_for_target = yes; then
10042 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
10043 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10044 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10047 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10048 # Extract the first word of "objdump", so it can be a program name with args.
10049 set dummy objdump; ac_word=$2
10050 echo "$as_me:$LINENO: checking for $ac_word" >&5
10051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10052 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
10055 case $OBJDUMP_FOR_TARGET in
10057 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061 for as_dir in $gcc_cv_tool_dirs
10064 test -z "$as_dir" && as_dir=.
10065 for ac_exec_ext in '' $ac_executable_extensions; do
10066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10067 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10077 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10079 if test -n "$OBJDUMP_FOR_TARGET"; then
10080 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10081 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10083 echo "$as_me:$LINENO: result: no" >&5
10084 echo "${ECHO_T}no" >&6
10088 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10091 if test -n "$OBJDUMP_FOR_TARGET"; then
10092 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10093 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10094 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10097 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10098 for ncn_progname in objdump; do
10099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10100 set dummy ${ncn_progname}; ac_word=$2
10101 echo "$as_me:$LINENO: checking for $ac_word" >&5
10102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10103 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10106 if test -n "$OBJDUMP_FOR_TARGET"; then
10107 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10110 for as_dir in $PATH
10113 test -z "$as_dir" && as_dir=.
10114 for ac_exec_ext in '' $ac_executable_extensions; do
10115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10116 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10125 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10126 if test -n "$OBJDUMP_FOR_TARGET"; then
10127 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10128 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10130 echo "$as_me:$LINENO: result: no" >&5
10131 echo "${ECHO_T}no" >&6
10137 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10138 for ncn_progname in objdump; do
10139 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10140 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10141 if test -x $with_build_time_tools/${ncn_progname}; then
10142 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10143 echo "$as_me:$LINENO: result: yes" >&5
10144 echo "${ECHO_T}yes" >&6
10147 echo "$as_me:$LINENO: result: no" >&5
10148 echo "${ECHO_T}no" >&6
10153 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10154 for ncn_progname in objdump; do
10155 if test -n "$ncn_target_tool_prefix"; then
10156 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10157 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10158 echo "$as_me:$LINENO: checking for $ac_word" >&5
10159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10160 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10161 echo $ECHO_N "(cached) $ECHO_C" >&6
10163 if test -n "$OBJDUMP_FOR_TARGET"; then
10164 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167 for as_dir in $PATH
10170 test -z "$as_dir" && as_dir=.
10171 for ac_exec_ext in '' $ac_executable_extensions; do
10172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10173 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10182 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10183 if test -n "$OBJDUMP_FOR_TARGET"; then
10184 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10185 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10187 echo "$as_me:$LINENO: result: no" >&5
10188 echo "${ECHO_T}no" >&6
10192 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10194 set dummy ${ncn_progname}; ac_word=$2
10195 echo "$as_me:$LINENO: checking for $ac_word" >&5
10196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10197 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10198 echo $ECHO_N "(cached) $ECHO_C" >&6
10200 if test -n "$OBJDUMP_FOR_TARGET"; then
10201 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10204 for as_dir in $PATH
10207 test -z "$as_dir" && as_dir=.
10208 for ac_exec_ext in '' $ac_executable_extensions; do
10209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10210 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10219 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10220 if test -n "$OBJDUMP_FOR_TARGET"; then
10221 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10222 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10224 echo "$as_me:$LINENO: result: no" >&5
10225 echo "${ECHO_T}no" >&6
10229 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10233 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10235 if test $build = $target ; then
10236 OBJDUMP_FOR_TARGET="$2"
10238 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10241 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
10245 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10251 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10252 if test -n "$with_build_time_tools"; then
10253 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10254 echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
10255 if test -x $with_build_time_tools/ranlib; then
10256 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10257 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10258 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10259 echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
10261 echo "$as_me:$LINENO: result: no" >&5
10262 echo "${ECHO_T}no" >&6
10264 elif test $build != $host && test $have_gcc_for_target = yes; then
10265 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
10266 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10267 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10270 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10271 # Extract the first word of "ranlib", so it can be a program name with args.
10272 set dummy ranlib; ac_word=$2
10273 echo "$as_me:$LINENO: checking for $ac_word" >&5
10274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10275 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 case $RANLIB_FOR_TARGET in
10280 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10284 for as_dir in $gcc_cv_tool_dirs
10287 test -z "$as_dir" && as_dir=.
10288 for ac_exec_ext in '' $ac_executable_extensions; do
10289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10290 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10300 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10302 if test -n "$RANLIB_FOR_TARGET"; then
10303 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10304 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10306 echo "$as_me:$LINENO: result: no" >&5
10307 echo "${ECHO_T}no" >&6
10311 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10314 if test -n "$RANLIB_FOR_TARGET"; then
10315 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10316 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10317 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10320 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10321 for ncn_progname in ranlib; do
10322 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10323 set dummy ${ncn_progname}; ac_word=$2
10324 echo "$as_me:$LINENO: checking for $ac_word" >&5
10325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10326 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
10329 if test -n "$RANLIB_FOR_TARGET"; then
10330 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10333 for as_dir in $PATH
10336 test -z "$as_dir" && as_dir=.
10337 for ac_exec_ext in '' $ac_executable_extensions; do
10338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10339 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10348 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10349 if test -n "$RANLIB_FOR_TARGET"; then
10350 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10351 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10353 echo "$as_me:$LINENO: result: no" >&5
10354 echo "${ECHO_T}no" >&6
10360 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
10361 for ncn_progname in ranlib; do
10362 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10363 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10364 if test -x $with_build_time_tools/${ncn_progname}; then
10365 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10366 echo "$as_me:$LINENO: result: yes" >&5
10367 echo "${ECHO_T}yes" >&6
10370 echo "$as_me:$LINENO: result: no" >&5
10371 echo "${ECHO_T}no" >&6
10376 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10377 for ncn_progname in ranlib; do
10378 if test -n "$ncn_target_tool_prefix"; then
10379 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10380 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10381 echo "$as_me:$LINENO: checking for $ac_word" >&5
10382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10383 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10386 if test -n "$RANLIB_FOR_TARGET"; then
10387 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10390 for as_dir in $PATH
10393 test -z "$as_dir" && as_dir=.
10394 for ac_exec_ext in '' $ac_executable_extensions; do
10395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10396 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10405 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10406 if test -n "$RANLIB_FOR_TARGET"; then
10407 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10408 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10410 echo "$as_me:$LINENO: result: no" >&5
10411 echo "${ECHO_T}no" >&6
10415 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10417 set dummy ${ncn_progname}; ac_word=$2
10418 echo "$as_me:$LINENO: checking for $ac_word" >&5
10419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10420 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10423 if test -n "$RANLIB_FOR_TARGET"; then
10424 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10427 for as_dir in $PATH
10430 test -z "$as_dir" && as_dir=.
10431 for ac_exec_ext in '' $ac_executable_extensions; do
10432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10433 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10442 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10443 if test -n "$RANLIB_FOR_TARGET"; then
10444 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10445 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10447 echo "$as_me:$LINENO: result: no" >&5
10448 echo "${ECHO_T}no" >&6
10452 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10456 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10458 if test $build = $target ; then
10459 RANLIB_FOR_TARGET="$2"
10461 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
10464 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
10468 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10474 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10475 if test -n "$with_build_time_tools"; then
10476 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10477 echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
10478 if test -x $with_build_time_tools/strip; then
10479 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10480 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10481 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10482 echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
10484 echo "$as_me:$LINENO: result: no" >&5
10485 echo "${ECHO_T}no" >&6
10487 elif test $build != $host && test $have_gcc_for_target = yes; then
10488 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
10489 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10490 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10493 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10494 # Extract the first word of "strip", so it can be a program name with args.
10495 set dummy strip; ac_word=$2
10496 echo "$as_me:$LINENO: checking for $ac_word" >&5
10497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10498 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10501 case $STRIP_FOR_TARGET in
10503 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10507 for as_dir in $gcc_cv_tool_dirs
10510 test -z "$as_dir" && as_dir=.
10511 for ac_exec_ext in '' $ac_executable_extensions; do
10512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10513 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10523 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10525 if test -n "$STRIP_FOR_TARGET"; then
10526 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10527 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10529 echo "$as_me:$LINENO: result: no" >&5
10530 echo "${ECHO_T}no" >&6
10534 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10537 if test -n "$STRIP_FOR_TARGET"; then
10538 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10539 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10540 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10543 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10544 for ncn_progname in strip; do
10545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10546 set dummy ${ncn_progname}; ac_word=$2
10547 echo "$as_me:$LINENO: checking for $ac_word" >&5
10548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10549 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 if test -n "$STRIP_FOR_TARGET"; then
10553 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10556 for as_dir in $PATH
10559 test -z "$as_dir" && as_dir=.
10560 for ac_exec_ext in '' $ac_executable_extensions; do
10561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10562 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10571 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10572 if test -n "$STRIP_FOR_TARGET"; then
10573 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10574 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10576 echo "$as_me:$LINENO: result: no" >&5
10577 echo "${ECHO_T}no" >&6
10583 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10584 for ncn_progname in strip; do
10585 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10586 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10587 if test -x $with_build_time_tools/${ncn_progname}; then
10588 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10589 echo "$as_me:$LINENO: result: yes" >&5
10590 echo "${ECHO_T}yes" >&6
10593 echo "$as_me:$LINENO: result: no" >&5
10594 echo "${ECHO_T}no" >&6
10599 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10600 for ncn_progname in strip; do
10601 if test -n "$ncn_target_tool_prefix"; then
10602 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10603 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10604 echo "$as_me:$LINENO: checking for $ac_word" >&5
10605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10606 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
10609 if test -n "$STRIP_FOR_TARGET"; then
10610 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10613 for as_dir in $PATH
10616 test -z "$as_dir" && as_dir=.
10617 for ac_exec_ext in '' $ac_executable_extensions; do
10618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10619 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10628 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10629 if test -n "$STRIP_FOR_TARGET"; then
10630 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10631 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10633 echo "$as_me:$LINENO: result: no" >&5
10634 echo "${ECHO_T}no" >&6
10638 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10639 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10640 set dummy ${ncn_progname}; ac_word=$2
10641 echo "$as_me:$LINENO: checking for $ac_word" >&5
10642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10643 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 if test -n "$STRIP_FOR_TARGET"; then
10647 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10650 for as_dir in $PATH
10653 test -z "$as_dir" && as_dir=.
10654 for ac_exec_ext in '' $ac_executable_extensions; do
10655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10656 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10665 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10666 if test -n "$STRIP_FOR_TARGET"; then
10667 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10668 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10670 echo "$as_me:$LINENO: result: no" >&5
10671 echo "${ECHO_T}no" >&6
10675 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10679 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10681 if test $build = $target ; then
10682 STRIP_FOR_TARGET="$2"
10684 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10687 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
10691 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10697 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10698 if test -n "$with_build_time_tools"; then
10699 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10700 echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
10701 if test -x $with_build_time_tools/windres; then
10702 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10703 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10704 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10705 echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
10707 echo "$as_me:$LINENO: result: no" >&5
10708 echo "${ECHO_T}no" >&6
10710 elif test $build != $host && test $have_gcc_for_target = yes; then
10711 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
10712 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10713 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10716 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10717 # Extract the first word of "windres", so it can be a program name with args.
10718 set dummy windres; ac_word=$2
10719 echo "$as_me:$LINENO: checking for $ac_word" >&5
10720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10721 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 case $WINDRES_FOR_TARGET in
10726 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730 for as_dir in $gcc_cv_tool_dirs
10733 test -z "$as_dir" && as_dir=.
10734 for ac_exec_ext in '' $ac_executable_extensions; do
10735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10736 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10746 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10748 if test -n "$WINDRES_FOR_TARGET"; then
10749 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10750 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10752 echo "$as_me:$LINENO: result: no" >&5
10753 echo "${ECHO_T}no" >&6
10757 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10760 if test -n "$WINDRES_FOR_TARGET"; then
10761 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10762 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10763 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10766 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10767 for ncn_progname in windres; do
10768 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10769 set dummy ${ncn_progname}; ac_word=$2
10770 echo "$as_me:$LINENO: checking for $ac_word" >&5
10771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10772 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
10775 if test -n "$WINDRES_FOR_TARGET"; then
10776 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10779 for as_dir in $PATH
10782 test -z "$as_dir" && as_dir=.
10783 for ac_exec_ext in '' $ac_executable_extensions; do
10784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10785 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10794 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10795 if test -n "$WINDRES_FOR_TARGET"; then
10796 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10797 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10799 echo "$as_me:$LINENO: result: no" >&5
10800 echo "${ECHO_T}no" >&6
10806 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
10807 for ncn_progname in windres; do
10808 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10809 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10810 if test -x $with_build_time_tools/${ncn_progname}; then
10811 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10812 echo "$as_me:$LINENO: result: yes" >&5
10813 echo "${ECHO_T}yes" >&6
10816 echo "$as_me:$LINENO: result: no" >&5
10817 echo "${ECHO_T}no" >&6
10822 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10823 for ncn_progname in windres; do
10824 if test -n "$ncn_target_tool_prefix"; then
10825 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10826 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10827 echo "$as_me:$LINENO: checking for $ac_word" >&5
10828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10829 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10832 if test -n "$WINDRES_FOR_TARGET"; then
10833 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836 for as_dir in $PATH
10839 test -z "$as_dir" && as_dir=.
10840 for ac_exec_ext in '' $ac_executable_extensions; do
10841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10842 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10851 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10852 if test -n "$WINDRES_FOR_TARGET"; then
10853 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10854 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10856 echo "$as_me:$LINENO: result: no" >&5
10857 echo "${ECHO_T}no" >&6
10861 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10863 set dummy ${ncn_progname}; ac_word=$2
10864 echo "$as_me:$LINENO: checking for $ac_word" >&5
10865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10866 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10867 echo $ECHO_N "(cached) $ECHO_C" >&6
10869 if test -n "$WINDRES_FOR_TARGET"; then
10870 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10873 for as_dir in $PATH
10876 test -z "$as_dir" && as_dir=.
10877 for ac_exec_ext in '' $ac_executable_extensions; do
10878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10879 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10888 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10889 if test -n "$WINDRES_FOR_TARGET"; then
10890 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10891 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10893 echo "$as_me:$LINENO: result: no" >&5
10894 echo "${ECHO_T}no" >&6
10898 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10902 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10904 if test $build = $target ; then
10905 WINDRES_FOR_TARGET="$2"
10907 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
10910 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
10914 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10920 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10921 if test -n "$with_build_time_tools"; then
10922 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
10923 echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
10924 if test -x $with_build_time_tools/windmc; then
10925 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
10926 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10927 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
10928 echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
10930 echo "$as_me:$LINENO: result: no" >&5
10931 echo "${ECHO_T}no" >&6
10933 elif test $build != $host && test $have_gcc_for_target = yes; then
10934 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
10935 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
10936 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10939 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10940 # Extract the first word of "windmc", so it can be a program name with args.
10941 set dummy windmc; ac_word=$2
10942 echo "$as_me:$LINENO: checking for $ac_word" >&5
10943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10944 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10947 case $WINDMC_FOR_TARGET in
10949 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
10952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953 for as_dir in $gcc_cv_tool_dirs
10956 test -z "$as_dir" && as_dir=.
10957 for ac_exec_ext in '' $ac_executable_extensions; do
10958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10959 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10969 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
10971 if test -n "$WINDMC_FOR_TARGET"; then
10972 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
10973 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
10975 echo "$as_me:$LINENO: result: no" >&5
10976 echo "${ECHO_T}no" >&6
10980 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10983 if test -n "$WINDMC_FOR_TARGET"; then
10984 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10985 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
10986 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
10989 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
10990 for ncn_progname in windmc; do
10991 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10992 set dummy ${ncn_progname}; ac_word=$2
10993 echo "$as_me:$LINENO: checking for $ac_word" >&5
10994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10995 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10998 if test -n "$WINDMC_FOR_TARGET"; then
10999 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11002 for as_dir in $PATH
11005 test -z "$as_dir" && as_dir=.
11006 for ac_exec_ext in '' $ac_executable_extensions; do
11007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11008 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11017 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11018 if test -n "$WINDMC_FOR_TARGET"; then
11019 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11020 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11022 echo "$as_me:$LINENO: result: no" >&5
11023 echo "${ECHO_T}no" >&6
11029 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11030 for ncn_progname in windmc; do
11031 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11032 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11033 if test -x $with_build_time_tools/${ncn_progname}; then
11034 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11035 echo "$as_me:$LINENO: result: yes" >&5
11036 echo "${ECHO_T}yes" >&6
11039 echo "$as_me:$LINENO: result: no" >&5
11040 echo "${ECHO_T}no" >&6
11045 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11046 for ncn_progname in windmc; do
11047 if test -n "$ncn_target_tool_prefix"; then
11048 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11049 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11050 echo "$as_me:$LINENO: checking for $ac_word" >&5
11051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11052 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11055 if test -n "$WINDMC_FOR_TARGET"; then
11056 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11059 for as_dir in $PATH
11062 test -z "$as_dir" && as_dir=.
11063 for ac_exec_ext in '' $ac_executable_extensions; do
11064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11065 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11074 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11075 if test -n "$WINDMC_FOR_TARGET"; then
11076 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11077 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11079 echo "$as_me:$LINENO: result: no" >&5
11080 echo "${ECHO_T}no" >&6
11084 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11086 set dummy ${ncn_progname}; ac_word=$2
11087 echo "$as_me:$LINENO: checking for $ac_word" >&5
11088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11089 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 if test -n "$WINDMC_FOR_TARGET"; then
11093 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096 for as_dir in $PATH
11099 test -z "$as_dir" && as_dir=.
11100 for ac_exec_ext in '' $ac_executable_extensions; do
11101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11102 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11111 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11112 if test -n "$WINDMC_FOR_TARGET"; then
11113 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11114 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11116 echo "$as_me:$LINENO: result: no" >&5
11117 echo "${ECHO_T}no" >&6
11121 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11125 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11127 if test $build = $target ; then
11128 WINDMC_FOR_TARGET="$2"
11130 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11133 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11137 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11141 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11143 echo "$as_me:$LINENO: checking where to find the target ar" >&5
11144 echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
11145 if test "x${build}" != "x${host}" ; then
11146 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11147 # We already found the complete path
11148 ac_dir=`dirname $AR_FOR_TARGET`
11149 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11150 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11152 # Canadian cross, just use what we found
11153 echo "$as_me:$LINENO: result: pre-installed" >&5
11154 echo "${ECHO_T}pre-installed" >&6
11158 case " ${configdirs} " in
11163 if test $ok = yes; then
11164 # An in-tree tool is available and we can use it
11165 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
11166 echo "$as_me:$LINENO: result: just compiled" >&5
11167 echo "${ECHO_T}just compiled" >&6
11168 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11169 # We already found the complete path
11170 ac_dir=`dirname $AR_FOR_TARGET`
11171 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11172 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11173 elif test "x$target" = "x$host"; then
11174 # We can use an host tool
11175 AR_FOR_TARGET='$(AR)'
11176 echo "$as_me:$LINENO: result: host tool" >&5
11177 echo "${ECHO_T}host tool" >&6
11179 # We need a cross tool
11180 echo "$as_me:$LINENO: result: pre-installed" >&5
11181 echo "${ECHO_T}pre-installed" >&6
11185 echo "$as_me:$LINENO: checking where to find the target as" >&5
11186 echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
11187 if test "x${build}" != "x${host}" ; then
11188 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11189 # We already found the complete path
11190 ac_dir=`dirname $AS_FOR_TARGET`
11191 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11192 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11194 # Canadian cross, just use what we found
11195 echo "$as_me:$LINENO: result: pre-installed" >&5
11196 echo "${ECHO_T}pre-installed" >&6
11200 case " ${configdirs} " in
11205 if test $ok = yes; then
11206 # An in-tree tool is available and we can use it
11207 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
11208 echo "$as_me:$LINENO: result: just compiled" >&5
11209 echo "${ECHO_T}just compiled" >&6
11210 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11211 # We already found the complete path
11212 ac_dir=`dirname $AS_FOR_TARGET`
11213 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11214 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11215 elif test "x$target" = "x$host"; then
11216 # We can use an host tool
11217 AS_FOR_TARGET='$(AS)'
11218 echo "$as_me:$LINENO: result: host tool" >&5
11219 echo "${ECHO_T}host tool" >&6
11221 # We need a cross tool
11222 echo "$as_me:$LINENO: result: pre-installed" >&5
11223 echo "${ECHO_T}pre-installed" >&6
11227 echo "$as_me:$LINENO: checking where to find the target cc" >&5
11228 echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
11229 if test "x${build}" != "x${host}" ; then
11230 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11231 # We already found the complete path
11232 ac_dir=`dirname $CC_FOR_TARGET`
11233 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11234 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11236 # Canadian cross, just use what we found
11237 echo "$as_me:$LINENO: result: pre-installed" >&5
11238 echo "${ECHO_T}pre-installed" >&6
11242 case " ${configdirs} " in
11247 if test $ok = yes; then
11248 # An in-tree tool is available and we can use it
11249 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11250 echo "$as_me:$LINENO: result: just compiled" >&5
11251 echo "${ECHO_T}just compiled" >&6
11252 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11253 # We already found the complete path
11254 ac_dir=`dirname $CC_FOR_TARGET`
11255 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11256 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11257 elif test "x$target" = "x$host"; then
11258 # We can use an host tool
11259 CC_FOR_TARGET='$(CC)'
11260 echo "$as_me:$LINENO: result: host tool" >&5
11261 echo "${ECHO_T}host tool" >&6
11263 # We need a cross tool
11264 echo "$as_me:$LINENO: result: pre-installed" >&5
11265 echo "${ECHO_T}pre-installed" >&6
11269 echo "$as_me:$LINENO: checking where to find the target c++" >&5
11270 echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
11271 if test "x${build}" != "x${host}" ; then
11272 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11273 # We already found the complete path
11274 ac_dir=`dirname $CXX_FOR_TARGET`
11275 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11276 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11278 # Canadian cross, just use what we found
11279 echo "$as_me:$LINENO: result: pre-installed" >&5
11280 echo "${ECHO_T}pre-installed" >&6
11284 case " ${configdirs} " in
11288 case ,${enable_languages}, in
11292 if test $ok = yes; then
11293 # An in-tree tool is available and we can use it
11294 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'
11295 echo "$as_me:$LINENO: result: just compiled" >&5
11296 echo "${ECHO_T}just compiled" >&6
11297 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11298 # We already found the complete path
11299 ac_dir=`dirname $CXX_FOR_TARGET`
11300 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11301 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11302 elif test "x$target" = "x$host"; then
11303 # We can use an host tool
11304 CXX_FOR_TARGET='$(CXX)'
11305 echo "$as_me:$LINENO: result: host tool" >&5
11306 echo "${ECHO_T}host tool" >&6
11308 # We need a cross tool
11309 echo "$as_me:$LINENO: result: pre-installed" >&5
11310 echo "${ECHO_T}pre-installed" >&6
11314 echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11315 echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
11316 if test "x${build}" != "x${host}" ; then
11317 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11318 # We already found the complete path
11319 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11320 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11321 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11323 # Canadian cross, just use what we found
11324 echo "$as_me:$LINENO: result: pre-installed" >&5
11325 echo "${ECHO_T}pre-installed" >&6
11329 case " ${configdirs} " in
11333 case ,${enable_languages}, in
11337 if test $ok = yes; then
11338 # An in-tree tool is available and we can use it
11339 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'
11340 echo "$as_me:$LINENO: result: just compiled" >&5
11341 echo "${ECHO_T}just compiled" >&6
11342 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11343 # We already found the complete path
11344 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11345 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11346 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11347 elif test "x$target" = "x$host"; then
11348 # We can use an host tool
11349 RAW_CXX_FOR_TARGET='$(CXX)'
11350 echo "$as_me:$LINENO: result: host tool" >&5
11351 echo "${ECHO_T}host tool" >&6
11353 # We need a cross tool
11354 echo "$as_me:$LINENO: result: pre-installed" >&5
11355 echo "${ECHO_T}pre-installed" >&6
11359 echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11360 echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
11361 if test "x${build}" != "x${host}" ; then
11362 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11363 # We already found the complete path
11364 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11365 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11366 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11368 # Canadian cross, just use what we found
11369 echo "$as_me:$LINENO: result: pre-installed" >&5
11370 echo "${ECHO_T}pre-installed" >&6
11374 case " ${configdirs} " in
11379 if test $ok = yes; then
11380 # An in-tree tool is available and we can use it
11381 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
11382 echo "$as_me:$LINENO: result: just compiled" >&5
11383 echo "${ECHO_T}just compiled" >&6
11384 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11385 # We already found the complete path
11386 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11387 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11388 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11389 elif test "x$target" = "x$host"; then
11390 # We can use an host tool
11391 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
11392 echo "$as_me:$LINENO: result: host tool" >&5
11393 echo "${ECHO_T}host tool" >&6
11395 # We need a cross tool
11396 echo "$as_me:$LINENO: result: pre-installed" >&5
11397 echo "${ECHO_T}pre-installed" >&6
11401 echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11402 echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
11403 if test "x${build}" != "x${host}" ; then
11404 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11405 # We already found the complete path
11406 ac_dir=`dirname $GCC_FOR_TARGET`
11407 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11408 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11410 # Canadian cross, just use what we found
11411 echo "$as_me:$LINENO: result: pre-installed" >&5
11412 echo "${ECHO_T}pre-installed" >&6
11416 case " ${configdirs} " in
11421 if test $ok = yes; then
11422 # An in-tree tool is available and we can use it
11423 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11424 echo "$as_me:$LINENO: result: just compiled" >&5
11425 echo "${ECHO_T}just compiled" >&6
11426 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11427 # We already found the complete path
11428 ac_dir=`dirname $GCC_FOR_TARGET`
11429 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11430 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11431 elif test "x$target" = "x$host"; then
11432 # We can use an host tool
11433 GCC_FOR_TARGET='$()'
11434 echo "$as_me:$LINENO: result: host tool" >&5
11435 echo "${ECHO_T}host tool" >&6
11437 # We need a cross tool
11438 echo "$as_me:$LINENO: result: pre-installed" >&5
11439 echo "${ECHO_T}pre-installed" >&6
11443 echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11444 echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
11445 if test "x${build}" != "x${host}" ; then
11446 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11447 # We already found the complete path
11448 ac_dir=`dirname $GCJ_FOR_TARGET`
11449 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11450 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11452 # Canadian cross, just use what we found
11453 echo "$as_me:$LINENO: result: pre-installed" >&5
11454 echo "${ECHO_T}pre-installed" >&6
11458 case " ${configdirs} " in
11462 case ,${enable_languages}, in
11466 if test $ok = yes; then
11467 # An in-tree tool is available and we can use it
11468 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
11469 echo "$as_me:$LINENO: result: just compiled" >&5
11470 echo "${ECHO_T}just compiled" >&6
11471 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11472 # We already found the complete path
11473 ac_dir=`dirname $GCJ_FOR_TARGET`
11474 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11475 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11476 elif test "x$target" = "x$host"; then
11477 # We can use an host tool
11478 GCJ_FOR_TARGET='$(GCJ)'
11479 echo "$as_me:$LINENO: result: host tool" >&5
11480 echo "${ECHO_T}host tool" >&6
11482 # We need a cross tool
11483 echo "$as_me:$LINENO: result: pre-installed" >&5
11484 echo "${ECHO_T}pre-installed" >&6
11488 echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11489 echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
11490 if test "x${build}" != "x${host}" ; then
11491 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11492 # We already found the complete path
11493 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11494 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11495 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11497 # Canadian cross, just use what we found
11498 echo "$as_me:$LINENO: result: pre-installed" >&5
11499 echo "${ECHO_T}pre-installed" >&6
11503 case " ${configdirs} " in
11507 case ,${enable_languages}, in
11511 if test $ok = yes; then
11512 # An in-tree tool is available and we can use it
11513 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
11514 echo "$as_me:$LINENO: result: just compiled" >&5
11515 echo "${ECHO_T}just compiled" >&6
11516 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11517 # We already found the complete path
11518 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11519 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11520 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11521 elif test "x$target" = "x$host"; then
11522 # We can use an host tool
11523 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
11524 echo "$as_me:$LINENO: result: host tool" >&5
11525 echo "${ECHO_T}host tool" >&6
11527 # We need a cross tool
11528 echo "$as_me:$LINENO: result: pre-installed" >&5
11529 echo "${ECHO_T}pre-installed" >&6
11533 echo "$as_me:$LINENO: checking where to find the target ld" >&5
11534 echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
11535 if test "x${build}" != "x${host}" ; then
11536 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11537 # We already found the complete path
11538 ac_dir=`dirname $LD_FOR_TARGET`
11539 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11540 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11542 # Canadian cross, just use what we found
11543 echo "$as_me:$LINENO: result: pre-installed" >&5
11544 echo "${ECHO_T}pre-installed" >&6
11548 case " ${configdirs} " in
11553 if test $ok = yes; then
11554 # An in-tree tool is available and we can use it
11555 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
11556 echo "$as_me:$LINENO: result: just compiled" >&5
11557 echo "${ECHO_T}just compiled" >&6
11558 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11559 # We already found the complete path
11560 ac_dir=`dirname $LD_FOR_TARGET`
11561 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11562 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11563 elif test "x$target" = "x$host"; then
11564 # We can use an host tool
11565 LD_FOR_TARGET='$(LD)'
11566 echo "$as_me:$LINENO: result: host tool" >&5
11567 echo "${ECHO_T}host tool" >&6
11569 # We need a cross tool
11570 echo "$as_me:$LINENO: result: pre-installed" >&5
11571 echo "${ECHO_T}pre-installed" >&6
11575 echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11576 echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
11577 if test "x${build}" != "x${host}" ; then
11578 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11579 # We already found the complete path
11580 ac_dir=`dirname $LIPO_FOR_TARGET`
11581 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11582 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11584 # Canadian cross, just use what we found
11585 echo "$as_me:$LINENO: result: pre-installed" >&5
11586 echo "${ECHO_T}pre-installed" >&6
11589 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11590 # We already found the complete path
11591 ac_dir=`dirname $LIPO_FOR_TARGET`
11592 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11593 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11594 elif test "x$target" = "x$host"; then
11595 # We can use an host tool
11596 LIPO_FOR_TARGET='$(LIPO)'
11597 echo "$as_me:$LINENO: result: host tool" >&5
11598 echo "${ECHO_T}host tool" >&6
11600 # We need a cross tool
11601 echo "$as_me:$LINENO: result: pre-installed" >&5
11602 echo "${ECHO_T}pre-installed" >&6
11606 echo "$as_me:$LINENO: checking where to find the target nm" >&5
11607 echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
11608 if test "x${build}" != "x${host}" ; then
11609 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11610 # We already found the complete path
11611 ac_dir=`dirname $NM_FOR_TARGET`
11612 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11613 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11615 # Canadian cross, just use what we found
11616 echo "$as_me:$LINENO: result: pre-installed" >&5
11617 echo "${ECHO_T}pre-installed" >&6
11621 case " ${configdirs} " in
11626 if test $ok = yes; then
11627 # An in-tree tool is available and we can use it
11628 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
11629 echo "$as_me:$LINENO: result: just compiled" >&5
11630 echo "${ECHO_T}just compiled" >&6
11631 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11632 # We already found the complete path
11633 ac_dir=`dirname $NM_FOR_TARGET`
11634 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11635 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11636 elif test "x$target" = "x$host"; then
11637 # We can use an host tool
11638 NM_FOR_TARGET='$(NM)'
11639 echo "$as_me:$LINENO: result: host tool" >&5
11640 echo "${ECHO_T}host tool" >&6
11642 # We need a cross tool
11643 echo "$as_me:$LINENO: result: pre-installed" >&5
11644 echo "${ECHO_T}pre-installed" >&6
11648 echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11649 echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
11650 if test "x${build}" != "x${host}" ; then
11651 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11652 # We already found the complete path
11653 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11654 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11655 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11657 # Canadian cross, just use what we found
11658 echo "$as_me:$LINENO: result: pre-installed" >&5
11659 echo "${ECHO_T}pre-installed" >&6
11663 case " ${configdirs} " in
11668 if test $ok = yes; then
11669 # An in-tree tool is available and we can use it
11670 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
11671 echo "$as_me:$LINENO: result: just compiled" >&5
11672 echo "${ECHO_T}just compiled" >&6
11673 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11674 # We already found the complete path
11675 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11676 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11677 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11678 elif test "x$target" = "x$host"; then
11679 # We can use an host tool
11680 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
11681 echo "$as_me:$LINENO: result: host tool" >&5
11682 echo "${ECHO_T}host tool" >&6
11684 # We need a cross tool
11685 echo "$as_me:$LINENO: result: pre-installed" >&5
11686 echo "${ECHO_T}pre-installed" >&6
11690 echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11691 echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
11692 if test "x${build}" != "x${host}" ; then
11693 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11694 # We already found the complete path
11695 ac_dir=`dirname $RANLIB_FOR_TARGET`
11696 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11697 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11699 # Canadian cross, just use what we found
11700 echo "$as_me:$LINENO: result: pre-installed" >&5
11701 echo "${ECHO_T}pre-installed" >&6
11705 case " ${configdirs} " in
11710 if test $ok = yes; then
11711 # An in-tree tool is available and we can use it
11712 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
11713 echo "$as_me:$LINENO: result: just compiled" >&5
11714 echo "${ECHO_T}just compiled" >&6
11715 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11716 # We already found the complete path
11717 ac_dir=`dirname $RANLIB_FOR_TARGET`
11718 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11719 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11720 elif test "x$target" = "x$host"; then
11721 # We can use an host tool
11722 RANLIB_FOR_TARGET='$(RANLIB)'
11723 echo "$as_me:$LINENO: result: host tool" >&5
11724 echo "${ECHO_T}host tool" >&6
11726 # We need a cross tool
11727 echo "$as_me:$LINENO: result: pre-installed" >&5
11728 echo "${ECHO_T}pre-installed" >&6
11732 echo "$as_me:$LINENO: checking where to find the target strip" >&5
11733 echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
11734 if test "x${build}" != "x${host}" ; then
11735 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11736 # We already found the complete path
11737 ac_dir=`dirname $STRIP_FOR_TARGET`
11738 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11739 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11741 # Canadian cross, just use what we found
11742 echo "$as_me:$LINENO: result: pre-installed" >&5
11743 echo "${ECHO_T}pre-installed" >&6
11747 case " ${configdirs} " in
11752 if test $ok = yes; then
11753 # An in-tree tool is available and we can use it
11754 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
11755 echo "$as_me:$LINENO: result: just compiled" >&5
11756 echo "${ECHO_T}just compiled" >&6
11757 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11758 # We already found the complete path
11759 ac_dir=`dirname $STRIP_FOR_TARGET`
11760 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11761 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11762 elif test "x$target" = "x$host"; then
11763 # We can use an host tool
11764 STRIP_FOR_TARGET='$(STRIP)'
11765 echo "$as_me:$LINENO: result: host tool" >&5
11766 echo "${ECHO_T}host tool" >&6
11768 # We need a cross tool
11769 echo "$as_me:$LINENO: result: pre-installed" >&5
11770 echo "${ECHO_T}pre-installed" >&6
11774 echo "$as_me:$LINENO: checking where to find the target windres" >&5
11775 echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
11776 if test "x${build}" != "x${host}" ; then
11777 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11778 # We already found the complete path
11779 ac_dir=`dirname $WINDRES_FOR_TARGET`
11780 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11781 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11783 # Canadian cross, just use what we found
11784 echo "$as_me:$LINENO: result: pre-installed" >&5
11785 echo "${ECHO_T}pre-installed" >&6
11789 case " ${configdirs} " in
11794 if test $ok = yes; then
11795 # An in-tree tool is available and we can use it
11796 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
11797 echo "$as_me:$LINENO: result: just compiled" >&5
11798 echo "${ECHO_T}just compiled" >&6
11799 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11800 # We already found the complete path
11801 ac_dir=`dirname $WINDRES_FOR_TARGET`
11802 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11803 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11804 elif test "x$target" = "x$host"; then
11805 # We can use an host tool
11806 WINDRES_FOR_TARGET='$(WINDRES)'
11807 echo "$as_me:$LINENO: result: host tool" >&5
11808 echo "${ECHO_T}host tool" >&6
11810 # We need a cross tool
11811 echo "$as_me:$LINENO: result: pre-installed" >&5
11812 echo "${ECHO_T}pre-installed" >&6
11816 echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11817 echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11818 if test "x${build}" != "x${host}" ; then
11819 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11820 # We already found the complete path
11821 ac_dir=`dirname $WINDMC_FOR_TARGET`
11822 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11823 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11825 # Canadian cross, just use what we found
11826 echo "$as_me:$LINENO: result: pre-installed" >&5
11827 echo "${ECHO_T}pre-installed" >&6
11831 case " ${configdirs} " in
11836 if test $ok = yes; then
11837 # An in-tree tool is available and we can use it
11838 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11839 echo "$as_me:$LINENO: result: just compiled" >&5
11840 echo "${ECHO_T}just compiled" >&6
11841 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11842 # We already found the complete path
11843 ac_dir=`dirname $WINDMC_FOR_TARGET`
11844 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11845 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11846 elif test "x$target" = "x$host"; then
11847 # We can use an host tool
11848 WINDMC_FOR_TARGET='$(WINDMC)'
11849 echo "$as_me:$LINENO: result: host tool" >&5
11850 echo "${ECHO_T}host tool" >&6
11852 # We need a cross tool
11853 echo "$as_me:$LINENO: result: pre-installed" >&5
11854 echo "${ECHO_T}pre-installed" >&6
11862 # Certain tools may need extra flags.
11863 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11864 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11865 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11867 # When building target libraries, except in a Canadian cross, we use
11868 # the same toolchain as the compiler we just built.
11869 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11870 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11871 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11872 if test $host = $build; then
11873 case " $configdirs " in
11875 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11876 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11877 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11886 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11887 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11888 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11889 if test "${enable_maintainer_mode+set}" = set; then
11890 enableval="$enable_maintainer_mode"
11891 USE_MAINTAINER_MODE=$enableval
11893 USE_MAINTAINER_MODE=no
11895 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11896 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11899 if test "$USE_MAINTAINER_MODE" = yes; then
11900 MAINTAINER_MODE_TRUE=
11901 MAINTAINER_MODE_FALSE='#'
11903 MAINTAINER_MODE_TRUE='#'
11904 MAINTAINER_MODE_FALSE=
11906 MAINT=$MAINTAINER_MODE_TRUE
11908 # ---------------------
11909 # GCC bootstrap support
11910 # ---------------------
11912 # Stage specific cflags for build.
11917 yes) stage1_cflags="-g -Wa,-J" ;;
11918 *) stage1_cflags="-g -J" ;;
11922 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11923 if test "$GCC" = yes; then
11924 saved_CFLAGS="$CFLAGS"
11926 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11927 CFLAGS="$CFLAGS -fkeep-inline-functions"
11928 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11929 echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
11930 cat >conftest.$ac_ext <<_ACEOF
11933 cat confdefs.h >>conftest.$ac_ext
11934 cat >>conftest.$ac_ext <<_ACEOF
11935 /* end confdefs.h. */
11937 #if (__GNUC__ < 3) \
11938 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11939 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11940 #error http://gcc.gnu.org/PR29382
11951 rm -f conftest.$ac_objext
11952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11953 (eval $ac_compile) 2>conftest.er1
11955 grep -v '^ *+' conftest.er1 >conftest.err
11957 cat conftest.err >&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } &&
11960 { ac_try='test -z "$ac_c_werror_flag"
11961 || test ! -s conftest.err'
11962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963 (eval $ac_try) 2>&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; } &&
11967 { ac_try='test -s conftest.$ac_objext'
11968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969 (eval $ac_try) 2>&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; }; then
11973 echo "$as_me:$LINENO: result: yes" >&5
11974 echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
11976 echo "$as_me: failed program was:" >&5
11977 sed 's/^/| /' conftest.$ac_ext >&5
11979 echo "$as_me:$LINENO: result: no" >&5
11980 echo "${ECHO_T}no" >&6
11982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11984 CFLAGS="$saved_CFLAGS"
11989 # Enable --enable-checking in stage1 of the compiler.
11990 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
11991 if test "${enable_stage1_checking+set}" = set; then
11992 enableval="$enable_stage1_checking"
11993 stage1_checking=--enable-checking=${enable_stage1_checking}
11995 if test "x$enable_checking" = xno; then
11996 stage1_checking=--enable-checking=yes,types
11998 stage1_checking=--enable-checking=types${enable_checking+,}$enable_checking
12003 # Enable -Werror in bootstrap stage2 and later.
12004 # Check whether --enable-werror or --disable-werror was given.
12005 if test "${enable_werror+set}" = set; then
12006 enableval="$enable_werror"
12009 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
12015 case ${enable_werror} in
12016 yes) stage2_werror_flag="--enable-werror-always" ;;
12017 *) stage2_werror_flag="" ;;
12021 # Flags needed to enable html installing and building
12023 # Check whether --with-datarootdir or --without-datarootdir was given.
12024 if test "${with_datarootdir+set}" = set; then
12025 withval="$with_datarootdir"
12026 datarootdir="\${prefix}/${withval}"
12028 datarootdir="\${prefix}/share"
12032 # Check whether --with-docdir or --without-docdir was given.
12033 if test "${with_docdir+set}" = set; then
12034 withval="$with_docdir"
12035 docdir="\${prefix}/${withval}"
12037 docdir="\${datarootdir}/doc"
12041 # Check whether --with-pdfdir or --without-pdfdir was given.
12042 if test "${with_pdfdir+set}" = set; then
12043 withval="$with_pdfdir"
12044 pdfdir="\${prefix}/${withval}"
12046 pdfdir="\${docdir}"
12050 # Check whether --with-htmldir or --without-htmldir was given.
12051 if test "${with_htmldir+set}" = set; then
12052 withval="$with_htmldir"
12053 htmldir="\${prefix}/${withval}"
12055 htmldir="\${docdir}"
12063 ac_config_files="$ac_config_files Makefile"
12064 cat >confcache <<\_ACEOF
12065 # This file is a shell script that caches the results of configure
12066 # tests run on this system so they can be shared between configure
12067 # scripts and configure runs, see configure's option --config-cache.
12068 # It is not useful on other systems. If it contains results you don't
12069 # want to keep, you may remove or edit it.
12071 # config.status only pays attention to the cache file if you give it
12072 # the --recheck option to rerun configure.
12074 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12075 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12076 # following values.
12080 # The following way of writing the cache mishandles newlines in values,
12081 # but we know of no workaround that is simple, portable, and efficient.
12082 # So, don't put newlines in cache variables' values.
12083 # Ultrix sh set writes to stderr and can't be redirected directly,
12084 # and sets the high bit in the cache file unless we assign to the vars.
12087 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12089 # `set' does not quote correctly, so add quotes (double-quote
12090 # substitution turns \\\\ into \\, and sed turns \\ into \).
12093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12096 # `set' quotes correctly as required by POSIX, so do not add quotes.
12098 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12105 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12107 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12109 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12110 if test -w $cache_file; then
12111 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12112 cat confcache >$cache_file
12114 echo "not updating unwritable cache $cache_file"
12119 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12120 # Let make expand exec_prefix.
12121 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12123 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12124 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12125 # trailing colons and then remove the whole line if VPATH becomes empty
12126 # (actually we leave an empty line to preserve line numbers).
12127 if test "x$srcdir" = x.; then
12128 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12129 s/:*\$(srcdir):*/:/;
12130 s/:*\${srcdir}:*/:/;
12132 s/^\([^=]*=[ ]*\):*/\1/;
12138 # Transform confdefs.h into DEFS.
12139 # Protect against shell expansion while executing Makefile rules.
12140 # Protect against Makefile macro expansion.
12142 # If the first sed substitution is executed (which looks for macros that
12143 # take arguments), then we branch to the quote section. Otherwise,
12144 # look for a macro that doesn't take arguments.
12145 cat >confdef2opt.sed <<\_ACEOF
12148 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12150 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12154 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12160 # We use echo to avoid assuming a particular line-breaking character.
12161 # The extra dot is to prevent the shell from consuming trailing
12162 # line-breaks from the sub-command output. A line-break within
12163 # single-quotes doesn't work because, if this script is created in a
12164 # platform that uses two characters for line-breaks (e.g., DOS), tr
12166 ac_LF_and_DOT=`echo; echo .`
12167 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12168 rm -f confdef2opt.sed
12173 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12174 # 1. Remove the extension, and $U if already installed.
12175 ac_i=`echo "$ac_i" |
12176 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12178 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12179 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12181 LIBOBJS=$ac_libobjs
12183 LTLIBOBJS=$ac_ltlibobjs
12187 : ${CONFIG_STATUS=./config.status}
12188 ac_clean_files_save=$ac_clean_files
12189 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12190 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12191 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12192 cat >$CONFIG_STATUS <<_ACEOF
12194 # Generated by $as_me.
12195 # Run this file to recreate the current configuration.
12196 # Compiler output produced by configure, useful for debugging
12197 # configure, is in config.log if it exists.
12200 ac_cs_recheck=false
12202 SHELL=\${CONFIG_SHELL-$SHELL}
12205 cat >>$CONFIG_STATUS <<\_ACEOF
12206 ## --------------------- ##
12207 ## M4sh Initialization. ##
12208 ## --------------------- ##
12210 # Be Bourne compatible
12211 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12214 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12215 # is contrary to our usage. Disable this feature.
12216 alias -g '${1+"$@"}'='"$@"'
12217 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12220 DUALCASE=1; export DUALCASE # for MKS sh
12222 # Support unset when possible.
12223 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12230 # Work around bugs in pre-3.0 UWIN ksh.
12231 $as_unset ENV MAIL MAILPATH
12238 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12239 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12240 LC_TELEPHONE LC_TIME
12242 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12243 eval $as_var=C; export $as_var
12249 # Required to use basename.
12250 if expr a : '\(a\)' >/dev/null 2>&1; then
12256 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12257 as_basename=basename
12263 # Name of the executable.
12264 as_me=`$as_basename "$0" ||
12265 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12266 X"$0" : 'X\(//\)$' \| \
12267 X"$0" : 'X\(/\)$' \| \
12268 . : '\(.\)' 2>/dev/null ||
12270 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12271 /^X\/\(\/\/\)$/{ s//\1/; q; }
12272 /^X\/\(\/\).*/{ s//\1/; q; }
12276 # PATH needs CR, and LINENO needs CR and PATH.
12277 # Avoid depending upon Character Ranges.
12278 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12279 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12280 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12281 as_cr_digits='0123456789'
12282 as_cr_alnum=$as_cr_Letters$as_cr_digits
12284 # The user is always right.
12285 if test "${PATH_SEPARATOR+set}" != set; then
12286 echo "#! /bin/sh" >conf$$.sh
12287 echo "exit 0" >>conf$$.sh
12289 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12298 as_lineno_1=$LINENO
12299 as_lineno_2=$LINENO
12300 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12301 test "x$as_lineno_1" != "x$as_lineno_2" &&
12302 test "x$as_lineno_3" = "x$as_lineno_2" || {
12303 # Find who we are. Look in the path if we contain no path at all
12306 *[\\/]* ) as_myself=$0 ;;
12307 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12308 for as_dir in $PATH
12311 test -z "$as_dir" && as_dir=.
12312 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12317 # We did not find ourselves, most probably we were run as `sh COMMAND'
12318 # in which case we are not to be found in the path.
12319 if test "x$as_myself" = x; then
12322 if test ! -f "$as_myself"; then
12323 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12324 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12325 { (exit 1); exit 1; }; }
12327 case $CONFIG_SHELL in
12329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12330 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12333 test -z "$as_dir" && as_dir=.
12334 for as_base in sh bash ksh sh5; do
12337 if ("$as_dir/$as_base" -c '
12338 as_lineno_1=$LINENO
12339 as_lineno_2=$LINENO
12340 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12341 test "x$as_lineno_1" != "x$as_lineno_2" &&
12342 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12343 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12344 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12345 CONFIG_SHELL=$as_dir/$as_base
12346 export CONFIG_SHELL
12347 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12355 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12356 # uniformly replaced by the line number. The first 'sed' inserts a
12357 # line-number line before each line; the second 'sed' does the real
12358 # work. The second script uses 'N' to pair each line-number line
12359 # with the numbered line, and appends trailing '-' during
12360 # substitution so that $LINENO is not a special case at line end.
12361 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12362 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12363 sed '=' <$as_myself |
12368 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12371 s,^['$as_cr_digits']*\n,,
12372 ' >$as_me.lineno &&
12373 chmod +x $as_me.lineno ||
12374 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12375 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12376 { (exit 1); exit 1; }; }
12378 # Don't try to exec as it changes $[0], causing all sort of problems
12379 # (the dirname of $[0] is not the place where we might find the
12380 # original and so on. Autoconf is especially sensible to this).
12382 # Exit status is that of the last command.
12387 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12388 *c*,-n*) ECHO_N= ECHO_C='
12390 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12391 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12394 if expr a : '\(a\)' >/dev/null 2>&1; then
12400 rm -f conf$$ conf$$.exe conf$$.file
12402 if ln -s conf$$.file conf$$ 2>/dev/null; then
12403 # We could just check for DJGPP; but this test a) works b) is more generic
12404 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12405 if test -f conf$$.exe; then
12406 # Don't use ln at all; we don't have any links
12411 elif ln conf$$.file conf$$ 2>/dev/null; then
12416 rm -f conf$$ conf$$.exe conf$$.file
12418 if mkdir -p . 2>/dev/null; then
12421 test -d ./-p && rmdir ./-p
12425 as_executable_p="test -f"
12427 # Sed expression to map a string onto a valid CPP name.
12428 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12430 # Sed expression to map a string onto a valid variable name.
12431 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12435 # We need space, tab and new line, in precisely that order.
12445 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12446 # report actual input values of CONFIG_FILES etc. instead of their
12447 # values after options handling. Logging --version etc. is OK.
12451 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12452 ## Running $as_me. ##
12457 This file was extended by $as_me, which was
12458 generated by GNU Autoconf 2.59. Invocation command line was
12460 CONFIG_FILES = $CONFIG_FILES
12461 CONFIG_HEADERS = $CONFIG_HEADERS
12462 CONFIG_LINKS = $CONFIG_LINKS
12463 CONFIG_COMMANDS = $CONFIG_COMMANDS
12467 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12471 # Files that config.status was made for.
12472 if test -n "$ac_config_files"; then
12473 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12476 if test -n "$ac_config_headers"; then
12477 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12480 if test -n "$ac_config_links"; then
12481 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12484 if test -n "$ac_config_commands"; then
12485 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12488 cat >>$CONFIG_STATUS <<\_ACEOF
12491 \`$as_me' instantiates files from templates according to the
12492 current configuration.
12494 Usage: $0 [OPTIONS] [FILE]...
12496 -h, --help print this help, then exit
12497 -V, --version print version number, then exit
12498 -q, --quiet do not print progress messages
12499 -d, --debug don't remove temporary files
12500 --recheck update $as_me by reconfiguring in the same conditions
12501 --file=FILE[:TEMPLATE]
12502 instantiate the configuration file FILE
12504 Configuration files:
12507 Report bugs to <bug-autoconf@gnu.org>."
12510 cat >>$CONFIG_STATUS <<_ACEOF
12513 configured by $0, generated by GNU Autoconf 2.59,
12514 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12516 Copyright (C) 2003 Free Software Foundation, Inc.
12517 This config.status script is free software; the Free Software Foundation
12518 gives unlimited permission to copy, distribute and modify it."
12523 cat >>$CONFIG_STATUS <<\_ACEOF
12524 # If no file are specified by the user, then we need to provide default
12525 # value. By we need to know if files were specified by the user.
12531 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12532 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12540 *) # This is not an option, so the user has probably given explicit
12543 ac_need_defaults=false;;
12547 # Handling of the options.
12549 cat >>$CONFIG_STATUS <<\_ACEOF
12550 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12552 --version | --vers* | -V )
12553 echo "$ac_cs_version"; exit 0 ;;
12555 # Conflict between --help and --header
12556 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12557 Try \`$0 --help' for more information." >&5
12558 echo "$as_me: error: ambiguous option: $1
12559 Try \`$0 --help' for more information." >&2;}
12560 { (exit 1); exit 1; }; };;
12561 --help | --hel | -h )
12562 echo "$ac_cs_usage"; exit 0 ;;
12563 --debug | --d* | -d )
12565 --file | --fil | --fi | --f )
12567 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12568 ac_need_defaults=false;;
12569 --header | --heade | --head | --hea )
12571 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12572 ac_need_defaults=false;;
12573 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12574 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12577 # This is an error.
12578 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12579 Try \`$0 --help' for more information." >&5
12580 echo "$as_me: error: unrecognized option: $1
12581 Try \`$0 --help' for more information." >&2;}
12582 { (exit 1); exit 1; }; } ;;
12584 *) ac_config_targets="$ac_config_targets $1" ;;
12590 ac_configure_extra_args=
12592 if $ac_cs_silent; then
12594 ac_configure_extra_args="$ac_configure_extra_args --silent"
12598 cat >>$CONFIG_STATUS <<_ACEOF
12599 if \$ac_cs_recheck; then
12600 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12601 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12610 cat >>$CONFIG_STATUS <<\_ACEOF
12611 for ac_config_target in $ac_config_targets
12613 case "$ac_config_target" in
12614 # Handling of arguments.
12615 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12616 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12617 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12618 { (exit 1); exit 1; }; };;
12622 # If the user did not use the arguments to specify the items to instantiate,
12623 # then the envvar interface is used. Set only those that are not.
12624 # We use the long form for the default assignment because of an extremely
12625 # bizarre bug on SunOS 4.1.3.
12626 if $ac_need_defaults; then
12627 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12630 # Have a temporary directory for convenience. Make it in the build tree
12631 # simply because there is no reason to put it here, and in addition,
12632 # creating and moving files from /tmp can sometimes cause problems.
12633 # Create a temporary directory, and hook for its removal unless debugging.
12636 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12637 trap '{ (exit 1); exit 1; }' 1 2 13 15
12640 # Create a (secure) tmp directory for tmp files.
12643 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12644 test -n "$tmp" && test -d "$tmp"
12647 tmp=./confstat$$-$RANDOM
12648 (umask 077 && mkdir $tmp)
12651 echo "$me: cannot create a temporary directory in ." >&2
12652 { (exit 1); exit 1; }
12657 cat >>$CONFIG_STATUS <<_ACEOF
12660 # CONFIG_FILES section.
12663 # No need to generate the scripts if there are no CONFIG_FILES.
12664 # This happens for instance when ./config.status config.h
12665 if test -n "\$CONFIG_FILES"; then
12666 # Protect against being on the right side of a sed subst in config.status.
12667 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12668 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12669 s,@SHELL@,$SHELL,;t t
12670 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12671 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12672 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12673 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12674 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12675 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12676 s,@exec_prefix@,$exec_prefix,;t t
12677 s,@prefix@,$prefix,;t t
12678 s,@program_transform_name@,$program_transform_name,;t t
12679 s,@bindir@,$bindir,;t t
12680 s,@sbindir@,$sbindir,;t t
12681 s,@libexecdir@,$libexecdir,;t t
12682 s,@datadir@,$datadir,;t t
12683 s,@sysconfdir@,$sysconfdir,;t t
12684 s,@sharedstatedir@,$sharedstatedir,;t t
12685 s,@localstatedir@,$localstatedir,;t t
12686 s,@libdir@,$libdir,;t t
12687 s,@includedir@,$includedir,;t t
12688 s,@oldincludedir@,$oldincludedir,;t t
12689 s,@infodir@,$infodir,;t t
12690 s,@mandir@,$mandir,;t t
12691 s,@build_alias@,$build_alias,;t t
12692 s,@host_alias@,$host_alias,;t t
12693 s,@target_alias@,$target_alias,;t t
12694 s,@DEFS@,$DEFS,;t t
12695 s,@ECHO_C@,$ECHO_C,;t t
12696 s,@ECHO_N@,$ECHO_N,;t t
12697 s,@ECHO_T@,$ECHO_T,;t t
12698 s,@LIBS@,$LIBS,;t t
12699 s,@build@,$build,;t t
12700 s,@build_cpu@,$build_cpu,;t t
12701 s,@build_vendor@,$build_vendor,;t t
12702 s,@build_os@,$build_os,;t t
12703 s,@build_noncanonical@,$build_noncanonical,;t t
12704 s,@host_noncanonical@,$host_noncanonical,;t t
12705 s,@target_noncanonical@,$target_noncanonical,;t t
12706 s,@host@,$host,;t t
12707 s,@host_cpu@,$host_cpu,;t t
12708 s,@host_vendor@,$host_vendor,;t t
12709 s,@host_os@,$host_os,;t t
12710 s,@target@,$target,;t t
12711 s,@target_cpu@,$target_cpu,;t t
12712 s,@target_vendor@,$target_vendor,;t t
12713 s,@target_os@,$target_os,;t t
12714 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12715 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12716 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12718 s,@LN_S@,$LN_S,;t t
12719 s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12720 s,@build_libsubdir@,$build_libsubdir,;t t
12721 s,@build_subdir@,$build_subdir,;t t
12722 s,@host_subdir@,$host_subdir,;t t
12723 s,@target_subdir@,$target_subdir,;t t
12725 s,@CFLAGS@,$CFLAGS,;t t
12726 s,@LDFLAGS@,$LDFLAGS,;t t
12727 s,@CPPFLAGS@,$CPPFLAGS,;t t
12728 s,@ac_ct_CC@,$ac_ct_CC,;t t
12729 s,@EXEEXT@,$EXEEXT,;t t
12730 s,@OBJEXT@,$OBJEXT,;t t
12732 s,@CXXFLAGS@,$CXXFLAGS,;t t
12733 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12734 s,@GNATBIND@,$GNATBIND,;t t
12735 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12736 s,@GNATMAKE@,$GNATMAKE,;t t
12737 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12738 s,@do_compare@,$do_compare,;t t
12739 s,@gmplibs@,$gmplibs,;t t
12740 s,@gmpinc@,$gmpinc,;t t
12741 s,@stage1_languages@,$stage1_languages,;t t
12742 s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
12743 s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
12744 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12745 s,@tooldir@,$tooldir,;t t
12746 s,@build_tooldir@,$build_tooldir,;t t
12747 s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12748 s,@GDB_TK@,$GDB_TK,;t t
12749 s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12750 s,@build_configargs@,$build_configargs,;t t
12751 s,@build_configdirs@,$build_configdirs,;t t
12752 s,@host_configargs@,$host_configargs,;t t
12753 s,@configdirs@,$configdirs,;t t
12754 s,@target_configargs@,$target_configargs,;t t
12755 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12756 s,@config_shell@,$config_shell,;t t
12757 s,@YACC@,$YACC,;t t
12758 s,@BISON@,$BISON,;t t
12761 s,@FLEX@,$FLEX,;t t
12762 s,@MAKEINFO@,$MAKEINFO,;t t
12763 s,@EXPECT@,$EXPECT,;t t
12764 s,@RUNTEST@,$RUNTEST,;t t
12767 s,@DLLTOOL@,$DLLTOOL,;t t
12769 s,@LIPO@,$LIPO,;t t
12771 s,@RANLIB@,$RANLIB,;t t
12772 s,@STRIP@,$STRIP,;t t
12773 s,@WINDRES@,$WINDRES,;t t
12774 s,@WINDMC@,$WINDMC,;t t
12775 s,@OBJCOPY@,$OBJCOPY,;t t
12776 s,@OBJDUMP@,$OBJDUMP,;t t
12777 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12778 s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12779 s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12780 s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12781 s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12782 s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12783 s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12784 s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12785 s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12786 s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12787 s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12788 s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12789 s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12790 s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12791 s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12792 s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
12793 s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
12794 s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12795 s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12796 s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12797 s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12798 s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12799 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12800 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12801 s,@MAINT@,$MAINT,;t t
12802 s,@stage1_cflags@,$stage1_cflags,;t t
12803 s,@stage1_checking@,$stage1_checking,;t t
12804 s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12805 s,@datarootdir@,$datarootdir,;t t
12806 s,@docdir@,$docdir,;t t
12807 s,@pdfdir@,$pdfdir,;t t
12808 s,@htmldir@,$htmldir,;t t
12809 s,@LIBOBJS@,$LIBOBJS,;t t
12810 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12811 /@serialization_dependencies@/r $serialization_dependencies
12812 s,@serialization_dependencies@,,;t t
12813 /@host_makefile_frag@/r $host_makefile_frag
12814 s,@host_makefile_frag@,,;t t
12815 /@target_makefile_frag@/r $target_makefile_frag
12816 s,@target_makefile_frag@,,;t t
12817 /@alphaieee_frag@/r $alphaieee_frag
12818 s,@alphaieee_frag@,,;t t
12819 /@ospace_frag@/r $ospace_frag
12820 s,@ospace_frag@,,;t t
12825 cat >>$CONFIG_STATUS <<\_ACEOF
12826 # Split the substitutions into bite-sized pieces for seds with
12827 # small command number limits, like on Digital OSF/1 and HP-UX.
12828 ac_max_sed_lines=48
12829 ac_sed_frag=1 # Number of current file.
12830 ac_beg=1 # First line for current file.
12831 ac_end=$ac_max_sed_lines # Line after last line for current file.
12834 while $ac_more_lines; do
12835 if test $ac_beg -gt 1; then
12836 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12838 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12840 if test ! -s $tmp/subs.frag; then
12841 ac_more_lines=false
12843 # The purpose of the label and of the branching condition is to
12844 # speed up the sed processing (if there are no `@' at all, there
12845 # is no need to browse any of the substitutions).
12846 # These are the two extra sed commands mentioned above.
12848 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12849 if test -z "$ac_sed_cmds"; then
12850 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12852 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12854 ac_sed_frag=`expr $ac_sed_frag + 1`
12856 ac_end=`expr $ac_end + $ac_max_sed_lines`
12859 if test -z "$ac_sed_cmds"; then
12862 fi # test -n "$CONFIG_FILES"
12865 cat >>$CONFIG_STATUS <<\_ACEOF
12866 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12867 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12869 - | *:- | *:-:* ) # input from stdin
12871 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12872 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12873 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12874 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12875 * ) ac_file_in=$ac_file.in ;;
12878 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12879 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12880 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12881 X"$ac_file" : 'X\(//\)[^/]' \| \
12882 X"$ac_file" : 'X\(//\)$' \| \
12883 X"$ac_file" : 'X\(/\)' \| \
12884 . : '\(.\)' 2>/dev/null ||
12886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12887 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12888 /^X\(\/\/\)$/{ s//\1/; q; }
12889 /^X\(\/\).*/{ s//\1/; q; }
12891 { if $as_mkdir_p; then
12896 while test ! -d "$as_dir"; do
12897 as_dirs="$as_dir $as_dirs"
12898 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12899 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12900 X"$as_dir" : 'X\(//\)[^/]' \| \
12901 X"$as_dir" : 'X\(//\)$' \| \
12902 X"$as_dir" : 'X\(/\)' \| \
12903 . : '\(.\)' 2>/dev/null ||
12905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12906 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12907 /^X\(\/\/\)$/{ s//\1/; q; }
12908 /^X\(\/\).*/{ s//\1/; q; }
12911 test ! -n "$as_dirs" || mkdir $as_dirs
12912 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12913 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12914 { (exit 1); exit 1; }; }; }
12918 if test "$ac_dir" != .; then
12919 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12920 # A "../" for each directory in $ac_dir_suffix.
12921 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12923 ac_dir_suffix= ac_top_builddir=
12927 .) # No --srcdir option. We are building in place.
12929 if test -z "$ac_top_builddir"; then
12932 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12934 [\\/]* | ?:[\\/]* ) # Absolute path.
12935 ac_srcdir=$srcdir$ac_dir_suffix;
12936 ac_top_srcdir=$srcdir ;;
12937 *) # Relative path.
12938 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12939 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12942 # Do not use `cd foo && pwd` to compute absolute paths, because
12943 # the directories may not exist.
12945 .) ac_abs_builddir="$ac_dir";;
12948 .) ac_abs_builddir=`pwd`;;
12949 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12950 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12953 case $ac_abs_builddir in
12954 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12956 case ${ac_top_builddir}. in
12957 .) ac_abs_top_builddir=$ac_abs_builddir;;
12958 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12959 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12962 case $ac_abs_builddir in
12963 .) ac_abs_srcdir=$ac_srcdir;;
12966 .) ac_abs_srcdir=$ac_abs_builddir;;
12967 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12968 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12971 case $ac_abs_builddir in
12972 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12974 case $ac_top_srcdir in
12975 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12976 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12977 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12983 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12984 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12987 if test x"$ac_file" != x-; then
12988 { echo "$as_me:$LINENO: creating $ac_file" >&5
12989 echo "$as_me: creating $ac_file" >&6;}
12992 # Let's still pretend it is `configure' which instantiates (i.e., don't
12993 # use $as_me), people would be surprised to read:
12994 # /* config.h. Generated by config.status. */
12995 if test x"$ac_file" = x-; then
12998 configure_input="$ac_file. "
13000 configure_input=$configure_input"Generated from `echo $ac_file_in |
13001 sed 's,.*/,,'` by configure."
13003 # First look for the input files in the build tree, otherwise in the
13005 ac_file_inputs=`IFS=:
13006 for f in $ac_file_in; do
13008 -) echo $tmp/stdin ;;
13010 # Absolute (can't be DOS-style, as IFS=:)
13011 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13012 echo "$as_me: error: cannot find input file: $f" >&2;}
13013 { (exit 1); exit 1; }; }
13016 if test -f "$f"; then
13019 elif test -f "$srcdir/$f"; then
13024 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13025 echo "$as_me: error: cannot find input file: $f" >&2;}
13026 { (exit 1); exit 1; }; }
13029 done` || { (exit 1); exit 1; }
13031 cat >>$CONFIG_STATUS <<_ACEOF
13035 cat >>$CONFIG_STATUS <<\_ACEOF
13037 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13038 s,@configure_input@,$configure_input,;t t
13039 s,@srcdir@,$ac_srcdir,;t t
13040 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13041 s,@top_srcdir@,$ac_top_srcdir,;t t
13042 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13043 s,@builddir@,$ac_builddir,;t t
13044 s,@abs_builddir@,$ac_abs_builddir,;t t
13045 s,@top_builddir@,$ac_top_builddir,;t t
13046 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13047 s,@INSTALL@,$ac_INSTALL,;t t
13048 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13050 if test x"$ac_file" != x-; then
13051 mv $tmp/out $ac_file
13060 cat >>$CONFIG_STATUS <<\_ACEOF
13062 { (exit 0); exit 0; }
13064 chmod +x $CONFIG_STATUS
13065 ac_clean_files=$ac_clean_files_save
13068 # configure is writing to config.log, and then calls config.status.
13069 # config.status does its own redirection, appending to config.log.
13070 # Unfortunately, on DOS this fails, as config.log is still kept open
13071 # by configure, so config.status won't be able to write to it; its
13072 # output is simply discarded. So we exec the FD to /dev/null,
13073 # effectively closing config.log, so it can be properly (re)opened and
13074 # appended to by config.status. When coming back to configure, we
13075 # need to make the FD available again.
13076 if test "$no_create" != yes; then
13078 ac_config_status_args=
13079 test "$silent" = yes &&
13080 ac_config_status_args="$ac_config_status_args --quiet"
13082 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13084 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13085 # would make configure fail if this is the last instruction.
13086 $ac_cs_success || { (exit 1); exit 1; }