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"
2125 # Default libgloss CPU subdirectory.
2126 libgloss_dir="$target_cpu"
2130 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2132 powerpc-*-darwin* | i[3456789]86-*-darwin*)
2133 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
2134 noconfigdirs="$noconfigdirs sim target-rda"
2137 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2138 noconfigdirs="$noconfigdirs sim target-rda"
2139 noconfigdirs="$noconfigdirs ${libgcj}"
2141 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2142 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2145 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2146 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2147 && test -f /usr/local/include/gmp.h; then
2151 # Skip some stuff that's unsupported on some FreeBSD configurations.
2156 noconfigdirs="$noconfigdirs ${libgcj}"
2161 # Remove unsupported stuff on all kaOS configurations.
2162 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
2163 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2164 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2165 noconfigdirs="$noconfigdirs target-libgloss"
2168 # Skip some stuff on all NetBSD configurations.
2169 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2171 # Skip some stuff that's unsupported on some NetBSD configurations.
2173 i*86-*-netbsdelf*) ;;
2174 arm*-*-netbsdelf*) ;;
2176 noconfigdirs="$noconfigdirs ${libgcj}"
2181 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2184 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2186 # The tpf target doesn't support gdb yet.
2188 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2191 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2194 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2197 # ld works, but does not support shared libraries.
2198 # newlib is not 64 bit ready. I'm not sure about fileutils.
2199 # gas doesn't generate exception information.
2200 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2203 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2206 # newlib is not 64 bit ready
2207 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2210 # newlib is not 64 bit ready
2211 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2214 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2217 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2219 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2220 noconfigdirs="$noconfigdirs ${libgcj}"
2221 noconfigdirs="$noconfigdirs target-examples"
2222 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2223 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2224 noconfigdirs="$noconfigdirs expect dejagnu"
2225 # the C++ libraries don't build on top of CE's C libraries
2226 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2227 noconfigdirs="$noconfigdirs target-newlib"
2229 *-*-cygwin*) ;; # keep gdb and readline
2230 *) noconfigdirs="$noconfigdirs gdb readline"
2236 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2240 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2241 noconfigdirs="$noconfigdirs ${libgcj}"
2244 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2245 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2248 arm*-*-linux-gnueabi)
2249 noconfigdirs="$noconfigdirs target-qthreads"
2250 noconfigdirs="$noconfigdirs target-libobjc"
2251 case ${with_newlib} in
2252 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2257 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2261 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2264 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2267 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2270 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2273 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2276 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2279 noconfigdirs="$noconfigdirs gdb"
2280 if test x${is_cross_compiler} != xno ; then
2281 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2284 c4x-*-* | tic4x-*-*)
2285 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2287 c54x*-*-* | tic54x-*-*)
2288 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2290 cris-*-* | crisv32-*-*)
2291 unsupported_languages="$unsupported_languages java"
2294 unsupported_languages="$unsupported_languages fortran"
2295 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2297 unsupported_languages="$unsupported_languages fortran"
2298 noconfigdirs="$noconfigdirs target-boehm-gc";;
2300 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2302 unsupported_languages="$unsupported_languages fortran"
2303 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2308 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2311 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2314 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2316 ep9312-*-elf | ep9312-*-coff)
2320 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2323 noconfigdirs="$noconfigdirs ${libgcj}"
2326 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2329 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2331 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2333 hppa*64*-*-linux* | parisc*64*-*-linux*)
2334 # In this case, it's because the hppa64-linux target is for
2335 # the kernel only at this point and has no libc, and thus no
2336 # headers, crt*.o, etc., all of which are needed by these.
2337 noconfigdirs="$noconfigdirs target-zlib"
2339 parisc*-*-linux* | hppa*-*-linux*)
2343 hppa*-*-openbsd* | \
2345 noconfigdirs="$noconfigdirs ${libgcj}"
2348 noconfigdirs="$noconfigdirs ld shellutils"
2354 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2355 # build on HP-UX 10.20.
2356 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2359 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2362 # No gdb support yet.
2363 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2366 # No gdb or ld support yet.
2367 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2371 i[3456789]86-*-coff | i[3456789]86-*-elf)
2372 noconfigdirs="$noconfigdirs ${libgcj}"
2375 i[3456789]86-*-linux*)
2376 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2377 # not build java stuff by default.
2380 noconfigdirs="$noconfigdirs ${libgcj}";;
2383 # This section makes it possible to build newlib natively on linux.
2384 # If we are using a cross compiler then don't configure newlib.
2385 if test x${is_cross_compiler} != xno ; then
2386 noconfigdirs="$noconfigdirs target-newlib"
2388 noconfigdirs="$noconfigdirs target-libgloss"
2389 # If we are not using a cross compiler, do configure newlib.
2390 # Note however, that newlib will only be configured in this situation
2391 # if the --with-newlib option has been given, because otherwise
2392 # 'target-newlib' will appear in skipdirs.
2394 i[3456789]86-*-mingw32*)
2395 target_configdirs="$target_configdirs target-winsup"
2396 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2399 target_configdirs="$target_configdirs target-winsup"
2400 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2403 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2404 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2405 # always build newlib if winsup directory is present.
2406 if test -d "$srcdir/winsup/cygwin"; then
2407 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2408 elif test -d "$srcdir/newlib"; then
2409 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2412 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2413 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2416 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2418 i[3456789]86-*-sco3.2v5*)
2419 # The linker does not yet know about weak symbols in COFF,
2420 # and is not configured to handle mixed ELF and COFF.
2421 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2423 i[3456789]86-*-sco*)
2424 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2426 i[3456789]86-*-solaris2*)
2427 noconfigdirs="$noconfigdirs target-libgloss"
2429 i[3456789]86-*-sysv4*)
2430 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2432 i[3456789]86-*-beos*)
2433 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2435 i[3456789]86-*-rdos*)
2436 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2439 noconfigdirs="$noconfigdirs ${libgcj}"
2441 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2442 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2443 libgloss_dir=m68hc11
2446 noconfigdirs="$noconfigdirs ${libgcj}"
2449 noconfigdirs="$noconfigdirs ${libgcj}"
2451 m68*-*-* | fido-*-*)
2455 # The EPOC C++ environment does not support exceptions or rtti,
2456 # and so building libstdc++-v3 tends not to always work.
2457 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2460 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2461 unsupported_languages="$unsupported_languages fortran java"
2464 noconfigdirs="$noconfigdirs ${libgcj}"
2467 noconfigdirs="$noconfigdirs ${libgcj}"
2470 noconfigdirs="$noconfigdirs sim"
2473 # copied from rs6000-*-* entry
2474 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2476 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2477 target_configdirs="$target_configdirs target-winsup"
2478 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2479 # always build newlib.
2480 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2482 # This is temporary until we can link against shared libraries
2483 powerpcle-*-solaris*)
2484 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2488 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2491 noconfigdirs="$noconfigdirs ${libgcj}"
2494 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2498 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2501 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2504 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2507 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2510 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2513 # Linking libjava exceeds command-line length limits on at least
2514 # IRIX 6.2, but not on IRIX 6.5.
2515 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2516 # <oldham@codesourcery.com>
2517 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2520 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2523 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2526 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2529 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2533 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2537 i[3456789]86-*-vsta) ;; # don't add gprof back in
2538 i[3456789]86-*-go32*) ;; # don't add gprof back in
2539 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2540 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2542 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2544 sparclet-*-aout* | sparc86x-*-*)
2548 noconfigdirs="$noconfigdirs ${libgcj}"
2551 noconfigdirs="$noconfigdirs ${libgcj}"
2555 noconfigdirs="$noconfigdirs ${libgcj}"
2559 noconfigdirs="$noconfigdirs ${libgcj}"
2560 if test x${is_cross_compiler} != xno ; then
2561 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2566 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2567 noconfigdirs="$noconfigdirs ${libgcj}"
2569 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2572 skipdirs="target-libssp"
2575 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2578 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2581 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2584 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2587 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2590 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2593 noconfigdirs="$noconfigdirs ${libgcj}"
2596 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2598 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2599 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2602 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2605 noconfigdirs="$noconfigdirs ${libgcj}"
2609 # If we aren't building newlib, then don't build libgloss, since libgloss
2610 # depends upon some newlib header files.
2611 case "${noconfigdirs}" in
2612 *target-libgloss*) ;;
2613 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2616 # Work in distributions that contain no compiler tools, like Autoconf.
2618 host_makefile_frag=/dev/null
2619 if test -d ${srcdir}/config ; then
2622 # Avoid "too much defining" errors from HPUX compiler.
2623 tentative_cc="cc -Wp,-H256000"
2624 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2625 # If it's HP/UX ar, this should be harmless.
2629 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2632 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2633 # chokes on bfd, the compiler won't let you assign integers to enums, and
2634 # other problems. Defining CC to gcc is a questionable way to say "don't use
2635 # the apollo compiler" (the preferred version of GCC could be called cc,
2636 # or whatever), but I'm not sure leaving CC as cc is any better...
2637 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2638 # Used to have BISON=yacc.
2642 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2645 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2646 tentative_cc="cc -Xa"
2647 host_makefile_frag="config/mh-cxux"
2649 m88k-motorola-sysv*)
2652 tentative_cc="cc -Wf,-XNg1000"
2653 host_makefile_frag="config/mh-decstation"
2656 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2657 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2658 host_makefile_frag="config/mh-necv4"
2661 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2662 # environment. Also bump switch table size so that cp-parse will
2663 # compile. Bump string length limit so linker builds.
2664 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2667 host_makefile_frag="config/mh-sysv4"
2670 # This is for a MIPS running RISC/os 4.52C.
2672 # This is needed for GDB, but needs to be in the top-level make because
2673 # if a library is compiled with the bsd headers and gets linked with the
2674 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2675 # a different size).
2676 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2677 # known except to select the sysv environment. Could we use /proc instead?
2678 # These "sysv environments" and "bsd environments" often end up being a pain.
2680 # This is not part of CFLAGS because perhaps not all C compilers have this
2682 tentative_cc="cc -systype sysv"
2687 i[3456789]86-*-sysv5*)
2688 host_makefile_frag="config/mh-sysv5"
2690 i[3456789]86-*-dgux*)
2691 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2692 host_makefile_frag="config/mh-dgux386"
2694 i[3456789]86-ncr-sysv4.3*)
2695 # The MetaWare compiler will generate a copyright message unless you
2696 # turn it off by adding the -Hnocopyr flag.
2697 tentative_cc="cc -Hnocopyr"
2699 i[3456789]86-ncr-sysv4*)
2700 # for an NCR 3000 (i486/SVR4) system.
2701 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2702 # This compiler not only emits obnoxious copyright messages every time
2703 # you run it, but it chokes and dies on a whole bunch of GNU source
2704 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2705 tentative_cc="/usr/ccs/ATT/cc"
2706 host_makefile_frag="config/mh-ncr3000"
2708 i[3456789]86-*-sco3.2v5*)
2710 i[3456789]86-*-sco*)
2711 # The native C compiler botches some simple uses of const. Unfortunately,
2712 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2713 tentative_cc="cc -Dconst="
2714 host_makefile_frag="config/mh-sco"
2716 i[3456789]86-*-udk*)
2717 host_makefile_frag="config/mh-sysv5"
2719 i[3456789]86-*-solaris2*)
2720 host_makefile_frag="config/mh-sysv4"
2722 i[3456789]86-*-msdosdjgpp*)
2723 host_makefile_frag="config/mh-djgpp"
2726 host_makefile_frag="config/mh-cygwin"
2729 host_makefile_frag="config/mh-mingw"
2732 host_makefile_frag="config/mh-mingw"
2735 host_makefile_frag="config/mh-interix"
2738 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2742 host_makefile_frag="config/mh-solaris"
2745 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2746 # without overflowing the jump tables (-J says to use a 32 bit table)
2747 tentative_cc="cc -J"
2750 tentative_cc="cc -Wp,-H256000"
2753 tentative_cc="cc -Wp,-H256000"
2756 # /bin/cc is less than useful for our purposes. Always use GCC
2757 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2758 host_makefile_frag="config/mh-lynxrs6k"
2761 host_makefile_frag="config/mh-ppc-darwin"
2764 host_makefile_frag="config/mh-ppc-aix"
2767 host_makefile_frag="config/mh-ppc-aix"
2770 # /bin/cc is less than useful for our purposes. Always use GCC
2771 tentative_cc="/bin/gcc"
2774 host_makefile_frag="config/mh-sysv4"
2776 # This is placed last to prevent interfering with the cases above.
2778 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2779 host_makefile_frag="config/mh-x86omitfp"
2784 # If we aren't going to be using gcc, see if we can extract a definition
2785 # of CC from the fragment.
2786 # Actually, use the 'pre-extracted' version above.
2787 if test -z "${CC}" && test "${build}" = "${host}" ; then
2788 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2790 for dir in $PATH; do
2791 test -z "$dir" && dir=.
2792 if test -f $dir/gcc; then
2798 if test -z "${found}" && test -n "${tentative_cc}" ; then
2803 if test "${build}" != "${host}" ; then
2804 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2806 CC_FOR_BUILD="\$(CC)"
2810 ac_cpp='$CPP $CPPFLAGS'
2811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2814 if test -n "$ac_tool_prefix"; then
2815 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2816 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2817 echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2819 if test "${ac_cv_prog_CC+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC="$CC" # Let the user override the test.
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2832 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 if test -n "$CC"; then
2843 echo "$as_me:$LINENO: result: $CC" >&5
2844 echo "${ECHO_T}$CC" >&6
2846 echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6
2851 if test -z "$ac_cv_prog_CC"; then
2853 # Extract the first word of "gcc", so it can be a program name with args.
2854 set dummy gcc; ac_word=$2
2855 echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2857 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 if test -n "$ac_ct_CC"; then
2861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2870 ac_cv_prog_ac_ct_CC="gcc"
2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2880 if test -n "$ac_ct_CC"; then
2881 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2882 echo "${ECHO_T}$ac_ct_CC" >&6
2884 echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6
2893 if test -z "$CC"; then
2894 if test -n "$ac_tool_prefix"; then
2895 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2896 set dummy ${ac_tool_prefix}cc; ac_word=$2
2897 echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2899 if test "${ac_cv_prog_CC+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 if test -n "$CC"; then
2903 ac_cv_prog_CC="$CC" # Let the user override the test.
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_CC="${ac_tool_prefix}cc"
2913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 if test -n "$CC"; then
2923 echo "$as_me:$LINENO: result: $CC" >&5
2924 echo "${ECHO_T}$CC" >&6
2926 echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6
2931 if test -z "$ac_cv_prog_CC"; then
2933 # Extract the first word of "cc", so it can be a program name with args.
2934 set dummy cc; ac_word=$2
2935 echo "$as_me:$LINENO: checking for $ac_word" >&5
2936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2937 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2940 if test -n "$ac_ct_CC"; then
2941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950 ac_cv_prog_ac_ct_CC="cc"
2951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2960 if test -n "$ac_ct_CC"; then
2961 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2962 echo "${ECHO_T}$ac_ct_CC" >&6
2964 echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6
2974 if test -z "$CC"; then
2975 # Extract the first word of "cc", so it can be a program name with args.
2976 set dummy cc; ac_word=$2
2977 echo "$as_me:$LINENO: checking for $ac_word" >&5
2978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2979 if test "${ac_cv_prog_CC+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 if test -n "$CC"; then
2983 ac_cv_prog_CC="$CC" # Let the user override the test.
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2994 ac_prog_rejected=yes
2998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 if test $ac_prog_rejected = yes; then
3005 # We found a bogon in the path, so make sure we never use it.
3006 set dummy $ac_cv_prog_CC
3008 if test $# != 0; then
3009 # We chose a different compiler from the bogus one.
3010 # However, it has the same basename, so the bogon will be chosen
3011 # first if we set CC to just the basename; use the full file name.
3013 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3019 if test -n "$CC"; then
3020 echo "$as_me:$LINENO: result: $CC" >&5
3021 echo "${ECHO_T}$CC" >&6
3023 echo "$as_me:$LINENO: result: no" >&5
3024 echo "${ECHO_T}no" >&6
3028 if test -z "$CC"; then
3029 if test -n "$ac_tool_prefix"; then
3032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3034 echo "$as_me:$LINENO: checking for $ac_word" >&5
3035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3036 if test "${ac_cv_prog_CC+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 if test -n "$CC"; then
3040 ac_cv_prog_CC="$CC" # Let the user override the test.
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 if test -n "$CC"; then
3060 echo "$as_me:$LINENO: result: $CC" >&5
3061 echo "${ECHO_T}$CC" >&6
3063 echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6
3067 test -n "$CC" && break
3070 if test -z "$CC"; then
3074 # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy $ac_prog; ac_word=$2
3076 echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3078 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 if test -n "$ac_ct_CC"; then
3082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091 ac_cv_prog_ac_ct_CC="$ac_prog"
3092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3101 if test -n "$ac_ct_CC"; then
3102 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3103 echo "${ECHO_T}$ac_ct_CC" >&6
3105 echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6
3109 test -n "$ac_ct_CC" && break
3118 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3119 See \`config.log' for more details." >&5
3120 echo "$as_me: error: no acceptable C compiler found in \$PATH
3121 See \`config.log' for more details." >&2;}
3122 { (exit 1); exit 1; }; }
3124 # Provide some information about the compiler.
3125 echo "$as_me:$LINENO:" \
3126 "checking for C compiler version" >&5
3127 ac_compiler=`set X $ac_compile; echo $2`
3128 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3129 (eval $ac_compiler --version </dev/null >&5) 2>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }
3133 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3134 (eval $ac_compiler -v </dev/null >&5) 2>&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }
3138 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3139 (eval $ac_compiler -V </dev/null >&5) 2>&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }
3144 cat >conftest.$ac_ext <<_ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3159 ac_clean_files_save=$ac_clean_files
3160 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3161 # Try to create an executable without -o first, disregard a.out.
3162 # It will help us diagnose broken compilers, and finding out an intuition
3164 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3165 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3166 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3167 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3168 (eval $ac_link_default) 2>&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; then
3172 # Find the output, starting from the most likely. This scheme is
3173 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3176 # Be careful to initialize this variable, since it used to be cached.
3177 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3179 # b.out is created by i960 compilers.
3180 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3182 test -f "$ac_file" || continue
3184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3187 # This is the source file.
3190 # We found the default executable, but exeext='' is most
3194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3195 # FIXME: I believe we export ac_cv_exeext for Libtool,
3196 # but it would be cool to find out if it's true. Does anybody
3197 # maintain Libtool? --akim.
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3208 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3209 See \`config.log' for more details." >&5
3210 echo "$as_me: error: C compiler cannot create executables
3211 See \`config.log' for more details." >&2;}
3212 { (exit 77); exit 77; }; }
3215 ac_exeext=$ac_cv_exeext
3216 echo "$as_me:$LINENO: result: $ac_file" >&5
3217 echo "${ECHO_T}$ac_file" >&6
3219 # Check the compiler produces executables we can run. If not, either
3220 # the compiler is broken, or we cross compile.
3221 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3222 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3223 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3224 # If not cross compiling, check that we can run a simple program.
3225 if test "$cross_compiling" != yes; then
3226 if { ac_try='./$ac_file'
3227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; }; then
3234 if test "$cross_compiling" = maybe; then
3237 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3238 If you meant to cross compile, use \`--host'.
3239 See \`config.log' for more details." >&5
3240 echo "$as_me: error: cannot run C compiled programs.
3241 If you meant to cross compile, use \`--host'.
3242 See \`config.log' for more details." >&2;}
3243 { (exit 1); exit 1; }; }
3247 echo "$as_me:$LINENO: result: yes" >&5
3248 echo "${ECHO_T}yes" >&6
3250 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3251 ac_clean_files=$ac_clean_files_save
3252 # Check the compiler produces executables we can run. If not, either
3253 # the compiler is broken, or we cross compile.
3254 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3255 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3256 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3257 echo "${ECHO_T}$cross_compiling" >&6
3259 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3260 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3262 (eval $ac_link) 2>&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; then
3266 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3267 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3268 # work properly (i.e., refer to `conftest.exe'), while it won't with
3270 for ac_file in conftest.exe conftest conftest.*; do
3271 test -f "$ac_file" || continue
3273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3274 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3281 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3282 See \`config.log' for more details." >&5
3283 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3284 See \`config.log' for more details." >&2;}
3285 { (exit 1); exit 1; }; }
3288 rm -f conftest$ac_cv_exeext
3289 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3290 echo "${ECHO_T}$ac_cv_exeext" >&6
3292 rm -f conftest.$ac_ext
3293 EXEEXT=$ac_cv_exeext
3295 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3296 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3297 if test "${ac_cv_objext+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 cat >conftest.$ac_ext <<_ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3315 rm -f conftest.o conftest.obj
3316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3317 (eval $ac_compile) 2>&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; then
3321 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3324 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3332 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3333 See \`config.log' for more details." >&5
3334 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3335 See \`config.log' for more details." >&2;}
3336 { (exit 1); exit 1; }; }
3339 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3341 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3342 echo "${ECHO_T}$ac_cv_objext" >&6
3343 OBJEXT=$ac_cv_objext
3345 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3346 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3347 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3348 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 cat >conftest.$ac_ext <<_ACEOF
3353 cat confdefs.h >>conftest.$ac_ext
3354 cat >>conftest.$ac_ext <<_ACEOF
3355 /* end confdefs.h. */
3368 rm -f conftest.$ac_objext
3369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3370 (eval $ac_compile) 2>conftest.er1
3372 grep -v '^ *+' conftest.er1 >conftest.err
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } &&
3377 { ac_try='test -z "$ac_c_werror_flag"
3378 || test ! -s conftest.err'
3379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; } &&
3384 { ac_try='test -s conftest.$ac_objext'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3392 echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3398 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3401 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3402 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3403 GCC=`test $ac_compiler_gnu = yes && echo yes`
3404 ac_test_CFLAGS=${CFLAGS+set}
3405 ac_save_CFLAGS=$CFLAGS
3407 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3408 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3409 if test "${ac_cv_prog_cc_g+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 cat >conftest.$ac_ext <<_ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3427 rm -f conftest.$ac_objext
3428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3429 (eval $ac_compile) 2>conftest.er1
3431 grep -v '^ *+' conftest.er1 >conftest.err
3433 cat conftest.err >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } &&
3436 { ac_try='test -z "$ac_c_werror_flag"
3437 || test ! -s conftest.err'
3438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; } &&
3443 { ac_try='test -s conftest.$ac_objext'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; }; then
3451 echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3458 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3459 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3460 if test "$ac_test_CFLAGS" = set; then
3461 CFLAGS=$ac_save_CFLAGS
3462 elif test $ac_cv_prog_cc_g = yes; then
3463 if test "$GCC" = yes; then
3469 if test "$GCC" = yes; then
3475 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3476 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3477 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 ac_cv_prog_cc_stdc=no
3482 cat >conftest.$ac_ext <<_ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3490 #include <sys/types.h>
3491 #include <sys/stat.h>
3492 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3493 struct buf { int x; };
3494 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3495 static char *e (p, i)
3501 static char *f (char * (*g) (char **, int), char **p, ...)
3506 s = g (p, va_arg (v,int));
3511 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3512 function prototypes and stuff, but not '\xHH' hex character constants.
3513 These don't provoke an error unfortunately, instead are silently treated
3514 as 'x'. The following induces an error, until -std1 is added to get
3515 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3516 array size at least. It's necessary to write '\x00'==0 to get something
3517 that's true only with -std1. */
3518 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3520 int test (int i, double x);
3521 struct s1 {int (*f) (int a);};
3522 struct s2 {int (*f) (double a);};
3523 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3529 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3534 # Don't try gcc -ansi; that turns off useful extensions and
3535 # breaks some systems' header files.
3536 # AIX -qlanglvl=ansi
3537 # Ultrix and OSF/1 -std1
3538 # HP-UX 10.20 and later -Ae
3539 # HP-UX older versions -Aa -D_HPUX_SOURCE
3540 # SVR4 -Xc -D__EXTENSIONS__
3541 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3543 CC="$ac_save_CC $ac_arg"
3544 rm -f conftest.$ac_objext
3545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3546 (eval $ac_compile) 2>conftest.er1
3548 grep -v '^ *+' conftest.er1 >conftest.err
3550 cat conftest.err >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); } &&
3553 { ac_try='test -z "$ac_c_werror_flag"
3554 || test ! -s conftest.err'
3555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; } &&
3560 { ac_try='test -s conftest.$ac_objext'
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; }; then
3566 ac_cv_prog_cc_stdc=$ac_arg
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3573 rm -f conftest.err conftest.$ac_objext
3575 rm -f conftest.$ac_ext conftest.$ac_objext
3580 case "x$ac_cv_prog_cc_stdc" in
3582 echo "$as_me:$LINENO: result: none needed" >&5
3583 echo "${ECHO_T}none needed" >&6 ;;
3585 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3586 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3587 CC="$CC $ac_cv_prog_cc_stdc" ;;
3590 # Some people use a C++ compiler to compile C. Since we use `exit',
3591 # in C++ we need to declare it. In case someone uses the same compiler
3592 # for both compiling C and C++ we need to have the C++ compiler decide
3593 # the declaration of exit, since it's the most demanding environment.
3594 cat >conftest.$ac_ext <<_ACEOF
3599 rm -f conftest.$ac_objext
3600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3601 (eval $ac_compile) 2>conftest.er1
3603 grep -v '^ *+' conftest.er1 >conftest.err
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } &&
3608 { ac_try='test -z "$ac_c_werror_flag"
3609 || test ! -s conftest.err'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; } &&
3615 { ac_try='test -s conftest.$ac_objext'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; }; then
3621 for ac_declaration in \
3623 'extern "C" void std::exit (int) throw (); using std::exit;' \
3624 'extern "C" void std::exit (int); using std::exit;' \
3625 'extern "C" void exit (int) throw ();' \
3626 'extern "C" void exit (int);' \
3629 cat >conftest.$ac_ext <<_ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h. */
3645 rm -f conftest.$ac_objext
3646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3647 (eval $ac_compile) 2>conftest.er1
3649 grep -v '^ *+' conftest.er1 >conftest.err
3651 cat conftest.err >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } &&
3654 { ac_try='test -z "$ac_c_werror_flag"
3655 || test ! -s conftest.err'
3656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; } &&
3661 { ac_try='test -s conftest.$ac_objext'
3662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; }; then
3669 echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3675 cat >conftest.$ac_ext <<_ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h. */
3690 rm -f conftest.$ac_objext
3691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3692 (eval $ac_compile) 2>conftest.er1
3694 grep -v '^ *+' conftest.er1 >conftest.err
3696 cat conftest.err >&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); } &&
3699 { ac_try='test -z "$ac_c_werror_flag"
3700 || test ! -s conftest.err'
3701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; } &&
3706 { ac_try='test -s conftest.$ac_objext'
3707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; }; then
3714 echo "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.$ac_ext >&5
3718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3721 if test -n "$ac_declaration"; then
3722 echo '#ifdef __cplusplus' >>confdefs.h
3723 echo $ac_declaration >>confdefs.h
3724 echo '#endif' >>confdefs.h
3728 echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3734 ac_cpp='$CPP $CPPFLAGS'
3735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3740 ac_cpp='$CXXCPP $CPPFLAGS'
3741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3744 if test -n "$ac_tool_prefix"; then
3745 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3749 echo "$as_me:$LINENO: checking for $ac_word" >&5
3750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3751 if test "${ac_cv_prog_CXX+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 if test -n "$CXX"; then
3755 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3764 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 if test -n "$CXX"; then
3775 echo "$as_me:$LINENO: result: $CXX" >&5
3776 echo "${ECHO_T}$CXX" >&6
3778 echo "$as_me:$LINENO: result: no" >&5
3779 echo "${ECHO_T}no" >&6
3782 test -n "$CXX" && break
3785 if test -z "$CXX"; then
3787 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3789 # Extract the first word of "$ac_prog", so it can be a program name with args.
3790 set dummy $ac_prog; ac_word=$2
3791 echo "$as_me:$LINENO: checking for $ac_word" >&5
3792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3793 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 if test -n "$ac_ct_CXX"; then
3797 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3806 ac_cv_prog_ac_ct_CXX="$ac_prog"
3807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3815 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3816 if test -n "$ac_ct_CXX"; then
3817 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3818 echo "${ECHO_T}$ac_ct_CXX" >&6
3820 echo "$as_me:$LINENO: result: no" >&5
3821 echo "${ECHO_T}no" >&6
3824 test -n "$ac_ct_CXX" && break
3826 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3832 # Provide some information about the compiler.
3833 echo "$as_me:$LINENO:" \
3834 "checking for C++ compiler version" >&5
3835 ac_compiler=`set X $ac_compile; echo $2`
3836 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3837 (eval $ac_compiler --version </dev/null >&5) 2>&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }
3841 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3842 (eval $ac_compiler -v </dev/null >&5) 2>&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }
3846 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3847 (eval $ac_compiler -V </dev/null >&5) 2>&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }
3852 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3853 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3854 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 cat >conftest.$ac_ext <<_ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3875 rm -f conftest.$ac_objext
3876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3877 (eval $ac_compile) 2>conftest.er1
3879 grep -v '^ *+' conftest.er1 >conftest.err
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } &&
3884 { ac_try='test -z "$ac_cxx_werror_flag"
3885 || test ! -s conftest.err'
3886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); }; } &&
3891 { ac_try='test -s conftest.$ac_objext'
3892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; }; then
3899 echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3905 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3908 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3909 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3910 GXX=`test $ac_compiler_gnu = yes && echo yes`
3911 ac_test_CXXFLAGS=${CXXFLAGS+set}
3912 ac_save_CXXFLAGS=$CXXFLAGS
3914 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3915 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3916 if test "${ac_cv_prog_cxx_g+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 cat >conftest.$ac_ext <<_ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3934 rm -f conftest.$ac_objext
3935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3936 (eval $ac_compile) 2>conftest.er1
3938 grep -v '^ *+' conftest.er1 >conftest.err
3940 cat conftest.err >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } &&
3943 { ac_try='test -z "$ac_cxx_werror_flag"
3944 || test ! -s conftest.err'
3945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); }; } &&
3950 { ac_try='test -s conftest.$ac_objext'
3951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; }; then
3956 ac_cv_prog_cxx_g=yes
3958 echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3965 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3966 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3967 if test "$ac_test_CXXFLAGS" = set; then
3968 CXXFLAGS=$ac_save_CXXFLAGS
3969 elif test $ac_cv_prog_cxx_g = yes; then
3970 if test "$GXX" = yes; then
3976 if test "$GXX" = yes; then
3982 for ac_declaration in \
3984 'extern "C" void std::exit (int) throw (); using std::exit;' \
3985 'extern "C" void std::exit (int); using std::exit;' \
3986 'extern "C" void exit (int) throw ();' \
3987 'extern "C" void exit (int);' \
3990 cat >conftest.$ac_ext <<_ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h. */
4006 rm -f conftest.$ac_objext
4007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4008 (eval $ac_compile) 2>conftest.er1
4010 grep -v '^ *+' conftest.er1 >conftest.err
4012 cat conftest.err >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } &&
4015 { ac_try='test -z "$ac_cxx_werror_flag"
4016 || test ! -s conftest.err'
4017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; } &&
4022 { ac_try='test -s conftest.$ac_objext'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4030 echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4036 cat >conftest.$ac_ext <<_ACEOF
4039 cat confdefs.h >>conftest.$ac_ext
4040 cat >>conftest.$ac_ext <<_ACEOF
4041 /* end confdefs.h. */
4051 rm -f conftest.$ac_objext
4052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4053 (eval $ac_compile) 2>conftest.er1
4055 grep -v '^ *+' conftest.er1 >conftest.err
4057 cat conftest.err >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } &&
4060 { ac_try='test -z "$ac_cxx_werror_flag"
4061 || test ! -s conftest.err'
4062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }; } &&
4067 { ac_try='test -s conftest.$ac_objext'
4068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; }; then
4075 echo "$as_me: failed program was:" >&5
4076 sed 's/^/| /' conftest.$ac_ext >&5
4079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4082 if test -n "$ac_declaration"; then
4083 echo '#ifdef __cplusplus' >>confdefs.h
4084 echo $ac_declaration >>confdefs.h
4085 echo '#endif' >>confdefs.h
4089 ac_cpp='$CPP $CPPFLAGS'
4090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4095 # We must set the default linker to the linker used by gcc for the correct
4096 # operation of libtool. If LD is not defined and we are using gcc, try to
4097 # set the LD default to the ld used by gcc.
4098 if test -z "$LD"; then
4099 if test "$GCC" = yes; then
4102 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4104 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4106 case $gcc_prog_ld in
4107 # Accept absolute paths.
4108 [\\/]* | [A-Za-z]:[\\/]*)
4109 LD="$gcc_prog_ld" ;;
4117 if test -n "$ac_tool_prefix"; then
4118 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4119 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4120 echo "$as_me:$LINENO: checking for $ac_word" >&5
4121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4122 if test "${ac_cv_prog_GNATBIND+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 if test -n "$GNATBIND"; then
4126 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 GNATBIND=$ac_cv_prog_GNATBIND
4145 if test -n "$GNATBIND"; then
4146 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4147 echo "${ECHO_T}$GNATBIND" >&6
4149 echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6
4154 if test -z "$ac_cv_prog_GNATBIND"; then
4155 ac_ct_GNATBIND=$GNATBIND
4156 # Extract the first word of "gnatbind", so it can be a program name with args.
4157 set dummy gnatbind; ac_word=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 if test -n "$ac_ct_GNATBIND"; then
4164 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
4183 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4184 if test -n "$ac_ct_GNATBIND"; then
4185 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4186 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
4188 echo "$as_me:$LINENO: result: no" >&5
4189 echo "${ECHO_T}no" >&6
4192 GNATBIND=$ac_ct_GNATBIND
4194 GNATBIND="$ac_cv_prog_GNATBIND"
4197 if test -n "$ac_tool_prefix"; then
4198 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4199 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4200 echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4202 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 if test -n "$GNATMAKE"; then
4206 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 GNATMAKE=$ac_cv_prog_GNATMAKE
4225 if test -n "$GNATMAKE"; then
4226 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4227 echo "${ECHO_T}$GNATMAKE" >&6
4229 echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4234 if test -z "$ac_cv_prog_GNATMAKE"; then
4235 ac_ct_GNATMAKE=$GNATMAKE
4236 # Extract the first word of "gnatmake", so it can be a program name with args.
4237 set dummy gnatmake; ac_word=$2
4238 echo "$as_me:$LINENO: checking for $ac_word" >&5
4239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4240 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 if test -n "$ac_ct_GNATMAKE"; then
4244 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4253 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
4263 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4264 if test -n "$ac_ct_GNATMAKE"; then
4265 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4266 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
4268 echo "$as_me:$LINENO: result: no" >&5
4269 echo "${ECHO_T}no" >&6
4272 GNATMAKE=$ac_ct_GNATMAKE
4274 GNATMAKE="$ac_cv_prog_GNATMAKE"
4277 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4278 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4279 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4282 cat >conftest.adb <<EOF
4283 procedure conftest is begin null; end conftest;
4285 acx_cv_cc_gcc_supports_ada=no
4286 # There is a bug in old released versions of GCC which causes the
4287 # driver to exit successfully when the appropriate language module
4288 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4289 # Therefore we must check for the error message as well as an
4290 # unsuccessful exit.
4291 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4292 # given a .adb file, but produce no object file. So we must check
4293 # if an object file was really produced to guard against this.
4294 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4295 if test x"$errors" = x && test -f conftest.$ac_objext; then
4296 acx_cv_cc_gcc_supports_ada=yes
4300 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4301 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
4303 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4309 echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4310 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4311 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4317 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4318 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4321 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4324 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4325 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4328 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4334 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4335 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4336 do_compare="$gcc_cv_prog_cmp_skip"
4340 # Check for GMP and MPFR
4341 gmplibs="-lmpfr -lgmp"
4345 # Specify a location for mpfr
4346 # check for this first so it ends up on the link line before gmp.
4348 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4349 if test "${with_mpfr_dir+set}" = set; then
4350 withval="$with_mpfr_dir"
4351 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4352 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4353 echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4354 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4355 { (exit 1); exit 1; }; }
4359 # Check whether --with-mpfr or --without-mpfr was given.
4360 if test "${with_mpfr+set}" = set; then
4361 withval="$with_mpfr"
4365 # Check whether --with-mpfr_include or --without-mpfr_include was given.
4366 if test "${with_mpfr_include+set}" = set; then
4367 withval="$with_mpfr_include"
4371 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4372 if test "${with_mpfr_lib+set}" = set; then
4373 withval="$with_mpfr_lib"
4377 if test "x$with_mpfr" != x; then
4378 gmplibs="-L$with_mpfr/lib $gmplibs"
4379 gmpinc="-I$with_mpfr/include"
4381 if test "x$with_mpfr_include" != x; then
4382 gmpinc="-I$with_mpfr_include"
4384 if test "x$with_mpfr_lib" != x; then
4385 gmplibs="-L$with_mpfr_lib $gmplibs"
4387 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4388 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4389 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4390 # Do not test the mpfr version. Assume that it is sufficient, since
4391 # it is in the source tree, and the library has not been built yet
4392 # but it would be included on the link line in the version check below
4393 # hence making the test fail.
4397 # Specify a location for gmp
4399 # Check whether --with-gmp-dir or --without-gmp-dir was given.
4400 if test "${with_gmp_dir+set}" = set; then
4401 withval="$with_gmp_dir"
4402 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4403 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4404 echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4405 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4406 { (exit 1); exit 1; }; }
4410 # Check whether --with-gmp or --without-gmp was given.
4411 if test "${with_gmp+set}" = set; then
4416 # Check whether --with-gmp_include or --without-gmp_include was given.
4417 if test "${with_gmp_include+set}" = set; then
4418 withval="$with_gmp_include"
4422 # Check whether --with-gmp_lib or --without-gmp_lib was given.
4423 if test "${with_gmp_lib+set}" = set; then
4424 withval="$with_gmp_lib"
4429 if test "x$with_gmp" != x; then
4430 gmplibs="-L$with_gmp/lib $gmplibs"
4431 gmpinc="-I$with_gmp/include $gmpinc"
4433 if test "x$with_gmp_include" != x; then
4434 gmpinc="-I$with_gmp_include $gmpinc"
4436 if test "x$with_gmp_lib" != x; then
4437 gmplibs="-L$with_gmp_lib $gmplibs"
4439 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4440 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4441 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4442 # Do not test the gmp version. Assume that it is sufficient, since
4443 # it is in the source tree, and the library has not been built yet
4444 # but it would be included on the link line in the version check below
4445 # hence making the test fail.
4449 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4451 saved_CFLAGS="$CFLAGS"
4452 CFLAGS="$CFLAGS $gmpinc"
4453 # Check GMP actually works
4454 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4455 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4457 cat >conftest.$ac_ext <<_ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h. */
4468 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4476 rm -f conftest.$ac_objext
4477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4478 (eval $ac_compile) 2>conftest.er1
4480 grep -v '^ *+' conftest.er1 >conftest.err
4482 cat conftest.err >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } &&
4485 { ac_try='test -z "$ac_c_werror_flag"
4486 || test ! -s conftest.err'
4487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; } &&
4492 { ac_try='test -s conftest.$ac_objext'
4493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; }; then
4498 echo "$as_me:$LINENO: result: yes" >&5
4499 echo "${ECHO_T}yes" >&6
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4504 echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; have_gmp=no
4507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4509 if test x"$have_gmp" = xyes; then
4511 LIBS="$LIBS $gmplibs"
4512 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4513 echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4514 cat >conftest.$ac_ext <<_ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4526 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4534 mpfr_atan2 (n, n, x, GMP_RNDN);
4535 mpfr_erfc (n, x, GMP_RNDN);
4536 mpfr_subnormalize (x, t, GMP_RNDN);
4542 rm -f conftest.$ac_objext conftest$ac_exeext
4543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4544 (eval $ac_link) 2>conftest.er1
4546 grep -v '^ *+' conftest.er1 >conftest.err
4548 cat conftest.err >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } &&
4551 { ac_try='test -z "$ac_c_werror_flag"
4552 || test ! -s conftest.err'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; } &&
4558 { ac_try='test -s conftest$ac_exeext'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; }; then
4564 cat >conftest.$ac_ext <<_ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4576 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4579 mpfr_t n; mpfr_init(n);
4585 rm -f conftest.$ac_objext conftest$ac_exeext
4586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4587 (eval $ac_link) 2>conftest.er1
4589 grep -v '^ *+' conftest.er1 >conftest.err
4591 cat conftest.err >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } &&
4594 { ac_try='test -z "$ac_c_werror_flag"
4595 || test ! -s conftest.err'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; } &&
4601 { ac_try='test -s conftest$ac_exeext'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 echo "$as_me:$LINENO: result: yes" >&5
4608 echo "${ECHO_T}yes" >&6
4610 echo "$as_me: failed program was:" >&5
4611 sed 's/^/| /' conftest.$ac_ext >&5
4613 echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4614 echo "${ECHO_T}buggy but acceptable" >&6
4616 rm -f conftest.err conftest.$ac_objext \
4617 conftest$ac_exeext conftest.$ac_ext
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4622 echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6; have_gmp=no
4625 rm -f conftest.err conftest.$ac_objext \
4626 conftest$ac_exeext conftest.$ac_ext
4629 CFLAGS="$saved_CFLAGS"
4631 if test x$have_gmp != xyes; then
4632 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4633 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4634 Copies of these libraries' source code can be found at their respective
4635 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4636 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4637 If you obtained GMP and/or MPFR from a vendor distribution package, make
4638 sure that you have installed both the libraries and the header files.
4639 They may be located in separate packages." >&5
4640 echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4641 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4642 Copies of these libraries' source code can be found at their respective
4643 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4644 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4645 If you obtained GMP and/or MPFR from a vendor distribution package, make
4646 sure that you have installed both the libraries and the header files.
4647 They may be located in separate packages." >&2;}
4648 { (exit 1); exit 1; }; }
4652 # Flags needed for both GMP and/or MPFR
4656 # By default, C is the only stage 1 language.
4657 stage1_languages=,c,
4659 # Figure out what language subdirectories are present.
4660 # Look if the user specified --enable-languages="..."; if not, use
4661 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4663 # NB: embedded tabs in this IF block -- do not untabify
4664 if test -d ${srcdir}/gcc; then
4665 if test x"${enable_languages+set}" != xset; then
4666 if test x"${LANGUAGES+set}" = xset; then
4667 enable_languages="${LANGUAGES}"
4668 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4670 enable_languages=all
4673 if test x"${enable_languages}" = x ||
4674 test x"${enable_languages}" = xyes;
4676 echo configure.in: --enable-languages needs at least one language argument 1>&2
4680 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4682 # 'f95' is the old name for the 'fortran' language. We issue a warning
4683 # and make the substitution.
4684 case ,${enable_languages}, in
4686 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4687 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4691 # First scan to see if an enabled language requires some other language.
4692 # We assume that a given config-lang.in will list all the language
4693 # front ends it requires, even if some are required indirectly.
4694 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4695 case ${lang_frag} in
4697 # The odd quoting in the next line works around
4698 # an apparent bug in bash 1.12 on linux.
4699 ${srcdir}/gcc/[*]/config-lang.in) ;;
4701 # From the config-lang.in, get $language, $lang_requires
4705 for other in ${lang_requires} ; do
4706 case ,${enable_languages}, in
4710 echo " \`$other' language required by \`$language'; enabling" 1>&2
4711 enable_languages="${enable_languages},${other}"
4719 new_enable_languages=,c,
4720 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
4721 potential_languages=,c,
4723 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4724 case ${lang_frag} in
4726 # The odd quoting in the next line works around
4727 # an apparent bug in bash 1.12 on linux.
4728 ${srcdir}/gcc/[*]/config-lang.in) ;;
4730 # From the config-lang.in, get $language, $target_libs,
4731 # $lang_dirs, $boot_language, and $build_by_default
4737 build_by_default=yes
4739 if test x${language} = x; then
4740 echo "${lang_frag} doesn't set \$language." 1>&2
4744 case ,${enable_languages}, in
4746 # Language was explicitly selected; include it.
4750 # 'all' was selected, select it if it is a default language
4751 add_this_lang=${build_by_default}
4758 # Disable languages that need other directories if these aren't available.
4759 for i in $subdir_requires; do
4760 test -f "$srcdir/gcc/$i/config-lang.in" && continue
4761 case ,${enable_languages}, in
4763 # Specifically requested language; tell them.
4764 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4765 echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4766 { (exit 1); exit 1; }; }
4770 add_this_lang=unsupported
4775 # Disable Ada if no preexisting GNAT is available.
4776 case ,${enable_languages},:${language}:${have_gnat} in
4777 *,${language},*:ada:no)
4778 # Specifically requested language; tell them.
4779 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4780 echo "$as_me: error: GNAT is required to build $language" >&2;}
4781 { (exit 1); exit 1; }; }
4785 add_this_lang=unsupported
4789 # Disable a language that is unsupported by the target.
4790 case " $unsupported_languages " in
4792 add_this_lang=unsupported
4796 case $add_this_lang in
4798 # Remove language-dependent dirs.
4799 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4802 # Remove language-dependent dirs; still show language as supported.
4803 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4804 potential_languages="${potential_languages}${language},"
4807 new_enable_languages="${new_enable_languages}${language},"
4808 potential_languages="${potential_languages}${language},"
4809 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4810 case ${boot_language} in
4812 # Add to (comma-separated) list of stage 1 languages.
4813 stage1_languages="${stage1_languages}${language},"
4822 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4823 if test "${enable_stage1_languages+set}" = set; then
4824 enableval="$enable_stage1_languages"
4825 case ,${enable_stage1_languages}, in
4827 # Set it to something that will have no effect in the loop below
4828 enable_stage1_languages=c ;;
4830 enable_stage1_languages=`echo $new_enable_languages | \
4831 sed -e "s/^,//" -e "s/,$//" ` ;;
4833 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4834 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4837 # Add "good" languages from enable_stage1_languages to stage1_languages,
4838 # while "bad" languages go in missing_languages. Leave no duplicates.
4839 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4840 case $potential_languages in
4842 case $stage1_languages in
4844 *) stage1_languages="$stage1_languages$i," ;;
4847 case $missing_languages in
4849 *) missing_languages="$missing_languages$i," ;;
4855 # Remove leading/trailing commas that were added for simplicity
4856 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4857 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
4858 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4859 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4861 if test "x$missing_languages" != x; then
4862 { { echo "$as_me:$LINENO: error:
4863 The following requested languages could not be built: ${missing_languages}
4864 Supported languages are: ${potential_languages}" >&5
4865 echo "$as_me: error:
4866 The following requested languages could not be built: ${missing_languages}
4867 Supported languages are: ${potential_languages}" >&2;}
4868 { (exit 1); exit 1; }; }
4870 if test "x$new_enable_languages" != "x$enable_languages"; then
4871 echo The following languages will be built: ${new_enable_languages}
4872 enable_languages="$new_enable_languages"
4876 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
4879 # Handle --disable-<component> generically.
4880 for dir in $configdirs $build_configdirs $target_configdirs ; do
4881 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4882 if eval test x\${enable_${dirname}} "=" xno ; then
4883 noconfigdirs="$noconfigdirs $dir"
4887 # Check for Boehm's garbage collector
4888 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4889 if test "${enable_objc_gc+set}" = set; then
4890 enableval="$enable_objc_gc"
4891 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4892 *,objc,*:*:yes:*target-boehm-gc*)
4893 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4894 echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4895 { (exit 1); exit 1; }; }
4900 # Make sure we only build Boehm's garbage collector if required.
4901 case ,${enable_languages},:${enable_objc_gc} in
4903 # Keep target-boehm-gc if requested for Objective-C.
4906 # Otherwise remove target-boehm-gc depending on target-libjava.
4907 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4908 noconfigdirs="$noconfigdirs target-boehm-gc"
4913 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4914 # $build_configdirs and $target_configdirs.
4915 # If we have the source for $noconfigdirs entries, add them to $notsupp.
4918 for dir in . $skipdirs $noconfigdirs ; do
4919 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
4920 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4921 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4922 if test -r $srcdir/$dirname/configure ; then
4923 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4926 notsupp="$notsupp $dir"
4930 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4931 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4932 if test -r $srcdir/$dirname/configure ; then
4933 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4936 notsupp="$notsupp $dir"
4940 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4941 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4942 if test -r $srcdir/$dirname/configure ; then
4943 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4946 notsupp="$notsupp $dir"
4952 # Sometimes the tools are distributed with libiberty but with no other
4953 # libraries. In that case, we don't want to build target-libiberty.
4954 # Don't let libgcc imply libiberty either.
4955 if test -n "${target_configdirs}" ; then
4958 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
4959 if test "$i" = "libgcc"; then
4960 libgcc=target-libgcc
4961 elif test "$i" != "libiberty" ; then
4962 if test -r $srcdir/$i/configure ; then
4968 if test -z "${others}" ; then
4969 target_configdirs=$libgcc
4973 # Quietly strip out all directories which aren't configurable in this tree.
4974 # This relies on all configurable subdirectories being autoconfiscated, which
4976 build_configdirs_all="$build_configdirs"
4978 for i in ${build_configdirs_all} ; do
4979 j=`echo $i | sed -e s/build-//g`
4980 if test -f ${srcdir}/$j/configure ; then
4981 build_configdirs="${build_configdirs} $i"
4985 configdirs_all="$configdirs"
4987 for i in ${configdirs_all} ; do
4988 if test -f ${srcdir}/$i/configure ; then
4989 configdirs="${configdirs} $i"
4993 target_configdirs_all="$target_configdirs"
4995 for i in ${target_configdirs_all} ; do
4996 j=`echo $i | sed -e s/target-//g`
4997 if test -f ${srcdir}/$j/configure ; then
4998 target_configdirs="${target_configdirs} $i"
5002 # Produce a warning message for the subdirs we can't configure.
5003 # This isn't especially interesting in the Cygnus tree, but in the individual
5004 # FSF releases, it's important to let people know when their machine isn't
5005 # supported by the one or two programs in a package.
5007 if test -n "${notsupp}" && test -z "${norecursion}" ; then
5008 # If $appdirs is non-empty, at least one of those directories must still
5009 # be configured, or we error out. (E.g., if the gas release supports a
5010 # specified target in some subdirs but not the gas subdir, we shouldn't
5011 # pretend that all is well.)
5012 if test -n "$appdirs" ; then
5013 for dir in $appdirs ; do
5014 if test -r $dir/Makefile.in ; then
5015 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5019 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
5025 if test -n "$appdirs" ; then
5026 echo "*** This configuration is not supported by this package." 1>&2
5030 # Okay, some application will build, or we don't care to check. Still
5031 # notify of subdirs not getting built.
5032 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5033 echo " ${notsupp}" 1>&2
5034 echo " (Any other directories should still work fine.)" 1>&2
5042 # To find our prefix, in gcc_cv_tool_prefix.
5044 # The user is always right.
5045 if test "${PATH_SEPARATOR+set}" != set; then
5046 echo "#! /bin/sh" >conf$$.sh
5047 echo "exit 0" >>conf$$.sh
5049 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5059 if test "x$exec_prefix" = xNONE; then
5060 if test "x$prefix" = xNONE; then
5061 gcc_cv_tool_prefix=$ac_default_prefix
5063 gcc_cv_tool_prefix=$prefix
5066 gcc_cv_tool_prefix=$exec_prefix
5069 # If there is no compiler in the tree, use the PATH only. In any
5070 # case, if there is no compiler in the tree nobody should use
5071 # AS_FOR_TARGET and LD_FOR_TARGET.
5072 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5073 gcc_version=`cat $srcdir/gcc/BASE-VER`
5074 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5075 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5076 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5077 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5078 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5079 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5084 if test x$build = x$target && test -n "$md_exec_prefix"; then
5085 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5093 # Check whether --with-build-sysroot or --without-build-sysroot was given.
5094 if test "${with_build_sysroot+set}" = set; then
5095 withval="$with_build_sysroot"
5096 if test x"$withval" != x ; then
5097 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5100 SYSROOT_CFLAGS_FOR_TARGET=
5105 # Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5106 if test "${with_debug_prefix_map+set}" = set; then
5107 withval="$with_debug_prefix_map"
5108 if test x"$withval" != x; then
5109 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5110 for debug_map in $withval; do
5111 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5115 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5119 # Handle --with-headers=XXX. If the value is not "yes", the contents of
5120 # the named directory are copied to $(tooldir)/sys-include.
5121 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5122 if test x${is_cross_compiler} = xno ; then
5123 echo 1>&2 '***' --with-headers is only supported when cross compiling
5126 if test x"${with_headers}" != xyes ; then
5127 x=${gcc_cv_tool_prefix}
5128 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
5132 # Handle --with-libs=XXX. If the value is not "yes", the contents of
5133 # the name directories are copied to $(tooldir)/lib. Multiple directories
5135 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5136 if test x${is_cross_compiler} = xno ; then
5137 echo 1>&2 '***' --with-libs is only supported when cross compiling
5140 if test x"${with_libs}" != xyes ; then
5141 # Copy the libraries in reverse order, so that files in the first named
5142 # library override files in subsequent libraries.
5143 x=${gcc_cv_tool_prefix}
5144 for l in ${with_libs}; do
5145 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
5150 # Set with_gnu_as and with_gnu_ld as appropriate.
5152 # This is done by determining whether or not the appropriate directory
5153 # is available, and by checking whether or not specific configurations
5154 # have requested that this magic not happen.
5156 # The command line options always override the explicit settings in
5157 # configure.in, and the settings in configure.in override this magic.
5159 # If the default for a toolchain is to use GNU as and ld, and you don't
5160 # want to do that, then you should use the --without-gnu-as and
5161 # --without-gnu-ld options for the configure script.
5163 if test x${use_gnu_as} = x &&
5164 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5166 extra_host_args="$extra_host_args --with-gnu-as"
5169 if test x${use_gnu_ld} = x &&
5170 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5172 extra_host_args="$extra_host_args --with-gnu-ld"
5175 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5176 # can detect this case.
5178 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5180 extra_host_args="$extra_host_args --with-newlib"
5183 # Handle ${copy_dirs}
5184 set fnord ${copy_dirs}
5186 while test $# != 0 ; do
5187 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5190 echo Copying $1 to $2
5192 # Use the install script to create the directory and all required
5193 # parent directories.
5194 if test -d $2 ; then
5198 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5201 # Copy the directory, assuming we have tar.
5202 # FIXME: Should we use B in the second tar? Not all systems support it.
5203 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5205 # It is the responsibility of the user to correctly adjust all
5206 # symlinks. If somebody can figure out how to handle them correctly
5207 # here, feel free to add the code.
5214 # Determine a target-dependent exec_prefix that the installed
5215 # gcc will search in. Keep this list sorted by triplet, with
5216 # the *-*-osname triplets last.
5220 md_exec_prefix=/gnu/lib/gcc-lib
5222 i[34567]86-pc-msdosdjgpp*)
5223 md_exec_prefix=/dev/env/DJDIR/bin
5225 i[34567]86-*-sco3.2v5*)
5226 if test $with_gnu_as = yes; then
5227 md_exec_prefix=/usr/gnu/bin
5229 md_exec_prefix=/usr/ccs/bin/elf
5234 powerpc-*-chorusos* | \
5235 powerpc*-*-eabi* | \
5236 powerpc*-*-sysv* | \
5237 powerpc*-*-kaos* | \
5239 md_exec_prefix=/usr/ccs/bin
5244 md_exec_prefix=/usr/ccs/bin
5259 md_exec_prefix=/usr/ccs/bin
5263 extra_arflags_for_target=
5264 extra_nmflags_for_target=
5265 extra_ranlibflags_for_target=
5266 target_makefile_frag=/dev/null
5269 target_makefile_frag="config/mt-mep"
5272 target_makefile_frag="config/mt-spu"
5275 target_makefile_frag="config/mt-sde"
5278 target_makefile_frag="config/mt-netware"
5280 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5281 target_makefile_frag="config/mt-gnu"
5283 *-*-aix4.[3456789]* | *-*-aix[56789].*)
5284 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
5285 # commands to handle both 32-bit and 64-bit objects. These flags are
5286 # harmless if we're using GNU nm or ar.
5287 extra_arflags_for_target=" -X32_64"
5288 extra_nmflags_for_target=" -B -X32_64"
5291 # ranlib from Darwin requires the -c flag to look at common symbols.
5292 extra_ranlibflags_for_target=" -c"
5294 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5295 target_makefile_frag="config/mt-wince"
5299 alphaieee_frag=/dev/null
5302 # This just makes sure to use the -mieee option to build target libs.
5303 # This should probably be set individually by each library.
5304 alphaieee_frag="config/mt-alphaieee"
5308 # If --enable-target-optspace always use -Os instead of -O2 to build
5309 # the target libraries, similarly if it is not specified, use -Os
5310 # on selected platforms.
5311 ospace_frag=/dev/null
5312 case "${enable_target_optspace}:${target}" in
5314 ospace_frag="config/mt-ospace"
5317 ospace_frag="config/mt-d30v"
5319 :m32r-* | :d10v-* | :fr30-*)
5320 ospace_frag="config/mt-ospace"
5325 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5329 # Default to using --with-stabs for certain targets.
5330 if test x${with_stabs} = x ; then
5334 mips*-*-* | alpha*-*-osf*)
5336 extra_host_args="${extra_host_args} --with-stabs"
5341 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5342 # them automatically.
5345 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5349 # Some systems (e.g., one of the i386-aix systems the gas testers are
5350 # using) don't handle "\$" correctly, so don't use it here.
5351 tooldir='${exec_prefix}'/${target_noncanonical}
5352 build_tooldir=${tooldir}
5354 # Create a .gdbinit file which runs the one in srcdir
5355 # and tells GDB to look there for source files.
5357 if test -r ${srcdir}/.gdbinit ; then
5360 *) cat > ./.gdbinit <<EOF
5364 source ${srcdir}/.gdbinit
5370 # Make sure that the compiler is able to generate an executable. If it
5371 # can't, we are probably in trouble. We don't care whether we can run the
5372 # executable--we might be using a cross compiler--we only care whether it
5373 # can be created. At this point the main configure script has set CC.
5375 echo "int main () { return 0; }" > conftest.c
5376 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5377 if test $? = 0 ; then
5378 if test -s conftest || test -s conftest.exe ; then
5384 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5385 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5392 # The Solaris /usr/ucb/cc compiler does not appear to work.
5394 sparc-sun-solaris2*)
5395 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5396 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5398 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5399 if test -d /opt/cygnus/bin ; then
5400 if test "$could_use" = "" ; then
5401 could_use="/opt/cygnus/bin"
5403 could_use="$could_use or /opt/cygnus/bin"
5406 if test "$could_use" = "" ; then
5407 echo "Warning: compilation may fail because you're using"
5408 echo "/usr/ucb/cc. You should change your PATH or CC "
5409 echo "variable and rerun configure."
5411 echo "Warning: compilation may fail because you're using"
5412 echo "/usr/ucb/cc, when you should use the C compiler from"
5413 echo "$could_use. You should change your"
5414 echo "PATH or CC variable and rerun configure."
5421 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
5422 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
5423 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5426 # Record target_configdirs and the configure arguments for target and
5427 # build configuration in Makefile.
5428 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
5429 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
5431 # Determine whether gdb needs tk/tcl or not.
5432 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5433 # and in that case we want gdb to be built without tk. Ugh!
5434 # In fact I believe gdb is the *only* package directly dependent on tk,
5435 # so we should be able to put the 'maybe's in unconditionally and
5436 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
5437 # 100% sure that that's safe though.
5439 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
5440 case "$enable_gdbtk" in
5444 GDB_TK="${gdb_tk}" ;;
5446 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5447 # distro. Eventually someone will fix this and move Insight, nee
5448 # gdbtk to a separate directory.
5449 if test -d ${srcdir}/gdb/gdbtk ; then
5456 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5457 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
5459 # Strip out unwanted targets.
5461 # While at that, we remove Makefiles if we were started for recursive
5462 # configuration, so that the top-level Makefile reconfigures them,
5463 # like we used to do when configure itself was recursive.
5465 # Loop over modules. $extrasub must be used with care, limiting as
5466 # much as possible the usage of range addresses. That's because autoconf
5467 # splits the sed script to overcome limits in the number of commands,
5468 # and relying on carefully-timed sed passes may turn out to be very hard
5469 # to maintain later. In this particular case, you just have to be careful
5470 # not to nest @if/@endif pairs, because configure will not warn you at all.
5472 # Check whether --enable-bootstrap or --disable-bootstrap was given.
5473 if test "${enable_bootstrap+set}" = set; then
5474 enableval="$enable_bootstrap"
5477 enable_bootstrap=default
5480 # Issue errors and warnings for invalid/strange bootstrap combinations.
5481 case "$configdirs" in
5482 *gcc*) have_compiler=yes ;;
5483 *) have_compiler=no ;;
5486 case "$have_compiler:$host:$target:$enable_bootstrap" in
5489 # Default behavior. Enable bootstrap if we have a compiler
5490 # and we are in a native configuration.
5491 yes:$build:$build:default)
5492 enable_bootstrap=yes ;;
5495 enable_bootstrap=no ;;
5497 # We have a compiler and we are in a native configuration, bootstrap is ok
5498 yes:$build:$build:yes)
5501 # Other configurations, but we have a compiler. Assume the user knows
5504 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5505 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5508 # No compiler: if they passed --enable-bootstrap explicitly, fail
5510 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5511 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5512 { (exit 1); exit 1; }; } ;;
5514 # Fail if wrong command line
5516 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5517 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5518 { (exit 1); exit 1; }; }
5522 # Adjust the toplevel makefile according to whether bootstrap was selected.
5523 case "$enable_bootstrap" in
5525 bootstrap_suffix=bootstrap ;;
5527 bootstrap_suffix=no-bootstrap ;;
5530 for module in ${build_configdirs} ; do
5531 if test -z "${no_recursion}" \
5532 && test -f ${build_subdir}/${module}/Makefile; then
5533 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5534 rm -f ${build_subdir}/${module}/Makefile
5537 /^@if build-$module\$/d
5538 /^@endif build-$module\$/d
5539 /^@if build-$module-$bootstrap_suffix\$/d
5540 /^@endif build-$module-$bootstrap_suffix\$/d"
5542 for module in ${configdirs} ; do
5543 if test -z "${no_recursion}"; then
5544 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
5545 if test -f ${file}; then
5546 echo 1>&2 "*** removing ${file} to force reconfigure"
5553 /^@endif $module\$/d
5554 /^@if $module-$bootstrap_suffix\$/d
5555 /^@endif $module-$bootstrap_suffix\$/d"
5557 for module in ${target_configdirs} ; do
5558 if test -z "${no_recursion}" \
5559 && test -f ${target_subdir}/${module}/Makefile; then
5560 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5561 rm -f ${target_subdir}/${module}/Makefile
5564 /^@if target-$module\$/d
5565 /^@endif target-$module\$/d
5566 /^@if target-$module-$bootstrap_suffix\$/d
5567 /^@endif target-$module-$bootstrap_suffix\$/d"
5571 /^@if /,/^@endif /d"
5573 # Create the serialization dependencies. This uses a temporary file.
5575 # Check whether --enable-serial-configure or --disable-serial-configure was given.
5576 if test "${enable_serial_configure+set}" = set; then
5577 enableval="$enable_serial_configure"
5581 case ${enable_serial_configure} in
5583 enable_serial_build_configure=yes
5584 enable_serial_host_configure=yes
5585 enable_serial_target_configure=yes
5589 # These force 'configure's to be done one at a time, to avoid problems
5590 # with contention over a shared config.cache.
5592 echo '# serdep.tmp' > serdep.tmp
5594 test "x${enable_serial_build_configure}" = xyes &&
5595 for item in ${build_configdirs} ; do
5598 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
5603 test "x${enable_serial_host_configure}" = xyes &&
5604 for item in ${configdirs} ; do
5607 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
5612 test "x${enable_serial_target_configure}" = xyes &&
5613 for item in ${target_configdirs} ; do
5616 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
5620 serialization_dependencies=serdep.tmp
5623 # Base args. Strip norecursion, cache-file, srcdir, host, build,
5624 # target, nonopt, and variable assignments. These are the ones we
5625 # might not want to pass down to subconfigures. Also strip
5626 # program-prefix, program-suffix, and program-transform-name, so that
5627 # we can pass down a consistent program-transform-name.
5631 eval "set -- $ac_configure_args"
5634 if test X"$skip_next" = X"yes"; then
5638 if test X"$keep_next" = X"yes"; then
5641 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5643 baseargs="$baseargs '$ac_arg'"
5648 # Handle separated arguments. Based on the logic generated by
5651 *=* | --config-cache | -C | -disable-* | --disable-* \
5652 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5653 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5654 | -with-* | --with-* | -without-* | --without-* | --x)
5680 -program-prefix* | \
5681 -program-suffix* | \
5682 -program-transform-name* )
5683 skip_next=$separate_arg
5687 # An option. Add it.
5690 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5692 baseargs="$baseargs '$ac_arg'"
5693 keep_next=$separate_arg
5696 # Either a variable assignment, or a nonopt (triplet). Don't
5697 # pass it down; let the Makefile handle this.
5702 # Remove the initial space we just introduced and, as these will be
5703 # expanded by make, quote '$'.
5704 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
5706 # Add in --program-transform-name, after --program-prefix and
5707 # --program-suffix have been applied to it. Autoconf has already
5708 # doubled dollar signs and backslashes in program_transform_name; we want
5709 # the backslashes un-doubled, and then the entire thing wrapped in single
5710 # quotes, because this will be expanded first by make and then by the shell.
5711 # Also, because we want to override the logic in subdir configure scripts to
5712 # choose program_transform_name, replace any s,x,x, with s,y,y,.
5713 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5714 ${program_transform_name}
5716 gcc_transform_name=`cat conftestsed.out`
5717 rm -f conftestsed.out
5718 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5719 if test "$silent" = yes; then
5720 baseargs="$baseargs --silent"
5723 # For the build-side libraries, we just need to pretend we're native,
5724 # and not use the same cache file. Multilibs are neither needed nor
5726 build_configargs="--cache-file=../config.cache ${baseargs}"
5728 # For host modules, accept cache file option, or specification as blank.
5729 case "${cache_file}" in
5731 cache_file_option="" ;;
5732 /* | [A-Za-z]:[\\/]* ) # absolute path
5733 cache_file_option="--cache-file=${cache_file}" ;;
5735 cache_file_option="--cache-file=../${cache_file}" ;;
5738 # Host dirs don't like to share a cache file either, horribly enough.
5739 # This seems to be due to autoconf 2.5x stupidity.
5740 host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
5742 target_configargs=${baseargs}
5744 # Passing a --with-cross-host argument lets the target libraries know
5745 # whether they are being built with a cross-compiler or being built
5746 # native. However, it would be better to use other mechanisms to make the
5747 # sorts of decisions they want to make on this basis. Please consider
5748 # this option to be deprecated. FIXME.
5749 if test x${is_cross_compiler} = xyes ; then
5750 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
5753 # Default to --enable-multilib.
5754 if test x${enable_multilib} = x ; then
5755 target_configargs="--enable-multilib ${target_configargs}"
5758 # Pass --with-newlib if appropriate. Note that target_configdirs has
5759 # changed from the earlier setting of with_newlib.
5760 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5761 target_configargs="--with-newlib ${target_configargs}"
5764 # Different target subdirs use different values of certain variables
5765 # (notably CXX). Worse, multilibs use *lots* of different values.
5766 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5767 # it doesn't automatically accept command-line overrides of them.
5768 # This means it's not safe for target subdirs to share a cache file,
5769 # which is disgusting, but there you have it. Hopefully this can be
5770 # fixed in future. It's still worthwhile to use a cache file for each
5771 # directory. I think.
5773 # Pass the appropriate --build, --host, --target and --cache-file arguments.
5774 # We need to pass --target, as newer autoconf's requires consistency
5775 # for target_alias and gcc doesn't manage it consistently.
5776 target_configargs="--cache-file=./config.cache ${target_configargs}"
5779 case " $target_configdirs " in
5781 case " $target_configargs " in
5782 *" --with-newlib "*)
5785 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' ;;
5788 # If we're not building GCC, don't discard standard headers.
5789 if test -d ${srcdir}/gcc; then
5790 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5792 if test "${build}" != "${host}"; then
5793 # On Canadian crosses, CC_FOR_TARGET will have already been set
5794 # by `configure', so we won't have an opportunity to add -Bgcc/
5795 # to it. This is right: we don't want to search that directory
5796 # for binaries, but we want the header files in there, so add
5798 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
5800 # Someone might think of using the pre-installed headers on
5801 # Canadian crosses, in case the installed compiler is not fully
5802 # compatible with the compiler being built. In this case, it
5803 # would be better to flag an error than risking having
5804 # incompatible object files being constructed. We can't
5805 # guarantee that an error will be flagged, but let's hope the
5806 # compiler will do it, when presented with incompatible header
5811 case "${target}-${is_cross_compiler}" in
5812 i[3456789]86-*-linux*-no)
5813 # Here host == target, so we don't need to build gcc,
5814 # so we don't want to discard standard headers.
5815 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5818 # If we're building newlib, use its generic headers last, but search
5819 # for any libc-related directories first (so make it the last -B
5821 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5823 # If we're building libgloss, find the startup file, simulator library
5824 # and linker script.
5825 case " $target_configdirs " in
5827 # Look for startup file, simulator library and maybe linker script.
5828 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5829 # Look for libnosys.a in case the target needs it.
5830 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5831 # Most targets have the linker script in the source directory.
5832 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5843 # Can't be handled as Cygwin above since Mingw does not use newlib.
5844 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' ;;
5847 # Allow the user to override the flags for
5848 # our build compiler if desired.
5849 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5851 # On Canadian crosses, we'll be searching the right directories for
5852 # the previously-installed cross compiler, so don't bother to add
5853 # flags for directories within the install tree of the compiler
5854 # being built; programs in there won't even run.
5855 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5856 # Search for pre-installed headers if nothing else fits.
5857 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
5860 if test "x${use_gnu_ld}" = x &&
5861 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5862 # Arrange for us to find uninstalled linker scripts.
5863 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
5866 # Search for other target-specific linker scripts and such.
5869 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5873 # Makefile fragments.
5874 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5876 eval fragval=\$$frag
5877 if test $fragval != /dev/null; then
5878 eval $frag=${srcdir}/$fragval
5886 # Miscellanea: directories, flags, etc.
5894 # Build module lists & subconfigure args.
5898 # Host module lists & subconfigure args.
5902 # Target module lists & subconfigure args.
5910 # Generate default definitions for YACC, M4, LEX and other programs that run
5911 # on the build machine. These are used if the Makefile can't locate these
5912 # programs in objdir.
5913 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5915 for ac_prog in 'bison -y' byacc yacc
5917 # Extract the first word of "$ac_prog", so it can be a program name with args.
5918 set dummy $ac_prog; ac_word=$2
5919 echo "$as_me:$LINENO: checking for $ac_word" >&5
5920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5921 if test "${ac_cv_prog_YACC+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5924 if test -n "$YACC"; then
5925 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5934 ac_cv_prog_YACC="$ac_prog"
5935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 YACC=$ac_cv_prog_YACC
5944 if test -n "$YACC"; then
5945 echo "$as_me:$LINENO: result: $YACC" >&5
5946 echo "${ECHO_T}$YACC" >&6
5948 echo "$as_me:$LINENO: result: no" >&5
5949 echo "${ECHO_T}no" >&6
5952 test -n "$YACC" && break
5954 test -n "$YACC" || YACC="$MISSING bison -y"
5956 case " $build_configdirs " in
5957 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5958 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5961 for ac_prog in bison
5963 # Extract the first word of "$ac_prog", so it can be a program name with args.
5964 set dummy $ac_prog; ac_word=$2
5965 echo "$as_me:$LINENO: checking for $ac_word" >&5
5966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5967 if test "${ac_cv_prog_BISON+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 if test -n "$BISON"; then
5971 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 test -z "$as_dir" && as_dir=.
5978 for ac_exec_ext in '' $ac_executable_extensions; do
5979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5980 ac_cv_prog_BISON="$ac_prog"
5981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 BISON=$ac_cv_prog_BISON
5990 if test -n "$BISON"; then
5991 echo "$as_me:$LINENO: result: $BISON" >&5
5992 echo "${ECHO_T}$BISON" >&6
5994 echo "$as_me:$LINENO: result: no" >&5
5995 echo "${ECHO_T}no" >&6
5998 test -n "$BISON" && break
6000 test -n "$BISON" || BISON="$MISSING bison"
6002 case " $build_configdirs " in
6003 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6006 for ac_prog in gm4 gnum4 m4
6008 # Extract the first word of "$ac_prog", so it can be a program name with args.
6009 set dummy $ac_prog; ac_word=$2
6010 echo "$as_me:$LINENO: checking for $ac_word" >&5
6011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6012 if test "${ac_cv_prog_M4+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 if test -n "$M4"; then
6016 ac_cv_prog_M4="$M4" # Let the user override the test.
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6025 ac_cv_prog_M4="$ac_prog"
6026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 if test -n "$M4"; then
6036 echo "$as_me:$LINENO: result: $M4" >&5
6037 echo "${ECHO_T}$M4" >&6
6039 echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6
6043 test -n "$M4" && break
6045 test -n "$M4" || M4="$MISSING m4"
6047 case " $build_configdirs " in
6048 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6051 for ac_prog in flex lex
6053 # Extract the first word of "$ac_prog", so it can be a program name with args.
6054 set dummy $ac_prog; ac_word=$2
6055 echo "$as_me:$LINENO: checking for $ac_word" >&5
6056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6057 if test "${ac_cv_prog_LEX+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 if test -n "$LEX"; then
6061 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6070 ac_cv_prog_LEX="$ac_prog"
6071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 if test -n "$LEX"; then
6081 echo "$as_me:$LINENO: result: $LEX" >&5
6082 echo "${ECHO_T}$LEX" >&6
6084 echo "$as_me:$LINENO: result: no" >&5
6085 echo "${ECHO_T}no" >&6
6088 test -n "$LEX" && break
6090 test -n "$LEX" || LEX="$MISSING flex"
6092 case " $build_configdirs " in
6093 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6094 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6099 # Extract the first word of "$ac_prog", so it can be a program name with args.
6100 set dummy $ac_prog; ac_word=$2
6101 echo "$as_me:$LINENO: checking for $ac_word" >&5
6102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6103 if test "${ac_cv_prog_FLEX+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 if test -n "$FLEX"; then
6107 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6116 ac_cv_prog_FLEX="$ac_prog"
6117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6125 FLEX=$ac_cv_prog_FLEX
6126 if test -n "$FLEX"; then
6127 echo "$as_me:$LINENO: result: $FLEX" >&5
6128 echo "${ECHO_T}$FLEX" >&6
6130 echo "$as_me:$LINENO: result: no" >&5
6131 echo "${ECHO_T}no" >&6
6134 test -n "$FLEX" && break
6136 test -n "$FLEX" || FLEX="$MISSING flex"
6138 case " $build_configdirs " in
6139 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6142 for ac_prog in makeinfo
6144 # Extract the first word of "$ac_prog", so it can be a program name with args.
6145 set dummy $ac_prog; ac_word=$2
6146 echo "$as_me:$LINENO: checking for $ac_word" >&5
6147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6148 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 if test -n "$MAKEINFO"; then
6152 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 test -z "$as_dir" && as_dir=.
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6161 ac_cv_prog_MAKEINFO="$ac_prog"
6162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 MAKEINFO=$ac_cv_prog_MAKEINFO
6171 if test -n "$MAKEINFO"; then
6172 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6173 echo "${ECHO_T}$MAKEINFO" >&6
6175 echo "$as_me:$LINENO: result: no" >&5
6176 echo "${ECHO_T}no" >&6
6179 test -n "$MAKEINFO" && break
6181 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6183 case " $build_configdirs " in
6184 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6187 # For an installed makeinfo, we require it to be from texinfo 4.4 or
6188 # higher, else we use the "missing" dummy.
6189 if ${MAKEINFO} --version \
6190 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
6193 MAKEINFO="$MISSING makeinfo"
6199 # FIXME: expect and dejagnu may become build tools?
6201 for ac_prog in expect
6203 # Extract the first word of "$ac_prog", so it can be a program name with args.
6204 set dummy $ac_prog; ac_word=$2
6205 echo "$as_me:$LINENO: checking for $ac_word" >&5
6206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6207 if test "${ac_cv_prog_EXPECT+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 if test -n "$EXPECT"; then
6211 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 test -z "$as_dir" && as_dir=.
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6220 ac_cv_prog_EXPECT="$ac_prog"
6221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 EXPECT=$ac_cv_prog_EXPECT
6230 if test -n "$EXPECT"; then
6231 echo "$as_me:$LINENO: result: $EXPECT" >&5
6232 echo "${ECHO_T}$EXPECT" >&6
6234 echo "$as_me:$LINENO: result: no" >&5
6235 echo "${ECHO_T}no" >&6
6238 test -n "$EXPECT" && break
6240 test -n "$EXPECT" || EXPECT="expect"
6242 case " $configdirs " in
6244 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6248 for ac_prog in runtest
6250 # Extract the first word of "$ac_prog", so it can be a program name with args.
6251 set dummy $ac_prog; ac_word=$2
6252 echo "$as_me:$LINENO: checking for $ac_word" >&5
6253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6254 if test "${ac_cv_prog_RUNTEST+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 if test -n "$RUNTEST"; then
6258 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6267 ac_cv_prog_RUNTEST="$ac_prog"
6268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 RUNTEST=$ac_cv_prog_RUNTEST
6277 if test -n "$RUNTEST"; then
6278 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6279 echo "${ECHO_T}$RUNTEST" >&6
6281 echo "$as_me:$LINENO: result: no" >&5
6282 echo "${ECHO_T}no" >&6
6285 test -n "$RUNTEST" && break
6287 test -n "$RUNTEST" || RUNTEST="runtest"
6289 case " $configdirs " in
6291 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
6298 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6299 ncn_target_tool_prefix=
6300 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6304 if test -n "$AR"; then
6306 elif test -n "$ac_cv_prog_AR"; then
6310 if test -n "$ac_cv_prog_AR"; then
6311 for ncn_progname in ar; do
6312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6313 set dummy ${ncn_progname}; ac_word=$2
6314 echo "$as_me:$LINENO: checking for $ac_word" >&5
6315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6316 if test "${ac_cv_prog_AR+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 if test -n "$AR"; then
6320 ac_cv_prog_AR="$AR" # Let the user override the test.
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6329 ac_cv_prog_AR="${ncn_progname}"
6330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 if test -n "$AR"; then
6340 echo "$as_me:$LINENO: result: $AR" >&5
6341 echo "${ECHO_T}$AR" >&6
6343 echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6
6350 for ncn_progname in ar; do
6351 if test -n "$ncn_tool_prefix"; then
6352 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6353 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6354 echo "$as_me:$LINENO: checking for $ac_word" >&5
6355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6356 if test "${ac_cv_prog_AR+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 if test -n "$AR"; then
6360 ac_cv_prog_AR="$AR" # Let the user override the test.
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6369 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6379 if test -n "$AR"; then
6380 echo "$as_me:$LINENO: result: $AR" >&5
6381 echo "${ECHO_T}$AR" >&6
6383 echo "$as_me:$LINENO: result: no" >&5
6384 echo "${ECHO_T}no" >&6
6388 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6390 set dummy ${ncn_progname}; ac_word=$2
6391 echo "$as_me:$LINENO: checking for $ac_word" >&5
6392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6393 if test "${ac_cv_prog_AR+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 if test -n "$AR"; then
6397 ac_cv_prog_AR="$AR" # Let the user override the test.
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6406 ac_cv_prog_AR="${ncn_progname}"
6407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 if test -n "$AR"; then
6417 echo "$as_me:$LINENO: result: $AR" >&5
6418 echo "${ECHO_T}$AR" >&6
6420 echo "$as_me:$LINENO: result: no" >&5
6421 echo "${ECHO_T}no" >&6
6425 test -n "$ac_cv_prog_AR" && break
6428 if test -z "$ac_cv_prog_AR" ; then
6430 if test $build = $host ; then
6433 AR="${ncn_tool_prefix}$2"
6439 if test -n "$AS"; then
6441 elif test -n "$ac_cv_prog_AS"; then
6445 if test -n "$ac_cv_prog_AS"; then
6446 for ncn_progname in as; do
6447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6448 set dummy ${ncn_progname}; ac_word=$2
6449 echo "$as_me:$LINENO: checking for $ac_word" >&5
6450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6451 if test "${ac_cv_prog_AS+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 if test -n "$AS"; then
6455 ac_cv_prog_AS="$AS" # Let the user override the test.
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6464 ac_cv_prog_AS="${ncn_progname}"
6465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 if test -n "$AS"; then
6475 echo "$as_me:$LINENO: result: $AS" >&5
6476 echo "${ECHO_T}$AS" >&6
6478 echo "$as_me:$LINENO: result: no" >&5
6479 echo "${ECHO_T}no" >&6
6485 for ncn_progname in as; do
6486 if test -n "$ncn_tool_prefix"; then
6487 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6488 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6489 echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6491 if test "${ac_cv_prog_AS+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 if test -n "$AS"; then
6495 ac_cv_prog_AS="$AS" # Let the user override the test.
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6504 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 if test -n "$AS"; then
6515 echo "$as_me:$LINENO: result: $AS" >&5
6516 echo "${ECHO_T}$AS" >&6
6518 echo "$as_me:$LINENO: result: no" >&5
6519 echo "${ECHO_T}no" >&6
6523 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6525 set dummy ${ncn_progname}; ac_word=$2
6526 echo "$as_me:$LINENO: checking for $ac_word" >&5
6527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6528 if test "${ac_cv_prog_AS+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 if test -n "$AS"; then
6532 ac_cv_prog_AS="$AS" # Let the user override the test.
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6541 ac_cv_prog_AS="${ncn_progname}"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6551 if test -n "$AS"; then
6552 echo "$as_me:$LINENO: result: $AS" >&5
6553 echo "${ECHO_T}$AS" >&6
6555 echo "$as_me:$LINENO: result: no" >&5
6556 echo "${ECHO_T}no" >&6
6560 test -n "$ac_cv_prog_AS" && break
6563 if test -z "$ac_cv_prog_AS" ; then
6565 if test $build = $host ; then
6568 AS="${ncn_tool_prefix}$2"
6574 if test -n "$DLLTOOL"; then
6575 ac_cv_prog_DLLTOOL=$DLLTOOL
6576 elif test -n "$ac_cv_prog_DLLTOOL"; then
6577 DLLTOOL=$ac_cv_prog_DLLTOOL
6580 if test -n "$ac_cv_prog_DLLTOOL"; then
6581 for ncn_progname in dlltool; do
6582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6583 set dummy ${ncn_progname}; ac_word=$2
6584 echo "$as_me:$LINENO: checking for $ac_word" >&5
6585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6586 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6589 if test -n "$DLLTOOL"; then
6590 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6599 ac_cv_prog_DLLTOOL="${ncn_progname}"
6600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 DLLTOOL=$ac_cv_prog_DLLTOOL
6609 if test -n "$DLLTOOL"; then
6610 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6611 echo "${ECHO_T}$DLLTOOL" >&6
6613 echo "$as_me:$LINENO: result: no" >&5
6614 echo "${ECHO_T}no" >&6
6620 for ncn_progname in dlltool; do
6621 if test -n "$ncn_tool_prefix"; then
6622 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6623 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6624 echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6626 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 if test -n "$DLLTOOL"; then
6630 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6639 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 DLLTOOL=$ac_cv_prog_DLLTOOL
6649 if test -n "$DLLTOOL"; then
6650 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6651 echo "${ECHO_T}$DLLTOOL" >&6
6653 echo "$as_me:$LINENO: result: no" >&5
6654 echo "${ECHO_T}no" >&6
6658 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6660 set dummy ${ncn_progname}; ac_word=$2
6661 echo "$as_me:$LINENO: checking for $ac_word" >&5
6662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6663 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 if test -n "$DLLTOOL"; then
6667 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 test -z "$as_dir" && as_dir=.
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6676 ac_cv_prog_DLLTOOL="${ncn_progname}"
6677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 DLLTOOL=$ac_cv_prog_DLLTOOL
6686 if test -n "$DLLTOOL"; then
6687 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6688 echo "${ECHO_T}$DLLTOOL" >&6
6690 echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6
6695 test -n "$ac_cv_prog_DLLTOOL" && break
6698 if test -z "$ac_cv_prog_DLLTOOL" ; then
6700 if test $build = $host ; then
6703 DLLTOOL="${ncn_tool_prefix}$2"
6709 if test -n "$LD"; then
6711 elif test -n "$ac_cv_prog_LD"; then
6715 if test -n "$ac_cv_prog_LD"; then
6716 for ncn_progname in ld; do
6717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6718 set dummy ${ncn_progname}; ac_word=$2
6719 echo "$as_me:$LINENO: checking for $ac_word" >&5
6720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6721 if test "${ac_cv_prog_LD+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 if test -n "$LD"; then
6725 ac_cv_prog_LD="$LD" # Let the user override the test.
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6734 ac_cv_prog_LD="${ncn_progname}"
6735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 if test -n "$LD"; then
6745 echo "$as_me:$LINENO: result: $LD" >&5
6746 echo "${ECHO_T}$LD" >&6
6748 echo "$as_me:$LINENO: result: no" >&5
6749 echo "${ECHO_T}no" >&6
6755 for ncn_progname in ld; do
6756 if test -n "$ncn_tool_prefix"; then
6757 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6758 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6759 echo "$as_me:$LINENO: checking for $ac_word" >&5
6760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6761 if test "${ac_cv_prog_LD+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 if test -n "$LD"; then
6765 ac_cv_prog_LD="$LD" # Let the user override the test.
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6774 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 if test -n "$LD"; then
6785 echo "$as_me:$LINENO: result: $LD" >&5
6786 echo "${ECHO_T}$LD" >&6
6788 echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6
6793 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6795 set dummy ${ncn_progname}; ac_word=$2
6796 echo "$as_me:$LINENO: checking for $ac_word" >&5
6797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6798 if test "${ac_cv_prog_LD+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 if test -n "$LD"; then
6802 ac_cv_prog_LD="$LD" # Let the user override the test.
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6811 ac_cv_prog_LD="${ncn_progname}"
6812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 if test -n "$LD"; then
6822 echo "$as_me:$LINENO: result: $LD" >&5
6823 echo "${ECHO_T}$LD" >&6
6825 echo "$as_me:$LINENO: result: no" >&5
6826 echo "${ECHO_T}no" >&6
6830 test -n "$ac_cv_prog_LD" && break
6833 if test -z "$ac_cv_prog_LD" ; then
6835 if test $build = $host ; then
6838 LD="${ncn_tool_prefix}$2"
6844 if test -n "$LIPO"; then
6845 ac_cv_prog_LIPO=$LIPO
6846 elif test -n "$ac_cv_prog_LIPO"; then
6847 LIPO=$ac_cv_prog_LIPO
6850 if test -n "$ac_cv_prog_LIPO"; then
6851 for ncn_progname in lipo; do
6852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6853 set dummy ${ncn_progname}; ac_word=$2
6854 echo "$as_me:$LINENO: checking for $ac_word" >&5
6855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6856 if test "${ac_cv_prog_LIPO+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 if test -n "$LIPO"; then
6860 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869 ac_cv_prog_LIPO="${ncn_progname}"
6870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 LIPO=$ac_cv_prog_LIPO
6879 if test -n "$LIPO"; then
6880 echo "$as_me:$LINENO: result: $LIPO" >&5
6881 echo "${ECHO_T}$LIPO" >&6
6883 echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6
6890 for ncn_progname in lipo; do
6891 if test -n "$ncn_tool_prefix"; then
6892 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6893 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6894 echo "$as_me:$LINENO: checking for $ac_word" >&5
6895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6896 if test "${ac_cv_prog_LIPO+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 if test -n "$LIPO"; then
6900 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 LIPO=$ac_cv_prog_LIPO
6919 if test -n "$LIPO"; then
6920 echo "$as_me:$LINENO: result: $LIPO" >&5
6921 echo "${ECHO_T}$LIPO" >&6
6923 echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6
6928 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6929 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6930 set dummy ${ncn_progname}; ac_word=$2
6931 echo "$as_me:$LINENO: checking for $ac_word" >&5
6932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6933 if test "${ac_cv_prog_LIPO+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6936 if test -n "$LIPO"; then
6937 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6946 ac_cv_prog_LIPO="${ncn_progname}"
6947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 LIPO=$ac_cv_prog_LIPO
6956 if test -n "$LIPO"; then
6957 echo "$as_me:$LINENO: result: $LIPO" >&5
6958 echo "${ECHO_T}$LIPO" >&6
6960 echo "$as_me:$LINENO: result: no" >&5
6961 echo "${ECHO_T}no" >&6
6965 test -n "$ac_cv_prog_LIPO" && break
6968 if test -z "$ac_cv_prog_LIPO" ; then
6970 if test $build = $host ; then
6973 LIPO="${ncn_tool_prefix}$2"
6979 if test -n "$NM"; then
6981 elif test -n "$ac_cv_prog_NM"; then
6985 if test -n "$ac_cv_prog_NM"; then
6986 for ncn_progname in nm; do
6987 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6988 set dummy ${ncn_progname}; ac_word=$2
6989 echo "$as_me:$LINENO: checking for $ac_word" >&5
6990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6991 if test "${ac_cv_prog_NM+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 if test -n "$NM"; then
6995 ac_cv_prog_NM="$NM" # Let the user override the test.
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7004 ac_cv_prog_NM="${ncn_progname}"
7005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 if test -n "$NM"; then
7015 echo "$as_me:$LINENO: result: $NM" >&5
7016 echo "${ECHO_T}$NM" >&6
7018 echo "$as_me:$LINENO: result: no" >&5
7019 echo "${ECHO_T}no" >&6
7025 for ncn_progname in nm; do
7026 if test -n "$ncn_tool_prefix"; then
7027 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7028 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7029 echo "$as_me:$LINENO: checking for $ac_word" >&5
7030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7031 if test "${ac_cv_prog_NM+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 if test -n "$NM"; then
7035 ac_cv_prog_NM="$NM" # Let the user override the test.
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7044 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
7045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 if test -n "$NM"; then
7055 echo "$as_me:$LINENO: result: $NM" >&5
7056 echo "${ECHO_T}$NM" >&6
7058 echo "$as_me:$LINENO: result: no" >&5
7059 echo "${ECHO_T}no" >&6
7063 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7065 set dummy ${ncn_progname}; ac_word=$2
7066 echo "$as_me:$LINENO: checking for $ac_word" >&5
7067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7068 if test "${ac_cv_prog_NM+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7071 if test -n "$NM"; then
7072 ac_cv_prog_NM="$NM" # Let the user override the test.
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081 ac_cv_prog_NM="${ncn_progname}"
7082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 if test -n "$NM"; then
7092 echo "$as_me:$LINENO: result: $NM" >&5
7093 echo "${ECHO_T}$NM" >&6
7095 echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6
7100 test -n "$ac_cv_prog_NM" && break
7103 if test -z "$ac_cv_prog_NM" ; then
7105 if test $build = $host ; then
7108 NM="${ncn_tool_prefix}$2"
7114 if test -n "$RANLIB"; then
7115 ac_cv_prog_RANLIB=$RANLIB
7116 elif test -n "$ac_cv_prog_RANLIB"; then
7117 RANLIB=$ac_cv_prog_RANLIB
7120 if test -n "$ac_cv_prog_RANLIB"; then
7121 for ncn_progname in ranlib; do
7122 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7123 set dummy ${ncn_progname}; ac_word=$2
7124 echo "$as_me:$LINENO: checking for $ac_word" >&5
7125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7126 if test "${ac_cv_prog_RANLIB+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 if test -n "$RANLIB"; then
7130 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7139 ac_cv_prog_RANLIB="${ncn_progname}"
7140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 RANLIB=$ac_cv_prog_RANLIB
7149 if test -n "$RANLIB"; then
7150 echo "$as_me:$LINENO: result: $RANLIB" >&5
7151 echo "${ECHO_T}$RANLIB" >&6
7153 echo "$as_me:$LINENO: result: no" >&5
7154 echo "${ECHO_T}no" >&6
7160 for ncn_progname in ranlib; do
7161 if test -n "$ncn_tool_prefix"; then
7162 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7163 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7164 echo "$as_me:$LINENO: checking for $ac_word" >&5
7165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7166 if test "${ac_cv_prog_RANLIB+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 if test -n "$RANLIB"; then
7170 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 RANLIB=$ac_cv_prog_RANLIB
7189 if test -n "$RANLIB"; then
7190 echo "$as_me:$LINENO: result: $RANLIB" >&5
7191 echo "${ECHO_T}$RANLIB" >&6
7193 echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6
7198 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7200 set dummy ${ncn_progname}; ac_word=$2
7201 echo "$as_me:$LINENO: checking for $ac_word" >&5
7202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7203 if test "${ac_cv_prog_RANLIB+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 if test -n "$RANLIB"; then
7207 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7216 ac_cv_prog_RANLIB="${ncn_progname}"
7217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 RANLIB=$ac_cv_prog_RANLIB
7226 if test -n "$RANLIB"; then
7227 echo "$as_me:$LINENO: result: $RANLIB" >&5
7228 echo "${ECHO_T}$RANLIB" >&6
7230 echo "$as_me:$LINENO: result: no" >&5
7231 echo "${ECHO_T}no" >&6
7235 test -n "$ac_cv_prog_RANLIB" && break
7238 if test -z "$ac_cv_prog_RANLIB" ; then
7244 if test -n "$STRIP"; then
7245 ac_cv_prog_STRIP=$STRIP
7246 elif test -n "$ac_cv_prog_STRIP"; then
7247 STRIP=$ac_cv_prog_STRIP
7250 if test -n "$ac_cv_prog_STRIP"; then
7251 for ncn_progname in strip; do
7252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7253 set dummy ${ncn_progname}; ac_word=$2
7254 echo "$as_me:$LINENO: checking for $ac_word" >&5
7255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7256 if test "${ac_cv_prog_STRIP+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 if test -n "$STRIP"; then
7260 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269 ac_cv_prog_STRIP="${ncn_progname}"
7270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7278 STRIP=$ac_cv_prog_STRIP
7279 if test -n "$STRIP"; then
7280 echo "$as_me:$LINENO: result: $STRIP" >&5
7281 echo "${ECHO_T}$STRIP" >&6
7283 echo "$as_me:$LINENO: result: no" >&5
7284 echo "${ECHO_T}no" >&6
7290 for ncn_progname in strip; do
7291 if test -n "$ncn_tool_prefix"; then
7292 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7293 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7294 echo "$as_me:$LINENO: checking for $ac_word" >&5
7295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7296 if test "${ac_cv_prog_STRIP+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 if test -n "$STRIP"; then
7300 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7309 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 STRIP=$ac_cv_prog_STRIP
7319 if test -n "$STRIP"; then
7320 echo "$as_me:$LINENO: result: $STRIP" >&5
7321 echo "${ECHO_T}$STRIP" >&6
7323 echo "$as_me:$LINENO: result: no" >&5
7324 echo "${ECHO_T}no" >&6
7328 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7330 set dummy ${ncn_progname}; ac_word=$2
7331 echo "$as_me:$LINENO: checking for $ac_word" >&5
7332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7333 if test "${ac_cv_prog_STRIP+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 if test -n "$STRIP"; then
7337 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 test -z "$as_dir" && as_dir=.
7344 for ac_exec_ext in '' $ac_executable_extensions; do
7345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7346 ac_cv_prog_STRIP="${ncn_progname}"
7347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 STRIP=$ac_cv_prog_STRIP
7356 if test -n "$STRIP"; then
7357 echo "$as_me:$LINENO: result: $STRIP" >&5
7358 echo "${ECHO_T}$STRIP" >&6
7360 echo "$as_me:$LINENO: result: no" >&5
7361 echo "${ECHO_T}no" >&6
7365 test -n "$ac_cv_prog_STRIP" && break
7368 if test -z "$ac_cv_prog_STRIP" ; then
7374 if test -n "$WINDRES"; then
7375 ac_cv_prog_WINDRES=$WINDRES
7376 elif test -n "$ac_cv_prog_WINDRES"; then
7377 WINDRES=$ac_cv_prog_WINDRES
7380 if test -n "$ac_cv_prog_WINDRES"; then
7381 for ncn_progname in windres; do
7382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7383 set dummy ${ncn_progname}; ac_word=$2
7384 echo "$as_me:$LINENO: checking for $ac_word" >&5
7385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7386 if test "${ac_cv_prog_WINDRES+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 if test -n "$WINDRES"; then
7390 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7399 ac_cv_prog_WINDRES="${ncn_progname}"
7400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 WINDRES=$ac_cv_prog_WINDRES
7409 if test -n "$WINDRES"; then
7410 echo "$as_me:$LINENO: result: $WINDRES" >&5
7411 echo "${ECHO_T}$WINDRES" >&6
7413 echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6
7420 for ncn_progname in windres; do
7421 if test -n "$ncn_tool_prefix"; then
7422 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7423 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7424 echo "$as_me:$LINENO: checking for $ac_word" >&5
7425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7426 if test "${ac_cv_prog_WINDRES+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 if test -n "$WINDRES"; then
7430 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 test -z "$as_dir" && as_dir=.
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7439 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 WINDRES=$ac_cv_prog_WINDRES
7449 if test -n "$WINDRES"; then
7450 echo "$as_me:$LINENO: result: $WINDRES" >&5
7451 echo "${ECHO_T}$WINDRES" >&6
7453 echo "$as_me:$LINENO: result: no" >&5
7454 echo "${ECHO_T}no" >&6
7458 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7459 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7460 set dummy ${ncn_progname}; ac_word=$2
7461 echo "$as_me:$LINENO: checking for $ac_word" >&5
7462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7463 if test "${ac_cv_prog_WINDRES+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 if test -n "$WINDRES"; then
7467 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7476 ac_cv_prog_WINDRES="${ncn_progname}"
7477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 WINDRES=$ac_cv_prog_WINDRES
7486 if test -n "$WINDRES"; then
7487 echo "$as_me:$LINENO: result: $WINDRES" >&5
7488 echo "${ECHO_T}$WINDRES" >&6
7490 echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6
7495 test -n "$ac_cv_prog_WINDRES" && break
7498 if test -z "$ac_cv_prog_WINDRES" ; then
7500 if test $build = $host ; then
7503 WINDRES="${ncn_tool_prefix}$2"
7509 if test -n "$WINDMC"; then
7510 ac_cv_prog_WINDMC=$WINDMC
7511 elif test -n "$ac_cv_prog_WINDMC"; then
7512 WINDMC=$ac_cv_prog_WINDMC
7515 if test -n "$ac_cv_prog_WINDMC"; then
7516 for ncn_progname in windmc; do
7517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7518 set dummy ${ncn_progname}; ac_word=$2
7519 echo "$as_me:$LINENO: checking for $ac_word" >&5
7520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7521 if test "${ac_cv_prog_WINDMC+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 if test -n "$WINDMC"; then
7525 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531 test -z "$as_dir" && as_dir=.
7532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7534 ac_cv_prog_WINDMC="${ncn_progname}"
7535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 WINDMC=$ac_cv_prog_WINDMC
7544 if test -n "$WINDMC"; then
7545 echo "$as_me:$LINENO: result: $WINDMC" >&5
7546 echo "${ECHO_T}$WINDMC" >&6
7548 echo "$as_me:$LINENO: result: no" >&5
7549 echo "${ECHO_T}no" >&6
7555 for ncn_progname in windmc; do
7556 if test -n "$ncn_tool_prefix"; then
7557 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7558 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7559 echo "$as_me:$LINENO: checking for $ac_word" >&5
7560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7561 if test "${ac_cv_prog_WINDMC+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7564 if test -n "$WINDMC"; then
7565 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571 test -z "$as_dir" && as_dir=.
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7574 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7583 WINDMC=$ac_cv_prog_WINDMC
7584 if test -n "$WINDMC"; then
7585 echo "$as_me:$LINENO: result: $WINDMC" >&5
7586 echo "${ECHO_T}$WINDMC" >&6
7588 echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6
7593 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7595 set dummy ${ncn_progname}; ac_word=$2
7596 echo "$as_me:$LINENO: checking for $ac_word" >&5
7597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7598 if test "${ac_cv_prog_WINDMC+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 if test -n "$WINDMC"; then
7602 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7611 ac_cv_prog_WINDMC="${ncn_progname}"
7612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 WINDMC=$ac_cv_prog_WINDMC
7621 if test -n "$WINDMC"; then
7622 echo "$as_me:$LINENO: result: $WINDMC" >&5
7623 echo "${ECHO_T}$WINDMC" >&6
7625 echo "$as_me:$LINENO: result: no" >&5
7626 echo "${ECHO_T}no" >&6
7630 test -n "$ac_cv_prog_WINDMC" && break
7633 if test -z "$ac_cv_prog_WINDMC" ; then
7635 if test $build = $host ; then
7638 WINDMC="${ncn_tool_prefix}$2"
7644 if test -n "$OBJCOPY"; then
7645 ac_cv_prog_OBJCOPY=$OBJCOPY
7646 elif test -n "$ac_cv_prog_OBJCOPY"; then
7647 OBJCOPY=$ac_cv_prog_OBJCOPY
7650 if test -n "$ac_cv_prog_OBJCOPY"; then
7651 for ncn_progname in objcopy; do
7652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7653 set dummy ${ncn_progname}; ac_word=$2
7654 echo "$as_me:$LINENO: checking for $ac_word" >&5
7655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7656 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7657 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 if test -n "$OBJCOPY"; then
7660 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 test -z "$as_dir" && as_dir=.
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7669 ac_cv_prog_OBJCOPY="${ncn_progname}"
7670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 OBJCOPY=$ac_cv_prog_OBJCOPY
7679 if test -n "$OBJCOPY"; then
7680 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7681 echo "${ECHO_T}$OBJCOPY" >&6
7683 echo "$as_me:$LINENO: result: no" >&5
7684 echo "${ECHO_T}no" >&6
7690 for ncn_progname in objcopy; do
7691 if test -n "$ncn_tool_prefix"; then
7692 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7693 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7694 echo "$as_me:$LINENO: checking for $ac_word" >&5
7695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7696 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 if test -n "$OBJCOPY"; then
7700 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 test -z "$as_dir" && as_dir=.
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7709 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7718 OBJCOPY=$ac_cv_prog_OBJCOPY
7719 if test -n "$OBJCOPY"; then
7720 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7721 echo "${ECHO_T}$OBJCOPY" >&6
7723 echo "$as_me:$LINENO: result: no" >&5
7724 echo "${ECHO_T}no" >&6
7728 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7730 set dummy ${ncn_progname}; ac_word=$2
7731 echo "$as_me:$LINENO: checking for $ac_word" >&5
7732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7733 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7736 if test -n "$OBJCOPY"; then
7737 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7746 ac_cv_prog_OBJCOPY="${ncn_progname}"
7747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 OBJCOPY=$ac_cv_prog_OBJCOPY
7756 if test -n "$OBJCOPY"; then
7757 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7758 echo "${ECHO_T}$OBJCOPY" >&6
7760 echo "$as_me:$LINENO: result: no" >&5
7761 echo "${ECHO_T}no" >&6
7765 test -n "$ac_cv_prog_OBJCOPY" && break
7768 if test -z "$ac_cv_prog_OBJCOPY" ; then
7770 if test $build = $host ; then
7773 OBJCOPY="${ncn_tool_prefix}$2"
7779 if test -n "$OBJDUMP"; then
7780 ac_cv_prog_OBJDUMP=$OBJDUMP
7781 elif test -n "$ac_cv_prog_OBJDUMP"; then
7782 OBJDUMP=$ac_cv_prog_OBJDUMP
7785 if test -n "$ac_cv_prog_OBJDUMP"; then
7786 for ncn_progname in objdump; do
7787 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7788 set dummy ${ncn_progname}; ac_word=$2
7789 echo "$as_me:$LINENO: checking for $ac_word" >&5
7790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7791 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7794 if test -n "$OBJDUMP"; then
7795 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 test -z "$as_dir" && as_dir=.
7802 for ac_exec_ext in '' $ac_executable_extensions; do
7803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7804 ac_cv_prog_OBJDUMP="${ncn_progname}"
7805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 OBJDUMP=$ac_cv_prog_OBJDUMP
7814 if test -n "$OBJDUMP"; then
7815 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7816 echo "${ECHO_T}$OBJDUMP" >&6
7818 echo "$as_me:$LINENO: result: no" >&5
7819 echo "${ECHO_T}no" >&6
7825 for ncn_progname in objdump; do
7826 if test -n "$ncn_tool_prefix"; then
7827 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7828 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7829 echo "$as_me:$LINENO: checking for $ac_word" >&5
7830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7831 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7834 if test -n "$OBJDUMP"; then
7835 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841 test -z "$as_dir" && as_dir=.
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7844 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 OBJDUMP=$ac_cv_prog_OBJDUMP
7854 if test -n "$OBJDUMP"; then
7855 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7856 echo "${ECHO_T}$OBJDUMP" >&6
7858 echo "$as_me:$LINENO: result: no" >&5
7859 echo "${ECHO_T}no" >&6
7863 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7865 set dummy ${ncn_progname}; ac_word=$2
7866 echo "$as_me:$LINENO: checking for $ac_word" >&5
7867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7868 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7871 if test -n "$OBJDUMP"; then
7872 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 test -z "$as_dir" && as_dir=.
7879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7881 ac_cv_prog_OBJDUMP="${ncn_progname}"
7882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7890 OBJDUMP=$ac_cv_prog_OBJDUMP
7891 if test -n "$OBJDUMP"; then
7892 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7893 echo "${ECHO_T}$OBJDUMP" >&6
7895 echo "$as_me:$LINENO: result: no" >&5
7896 echo "${ECHO_T}no" >&6
7900 test -n "$ac_cv_prog_OBJDUMP" && break
7903 if test -z "$ac_cv_prog_OBJDUMP" ; then
7905 if test $build = $host ; then
7908 OBJDUMP="${ncn_tool_prefix}$2"
7920 # Check whether --with-build-time-tools or --without-build-time-tools was given.
7921 if test "${with_build_time_tools+set}" = set; then
7922 withval="$with_build_time_tools"
7926 with_build_time_tools=
7927 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7928 echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
7932 with_build_time_tools=
7937 if test -n "$CC_FOR_TARGET"; then
7938 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7939 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7940 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7943 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7944 for ncn_progname in cc gcc; do
7945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7946 set dummy ${ncn_progname}; ac_word=$2
7947 echo "$as_me:$LINENO: checking for $ac_word" >&5
7948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7949 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 if test -n "$CC_FOR_TARGET"; then
7953 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7962 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7972 if test -n "$CC_FOR_TARGET"; then
7973 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7974 echo "${ECHO_T}$CC_FOR_TARGET" >&6
7976 echo "$as_me:$LINENO: result: no" >&5
7977 echo "${ECHO_T}no" >&6
7983 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
7984 for ncn_progname in cc gcc; do
7985 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7986 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7987 if test -x $with_build_time_tools/${ncn_progname}; then
7988 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7989 echo "$as_me:$LINENO: result: yes" >&5
7990 echo "${ECHO_T}yes" >&6
7993 echo "$as_me:$LINENO: result: no" >&5
7994 echo "${ECHO_T}no" >&6
7999 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8000 for ncn_progname in cc gcc; do
8001 if test -n "$ncn_target_tool_prefix"; then
8002 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8003 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8004 echo "$as_me:$LINENO: checking for $ac_word" >&5
8005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8006 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 if test -n "$CC_FOR_TARGET"; then
8010 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8016 test -z "$as_dir" && as_dir=.
8017 for ac_exec_ext in '' $ac_executable_extensions; do
8018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8019 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8028 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8029 if test -n "$CC_FOR_TARGET"; then
8030 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8031 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8033 echo "$as_me:$LINENO: result: no" >&5
8034 echo "${ECHO_T}no" >&6
8038 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8040 set dummy ${ncn_progname}; ac_word=$2
8041 echo "$as_me:$LINENO: checking for $ac_word" >&5
8042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8043 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8046 if test -n "$CC_FOR_TARGET"; then
8047 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8053 test -z "$as_dir" && as_dir=.
8054 for ac_exec_ext in '' $ac_executable_extensions; do
8055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8056 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8065 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8066 if test -n "$CC_FOR_TARGET"; then
8067 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8068 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8070 echo "$as_me:$LINENO: result: no" >&5
8071 echo "${ECHO_T}no" >&6
8075 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8079 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8081 if test $build = $target ; then
8084 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
8087 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
8092 if test -n "$CXX_FOR_TARGET"; then
8093 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8094 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8095 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8098 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8099 for ncn_progname in c++ g++ cxx gxx; do
8100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8101 set dummy ${ncn_progname}; ac_word=$2
8102 echo "$as_me:$LINENO: checking for $ac_word" >&5
8103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8104 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 if test -n "$CXX_FOR_TARGET"; then
8108 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114 test -z "$as_dir" && as_dir=.
8115 for ac_exec_ext in '' $ac_executable_extensions; do
8116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8117 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8126 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8127 if test -n "$CXX_FOR_TARGET"; then
8128 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8129 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8131 echo "$as_me:$LINENO: result: no" >&5
8132 echo "${ECHO_T}no" >&6
8138 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
8139 for ncn_progname in c++ g++ cxx gxx; do
8140 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8141 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8142 if test -x $with_build_time_tools/${ncn_progname}; then
8143 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8144 echo "$as_me:$LINENO: result: yes" >&5
8145 echo "${ECHO_T}yes" >&6
8148 echo "$as_me:$LINENO: result: no" >&5
8149 echo "${ECHO_T}no" >&6
8154 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8155 for ncn_progname in c++ g++ cxx gxx; do
8156 if test -n "$ncn_target_tool_prefix"; then
8157 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8158 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8159 echo "$as_me:$LINENO: checking for $ac_word" >&5
8160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8161 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8164 if test -n "$CXX_FOR_TARGET"; then
8165 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8174 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8183 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8184 if test -n "$CXX_FOR_TARGET"; then
8185 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8186 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8188 echo "$as_me:$LINENO: result: no" >&5
8189 echo "${ECHO_T}no" >&6
8193 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8195 set dummy ${ncn_progname}; ac_word=$2
8196 echo "$as_me:$LINENO: checking for $ac_word" >&5
8197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8198 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8201 if test -n "$CXX_FOR_TARGET"; then
8202 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208 test -z "$as_dir" && as_dir=.
8209 for ac_exec_ext in '' $ac_executable_extensions; do
8210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8211 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8220 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8221 if test -n "$CXX_FOR_TARGET"; then
8222 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8223 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8225 echo "$as_me:$LINENO: result: no" >&5
8226 echo "${ECHO_T}no" >&6
8230 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8234 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8235 set dummy c++ g++ cxx gxx
8236 if test $build = $target ; then
8239 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
8242 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
8247 if test -n "$GCC_FOR_TARGET"; then
8248 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8249 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8250 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8253 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8254 for ncn_progname in gcc; do
8255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8256 set dummy ${ncn_progname}; ac_word=$2
8257 echo "$as_me:$LINENO: checking for $ac_word" >&5
8258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8259 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 if test -n "$GCC_FOR_TARGET"; then
8263 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269 test -z "$as_dir" && as_dir=.
8270 for ac_exec_ext in '' $ac_executable_extensions; do
8271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8272 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8281 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8282 if test -n "$GCC_FOR_TARGET"; then
8283 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8284 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8286 echo "$as_me:$LINENO: result: no" >&5
8287 echo "${ECHO_T}no" >&6
8293 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8294 for ncn_progname in gcc; do
8295 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8296 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8297 if test -x $with_build_time_tools/${ncn_progname}; then
8298 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8299 echo "$as_me:$LINENO: result: yes" >&5
8300 echo "${ECHO_T}yes" >&6
8303 echo "$as_me:$LINENO: result: no" >&5
8304 echo "${ECHO_T}no" >&6
8309 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8310 for ncn_progname in gcc; do
8311 if test -n "$ncn_target_tool_prefix"; then
8312 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8313 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8314 echo "$as_me:$LINENO: checking for $ac_word" >&5
8315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8316 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 if test -n "$GCC_FOR_TARGET"; then
8320 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 test -z "$as_dir" && as_dir=.
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8329 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8338 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8339 if test -n "$GCC_FOR_TARGET"; then
8340 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8341 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8343 echo "$as_me:$LINENO: result: no" >&5
8344 echo "${ECHO_T}no" >&6
8348 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8350 set dummy ${ncn_progname}; ac_word=$2
8351 echo "$as_me:$LINENO: checking for $ac_word" >&5
8352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8353 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8356 if test -n "$GCC_FOR_TARGET"; then
8357 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363 test -z "$as_dir" && as_dir=.
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8366 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8375 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8376 if test -n "$GCC_FOR_TARGET"; then
8377 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8378 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8380 echo "$as_me:$LINENO: result: no" >&5
8381 echo "${ECHO_T}no" >&6
8385 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8389 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8390 GCC_FOR_TARGET="${CC_FOR_TARGET}"
8392 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
8397 if test -n "$GCJ_FOR_TARGET"; then
8398 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8399 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8400 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8403 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8404 for ncn_progname in gcj; do
8405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8406 set dummy ${ncn_progname}; ac_word=$2
8407 echo "$as_me:$LINENO: checking for $ac_word" >&5
8408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8409 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 if test -n "$GCJ_FOR_TARGET"; then
8413 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8422 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8431 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8432 if test -n "$GCJ_FOR_TARGET"; then
8433 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8434 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8436 echo "$as_me:$LINENO: result: no" >&5
8437 echo "${ECHO_T}no" >&6
8443 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
8444 for ncn_progname in gcj; do
8445 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8446 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8447 if test -x $with_build_time_tools/${ncn_progname}; then
8448 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8449 echo "$as_me:$LINENO: result: yes" >&5
8450 echo "${ECHO_T}yes" >&6
8453 echo "$as_me:$LINENO: result: no" >&5
8454 echo "${ECHO_T}no" >&6
8459 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8460 for ncn_progname in gcj; do
8461 if test -n "$ncn_target_tool_prefix"; then
8462 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8463 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8464 echo "$as_me:$LINENO: checking for $ac_word" >&5
8465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8466 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8469 if test -n "$GCJ_FOR_TARGET"; then
8470 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476 test -z "$as_dir" && as_dir=.
8477 for ac_exec_ext in '' $ac_executable_extensions; do
8478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8479 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8488 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8489 if test -n "$GCJ_FOR_TARGET"; then
8490 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8491 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8493 echo "$as_me:$LINENO: result: no" >&5
8494 echo "${ECHO_T}no" >&6
8498 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8500 set dummy ${ncn_progname}; ac_word=$2
8501 echo "$as_me:$LINENO: checking for $ac_word" >&5
8502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8503 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8504 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 if test -n "$GCJ_FOR_TARGET"; then
8507 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513 test -z "$as_dir" && as_dir=.
8514 for ac_exec_ext in '' $ac_executable_extensions; do
8515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8516 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8525 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8526 if test -n "$GCJ_FOR_TARGET"; then
8527 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8528 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8530 echo "$as_me:$LINENO: result: no" >&5
8531 echo "${ECHO_T}no" >&6
8535 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8539 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8541 if test $build = $target ; then
8544 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8547 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
8552 if test -n "$GFORTRAN_FOR_TARGET"; then
8553 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8554 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8555 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8558 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8559 for ncn_progname in gfortran; do
8560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8561 set dummy ${ncn_progname}; ac_word=$2
8562 echo "$as_me:$LINENO: checking for $ac_word" >&5
8563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8564 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8567 if test -n "$GFORTRAN_FOR_TARGET"; then
8568 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8574 test -z "$as_dir" && as_dir=.
8575 for ac_exec_ext in '' $ac_executable_extensions; do
8576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8577 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8586 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8587 if test -n "$GFORTRAN_FOR_TARGET"; then
8588 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8589 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8591 echo "$as_me:$LINENO: result: no" >&5
8592 echo "${ECHO_T}no" >&6
8598 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
8599 for ncn_progname in gfortran; do
8600 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8601 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8602 if test -x $with_build_time_tools/${ncn_progname}; then
8603 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8604 echo "$as_me:$LINENO: result: yes" >&5
8605 echo "${ECHO_T}yes" >&6
8608 echo "$as_me:$LINENO: result: no" >&5
8609 echo "${ECHO_T}no" >&6
8614 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8615 for ncn_progname in gfortran; do
8616 if test -n "$ncn_target_tool_prefix"; then
8617 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8618 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8619 echo "$as_me:$LINENO: checking for $ac_word" >&5
8620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8621 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8624 if test -n "$GFORTRAN_FOR_TARGET"; then
8625 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631 test -z "$as_dir" && as_dir=.
8632 for ac_exec_ext in '' $ac_executable_extensions; do
8633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8634 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8643 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8644 if test -n "$GFORTRAN_FOR_TARGET"; then
8645 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8646 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8648 echo "$as_me:$LINENO: result: no" >&5
8649 echo "${ECHO_T}no" >&6
8653 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8655 set dummy ${ncn_progname}; ac_word=$2
8656 echo "$as_me:$LINENO: checking for $ac_word" >&5
8657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8658 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8661 if test -n "$GFORTRAN_FOR_TARGET"; then
8662 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668 test -z "$as_dir" && as_dir=.
8669 for ac_exec_ext in '' $ac_executable_extensions; do
8670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8671 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8680 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8681 if test -n "$GFORTRAN_FOR_TARGET"; then
8682 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8683 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8685 echo "$as_me:$LINENO: result: no" >&5
8686 echo "${ECHO_T}no" >&6
8690 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8694 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8696 if test $build = $target ; then
8697 GFORTRAN_FOR_TARGET="$2"
8699 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8702 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
8707 cat > conftest.c << \EOF
8712 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8713 have_gcc_for_target=yes
8715 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8716 have_gcc_for_target=no
8723 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8724 if test -n "$with_build_time_tools"; then
8725 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8726 echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
8727 if test -x $with_build_time_tools/ar; then
8728 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8729 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
8730 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8731 echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
8733 echo "$as_me:$LINENO: result: no" >&5
8734 echo "${ECHO_T}no" >&6
8736 elif test $build != $host && test $have_gcc_for_target = yes; then
8737 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
8738 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8739 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
8742 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8743 # Extract the first word of "ar", so it can be a program name with args.
8744 set dummy ar; ac_word=$2
8745 echo "$as_me:$LINENO: checking for $ac_word" >&5
8746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8747 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
8750 case $AR_FOR_TARGET in
8752 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8756 for as_dir in $gcc_cv_tool_dirs
8759 test -z "$as_dir" && as_dir=.
8760 for ac_exec_ext in '' $ac_executable_extensions; do
8761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8762 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8772 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8774 if test -n "$AR_FOR_TARGET"; then
8775 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8776 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8778 echo "$as_me:$LINENO: result: no" >&5
8779 echo "${ECHO_T}no" >&6
8783 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8786 if test -n "$AR_FOR_TARGET"; then
8787 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8788 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8789 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8792 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8793 for ncn_progname in ar; do
8794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8795 set dummy ${ncn_progname}; ac_word=$2
8796 echo "$as_me:$LINENO: checking for $ac_word" >&5
8797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8798 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8801 if test -n "$AR_FOR_TARGET"; then
8802 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808 test -z "$as_dir" && as_dir=.
8809 for ac_exec_ext in '' $ac_executable_extensions; do
8810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8811 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8820 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8821 if test -n "$AR_FOR_TARGET"; then
8822 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8823 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8825 echo "$as_me:$LINENO: result: no" >&5
8826 echo "${ECHO_T}no" >&6
8832 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
8833 for ncn_progname in ar; do
8834 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8835 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8836 if test -x $with_build_time_tools/${ncn_progname}; then
8837 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8838 echo "$as_me:$LINENO: result: yes" >&5
8839 echo "${ECHO_T}yes" >&6
8842 echo "$as_me:$LINENO: result: no" >&5
8843 echo "${ECHO_T}no" >&6
8848 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8849 for ncn_progname in ar; do
8850 if test -n "$ncn_target_tool_prefix"; then
8851 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8852 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8853 echo "$as_me:$LINENO: checking for $ac_word" >&5
8854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8855 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8858 if test -n "$AR_FOR_TARGET"; then
8859 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8865 test -z "$as_dir" && as_dir=.
8866 for ac_exec_ext in '' $ac_executable_extensions; do
8867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8868 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8877 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8878 if test -n "$AR_FOR_TARGET"; then
8879 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8880 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8882 echo "$as_me:$LINENO: result: no" >&5
8883 echo "${ECHO_T}no" >&6
8887 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8888 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8889 set dummy ${ncn_progname}; ac_word=$2
8890 echo "$as_me:$LINENO: checking for $ac_word" >&5
8891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8892 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 if test -n "$AR_FOR_TARGET"; then
8896 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8902 test -z "$as_dir" && as_dir=.
8903 for ac_exec_ext in '' $ac_executable_extensions; do
8904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8905 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8914 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8915 if test -n "$AR_FOR_TARGET"; then
8916 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8917 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8919 echo "$as_me:$LINENO: result: no" >&5
8920 echo "${ECHO_T}no" >&6
8924 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8928 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8930 if test $build = $target ; then
8933 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
8936 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
8940 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8946 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8947 if test -n "$with_build_time_tools"; then
8948 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8949 echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
8950 if test -x $with_build_time_tools/as; then
8951 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8952 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
8953 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8954 echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
8956 echo "$as_me:$LINENO: result: no" >&5
8957 echo "${ECHO_T}no" >&6
8959 elif test $build != $host && test $have_gcc_for_target = yes; then
8960 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
8961 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
8962 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
8965 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8966 # Extract the first word of "as", so it can be a program name with args.
8967 set dummy as; ac_word=$2
8968 echo "$as_me:$LINENO: checking for $ac_word" >&5
8969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8970 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
8973 case $AS_FOR_TARGET in
8975 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979 for as_dir in $gcc_cv_tool_dirs
8982 test -z "$as_dir" && as_dir=.
8983 for ac_exec_ext in '' $ac_executable_extensions; do
8984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8985 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8995 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
8997 if test -n "$AS_FOR_TARGET"; then
8998 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8999 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9001 echo "$as_me:$LINENO: result: no" >&5
9002 echo "${ECHO_T}no" >&6
9006 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9009 if test -n "$AS_FOR_TARGET"; then
9010 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9011 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9012 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9015 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9016 for ncn_progname in as; do
9017 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9018 set dummy ${ncn_progname}; ac_word=$2
9019 echo "$as_me:$LINENO: checking for $ac_word" >&5
9020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9021 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 if test -n "$AS_FOR_TARGET"; then
9025 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9031 test -z "$as_dir" && as_dir=.
9032 for ac_exec_ext in '' $ac_executable_extensions; do
9033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9034 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9043 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9044 if test -n "$AS_FOR_TARGET"; then
9045 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9046 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9048 echo "$as_me:$LINENO: result: no" >&5
9049 echo "${ECHO_T}no" >&6
9055 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
9056 for ncn_progname in as; do
9057 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9058 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9059 if test -x $with_build_time_tools/${ncn_progname}; then
9060 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9061 echo "$as_me:$LINENO: result: yes" >&5
9062 echo "${ECHO_T}yes" >&6
9065 echo "$as_me:$LINENO: result: no" >&5
9066 echo "${ECHO_T}no" >&6
9071 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9072 for ncn_progname in as; do
9073 if test -n "$ncn_target_tool_prefix"; then
9074 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9075 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9076 echo "$as_me:$LINENO: checking for $ac_word" >&5
9077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9078 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9079 echo $ECHO_N "(cached) $ECHO_C" >&6
9081 if test -n "$AS_FOR_TARGET"; then
9082 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9088 test -z "$as_dir" && as_dir=.
9089 for ac_exec_ext in '' $ac_executable_extensions; do
9090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9091 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9100 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9101 if test -n "$AS_FOR_TARGET"; then
9102 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9103 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9105 echo "$as_me:$LINENO: result: no" >&5
9106 echo "${ECHO_T}no" >&6
9110 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9112 set dummy ${ncn_progname}; ac_word=$2
9113 echo "$as_me:$LINENO: checking for $ac_word" >&5
9114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9115 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 if test -n "$AS_FOR_TARGET"; then
9119 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9125 test -z "$as_dir" && as_dir=.
9126 for ac_exec_ext in '' $ac_executable_extensions; do
9127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9128 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9137 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9138 if test -n "$AS_FOR_TARGET"; then
9139 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9140 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9142 echo "$as_me:$LINENO: result: no" >&5
9143 echo "${ECHO_T}no" >&6
9147 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9151 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9153 if test $build = $target ; then
9156 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9159 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
9163 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9169 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9170 if test -n "$with_build_time_tools"; then
9171 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9172 echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
9173 if test -x $with_build_time_tools/dlltool; then
9174 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9175 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9176 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9177 echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
9179 echo "$as_me:$LINENO: result: no" >&5
9180 echo "${ECHO_T}no" >&6
9182 elif test $build != $host && test $have_gcc_for_target = yes; then
9183 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
9184 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9185 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9188 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9189 # Extract the first word of "dlltool", so it can be a program name with args.
9190 set dummy dlltool; ac_word=$2
9191 echo "$as_me:$LINENO: checking for $ac_word" >&5
9192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9193 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 case $DLLTOOL_FOR_TARGET in
9198 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9202 for as_dir in $gcc_cv_tool_dirs
9205 test -z "$as_dir" && as_dir=.
9206 for ac_exec_ext in '' $ac_executable_extensions; do
9207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9208 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9218 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9220 if test -n "$DLLTOOL_FOR_TARGET"; then
9221 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9222 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9224 echo "$as_me:$LINENO: result: no" >&5
9225 echo "${ECHO_T}no" >&6
9229 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9232 if test -n "$DLLTOOL_FOR_TARGET"; then
9233 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9234 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9235 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9238 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9239 for ncn_progname in dlltool; do
9240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9241 set dummy ${ncn_progname}; ac_word=$2
9242 echo "$as_me:$LINENO: checking for $ac_word" >&5
9243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9244 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
9247 if test -n "$DLLTOOL_FOR_TARGET"; then
9248 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9254 test -z "$as_dir" && as_dir=.
9255 for ac_exec_ext in '' $ac_executable_extensions; do
9256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9257 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9266 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9267 if test -n "$DLLTOOL_FOR_TARGET"; then
9268 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9269 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9271 echo "$as_me:$LINENO: result: no" >&5
9272 echo "${ECHO_T}no" >&6
9278 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
9279 for ncn_progname in dlltool; do
9280 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9281 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9282 if test -x $with_build_time_tools/${ncn_progname}; then
9283 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9284 echo "$as_me:$LINENO: result: yes" >&5
9285 echo "${ECHO_T}yes" >&6
9288 echo "$as_me:$LINENO: result: no" >&5
9289 echo "${ECHO_T}no" >&6
9294 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9295 for ncn_progname in dlltool; do
9296 if test -n "$ncn_target_tool_prefix"; then
9297 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9298 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9299 echo "$as_me:$LINENO: checking for $ac_word" >&5
9300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9301 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9302 echo $ECHO_N "(cached) $ECHO_C" >&6
9304 if test -n "$DLLTOOL_FOR_TARGET"; then
9305 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9311 test -z "$as_dir" && as_dir=.
9312 for ac_exec_ext in '' $ac_executable_extensions; do
9313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9314 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9323 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9324 if test -n "$DLLTOOL_FOR_TARGET"; then
9325 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9326 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9328 echo "$as_me:$LINENO: result: no" >&5
9329 echo "${ECHO_T}no" >&6
9333 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9334 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9335 set dummy ${ncn_progname}; ac_word=$2
9336 echo "$as_me:$LINENO: checking for $ac_word" >&5
9337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9338 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
9341 if test -n "$DLLTOOL_FOR_TARGET"; then
9342 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9348 test -z "$as_dir" && as_dir=.
9349 for ac_exec_ext in '' $ac_executable_extensions; do
9350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9351 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9360 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9361 if test -n "$DLLTOOL_FOR_TARGET"; then
9362 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9363 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9365 echo "$as_me:$LINENO: result: no" >&5
9366 echo "${ECHO_T}no" >&6
9370 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9374 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9376 if test $build = $target ; then
9377 DLLTOOL_FOR_TARGET="$2"
9379 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9382 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
9386 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9392 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9393 if test -n "$with_build_time_tools"; then
9394 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9395 echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
9396 if test -x $with_build_time_tools/ld; then
9397 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9398 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9399 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9400 echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
9402 echo "$as_me:$LINENO: result: no" >&5
9403 echo "${ECHO_T}no" >&6
9405 elif test $build != $host && test $have_gcc_for_target = yes; then
9406 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
9407 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9408 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9411 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9412 # Extract the first word of "ld", so it can be a program name with args.
9413 set dummy ld; ac_word=$2
9414 echo "$as_me:$LINENO: checking for $ac_word" >&5
9415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9416 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 case $LD_FOR_TARGET in
9421 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9425 for as_dir in $gcc_cv_tool_dirs
9428 test -z "$as_dir" && as_dir=.
9429 for ac_exec_ext in '' $ac_executable_extensions; do
9430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9431 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9443 if test -n "$LD_FOR_TARGET"; then
9444 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9445 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9447 echo "$as_me:$LINENO: result: no" >&5
9448 echo "${ECHO_T}no" >&6
9452 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9455 if test -n "$LD_FOR_TARGET"; then
9456 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9457 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9458 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9461 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9462 for ncn_progname in ld; do
9463 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9464 set dummy ${ncn_progname}; ac_word=$2
9465 echo "$as_me:$LINENO: checking for $ac_word" >&5
9466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9467 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
9470 if test -n "$LD_FOR_TARGET"; then
9471 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9477 test -z "$as_dir" && as_dir=.
9478 for ac_exec_ext in '' $ac_executable_extensions; do
9479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9480 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9489 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9490 if test -n "$LD_FOR_TARGET"; then
9491 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9492 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9494 echo "$as_me:$LINENO: result: no" >&5
9495 echo "${ECHO_T}no" >&6
9501 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
9502 for ncn_progname in ld; do
9503 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9504 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9505 if test -x $with_build_time_tools/${ncn_progname}; then
9506 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9507 echo "$as_me:$LINENO: result: yes" >&5
9508 echo "${ECHO_T}yes" >&6
9511 echo "$as_me:$LINENO: result: no" >&5
9512 echo "${ECHO_T}no" >&6
9517 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9518 for ncn_progname in ld; do
9519 if test -n "$ncn_target_tool_prefix"; then
9520 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9521 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9522 echo "$as_me:$LINENO: checking for $ac_word" >&5
9523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9524 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9525 echo $ECHO_N "(cached) $ECHO_C" >&6
9527 if test -n "$LD_FOR_TARGET"; then
9528 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534 test -z "$as_dir" && as_dir=.
9535 for ac_exec_ext in '' $ac_executable_extensions; do
9536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9537 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9546 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9547 if test -n "$LD_FOR_TARGET"; then
9548 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9549 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9551 echo "$as_me:$LINENO: result: no" >&5
9552 echo "${ECHO_T}no" >&6
9556 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9558 set dummy ${ncn_progname}; ac_word=$2
9559 echo "$as_me:$LINENO: checking for $ac_word" >&5
9560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9561 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 if test -n "$LD_FOR_TARGET"; then
9565 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9571 test -z "$as_dir" && as_dir=.
9572 for ac_exec_ext in '' $ac_executable_extensions; do
9573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9574 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9583 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9584 if test -n "$LD_FOR_TARGET"; then
9585 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9586 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9588 echo "$as_me:$LINENO: result: no" >&5
9589 echo "${ECHO_T}no" >&6
9593 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9597 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9599 if test $build = $target ; then
9602 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9605 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
9609 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9615 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9616 if test -n "$with_build_time_tools"; then
9617 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9618 echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
9619 if test -x $with_build_time_tools/lipo; then
9620 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9621 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9622 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9623 echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
9625 echo "$as_me:$LINENO: result: no" >&5
9626 echo "${ECHO_T}no" >&6
9628 elif test $build != $host && test $have_gcc_for_target = yes; then
9629 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
9630 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9631 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9634 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9635 # Extract the first word of "lipo", so it can be a program name with args.
9636 set dummy lipo; ac_word=$2
9637 echo "$as_me:$LINENO: checking for $ac_word" >&5
9638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9639 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 case $LIPO_FOR_TARGET in
9644 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648 for as_dir in $gcc_cv_tool_dirs
9651 test -z "$as_dir" && as_dir=.
9652 for ac_exec_ext in '' $ac_executable_extensions; do
9653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9654 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9664 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9666 if test -n "$LIPO_FOR_TARGET"; then
9667 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9668 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9670 echo "$as_me:$LINENO: result: no" >&5
9671 echo "${ECHO_T}no" >&6
9675 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9678 if test -n "$LIPO_FOR_TARGET"; then
9679 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9680 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9681 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9684 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9685 for ncn_progname in lipo; do
9686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9687 set dummy ${ncn_progname}; ac_word=$2
9688 echo "$as_me:$LINENO: checking for $ac_word" >&5
9689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9690 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 if test -n "$LIPO_FOR_TARGET"; then
9694 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700 test -z "$as_dir" && as_dir=.
9701 for ac_exec_ext in '' $ac_executable_extensions; do
9702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9703 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9712 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9713 if test -n "$LIPO_FOR_TARGET"; then
9714 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9715 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9717 echo "$as_me:$LINENO: result: no" >&5
9718 echo "${ECHO_T}no" >&6
9724 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
9725 for ncn_progname in lipo; do
9726 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9727 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9728 if test -x $with_build_time_tools/${ncn_progname}; then
9729 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9730 echo "$as_me:$LINENO: result: yes" >&5
9731 echo "${ECHO_T}yes" >&6
9734 echo "$as_me:$LINENO: result: no" >&5
9735 echo "${ECHO_T}no" >&6
9740 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9741 for ncn_progname in lipo; do
9742 if test -n "$ncn_target_tool_prefix"; then
9743 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9744 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9745 echo "$as_me:$LINENO: checking for $ac_word" >&5
9746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9747 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9750 if test -n "$LIPO_FOR_TARGET"; then
9751 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9757 test -z "$as_dir" && as_dir=.
9758 for ac_exec_ext in '' $ac_executable_extensions; do
9759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9760 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9769 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9770 if test -n "$LIPO_FOR_TARGET"; then
9771 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9772 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9774 echo "$as_me:$LINENO: result: no" >&5
9775 echo "${ECHO_T}no" >&6
9779 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9781 set dummy ${ncn_progname}; ac_word=$2
9782 echo "$as_me:$LINENO: checking for $ac_word" >&5
9783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9784 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 if test -n "$LIPO_FOR_TARGET"; then
9788 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9794 test -z "$as_dir" && as_dir=.
9795 for ac_exec_ext in '' $ac_executable_extensions; do
9796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9797 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9806 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9807 if test -n "$LIPO_FOR_TARGET"; then
9808 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9809 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9811 echo "$as_me:$LINENO: result: no" >&5
9812 echo "${ECHO_T}no" >&6
9816 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9820 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9822 if test $build = $target ; then
9823 LIPO_FOR_TARGET="$2"
9825 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9828 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
9832 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9838 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9839 if test -n "$with_build_time_tools"; then
9840 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9841 echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
9842 if test -x $with_build_time_tools/nm; then
9843 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9844 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
9845 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9846 echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
9848 echo "$as_me:$LINENO: result: no" >&5
9849 echo "${ECHO_T}no" >&6
9851 elif test $build != $host && test $have_gcc_for_target = yes; then
9852 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
9853 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9854 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
9857 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9858 # Extract the first word of "nm", so it can be a program name with args.
9859 set dummy nm; ac_word=$2
9860 echo "$as_me:$LINENO: checking for $ac_word" >&5
9861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9862 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 case $NM_FOR_TARGET in
9867 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 for as_dir in $gcc_cv_tool_dirs
9874 test -z "$as_dir" && as_dir=.
9875 for ac_exec_ext in '' $ac_executable_extensions; do
9876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9877 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9887 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9889 if test -n "$NM_FOR_TARGET"; then
9890 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9891 echo "${ECHO_T}$NM_FOR_TARGET" >&6
9893 echo "$as_me:$LINENO: result: no" >&5
9894 echo "${ECHO_T}no" >&6
9898 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9901 if test -n "$NM_FOR_TARGET"; then
9902 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9903 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9904 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9907 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9908 for ncn_progname in nm; do
9909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9910 set dummy ${ncn_progname}; ac_word=$2
9911 echo "$as_me:$LINENO: checking for $ac_word" >&5
9912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9913 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 if test -n "$NM_FOR_TARGET"; then
9917 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9923 test -z "$as_dir" && as_dir=.
9924 for ac_exec_ext in '' $ac_executable_extensions; do
9925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9926 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9935 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9936 if test -n "$NM_FOR_TARGET"; then
9937 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9938 echo "${ECHO_T}$NM_FOR_TARGET" >&6
9940 echo "$as_me:$LINENO: result: no" >&5
9941 echo "${ECHO_T}no" >&6
9947 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
9948 for ncn_progname in nm; do
9949 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9950 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9951 if test -x $with_build_time_tools/${ncn_progname}; then
9952 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9953 echo "$as_me:$LINENO: result: yes" >&5
9954 echo "${ECHO_T}yes" >&6
9957 echo "$as_me:$LINENO: result: no" >&5
9958 echo "${ECHO_T}no" >&6
9963 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9964 for ncn_progname in nm; do
9965 if test -n "$ncn_target_tool_prefix"; then
9966 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9967 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9968 echo "$as_me:$LINENO: checking for $ac_word" >&5
9969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9970 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9971 echo $ECHO_N "(cached) $ECHO_C" >&6
9973 if test -n "$NM_FOR_TARGET"; then
9974 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9980 test -z "$as_dir" && as_dir=.
9981 for ac_exec_ext in '' $ac_executable_extensions; do
9982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9983 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9992 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9993 if test -n "$NM_FOR_TARGET"; then
9994 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9995 echo "${ECHO_T}$NM_FOR_TARGET" >&6
9997 echo "$as_me:$LINENO: result: no" >&5
9998 echo "${ECHO_T}no" >&6
10002 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10004 set dummy ${ncn_progname}; ac_word=$2
10005 echo "$as_me:$LINENO: checking for $ac_word" >&5
10006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10007 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 if test -n "$NM_FOR_TARGET"; then
10011 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10014 for as_dir in $PATH
10017 test -z "$as_dir" && as_dir=.
10018 for ac_exec_ext in '' $ac_executable_extensions; do
10019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10020 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10029 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10030 if test -n "$NM_FOR_TARGET"; then
10031 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10032 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10034 echo "$as_me:$LINENO: result: no" >&5
10035 echo "${ECHO_T}no" >&6
10039 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10043 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10045 if test $build = $target ; then
10048 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
10051 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
10055 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10061 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10062 if test -n "$with_build_time_tools"; then
10063 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10064 echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
10065 if test -x $with_build_time_tools/objdump; then
10066 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10067 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10068 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10069 echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
10071 echo "$as_me:$LINENO: result: no" >&5
10072 echo "${ECHO_T}no" >&6
10074 elif test $build != $host && test $have_gcc_for_target = yes; then
10075 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
10076 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10077 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10080 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10081 # Extract the first word of "objdump", so it can be a program name with args.
10082 set dummy objdump; ac_word=$2
10083 echo "$as_me:$LINENO: checking for $ac_word" >&5
10084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10085 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10088 case $OBJDUMP_FOR_TARGET in
10090 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10094 for as_dir in $gcc_cv_tool_dirs
10097 test -z "$as_dir" && as_dir=.
10098 for ac_exec_ext in '' $ac_executable_extensions; do
10099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10100 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10110 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10112 if test -n "$OBJDUMP_FOR_TARGET"; then
10113 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10114 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10116 echo "$as_me:$LINENO: result: no" >&5
10117 echo "${ECHO_T}no" >&6
10121 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10124 if test -n "$OBJDUMP_FOR_TARGET"; then
10125 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10126 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10127 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10130 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10131 for ncn_progname in objdump; do
10132 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10133 set dummy ${ncn_progname}; ac_word=$2
10134 echo "$as_me:$LINENO: checking for $ac_word" >&5
10135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10136 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
10139 if test -n "$OBJDUMP_FOR_TARGET"; then
10140 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10143 for as_dir in $PATH
10146 test -z "$as_dir" && as_dir=.
10147 for ac_exec_ext in '' $ac_executable_extensions; do
10148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10149 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10158 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10159 if test -n "$OBJDUMP_FOR_TARGET"; then
10160 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10161 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10163 echo "$as_me:$LINENO: result: no" >&5
10164 echo "${ECHO_T}no" >&6
10170 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10171 for ncn_progname in objdump; do
10172 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10173 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10174 if test -x $with_build_time_tools/${ncn_progname}; then
10175 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10176 echo "$as_me:$LINENO: result: yes" >&5
10177 echo "${ECHO_T}yes" >&6
10180 echo "$as_me:$LINENO: result: no" >&5
10181 echo "${ECHO_T}no" >&6
10186 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10187 for ncn_progname in objdump; do
10188 if test -n "$ncn_target_tool_prefix"; then
10189 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10190 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10191 echo "$as_me:$LINENO: checking for $ac_word" >&5
10192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10193 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10196 if test -n "$OBJDUMP_FOR_TARGET"; then
10197 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200 for as_dir in $PATH
10203 test -z "$as_dir" && as_dir=.
10204 for ac_exec_ext in '' $ac_executable_extensions; do
10205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10206 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10215 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10216 if test -n "$OBJDUMP_FOR_TARGET"; then
10217 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10218 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10220 echo "$as_me:$LINENO: result: no" >&5
10221 echo "${ECHO_T}no" >&6
10225 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10227 set dummy ${ncn_progname}; ac_word=$2
10228 echo "$as_me:$LINENO: checking for $ac_word" >&5
10229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10230 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10233 if test -n "$OBJDUMP_FOR_TARGET"; then
10234 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10237 for as_dir in $PATH
10240 test -z "$as_dir" && as_dir=.
10241 for ac_exec_ext in '' $ac_executable_extensions; do
10242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10243 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10252 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10253 if test -n "$OBJDUMP_FOR_TARGET"; then
10254 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10255 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10257 echo "$as_me:$LINENO: result: no" >&5
10258 echo "${ECHO_T}no" >&6
10262 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10266 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10268 if test $build = $target ; then
10269 OBJDUMP_FOR_TARGET="$2"
10271 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10274 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
10278 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10284 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10285 if test -n "$with_build_time_tools"; then
10286 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10287 echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
10288 if test -x $with_build_time_tools/ranlib; then
10289 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10290 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10291 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10292 echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
10294 echo "$as_me:$LINENO: result: no" >&5
10295 echo "${ECHO_T}no" >&6
10297 elif test $build != $host && test $have_gcc_for_target = yes; then
10298 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
10299 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10300 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10303 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10304 # Extract the first word of "ranlib", so it can be a program name with args.
10305 set dummy ranlib; ac_word=$2
10306 echo "$as_me:$LINENO: checking for $ac_word" >&5
10307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10308 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 case $RANLIB_FOR_TARGET in
10313 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10317 for as_dir in $gcc_cv_tool_dirs
10320 test -z "$as_dir" && as_dir=.
10321 for ac_exec_ext in '' $ac_executable_extensions; do
10322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10323 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10333 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10335 if test -n "$RANLIB_FOR_TARGET"; then
10336 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10337 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10339 echo "$as_me:$LINENO: result: no" >&5
10340 echo "${ECHO_T}no" >&6
10344 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10347 if test -n "$RANLIB_FOR_TARGET"; then
10348 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10349 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10350 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10353 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10354 for ncn_progname in ranlib; do
10355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10356 set dummy ${ncn_progname}; ac_word=$2
10357 echo "$as_me:$LINENO: checking for $ac_word" >&5
10358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10359 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 if test -n "$RANLIB_FOR_TARGET"; then
10363 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366 for as_dir in $PATH
10369 test -z "$as_dir" && as_dir=.
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10372 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10381 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10382 if test -n "$RANLIB_FOR_TARGET"; then
10383 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10384 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10386 echo "$as_me:$LINENO: result: no" >&5
10387 echo "${ECHO_T}no" >&6
10393 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
10394 for ncn_progname in ranlib; do
10395 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10396 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10397 if test -x $with_build_time_tools/${ncn_progname}; then
10398 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10399 echo "$as_me:$LINENO: result: yes" >&5
10400 echo "${ECHO_T}yes" >&6
10403 echo "$as_me:$LINENO: result: no" >&5
10404 echo "${ECHO_T}no" >&6
10409 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10410 for ncn_progname in ranlib; do
10411 if test -n "$ncn_target_tool_prefix"; then
10412 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10413 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10414 echo "$as_me:$LINENO: checking for $ac_word" >&5
10415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10416 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 if test -n "$RANLIB_FOR_TARGET"; then
10420 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423 for as_dir in $PATH
10426 test -z "$as_dir" && as_dir=.
10427 for ac_exec_ext in '' $ac_executable_extensions; do
10428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10429 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10438 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10439 if test -n "$RANLIB_FOR_TARGET"; then
10440 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10441 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10443 echo "$as_me:$LINENO: result: no" >&5
10444 echo "${ECHO_T}no" >&6
10448 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10450 set dummy ${ncn_progname}; ac_word=$2
10451 echo "$as_me:$LINENO: checking for $ac_word" >&5
10452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10453 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10456 if test -n "$RANLIB_FOR_TARGET"; then
10457 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10460 for as_dir in $PATH
10463 test -z "$as_dir" && as_dir=.
10464 for ac_exec_ext in '' $ac_executable_extensions; do
10465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10466 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10475 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10476 if test -n "$RANLIB_FOR_TARGET"; then
10477 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10478 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10480 echo "$as_me:$LINENO: result: no" >&5
10481 echo "${ECHO_T}no" >&6
10485 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10489 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10491 if test $build = $target ; then
10492 RANLIB_FOR_TARGET="$2"
10494 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
10497 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
10501 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10507 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10508 if test -n "$with_build_time_tools"; then
10509 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10510 echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
10511 if test -x $with_build_time_tools/strip; then
10512 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10513 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10514 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10515 echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
10517 echo "$as_me:$LINENO: result: no" >&5
10518 echo "${ECHO_T}no" >&6
10520 elif test $build != $host && test $have_gcc_for_target = yes; then
10521 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
10522 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10523 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10526 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10527 # Extract the first word of "strip", so it can be a program name with args.
10528 set dummy strip; ac_word=$2
10529 echo "$as_me:$LINENO: checking for $ac_word" >&5
10530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10531 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10532 echo $ECHO_N "(cached) $ECHO_C" >&6
10534 case $STRIP_FOR_TARGET in
10536 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540 for as_dir in $gcc_cv_tool_dirs
10543 test -z "$as_dir" && as_dir=.
10544 for ac_exec_ext in '' $ac_executable_extensions; do
10545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10546 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10556 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10558 if test -n "$STRIP_FOR_TARGET"; then
10559 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10560 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10562 echo "$as_me:$LINENO: result: no" >&5
10563 echo "${ECHO_T}no" >&6
10567 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10570 if test -n "$STRIP_FOR_TARGET"; then
10571 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10572 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10573 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10576 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10577 for ncn_progname in strip; do
10578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10579 set dummy ${ncn_progname}; ac_word=$2
10580 echo "$as_me:$LINENO: checking for $ac_word" >&5
10581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10582 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10583 echo $ECHO_N "(cached) $ECHO_C" >&6
10585 if test -n "$STRIP_FOR_TARGET"; then
10586 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10589 for as_dir in $PATH
10592 test -z "$as_dir" && as_dir=.
10593 for ac_exec_ext in '' $ac_executable_extensions; do
10594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10595 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10604 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10605 if test -n "$STRIP_FOR_TARGET"; then
10606 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10607 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10609 echo "$as_me:$LINENO: result: no" >&5
10610 echo "${ECHO_T}no" >&6
10616 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10617 for ncn_progname in strip; do
10618 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10619 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10620 if test -x $with_build_time_tools/${ncn_progname}; then
10621 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10622 echo "$as_me:$LINENO: result: yes" >&5
10623 echo "${ECHO_T}yes" >&6
10626 echo "$as_me:$LINENO: result: no" >&5
10627 echo "${ECHO_T}no" >&6
10632 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10633 for ncn_progname in strip; do
10634 if test -n "$ncn_target_tool_prefix"; then
10635 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10636 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10637 echo "$as_me:$LINENO: checking for $ac_word" >&5
10638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10639 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10642 if test -n "$STRIP_FOR_TARGET"; then
10643 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10646 for as_dir in $PATH
10649 test -z "$as_dir" && as_dir=.
10650 for ac_exec_ext in '' $ac_executable_extensions; do
10651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10652 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10661 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10662 if test -n "$STRIP_FOR_TARGET"; then
10663 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10664 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10666 echo "$as_me:$LINENO: result: no" >&5
10667 echo "${ECHO_T}no" >&6
10671 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10672 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10673 set dummy ${ncn_progname}; ac_word=$2
10674 echo "$as_me:$LINENO: checking for $ac_word" >&5
10675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10676 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10679 if test -n "$STRIP_FOR_TARGET"; then
10680 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10683 for as_dir in $PATH
10686 test -z "$as_dir" && as_dir=.
10687 for ac_exec_ext in '' $ac_executable_extensions; do
10688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10689 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10698 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10699 if test -n "$STRIP_FOR_TARGET"; then
10700 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10701 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10703 echo "$as_me:$LINENO: result: no" >&5
10704 echo "${ECHO_T}no" >&6
10708 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10712 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10714 if test $build = $target ; then
10715 STRIP_FOR_TARGET="$2"
10717 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10720 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
10724 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10730 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10731 if test -n "$with_build_time_tools"; then
10732 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10733 echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
10734 if test -x $with_build_time_tools/windres; then
10735 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10736 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10737 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10738 echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
10740 echo "$as_me:$LINENO: result: no" >&5
10741 echo "${ECHO_T}no" >&6
10743 elif test $build != $host && test $have_gcc_for_target = yes; then
10744 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
10745 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10746 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10749 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10750 # Extract the first word of "windres", so it can be a program name with args.
10751 set dummy windres; ac_word=$2
10752 echo "$as_me:$LINENO: checking for $ac_word" >&5
10753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10754 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 case $WINDRES_FOR_TARGET in
10759 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10763 for as_dir in $gcc_cv_tool_dirs
10766 test -z "$as_dir" && as_dir=.
10767 for ac_exec_ext in '' $ac_executable_extensions; do
10768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10769 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10779 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10781 if test -n "$WINDRES_FOR_TARGET"; then
10782 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10783 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10785 echo "$as_me:$LINENO: result: no" >&5
10786 echo "${ECHO_T}no" >&6
10790 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10793 if test -n "$WINDRES_FOR_TARGET"; then
10794 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10795 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10796 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10799 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10800 for ncn_progname in windres; do
10801 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10802 set dummy ${ncn_progname}; ac_word=$2
10803 echo "$as_me:$LINENO: checking for $ac_word" >&5
10804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10805 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 if test -n "$WINDRES_FOR_TARGET"; then
10809 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10812 for as_dir in $PATH
10815 test -z "$as_dir" && as_dir=.
10816 for ac_exec_ext in '' $ac_executable_extensions; do
10817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10818 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10827 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10828 if test -n "$WINDRES_FOR_TARGET"; then
10829 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10830 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10832 echo "$as_me:$LINENO: result: no" >&5
10833 echo "${ECHO_T}no" >&6
10839 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
10840 for ncn_progname in windres; do
10841 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10842 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10843 if test -x $with_build_time_tools/${ncn_progname}; then
10844 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10845 echo "$as_me:$LINENO: result: yes" >&5
10846 echo "${ECHO_T}yes" >&6
10849 echo "$as_me:$LINENO: result: no" >&5
10850 echo "${ECHO_T}no" >&6
10855 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10856 for ncn_progname in windres; do
10857 if test -n "$ncn_target_tool_prefix"; then
10858 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10859 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10860 echo "$as_me:$LINENO: checking for $ac_word" >&5
10861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10862 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
10865 if test -n "$WINDRES_FOR_TARGET"; then
10866 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869 for as_dir in $PATH
10872 test -z "$as_dir" && as_dir=.
10873 for ac_exec_ext in '' $ac_executable_extensions; do
10874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10875 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10884 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10885 if test -n "$WINDRES_FOR_TARGET"; then
10886 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10887 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10889 echo "$as_me:$LINENO: result: no" >&5
10890 echo "${ECHO_T}no" >&6
10894 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10896 set dummy ${ncn_progname}; ac_word=$2
10897 echo "$as_me:$LINENO: checking for $ac_word" >&5
10898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10899 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
10902 if test -n "$WINDRES_FOR_TARGET"; then
10903 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10906 for as_dir in $PATH
10909 test -z "$as_dir" && as_dir=.
10910 for ac_exec_ext in '' $ac_executable_extensions; do
10911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10912 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10921 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10922 if test -n "$WINDRES_FOR_TARGET"; then
10923 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10924 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10926 echo "$as_me:$LINENO: result: no" >&5
10927 echo "${ECHO_T}no" >&6
10931 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10935 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10937 if test $build = $target ; then
10938 WINDRES_FOR_TARGET="$2"
10940 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
10943 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
10947 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10953 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10954 if test -n "$with_build_time_tools"; then
10955 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
10956 echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
10957 if test -x $with_build_time_tools/windmc; then
10958 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
10959 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10960 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
10961 echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
10963 echo "$as_me:$LINENO: result: no" >&5
10964 echo "${ECHO_T}no" >&6
10966 elif test $build != $host && test $have_gcc_for_target = yes; then
10967 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
10968 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
10969 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10972 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10973 # Extract the first word of "windmc", so it can be a program name with args.
10974 set dummy windmc; ac_word=$2
10975 echo "$as_me:$LINENO: checking for $ac_word" >&5
10976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10977 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
10978 echo $ECHO_N "(cached) $ECHO_C" >&6
10980 case $WINDMC_FOR_TARGET in
10982 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
10985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10986 for as_dir in $gcc_cv_tool_dirs
10989 test -z "$as_dir" && as_dir=.
10990 for ac_exec_ext in '' $ac_executable_extensions; do
10991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10992 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11002 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11004 if test -n "$WINDMC_FOR_TARGET"; then
11005 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11006 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11008 echo "$as_me:$LINENO: result: no" >&5
11009 echo "${ECHO_T}no" >&6
11013 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11016 if test -n "$WINDMC_FOR_TARGET"; then
11017 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11018 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11019 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11022 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11023 for ncn_progname in windmc; do
11024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11025 set dummy ${ncn_progname}; ac_word=$2
11026 echo "$as_me:$LINENO: checking for $ac_word" >&5
11027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11028 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11029 echo $ECHO_N "(cached) $ECHO_C" >&6
11031 if test -n "$WINDMC_FOR_TARGET"; then
11032 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11035 for as_dir in $PATH
11038 test -z "$as_dir" && as_dir=.
11039 for ac_exec_ext in '' $ac_executable_extensions; do
11040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11041 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11050 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11051 if test -n "$WINDMC_FOR_TARGET"; then
11052 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11053 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11055 echo "$as_me:$LINENO: result: no" >&5
11056 echo "${ECHO_T}no" >&6
11062 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11063 for ncn_progname in windmc; do
11064 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11065 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11066 if test -x $with_build_time_tools/${ncn_progname}; then
11067 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11068 echo "$as_me:$LINENO: result: yes" >&5
11069 echo "${ECHO_T}yes" >&6
11072 echo "$as_me:$LINENO: result: no" >&5
11073 echo "${ECHO_T}no" >&6
11078 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11079 for ncn_progname in windmc; do
11080 if test -n "$ncn_target_tool_prefix"; then
11081 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11082 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11083 echo "$as_me:$LINENO: checking for $ac_word" >&5
11084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11085 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11088 if test -n "$WINDMC_FOR_TARGET"; then
11089 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092 for as_dir in $PATH
11095 test -z "$as_dir" && as_dir=.
11096 for ac_exec_ext in '' $ac_executable_extensions; do
11097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11098 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11107 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11108 if test -n "$WINDMC_FOR_TARGET"; then
11109 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11110 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11112 echo "$as_me:$LINENO: result: no" >&5
11113 echo "${ECHO_T}no" >&6
11117 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11119 set dummy ${ncn_progname}; ac_word=$2
11120 echo "$as_me:$LINENO: checking for $ac_word" >&5
11121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11122 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11125 if test -n "$WINDMC_FOR_TARGET"; then
11126 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11129 for as_dir in $PATH
11132 test -z "$as_dir" && as_dir=.
11133 for ac_exec_ext in '' $ac_executable_extensions; do
11134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11135 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11144 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11145 if test -n "$WINDMC_FOR_TARGET"; then
11146 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11147 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11149 echo "$as_me:$LINENO: result: no" >&5
11150 echo "${ECHO_T}no" >&6
11154 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11158 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11160 if test $build = $target ; then
11161 WINDMC_FOR_TARGET="$2"
11163 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11166 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11170 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11174 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11176 echo "$as_me:$LINENO: checking where to find the target ar" >&5
11177 echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
11178 if test "x${build}" != "x${host}" ; then
11179 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11180 # We already found the complete path
11181 ac_dir=`dirname $AR_FOR_TARGET`
11182 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11183 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11185 # Canadian cross, just use what we found
11186 echo "$as_me:$LINENO: result: pre-installed" >&5
11187 echo "${ECHO_T}pre-installed" >&6
11191 case " ${configdirs} " in
11196 if test $ok = yes; then
11197 # An in-tree tool is available and we can use it
11198 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
11199 echo "$as_me:$LINENO: result: just compiled" >&5
11200 echo "${ECHO_T}just compiled" >&6
11201 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11202 # We already found the complete path
11203 ac_dir=`dirname $AR_FOR_TARGET`
11204 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11205 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11206 elif test "x$target" = "x$host"; then
11207 # We can use an host tool
11208 AR_FOR_TARGET='$(AR)'
11209 echo "$as_me:$LINENO: result: host tool" >&5
11210 echo "${ECHO_T}host tool" >&6
11212 # We need a cross tool
11213 echo "$as_me:$LINENO: result: pre-installed" >&5
11214 echo "${ECHO_T}pre-installed" >&6
11218 echo "$as_me:$LINENO: checking where to find the target as" >&5
11219 echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
11220 if test "x${build}" != "x${host}" ; then
11221 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11222 # We already found the complete path
11223 ac_dir=`dirname $AS_FOR_TARGET`
11224 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11225 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11227 # Canadian cross, just use what we found
11228 echo "$as_me:$LINENO: result: pre-installed" >&5
11229 echo "${ECHO_T}pre-installed" >&6
11233 case " ${configdirs} " in
11238 if test $ok = yes; then
11239 # An in-tree tool is available and we can use it
11240 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
11241 echo "$as_me:$LINENO: result: just compiled" >&5
11242 echo "${ECHO_T}just compiled" >&6
11243 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11244 # We already found the complete path
11245 ac_dir=`dirname $AS_FOR_TARGET`
11246 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11247 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11248 elif test "x$target" = "x$host"; then
11249 # We can use an host tool
11250 AS_FOR_TARGET='$(AS)'
11251 echo "$as_me:$LINENO: result: host tool" >&5
11252 echo "${ECHO_T}host tool" >&6
11254 # We need a cross tool
11255 echo "$as_me:$LINENO: result: pre-installed" >&5
11256 echo "${ECHO_T}pre-installed" >&6
11260 echo "$as_me:$LINENO: checking where to find the target cc" >&5
11261 echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
11262 if test "x${build}" != "x${host}" ; then
11263 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11264 # We already found the complete path
11265 ac_dir=`dirname $CC_FOR_TARGET`
11266 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11267 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11269 # Canadian cross, just use what we found
11270 echo "$as_me:$LINENO: result: pre-installed" >&5
11271 echo "${ECHO_T}pre-installed" >&6
11275 case " ${configdirs} " in
11280 if test $ok = yes; then
11281 # An in-tree tool is available and we can use it
11282 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11283 echo "$as_me:$LINENO: result: just compiled" >&5
11284 echo "${ECHO_T}just compiled" >&6
11285 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11286 # We already found the complete path
11287 ac_dir=`dirname $CC_FOR_TARGET`
11288 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11289 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11290 elif test "x$target" = "x$host"; then
11291 # We can use an host tool
11292 CC_FOR_TARGET='$(CC)'
11293 echo "$as_me:$LINENO: result: host tool" >&5
11294 echo "${ECHO_T}host tool" >&6
11296 # We need a cross tool
11297 echo "$as_me:$LINENO: result: pre-installed" >&5
11298 echo "${ECHO_T}pre-installed" >&6
11302 echo "$as_me:$LINENO: checking where to find the target c++" >&5
11303 echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
11304 if test "x${build}" != "x${host}" ; then
11305 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11306 # We already found the complete path
11307 ac_dir=`dirname $CXX_FOR_TARGET`
11308 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11309 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11311 # Canadian cross, just use what we found
11312 echo "$as_me:$LINENO: result: pre-installed" >&5
11313 echo "${ECHO_T}pre-installed" >&6
11317 case " ${configdirs} " in
11321 case ,${enable_languages}, in
11325 if test $ok = yes; then
11326 # An in-tree tool is available and we can use it
11327 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'
11328 echo "$as_me:$LINENO: result: just compiled" >&5
11329 echo "${ECHO_T}just compiled" >&6
11330 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11331 # We already found the complete path
11332 ac_dir=`dirname $CXX_FOR_TARGET`
11333 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11334 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11335 elif test "x$target" = "x$host"; then
11336 # We can use an host tool
11337 CXX_FOR_TARGET='$(CXX)'
11338 echo "$as_me:$LINENO: result: host tool" >&5
11339 echo "${ECHO_T}host tool" >&6
11341 # We need a cross tool
11342 echo "$as_me:$LINENO: result: pre-installed" >&5
11343 echo "${ECHO_T}pre-installed" >&6
11347 echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11348 echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
11349 if test "x${build}" != "x${host}" ; then
11350 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11351 # We already found the complete path
11352 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11353 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11354 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11356 # Canadian cross, just use what we found
11357 echo "$as_me:$LINENO: result: pre-installed" >&5
11358 echo "${ECHO_T}pre-installed" >&6
11362 case " ${configdirs} " in
11366 case ,${enable_languages}, in
11370 if test $ok = yes; then
11371 # An in-tree tool is available and we can use it
11372 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'
11373 echo "$as_me:$LINENO: result: just compiled" >&5
11374 echo "${ECHO_T}just compiled" >&6
11375 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11376 # We already found the complete path
11377 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11378 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11379 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11380 elif test "x$target" = "x$host"; then
11381 # We can use an host tool
11382 RAW_CXX_FOR_TARGET='$(CXX)'
11383 echo "$as_me:$LINENO: result: host tool" >&5
11384 echo "${ECHO_T}host tool" >&6
11386 # We need a cross tool
11387 echo "$as_me:$LINENO: result: pre-installed" >&5
11388 echo "${ECHO_T}pre-installed" >&6
11392 echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11393 echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
11394 if test "x${build}" != "x${host}" ; then
11395 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11396 # We already found the complete path
11397 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11398 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11399 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11401 # Canadian cross, just use what we found
11402 echo "$as_me:$LINENO: result: pre-installed" >&5
11403 echo "${ECHO_T}pre-installed" >&6
11407 case " ${configdirs} " in
11412 if test $ok = yes; then
11413 # An in-tree tool is available and we can use it
11414 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
11415 echo "$as_me:$LINENO: result: just compiled" >&5
11416 echo "${ECHO_T}just compiled" >&6
11417 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11418 # We already found the complete path
11419 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11420 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11421 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11422 elif test "x$target" = "x$host"; then
11423 # We can use an host tool
11424 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
11425 echo "$as_me:$LINENO: result: host tool" >&5
11426 echo "${ECHO_T}host tool" >&6
11428 # We need a cross tool
11429 echo "$as_me:$LINENO: result: pre-installed" >&5
11430 echo "${ECHO_T}pre-installed" >&6
11434 echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11435 echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
11436 if test "x${build}" != "x${host}" ; then
11437 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11438 # We already found the complete path
11439 ac_dir=`dirname $GCC_FOR_TARGET`
11440 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11441 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11443 # Canadian cross, just use what we found
11444 echo "$as_me:$LINENO: result: pre-installed" >&5
11445 echo "${ECHO_T}pre-installed" >&6
11449 case " ${configdirs} " in
11454 if test $ok = yes; then
11455 # An in-tree tool is available and we can use it
11456 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11457 echo "$as_me:$LINENO: result: just compiled" >&5
11458 echo "${ECHO_T}just compiled" >&6
11459 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11460 # We already found the complete path
11461 ac_dir=`dirname $GCC_FOR_TARGET`
11462 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11463 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11464 elif test "x$target" = "x$host"; then
11465 # We can use an host tool
11466 GCC_FOR_TARGET='$()'
11467 echo "$as_me:$LINENO: result: host tool" >&5
11468 echo "${ECHO_T}host tool" >&6
11470 # We need a cross tool
11471 echo "$as_me:$LINENO: result: pre-installed" >&5
11472 echo "${ECHO_T}pre-installed" >&6
11476 echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11477 echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
11478 if test "x${build}" != "x${host}" ; then
11479 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11480 # We already found the complete path
11481 ac_dir=`dirname $GCJ_FOR_TARGET`
11482 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11483 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11485 # Canadian cross, just use what we found
11486 echo "$as_me:$LINENO: result: pre-installed" >&5
11487 echo "${ECHO_T}pre-installed" >&6
11491 case " ${configdirs} " in
11495 case ,${enable_languages}, in
11499 if test $ok = yes; then
11500 # An in-tree tool is available and we can use it
11501 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
11502 echo "$as_me:$LINENO: result: just compiled" >&5
11503 echo "${ECHO_T}just compiled" >&6
11504 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11505 # We already found the complete path
11506 ac_dir=`dirname $GCJ_FOR_TARGET`
11507 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11508 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11509 elif test "x$target" = "x$host"; then
11510 # We can use an host tool
11511 GCJ_FOR_TARGET='$(GCJ)'
11512 echo "$as_me:$LINENO: result: host tool" >&5
11513 echo "${ECHO_T}host tool" >&6
11515 # We need a cross tool
11516 echo "$as_me:$LINENO: result: pre-installed" >&5
11517 echo "${ECHO_T}pre-installed" >&6
11521 echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11522 echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
11523 if test "x${build}" != "x${host}" ; then
11524 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11525 # We already found the complete path
11526 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11527 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11528 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11530 # Canadian cross, just use what we found
11531 echo "$as_me:$LINENO: result: pre-installed" >&5
11532 echo "${ECHO_T}pre-installed" >&6
11536 case " ${configdirs} " in
11540 case ,${enable_languages}, in
11544 if test $ok = yes; then
11545 # An in-tree tool is available and we can use it
11546 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
11547 echo "$as_me:$LINENO: result: just compiled" >&5
11548 echo "${ECHO_T}just compiled" >&6
11549 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11550 # We already found the complete path
11551 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11552 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11553 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11554 elif test "x$target" = "x$host"; then
11555 # We can use an host tool
11556 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
11557 echo "$as_me:$LINENO: result: host tool" >&5
11558 echo "${ECHO_T}host tool" >&6
11560 # We need a cross tool
11561 echo "$as_me:$LINENO: result: pre-installed" >&5
11562 echo "${ECHO_T}pre-installed" >&6
11566 echo "$as_me:$LINENO: checking where to find the target ld" >&5
11567 echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
11568 if test "x${build}" != "x${host}" ; then
11569 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11570 # We already found the complete path
11571 ac_dir=`dirname $LD_FOR_TARGET`
11572 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11573 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11575 # Canadian cross, just use what we found
11576 echo "$as_me:$LINENO: result: pre-installed" >&5
11577 echo "${ECHO_T}pre-installed" >&6
11581 case " ${configdirs} " in
11586 if test $ok = yes; then
11587 # An in-tree tool is available and we can use it
11588 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
11589 echo "$as_me:$LINENO: result: just compiled" >&5
11590 echo "${ECHO_T}just compiled" >&6
11591 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11592 # We already found the complete path
11593 ac_dir=`dirname $LD_FOR_TARGET`
11594 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11595 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11596 elif test "x$target" = "x$host"; then
11597 # We can use an host tool
11598 LD_FOR_TARGET='$(LD)'
11599 echo "$as_me:$LINENO: result: host tool" >&5
11600 echo "${ECHO_T}host tool" >&6
11602 # We need a cross tool
11603 echo "$as_me:$LINENO: result: pre-installed" >&5
11604 echo "${ECHO_T}pre-installed" >&6
11608 echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11609 echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
11610 if test "x${build}" != "x${host}" ; then
11611 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11612 # We already found the complete path
11613 ac_dir=`dirname $LIPO_FOR_TARGET`
11614 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11615 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11617 # Canadian cross, just use what we found
11618 echo "$as_me:$LINENO: result: pre-installed" >&5
11619 echo "${ECHO_T}pre-installed" >&6
11622 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11623 # We already found the complete path
11624 ac_dir=`dirname $LIPO_FOR_TARGET`
11625 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11626 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11627 elif test "x$target" = "x$host"; then
11628 # We can use an host tool
11629 LIPO_FOR_TARGET='$(LIPO)'
11630 echo "$as_me:$LINENO: result: host tool" >&5
11631 echo "${ECHO_T}host tool" >&6
11633 # We need a cross tool
11634 echo "$as_me:$LINENO: result: pre-installed" >&5
11635 echo "${ECHO_T}pre-installed" >&6
11639 echo "$as_me:$LINENO: checking where to find the target nm" >&5
11640 echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
11641 if test "x${build}" != "x${host}" ; then
11642 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11643 # We already found the complete path
11644 ac_dir=`dirname $NM_FOR_TARGET`
11645 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11646 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11648 # Canadian cross, just use what we found
11649 echo "$as_me:$LINENO: result: pre-installed" >&5
11650 echo "${ECHO_T}pre-installed" >&6
11654 case " ${configdirs} " in
11659 if test $ok = yes; then
11660 # An in-tree tool is available and we can use it
11661 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
11662 echo "$as_me:$LINENO: result: just compiled" >&5
11663 echo "${ECHO_T}just compiled" >&6
11664 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11665 # We already found the complete path
11666 ac_dir=`dirname $NM_FOR_TARGET`
11667 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11668 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11669 elif test "x$target" = "x$host"; then
11670 # We can use an host tool
11671 NM_FOR_TARGET='$(NM)'
11672 echo "$as_me:$LINENO: result: host tool" >&5
11673 echo "${ECHO_T}host tool" >&6
11675 # We need a cross tool
11676 echo "$as_me:$LINENO: result: pre-installed" >&5
11677 echo "${ECHO_T}pre-installed" >&6
11681 echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11682 echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
11683 if test "x${build}" != "x${host}" ; then
11684 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11685 # We already found the complete path
11686 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11687 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11688 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11690 # Canadian cross, just use what we found
11691 echo "$as_me:$LINENO: result: pre-installed" >&5
11692 echo "${ECHO_T}pre-installed" >&6
11696 case " ${configdirs} " in
11701 if test $ok = yes; then
11702 # An in-tree tool is available and we can use it
11703 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
11704 echo "$as_me:$LINENO: result: just compiled" >&5
11705 echo "${ECHO_T}just compiled" >&6
11706 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11707 # We already found the complete path
11708 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11709 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11710 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11711 elif test "x$target" = "x$host"; then
11712 # We can use an host tool
11713 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
11714 echo "$as_me:$LINENO: result: host tool" >&5
11715 echo "${ECHO_T}host tool" >&6
11717 # We need a cross tool
11718 echo "$as_me:$LINENO: result: pre-installed" >&5
11719 echo "${ECHO_T}pre-installed" >&6
11723 echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11724 echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
11725 if test "x${build}" != "x${host}" ; then
11726 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11727 # We already found the complete path
11728 ac_dir=`dirname $RANLIB_FOR_TARGET`
11729 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11730 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11732 # Canadian cross, just use what we found
11733 echo "$as_me:$LINENO: result: pre-installed" >&5
11734 echo "${ECHO_T}pre-installed" >&6
11738 case " ${configdirs} " in
11743 if test $ok = yes; then
11744 # An in-tree tool is available and we can use it
11745 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
11746 echo "$as_me:$LINENO: result: just compiled" >&5
11747 echo "${ECHO_T}just compiled" >&6
11748 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11749 # We already found the complete path
11750 ac_dir=`dirname $RANLIB_FOR_TARGET`
11751 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11752 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11753 elif test "x$target" = "x$host"; then
11754 # We can use an host tool
11755 RANLIB_FOR_TARGET='$(RANLIB)'
11756 echo "$as_me:$LINENO: result: host tool" >&5
11757 echo "${ECHO_T}host tool" >&6
11759 # We need a cross tool
11760 echo "$as_me:$LINENO: result: pre-installed" >&5
11761 echo "${ECHO_T}pre-installed" >&6
11765 echo "$as_me:$LINENO: checking where to find the target strip" >&5
11766 echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
11767 if test "x${build}" != "x${host}" ; then
11768 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11769 # We already found the complete path
11770 ac_dir=`dirname $STRIP_FOR_TARGET`
11771 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11772 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11774 # Canadian cross, just use what we found
11775 echo "$as_me:$LINENO: result: pre-installed" >&5
11776 echo "${ECHO_T}pre-installed" >&6
11780 case " ${configdirs} " in
11785 if test $ok = yes; then
11786 # An in-tree tool is available and we can use it
11787 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
11788 echo "$as_me:$LINENO: result: just compiled" >&5
11789 echo "${ECHO_T}just compiled" >&6
11790 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11791 # We already found the complete path
11792 ac_dir=`dirname $STRIP_FOR_TARGET`
11793 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11794 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11795 elif test "x$target" = "x$host"; then
11796 # We can use an host tool
11797 STRIP_FOR_TARGET='$(STRIP)'
11798 echo "$as_me:$LINENO: result: host tool" >&5
11799 echo "${ECHO_T}host tool" >&6
11801 # We need a cross tool
11802 echo "$as_me:$LINENO: result: pre-installed" >&5
11803 echo "${ECHO_T}pre-installed" >&6
11807 echo "$as_me:$LINENO: checking where to find the target windres" >&5
11808 echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
11809 if test "x${build}" != "x${host}" ; then
11810 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11811 # We already found the complete path
11812 ac_dir=`dirname $WINDRES_FOR_TARGET`
11813 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11814 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11816 # Canadian cross, just use what we found
11817 echo "$as_me:$LINENO: result: pre-installed" >&5
11818 echo "${ECHO_T}pre-installed" >&6
11822 case " ${configdirs} " in
11827 if test $ok = yes; then
11828 # An in-tree tool is available and we can use it
11829 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
11830 echo "$as_me:$LINENO: result: just compiled" >&5
11831 echo "${ECHO_T}just compiled" >&6
11832 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11833 # We already found the complete path
11834 ac_dir=`dirname $WINDRES_FOR_TARGET`
11835 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11836 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11837 elif test "x$target" = "x$host"; then
11838 # We can use an host tool
11839 WINDRES_FOR_TARGET='$(WINDRES)'
11840 echo "$as_me:$LINENO: result: host tool" >&5
11841 echo "${ECHO_T}host tool" >&6
11843 # We need a cross tool
11844 echo "$as_me:$LINENO: result: pre-installed" >&5
11845 echo "${ECHO_T}pre-installed" >&6
11849 echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11850 echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11851 if test "x${build}" != "x${host}" ; then
11852 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11853 # We already found the complete path
11854 ac_dir=`dirname $WINDMC_FOR_TARGET`
11855 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11856 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11858 # Canadian cross, just use what we found
11859 echo "$as_me:$LINENO: result: pre-installed" >&5
11860 echo "${ECHO_T}pre-installed" >&6
11864 case " ${configdirs} " in
11869 if test $ok = yes; then
11870 # An in-tree tool is available and we can use it
11871 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11872 echo "$as_me:$LINENO: result: just compiled" >&5
11873 echo "${ECHO_T}just compiled" >&6
11874 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11875 # We already found the complete path
11876 ac_dir=`dirname $WINDMC_FOR_TARGET`
11877 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11878 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11879 elif test "x$target" = "x$host"; then
11880 # We can use an host tool
11881 WINDMC_FOR_TARGET='$(WINDMC)'
11882 echo "$as_me:$LINENO: result: host tool" >&5
11883 echo "${ECHO_T}host tool" >&6
11885 # We need a cross tool
11886 echo "$as_me:$LINENO: result: pre-installed" >&5
11887 echo "${ECHO_T}pre-installed" >&6
11895 # Certain tools may need extra flags.
11896 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11897 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11898 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11900 # When building target libraries, except in a Canadian cross, we use
11901 # the same toolchain as the compiler we just built.
11902 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11903 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11904 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11905 if test $host = $build; then
11906 case " $configdirs " in
11908 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11909 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11910 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11919 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11920 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11921 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11922 if test "${enable_maintainer_mode+set}" = set; then
11923 enableval="$enable_maintainer_mode"
11924 USE_MAINTAINER_MODE=$enableval
11926 USE_MAINTAINER_MODE=no
11928 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11929 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11932 if test "$USE_MAINTAINER_MODE" = yes; then
11933 MAINTAINER_MODE_TRUE=
11934 MAINTAINER_MODE_FALSE='#'
11936 MAINTAINER_MODE_TRUE='#'
11937 MAINTAINER_MODE_FALSE=
11939 MAINT=$MAINTAINER_MODE_TRUE
11941 # ---------------------
11942 # GCC bootstrap support
11943 # ---------------------
11945 # Stage specific cflags for build.
11950 yes) stage1_cflags="-g -Wa,-J" ;;
11951 *) stage1_cflags="-g -J" ;;
11955 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11956 if test "$GCC" = yes; then
11957 saved_CFLAGS="$CFLAGS"
11959 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11960 CFLAGS="$CFLAGS -fkeep-inline-functions"
11961 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11962 echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
11963 cat >conftest.$ac_ext <<_ACEOF
11966 cat confdefs.h >>conftest.$ac_ext
11967 cat >>conftest.$ac_ext <<_ACEOF
11968 /* end confdefs.h. */
11970 #if (__GNUC__ < 3) \
11971 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11972 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11973 #error http://gcc.gnu.org/PR29382
11984 rm -f conftest.$ac_objext
11985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11986 (eval $ac_compile) 2>conftest.er1
11988 grep -v '^ *+' conftest.er1 >conftest.err
11990 cat conftest.err >&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); } &&
11993 { ac_try='test -z "$ac_c_werror_flag"
11994 || test ! -s conftest.err'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; } &&
12000 { ac_try='test -s conftest.$ac_objext'
12001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12002 (eval $ac_try) 2>&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); }; }; then
12006 echo "$as_me:$LINENO: result: yes" >&5
12007 echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12009 echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.$ac_ext >&5
12012 echo "$as_me:$LINENO: result: no" >&5
12013 echo "${ECHO_T}no" >&6
12015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12017 CFLAGS="$saved_CFLAGS"
12022 # Enable --enable-checking in stage1 of the compiler.
12023 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12024 if test "${enable_stage1_checking+set}" = set; then
12025 enableval="$enable_stage1_checking"
12026 stage1_checking=--enable-checking=${enable_stage1_checking}
12028 if test "x$enable_checking" = xno; then
12029 stage1_checking=--enable-checking=yes,types
12031 stage1_checking=--enable-checking=types${enable_checking+,}$enable_checking
12036 # Enable -Werror in bootstrap stage2 and later.
12037 # Check whether --enable-werror or --disable-werror was given.
12038 if test "${enable_werror+set}" = set; then
12039 enableval="$enable_werror"
12042 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
12048 case ${enable_werror} in
12049 yes) stage2_werror_flag="--enable-werror-always" ;;
12050 *) stage2_werror_flag="" ;;
12054 # Flags needed to enable html installing and building
12056 # Check whether --with-datarootdir or --without-datarootdir was given.
12057 if test "${with_datarootdir+set}" = set; then
12058 withval="$with_datarootdir"
12059 datarootdir="\${prefix}/${withval}"
12061 datarootdir="\${prefix}/share"
12065 # Check whether --with-docdir or --without-docdir was given.
12066 if test "${with_docdir+set}" = set; then
12067 withval="$with_docdir"
12068 docdir="\${prefix}/${withval}"
12070 docdir="\${datarootdir}/doc"
12074 # Check whether --with-pdfdir or --without-pdfdir was given.
12075 if test "${with_pdfdir+set}" = set; then
12076 withval="$with_pdfdir"
12077 pdfdir="\${prefix}/${withval}"
12079 pdfdir="\${docdir}"
12083 # Check whether --with-htmldir or --without-htmldir was given.
12084 if test "${with_htmldir+set}" = set; then
12085 withval="$with_htmldir"
12086 htmldir="\${prefix}/${withval}"
12088 htmldir="\${docdir}"
12096 ac_config_files="$ac_config_files Makefile"
12097 cat >confcache <<\_ACEOF
12098 # This file is a shell script that caches the results of configure
12099 # tests run on this system so they can be shared between configure
12100 # scripts and configure runs, see configure's option --config-cache.
12101 # It is not useful on other systems. If it contains results you don't
12102 # want to keep, you may remove or edit it.
12104 # config.status only pays attention to the cache file if you give it
12105 # the --recheck option to rerun configure.
12107 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12108 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12109 # following values.
12113 # The following way of writing the cache mishandles newlines in values,
12114 # but we know of no workaround that is simple, portable, and efficient.
12115 # So, don't put newlines in cache variables' values.
12116 # Ultrix sh set writes to stderr and can't be redirected directly,
12117 # and sets the high bit in the cache file unless we assign to the vars.
12120 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12122 # `set' does not quote correctly, so add quotes (double-quote
12123 # substitution turns \\\\ into \\, and sed turns \\ into \).
12126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12129 # `set' quotes correctly as required by POSIX, so do not add quotes.
12131 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12138 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12140 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12142 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12143 if test -w $cache_file; then
12144 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12145 cat confcache >$cache_file
12147 echo "not updating unwritable cache $cache_file"
12152 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12153 # Let make expand exec_prefix.
12154 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12156 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12157 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12158 # trailing colons and then remove the whole line if VPATH becomes empty
12159 # (actually we leave an empty line to preserve line numbers).
12160 if test "x$srcdir" = x.; then
12161 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12162 s/:*\$(srcdir):*/:/;
12163 s/:*\${srcdir}:*/:/;
12165 s/^\([^=]*=[ ]*\):*/\1/;
12171 # Transform confdefs.h into DEFS.
12172 # Protect against shell expansion while executing Makefile rules.
12173 # Protect against Makefile macro expansion.
12175 # If the first sed substitution is executed (which looks for macros that
12176 # take arguments), then we branch to the quote section. Otherwise,
12177 # look for a macro that doesn't take arguments.
12178 cat >confdef2opt.sed <<\_ACEOF
12181 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12183 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12187 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12193 # We use echo to avoid assuming a particular line-breaking character.
12194 # The extra dot is to prevent the shell from consuming trailing
12195 # line-breaks from the sub-command output. A line-break within
12196 # single-quotes doesn't work because, if this script is created in a
12197 # platform that uses two characters for line-breaks (e.g., DOS), tr
12199 ac_LF_and_DOT=`echo; echo .`
12200 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12201 rm -f confdef2opt.sed
12206 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12207 # 1. Remove the extension, and $U if already installed.
12208 ac_i=`echo "$ac_i" |
12209 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12211 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12212 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12214 LIBOBJS=$ac_libobjs
12216 LTLIBOBJS=$ac_ltlibobjs
12220 : ${CONFIG_STATUS=./config.status}
12221 ac_clean_files_save=$ac_clean_files
12222 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12223 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12224 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12225 cat >$CONFIG_STATUS <<_ACEOF
12227 # Generated by $as_me.
12228 # Run this file to recreate the current configuration.
12229 # Compiler output produced by configure, useful for debugging
12230 # configure, is in config.log if it exists.
12233 ac_cs_recheck=false
12235 SHELL=\${CONFIG_SHELL-$SHELL}
12238 cat >>$CONFIG_STATUS <<\_ACEOF
12239 ## --------------------- ##
12240 ## M4sh Initialization. ##
12241 ## --------------------- ##
12243 # Be Bourne compatible
12244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12248 # is contrary to our usage. Disable this feature.
12249 alias -g '${1+"$@"}'='"$@"'
12250 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12253 DUALCASE=1; export DUALCASE # for MKS sh
12255 # Support unset when possible.
12256 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12263 # Work around bugs in pre-3.0 UWIN ksh.
12264 $as_unset ENV MAIL MAILPATH
12271 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12272 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12273 LC_TELEPHONE LC_TIME
12275 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12276 eval $as_var=C; export $as_var
12282 # Required to use basename.
12283 if expr a : '\(a\)' >/dev/null 2>&1; then
12289 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12290 as_basename=basename
12296 # Name of the executable.
12297 as_me=`$as_basename "$0" ||
12298 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12299 X"$0" : 'X\(//\)$' \| \
12300 X"$0" : 'X\(/\)$' \| \
12301 . : '\(.\)' 2>/dev/null ||
12303 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12304 /^X\/\(\/\/\)$/{ s//\1/; q; }
12305 /^X\/\(\/\).*/{ s//\1/; q; }
12309 # PATH needs CR, and LINENO needs CR and PATH.
12310 # Avoid depending upon Character Ranges.
12311 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12312 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12313 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12314 as_cr_digits='0123456789'
12315 as_cr_alnum=$as_cr_Letters$as_cr_digits
12317 # The user is always right.
12318 if test "${PATH_SEPARATOR+set}" != set; then
12319 echo "#! /bin/sh" >conf$$.sh
12320 echo "exit 0" >>conf$$.sh
12322 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12331 as_lineno_1=$LINENO
12332 as_lineno_2=$LINENO
12333 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12334 test "x$as_lineno_1" != "x$as_lineno_2" &&
12335 test "x$as_lineno_3" = "x$as_lineno_2" || {
12336 # Find who we are. Look in the path if we contain no path at all
12339 *[\\/]* ) as_myself=$0 ;;
12340 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12341 for as_dir in $PATH
12344 test -z "$as_dir" && as_dir=.
12345 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12350 # We did not find ourselves, most probably we were run as `sh COMMAND'
12351 # in which case we are not to be found in the path.
12352 if test "x$as_myself" = x; then
12355 if test ! -f "$as_myself"; then
12356 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12357 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12358 { (exit 1); exit 1; }; }
12360 case $CONFIG_SHELL in
12362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12366 test -z "$as_dir" && as_dir=.
12367 for as_base in sh bash ksh sh5; do
12370 if ("$as_dir/$as_base" -c '
12371 as_lineno_1=$LINENO
12372 as_lineno_2=$LINENO
12373 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12374 test "x$as_lineno_1" != "x$as_lineno_2" &&
12375 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12376 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12377 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12378 CONFIG_SHELL=$as_dir/$as_base
12379 export CONFIG_SHELL
12380 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12388 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12389 # uniformly replaced by the line number. The first 'sed' inserts a
12390 # line-number line before each line; the second 'sed' does the real
12391 # work. The second script uses 'N' to pair each line-number line
12392 # with the numbered line, and appends trailing '-' during
12393 # substitution so that $LINENO is not a special case at line end.
12394 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12395 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12396 sed '=' <$as_myself |
12401 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12404 s,^['$as_cr_digits']*\n,,
12405 ' >$as_me.lineno &&
12406 chmod +x $as_me.lineno ||
12407 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12408 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12409 { (exit 1); exit 1; }; }
12411 # Don't try to exec as it changes $[0], causing all sort of problems
12412 # (the dirname of $[0] is not the place where we might find the
12413 # original and so on. Autoconf is especially sensible to this).
12415 # Exit status is that of the last command.
12420 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12421 *c*,-n*) ECHO_N= ECHO_C='
12423 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12424 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12427 if expr a : '\(a\)' >/dev/null 2>&1; then
12433 rm -f conf$$ conf$$.exe conf$$.file
12435 if ln -s conf$$.file conf$$ 2>/dev/null; then
12436 # We could just check for DJGPP; but this test a) works b) is more generic
12437 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12438 if test -f conf$$.exe; then
12439 # Don't use ln at all; we don't have any links
12444 elif ln conf$$.file conf$$ 2>/dev/null; then
12449 rm -f conf$$ conf$$.exe conf$$.file
12451 if mkdir -p . 2>/dev/null; then
12454 test -d ./-p && rmdir ./-p
12458 as_executable_p="test -f"
12460 # Sed expression to map a string onto a valid CPP name.
12461 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12463 # Sed expression to map a string onto a valid variable name.
12464 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12468 # We need space, tab and new line, in precisely that order.
12478 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12479 # report actual input values of CONFIG_FILES etc. instead of their
12480 # values after options handling. Logging --version etc. is OK.
12484 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12485 ## Running $as_me. ##
12490 This file was extended by $as_me, which was
12491 generated by GNU Autoconf 2.59. Invocation command line was
12493 CONFIG_FILES = $CONFIG_FILES
12494 CONFIG_HEADERS = $CONFIG_HEADERS
12495 CONFIG_LINKS = $CONFIG_LINKS
12496 CONFIG_COMMANDS = $CONFIG_COMMANDS
12500 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12504 # Files that config.status was made for.
12505 if test -n "$ac_config_files"; then
12506 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12509 if test -n "$ac_config_headers"; then
12510 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12513 if test -n "$ac_config_links"; then
12514 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12517 if test -n "$ac_config_commands"; then
12518 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12521 cat >>$CONFIG_STATUS <<\_ACEOF
12524 \`$as_me' instantiates files from templates according to the
12525 current configuration.
12527 Usage: $0 [OPTIONS] [FILE]...
12529 -h, --help print this help, then exit
12530 -V, --version print version number, then exit
12531 -q, --quiet do not print progress messages
12532 -d, --debug don't remove temporary files
12533 --recheck update $as_me by reconfiguring in the same conditions
12534 --file=FILE[:TEMPLATE]
12535 instantiate the configuration file FILE
12537 Configuration files:
12540 Report bugs to <bug-autoconf@gnu.org>."
12543 cat >>$CONFIG_STATUS <<_ACEOF
12546 configured by $0, generated by GNU Autoconf 2.59,
12547 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12549 Copyright (C) 2003 Free Software Foundation, Inc.
12550 This config.status script is free software; the Free Software Foundation
12551 gives unlimited permission to copy, distribute and modify it."
12556 cat >>$CONFIG_STATUS <<\_ACEOF
12557 # If no file are specified by the user, then we need to provide default
12558 # value. By we need to know if files were specified by the user.
12564 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12565 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12573 *) # This is not an option, so the user has probably given explicit
12576 ac_need_defaults=false;;
12580 # Handling of the options.
12582 cat >>$CONFIG_STATUS <<\_ACEOF
12583 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12585 --version | --vers* | -V )
12586 echo "$ac_cs_version"; exit 0 ;;
12588 # Conflict between --help and --header
12589 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12590 Try \`$0 --help' for more information." >&5
12591 echo "$as_me: error: ambiguous option: $1
12592 Try \`$0 --help' for more information." >&2;}
12593 { (exit 1); exit 1; }; };;
12594 --help | --hel | -h )
12595 echo "$ac_cs_usage"; exit 0 ;;
12596 --debug | --d* | -d )
12598 --file | --fil | --fi | --f )
12600 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12601 ac_need_defaults=false;;
12602 --header | --heade | --head | --hea )
12604 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12605 ac_need_defaults=false;;
12606 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12607 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12610 # This is an error.
12611 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12612 Try \`$0 --help' for more information." >&5
12613 echo "$as_me: error: unrecognized option: $1
12614 Try \`$0 --help' for more information." >&2;}
12615 { (exit 1); exit 1; }; } ;;
12617 *) ac_config_targets="$ac_config_targets $1" ;;
12623 ac_configure_extra_args=
12625 if $ac_cs_silent; then
12627 ac_configure_extra_args="$ac_configure_extra_args --silent"
12631 cat >>$CONFIG_STATUS <<_ACEOF
12632 if \$ac_cs_recheck; then
12633 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12634 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12643 cat >>$CONFIG_STATUS <<\_ACEOF
12644 for ac_config_target in $ac_config_targets
12646 case "$ac_config_target" in
12647 # Handling of arguments.
12648 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12649 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12650 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12651 { (exit 1); exit 1; }; };;
12655 # If the user did not use the arguments to specify the items to instantiate,
12656 # then the envvar interface is used. Set only those that are not.
12657 # We use the long form for the default assignment because of an extremely
12658 # bizarre bug on SunOS 4.1.3.
12659 if $ac_need_defaults; then
12660 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12663 # Have a temporary directory for convenience. Make it in the build tree
12664 # simply because there is no reason to put it here, and in addition,
12665 # creating and moving files from /tmp can sometimes cause problems.
12666 # Create a temporary directory, and hook for its removal unless debugging.
12669 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12670 trap '{ (exit 1); exit 1; }' 1 2 13 15
12673 # Create a (secure) tmp directory for tmp files.
12676 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12677 test -n "$tmp" && test -d "$tmp"
12680 tmp=./confstat$$-$RANDOM
12681 (umask 077 && mkdir $tmp)
12684 echo "$me: cannot create a temporary directory in ." >&2
12685 { (exit 1); exit 1; }
12690 cat >>$CONFIG_STATUS <<_ACEOF
12693 # CONFIG_FILES section.
12696 # No need to generate the scripts if there are no CONFIG_FILES.
12697 # This happens for instance when ./config.status config.h
12698 if test -n "\$CONFIG_FILES"; then
12699 # Protect against being on the right side of a sed subst in config.status.
12700 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12701 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12702 s,@SHELL@,$SHELL,;t t
12703 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12704 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12705 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12706 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12707 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12708 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12709 s,@exec_prefix@,$exec_prefix,;t t
12710 s,@prefix@,$prefix,;t t
12711 s,@program_transform_name@,$program_transform_name,;t t
12712 s,@bindir@,$bindir,;t t
12713 s,@sbindir@,$sbindir,;t t
12714 s,@libexecdir@,$libexecdir,;t t
12715 s,@datadir@,$datadir,;t t
12716 s,@sysconfdir@,$sysconfdir,;t t
12717 s,@sharedstatedir@,$sharedstatedir,;t t
12718 s,@localstatedir@,$localstatedir,;t t
12719 s,@libdir@,$libdir,;t t
12720 s,@includedir@,$includedir,;t t
12721 s,@oldincludedir@,$oldincludedir,;t t
12722 s,@infodir@,$infodir,;t t
12723 s,@mandir@,$mandir,;t t
12724 s,@build_alias@,$build_alias,;t t
12725 s,@host_alias@,$host_alias,;t t
12726 s,@target_alias@,$target_alias,;t t
12727 s,@DEFS@,$DEFS,;t t
12728 s,@ECHO_C@,$ECHO_C,;t t
12729 s,@ECHO_N@,$ECHO_N,;t t
12730 s,@ECHO_T@,$ECHO_T,;t t
12731 s,@LIBS@,$LIBS,;t t
12732 s,@build@,$build,;t t
12733 s,@build_cpu@,$build_cpu,;t t
12734 s,@build_vendor@,$build_vendor,;t t
12735 s,@build_os@,$build_os,;t t
12736 s,@build_noncanonical@,$build_noncanonical,;t t
12737 s,@host_noncanonical@,$host_noncanonical,;t t
12738 s,@target_noncanonical@,$target_noncanonical,;t t
12739 s,@host@,$host,;t t
12740 s,@host_cpu@,$host_cpu,;t t
12741 s,@host_vendor@,$host_vendor,;t t
12742 s,@host_os@,$host_os,;t t
12743 s,@target@,$target,;t t
12744 s,@target_cpu@,$target_cpu,;t t
12745 s,@target_vendor@,$target_vendor,;t t
12746 s,@target_os@,$target_os,;t t
12747 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12748 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12749 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12751 s,@LN_S@,$LN_S,;t t
12752 s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12753 s,@build_libsubdir@,$build_libsubdir,;t t
12754 s,@build_subdir@,$build_subdir,;t t
12755 s,@host_subdir@,$host_subdir,;t t
12756 s,@target_subdir@,$target_subdir,;t t
12758 s,@CFLAGS@,$CFLAGS,;t t
12759 s,@LDFLAGS@,$LDFLAGS,;t t
12760 s,@CPPFLAGS@,$CPPFLAGS,;t t
12761 s,@ac_ct_CC@,$ac_ct_CC,;t t
12762 s,@EXEEXT@,$EXEEXT,;t t
12763 s,@OBJEXT@,$OBJEXT,;t t
12765 s,@CXXFLAGS@,$CXXFLAGS,;t t
12766 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12767 s,@GNATBIND@,$GNATBIND,;t t
12768 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12769 s,@GNATMAKE@,$GNATMAKE,;t t
12770 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12771 s,@do_compare@,$do_compare,;t t
12772 s,@gmplibs@,$gmplibs,;t t
12773 s,@gmpinc@,$gmpinc,;t t
12774 s,@stage1_languages@,$stage1_languages,;t t
12775 s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
12776 s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
12777 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12778 s,@tooldir@,$tooldir,;t t
12779 s,@build_tooldir@,$build_tooldir,;t t
12780 s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12781 s,@GDB_TK@,$GDB_TK,;t t
12782 s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12783 s,@build_configargs@,$build_configargs,;t t
12784 s,@build_configdirs@,$build_configdirs,;t t
12785 s,@host_configargs@,$host_configargs,;t t
12786 s,@configdirs@,$configdirs,;t t
12787 s,@target_configargs@,$target_configargs,;t t
12788 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12789 s,@config_shell@,$config_shell,;t t
12790 s,@YACC@,$YACC,;t t
12791 s,@BISON@,$BISON,;t t
12794 s,@FLEX@,$FLEX,;t t
12795 s,@MAKEINFO@,$MAKEINFO,;t t
12796 s,@EXPECT@,$EXPECT,;t t
12797 s,@RUNTEST@,$RUNTEST,;t t
12800 s,@DLLTOOL@,$DLLTOOL,;t t
12802 s,@LIPO@,$LIPO,;t t
12804 s,@RANLIB@,$RANLIB,;t t
12805 s,@STRIP@,$STRIP,;t t
12806 s,@WINDRES@,$WINDRES,;t t
12807 s,@WINDMC@,$WINDMC,;t t
12808 s,@OBJCOPY@,$OBJCOPY,;t t
12809 s,@OBJDUMP@,$OBJDUMP,;t t
12810 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12811 s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12812 s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12813 s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12814 s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12815 s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12816 s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12817 s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12818 s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12819 s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12820 s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12821 s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12822 s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12823 s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12824 s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12825 s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
12826 s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
12827 s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12828 s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12829 s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12830 s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12831 s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12832 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12833 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12834 s,@MAINT@,$MAINT,;t t
12835 s,@stage1_cflags@,$stage1_cflags,;t t
12836 s,@stage1_checking@,$stage1_checking,;t t
12837 s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12838 s,@datarootdir@,$datarootdir,;t t
12839 s,@docdir@,$docdir,;t t
12840 s,@pdfdir@,$pdfdir,;t t
12841 s,@htmldir@,$htmldir,;t t
12842 s,@LIBOBJS@,$LIBOBJS,;t t
12843 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12844 /@serialization_dependencies@/r $serialization_dependencies
12845 s,@serialization_dependencies@,,;t t
12846 /@host_makefile_frag@/r $host_makefile_frag
12847 s,@host_makefile_frag@,,;t t
12848 /@target_makefile_frag@/r $target_makefile_frag
12849 s,@target_makefile_frag@,,;t t
12850 /@alphaieee_frag@/r $alphaieee_frag
12851 s,@alphaieee_frag@,,;t t
12852 /@ospace_frag@/r $ospace_frag
12853 s,@ospace_frag@,,;t t
12858 cat >>$CONFIG_STATUS <<\_ACEOF
12859 # Split the substitutions into bite-sized pieces for seds with
12860 # small command number limits, like on Digital OSF/1 and HP-UX.
12861 ac_max_sed_lines=48
12862 ac_sed_frag=1 # Number of current file.
12863 ac_beg=1 # First line for current file.
12864 ac_end=$ac_max_sed_lines # Line after last line for current file.
12867 while $ac_more_lines; do
12868 if test $ac_beg -gt 1; then
12869 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12871 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12873 if test ! -s $tmp/subs.frag; then
12874 ac_more_lines=false
12876 # The purpose of the label and of the branching condition is to
12877 # speed up the sed processing (if there are no `@' at all, there
12878 # is no need to browse any of the substitutions).
12879 # These are the two extra sed commands mentioned above.
12881 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12882 if test -z "$ac_sed_cmds"; then
12883 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12885 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12887 ac_sed_frag=`expr $ac_sed_frag + 1`
12889 ac_end=`expr $ac_end + $ac_max_sed_lines`
12892 if test -z "$ac_sed_cmds"; then
12895 fi # test -n "$CONFIG_FILES"
12898 cat >>$CONFIG_STATUS <<\_ACEOF
12899 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12900 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12902 - | *:- | *:-:* ) # input from stdin
12904 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12905 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12906 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12907 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12908 * ) ac_file_in=$ac_file.in ;;
12911 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12912 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12913 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12914 X"$ac_file" : 'X\(//\)[^/]' \| \
12915 X"$ac_file" : 'X\(//\)$' \| \
12916 X"$ac_file" : 'X\(/\)' \| \
12917 . : '\(.\)' 2>/dev/null ||
12919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12920 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12921 /^X\(\/\/\)$/{ s//\1/; q; }
12922 /^X\(\/\).*/{ s//\1/; q; }
12924 { if $as_mkdir_p; then
12929 while test ! -d "$as_dir"; do
12930 as_dirs="$as_dir $as_dirs"
12931 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12932 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12933 X"$as_dir" : 'X\(//\)[^/]' \| \
12934 X"$as_dir" : 'X\(//\)$' \| \
12935 X"$as_dir" : 'X\(/\)' \| \
12936 . : '\(.\)' 2>/dev/null ||
12938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12939 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12940 /^X\(\/\/\)$/{ s//\1/; q; }
12941 /^X\(\/\).*/{ s//\1/; q; }
12944 test ! -n "$as_dirs" || mkdir $as_dirs
12945 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12946 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12947 { (exit 1); exit 1; }; }; }
12951 if test "$ac_dir" != .; then
12952 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12953 # A "../" for each directory in $ac_dir_suffix.
12954 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12956 ac_dir_suffix= ac_top_builddir=
12960 .) # No --srcdir option. We are building in place.
12962 if test -z "$ac_top_builddir"; then
12965 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12967 [\\/]* | ?:[\\/]* ) # Absolute path.
12968 ac_srcdir=$srcdir$ac_dir_suffix;
12969 ac_top_srcdir=$srcdir ;;
12970 *) # Relative path.
12971 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12972 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12975 # Do not use `cd foo && pwd` to compute absolute paths, because
12976 # the directories may not exist.
12978 .) ac_abs_builddir="$ac_dir";;
12981 .) ac_abs_builddir=`pwd`;;
12982 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12983 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12986 case $ac_abs_builddir in
12987 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12989 case ${ac_top_builddir}. in
12990 .) ac_abs_top_builddir=$ac_abs_builddir;;
12991 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12992 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12995 case $ac_abs_builddir in
12996 .) ac_abs_srcdir=$ac_srcdir;;
12999 .) ac_abs_srcdir=$ac_abs_builddir;;
13000 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13001 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13004 case $ac_abs_builddir in
13005 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13007 case $ac_top_srcdir in
13008 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13009 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13010 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13016 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13017 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13020 if test x"$ac_file" != x-; then
13021 { echo "$as_me:$LINENO: creating $ac_file" >&5
13022 echo "$as_me: creating $ac_file" >&6;}
13025 # Let's still pretend it is `configure' which instantiates (i.e., don't
13026 # use $as_me), people would be surprised to read:
13027 # /* config.h. Generated by config.status. */
13028 if test x"$ac_file" = x-; then
13031 configure_input="$ac_file. "
13033 configure_input=$configure_input"Generated from `echo $ac_file_in |
13034 sed 's,.*/,,'` by configure."
13036 # First look for the input files in the build tree, otherwise in the
13038 ac_file_inputs=`IFS=:
13039 for f in $ac_file_in; do
13041 -) echo $tmp/stdin ;;
13043 # Absolute (can't be DOS-style, as IFS=:)
13044 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13045 echo "$as_me: error: cannot find input file: $f" >&2;}
13046 { (exit 1); exit 1; }; }
13049 if test -f "$f"; then
13052 elif test -f "$srcdir/$f"; then
13057 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13058 echo "$as_me: error: cannot find input file: $f" >&2;}
13059 { (exit 1); exit 1; }; }
13062 done` || { (exit 1); exit 1; }
13064 cat >>$CONFIG_STATUS <<_ACEOF
13068 cat >>$CONFIG_STATUS <<\_ACEOF
13070 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13071 s,@configure_input@,$configure_input,;t t
13072 s,@srcdir@,$ac_srcdir,;t t
13073 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13074 s,@top_srcdir@,$ac_top_srcdir,;t t
13075 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13076 s,@builddir@,$ac_builddir,;t t
13077 s,@abs_builddir@,$ac_abs_builddir,;t t
13078 s,@top_builddir@,$ac_top_builddir,;t t
13079 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13080 s,@INSTALL@,$ac_INSTALL,;t t
13081 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13083 if test x"$ac_file" != x-; then
13084 mv $tmp/out $ac_file
13093 cat >>$CONFIG_STATUS <<\_ACEOF
13095 { (exit 0); exit 0; }
13097 chmod +x $CONFIG_STATUS
13098 ac_clean_files=$ac_clean_files_save
13101 # configure is writing to config.log, and then calls config.status.
13102 # config.status does its own redirection, appending to config.log.
13103 # Unfortunately, on DOS this fails, as config.log is still kept open
13104 # by configure, so config.status won't be able to write to it; its
13105 # output is simply discarded. So we exec the FD to /dev/null,
13106 # effectively closing config.log, so it can be properly (re)opened and
13107 # appended to by config.status. When coming back to configure, we
13108 # need to make the FD available again.
13109 if test "$no_create" != yes; then
13111 ac_config_status_args=
13112 test "$silent" = yes &&
13113 ac_config_status_args="$ac_config_status_args --quiet"
13115 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13117 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13118 # would make configure fail if this is the last instruction.
13119 $ac_cs_success || { (exit 1); exit 1; }