2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="move-if-change"
589 program_transform_name
637 TOPLEVEL_CONFIGURE_ARGUMENTS
658 SYSROOT_CFLAGS_FOR_TARGET
709 COMPILER_AS_FOR_TARGET
710 COMPILER_LD_FOR_TARGET
711 COMPILER_NM_FOR_TARGET
713 MAINTAINER_MODE_FALSE
720 ac_subst_files='serialization_dependencies
725 ac_precious_vars='build_alias
764 # Initialize some variables set by options.
766 ac_init_version=false
767 # The variables have the same names as the options, with
768 # dashes changed to underlines.
776 program_transform_name=s,x,x,
784 # Installation directory options.
785 # These are left unexpanded so users can "make install exec_prefix=/foo"
786 # and all the variables that are supposed to be based on exec_prefix
787 # by default will actually change.
788 # Use braces instead of parens because sh, perl, etc. also accept them.
789 # (The list follows the same order as the GNU Coding Standards.)
790 bindir='${exec_prefix}/bin'
791 sbindir='${exec_prefix}/sbin'
792 libexecdir='${exec_prefix}/libexec'
793 datarootdir='${prefix}/share'
794 datadir='${datarootdir}'
795 sysconfdir='${prefix}/etc'
796 sharedstatedir='${prefix}/com'
797 localstatedir='${prefix}/var'
798 includedir='${prefix}/include'
799 oldincludedir='/usr/include'
800 docdir='${datarootdir}/doc/${PACKAGE}'
801 infodir='${datarootdir}/info'
806 libdir='${exec_prefix}/lib'
807 localedir='${datarootdir}/locale'
808 mandir='${datarootdir}/man'
814 # If the previous option needs an argument, assign it.
815 if test -n "$ac_prev"; then
816 eval $ac_prev=\$ac_option
822 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
826 # Accept the important Cygnus configure options, so we can diagnose typos.
828 case $ac_dashdash$ac_option in
832 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
837 -build | --build | --buil | --bui | --bu)
838 ac_prev=build_alias ;;
839 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840 build_alias=$ac_optarg ;;
842 -cache-file | --cache-file | --cache-fil | --cache-fi \
843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844 ac_prev=cache_file ;;
845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847 cache_file=$ac_optarg ;;
850 cache_file=config.cache ;;
852 -datadir | --datadir | --datadi | --datad)
854 -datadir=* | --datadir=* | --datadi=* | --datad=*)
855 datadir=$ac_optarg ;;
857 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858 | --dataroo | --dataro | --datar)
859 ac_prev=datarootdir ;;
860 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862 datarootdir=$ac_optarg ;;
864 -disable-* | --disable-*)
865 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869 { (exit 1); exit 1; }; }
870 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
871 eval enable_$ac_feature=no ;;
873 -docdir | --docdir | --docdi | --doc | --do)
875 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
878 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
880 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
883 -enable-* | --enable-*)
884 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
887 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
888 { (exit 1); exit 1; }; }
889 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
890 eval enable_$ac_feature=\$ac_optarg ;;
892 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
893 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
894 | --exec | --exe | --ex)
895 ac_prev=exec_prefix ;;
896 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
897 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
898 | --exec=* | --exe=* | --ex=*)
899 exec_prefix=$ac_optarg ;;
901 -gas | --gas | --ga | --g)
902 # Obsolete; use --with-gas.
905 -help | --help | --hel | --he | -h)
907 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
908 ac_init_help=recursive ;;
909 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
910 ac_init_help=short ;;
912 -host | --host | --hos | --ho)
913 ac_prev=host_alias ;;
914 -host=* | --host=* | --hos=* | --ho=*)
915 host_alias=$ac_optarg ;;
917 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
919 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
921 htmldir=$ac_optarg ;;
923 -includedir | --includedir | --includedi | --included | --include \
924 | --includ | --inclu | --incl | --inc)
925 ac_prev=includedir ;;
926 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
927 | --includ=* | --inclu=* | --incl=* | --inc=*)
928 includedir=$ac_optarg ;;
930 -infodir | --infodir | --infodi | --infod | --info | --inf)
932 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
933 infodir=$ac_optarg ;;
935 -libdir | --libdir | --libdi | --libd)
937 -libdir=* | --libdir=* | --libdi=* | --libd=*)
940 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
941 | --libexe | --libex | --libe)
942 ac_prev=libexecdir ;;
943 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
944 | --libexe=* | --libex=* | --libe=*)
945 libexecdir=$ac_optarg ;;
947 -localedir | --localedir | --localedi | --localed | --locale)
949 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
950 localedir=$ac_optarg ;;
952 -localstatedir | --localstatedir | --localstatedi | --localstated \
953 | --localstate | --localstat | --localsta | --localst | --locals)
954 ac_prev=localstatedir ;;
955 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
956 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
957 localstatedir=$ac_optarg ;;
959 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
961 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
965 # Obsolete; use --without-fp.
968 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
969 | --no-cr | --no-c | -n)
972 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
973 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
976 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
977 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
978 | --oldin | --oldi | --old | --ol | --o)
979 ac_prev=oldincludedir ;;
980 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
981 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
982 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
983 oldincludedir=$ac_optarg ;;
985 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
987 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
990 -program-prefix | --program-prefix | --program-prefi | --program-pref \
991 | --program-pre | --program-pr | --program-p)
992 ac_prev=program_prefix ;;
993 -program-prefix=* | --program-prefix=* | --program-prefi=* \
994 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
995 program_prefix=$ac_optarg ;;
997 -program-suffix | --program-suffix | --program-suffi | --program-suff \
998 | --program-suf | --program-su | --program-s)
999 ac_prev=program_suffix ;;
1000 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1001 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1002 program_suffix=$ac_optarg ;;
1004 -program-transform-name | --program-transform-name \
1005 | --program-transform-nam | --program-transform-na \
1006 | --program-transform-n | --program-transform- \
1007 | --program-transform | --program-transfor \
1008 | --program-transfo | --program-transf \
1009 | --program-trans | --program-tran \
1010 | --progr-tra | --program-tr | --program-t)
1011 ac_prev=program_transform_name ;;
1012 -program-transform-name=* | --program-transform-name=* \
1013 | --program-transform-nam=* | --program-transform-na=* \
1014 | --program-transform-n=* | --program-transform-=* \
1015 | --program-transform=* | --program-transfor=* \
1016 | --program-transfo=* | --program-transf=* \
1017 | --program-trans=* | --program-tran=* \
1018 | --progr-tra=* | --program-tr=* | --program-t=*)
1019 program_transform_name=$ac_optarg ;;
1021 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1023 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1024 pdfdir=$ac_optarg ;;
1026 -psdir | --psdir | --psdi | --psd | --ps)
1028 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1032 | -silent | --silent | --silen | --sile | --sil)
1035 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1037 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1039 sbindir=$ac_optarg ;;
1041 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1042 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1043 | --sharedst | --shareds | --shared | --share | --shar \
1045 ac_prev=sharedstatedir ;;
1046 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1047 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1048 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1050 sharedstatedir=$ac_optarg ;;
1052 -site | --site | --sit)
1054 -site=* | --site=* | --sit=*)
1057 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1059 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1060 srcdir=$ac_optarg ;;
1062 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1063 | --syscon | --sysco | --sysc | --sys | --sy)
1064 ac_prev=sysconfdir ;;
1065 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1066 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1067 sysconfdir=$ac_optarg ;;
1069 -target | --target | --targe | --targ | --tar | --ta | --t)
1070 ac_prev=target_alias ;;
1071 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1072 target_alias=$ac_optarg ;;
1074 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1077 -version | --version | --versio | --versi | --vers | -V)
1078 ac_init_version=: ;;
1081 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1084 { echo "$as_me: error: invalid package name: $ac_package" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1087 eval with_$ac_package=\$ac_optarg ;;
1089 -without-* | --without-*)
1090 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1093 { echo "$as_me: error: invalid package name: $ac_package" >&2
1094 { (exit 1); exit 1; }; }
1095 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1096 eval with_$ac_package=no ;;
1099 # Obsolete; use --with-x.
1102 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1103 | --x-incl | --x-inc | --x-in | --x-i)
1104 ac_prev=x_includes ;;
1105 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1106 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1107 x_includes=$ac_optarg ;;
1109 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1110 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1111 ac_prev=x_libraries ;;
1112 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1113 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1114 x_libraries=$ac_optarg ;;
1116 -*) { echo "$as_me: error: unrecognized option: $ac_option
1117 Try \`$0 --help' for more information." >&2
1118 { (exit 1); exit 1; }; }
1122 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1125 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1126 { (exit 1); exit 1; }; }
1127 eval $ac_envvar=\$ac_optarg
1128 export $ac_envvar ;;
1131 # FIXME: should be removed in autoconf 3.0.
1132 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1133 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1134 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1135 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1141 if test -n "$ac_prev"; then
1142 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1143 { echo "$as_me: error: missing argument to $ac_option" >&2
1144 { (exit 1); exit 1; }; }
1147 # Be sure to have absolute directory names.
1148 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1149 datadir sysconfdir sharedstatedir localstatedir includedir \
1150 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1151 libdir localedir mandir
1153 eval ac_val=\$$ac_var
1155 [\\/$]* | ?:[\\/]* ) continue;;
1156 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1158 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1159 { (exit 1); exit 1; }; }
1162 # There might be people who depend on the old broken behavior: `$host'
1163 # used to hold the argument of --host etc.
1164 # FIXME: To remove some day.
1167 target=$target_alias
1169 # FIXME: To remove some day.
1170 if test "x$host_alias" != x; then
1171 if test "x$build_alias" = x; then
1172 cross_compiling=maybe
1173 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1174 If a cross compiler is detected then cross compile mode will be used." >&2
1175 elif test "x$build_alias" != "x$host_alias"; then
1181 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1183 test "$silent" = yes && exec 6>/dev/null
1186 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1187 ac_ls_di=`ls -di .` &&
1188 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1189 { echo "$as_me: error: Working directory cannot be determined" >&2
1190 { (exit 1); exit 1; }; }
1191 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1192 { echo "$as_me: error: pwd does not report name of working directory" >&2
1193 { (exit 1); exit 1; }; }
1196 # Find the source files, if location was not specified.
1197 if test -z "$srcdir"; then
1198 ac_srcdir_defaulted=yes
1199 # Try the directory containing this script, then the parent directory.
1200 ac_confdir=`$as_dirname -- "$0" ||
1201 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1202 X"$0" : 'X\(//\)[^/]' \| \
1203 X"$0" : 'X\(//\)$' \| \
1204 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224 if test ! -r "$srcdir/$ac_unique_file"; then
1228 ac_srcdir_defaulted=no
1230 if test ! -r "$srcdir/$ac_unique_file"; then
1231 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1232 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1233 { (exit 1); exit 1; }; }
1235 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1237 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1238 { (exit 1); exit 1; }; }
1240 # When building in place, set srcdir=.
1241 if test "$ac_abs_confdir" = "$ac_pwd"; then
1244 # Remove unnecessary trailing slashes from srcdir.
1245 # Double slashes in file names in object file debugging info
1246 # mess up M-x gdb in Emacs.
1248 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1250 for ac_var in $ac_precious_vars; do
1251 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1252 eval ac_env_${ac_var}_value=\$${ac_var}
1253 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1254 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1258 # Report the --help message.
1260 if test "$ac_init_help" = "long"; then
1261 # Omit some internal or obsolete options to make the list less imposing.
1262 # This message is too long to be a string in the A/UX 3.1 sh.
1264 \`configure' configures this package to adapt to many kinds of systems.
1266 Usage: $0 [OPTION]... [VAR=VALUE]...
1268 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1269 VAR=VALUE. See below for descriptions of some of the useful variables.
1271 Defaults for the options are specified in brackets.
1274 -h, --help display this help and exit
1275 --help=short display options specific to this package
1276 --help=recursive display the short help of all the included packages
1277 -V, --version display version information and exit
1278 -q, --quiet, --silent do not print \`checking...' messages
1279 --cache-file=FILE cache test results in FILE [disabled]
1280 -C, --config-cache alias for \`--cache-file=config.cache'
1281 -n, --no-create do not create output files
1282 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1284 Installation directories:
1285 --prefix=PREFIX install architecture-independent files in PREFIX
1286 [$ac_default_prefix]
1287 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1290 By default, \`make install' will install all the files in
1291 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1292 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1293 for instance \`--prefix=\$HOME'.
1295 For better control, use the options below.
1297 Fine tuning of the installation directories:
1298 --bindir=DIR user executables [EPREFIX/bin]
1299 --sbindir=DIR system admin executables [EPREFIX/sbin]
1300 --libexecdir=DIR program executables [EPREFIX/libexec]
1301 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1302 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1303 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1304 --libdir=DIR object code libraries [EPREFIX/lib]
1305 --includedir=DIR C header files [PREFIX/include]
1306 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1307 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1308 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1309 --infodir=DIR info documentation [DATAROOTDIR/info]
1310 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1311 --mandir=DIR man documentation [DATAROOTDIR/man]
1312 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1313 --htmldir=DIR html documentation [DOCDIR]
1314 --dvidir=DIR dvi documentation [DOCDIR]
1315 --pdfdir=DIR pdf documentation [DOCDIR]
1316 --psdir=DIR ps documentation [DOCDIR]
1322 --program-prefix=PREFIX prepend PREFIX to installed program names
1323 --program-suffix=SUFFIX append SUFFIX to installed program names
1324 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1327 --build=BUILD configure for building on BUILD [guessed]
1328 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1329 --target=TARGET configure for building compilers for TARGET [HOST]
1333 if test -n "$ac_init_help"; then
1338 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1339 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1340 --enable-libada Builds libada directory
1341 --enable-libssp Builds libssp directory
1342 --enable-stage1-languages=all choose additional languages to build during
1343 stage1. Mostly useful for compiler development.
1344 --enable-objc-gc enable the use of Boehm's garbage collector with
1345 the GNU Objective-C runtime.
1346 --enable-bootstrap Enable bootstrapping yes if native build
1347 --enable-serial-{host,target,build}-configure
1348 Force sequential configuration of
1349 sub-packages for the host, target or build
1350 machine, or all sub-packages
1351 --enable-maintainer-mode enable make rules and dependencies not useful
1352 (and sometimes confusing) to the casual installer
1353 --enable-stage1-checking=all choose additional checking for stage1
1355 --enable-werror enable -Werror in bootstrap stage2 and later
1358 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1359 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1360 --with-build-libsubdir=DIR Directory where to find libraries for build system
1361 --with-mpfr-dir=PATH This option has been REMOVED
1362 --with-mpfr=PATH Specify prefix directory for installed MPFR package
1363 Equivalent to --with-mpfr-include=PATH/include
1364 plus --with-mpfr-lib=PATH/lib
1365 --with-mpfr-include=PATH
1366 Specify directory for installed MPFR include files
1367 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library
1368 --with-gmp-dir=PATH This option has been REMOVED
1369 --with-gmp=PATH Specify prefix directory for the installed GMP package
1370 Equivalent to --with-gmp-include=PATH/include
1371 plus --with-gmp-lib=PATH/lib
1372 --with-gmp-include=PATH Specify directory for installed GMP include files
1373 --with-gmp-lib=PATH Specify the directory for the installed GMP library
1374 --with-build-sysroot=sysroot
1375 use sysroot as the system root during the build
1376 --with-build-time-tools=path
1377 use given path to find target tools during the build
1378 --with-datarootdir Use datarootdir as the data root directory.
1379 --with-docdir Install documentation in this directory.
1380 --with-pdfdir Install pdf in this directory.
1381 --with-htmldir Install html in this directory.
1383 Some influential environment variables:
1384 CC C compiler command
1385 CFLAGS C compiler flags
1386 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1387 nonstandard directory <lib dir>
1388 LIBS libraries to pass to the linker, e.g. -l<library>
1389 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1390 you have headers in a nonstandard directory <include dir>
1391 CXX C++ compiler command
1392 CXXFLAGS C++ compiler flags
1395 DLLTOOL DLLTOOL for the host
1397 LIPO LIPO for the host
1399 RANLIB RANLIB for the host
1400 STRIP STRIP for the host
1401 WINDRES WINDRES for the host
1402 OBJCOPY OBJCOPY for the host
1403 OBJDUMP OBJDUMP for the host
1413 GFORTRAN for the target
1419 DLLTOOL for the target
1427 OBJDUMP for the target
1429 RANLIB for the target
1431 STRIP for the target
1433 WINDRES for the target
1435 Use these variables to override the choices made by `configure' or to help
1436 it to find libraries and programs with nonstandard names/locations.
1442 if test "$ac_init_help" = "recursive"; then
1443 # If there are subdirs, report their specific --help.
1444 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1445 test -d "$ac_dir" || continue
1449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1452 # A ".." for each directory in $ac_dir_suffix.
1453 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1454 case $ac_top_builddir_sub in
1455 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1459 ac_abs_top_builddir=$ac_pwd
1460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461 # for backward compatibility:
1462 ac_top_builddir=$ac_top_build_prefix
1465 .) # We are building in place.
1467 ac_top_srcdir=$ac_top_builddir_sub
1468 ac_abs_top_srcdir=$ac_pwd ;;
1469 [\\/]* | ?:[\\/]* ) # Absolute name.
1470 ac_srcdir=$srcdir$ac_dir_suffix;
1471 ac_top_srcdir=$srcdir
1472 ac_abs_top_srcdir=$srcdir ;;
1474 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475 ac_top_srcdir=$ac_top_build_prefix$srcdir
1476 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1480 cd "$ac_dir" || { ac_status=$?; continue; }
1481 # Check for guested configure.
1482 if test -f "$ac_srcdir/configure.gnu"; then
1484 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485 elif test -f "$ac_srcdir/configure"; then
1487 $SHELL "$ac_srcdir/configure" --help=recursive
1489 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1491 cd "$ac_pwd" || { ac_status=$?; break; }
1495 test -n "$ac_init_help" && exit $ac_status
1496 if $ac_init_version; then
1499 generated by GNU Autoconf 2.61
1501 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1502 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1503 This configure script is free software; the Free Software Foundation
1504 gives unlimited permission to copy, distribute and modify it.
1508 cat >config.log <<_ACEOF
1509 This file contains any messages produced by compilers while
1510 running configure, to aid debugging if configure makes a mistake.
1512 It was created by $as_me, which was
1513 generated by GNU Autoconf 2.61. Invocation command line was
1525 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1526 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1527 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1528 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1529 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1531 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1532 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1534 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1535 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1536 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1537 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1538 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1539 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1540 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548 test -z "$as_dir" && as_dir=.
1549 echo "PATH: $as_dir"
1565 # Keep a trace of the command line.
1566 # Strip out --no-create and --no-recursion so they do not pile up.
1567 # Strip out --silent because we don't want to record it for future runs.
1568 # Also quote any args containing shell meta-characters.
1569 # Make two passes to allow for proper duplicate-argument suppression.
1573 ac_must_keep_next=false
1579 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1580 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1581 | -silent | --silent | --silen | --sile | --sil)
1584 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1587 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1589 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1590 if test $ac_must_keep_next = true; then
1591 ac_must_keep_next=false # Got value, back to normal.
1594 *=* | --config-cache | -C | -disable-* | --disable-* \
1595 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1596 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1597 | -with-* | --with-* | -without-* | --without-* | --x)
1598 case "$ac_configure_args0 " in
1599 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1602 -* ) ac_must_keep_next=true ;;
1605 ac_configure_args="$ac_configure_args '$ac_arg'"
1610 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1611 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1613 # When interrupted or exit'd, cleanup temporary files, and complete
1614 # config.log. We remove comments because anyway the quotes in there
1615 # would cause problems or look ugly.
1616 # WARNING: Use '\'' to represent an apostrophe within the trap.
1617 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1618 trap 'exit_status=$?
1619 # Save into config.log some information that might help in debugging.
1624 ## ---------------- ##
1625 ## Cache variables. ##
1626 ## ---------------- ##
1629 # The following way of writing the cache mishandles newlines in values,
1631 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1632 eval ac_val=\$$ac_var
1636 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1637 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1640 _ | IFS | as_nl) ;; #(
1641 *) $as_unset $ac_var ;;
1646 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1647 *${as_nl}ac_space=\ *)
1649 "s/'\''/'\''\\\\'\'''\''/g;
1650 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1653 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1661 ## ----------------- ##
1662 ## Output variables. ##
1663 ## ----------------- ##
1666 for ac_var in $ac_subst_vars
1668 eval ac_val=\$$ac_var
1670 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1672 echo "$ac_var='\''$ac_val'\''"
1676 if test -n "$ac_subst_files"; then
1678 ## ------------------- ##
1679 ## File substitutions. ##
1680 ## ------------------- ##
1683 for ac_var in $ac_subst_files
1685 eval ac_val=\$$ac_var
1687 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1689 echo "$ac_var='\''$ac_val'\''"
1694 if test -s confdefs.h; then
1704 test "$ac_signal" != 0 &&
1705 echo "$as_me: caught signal $ac_signal"
1706 echo "$as_me: exit $exit_status"
1708 rm -f core *.core core.conftest.* &&
1709 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1712 for ac_signal in 1 2 13 15; do
1713 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1717 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1718 rm -f -r conftest* confdefs.h
1720 # Predefined preprocessor variables.
1722 cat >>confdefs.h <<_ACEOF
1723 #define PACKAGE_NAME "$PACKAGE_NAME"
1727 cat >>confdefs.h <<_ACEOF
1728 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1732 cat >>confdefs.h <<_ACEOF
1733 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1737 cat >>confdefs.h <<_ACEOF
1738 #define PACKAGE_STRING "$PACKAGE_STRING"
1742 cat >>confdefs.h <<_ACEOF
1743 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1747 # Let the site file select an alternate cache file if it wants to.
1748 # Prefer explicitly selected file to automatically selected ones.
1749 if test -n "$CONFIG_SITE"; then
1750 set x "$CONFIG_SITE"
1751 elif test "x$prefix" != xNONE; then
1752 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1754 set x "$ac_default_prefix/share/config.site" \
1755 "$ac_default_prefix/etc/config.site"
1760 if test -r "$ac_site_file"; then
1761 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1762 echo "$as_me: loading site script $ac_site_file" >&6;}
1763 sed 's/^/| /' "$ac_site_file" >&5
1768 if test -r "$cache_file"; then
1769 # Some versions of bash will fail to source /dev/null (special
1770 # files actually), so we avoid doing that.
1771 if test -f "$cache_file"; then
1772 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1773 echo "$as_me: loading cache $cache_file" >&6;}
1775 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1776 *) . "./$cache_file";;
1780 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1781 echo "$as_me: creating cache $cache_file" >&6;}
1785 # Check that the precious variables saved in the cache have kept the same
1787 ac_cache_corrupted=false
1788 for ac_var in $ac_precious_vars; do
1789 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1790 eval ac_new_set=\$ac_env_${ac_var}_set
1791 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1792 eval ac_new_val=\$ac_env_${ac_var}_value
1793 case $ac_old_set,$ac_new_set in
1795 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1796 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1797 ac_cache_corrupted=: ;;
1799 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1800 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1801 ac_cache_corrupted=: ;;
1804 if test "x$ac_old_val" != "x$ac_new_val"; then
1805 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1806 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1807 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1808 echo "$as_me: former value: $ac_old_val" >&2;}
1809 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1810 echo "$as_me: current value: $ac_new_val" >&2;}
1811 ac_cache_corrupted=:
1814 # Pass precious variables to config.status.
1815 if test "$ac_new_set" = set; then
1817 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1818 *) ac_arg=$ac_var=$ac_new_val ;;
1820 case " $ac_configure_args " in
1821 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1822 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1826 if $ac_cache_corrupted; then
1827 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1828 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1829 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1830 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1831 { (exit 1); exit 1; }; }
1851 ac_cpp='$CPP $CPPFLAGS'
1852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1859 # Find the build, host, and target systems.
1861 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1862 if test -f "$ac_dir/install-sh"; then
1864 ac_install_sh="$ac_aux_dir/install-sh -c"
1866 elif test -f "$ac_dir/install.sh"; then
1868 ac_install_sh="$ac_aux_dir/install.sh -c"
1870 elif test -f "$ac_dir/shtool"; then
1872 ac_install_sh="$ac_aux_dir/shtool install -c"
1876 if test -z "$ac_aux_dir"; then
1877 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1878 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1879 { (exit 1); exit 1; }; }
1882 # These three variables are undocumented and unsupported,
1883 # and are intended to be withdrawn in a future Autoconf release.
1884 # They can cause serious problems if a builder's source tree is in a directory
1885 # whose full name contains unusual characters.
1886 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1887 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1888 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1891 # Make sure we can run config.sub.
1892 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1893 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1894 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1895 { (exit 1); exit 1; }; }
1897 { echo "$as_me:$LINENO: checking build system type" >&5
1898 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1899 if test "${ac_cv_build+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 ac_build_alias=$build_alias
1903 test "x$ac_build_alias" = x &&
1904 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1905 test "x$ac_build_alias" = x &&
1906 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1907 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1908 { (exit 1); exit 1; }; }
1909 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1910 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1911 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1912 { (exit 1); exit 1; }; }
1915 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1916 echo "${ECHO_T}$ac_cv_build" >&6; }
1917 case $ac_cv_build in
1919 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1920 echo "$as_me: error: invalid value of canonical build" >&2;}
1921 { (exit 1); exit 1; }; };;
1924 ac_save_IFS=$IFS; IFS='-'
1930 # Remember, the first character of IFS is used to create $*,
1931 # except with old shells:
1934 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1937 case ${build_alias} in
1938 "") build_noncanonical=${build} ;;
1939 *) build_noncanonical=${build_alias} ;;
1944 case ${host_alias} in
1945 "") host_noncanonical=${build_noncanonical} ;;
1946 *) host_noncanonical=${host_alias} ;;
1951 case ${target_alias} in
1952 "") target_noncanonical=${host_noncanonical} ;;
1953 *) target_noncanonical=${target_alias} ;;
1959 test "$host_noncanonical" = "$target_noncanonical" &&
1960 test "$program_prefix$program_suffix$program_transform_name" = \
1962 program_transform_name=s,y,y,
1964 { echo "$as_me:$LINENO: checking host system type" >&5
1965 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1966 if test "${ac_cv_host+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 if test "x$host_alias" = x; then
1970 ac_cv_host=$ac_cv_build
1972 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1973 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1974 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1975 { (exit 1); exit 1; }; }
1979 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1980 echo "${ECHO_T}$ac_cv_host" >&6; }
1983 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1984 echo "$as_me: error: invalid value of canonical host" >&2;}
1985 { (exit 1); exit 1; }; };;
1988 ac_save_IFS=$IFS; IFS='-'
1994 # Remember, the first character of IFS is used to create $*,
1995 # except with old shells:
1998 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2001 { echo "$as_me:$LINENO: checking target system type" >&5
2002 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2003 if test "${ac_cv_target+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 if test "x$target_alias" = x; then
2007 ac_cv_target=$ac_cv_host
2009 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2010 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2011 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2012 { (exit 1); exit 1; }; }
2016 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2017 echo "${ECHO_T}$ac_cv_target" >&6; }
2018 case $ac_cv_target in
2020 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2021 echo "$as_me: error: invalid value of canonical target" >&2;}
2022 { (exit 1); exit 1; }; };;
2024 target=$ac_cv_target
2025 ac_save_IFS=$IFS; IFS='-'
2031 # Remember, the first character of IFS is used to create $*,
2032 # except with old shells:
2035 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2038 # The aliases save the names the user supplied, while $host etc.
2039 # will get canonicalized.
2040 test -n "$target_alias" &&
2041 test "$program_prefix$program_suffix$program_transform_name" = \
2043 program_prefix=${target_alias}-
2044 test "$program_prefix" != NONE &&
2045 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2046 # Use a double $ so make ignores it.
2047 test "$program_suffix" != NONE &&
2048 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2049 # Double any \ or $. echo might interpret backslashes.
2050 # By default was `s,x,x', remove it if useless.
2051 cat <<\_ACEOF >conftest.sed
2052 s/[\\$]/&&/g;s/;s,x,x,$//
2054 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2059 # Get 'install' or 'install-sh' and its variants.
2060 # Find a good install program. We prefer a C program (faster),
2061 # so one script is as good as another. But avoid the broken or
2062 # incompatible versions:
2063 # SysV /etc/install, /usr/sbin/install
2064 # SunOS /usr/etc/install
2065 # IRIX /sbin/install
2067 # AmigaOS /C/install, which installs bootblocks on floppy discs
2068 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2069 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2070 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2071 # OS/2's system install, which has a completely different semantic
2072 # ./install, which can be erroneously created by make from ./install.sh.
2073 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2074 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2075 if test -z "$INSTALL"; then
2076 if test "${ac_cv_path_install+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 test -z "$as_dir" && as_dir=.
2084 # Account for people who put trailing slashes in PATH elements.
2086 ./ | .// | /cC/* | \
2087 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2088 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2091 # OSF1 and SCO ODT 3.0 have their own names for install.
2092 # Don't use installbsd from OSF since it installs stuff as root
2094 for ac_prog in ginstall scoinst install; do
2095 for ac_exec_ext in '' $ac_executable_extensions; do
2096 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2097 if test $ac_prog = install &&
2098 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2099 # AIX install. It has an incompatible calling convention.
2101 elif test $ac_prog = install &&
2102 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2103 # program-specific install script used by HP pwplus--don't use.
2106 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2119 if test "${ac_cv_path_install+set}" = set; then
2120 INSTALL=$ac_cv_path_install
2122 # As a last resort, use the slow shell script. Don't cache a
2123 # value for INSTALL within a source directory, because that will
2124 # break other packages using the cache if that directory is
2125 # removed, or if the value is a relative name.
2126 INSTALL=$ac_install_sh
2129 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2130 echo "${ECHO_T}$INSTALL" >&6; }
2132 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2133 # It thinks the first close brace ends the variable substitution.
2134 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2136 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2138 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2140 { echo "$as_me:$LINENO: checking whether ln works" >&5
2141 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
2142 if test "${acx_cv_prog_LN+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 rm -f conftestdata_t
2146 echo >conftestdata_f
2147 if ln conftestdata_f conftestdata_t 2>/dev/null
2153 rm -f conftestdata_f conftestdata_t
2156 if test $acx_cv_prog_LN = no; then
2158 { echo "$as_me:$LINENO: result: no, using $LN" >&5
2159 echo "${ECHO_T}no, using $LN" >&6; }
2161 LN="$acx_cv_prog_LN"
2162 { echo "$as_me:$LINENO: result: yes" >&5
2163 echo "${ECHO_T}yes" >&6; }
2166 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
2167 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2169 if test "$LN_S" = "ln -s"; then
2170 { echo "$as_me:$LINENO: result: yes" >&5
2171 echo "${ECHO_T}yes" >&6; }
2173 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2174 echo "${ECHO_T}no, using $LN_S" >&6; }
2178 ### we might need to use some other shell than /bin/sh for running subshells
2179 ### If we are on Windows, search for the shell. This will permit people
2180 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2181 ### without also having to set CONFIG_SHELL. This code will work when
2182 ### using bash, which sets OSTYPE.
2185 if test x${CONFIG_SHELL} = x ; then
2186 if test ! -f /bin/sh ; then
2187 if test x${SHELL} != x && test -f ${SHELL} ; then
2188 CONFIG_SHELL=${SHELL}
2191 for prog in sh sh.exe bash bash.exe; do
2192 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2193 for dir in $PATH; do
2194 test -z "$dir" && dir=.
2195 if test -f $dir/$prog; then
2196 CONFIG_SHELL=$dir/$prog
2202 test -n "${CONFIG_SHELL}" && break
2210 config_shell=${CONFIG_SHELL-/bin/sh}
2213 # if PWD already has a value, it is probably wrong.
2214 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2216 # Export original configure arguments for use by sub-configures.
2217 # Quote arguments with shell meta charatcers.
2218 TOPLEVEL_CONFIGURE_ARGUMENTS=
2219 set -- "$progname" "$@"
2223 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2224 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2225 # if the argument is of the form -foo=baz, quote the baz part only
2226 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2229 # Add the quoted argument to the list.
2230 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2232 # Remove the initial space we just introduced and, as these will be
2233 # expanded by make, quote '$'.
2234 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2237 moveifchange=${srcdir}/move-if-change
2239 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2241 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2243 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2244 INSTALL="${srcpwd}/install-sh -c"
2247 # Set srcdir to "." if that's what it is.
2248 # This is important for multilib support.
2250 if test "${pwd}" = "${srcpwd}" ; then
2258 ### To add a new directory to the tree, first choose whether it is a target
2259 ### or a host dependent tool. Then put it into the appropriate list
2260 ### (library or tools, host or target), doing a dependency sort.
2262 # Subdirs will be configured in the order listed in build_configdirs,
2263 # configdirs, or target_configdirs; see the serialization section below.
2265 # Dependency sorting is only needed when *configuration* must be done in
2266 # a particular order. In all cases a dependency should be specified in
2267 # the Makefile, whether or not it's implicitly specified here.
2269 # Double entries in build_configdirs, configdirs, or target_configdirs may
2270 # cause circular dependencies and break everything horribly.
2272 # these library is used by various programs built for the build
2275 build_libs="build-libiberty"
2277 # these tools are built for the build environment
2278 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2280 # these libraries are used by various programs built for the host environment
2282 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
2284 # these tools are built for the host environment
2285 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2286 # know that we are building the simulator.
2287 # binutils, gas and ld appear in that order because it makes sense to run
2288 # "make check" in that particular order.
2289 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"
2291 # libgcj represents the runtime libraries only used by gcj.
2292 libgcj="target-libffi \
2297 # these libraries are built for the target environment, and are built after
2298 # the host libraries and the host tools (which may be a cross compiler)
2300 target_libraries="target-libgcc \
2304 target-libstdc++-v3 \
2307 target-libgfortran \
2314 # these tools are built using the target libraries, and are intended to
2315 # run only in the target environment
2317 # note: any program that *uses* libraries that are in the "target_libraries"
2318 # list belongs in this list. those programs are also very likely
2319 # candidates for the "native_only" list which follows
2321 target_tools="target-examples target-groff target-gperf target-rda"
2323 ################################################################################
2325 ## All tools belong in one of the four categories, and are assigned above
2326 ## We assign ${configdirs} this way to remove all embedded newlines. This
2327 ## is important because configure will choke if they ever get through.
2328 ## ${configdirs} is directories we build using the host tools.
2329 ## ${target_configdirs} is directories we build using the target tools.
2330 configdirs=`echo ${host_libs} ${host_tools}`
2331 target_configdirs=`echo ${target_libraries} ${target_tools}`
2332 build_configdirs=`echo ${build_libs} ${build_tools}`
2334 ################################################################################
2336 srcname="gnu development package"
2338 # This gets set non-empty for some net releases of packages.
2341 # Define is_cross_compiler to save on calls to 'test'.
2343 if test x"${host}" = x"${target}" ; then
2344 is_cross_compiler=no
2346 is_cross_compiler=yes
2349 # Find the build and target subdir names.
2351 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2352 # have matching libraries, they should use host libraries: Makefile.tpl
2353 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2354 # However, they still use the build modules, because the corresponding
2355 # host modules (e.g. bison) are only built for the host when bootstrap
2357 # - build_subdir is where we find build modules, and never changes.
2358 # - build_libsubdir is where we find build libraries, and can be overridden.
2360 # Prefix 'build-' so this never conflicts with target_subdir.
2361 build_subdir="build-${build_noncanonical}"
2363 # Check whether --with-build-libsubdir was given.
2364 if test "${with_build_libsubdir+set}" = set; then
2365 withval=$with_build_libsubdir; build_libsubdir="$withval"
2367 build_libsubdir="$build_subdir"
2370 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2371 if ( test $srcdir = . && test -d gcc ) \
2372 || test -d $srcdir/../host-${host_noncanonical}; then
2373 host_subdir="host-${host_noncanonical}"
2378 target_subdir=${target_noncanonical}
2381 # Skipdirs are removed silently.
2383 # Noconfigdirs are removed loudly.
2387 # Make sure we don't let GNU ld be added if we didn't want it.
2388 if test x$with_gnu_ld = xno ; then
2390 noconfigdirs="$noconfigdirs ld"
2394 # Make sure we don't let GNU as be added if we didn't want it.
2395 if test x$with_gnu_as = xno ; then
2397 noconfigdirs="$noconfigdirs gas"
2400 # some tools are so dependent upon X11 that if we're not building with X,
2401 # it's not even worth trying to configure, much less build, that tool.
2404 yes | "") ;; # the default value for this tree is that X11 is available
2406 skipdirs="${skipdirs} tk itcl libgui"
2407 # We won't be able to build gdbtk without X.
2410 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2413 # Some tools are only suitable for building in a "native" situation.
2414 # Remove these if host!=target.
2415 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"
2417 # Similarly, some are only suitable for cross toolchains.
2418 # Remove these if host=target.
2419 cross_only="target-libgloss target-newlib target-opcodes"
2421 case $is_cross_compiler in
2422 no) skipdirs="${skipdirs} ${cross_only}" ;;
2423 yes) skipdirs="${skipdirs} ${native_only}" ;;
2426 # If both --with-headers and --with-libs are specified, default to
2428 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2429 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2430 if test x"${with_newlib}" = x ; then
2435 # Recognize --with-newlib/--without-newlib.
2436 case ${with_newlib} in
2437 no) skipdirs="${skipdirs} target-newlib" ;;
2438 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2441 # Configure extra directories which are host specific
2445 configdirs="$configdirs libtermcap" ;;
2448 # A target can indicate whether a language isn't supported for some reason.
2449 # Only spaces may be used in this macro; not newlines or tabs.
2450 unsupported_languages=
2452 # Remove more programs from consideration, based on the host or
2453 # target this usually means that a port of the program doesn't
2458 noconfigdirs="$noconfigdirs byacc"
2460 i[3456789]86-*-vsta)
2461 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2463 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2464 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2467 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2469 i[3456789]86-*-mingw32*)
2470 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2471 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2473 i[3456789]86-*-beos*)
2474 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2477 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2480 noconfigdirs="$noconfigdirs rcs"
2483 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2486 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2491 # Check whether --enable-libada was given.
2492 if test "${enable_libada+set}" = set; then
2493 enableval=$enable_libada; ENABLE_LIBADA=$enableval
2498 if test "${ENABLE_LIBADA}" != "yes" ; then
2499 noconfigdirs="$noconfigdirs gnattools"
2502 # Check whether --enable-libssp was given.
2503 if test "${enable_libssp+set}" = set; then
2504 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2510 # Save it here so that, even in case of --enable-libgcj, if the Java
2511 # front-end isn't enabled, we still get libgcj disabled.
2512 libgcj_saved=$libgcj
2513 case $enable_libgcj in
2515 # If we reset it here, it won't get added to noconfigdirs in the
2516 # target-specific build rules, so it will be forcibly enabled
2517 # (unless the Java language itself isn't enabled).
2521 # Make sure we get it printed in the list of not supported target libs.
2522 noconfigdirs="$noconfigdirs ${libgcj}"
2527 # Disable libmudflap on some systems.
2528 if test x$enable_libmudflap = x ; then
2530 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2531 # Enable libmudflap by default in GNU and friends.
2534 # Enable libmudflap by default in FreeBSD.
2537 # Disable it by default everywhere else.
2538 noconfigdirs="$noconfigdirs target-libmudflap"
2543 # Disable libgomp on non POSIX hosted systems.
2544 if test x$enable_libgomp = x ; then
2545 # Enable libgomp by default on hosted POSIX systems.
2547 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2549 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2551 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2553 *-*-darwin* | *-*-aix*)
2556 noconfigdirs="$noconfigdirs target-libgomp"
2564 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2566 powerpc-*-darwin* | i[3456789]86-*-darwin*)
2567 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
2568 noconfigdirs="$noconfigdirs sim target-rda"
2571 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2572 noconfigdirs="$noconfigdirs sim target-rda"
2573 noconfigdirs="$noconfigdirs ${libgcj}"
2575 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2576 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2579 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2580 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2581 && test -f /usr/local/include/gmp.h; then
2585 # Skip some stuff that's unsupported on some FreeBSD configurations.
2590 noconfigdirs="$noconfigdirs ${libgcj}"
2595 # Remove unsupported stuff on all kaOS configurations.
2596 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
2597 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2598 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2599 noconfigdirs="$noconfigdirs target-libgloss"
2602 # Skip some stuff on all NetBSD configurations.
2603 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2605 # Skip some stuff that's unsupported on some NetBSD configurations.
2607 i*86-*-netbsdelf*) ;;
2608 arm*-*-netbsdelf*) ;;
2610 noconfigdirs="$noconfigdirs ${libgcj}"
2615 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2618 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2620 # The tpf target doesn't support gdb yet.
2622 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2625 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2628 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2631 # ld works, but does not support shared libraries.
2632 # newlib is not 64 bit ready. I'm not sure about fileutils.
2633 # gas doesn't generate exception information.
2634 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2637 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2640 # newlib is not 64 bit ready
2641 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2644 # newlib is not 64 bit ready
2645 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2648 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2651 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2653 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2654 noconfigdirs="$noconfigdirs ${libgcj}"
2655 noconfigdirs="$noconfigdirs target-examples"
2656 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2657 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2658 noconfigdirs="$noconfigdirs expect dejagnu"
2659 # the C++ libraries don't build on top of CE's C libraries
2660 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2661 noconfigdirs="$noconfigdirs target-newlib"
2663 *-*-cygwin*) ;; # keep gdb and readline
2664 *) noconfigdirs="$noconfigdirs gdb readline"
2669 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2673 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2674 noconfigdirs="$noconfigdirs ${libgcj}"
2676 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2677 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2679 arm*-*-linux-gnueabi)
2680 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2681 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2684 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2687 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2690 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2693 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2696 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2699 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2702 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2705 noconfigdirs="$noconfigdirs gdb"
2706 if test x${is_cross_compiler} != xno ; then
2707 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2710 c4x-*-* | tic4x-*-*)
2711 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2713 c54x*-*-* | tic54x-*-*)
2714 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2716 cris-*-* | crisv32-*-*)
2717 unsupported_languages="$unsupported_languages java"
2720 unsupported_languages="$unsupported_languages fortran"
2721 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2723 unsupported_languages="$unsupported_languages fortran"
2724 noconfigdirs="$noconfigdirs target-boehm-gc";;
2726 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2728 unsupported_languages="$unsupported_languages fortran"
2729 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2733 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2736 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2739 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2742 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2745 noconfigdirs="$noconfigdirs ${libgcj}"
2748 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2751 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2753 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2755 hppa*64*-*-linux* | parisc*64*-*-linux*)
2756 # In this case, it's because the hppa64-linux target is for
2757 # the kernel only at this point and has no libc, and thus no
2758 # headers, crt*.o, etc., all of which are needed by these.
2759 noconfigdirs="$noconfigdirs target-zlib"
2761 parisc*-*-linux* | hppa*-*-linux*)
2765 hppa*-*-openbsd* | \
2767 noconfigdirs="$noconfigdirs ${libgcj}"
2770 noconfigdirs="$noconfigdirs ld shellutils"
2773 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2774 # build on HP-UX 10.20.
2775 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2778 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2781 # No gdb support yet.
2782 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2785 # No gdb or ld support yet.
2786 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2790 i[3456789]86-*-coff | i[3456789]86-*-elf)
2791 noconfigdirs="$noconfigdirs ${libgcj}"
2793 i[3456789]86-*-linux*)
2794 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2795 # not build java stuff by default.
2798 noconfigdirs="$noconfigdirs ${libgcj}";;
2801 # This section makes it possible to build newlib natively on linux.
2802 # If we are using a cross compiler then don't configure newlib.
2803 if test x${is_cross_compiler} != xno ; then
2804 noconfigdirs="$noconfigdirs target-newlib"
2806 noconfigdirs="$noconfigdirs target-libgloss"
2807 # If we are not using a cross compiler, do configure newlib.
2808 # Note however, that newlib will only be configured in this situation
2809 # if the --with-newlib option has been given, because otherwise
2810 # 'target-newlib' will appear in skipdirs.
2812 i[3456789]86-*-mingw32*)
2813 target_configdirs="$target_configdirs target-winsup"
2814 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2817 target_configdirs="$target_configdirs target-winsup"
2818 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2821 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2822 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2823 # always build newlib if winsup directory is present.
2824 if test -d "$srcdir/winsup/cygwin"; then
2825 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2826 elif test -d "$srcdir/newlib"; then
2827 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2830 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2831 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2834 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2836 i[3456789]86-*-sco3.2v5*)
2837 # The linker does not yet know about weak symbols in COFF,
2838 # and is not configured to handle mixed ELF and COFF.
2839 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2841 i[3456789]86-*-sco*)
2842 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2844 i[3456789]86-*-solaris2*)
2845 noconfigdirs="$noconfigdirs target-libgloss"
2847 i[3456789]86-*-sysv4*)
2848 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2850 i[3456789]86-*-beos*)
2851 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2853 i[3456789]86-*-rdos*)
2854 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2857 noconfigdirs="$noconfigdirs ${libgcj}"
2859 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2860 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2863 noconfigdirs="$noconfigdirs ${libgcj}"
2866 noconfigdirs="$noconfigdirs ${libgcj}"
2869 # The EPOC C++ environment does not support exceptions or rtti,
2870 # and so building libstdc++-v3 tends not to always work.
2871 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2874 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2875 unsupported_languages="$unsupported_languages fortran java"
2878 noconfigdirs="$noconfigdirs ${libgcj}"
2881 noconfigdirs="$noconfigdirs ${libgcj}"
2884 noconfigdirs="$noconfigdirs sim"
2887 # copied from rs6000-*-* entry
2888 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2890 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2891 target_configdirs="$target_configdirs target-winsup"
2892 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2893 # always build newlib.
2894 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2896 # This is temporary until we can link against shared libraries
2897 powerpcle-*-solaris*)
2898 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2901 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2904 noconfigdirs="$noconfigdirs ${libgcj}"
2906 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2909 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2912 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2915 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2918 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2921 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2924 # Linking libjava exceeds command-line length limits on at least
2925 # IRIX 6.2, but not on IRIX 6.5.
2926 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2927 # <oldham@codesourcery.com>
2928 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2931 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2934 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2937 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2940 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2943 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2947 i[3456789]86-*-vsta) ;; # don't add gprof back in
2948 i[3456789]86-*-go32*) ;; # don't add gprof back in
2949 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2950 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2952 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2955 noconfigdirs="$noconfigdirs ${libgcj}"
2958 noconfigdirs="$noconfigdirs ${libgcj}"
2961 noconfigdirs="$noconfigdirs ${libgcj}"
2964 noconfigdirs="$noconfigdirs ${libgcj}"
2965 if test x${is_cross_compiler} != xno ; then
2966 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2971 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2972 noconfigdirs="$noconfigdirs ${libgcj}"
2974 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2977 skipdirs="target-libssp"
2980 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2983 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2986 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2989 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2992 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2995 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2998 noconfigdirs="$noconfigdirs ${libgcj}"
3001 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3003 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
3004 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3007 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3010 noconfigdirs="$noconfigdirs ${libgcj}"
3014 # If we aren't building newlib, then don't build libgloss, since libgloss
3015 # depends upon some newlib header files.
3016 case "${noconfigdirs}" in
3017 *target-libgloss*) ;;
3018 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3021 # Work in distributions that contain no compiler tools, like Autoconf.
3023 host_makefile_frag=/dev/null
3024 if test -d ${srcdir}/config ; then
3027 # Avoid "too much defining" errors from HPUX compiler.
3028 tentative_cc="cc -Wp,-H256000"
3029 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3030 # If it's HP/UX ar, this should be harmless.
3034 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3037 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3038 # chokes on bfd, the compiler won't let you assign integers to enums, and
3039 # other problems. Defining CC to gcc is a questionable way to say "don't use
3040 # the apollo compiler" (the preferred version of GCC could be called cc,
3041 # or whatever), but I'm not sure leaving CC as cc is any better...
3042 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3043 # Used to have BISON=yacc.
3047 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3050 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3051 tentative_cc="cc -Xa"
3052 host_makefile_frag="config/mh-cxux"
3054 m88k-motorola-sysv*)
3057 tentative_cc="cc -Wf,-XNg1000"
3058 host_makefile_frag="config/mh-decstation"
3061 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3062 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3063 host_makefile_frag="config/mh-necv4"
3066 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3067 # environment. Also bump switch table size so that cp-parse will
3068 # compile. Bump string length limit so linker builds.
3069 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3072 host_makefile_frag="config/mh-sysv4"
3075 # This is for a MIPS running RISC/os 4.52C.
3077 # This is needed for GDB, but needs to be in the top-level make because
3078 # if a library is compiled with the bsd headers and gets linked with the
3079 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3080 # a different size).
3081 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3082 # known except to select the sysv environment. Could we use /proc instead?
3083 # These "sysv environments" and "bsd environments" often end up being a pain.
3085 # This is not part of CFLAGS because perhaps not all C compilers have this
3087 tentative_cc="cc -systype sysv"
3092 i[3456789]86-*-sysv5*)
3093 host_makefile_frag="config/mh-sysv5"
3095 i[3456789]86-*-dgux*)
3096 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3097 host_makefile_frag="config/mh-dgux386"
3099 i[3456789]86-ncr-sysv4.3*)
3100 # The MetaWare compiler will generate a copyright message unless you
3101 # turn it off by adding the -Hnocopyr flag.
3102 tentative_cc="cc -Hnocopyr"
3104 i[3456789]86-ncr-sysv4*)
3105 # for an NCR 3000 (i486/SVR4) system.
3106 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3107 # This compiler not only emits obnoxious copyright messages every time
3108 # you run it, but it chokes and dies on a whole bunch of GNU source
3109 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3110 tentative_cc="/usr/ccs/ATT/cc"
3111 host_makefile_frag="config/mh-ncr3000"
3113 i[3456789]86-*-sco3.2v5*)
3115 i[3456789]86-*-sco*)
3116 # The native C compiler botches some simple uses of const. Unfortunately,
3117 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3118 tentative_cc="cc -Dconst="
3119 host_makefile_frag="config/mh-sco"
3121 i[3456789]86-*-udk*)
3122 host_makefile_frag="config/mh-sysv5"
3124 i[3456789]86-*-solaris2*)
3125 host_makefile_frag="config/mh-sysv4"
3127 i[3456789]86-*-msdosdjgpp*)
3128 host_makefile_frag="config/mh-djgpp"
3131 host_makefile_frag="config/mh-cygwin"
3138 host_makefile_frag="config/mh-interix"
3141 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3145 host_makefile_frag="config/mh-solaris"
3148 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3149 # without overflowing the jump tables (-J says to use a 32 bit table)
3150 tentative_cc="cc -J"
3153 tentative_cc="cc -Wp,-H256000"
3156 tentative_cc="cc -Wp,-H256000"
3159 # /bin/cc is less than useful for our purposes. Always use GCC
3160 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3161 host_makefile_frag="config/mh-lynxrs6k"
3164 host_makefile_frag="config/mh-ppc-darwin"
3167 host_makefile_frag="config/mh-ppc-aix"
3170 host_makefile_frag="config/mh-ppc-aix"
3173 # /bin/cc is less than useful for our purposes. Always use GCC
3174 tentative_cc="/bin/gcc"
3177 host_makefile_frag="config/mh-sysv4"
3179 # This is placed last to prevent interfering with the cases above.
3181 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3182 host_makefile_frag="config/mh-x86omitfp"
3187 # If we aren't going to be using gcc, see if we can extract a definition
3188 # of CC from the fragment.
3189 # Actually, use the 'pre-extracted' version above.
3190 if test -z "${CC}" && test "${build}" = "${host}" ; then
3191 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3193 for dir in $PATH; do
3194 test -z "$dir" && dir=.
3195 if test -f $dir/gcc; then
3201 if test -z "${found}" && test -n "${tentative_cc}" ; then
3206 if test "${build}" != "${host}" ; then
3207 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3209 CC_FOR_BUILD="\$(CC)"
3213 ac_cpp='$CPP $CPPFLAGS'
3214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3217 if test -n "$ac_tool_prefix"; then
3218 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3219 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3222 if test "${ac_cv_prog_CC+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 if test -n "$CC"; then
3226 ac_cv_prog_CC="$CC" # Let the user override the test.
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3235 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 if test -n "$CC"; then
3247 { echo "$as_me:$LINENO: result: $CC" >&5
3248 echo "${ECHO_T}$CC" >&6; }
3250 { echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6; }
3256 if test -z "$ac_cv_prog_CC"; then
3258 # Extract the first word of "gcc", so it can be a program name with args.
3259 set dummy gcc; ac_word=$2
3260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 if test -n "$ac_ct_CC"; then
3266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275 ac_cv_prog_ac_ct_CC="gcc"
3276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3286 if test -n "$ac_ct_CC"; then
3287 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3288 echo "${ECHO_T}$ac_ct_CC" >&6; }
3290 { echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6; }
3294 if test "x$ac_ct_CC" = x; then
3297 case $cross_compiling:$ac_tool_warned in
3299 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3300 whose name does not start with the host triplet. If you think this
3301 configuration is useful to you, please write to autoconf@gnu.org." >&5
3302 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3303 whose name does not start with the host triplet. If you think this
3304 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3305 ac_tool_warned=yes ;;
3313 if test -z "$CC"; then
3314 if test -n "$ac_tool_prefix"; then
3315 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3316 set dummy ${ac_tool_prefix}cc; ac_word=$2
3317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3319 if test "${ac_cv_prog_CC+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3322 if test -n "$CC"; then
3323 ac_cv_prog_CC="$CC" # Let the user override the test.
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3332 ac_cv_prog_CC="${ac_tool_prefix}cc"
3333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3343 if test -n "$CC"; then
3344 { echo "$as_me:$LINENO: result: $CC" >&5
3345 echo "${ECHO_T}$CC" >&6; }
3347 { echo "$as_me:$LINENO: result: no" >&5
3348 echo "${ECHO_T}no" >&6; }
3354 if test -z "$CC"; then
3355 # Extract the first word of "cc", so it can be a program name with args.
3356 set dummy cc; ac_word=$2
3357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3359 if test "${ac_cv_prog_CC+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 if test -n "$CC"; then
3363 ac_cv_prog_CC="$CC" # Let the user override the test.
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3373 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3374 ac_prog_rejected=yes
3378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3385 if test $ac_prog_rejected = yes; then
3386 # We found a bogon in the path, so make sure we never use it.
3387 set dummy $ac_cv_prog_CC
3389 if test $# != 0; then
3390 # We chose a different compiler from the bogus one.
3391 # However, it has the same basename, so the bogon will be chosen
3392 # first if we set CC to just the basename; use the full file name.
3394 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3400 if test -n "$CC"; then
3401 { echo "$as_me:$LINENO: result: $CC" >&5
3402 echo "${ECHO_T}$CC" >&6; }
3404 { echo "$as_me:$LINENO: result: no" >&5
3405 echo "${ECHO_T}no" >&6; }
3410 if test -z "$CC"; then
3411 if test -n "$ac_tool_prefix"; then
3412 for ac_prog in cl.exe
3414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3418 if test "${ac_cv_prog_CC+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3421 if test -n "$CC"; then
3422 ac_cv_prog_CC="$CC" # Let the user override the test.
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 test -z "$as_dir" && as_dir=.
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3431 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3442 if test -n "$CC"; then
3443 { echo "$as_me:$LINENO: result: $CC" >&5
3444 echo "${ECHO_T}$CC" >&6; }
3446 { echo "$as_me:$LINENO: result: no" >&5
3447 echo "${ECHO_T}no" >&6; }
3451 test -n "$CC" && break
3454 if test -z "$CC"; then
3456 for ac_prog in cl.exe
3458 # Extract the first word of "$ac_prog", so it can be a program name with args.
3459 set dummy $ac_prog; ac_word=$2
3460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3462 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 if test -n "$ac_ct_CC"; then
3466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3475 ac_cv_prog_ac_ct_CC="$ac_prog"
3476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3486 if test -n "$ac_ct_CC"; then
3487 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3488 echo "${ECHO_T}$ac_ct_CC" >&6; }
3490 { echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6; }
3495 test -n "$ac_ct_CC" && break
3498 if test "x$ac_ct_CC" = x; then
3501 case $cross_compiling:$ac_tool_warned in
3503 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3504 whose name does not start with the host triplet. If you think this
3505 configuration is useful to you, please write to autoconf@gnu.org." >&5
3506 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3507 whose name does not start with the host triplet. If you think this
3508 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3509 ac_tool_warned=yes ;;
3518 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3519 See \`config.log' for more details." >&5
3520 echo "$as_me: error: no acceptable C compiler found in \$PATH
3521 See \`config.log' for more details." >&2;}
3522 { (exit 1); exit 1; }; }
3524 # Provide some information about the compiler.
3525 echo "$as_me:$LINENO: checking for C compiler version" >&5
3526 ac_compiler=`set X $ac_compile; echo $2`
3527 { (ac_try="$ac_compiler --version >&5"
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3533 (eval "$ac_compiler --version >&5") 2>&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }
3537 { (ac_try="$ac_compiler -v >&5"
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543 (eval "$ac_compiler -v >&5") 2>&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }
3547 { (ac_try="$ac_compiler -V >&5"
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_compiler -V >&5") 2>&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }
3558 cat >conftest.$ac_ext <<_ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3573 ac_clean_files_save=$ac_clean_files
3574 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3575 # Try to create an executable without -o first, disregard a.out.
3576 # It will help us diagnose broken compilers, and finding out an intuition
3578 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3579 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3580 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3582 # List of possible output files, starting from the most likely.
3583 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3584 # only as a last resort. b.out is created by i960 compilers.
3585 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3587 # The IRIX 6 linker writes into existing files which may not be
3588 # executable, retaining their permissions. Remove them first so a
3589 # subsequent execution test works.
3591 for ac_file in $ac_files
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3595 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3600 if { (ac_try="$ac_link_default"
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_link_default") 2>&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; then
3610 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3611 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3612 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3613 # so that the user can short-circuit this test for compilers unknown to
3615 for ac_file in $ac_files ''
3617 test -f "$ac_file" || continue
3619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3622 # We found the default executable, but exeext='' is most
3626 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3628 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3630 # We set ac_cv_exeext here because the later test for it is not
3631 # safe: cross compilers may not add the suffix if given an `-o'
3632 # argument, so we may need to know it at that point already.
3633 # Even if this section looks crufty: it has the advantage of
3640 test "$ac_cv_exeext" = no && ac_cv_exeext=
3646 { echo "$as_me:$LINENO: result: $ac_file" >&5
3647 echo "${ECHO_T}$ac_file" >&6; }
3648 if test -z "$ac_file"; then
3649 echo "$as_me: failed program was:" >&5
3650 sed 's/^/| /' conftest.$ac_ext >&5
3652 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3653 See \`config.log' for more details." >&5
3654 echo "$as_me: error: C compiler cannot create executables
3655 See \`config.log' for more details." >&2;}
3656 { (exit 77); exit 77; }; }
3659 ac_exeext=$ac_cv_exeext
3661 # Check that the compiler produces executables we can run. If not, either
3662 # the compiler is broken, or we cross compile.
3663 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3664 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3665 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3666 # If not cross compiling, check that we can run a simple program.
3667 if test "$cross_compiling" != yes; then
3668 if { ac_try='./$ac_file'
3669 { (case "(($ac_try" in
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674 (eval "$ac_try") 2>&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; }; then
3680 if test "$cross_compiling" = maybe; then
3683 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3684 If you meant to cross compile, use \`--host'.
3685 See \`config.log' for more details." >&5
3686 echo "$as_me: error: cannot run C compiled programs.
3687 If you meant to cross compile, use \`--host'.
3688 See \`config.log' for more details." >&2;}
3689 { (exit 1); exit 1; }; }
3693 { echo "$as_me:$LINENO: result: yes" >&5
3694 echo "${ECHO_T}yes" >&6; }
3696 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3697 ac_clean_files=$ac_clean_files_save
3698 # Check that the compiler produces executables we can run. If not, either
3699 # the compiler is broken, or we cross compile.
3700 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3701 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3702 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3703 echo "${ECHO_T}$cross_compiling" >&6; }
3705 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3706 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3707 if { (ac_try="$ac_link"
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713 (eval "$ac_link") 2>&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; then
3717 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3718 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3719 # work properly (i.e., refer to `conftest.exe'), while it won't with
3721 for ac_file in conftest.exe conftest conftest.*; do
3722 test -f "$ac_file" || continue
3724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3725 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3731 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3732 See \`config.log' for more details." >&5
3733 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3734 See \`config.log' for more details." >&2;}
3735 { (exit 1); exit 1; }; }
3738 rm -f conftest$ac_cv_exeext
3739 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3740 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3742 rm -f conftest.$ac_ext
3743 EXEEXT=$ac_cv_exeext
3745 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3746 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3747 if test "${ac_cv_objext+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 cat >conftest.$ac_ext <<_ACEOF
3753 cat confdefs.h >>conftest.$ac_ext
3754 cat >>conftest.$ac_ext <<_ACEOF
3755 /* end confdefs.h. */
3765 rm -f conftest.o conftest.obj
3766 if { (ac_try="$ac_compile"
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3772 (eval "$ac_compile") 2>&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); }; then
3776 for ac_file in conftest.o conftest.obj conftest.*; do
3777 test -f "$ac_file" || continue;
3779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3780 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3788 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3789 See \`config.log' for more details." >&5
3790 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3791 See \`config.log' for more details." >&2;}
3792 { (exit 1); exit 1; }; }
3795 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3797 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3798 echo "${ECHO_T}$ac_cv_objext" >&6; }
3799 OBJEXT=$ac_cv_objext
3801 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3802 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3803 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 cat >conftest.$ac_ext <<_ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3824 rm -f conftest.$ac_objext
3825 if { (ac_try="$ac_compile"
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3831 (eval "$ac_compile") 2>conftest.er1
3833 grep -v '^ *+' conftest.er1 >conftest.err
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } && {
3838 test -z "$ac_c_werror_flag" ||
3839 test ! -s conftest.err
3840 } && test -s conftest.$ac_objext; then
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3853 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3854 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3855 GCC=`test $ac_compiler_gnu = yes && echo yes`
3856 ac_test_CFLAGS=${CFLAGS+set}
3857 ac_save_CFLAGS=$CFLAGS
3858 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3859 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3860 if test "${ac_cv_prog_cc_g+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 ac_save_c_werror_flag=$ac_c_werror_flag
3864 ac_c_werror_flag=yes
3867 cat >conftest.$ac_ext <<_ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h. */
3882 rm -f conftest.$ac_objext
3883 if { (ac_try="$ac_compile"
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_compile") 2>conftest.er1
3891 grep -v '^ *+' conftest.er1 >conftest.err
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } && {
3896 test -z "$ac_c_werror_flag" ||
3897 test ! -s conftest.err
3898 } && test -s conftest.$ac_objext; then
3901 echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3905 cat >conftest.$ac_ext <<_ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3920 rm -f conftest.$ac_objext
3921 if { (ac_try="$ac_compile"
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3927 (eval "$ac_compile") 2>conftest.er1
3929 grep -v '^ *+' conftest.er1 >conftest.err
3931 cat conftest.err >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } && {
3934 test -z "$ac_c_werror_flag" ||
3935 test ! -s conftest.err
3936 } && test -s conftest.$ac_objext; then
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3942 ac_c_werror_flag=$ac_save_c_werror_flag
3944 cat >conftest.$ac_ext <<_ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3959 rm -f conftest.$ac_objext
3960 if { (ac_try="$ac_compile"
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966 (eval "$ac_compile") 2>conftest.er1
3968 grep -v '^ *+' conftest.er1 >conftest.err
3970 cat conftest.err >&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } && {
3973 test -z "$ac_c_werror_flag" ||
3974 test ! -s conftest.err
3975 } && test -s conftest.$ac_objext; then
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3991 ac_c_werror_flag=$ac_save_c_werror_flag
3993 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3994 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3995 if test "$ac_test_CFLAGS" = set; then
3996 CFLAGS=$ac_save_CFLAGS
3997 elif test $ac_cv_prog_cc_g = yes; then
3998 if test "$GCC" = yes; then
4004 if test "$GCC" = yes; then
4010 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4011 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4012 if test "${ac_cv_prog_cc_c89+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 ac_cv_prog_cc_c89=no
4017 cat >conftest.$ac_ext <<_ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4025 #include <sys/types.h>
4026 #include <sys/stat.h>
4027 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4028 struct buf { int x; };
4029 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4030 static char *e (p, i)
4036 static char *f (char * (*g) (char **, int), char **p, ...)
4041 s = g (p, va_arg (v,int));
4046 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4047 function prototypes and stuff, but not '\xHH' hex character constants.
4048 These don't provoke an error unfortunately, instead are silently treated
4049 as 'x'. The following induces an error, until -std is added to get
4050 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4051 array size at least. It's necessary to write '\x00'==0 to get something
4052 that's true only with -std. */
4053 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4055 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4056 inside strings and character constants. */
4058 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4060 int test (int i, double x);
4061 struct s1 {int (*f) (int a);};
4062 struct s2 {int (*f) (double a);};
4063 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4069 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4074 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4075 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4077 CC="$ac_save_CC $ac_arg"
4078 rm -f conftest.$ac_objext
4079 if { (ac_try="$ac_compile"
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_compile") 2>conftest.er1
4087 grep -v '^ *+' conftest.er1 >conftest.err
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } && {
4092 test -z "$ac_c_werror_flag" ||
4093 test ! -s conftest.err
4094 } && test -s conftest.$ac_objext; then
4095 ac_cv_prog_cc_c89=$ac_arg
4097 echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4103 rm -f core conftest.err conftest.$ac_objext
4104 test "x$ac_cv_prog_cc_c89" != "xno" && break
4106 rm -f conftest.$ac_ext
4111 case "x$ac_cv_prog_cc_c89" in
4113 { echo "$as_me:$LINENO: result: none needed" >&5
4114 echo "${ECHO_T}none needed" >&6; } ;;
4116 { echo "$as_me:$LINENO: result: unsupported" >&5
4117 echo "${ECHO_T}unsupported" >&6; } ;;
4119 CC="$CC $ac_cv_prog_cc_c89"
4120 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4121 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4126 ac_cpp='$CPP $CPPFLAGS'
4127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132 ac_cpp='$CXXCPP $CPPFLAGS'
4133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4136 if test -z "$CXX"; then
4137 if test -n "$CCC"; then
4140 if test -n "$ac_tool_prefix"; then
4141 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4147 if test "${ac_cv_prog_CXX+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 if test -n "$CXX"; then
4151 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 test -z "$as_dir" && as_dir=.
4158 for ac_exec_ext in '' $ac_executable_extensions; do
4159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4160 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 if test -n "$CXX"; then
4172 { echo "$as_me:$LINENO: result: $CXX" >&5
4173 echo "${ECHO_T}$CXX" >&6; }
4175 { echo "$as_me:$LINENO: result: no" >&5
4176 echo "${ECHO_T}no" >&6; }
4180 test -n "$CXX" && break
4183 if test -z "$CXX"; then
4185 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4187 # Extract the first word of "$ac_prog", so it can be a program name with args.
4188 set dummy $ac_prog; ac_word=$2
4189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4191 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 if test -n "$ac_ct_CXX"; then
4195 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4204 ac_cv_prog_ac_ct_CXX="$ac_prog"
4205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4215 if test -n "$ac_ct_CXX"; then
4216 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4217 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4219 { echo "$as_me:$LINENO: result: no" >&5
4220 echo "${ECHO_T}no" >&6; }
4224 test -n "$ac_ct_CXX" && break
4227 if test "x$ac_ct_CXX" = x; then
4230 case $cross_compiling:$ac_tool_warned in
4232 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4233 whose name does not start with the host triplet. If you think this
4234 configuration is useful to you, please write to autoconf@gnu.org." >&5
4235 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4236 whose name does not start with the host triplet. If you think this
4237 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4238 ac_tool_warned=yes ;;
4246 # Provide some information about the compiler.
4247 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4248 ac_compiler=`set X $ac_compile; echo $2`
4249 { (ac_try="$ac_compiler --version >&5"
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_compiler --version >&5") 2>&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }
4259 { (ac_try="$ac_compiler -v >&5"
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_compiler -v >&5") 2>&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }
4269 { (ac_try="$ac_compiler -V >&5"
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_compiler -V >&5") 2>&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }
4280 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4281 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4282 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 cat >conftest.$ac_ext <<_ACEOF
4288 cat confdefs.h >>conftest.$ac_ext
4289 cat >>conftest.$ac_ext <<_ACEOF
4290 /* end confdefs.h. */
4303 rm -f conftest.$ac_objext
4304 if { (ac_try="$ac_compile"
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_compile") 2>conftest.er1
4312 grep -v '^ *+' conftest.er1 >conftest.err
4314 cat conftest.err >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); } && {
4317 test -z "$ac_cxx_werror_flag" ||
4318 test ! -s conftest.err
4319 } && test -s conftest.$ac_objext; then
4322 echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4332 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4333 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4334 GXX=`test $ac_compiler_gnu = yes && echo yes`
4335 ac_test_CXXFLAGS=${CXXFLAGS+set}
4336 ac_save_CXXFLAGS=$CXXFLAGS
4337 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4338 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4339 if test "${ac_cv_prog_cxx_g+set}" = set; then
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4343 ac_cxx_werror_flag=yes
4346 cat >conftest.$ac_ext <<_ACEOF
4349 cat confdefs.h >>conftest.$ac_ext
4350 cat >>conftest.$ac_ext <<_ACEOF
4351 /* end confdefs.h. */
4361 rm -f conftest.$ac_objext
4362 if { (ac_try="$ac_compile"
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368 (eval "$ac_compile") 2>conftest.er1
4370 grep -v '^ *+' conftest.er1 >conftest.err
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } && {
4375 test -z "$ac_cxx_werror_flag" ||
4376 test ! -s conftest.err
4377 } && test -s conftest.$ac_objext; then
4378 ac_cv_prog_cxx_g=yes
4380 echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4384 cat >conftest.$ac_ext <<_ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4399 rm -f conftest.$ac_objext
4400 if { (ac_try="$ac_compile"
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406 (eval "$ac_compile") 2>conftest.er1
4408 grep -v '^ *+' conftest.er1 >conftest.err
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } && {
4413 test -z "$ac_cxx_werror_flag" ||
4414 test ! -s conftest.err
4415 } && test -s conftest.$ac_objext; then
4418 echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4421 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4423 cat >conftest.$ac_ext <<_ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4438 rm -f conftest.$ac_objext
4439 if { (ac_try="$ac_compile"
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445 (eval "$ac_compile") 2>conftest.er1
4447 grep -v '^ *+' conftest.er1 >conftest.err
4449 cat conftest.err >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } && {
4452 test -z "$ac_cxx_werror_flag" ||
4453 test ! -s conftest.err
4454 } && test -s conftest.$ac_objext; then
4455 ac_cv_prog_cxx_g=yes
4457 echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4472 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4473 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4474 if test "$ac_test_CXXFLAGS" = set; then
4475 CXXFLAGS=$ac_save_CXXFLAGS
4476 elif test $ac_cv_prog_cxx_g = yes; then
4477 if test "$GXX" = yes; then
4483 if test "$GXX" = yes; then
4490 ac_cpp='$CPP $CPPFLAGS'
4491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4496 # We must set the default linker to the linker used by gcc for the correct
4497 # operation of libtool. If LD is not defined and we are using gcc, try to
4498 # set the LD default to the ld used by gcc.
4499 if test -z "$LD"; then
4500 if test "$GCC" = yes; then
4503 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4505 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4507 case $gcc_prog_ld in
4508 # Accept absolute paths.
4509 [\\/]* | [A-Za-z]:[\\/]*)
4510 LD="$gcc_prog_ld" ;;
4518 if test -n "$ac_tool_prefix"; then
4519 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4520 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4523 if test "${ac_cv_prog_GNATBIND+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 if test -n "$GNATBIND"; then
4527 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 GNATBIND=$ac_cv_prog_GNATBIND
4547 if test -n "$GNATBIND"; then
4548 { echo "$as_me:$LINENO: result: $GNATBIND" >&5
4549 echo "${ECHO_T}$GNATBIND" >&6; }
4551 { echo "$as_me:$LINENO: result: no" >&5
4552 echo "${ECHO_T}no" >&6; }
4557 if test -z "$ac_cv_prog_GNATBIND"; then
4558 ac_ct_GNATBIND=$GNATBIND
4559 # Extract the first word of "gnatbind", so it can be a program name with args.
4560 set dummy gnatbind; ac_word=$2
4561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4563 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 if test -n "$ac_ct_GNATBIND"; then
4567 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4576 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4587 if test -n "$ac_ct_GNATBIND"; then
4588 { echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4589 echo "${ECHO_T}$ac_ct_GNATBIND" >&6; }
4591 { echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6; }
4595 if test "x$ac_ct_GNATBIND" = x; then
4598 case $cross_compiling:$ac_tool_warned in
4600 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4601 whose name does not start with the host triplet. If you think this
4602 configuration is useful to you, please write to autoconf@gnu.org." >&5
4603 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4604 whose name does not start with the host triplet. If you think this
4605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4606 ac_tool_warned=yes ;;
4608 GNATBIND=$ac_ct_GNATBIND
4611 GNATBIND="$ac_cv_prog_GNATBIND"
4614 if test -n "$ac_tool_prefix"; then
4615 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4616 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4619 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 if test -n "$GNATMAKE"; then
4623 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4632 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 GNATMAKE=$ac_cv_prog_GNATMAKE
4643 if test -n "$GNATMAKE"; then
4644 { echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4645 echo "${ECHO_T}$GNATMAKE" >&6; }
4647 { echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6; }
4653 if test -z "$ac_cv_prog_GNATMAKE"; then
4654 ac_ct_GNATMAKE=$GNATMAKE
4655 # Extract the first word of "gnatmake", so it can be a program name with args.
4656 set dummy gnatmake; ac_word=$2
4657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 if test -n "$ac_ct_GNATMAKE"; then
4663 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4683 if test -n "$ac_ct_GNATMAKE"; then
4684 { echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4685 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6; }
4687 { echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6; }
4691 if test "x$ac_ct_GNATMAKE" = x; then
4694 case $cross_compiling:$ac_tool_warned in
4696 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4697 whose name does not start with the host triplet. If you think this
4698 configuration is useful to you, please write to autoconf@gnu.org." >&5
4699 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4700 whose name does not start with the host triplet. If you think this
4701 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4702 ac_tool_warned=yes ;;
4704 GNATMAKE=$ac_ct_GNATMAKE
4707 GNATMAKE="$ac_cv_prog_GNATMAKE"
4710 { echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4711 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6; }
4712 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4715 cat >conftest.adb <<EOF
4716 procedure conftest is begin null; end conftest;
4718 acx_cv_cc_gcc_supports_ada=no
4719 # There is a bug in old released versions of GCC which causes the
4720 # driver to exit successfully when the appropriate language module
4721 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4722 # Therefore we must check for the error message as well as an
4723 # unsuccessful exit.
4724 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4725 # given a .adb file, but produce no object file. So we must check
4726 # if an object file was really produced to guard against this.
4727 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4728 if test x"$errors" = x && test -f conftest.$ac_objext; then
4729 acx_cv_cc_gcc_supports_ada=yes
4733 { echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4734 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6; }
4736 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4742 { echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4743 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6; }
4744 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4750 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4751 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4754 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4757 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4758 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4761 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4767 { echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4768 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6; }
4769 do_compare="$gcc_cv_prog_cmp_skip"
4773 # Check for GMP and MPFR
4774 gmplibs="-lmpfr -lgmp"
4778 # Specify a location for mpfr
4779 # check for this first so it ends up on the link line before gmp.
4781 # Check whether --with-mpfr-dir was given.
4782 if test "${with_mpfr_dir+set}" = set; then
4783 withval=$with_mpfr_dir; { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4784 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4785 echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4786 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4787 { (exit 1); exit 1; }; }
4792 # Check whether --with-mpfr was given.
4793 if test "${with_mpfr+set}" = set; then
4798 # Check whether --with-mpfr_include was given.
4799 if test "${with_mpfr_include+set}" = set; then
4800 withval=$with_mpfr_include;
4804 # Check whether --with-mpfr_lib was given.
4805 if test "${with_mpfr_lib+set}" = set; then
4806 withval=$with_mpfr_lib;
4810 if test "x$with_mpfr" != x; then
4811 gmplibs="-L$with_mpfr/lib $gmplibs"
4812 gmpinc="-I$with_mpfr/include"
4814 if test "x$with_mpfr_include" != x; then
4815 gmpinc="-I$with_mpfr_include"
4817 if test "x$with_mpfr_lib" != x; then
4818 gmplibs="-L$with_mpfr_lib $gmplibs"
4820 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4821 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4822 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4823 # Do not test the mpfr version. Assume that it is sufficient, since
4824 # it is in the source tree, and the library has not been built yet
4825 # but it would be included on the link line in the version check below
4826 # hence making the test fail.
4830 # Specify a location for gmp
4832 # Check whether --with-gmp-dir was given.
4833 if test "${with_gmp_dir+set}" = set; then
4834 withval=$with_gmp_dir; { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4835 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4836 echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4837 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4838 { (exit 1); exit 1; }; }
4843 # Check whether --with-gmp was given.
4844 if test "${with_gmp+set}" = set; then
4849 # Check whether --with-gmp_include was given.
4850 if test "${with_gmp_include+set}" = set; then
4851 withval=$with_gmp_include;
4855 # Check whether --with-gmp_lib was given.
4856 if test "${with_gmp_lib+set}" = set; then
4857 withval=$with_gmp_lib;
4862 if test "x$with_gmp" != x; then
4863 gmplibs="-L$with_gmp/lib $gmplibs"
4864 gmpinc="-I$with_gmp/include $gmpinc"
4866 if test "x$with_gmp_include" != x; then
4867 gmpinc="-I$with_gmp_include $gmpinc"
4869 if test "x$with_gmp_lib" != x; then
4870 gmplibs="-L$with_gmp_lib $gmplibs"
4872 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4873 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4874 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4875 # Do not test the gmp version. Assume that it is sufficient, since
4876 # it is in the source tree, and the library has not been built yet
4877 # but it would be included on the link line in the version check below
4878 # hence making the test fail.
4882 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4884 saved_CFLAGS="$CFLAGS"
4885 CFLAGS="$CFLAGS $gmpinc"
4886 # Check GMP actually works
4887 { echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4888 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6; }
4890 cat >conftest.$ac_ext <<_ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4901 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4909 rm -f conftest.$ac_objext
4910 if { (ac_try="$ac_compile"
4912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4913 *) ac_try_echo=$ac_try;;
4915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4916 (eval "$ac_compile") 2>conftest.er1
4918 grep -v '^ *+' conftest.er1 >conftest.err
4920 cat conftest.err >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } && {
4923 test -z "$ac_c_werror_flag" ||
4924 test ! -s conftest.err
4925 } && test -s conftest.$ac_objext; then
4926 { echo "$as_me:$LINENO: result: yes" >&5
4927 echo "${ECHO_T}yes" >&6; }
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4932 { echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6; }; have_gmp=no
4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938 if test x"$have_gmp" = xyes; then
4940 LIBS="$LIBS $gmplibs"
4941 { echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4942 echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6; }
4943 cat >conftest.$ac_ext <<_ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4955 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4963 mpfr_atan2 (n, n, x, GMP_RNDN);
4964 mpfr_erfc (n, x, GMP_RNDN);
4965 mpfr_subnormalize (x, t, GMP_RNDN);
4971 rm -f conftest.$ac_objext conftest$ac_exeext
4972 if { (ac_try="$ac_link"
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978 (eval "$ac_link") 2>conftest.er1
4980 grep -v '^ *+' conftest.er1 >conftest.err
4982 cat conftest.err >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } && {
4985 test -z "$ac_c_werror_flag" ||
4986 test ! -s conftest.err
4987 } && test -s conftest$ac_exeext &&
4988 $as_test_x conftest$ac_exeext; then
4989 cat >conftest.$ac_ext <<_ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
5001 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
5004 mpfr_t n; mpfr_init(n);
5010 rm -f conftest.$ac_objext conftest$ac_exeext
5011 if { (ac_try="$ac_link"
5013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014 *) ac_try_echo=$ac_try;;
5016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5017 (eval "$ac_link") 2>conftest.er1
5019 grep -v '^ *+' conftest.er1 >conftest.err
5021 cat conftest.err >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } && {
5024 test -z "$ac_c_werror_flag" ||
5025 test ! -s conftest.err
5026 } && test -s conftest$ac_exeext &&
5027 $as_test_x conftest$ac_exeext; then
5028 { echo "$as_me:$LINENO: result: yes" >&5
5029 echo "${ECHO_T}yes" >&6; }
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5034 { echo "$as_me:$LINENO: result: buggy but acceptable" >&5
5035 echo "${ECHO_T}buggy but acceptable" >&6; }
5038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5039 conftest$ac_exeext conftest.$ac_ext
5041 echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5044 { echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6; }; have_gmp=no
5048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5049 conftest$ac_exeext conftest.$ac_ext
5052 CFLAGS="$saved_CFLAGS"
5054 if test x$have_gmp != xyes; then
5055 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
5056 Try the --with-gmp and/or --with-mpfr options to specify their locations.
5057 Copies of these libraries' source code can be found at their respective
5058 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
5059 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5060 If you obtained GMP and/or MPFR from a vendor distribution package, make
5061 sure that you have installed both the libraries and the header files.
5062 They may be located in separate packages." >&5
5063 echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
5064 Try the --with-gmp and/or --with-mpfr options to specify their locations.
5065 Copies of these libraries' source code can be found at their respective
5066 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
5067 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5068 If you obtained GMP and/or MPFR from a vendor distribution package, make
5069 sure that you have installed both the libraries and the header files.
5070 They may be located in separate packages." >&2;}
5071 { (exit 1); exit 1; }; }
5075 # Flags needed for both GMP and/or MPFR
5079 # By default, C is the only stage 1 language.
5080 stage1_languages=,c,
5082 # Figure out what language subdirectories are present.
5083 # Look if the user specified --enable-languages="..."; if not, use
5084 # the environment variable $LANGUAGES if defined. $LANGUAGES might
5086 # NB: embedded tabs in this IF block -- do not untabify
5087 if test -d ${srcdir}/gcc; then
5088 if test x"${enable_languages+set}" != xset; then
5089 if test x"${LANGUAGES+set}" = xset; then
5090 enable_languages="${LANGUAGES}"
5091 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5093 enable_languages=all
5096 if test x"${enable_languages}" = x ||
5097 test x"${enable_languages}" = xyes;
5099 echo configure.in: --enable-languages needs at least one language argument 1>&2
5103 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5105 # 'f95' is the old name for the 'fortran' language. We issue a warning
5106 # and make the substitution.
5107 case ,${enable_languages}, in
5109 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5110 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5114 # First scan to see if an enabled language requires some other language.
5115 # We assume that a given config-lang.in will list all the language
5116 # front ends it requires, even if some are required indirectly.
5117 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5118 case ${lang_frag} in
5120 # The odd quoting in the next line works around
5121 # an apparent bug in bash 1.12 on linux.
5122 ${srcdir}/gcc/[*]/config-lang.in) ;;
5124 # From the config-lang.in, get $language, $lang_requires
5128 for other in ${lang_requires} ; do
5129 case ,${enable_languages}, in
5133 echo " \`$other' language required by \`$language'; enabling" 1>&2
5134 enable_languages="${enable_languages},${other}"
5142 new_enable_languages=,c,
5143 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
5144 potential_languages=,c,
5146 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5147 case ${lang_frag} in
5149 # The odd quoting in the next line works around
5150 # an apparent bug in bash 1.12 on linux.
5151 ${srcdir}/gcc/[*]/config-lang.in) ;;
5153 # From the config-lang.in, get $language, $target_libs,
5154 # $lang_dirs, $boot_language, and $build_by_default
5160 build_by_default=yes
5162 if test x${language} = x; then
5163 echo "${lang_frag} doesn't set \$language." 1>&2
5167 case ,${enable_languages}, in
5169 # Language was explicitly selected; include it.
5173 # 'all' was selected, select it if it is a default language
5174 add_this_lang=${build_by_default}
5181 # Disable languages that need other directories if these aren't available.
5182 for i in $subdir_requires; do
5183 test -f "$srcdir/gcc/$i/config-lang.in" && continue
5184 case ,${enable_languages}, in
5186 # Specifically requested language; tell them.
5187 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
5188 echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
5189 { (exit 1); exit 1; }; }
5193 add_this_lang=unsupported
5198 # Disable Ada if no preexisting GNAT is available.
5199 case ,${enable_languages},:${language}:${have_gnat} in
5200 *,${language},*:ada:no)
5201 # Specifically requested language; tell them.
5202 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
5203 echo "$as_me: error: GNAT is required to build $language" >&2;}
5204 { (exit 1); exit 1; }; }
5208 add_this_lang=unsupported
5212 # Disable a language that is unsupported by the target.
5213 case " $unsupported_languages " in
5215 add_this_lang=unsupported
5219 case $add_this_lang in
5221 # Remove language-dependent dirs.
5222 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5225 # Remove language-dependent dirs; still show language as supported.
5226 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5227 potential_languages="${potential_languages}${language},"
5230 new_enable_languages="${new_enable_languages}${language},"
5231 potential_languages="${potential_languages}${language},"
5232 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5233 case ${boot_language} in
5235 # Add to (comma-separated) list of stage 1 languages.
5236 stage1_languages="${stage1_languages}${language},"
5245 # Check whether --enable-stage1-languages was given.
5246 if test "${enable_stage1_languages+set}" = set; then
5247 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
5249 # Set it to something that will have no effect in the loop below
5250 enable_stage1_languages=c ;;
5252 enable_stage1_languages=`echo $new_enable_languages | \
5253 sed -e "s/^,//" -e "s/,$//" ` ;;
5255 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5256 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5259 # Add "good" languages from enable_stage1_languages to stage1_languages,
5260 # while "bad" languages go in missing_languages. Leave no duplicates.
5261 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5262 case $potential_languages in
5264 case $stage1_languages in
5266 *) stage1_languages="$stage1_languages$i," ;;
5269 case $missing_languages in
5271 *) missing_languages="$missing_languages$i," ;;
5278 # Remove leading/trailing commas that were added for simplicity
5279 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
5280 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
5281 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5282 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5284 if test "x$missing_languages" != x; then
5285 { { echo "$as_me:$LINENO: error:
5286 The following requested languages could not be built: ${missing_languages}
5287 Supported languages are: ${potential_languages}" >&5
5288 echo "$as_me: error:
5289 The following requested languages could not be built: ${missing_languages}
5290 Supported languages are: ${potential_languages}" >&2;}
5291 { (exit 1); exit 1; }; }
5293 if test "x$new_enable_languages" != "x$enable_languages"; then
5294 echo The following languages will be built: ${new_enable_languages}
5295 enable_languages="$new_enable_languages"
5299 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
5302 # Handle --disable-<component> generically.
5303 for dir in $configdirs $build_configdirs $target_configdirs ; do
5304 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
5305 if eval test x\${enable_${dirname}} "=" xno ; then
5306 noconfigdirs="$noconfigdirs $dir"
5310 # Check for Boehm's garbage collector
5311 # Check whether --enable-objc-gc was given.
5312 if test "${enable_objc_gc+set}" = set; then
5313 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5314 *,objc,*:*:yes:*target-boehm-gc*)
5315 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5316 echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5317 { (exit 1); exit 1; }; }
5323 # Make sure we only build Boehm's garbage collector if required.
5324 case ,${enable_languages},:${enable_objc_gc} in
5326 # Keep target-boehm-gc if requested for Objective-C.
5329 # Otherwise remove target-boehm-gc depending on target-libjava.
5330 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5331 noconfigdirs="$noconfigdirs target-boehm-gc"
5336 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5337 # $build_configdirs and $target_configdirs.
5338 # If we have the source for $noconfigdirs entries, add them to $notsupp.
5341 for dir in . $skipdirs $noconfigdirs ; do
5342 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
5343 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5344 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5345 if test -r $srcdir/$dirname/configure ; then
5346 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5349 notsupp="$notsupp $dir"
5353 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5354 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5355 if test -r $srcdir/$dirname/configure ; then
5356 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5359 notsupp="$notsupp $dir"
5363 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5364 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5365 if test -r $srcdir/$dirname/configure ; then
5366 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5369 notsupp="$notsupp $dir"
5375 # Sometimes the tools are distributed with libiberty but with no other
5376 # libraries. In that case, we don't want to build target-libiberty.
5377 # Don't let libgcc imply libiberty either.
5378 if test -n "${target_configdirs}" ; then
5381 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
5382 if test "$i" = "libgcc"; then
5383 libgcc=target-libgcc
5384 elif test "$i" != "libiberty" ; then
5385 if test -r $srcdir/$i/configure ; then
5391 if test -z "${others}" ; then
5392 target_configdirs=$libgcc
5396 # Quietly strip out all directories which aren't configurable in this tree.
5397 # This relies on all configurable subdirectories being autoconfiscated, which
5399 build_configdirs_all="$build_configdirs"
5401 for i in ${build_configdirs_all} ; do
5402 j=`echo $i | sed -e s/build-//g`
5403 if test -f ${srcdir}/$j/configure ; then
5404 build_configdirs="${build_configdirs} $i"
5408 configdirs_all="$configdirs"
5410 for i in ${configdirs_all} ; do
5411 if test -f ${srcdir}/$i/configure ; then
5412 configdirs="${configdirs} $i"
5416 target_configdirs_all="$target_configdirs"
5418 for i in ${target_configdirs_all} ; do
5419 j=`echo $i | sed -e s/target-//g`
5420 if test -f ${srcdir}/$j/configure ; then
5421 target_configdirs="${target_configdirs} $i"
5425 # Produce a warning message for the subdirs we can't configure.
5426 # This isn't especially interesting in the Cygnus tree, but in the individual
5427 # FSF releases, it's important to let people know when their machine isn't
5428 # supported by the one or two programs in a package.
5430 if test -n "${notsupp}" && test -z "${norecursion}" ; then
5431 # If $appdirs is non-empty, at least one of those directories must still
5432 # be configured, or we error out. (E.g., if the gas release supports a
5433 # specified target in some subdirs but not the gas subdir, we shouldn't
5434 # pretend that all is well.)
5435 if test -n "$appdirs" ; then
5436 for dir in $appdirs ; do
5437 if test -r $dir/Makefile.in ; then
5438 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5442 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
5448 if test -n "$appdirs" ; then
5449 echo "*** This configuration is not supported by this package." 1>&2
5453 # Okay, some application will build, or we don't care to check. Still
5454 # notify of subdirs not getting built.
5455 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5456 echo " ${notsupp}" 1>&2
5457 echo " (Any other directories should still work fine.)" 1>&2
5465 # To find our prefix, in gcc_cv_tool_prefix.
5467 # The user is always right.
5468 if test "${PATH_SEPARATOR+set}" != set; then
5469 echo "#! /bin/sh" >conf$$.sh
5470 echo "exit 0" >>conf$$.sh
5472 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5482 if test "x$exec_prefix" = xNONE; then
5483 if test "x$prefix" = xNONE; then
5484 gcc_cv_tool_prefix=$ac_default_prefix
5486 gcc_cv_tool_prefix=$prefix
5489 gcc_cv_tool_prefix=$exec_prefix
5492 # If there is no compiler in the tree, use the PATH only. In any
5493 # case, if there is no compiler in the tree nobody should use
5494 # AS_FOR_TARGET and LD_FOR_TARGET.
5495 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5496 gcc_version=`cat $srcdir/gcc/BASE-VER`
5497 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5498 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5499 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5500 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5501 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5502 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5507 if test x$build = x$target && test -n "$md_exec_prefix"; then
5508 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5516 # Check whether --with-build-sysroot was given.
5517 if test "${with_build_sysroot+set}" = set; then
5518 withval=$with_build_sysroot; if test x"$withval" != x ; then
5519 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5522 SYSROOT_CFLAGS_FOR_TARGET=
5527 # Handle --with-headers=XXX. If the value is not "yes", the contents of
5528 # the named directory are copied to $(tooldir)/sys-include.
5529 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5530 if test x${is_cross_compiler} = xno ; then
5531 echo 1>&2 '***' --with-headers is only supported when cross compiling
5534 if test x"${with_headers}" != xyes ; then
5535 x=${gcc_cv_tool_prefix}
5536 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
5540 # Handle --with-libs=XXX. If the value is not "yes", the contents of
5541 # the name directories are copied to $(tooldir)/lib. Multiple directories
5543 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5544 if test x${is_cross_compiler} = xno ; then
5545 echo 1>&2 '***' --with-libs is only supported when cross compiling
5548 if test x"${with_libs}" != xyes ; then
5549 # Copy the libraries in reverse order, so that files in the first named
5550 # library override files in subsequent libraries.
5551 x=${gcc_cv_tool_prefix}
5552 for l in ${with_libs}; do
5553 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
5558 # Set with_gnu_as and with_gnu_ld as appropriate.
5560 # This is done by determining whether or not the appropriate directory
5561 # is available, and by checking whether or not specific configurations
5562 # have requested that this magic not happen.
5564 # The command line options always override the explicit settings in
5565 # configure.in, and the settings in configure.in override this magic.
5567 # If the default for a toolchain is to use GNU as and ld, and you don't
5568 # want to do that, then you should use the --without-gnu-as and
5569 # --without-gnu-ld options for the configure script.
5571 if test x${use_gnu_as} = x &&
5572 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5574 extra_host_args="$extra_host_args --with-gnu-as"
5577 if test x${use_gnu_ld} = x &&
5578 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5580 extra_host_args="$extra_host_args --with-gnu-ld"
5583 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5584 # can detect this case.
5586 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5588 extra_host_args="$extra_host_args --with-newlib"
5591 # Handle ${copy_dirs}
5592 set fnord ${copy_dirs}
5594 while test $# != 0 ; do
5595 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5598 echo Copying $1 to $2
5600 # Use the install script to create the directory and all required
5601 # parent directories.
5602 if test -d $2 ; then
5606 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5609 # Copy the directory, assuming we have tar.
5610 # FIXME: Should we use B in the second tar? Not all systems support it.
5611 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5613 # It is the responsibility of the user to correctly adjust all
5614 # symlinks. If somebody can figure out how to handle them correctly
5615 # here, feel free to add the code.
5622 # Determine a target-dependent exec_prefix that the installed
5623 # gcc will search in. Keep this list sorted by triplet, with
5624 # the *-*-osname triplets last.
5628 md_exec_prefix=/gnu/lib/gcc-lib
5630 i3456786-pc-msdosdjgpp*)
5631 md_exec_prefix=/dev/env/DJDIR/bin
5633 i3456786-*-sco3.2v5*)
5634 if test $with_gnu_as = yes; then
5635 md_exec_prefix=/usr/gnu/bin
5637 md_exec_prefix=/usr/ccs/bin/elf
5642 powerpc-*-chorusos* | \
5643 powerpc*-*-eabi* | \
5644 powerpc*-*-sysv* | \
5645 powerpc*-*-kaos* | \
5647 md_exec_prefix=/usr/ccs/bin
5652 md_exec_prefix=/usr/ccs/bin
5667 md_exec_prefix=/usr/ccs/bin
5671 extra_arflags_for_target=
5672 extra_nmflags_for_target=
5673 extra_ranlibflags_for_target=
5674 target_makefile_frag=/dev/null
5677 target_makefile_frag="config/mt-mep"
5680 target_makefile_frag="config/mt-spu"
5683 target_makefile_frag="config/mt-netware"
5685 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5686 target_makefile_frag="config/mt-gnu"
5688 *-*-aix4.[3456789]* | *-*-aix[56789].*)
5689 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
5690 # commands to handle both 32-bit and 64-bit objects. These flags are
5691 # harmless if we're using GNU nm or ar.
5692 extra_arflags_for_target=" -X32_64"
5693 extra_nmflags_for_target=" -B -X32_64"
5696 # ranlib from Darwin requires the -c flag to look at common symbols.
5697 extra_ranlibflags_for_target=" -c"
5699 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5700 target_makefile_frag="config/mt-wince"
5704 alphaieee_frag=/dev/null
5707 # This just makes sure to use the -mieee option to build target libs.
5708 # This should probably be set individually by each library.
5709 alphaieee_frag="config/mt-alphaieee"
5713 # If --enable-target-optspace always use -Os instead of -O2 to build
5714 # the target libraries, similarly if it is not specified, use -Os
5715 # on selected platforms.
5716 ospace_frag=/dev/null
5717 case "${enable_target_optspace}:${target}" in
5719 ospace_frag="config/mt-ospace"
5722 ospace_frag="config/mt-d30v"
5724 :m32r-* | :d10v-* | :fr30-*)
5725 ospace_frag="config/mt-ospace"
5730 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5734 # Default to using --with-stabs for certain targets.
5735 if test x${with_stabs} = x ; then
5739 mips*-*-* | alpha*-*-osf*)
5741 extra_host_args="${extra_host_args} --with-stabs"
5746 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5747 # them automatically.
5750 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5754 # Some systems (e.g., one of the i386-aix systems the gas testers are
5755 # using) don't handle "\$" correctly, so don't use it here.
5756 tooldir='${exec_prefix}'/${target_noncanonical}
5757 build_tooldir=${tooldir}
5759 # Create a .gdbinit file which runs the one in srcdir
5760 # and tells GDB to look there for source files.
5762 if test -r ${srcdir}/.gdbinit ; then
5765 *) cat > ./.gdbinit <<EOF
5769 source ${srcdir}/.gdbinit
5775 # Make sure that the compiler is able to generate an executable. If it
5776 # can't, we are probably in trouble. We don't care whether we can run the
5777 # executable--we might be using a cross compiler--we only care whether it
5778 # can be created. At this point the main configure script has set CC.
5780 echo "int main () { return 0; }" > conftest.c
5781 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5782 if test $? = 0 ; then
5783 if test -s conftest || test -s conftest.exe ; then
5789 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5790 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5797 # The Solaris /usr/ucb/cc compiler does not appear to work.
5799 sparc-sun-solaris2*)
5800 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5801 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5803 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5804 if test -d /opt/cygnus/bin ; then
5805 if test "$could_use" = "" ; then
5806 could_use="/opt/cygnus/bin"
5808 could_use="$could_use or /opt/cygnus/bin"
5811 if test "$could_use" = "" ; then
5812 echo "Warning: compilation may fail because you're using"
5813 echo "/usr/ucb/cc. You should change your PATH or CC "
5814 echo "variable and rerun configure."
5816 echo "Warning: compilation may fail because you're using"
5817 echo "/usr/ucb/cc, when you should use the C compiler from"
5818 echo "$could_use. You should change your"
5819 echo "PATH or CC variable and rerun configure."
5826 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
5827 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
5828 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5831 # Record target_configdirs and the configure arguments for target and
5832 # build configuration in Makefile.
5833 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
5834 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
5836 # Determine whether gdb needs tk/tcl or not.
5837 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5838 # and in that case we want gdb to be built without tk. Ugh!
5839 # In fact I believe gdb is the *only* package directly dependent on tk,
5840 # so we should be able to put the 'maybe's in unconditionally and
5841 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
5842 # 100% sure that that's safe though.
5844 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
5845 case "$enable_gdbtk" in
5849 GDB_TK="${gdb_tk}" ;;
5851 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5852 # distro. Eventually someone will fix this and move Insight, nee
5853 # gdbtk to a separate directory.
5854 if test -d ${srcdir}/gdb/gdbtk ; then
5861 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5862 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
5864 # Strip out unwanted targets.
5866 # While at that, we remove Makefiles if we were started for recursive
5867 # configuration, so that the top-level Makefile reconfigures them,
5868 # like we used to do when configure itself was recursive.
5870 # Loop over modules. $extrasub must be used with care, limiting as
5871 # much as possible the usage of range addresses. That's because autoconf
5872 # splits the sed script to overcome limits in the number of commands,
5873 # and relying on carefully-timed sed passes may turn out to be very hard
5874 # to maintain later. In this particular case, you just have to be careful
5875 # not to nest @if/@endif pairs, because configure will not warn you at all.
5877 # Check whether --enable-bootstrap was given.
5878 if test "${enable_bootstrap+set}" = set; then
5879 enableval=$enable_bootstrap;
5881 enable_bootstrap=default
5885 # Issue errors and warnings for invalid/strange bootstrap combinations.
5886 case "$configdirs" in
5887 *gcc*) have_compiler=yes ;;
5888 *) have_compiler=no ;;
5891 case "$have_compiler:$host:$target:$enable_bootstrap" in
5894 # Default behavior. Enable bootstrap if we have a compiler
5895 # and we are in a native configuration.
5896 yes:$build:$build:default)
5897 enable_bootstrap=yes ;;
5900 enable_bootstrap=no ;;
5902 # We have a compiler and we are in a native configuration, bootstrap is ok
5903 yes:$build:$build:yes)
5906 # Other configurations, but we have a compiler. Assume the user knows
5909 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5910 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5913 # No compiler: if they passed --enable-bootstrap explicitly, fail
5915 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5916 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5917 { (exit 1); exit 1; }; } ;;
5919 # Fail if wrong command line
5921 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5922 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5923 { (exit 1); exit 1; }; }
5927 # Adjust the toplevel makefile according to whether bootstrap was selected.
5928 case "$enable_bootstrap" in
5930 bootstrap_suffix=bootstrap ;;
5932 bootstrap_suffix=no-bootstrap ;;
5935 for module in ${build_configdirs} ; do
5936 if test -z "${no_recursion}" \
5937 && test -f ${build_subdir}/${module}/Makefile; then
5938 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5939 rm -f ${build_subdir}/${module}/Makefile
5942 /^@if build-$module\$/d
5943 /^@endif build-$module\$/d
5944 /^@if build-$module-$bootstrap_suffix\$/d
5945 /^@endif build-$module-$bootstrap_suffix\$/d"
5947 for module in ${configdirs} ; do
5948 if test -z "${no_recursion}"; then
5949 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
5950 if test -f ${file}; then
5951 echo 1>&2 "*** removing ${file} to force reconfigure"
5958 /^@endif $module\$/d
5959 /^@if $module-$bootstrap_suffix\$/d
5960 /^@endif $module-$bootstrap_suffix\$/d"
5962 for module in ${target_configdirs} ; do
5963 if test -z "${no_recursion}" \
5964 && test -f ${target_subdir}/${module}/Makefile; then
5965 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5966 rm -f ${target_subdir}/${module}/Makefile
5969 /^@if target-$module\$/d
5970 /^@endif target-$module\$/d
5971 /^@if target-$module-$bootstrap_suffix\$/d
5972 /^@endif target-$module-$bootstrap_suffix\$/d"
5976 /^@if /,/^@endif /d"
5978 # Create the serialization dependencies. This uses a temporary file.
5980 # Check whether --enable-serial-configure was given.
5981 if test "${enable_serial_configure+set}" = set; then
5982 enableval=$enable_serial_configure;
5986 case ${enable_serial_configure} in
5988 enable_serial_build_configure=yes
5989 enable_serial_host_configure=yes
5990 enable_serial_target_configure=yes
5994 # These force 'configure's to be done one at a time, to avoid problems
5995 # with contention over a shared config.cache.
5997 echo '# serdep.tmp' > serdep.tmp
5999 test "x${enable_serial_build_configure}" = xyes &&
6000 for item in ${build_configdirs} ; do
6003 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6008 test "x${enable_serial_host_configure}" = xyes &&
6009 for item in ${configdirs} ; do
6012 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6017 test "x${enable_serial_target_configure}" = xyes &&
6018 for item in ${target_configdirs} ; do
6021 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
6025 serialization_dependencies=serdep.tmp
6028 # Base args. Strip norecursion, cache-file, srcdir, host, build,
6029 # target, nonopt, and variable assignments. These are the ones we
6030 # might not want to pass down to subconfigures. Also strip
6031 # program-prefix, program-suffix, and program-transform-name, so that
6032 # we can pass down a consistent program-transform-name.
6036 eval "set -- $ac_configure_args"
6039 if test X"$skip_next" = X"yes"; then
6043 if test X"$keep_next" = X"yes"; then
6046 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6048 baseargs="$baseargs '$ac_arg'"
6053 # Handle separated arguments. Based on the logic generated by
6056 *=* | --config-cache | -C | -disable-* | --disable-* \
6057 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6058 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6059 | -with-* | --with-* | -without-* | --without-* | --x)
6085 -program-prefix* | \
6086 -program-suffix* | \
6087 -program-transform-name* )
6088 skip_next=$separate_arg
6092 # An option. Add it.
6095 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6097 baseargs="$baseargs '$ac_arg'"
6098 keep_next=$separate_arg
6101 # Either a variable assignment, or a nonopt (triplet). Don't
6102 # pass it down; let the Makefile handle this.
6107 # Remove the initial space we just introduced and, as these will be
6108 # expanded by make, quote '$'.
6109 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
6111 # Add in --program-transform-name, after --program-prefix and
6112 # --program-suffix have been applied to it. Autoconf has already
6113 # doubled dollar signs and backslashes in program_transform_name; we want
6114 # the backslashes un-doubled, and then the entire thing wrapped in single
6115 # quotes, because this will be expanded first by make and then by the shell.
6116 # Also, because we want to override the logic in subdir configure scripts to
6117 # choose program_transform_name, replace any s,x,x, with s,y,y,.
6118 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6119 ${program_transform_name}
6121 gcc_transform_name=`cat conftestsed.out`
6122 rm -f conftestsed.out
6123 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
6125 # For the build-side libraries, we just need to pretend we're native,
6126 # and not use the same cache file. Multilibs are neither needed nor
6128 build_configargs="--cache-file=../config.cache ${baseargs}"
6130 # For host modules, accept cache file option, or specification as blank.
6131 case "${cache_file}" in
6133 cache_file_option="" ;;
6134 /* | [A-Za-z]:[\\/]* ) # absolute path
6135 cache_file_option="--cache-file=${cache_file}" ;;
6137 cache_file_option="--cache-file=../${cache_file}" ;;
6140 # Host dirs don't like to share a cache file either, horribly enough.
6141 # This seems to be due to autoconf 2.5x stupidity.
6142 host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
6144 target_configargs=${baseargs}
6146 # Passing a --with-cross-host argument lets the target libraries know
6147 # whether they are being built with a cross-compiler or being built
6148 # native. However, it would be better to use other mechanisms to make the
6149 # sorts of decisions they want to make on this basis. Please consider
6150 # this option to be deprecated. FIXME.
6151 if test x${is_cross_compiler} = xyes ; then
6152 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
6155 # Default to --enable-multilib.
6156 if test x${enable_multilib} = x ; then
6157 target_configargs="--enable-multilib ${target_configargs}"
6160 # Pass --with-newlib if appropriate. Note that target_configdirs has
6161 # changed from the earlier setting of with_newlib.
6162 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6163 target_configargs="--with-newlib ${target_configargs}"
6166 # Different target subdirs use different values of certain variables
6167 # (notably CXX). Worse, multilibs use *lots* of different values.
6168 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6169 # it doesn't automatically accept command-line overrides of them.
6170 # This means it's not safe for target subdirs to share a cache file,
6171 # which is disgusting, but there you have it. Hopefully this can be
6172 # fixed in future. It's still worthwhile to use a cache file for each
6173 # directory. I think.
6175 # Pass the appropriate --build, --host, --target and --cache-file arguments.
6176 # We need to pass --target, as newer autoconf's requires consistency
6177 # for target_alias and gcc doesn't manage it consistently.
6178 target_configargs="--cache-file=./config.cache ${target_configargs}"
6181 case " $target_configdirs " in
6183 case " $target_configargs " in
6184 *" --with-newlib "*)
6187 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' ;;
6190 # If we're not building GCC, don't discard standard headers.
6191 if test -d ${srcdir}/gcc; then
6192 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6194 if test "${build}" != "${host}"; then
6195 # On Canadian crosses, CC_FOR_TARGET will have already been set
6196 # by `configure', so we won't have an opportunity to add -Bgcc/
6197 # to it. This is right: we don't want to search that directory
6198 # for binaries, but we want the header files in there, so add
6200 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
6202 # Someone might think of using the pre-installed headers on
6203 # Canadian crosses, in case the installed compiler is not fully
6204 # compatible with the compiler being built. In this case, it
6205 # would be better to flag an error than risking having
6206 # incompatible object files being constructed. We can't
6207 # guarantee that an error will be flagged, but let's hope the
6208 # compiler will do it, when presented with incompatible header
6213 case "${target}-${is_cross_compiler}" in
6214 i[3456789]86-*-linux*-no)
6215 # Here host == target, so we don't need to build gcc,
6216 # so we don't want to discard standard headers.
6217 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6220 # If we're building newlib, use its generic headers last, but search
6221 # for any libc-related directories first (so make it the last -B
6223 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
6232 # Can't be handled as Cygwin above since Mingw does not use newlib.
6233 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' ;;
6236 # Allow the user to override the flags for
6237 # our build compiler if desired.
6238 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6240 # On Canadian crosses, we'll be searching the right directories for
6241 # the previously-installed cross compiler, so don't bother to add
6242 # flags for directories within the install tree of the compiler
6243 # being built; programs in there won't even run.
6244 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6245 # Search for pre-installed headers if nothing else fits.
6246 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
6249 if test "x${use_gnu_ld}" = x &&
6250 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6251 # Arrange for us to find uninstalled linker scripts.
6252 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
6255 # Search for other target-specific linker scripts and such.
6258 if test -d ${srcdir}/libgloss/m32c; then
6259 # This is for crt0.o
6260 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
6261 # This is for r8c.ld
6262 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
6263 # This is for libnosys.a
6264 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6268 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6272 # Makefile fragments.
6273 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6275 eval fragval=\$$frag
6276 if test $fragval != /dev/null; then
6277 eval $frag=${srcdir}/$fragval
6285 # Miscellanea: directories, flags, etc.
6293 # Build module lists & subconfigure args.
6297 # Host module lists & subconfigure args.
6301 # Target module lists & subconfigure args.
6309 # Generate default definitions for YACC, M4, LEX and other programs that run
6310 # on the build machine. These are used if the Makefile can't locate these
6311 # programs in objdir.
6312 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6314 for ac_prog in 'bison -y' byacc yacc
6316 # Extract the first word of "$ac_prog", so it can be a program name with args.
6317 set dummy $ac_prog; ac_word=$2
6318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6320 if test "${ac_cv_prog_YACC+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 if test -n "$YACC"; then
6324 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 test -z "$as_dir" && as_dir=.
6331 for ac_exec_ext in '' $ac_executable_extensions; do
6332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6333 ac_cv_prog_YACC="$ac_prog"
6334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 YACC=$ac_cv_prog_YACC
6344 if test -n "$YACC"; then
6345 { echo "$as_me:$LINENO: result: $YACC" >&5
6346 echo "${ECHO_T}$YACC" >&6; }
6348 { echo "$as_me:$LINENO: result: no" >&5
6349 echo "${ECHO_T}no" >&6; }
6353 test -n "$YACC" && break
6355 test -n "$YACC" || YACC="$MISSING bison -y"
6357 case " $build_configdirs " in
6358 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6359 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6362 for ac_prog in bison
6364 # Extract the first word of "$ac_prog", so it can be a program name with args.
6365 set dummy $ac_prog; ac_word=$2
6366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6368 if test "${ac_cv_prog_BISON+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 if test -n "$BISON"; then
6372 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378 test -z "$as_dir" && as_dir=.
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6381 ac_cv_prog_BISON="$ac_prog"
6382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 BISON=$ac_cv_prog_BISON
6392 if test -n "$BISON"; then
6393 { echo "$as_me:$LINENO: result: $BISON" >&5
6394 echo "${ECHO_T}$BISON" >&6; }
6396 { echo "$as_me:$LINENO: result: no" >&5
6397 echo "${ECHO_T}no" >&6; }
6401 test -n "$BISON" && break
6403 test -n "$BISON" || BISON="$MISSING bison"
6405 case " $build_configdirs " in
6406 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6409 for ac_prog in gm4 gnum4 m4
6411 # Extract the first word of "$ac_prog", so it can be a program name with args.
6412 set dummy $ac_prog; ac_word=$2
6413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6415 if test "${ac_cv_prog_M4+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6418 if test -n "$M4"; then
6419 ac_cv_prog_M4="$M4" # Let the user override the test.
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6428 ac_cv_prog_M4="$ac_prog"
6429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6439 if test -n "$M4"; then
6440 { echo "$as_me:$LINENO: result: $M4" >&5
6441 echo "${ECHO_T}$M4" >&6; }
6443 { echo "$as_me:$LINENO: result: no" >&5
6444 echo "${ECHO_T}no" >&6; }
6448 test -n "$M4" && break
6450 test -n "$M4" || M4="$MISSING m4"
6452 case " $build_configdirs " in
6453 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6456 for ac_prog in flex lex
6458 # Extract the first word of "$ac_prog", so it can be a program name with args.
6459 set dummy $ac_prog; ac_word=$2
6460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6462 if test "${ac_cv_prog_LEX+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 if test -n "$LEX"; then
6466 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6475 ac_cv_prog_LEX="$ac_prog"
6476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 if test -n "$LEX"; then
6487 { echo "$as_me:$LINENO: result: $LEX" >&5
6488 echo "${ECHO_T}$LEX" >&6; }
6490 { echo "$as_me:$LINENO: result: no" >&5
6491 echo "${ECHO_T}no" >&6; }
6495 test -n "$LEX" && break
6497 test -n "$LEX" || LEX="$MISSING flex"
6499 case " $build_configdirs " in
6500 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6501 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6506 # Extract the first word of "$ac_prog", so it can be a program name with args.
6507 set dummy $ac_prog; ac_word=$2
6508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6510 if test "${ac_cv_prog_FLEX+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6513 if test -n "$FLEX"; then
6514 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 test -z "$as_dir" && as_dir=.
6521 for ac_exec_ext in '' $ac_executable_extensions; do
6522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6523 ac_cv_prog_FLEX="$ac_prog"
6524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 FLEX=$ac_cv_prog_FLEX
6534 if test -n "$FLEX"; then
6535 { echo "$as_me:$LINENO: result: $FLEX" >&5
6536 echo "${ECHO_T}$FLEX" >&6; }
6538 { echo "$as_me:$LINENO: result: no" >&5
6539 echo "${ECHO_T}no" >&6; }
6543 test -n "$FLEX" && break
6545 test -n "$FLEX" || FLEX="$MISSING flex"
6547 case " $build_configdirs " in
6548 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6551 for ac_prog in makeinfo
6553 # Extract the first word of "$ac_prog", so it can be a program name with args.
6554 set dummy $ac_prog; ac_word=$2
6555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6557 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 if test -n "$MAKEINFO"; then
6561 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
6569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6570 ac_cv_prog_MAKEINFO="$ac_prog"
6571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 MAKEINFO=$ac_cv_prog_MAKEINFO
6581 if test -n "$MAKEINFO"; then
6582 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6583 echo "${ECHO_T}$MAKEINFO" >&6; }
6585 { echo "$as_me:$LINENO: result: no" >&5
6586 echo "${ECHO_T}no" >&6; }
6590 test -n "$MAKEINFO" && break
6592 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6594 case " $build_configdirs " in
6595 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6598 # For an installed makeinfo, we require it to be from texinfo 4.4 or
6599 # higher, else we use the "missing" dummy.
6600 if ${MAKEINFO} --version \
6601 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
6604 MAKEINFO="$MISSING makeinfo"
6610 # FIXME: expect and dejagnu may become build tools?
6612 for ac_prog in expect
6614 # Extract the first word of "$ac_prog", so it can be a program name with args.
6615 set dummy $ac_prog; ac_word=$2
6616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6618 if test "${ac_cv_prog_EXPECT+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6621 if test -n "$EXPECT"; then
6622 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6631 ac_cv_prog_EXPECT="$ac_prog"
6632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 EXPECT=$ac_cv_prog_EXPECT
6642 if test -n "$EXPECT"; then
6643 { echo "$as_me:$LINENO: result: $EXPECT" >&5
6644 echo "${ECHO_T}$EXPECT" >&6; }
6646 { echo "$as_me:$LINENO: result: no" >&5
6647 echo "${ECHO_T}no" >&6; }
6651 test -n "$EXPECT" && break
6653 test -n "$EXPECT" || EXPECT="expect"
6655 case " $configdirs " in
6657 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6661 for ac_prog in runtest
6663 # Extract the first word of "$ac_prog", so it can be a program name with args.
6664 set dummy $ac_prog; ac_word=$2
6665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6667 if test "${ac_cv_prog_RUNTEST+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 if test -n "$RUNTEST"; then
6671 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6680 ac_cv_prog_RUNTEST="$ac_prog"
6681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 RUNTEST=$ac_cv_prog_RUNTEST
6691 if test -n "$RUNTEST"; then
6692 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
6693 echo "${ECHO_T}$RUNTEST" >&6; }
6695 { echo "$as_me:$LINENO: result: no" >&5
6696 echo "${ECHO_T}no" >&6; }
6700 test -n "$RUNTEST" && break
6702 test -n "$RUNTEST" || RUNTEST="runtest"
6704 case " $configdirs " in
6706 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
6713 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6714 ncn_target_tool_prefix=
6715 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6719 if test -n "$AR"; then
6721 elif test -n "$ac_cv_prog_AR"; then
6725 if test -n "$ac_cv_prog_AR"; then
6726 for ncn_progname in ar; do
6727 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6728 set dummy ${ncn_progname}; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_prog_AR+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 if test -n "$AR"; then
6735 ac_cv_prog_AR="$AR" # Let the user override the test.
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744 ac_cv_prog_AR="${ncn_progname}"
6745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 if test -n "$AR"; then
6756 { echo "$as_me:$LINENO: result: $AR" >&5
6757 echo "${ECHO_T}$AR" >&6; }
6759 { echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6; }
6767 for ncn_progname in ar; do
6768 if test -n "$ncn_tool_prefix"; then
6769 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6770 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6773 if test "${ac_cv_prog_AR+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 if test -n "$AR"; then
6777 ac_cv_prog_AR="$AR" # Let the user override the test.
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 if test -n "$AR"; then
6798 { echo "$as_me:$LINENO: result: $AR" >&5
6799 echo "${ECHO_T}$AR" >&6; }
6801 { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6807 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6808 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6809 set dummy ${ncn_progname}; ac_word=$2
6810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6812 if test "${ac_cv_prog_AR+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 if test -n "$AR"; then
6816 ac_cv_prog_AR="$AR" # Let the user override the test.
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6825 ac_cv_prog_AR="${ncn_progname}"
6826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 if test -n "$AR"; then
6837 { echo "$as_me:$LINENO: result: $AR" >&5
6838 echo "${ECHO_T}$AR" >&6; }
6840 { echo "$as_me:$LINENO: result: no" >&5
6841 echo "${ECHO_T}no" >&6; }
6846 test -n "$ac_cv_prog_AR" && break
6849 if test -z "$ac_cv_prog_AR" ; then
6851 if test $build = $host ; then
6854 AR="${ncn_tool_prefix}$2"
6860 if test -n "$AS"; then
6862 elif test -n "$ac_cv_prog_AS"; then
6866 if test -n "$ac_cv_prog_AS"; then
6867 for ncn_progname in as; do
6868 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6869 set dummy ${ncn_progname}; ac_word=$2
6870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6872 if test "${ac_cv_prog_AS+set}" = set; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 if test -n "$AS"; then
6876 ac_cv_prog_AS="$AS" # Let the user override the test.
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 test -z "$as_dir" && as_dir=.
6883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6885 ac_cv_prog_AS="${ncn_progname}"
6886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6896 if test -n "$AS"; then
6897 { echo "$as_me:$LINENO: result: $AS" >&5
6898 echo "${ECHO_T}$AS" >&6; }
6900 { echo "$as_me:$LINENO: result: no" >&5
6901 echo "${ECHO_T}no" >&6; }
6908 for ncn_progname in as; do
6909 if test -n "$ncn_tool_prefix"; then
6910 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6911 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6914 if test "${ac_cv_prog_AS+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 if test -n "$AS"; then
6918 ac_cv_prog_AS="$AS" # Let the user override the test.
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6927 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 if test -n "$AS"; then
6939 { echo "$as_me:$LINENO: result: $AS" >&5
6940 echo "${ECHO_T}$AS" >&6; }
6942 { echo "$as_me:$LINENO: result: no" >&5
6943 echo "${ECHO_T}no" >&6; }
6948 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6949 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6950 set dummy ${ncn_progname}; ac_word=$2
6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953 if test "${ac_cv_prog_AS+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6956 if test -n "$AS"; then
6957 ac_cv_prog_AS="$AS" # Let the user override the test.
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6966 ac_cv_prog_AS="${ncn_progname}"
6967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 if test -n "$AS"; then
6978 { echo "$as_me:$LINENO: result: $AS" >&5
6979 echo "${ECHO_T}$AS" >&6; }
6981 { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6987 test -n "$ac_cv_prog_AS" && break
6990 if test -z "$ac_cv_prog_AS" ; then
6992 if test $build = $host ; then
6995 AS="${ncn_tool_prefix}$2"
7001 if test -n "$DLLTOOL"; then
7002 ac_cv_prog_DLLTOOL=$DLLTOOL
7003 elif test -n "$ac_cv_prog_DLLTOOL"; then
7004 DLLTOOL=$ac_cv_prog_DLLTOOL
7007 if test -n "$ac_cv_prog_DLLTOOL"; then
7008 for ncn_progname in dlltool; do
7009 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7010 set dummy ${ncn_progname}; ac_word=$2
7011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7013 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7016 if test -n "$DLLTOOL"; then
7017 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 test -z "$as_dir" && as_dir=.
7024 for ac_exec_ext in '' $ac_executable_extensions; do
7025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7026 ac_cv_prog_DLLTOOL="${ncn_progname}"
7027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 DLLTOOL=$ac_cv_prog_DLLTOOL
7037 if test -n "$DLLTOOL"; then
7038 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7039 echo "${ECHO_T}$DLLTOOL" >&6; }
7041 { echo "$as_me:$LINENO: result: no" >&5
7042 echo "${ECHO_T}no" >&6; }
7049 for ncn_progname in dlltool; do
7050 if test -n "$ncn_tool_prefix"; then
7051 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7052 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7055 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 if test -n "$DLLTOOL"; then
7059 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7068 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 DLLTOOL=$ac_cv_prog_DLLTOOL
7079 if test -n "$DLLTOOL"; then
7080 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7081 echo "${ECHO_T}$DLLTOOL" >&6; }
7083 { echo "$as_me:$LINENO: result: no" >&5
7084 echo "${ECHO_T}no" >&6; }
7089 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7091 set dummy ${ncn_progname}; ac_word=$2
7092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7094 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
7097 if test -n "$DLLTOOL"; then
7098 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7107 ac_cv_prog_DLLTOOL="${ncn_progname}"
7108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 DLLTOOL=$ac_cv_prog_DLLTOOL
7118 if test -n "$DLLTOOL"; then
7119 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7120 echo "${ECHO_T}$DLLTOOL" >&6; }
7122 { echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6; }
7128 test -n "$ac_cv_prog_DLLTOOL" && break
7131 if test -z "$ac_cv_prog_DLLTOOL" ; then
7133 if test $build = $host ; then
7136 DLLTOOL="${ncn_tool_prefix}$2"
7142 if test -n "$LD"; then
7144 elif test -n "$ac_cv_prog_LD"; then
7148 if test -n "$ac_cv_prog_LD"; then
7149 for ncn_progname in ld; do
7150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7151 set dummy ${ncn_progname}; ac_word=$2
7152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7154 if test "${ac_cv_prog_LD+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 if test -n "$LD"; then
7158 ac_cv_prog_LD="$LD" # Let the user override the test.
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7167 ac_cv_prog_LD="${ncn_progname}"
7168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 if test -n "$LD"; then
7179 { echo "$as_me:$LINENO: result: $LD" >&5
7180 echo "${ECHO_T}$LD" >&6; }
7182 { echo "$as_me:$LINENO: result: no" >&5
7183 echo "${ECHO_T}no" >&6; }
7190 for ncn_progname in ld; do
7191 if test -n "$ncn_tool_prefix"; then
7192 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7193 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7196 if test "${ac_cv_prog_LD+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 if test -n "$LD"; then
7200 ac_cv_prog_LD="$LD" # Let the user override the test.
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7209 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7220 if test -n "$LD"; then
7221 { echo "$as_me:$LINENO: result: $LD" >&5
7222 echo "${ECHO_T}$LD" >&6; }
7224 { echo "$as_me:$LINENO: result: no" >&5
7225 echo "${ECHO_T}no" >&6; }
7230 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7232 set dummy ${ncn_progname}; ac_word=$2
7233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7235 if test "${ac_cv_prog_LD+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 if test -n "$LD"; then
7239 ac_cv_prog_LD="$LD" # Let the user override the test.
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248 ac_cv_prog_LD="${ncn_progname}"
7249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 if test -n "$LD"; then
7260 { echo "$as_me:$LINENO: result: $LD" >&5
7261 echo "${ECHO_T}$LD" >&6; }
7263 { echo "$as_me:$LINENO: result: no" >&5
7264 echo "${ECHO_T}no" >&6; }
7269 test -n "$ac_cv_prog_LD" && break
7272 if test -z "$ac_cv_prog_LD" ; then
7274 if test $build = $host ; then
7277 LD="${ncn_tool_prefix}$2"
7283 if test -n "$LIPO"; then
7284 ac_cv_prog_LIPO=$LIPO
7285 elif test -n "$ac_cv_prog_LIPO"; then
7286 LIPO=$ac_cv_prog_LIPO
7289 if test -n "$ac_cv_prog_LIPO"; then
7290 for ncn_progname in lipo; do
7291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7292 set dummy ${ncn_progname}; ac_word=$2
7293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7295 if test "${ac_cv_prog_LIPO+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 if test -n "$LIPO"; then
7299 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 test -z "$as_dir" && as_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7308 ac_cv_prog_LIPO="${ncn_progname}"
7309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 LIPO=$ac_cv_prog_LIPO
7319 if test -n "$LIPO"; then
7320 { echo "$as_me:$LINENO: result: $LIPO" >&5
7321 echo "${ECHO_T}$LIPO" >&6; }
7323 { echo "$as_me:$LINENO: result: no" >&5
7324 echo "${ECHO_T}no" >&6; }
7331 for ncn_progname in lipo; do
7332 if test -n "$ncn_tool_prefix"; then
7333 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7334 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7337 if test "${ac_cv_prog_LIPO+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 if test -n "$LIPO"; then
7341 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7350 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 LIPO=$ac_cv_prog_LIPO
7361 if test -n "$LIPO"; then
7362 { echo "$as_me:$LINENO: result: $LIPO" >&5
7363 echo "${ECHO_T}$LIPO" >&6; }
7365 { echo "$as_me:$LINENO: result: no" >&5
7366 echo "${ECHO_T}no" >&6; }
7371 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7373 set dummy ${ncn_progname}; ac_word=$2
7374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7376 if test "${ac_cv_prog_LIPO+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 if test -n "$LIPO"; then
7380 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 test -z "$as_dir" && as_dir=.
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7389 ac_cv_prog_LIPO="${ncn_progname}"
7390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7399 LIPO=$ac_cv_prog_LIPO
7400 if test -n "$LIPO"; then
7401 { echo "$as_me:$LINENO: result: $LIPO" >&5
7402 echo "${ECHO_T}$LIPO" >&6; }
7404 { echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6; }
7410 test -n "$ac_cv_prog_LIPO" && break
7413 if test -z "$ac_cv_prog_LIPO" ; then
7415 if test $build = $host ; then
7418 LIPO="${ncn_tool_prefix}$2"
7424 if test -n "$NM"; then
7426 elif test -n "$ac_cv_prog_NM"; then
7430 if test -n "$ac_cv_prog_NM"; then
7431 for ncn_progname in nm; do
7432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7433 set dummy ${ncn_progname}; ac_word=$2
7434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436 if test "${ac_cv_prog_NM+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 if test -n "$NM"; then
7440 ac_cv_prog_NM="$NM" # Let the user override the test.
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7449 ac_cv_prog_NM="${ncn_progname}"
7450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 if test -n "$NM"; then
7461 { echo "$as_me:$LINENO: result: $NM" >&5
7462 echo "${ECHO_T}$NM" >&6; }
7464 { echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6; }
7472 for ncn_progname in nm; do
7473 if test -n "$ncn_tool_prefix"; then
7474 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7475 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7478 if test "${ac_cv_prog_NM+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7481 if test -n "$NM"; then
7482 ac_cv_prog_NM="$NM" # Let the user override the test.
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 test -z "$as_dir" && as_dir=.
7489 for ac_exec_ext in '' $ac_executable_extensions; do
7490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7491 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
7492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7502 if test -n "$NM"; then
7503 { echo "$as_me:$LINENO: result: $NM" >&5
7504 echo "${ECHO_T}$NM" >&6; }
7506 { echo "$as_me:$LINENO: result: no" >&5
7507 echo "${ECHO_T}no" >&6; }
7512 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7514 set dummy ${ncn_progname}; ac_word=$2
7515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7517 if test "${ac_cv_prog_NM+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 if test -n "$NM"; then
7521 ac_cv_prog_NM="$NM" # Let the user override the test.
7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 test -z "$as_dir" && as_dir=.
7528 for ac_exec_ext in '' $ac_executable_extensions; do
7529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7530 ac_cv_prog_NM="${ncn_progname}"
7531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 if test -n "$NM"; then
7542 { echo "$as_me:$LINENO: result: $NM" >&5
7543 echo "${ECHO_T}$NM" >&6; }
7545 { echo "$as_me:$LINENO: result: no" >&5
7546 echo "${ECHO_T}no" >&6; }
7551 test -n "$ac_cv_prog_NM" && break
7554 if test -z "$ac_cv_prog_NM" ; then
7556 if test $build = $host ; then
7559 NM="${ncn_tool_prefix}$2"
7565 if test -n "$RANLIB"; then
7566 ac_cv_prog_RANLIB=$RANLIB
7567 elif test -n "$ac_cv_prog_RANLIB"; then
7568 RANLIB=$ac_cv_prog_RANLIB
7571 if test -n "$ac_cv_prog_RANLIB"; then
7572 for ncn_progname in ranlib; do
7573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7574 set dummy ${ncn_progname}; ac_word=$2
7575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7577 if test "${ac_cv_prog_RANLIB+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 if test -n "$RANLIB"; then
7581 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7590 ac_cv_prog_RANLIB="${ncn_progname}"
7591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 RANLIB=$ac_cv_prog_RANLIB
7601 if test -n "$RANLIB"; then
7602 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7603 echo "${ECHO_T}$RANLIB" >&6; }
7605 { echo "$as_me:$LINENO: result: no" >&5
7606 echo "${ECHO_T}no" >&6; }
7613 for ncn_progname in ranlib; do
7614 if test -n "$ncn_tool_prefix"; then
7615 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7616 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7619 if test "${ac_cv_prog_RANLIB+set}" = set; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7622 if test -n "$RANLIB"; then
7623 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629 test -z "$as_dir" && as_dir=.
7630 for ac_exec_ext in '' $ac_executable_extensions; do
7631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7632 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7642 RANLIB=$ac_cv_prog_RANLIB
7643 if test -n "$RANLIB"; then
7644 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7645 echo "${ECHO_T}$RANLIB" >&6; }
7647 { echo "$as_me:$LINENO: result: no" >&5
7648 echo "${ECHO_T}no" >&6; }
7653 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7655 set dummy ${ncn_progname}; ac_word=$2
7656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7658 if test "${ac_cv_prog_RANLIB+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7661 if test -n "$RANLIB"; then
7662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 test -z "$as_dir" && as_dir=.
7669 for ac_exec_ext in '' $ac_executable_extensions; do
7670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7671 ac_cv_prog_RANLIB="${ncn_progname}"
7672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 RANLIB=$ac_cv_prog_RANLIB
7682 if test -n "$RANLIB"; then
7683 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7684 echo "${ECHO_T}$RANLIB" >&6; }
7686 { echo "$as_me:$LINENO: result: no" >&5
7687 echo "${ECHO_T}no" >&6; }
7692 test -n "$ac_cv_prog_RANLIB" && break
7695 if test -z "$ac_cv_prog_RANLIB" ; then
7701 if test -n "$STRIP"; then
7702 ac_cv_prog_STRIP=$STRIP
7703 elif test -n "$ac_cv_prog_STRIP"; then
7704 STRIP=$ac_cv_prog_STRIP
7707 if test -n "$ac_cv_prog_STRIP"; then
7708 for ncn_progname in strip; do
7709 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7710 set dummy ${ncn_progname}; ac_word=$2
7711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7713 if test "${ac_cv_prog_STRIP+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 if test -n "$STRIP"; then
7717 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7726 ac_cv_prog_STRIP="${ncn_progname}"
7727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 STRIP=$ac_cv_prog_STRIP
7737 if test -n "$STRIP"; then
7738 { echo "$as_me:$LINENO: result: $STRIP" >&5
7739 echo "${ECHO_T}$STRIP" >&6; }
7741 { echo "$as_me:$LINENO: result: no" >&5
7742 echo "${ECHO_T}no" >&6; }
7749 for ncn_progname in strip; do
7750 if test -n "$ncn_tool_prefix"; then
7751 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7752 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7755 if test "${ac_cv_prog_STRIP+set}" = set; then
7756 echo $ECHO_N "(cached) $ECHO_C" >&6
7758 if test -n "$STRIP"; then
7759 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 test -z "$as_dir" && as_dir=.
7766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7768 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7778 STRIP=$ac_cv_prog_STRIP
7779 if test -n "$STRIP"; then
7780 { echo "$as_me:$LINENO: result: $STRIP" >&5
7781 echo "${ECHO_T}$STRIP" >&6; }
7783 { echo "$as_me:$LINENO: result: no" >&5
7784 echo "${ECHO_T}no" >&6; }
7789 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7791 set dummy ${ncn_progname}; ac_word=$2
7792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7794 if test "${ac_cv_prog_STRIP+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7797 if test -n "$STRIP"; then
7798 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807 ac_cv_prog_STRIP="${ncn_progname}"
7808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 STRIP=$ac_cv_prog_STRIP
7818 if test -n "$STRIP"; then
7819 { echo "$as_me:$LINENO: result: $STRIP" >&5
7820 echo "${ECHO_T}$STRIP" >&6; }
7822 { echo "$as_me:$LINENO: result: no" >&5
7823 echo "${ECHO_T}no" >&6; }
7828 test -n "$ac_cv_prog_STRIP" && break
7831 if test -z "$ac_cv_prog_STRIP" ; then
7837 if test -n "$WINDRES"; then
7838 ac_cv_prog_WINDRES=$WINDRES
7839 elif test -n "$ac_cv_prog_WINDRES"; then
7840 WINDRES=$ac_cv_prog_WINDRES
7843 if test -n "$ac_cv_prog_WINDRES"; then
7844 for ncn_progname in windres; do
7845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7846 set dummy ${ncn_progname}; ac_word=$2
7847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7849 if test "${ac_cv_prog_WINDRES+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 if test -n "$WINDRES"; then
7853 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 test -z "$as_dir" && as_dir=.
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7862 ac_cv_prog_WINDRES="${ncn_progname}"
7863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 WINDRES=$ac_cv_prog_WINDRES
7873 if test -n "$WINDRES"; then
7874 { echo "$as_me:$LINENO: result: $WINDRES" >&5
7875 echo "${ECHO_T}$WINDRES" >&6; }
7877 { echo "$as_me:$LINENO: result: no" >&5
7878 echo "${ECHO_T}no" >&6; }
7885 for ncn_progname in windres; do
7886 if test -n "$ncn_tool_prefix"; then
7887 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7888 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7891 if test "${ac_cv_prog_WINDRES+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7894 if test -n "$WINDRES"; then
7895 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901 test -z "$as_dir" && as_dir=.
7902 for ac_exec_ext in '' $ac_executable_extensions; do
7903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7904 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7914 WINDRES=$ac_cv_prog_WINDRES
7915 if test -n "$WINDRES"; then
7916 { echo "$as_me:$LINENO: result: $WINDRES" >&5
7917 echo "${ECHO_T}$WINDRES" >&6; }
7919 { echo "$as_me:$LINENO: result: no" >&5
7920 echo "${ECHO_T}no" >&6; }
7925 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7927 set dummy ${ncn_progname}; ac_word=$2
7928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7930 if test "${ac_cv_prog_WINDRES+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 if test -n "$WINDRES"; then
7934 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940 test -z "$as_dir" && as_dir=.
7941 for ac_exec_ext in '' $ac_executable_extensions; do
7942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7943 ac_cv_prog_WINDRES="${ncn_progname}"
7944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7953 WINDRES=$ac_cv_prog_WINDRES
7954 if test -n "$WINDRES"; then
7955 { echo "$as_me:$LINENO: result: $WINDRES" >&5
7956 echo "${ECHO_T}$WINDRES" >&6; }
7958 { echo "$as_me:$LINENO: result: no" >&5
7959 echo "${ECHO_T}no" >&6; }
7964 test -n "$ac_cv_prog_WINDRES" && break
7967 if test -z "$ac_cv_prog_WINDRES" ; then
7969 if test $build = $host ; then
7972 WINDRES="${ncn_tool_prefix}$2"
7978 if test -n "$OBJCOPY"; then
7979 ac_cv_prog_OBJCOPY=$OBJCOPY
7980 elif test -n "$ac_cv_prog_OBJCOPY"; then
7981 OBJCOPY=$ac_cv_prog_OBJCOPY
7984 if test -n "$ac_cv_prog_OBJCOPY"; then
7985 for ncn_progname in objcopy; do
7986 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7987 set dummy ${ncn_progname}; ac_word=$2
7988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7990 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 if test -n "$OBJCOPY"; then
7994 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 test -z "$as_dir" && as_dir=.
8001 for ac_exec_ext in '' $ac_executable_extensions; do
8002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8003 ac_cv_prog_OBJCOPY="${ncn_progname}"
8004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 OBJCOPY=$ac_cv_prog_OBJCOPY
8014 if test -n "$OBJCOPY"; then
8015 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8016 echo "${ECHO_T}$OBJCOPY" >&6; }
8018 { echo "$as_me:$LINENO: result: no" >&5
8019 echo "${ECHO_T}no" >&6; }
8026 for ncn_progname in objcopy; do
8027 if test -n "$ncn_tool_prefix"; then
8028 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8029 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8032 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8033 echo $ECHO_N "(cached) $ECHO_C" >&6
8035 if test -n "$OBJCOPY"; then
8036 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8045 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8055 OBJCOPY=$ac_cv_prog_OBJCOPY
8056 if test -n "$OBJCOPY"; then
8057 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8058 echo "${ECHO_T}$OBJCOPY" >&6; }
8060 { echo "$as_me:$LINENO: result: no" >&5
8061 echo "${ECHO_T}no" >&6; }
8066 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8067 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8068 set dummy ${ncn_progname}; ac_word=$2
8069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8071 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8074 if test -n "$OBJCOPY"; then
8075 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081 test -z "$as_dir" && as_dir=.
8082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8084 ac_cv_prog_OBJCOPY="${ncn_progname}"
8085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 OBJCOPY=$ac_cv_prog_OBJCOPY
8095 if test -n "$OBJCOPY"; then
8096 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8097 echo "${ECHO_T}$OBJCOPY" >&6; }
8099 { echo "$as_me:$LINENO: result: no" >&5
8100 echo "${ECHO_T}no" >&6; }
8105 test -n "$ac_cv_prog_OBJCOPY" && break
8108 if test -z "$ac_cv_prog_OBJCOPY" ; then
8110 if test $build = $host ; then
8113 OBJCOPY="${ncn_tool_prefix}$2"
8119 if test -n "$OBJDUMP"; then
8120 ac_cv_prog_OBJDUMP=$OBJDUMP
8121 elif test -n "$ac_cv_prog_OBJDUMP"; then
8122 OBJDUMP=$ac_cv_prog_OBJDUMP
8125 if test -n "$ac_cv_prog_OBJDUMP"; then
8126 for ncn_progname in objdump; do
8127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8128 set dummy ${ncn_progname}; ac_word=$2
8129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8131 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 if test -n "$OBJDUMP"; then
8135 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 test -z "$as_dir" && as_dir=.
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8144 ac_cv_prog_OBJDUMP="${ncn_progname}"
8145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8154 OBJDUMP=$ac_cv_prog_OBJDUMP
8155 if test -n "$OBJDUMP"; then
8156 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8157 echo "${ECHO_T}$OBJDUMP" >&6; }
8159 { echo "$as_me:$LINENO: result: no" >&5
8160 echo "${ECHO_T}no" >&6; }
8167 for ncn_progname in objdump; do
8168 if test -n "$ncn_tool_prefix"; then
8169 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8170 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8173 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 if test -n "$OBJDUMP"; then
8177 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 test -z "$as_dir" && as_dir=.
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8186 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8196 OBJDUMP=$ac_cv_prog_OBJDUMP
8197 if test -n "$OBJDUMP"; then
8198 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8199 echo "${ECHO_T}$OBJDUMP" >&6; }
8201 { echo "$as_me:$LINENO: result: no" >&5
8202 echo "${ECHO_T}no" >&6; }
8207 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8208 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8209 set dummy ${ncn_progname}; ac_word=$2
8210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8212 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8215 if test -n "$OBJDUMP"; then
8216 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 test -z "$as_dir" && as_dir=.
8223 for ac_exec_ext in '' $ac_executable_extensions; do
8224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8225 ac_cv_prog_OBJDUMP="${ncn_progname}"
8226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8235 OBJDUMP=$ac_cv_prog_OBJDUMP
8236 if test -n "$OBJDUMP"; then
8237 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8238 echo "${ECHO_T}$OBJDUMP" >&6; }
8240 { echo "$as_me:$LINENO: result: no" >&5
8241 echo "${ECHO_T}no" >&6; }
8246 test -n "$ac_cv_prog_OBJDUMP" && break
8249 if test -z "$ac_cv_prog_OBJDUMP" ; then
8251 if test $build = $host ; then
8254 OBJDUMP="${ncn_tool_prefix}$2"
8266 # Check whether --with-build-time-tools was given.
8267 if test "${with_build_time_tools+set}" = set; then
8268 withval=$with_build_time_tools; case x"$withval" in
8271 with_build_time_tools=
8272 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8273 echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
8277 with_build_time_tools=
8283 if test -n "$CC_FOR_TARGET"; then
8284 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8285 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8286 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8289 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8290 for ncn_progname in cc gcc; do
8291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8292 set dummy ${ncn_progname}; ac_word=$2
8293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8295 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 if test -n "$CC_FOR_TARGET"; then
8299 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 test -z "$as_dir" && as_dir=.
8306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8308 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8318 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8319 if test -n "$CC_FOR_TARGET"; then
8320 { echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8321 echo "${ECHO_T}$CC_FOR_TARGET" >&6; }
8323 { echo "$as_me:$LINENO: result: no" >&5
8324 echo "${ECHO_T}no" >&6; }
8331 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8332 for ncn_progname in cc gcc; do
8333 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8334 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
8335 if test -x $with_build_time_tools/${ncn_progname}; then
8336 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8337 { echo "$as_me:$LINENO: result: yes" >&5
8338 echo "${ECHO_T}yes" >&6; }
8341 { echo "$as_me:$LINENO: result: no" >&5
8342 echo "${ECHO_T}no" >&6; }
8347 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8348 for ncn_progname in cc gcc; do
8349 if test -n "$ncn_target_tool_prefix"; then
8350 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8351 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8354 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 if test -n "$CC_FOR_TARGET"; then
8358 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 test -z "$as_dir" && as_dir=.
8365 for ac_exec_ext in '' $ac_executable_extensions; do
8366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8367 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8377 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8378 if test -n "$CC_FOR_TARGET"; then
8379 { echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8380 echo "${ECHO_T}$CC_FOR_TARGET" >&6; }
8382 { echo "$as_me:$LINENO: result: no" >&5
8383 echo "${ECHO_T}no" >&6; }
8388 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8390 set dummy ${ncn_progname}; ac_word=$2
8391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8393 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 if test -n "$CC_FOR_TARGET"; then
8397 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403 test -z "$as_dir" && as_dir=.
8404 for ac_exec_ext in '' $ac_executable_extensions; do
8405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8406 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8416 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8417 if test -n "$CC_FOR_TARGET"; then
8418 { echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8419 echo "${ECHO_T}$CC_FOR_TARGET" >&6; }
8421 { echo "$as_me:$LINENO: result: no" >&5
8422 echo "${ECHO_T}no" >&6; }
8427 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8431 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8433 if test $build = $target ; then
8436 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
8442 if test -n "$CXX_FOR_TARGET"; then
8443 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8444 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8445 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8448 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8449 for ncn_progname in c++ g++ cxx gxx; do
8450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8451 set dummy ${ncn_progname}; ac_word=$2
8452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8454 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 if test -n "$CXX_FOR_TARGET"; then
8458 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464 test -z "$as_dir" && as_dir=.
8465 for ac_exec_ext in '' $ac_executable_extensions; do
8466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8467 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8477 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8478 if test -n "$CXX_FOR_TARGET"; then
8479 { echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8480 echo "${ECHO_T}$CXX_FOR_TARGET" >&6; }
8482 { echo "$as_me:$LINENO: result: no" >&5
8483 echo "${ECHO_T}no" >&6; }
8490 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
8491 for ncn_progname in c++ g++ cxx gxx; do
8492 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8493 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
8494 if test -x $with_build_time_tools/${ncn_progname}; then
8495 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8496 { echo "$as_me:$LINENO: result: yes" >&5
8497 echo "${ECHO_T}yes" >&6; }
8500 { echo "$as_me:$LINENO: result: no" >&5
8501 echo "${ECHO_T}no" >&6; }
8506 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8507 for ncn_progname in c++ g++ cxx gxx; do
8508 if test -n "$ncn_target_tool_prefix"; then
8509 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8510 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8513 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
8516 if test -n "$CXX_FOR_TARGET"; then
8517 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 test -z "$as_dir" && as_dir=.
8524 for ac_exec_ext in '' $ac_executable_extensions; do
8525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8526 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8536 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8537 if test -n "$CXX_FOR_TARGET"; then
8538 { echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8539 echo "${ECHO_T}$CXX_FOR_TARGET" >&6; }
8541 { echo "$as_me:$LINENO: result: no" >&5
8542 echo "${ECHO_T}no" >&6; }
8547 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8549 set dummy ${ncn_progname}; ac_word=$2
8550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8552 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8555 if test -n "$CXX_FOR_TARGET"; then
8556 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8562 test -z "$as_dir" && as_dir=.
8563 for ac_exec_ext in '' $ac_executable_extensions; do
8564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8565 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8575 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8576 if test -n "$CXX_FOR_TARGET"; then
8577 { echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8578 echo "${ECHO_T}$CXX_FOR_TARGET" >&6; }
8580 { echo "$as_me:$LINENO: result: no" >&5
8581 echo "${ECHO_T}no" >&6; }
8586 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8590 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8591 set dummy c++ g++ cxx gxx
8592 if test $build = $target ; then
8595 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
8601 if test -n "$GCC_FOR_TARGET"; then
8602 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8603 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8604 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8607 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8608 for ncn_progname in gcc; do
8609 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8610 set dummy ${ncn_progname}; ac_word=$2
8611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8613 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8614 echo $ECHO_N "(cached) $ECHO_C" >&6
8616 if test -n "$GCC_FOR_TARGET"; then
8617 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623 test -z "$as_dir" && as_dir=.
8624 for ac_exec_ext in '' $ac_executable_extensions; do
8625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8626 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8636 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8637 if test -n "$GCC_FOR_TARGET"; then
8638 { echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8639 echo "${ECHO_T}$GCC_FOR_TARGET" >&6; }
8641 { echo "$as_me:$LINENO: result: no" >&5
8642 echo "${ECHO_T}no" >&6; }
8649 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8650 for ncn_progname in gcc; do
8651 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8652 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
8653 if test -x $with_build_time_tools/${ncn_progname}; then
8654 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8655 { echo "$as_me:$LINENO: result: yes" >&5
8656 echo "${ECHO_T}yes" >&6; }
8659 { echo "$as_me:$LINENO: result: no" >&5
8660 echo "${ECHO_T}no" >&6; }
8665 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8666 for ncn_progname in gcc; do
8667 if test -n "$ncn_target_tool_prefix"; then
8668 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8669 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8672 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
8675 if test -n "$GCC_FOR_TARGET"; then
8676 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8682 test -z "$as_dir" && as_dir=.
8683 for ac_exec_ext in '' $ac_executable_extensions; do
8684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8685 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8695 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8696 if test -n "$GCC_FOR_TARGET"; then
8697 { echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8698 echo "${ECHO_T}$GCC_FOR_TARGET" >&6; }
8700 { echo "$as_me:$LINENO: result: no" >&5
8701 echo "${ECHO_T}no" >&6; }
8706 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8708 set dummy ${ncn_progname}; ac_word=$2
8709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8711 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8714 if test -n "$GCC_FOR_TARGET"; then
8715 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721 test -z "$as_dir" && as_dir=.
8722 for ac_exec_ext in '' $ac_executable_extensions; do
8723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8724 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8734 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8735 if test -n "$GCC_FOR_TARGET"; then
8736 { echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8737 echo "${ECHO_T}$GCC_FOR_TARGET" >&6; }
8739 { echo "$as_me:$LINENO: result: no" >&5
8740 echo "${ECHO_T}no" >&6; }
8745 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8749 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8750 GCC_FOR_TARGET="${CC_FOR_TARGET}"
8755 if test -n "$GCJ_FOR_TARGET"; then
8756 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8757 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8758 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8761 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8762 for ncn_progname in gcj; do
8763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8764 set dummy ${ncn_progname}; ac_word=$2
8765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8767 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 if test -n "$GCJ_FOR_TARGET"; then
8771 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8777 test -z "$as_dir" && as_dir=.
8778 for ac_exec_ext in '' $ac_executable_extensions; do
8779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8780 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8790 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8791 if test -n "$GCJ_FOR_TARGET"; then
8792 { echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8793 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6; }
8795 { echo "$as_me:$LINENO: result: no" >&5
8796 echo "${ECHO_T}no" >&6; }
8803 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
8804 for ncn_progname in gcj; do
8805 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8806 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
8807 if test -x $with_build_time_tools/${ncn_progname}; then
8808 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8809 { echo "$as_me:$LINENO: result: yes" >&5
8810 echo "${ECHO_T}yes" >&6; }
8813 { echo "$as_me:$LINENO: result: no" >&5
8814 echo "${ECHO_T}no" >&6; }
8819 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8820 for ncn_progname in gcj; do
8821 if test -n "$ncn_target_tool_prefix"; then
8822 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8823 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8826 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6
8829 if test -n "$GCJ_FOR_TARGET"; then
8830 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836 test -z "$as_dir" && as_dir=.
8837 for ac_exec_ext in '' $ac_executable_extensions; do
8838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8839 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8849 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8850 if test -n "$GCJ_FOR_TARGET"; then
8851 { echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8852 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6; }
8854 { echo "$as_me:$LINENO: result: no" >&5
8855 echo "${ECHO_T}no" >&6; }
8860 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8862 set dummy ${ncn_progname}; ac_word=$2
8863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8865 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8866 echo $ECHO_N "(cached) $ECHO_C" >&6
8868 if test -n "$GCJ_FOR_TARGET"; then
8869 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8875 test -z "$as_dir" && as_dir=.
8876 for ac_exec_ext in '' $ac_executable_extensions; do
8877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8878 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8888 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8889 if test -n "$GCJ_FOR_TARGET"; then
8890 { echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8891 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6; }
8893 { echo "$as_me:$LINENO: result: no" >&5
8894 echo "${ECHO_T}no" >&6; }
8899 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8903 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8905 if test $build = $target ; then
8908 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8914 if test -n "$GFORTRAN_FOR_TARGET"; then
8915 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8916 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8917 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8920 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8921 for ncn_progname in gfortran; do
8922 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8923 set dummy ${ncn_progname}; ac_word=$2
8924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8926 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8929 if test -n "$GFORTRAN_FOR_TARGET"; then
8930 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8936 test -z "$as_dir" && as_dir=.
8937 for ac_exec_ext in '' $ac_executable_extensions; do
8938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8939 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8949 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8950 if test -n "$GFORTRAN_FOR_TARGET"; then
8951 { echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8952 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6; }
8954 { echo "$as_me:$LINENO: result: no" >&5
8955 echo "${ECHO_T}no" >&6; }
8962 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
8963 for ncn_progname in gfortran; do
8964 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8965 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
8966 if test -x $with_build_time_tools/${ncn_progname}; then
8967 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8968 { echo "$as_me:$LINENO: result: yes" >&5
8969 echo "${ECHO_T}yes" >&6; }
8972 { echo "$as_me:$LINENO: result: no" >&5
8973 echo "${ECHO_T}no" >&6; }
8978 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8979 for ncn_progname in gfortran; do
8980 if test -n "$ncn_target_tool_prefix"; then
8981 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8982 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8985 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8986 echo $ECHO_N "(cached) $ECHO_C" >&6
8988 if test -n "$GFORTRAN_FOR_TARGET"; then
8989 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8995 test -z "$as_dir" && as_dir=.
8996 for ac_exec_ext in '' $ac_executable_extensions; do
8997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8998 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9008 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9009 if test -n "$GFORTRAN_FOR_TARGET"; then
9010 { echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9011 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6; }
9013 { echo "$as_me:$LINENO: result: no" >&5
9014 echo "${ECHO_T}no" >&6; }
9019 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9021 set dummy ${ncn_progname}; ac_word=$2
9022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9024 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 if test -n "$GFORTRAN_FOR_TARGET"; then
9028 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9034 test -z "$as_dir" && as_dir=.
9035 for ac_exec_ext in '' $ac_executable_extensions; do
9036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9037 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9047 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9048 if test -n "$GFORTRAN_FOR_TARGET"; then
9049 { echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9050 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6; }
9052 { echo "$as_me:$LINENO: result: no" >&5
9053 echo "${ECHO_T}no" >&6; }
9058 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9062 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9064 if test $build = $target ; then
9065 GFORTRAN_FOR_TARGET="$2"
9067 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
9073 cat > conftest.c << \EOF
9078 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9079 have_gcc_for_target=yes
9081 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9082 have_gcc_for_target=no
9089 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9090 if test -n "$with_build_time_tools"; then
9091 { echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
9092 echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6; }
9093 if test -x $with_build_time_tools/ar; then
9094 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9095 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9096 { echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
9097 echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6; }
9099 { echo "$as_me:$LINENO: result: no" >&5
9100 echo "${ECHO_T}no" >&6; }
9102 elif test $build != $host && test $have_gcc_for_target = yes; then
9103 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
9104 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
9105 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9108 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9109 # Extract the first word of "ar", so it can be a program name with args.
9110 set dummy ar; ac_word=$2
9111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9113 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9116 case $AR_FOR_TARGET in
9118 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9122 for as_dir in $gcc_cv_tool_dirs
9125 test -z "$as_dir" && as_dir=.
9126 for ac_exec_ext in '' $ac_executable_extensions; do
9127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9128 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9139 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9140 if test -n "$AR_FOR_TARGET"; then
9141 { echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9142 echo "${ECHO_T}$AR_FOR_TARGET" >&6; }
9144 { echo "$as_me:$LINENO: result: no" >&5
9145 echo "${ECHO_T}no" >&6; }
9150 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9153 if test -n "$AR_FOR_TARGET"; then
9154 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9155 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9156 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9159 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9160 for ncn_progname in ar; do
9161 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9162 set dummy ${ncn_progname}; ac_word=$2
9163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9165 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9166 echo $ECHO_N "(cached) $ECHO_C" >&6
9168 if test -n "$AR_FOR_TARGET"; then
9169 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9175 test -z "$as_dir" && as_dir=.
9176 for ac_exec_ext in '' $ac_executable_extensions; do
9177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9178 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9188 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9189 if test -n "$AR_FOR_TARGET"; then
9190 { echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9191 echo "${ECHO_T}$AR_FOR_TARGET" >&6; }
9193 { echo "$as_me:$LINENO: result: no" >&5
9194 echo "${ECHO_T}no" >&6; }
9201 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
9202 for ncn_progname in ar; do
9203 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9204 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
9205 if test -x $with_build_time_tools/${ncn_progname}; then
9206 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9207 { echo "$as_me:$LINENO: result: yes" >&5
9208 echo "${ECHO_T}yes" >&6; }
9211 { echo "$as_me:$LINENO: result: no" >&5
9212 echo "${ECHO_T}no" >&6; }
9217 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9218 for ncn_progname in ar; do
9219 if test -n "$ncn_target_tool_prefix"; then
9220 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9221 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9224 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9227 if test -n "$AR_FOR_TARGET"; then
9228 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9234 test -z "$as_dir" && as_dir=.
9235 for ac_exec_ext in '' $ac_executable_extensions; do
9236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9237 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9247 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9248 if test -n "$AR_FOR_TARGET"; then
9249 { echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9250 echo "${ECHO_T}$AR_FOR_TARGET" >&6; }
9252 { echo "$as_me:$LINENO: result: no" >&5
9253 echo "${ECHO_T}no" >&6; }
9258 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9260 set dummy ${ncn_progname}; ac_word=$2
9261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9263 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9266 if test -n "$AR_FOR_TARGET"; then
9267 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9273 test -z "$as_dir" && as_dir=.
9274 for ac_exec_ext in '' $ac_executable_extensions; do
9275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9276 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9286 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9287 if test -n "$AR_FOR_TARGET"; then
9288 { echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9289 echo "${ECHO_T}$AR_FOR_TARGET" >&6; }
9291 { echo "$as_me:$LINENO: result: no" >&5
9292 echo "${ECHO_T}no" >&6; }
9297 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9301 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9303 if test $build = $target ; then
9306 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
9311 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9317 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9318 if test -n "$with_build_time_tools"; then
9319 { echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9320 echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6; }
9321 if test -x $with_build_time_tools/as; then
9322 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9323 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9324 { echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9325 echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6; }
9327 { echo "$as_me:$LINENO: result: no" >&5
9328 echo "${ECHO_T}no" >&6; }
9330 elif test $build != $host && test $have_gcc_for_target = yes; then
9331 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
9332 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
9333 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9336 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9337 # Extract the first word of "as", so it can be a program name with args.
9338 set dummy as; ac_word=$2
9339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9341 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9342 echo $ECHO_N "(cached) $ECHO_C" >&6
9344 case $AS_FOR_TARGET in
9346 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9350 for as_dir in $gcc_cv_tool_dirs
9353 test -z "$as_dir" && as_dir=.
9354 for ac_exec_ext in '' $ac_executable_extensions; do
9355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9356 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9367 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9368 if test -n "$AS_FOR_TARGET"; then
9369 { echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9370 echo "${ECHO_T}$AS_FOR_TARGET" >&6; }
9372 { echo "$as_me:$LINENO: result: no" >&5
9373 echo "${ECHO_T}no" >&6; }
9378 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9381 if test -n "$AS_FOR_TARGET"; then
9382 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9383 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9384 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9387 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9388 for ncn_progname in as; do
9389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9390 set dummy ${ncn_progname}; ac_word=$2
9391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9393 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9394 echo $ECHO_N "(cached) $ECHO_C" >&6
9396 if test -n "$AS_FOR_TARGET"; then
9397 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9403 test -z "$as_dir" && as_dir=.
9404 for ac_exec_ext in '' $ac_executable_extensions; do
9405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9406 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9416 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9417 if test -n "$AS_FOR_TARGET"; then
9418 { echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9419 echo "${ECHO_T}$AS_FOR_TARGET" >&6; }
9421 { echo "$as_me:$LINENO: result: no" >&5
9422 echo "${ECHO_T}no" >&6; }
9429 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
9430 for ncn_progname in as; do
9431 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9432 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
9433 if test -x $with_build_time_tools/${ncn_progname}; then
9434 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9435 { echo "$as_me:$LINENO: result: yes" >&5
9436 echo "${ECHO_T}yes" >&6; }
9439 { echo "$as_me:$LINENO: result: no" >&5
9440 echo "${ECHO_T}no" >&6; }
9445 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9446 for ncn_progname in as; do
9447 if test -n "$ncn_target_tool_prefix"; then
9448 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9449 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9452 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9455 if test -n "$AS_FOR_TARGET"; then
9456 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9462 test -z "$as_dir" && as_dir=.
9463 for ac_exec_ext in '' $ac_executable_extensions; do
9464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9465 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9475 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9476 if test -n "$AS_FOR_TARGET"; then
9477 { echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9478 echo "${ECHO_T}$AS_FOR_TARGET" >&6; }
9480 { echo "$as_me:$LINENO: result: no" >&5
9481 echo "${ECHO_T}no" >&6; }
9486 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9488 set dummy ${ncn_progname}; ac_word=$2
9489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9491 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 if test -n "$AS_FOR_TARGET"; then
9495 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9501 test -z "$as_dir" && as_dir=.
9502 for ac_exec_ext in '' $ac_executable_extensions; do
9503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9504 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9514 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9515 if test -n "$AS_FOR_TARGET"; then
9516 { echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9517 echo "${ECHO_T}$AS_FOR_TARGET" >&6; }
9519 { echo "$as_me:$LINENO: result: no" >&5
9520 echo "${ECHO_T}no" >&6; }
9525 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9529 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9531 if test $build = $target ; then
9534 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9539 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9545 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9546 if test -n "$with_build_time_tools"; then
9547 { echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9548 echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6; }
9549 if test -x $with_build_time_tools/dlltool; then
9550 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9551 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9552 { echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9553 echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
9555 { echo "$as_me:$LINENO: result: no" >&5
9556 echo "${ECHO_T}no" >&6; }
9558 elif test $build != $host && test $have_gcc_for_target = yes; then
9559 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
9560 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
9561 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9564 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9565 # Extract the first word of "dlltool", so it can be a program name with args.
9566 set dummy dlltool; ac_word=$2
9567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9569 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9572 case $DLLTOOL_FOR_TARGET in
9574 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578 for as_dir in $gcc_cv_tool_dirs
9581 test -z "$as_dir" && as_dir=.
9582 for ac_exec_ext in '' $ac_executable_extensions; do
9583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9584 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9595 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9596 if test -n "$DLLTOOL_FOR_TARGET"; then
9597 { echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9598 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6; }
9600 { echo "$as_me:$LINENO: result: no" >&5
9601 echo "${ECHO_T}no" >&6; }
9606 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9609 if test -n "$DLLTOOL_FOR_TARGET"; then
9610 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9611 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9612 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9615 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9616 for ncn_progname in dlltool; do
9617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9618 set dummy ${ncn_progname}; ac_word=$2
9619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9621 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9622 echo $ECHO_N "(cached) $ECHO_C" >&6
9624 if test -n "$DLLTOOL_FOR_TARGET"; then
9625 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9631 test -z "$as_dir" && as_dir=.
9632 for ac_exec_ext in '' $ac_executable_extensions; do
9633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9634 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9644 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9645 if test -n "$DLLTOOL_FOR_TARGET"; then
9646 { echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9647 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6; }
9649 { echo "$as_me:$LINENO: result: no" >&5
9650 echo "${ECHO_T}no" >&6; }
9657 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
9658 for ncn_progname in dlltool; do
9659 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9660 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
9661 if test -x $with_build_time_tools/${ncn_progname}; then
9662 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9663 { echo "$as_me:$LINENO: result: yes" >&5
9664 echo "${ECHO_T}yes" >&6; }
9667 { echo "$as_me:$LINENO: result: no" >&5
9668 echo "${ECHO_T}no" >&6; }
9673 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9674 for ncn_progname in dlltool; do
9675 if test -n "$ncn_target_tool_prefix"; then
9676 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9677 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9680 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9681 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 if test -n "$DLLTOOL_FOR_TARGET"; then
9684 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690 test -z "$as_dir" && as_dir=.
9691 for ac_exec_ext in '' $ac_executable_extensions; do
9692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9693 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9703 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9704 if test -n "$DLLTOOL_FOR_TARGET"; then
9705 { echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9706 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6; }
9708 { echo "$as_me:$LINENO: result: no" >&5
9709 echo "${ECHO_T}no" >&6; }
9714 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9716 set dummy ${ncn_progname}; ac_word=$2
9717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9719 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 if test -n "$DLLTOOL_FOR_TARGET"; then
9723 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9729 test -z "$as_dir" && as_dir=.
9730 for ac_exec_ext in '' $ac_executable_extensions; do
9731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9732 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9742 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9743 if test -n "$DLLTOOL_FOR_TARGET"; then
9744 { echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9745 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6; }
9747 { echo "$as_me:$LINENO: result: no" >&5
9748 echo "${ECHO_T}no" >&6; }
9753 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9757 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9759 if test $build = $target ; then
9760 DLLTOOL_FOR_TARGET="$2"
9762 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9767 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9773 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9774 if test -n "$with_build_time_tools"; then
9775 { echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9776 echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6; }
9777 if test -x $with_build_time_tools/ld; then
9778 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9779 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9780 { echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9781 echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6; }
9783 { echo "$as_me:$LINENO: result: no" >&5
9784 echo "${ECHO_T}no" >&6; }
9786 elif test $build != $host && test $have_gcc_for_target = yes; then
9787 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
9788 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
9789 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9792 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9793 # Extract the first word of "ld", so it can be a program name with args.
9794 set dummy ld; ac_word=$2
9795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9797 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9800 case $LD_FOR_TARGET in
9802 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9806 for as_dir in $gcc_cv_tool_dirs
9809 test -z "$as_dir" && as_dir=.
9810 for ac_exec_ext in '' $ac_executable_extensions; do
9811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9812 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9823 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9824 if test -n "$LD_FOR_TARGET"; then
9825 { echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9826 echo "${ECHO_T}$LD_FOR_TARGET" >&6; }
9828 { echo "$as_me:$LINENO: result: no" >&5
9829 echo "${ECHO_T}no" >&6; }
9834 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9837 if test -n "$LD_FOR_TARGET"; then
9838 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9839 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9840 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9843 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9844 for ncn_progname in ld; do
9845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9846 set dummy ${ncn_progname}; ac_word=$2
9847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9849 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9850 echo $ECHO_N "(cached) $ECHO_C" >&6
9852 if test -n "$LD_FOR_TARGET"; then
9853 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9859 test -z "$as_dir" && as_dir=.
9860 for ac_exec_ext in '' $ac_executable_extensions; do
9861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9862 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9872 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9873 if test -n "$LD_FOR_TARGET"; then
9874 { echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9875 echo "${ECHO_T}$LD_FOR_TARGET" >&6; }
9877 { echo "$as_me:$LINENO: result: no" >&5
9878 echo "${ECHO_T}no" >&6; }
9885 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
9886 for ncn_progname in ld; do
9887 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9888 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
9889 if test -x $with_build_time_tools/${ncn_progname}; then
9890 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9891 { echo "$as_me:$LINENO: result: yes" >&5
9892 echo "${ECHO_T}yes" >&6; }
9895 { echo "$as_me:$LINENO: result: no" >&5
9896 echo "${ECHO_T}no" >&6; }
9901 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9902 for ncn_progname in ld; do
9903 if test -n "$ncn_target_tool_prefix"; then
9904 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9905 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9908 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9911 if test -n "$LD_FOR_TARGET"; then
9912 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918 test -z "$as_dir" && as_dir=.
9919 for ac_exec_ext in '' $ac_executable_extensions; do
9920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9921 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9931 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9932 if test -n "$LD_FOR_TARGET"; then
9933 { echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9934 echo "${ECHO_T}$LD_FOR_TARGET" >&6; }
9936 { echo "$as_me:$LINENO: result: no" >&5
9937 echo "${ECHO_T}no" >&6; }
9942 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9944 set dummy ${ncn_progname}; ac_word=$2
9945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9947 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9950 if test -n "$LD_FOR_TARGET"; then
9951 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9957 test -z "$as_dir" && as_dir=.
9958 for ac_exec_ext in '' $ac_executable_extensions; do
9959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9960 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9970 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9971 if test -n "$LD_FOR_TARGET"; then
9972 { echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9973 echo "${ECHO_T}$LD_FOR_TARGET" >&6; }
9975 { echo "$as_me:$LINENO: result: no" >&5
9976 echo "${ECHO_T}no" >&6; }
9981 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9985 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9987 if test $build = $target ; then
9990 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9995 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
10001 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10002 if test -n "$with_build_time_tools"; then
10003 { echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
10004 echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6; }
10005 if test -x $with_build_time_tools/lipo; then
10006 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10007 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10008 { echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10009 echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6; }
10011 { echo "$as_me:$LINENO: result: no" >&5
10012 echo "${ECHO_T}no" >&6; }
10014 elif test $build != $host && test $have_gcc_for_target = yes; then
10015 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
10016 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
10017 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10020 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10021 # Extract the first word of "lipo", so it can be a program name with args.
10022 set dummy lipo; ac_word=$2
10023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10025 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10028 case $LIPO_FOR_TARGET in
10030 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10034 for as_dir in $gcc_cv_tool_dirs
10037 test -z "$as_dir" && as_dir=.
10038 for ac_exec_ext in '' $ac_executable_extensions; do
10039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10040 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10051 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10052 if test -n "$LIPO_FOR_TARGET"; then
10053 { echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10054 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6; }
10056 { echo "$as_me:$LINENO: result: no" >&5
10057 echo "${ECHO_T}no" >&6; }
10062 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10065 if test -n "$LIPO_FOR_TARGET"; then
10066 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10067 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10068 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10071 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10072 for ncn_progname in lipo; do
10073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10074 set dummy ${ncn_progname}; ac_word=$2
10075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10077 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10078 echo $ECHO_N "(cached) $ECHO_C" >&6
10080 if test -n "$LIPO_FOR_TARGET"; then
10081 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084 for as_dir in $PATH
10087 test -z "$as_dir" && as_dir=.
10088 for ac_exec_ext in '' $ac_executable_extensions; do
10089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10090 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10100 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10101 if test -n "$LIPO_FOR_TARGET"; then
10102 { echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10103 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6; }
10105 { echo "$as_me:$LINENO: result: no" >&5
10106 echo "${ECHO_T}no" >&6; }
10113 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
10114 for ncn_progname in lipo; do
10115 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10116 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
10117 if test -x $with_build_time_tools/${ncn_progname}; then
10118 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10119 { echo "$as_me:$LINENO: result: yes" >&5
10120 echo "${ECHO_T}yes" >&6; }
10123 { echo "$as_me:$LINENO: result: no" >&5
10124 echo "${ECHO_T}no" >&6; }
10129 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10130 for ncn_progname in lipo; do
10131 if test -n "$ncn_target_tool_prefix"; then
10132 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10133 set dummy ${ncn_target_tool_prefix}${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_LIPO_FOR_TARGET+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
10139 if test -n "$LIPO_FOR_TARGET"; then
10140 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10149 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10159 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10160 if test -n "$LIPO_FOR_TARGET"; then
10161 { echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10162 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6; }
10164 { echo "$as_me:$LINENO: result: no" >&5
10165 echo "${ECHO_T}no" >&6; }
10170 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10172 set dummy ${ncn_progname}; ac_word=$2
10173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10175 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
10178 if test -n "$LIPO_FOR_TARGET"; then
10179 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182 for as_dir in $PATH
10185 test -z "$as_dir" && as_dir=.
10186 for ac_exec_ext in '' $ac_executable_extensions; do
10187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10188 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10198 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10199 if test -n "$LIPO_FOR_TARGET"; then
10200 { echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10201 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6; }
10203 { echo "$as_me:$LINENO: result: no" >&5
10204 echo "${ECHO_T}no" >&6; }
10209 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10213 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10215 if test $build = $target ; then
10216 LIPO_FOR_TARGET="$2"
10218 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10223 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10229 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10230 if test -n "$with_build_time_tools"; then
10231 { echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10232 echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6; }
10233 if test -x $with_build_time_tools/nm; then
10234 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10235 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10236 { echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10237 echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6; }
10239 { echo "$as_me:$LINENO: result: no" >&5
10240 echo "${ECHO_T}no" >&6; }
10242 elif test $build != $host && test $have_gcc_for_target = yes; then
10243 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
10244 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
10245 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10248 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10249 # Extract the first word of "nm", so it can be a program name with args.
10250 set dummy nm; ac_word=$2
10251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10253 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10256 case $NM_FOR_TARGET in
10258 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10262 for as_dir in $gcc_cv_tool_dirs
10265 test -z "$as_dir" && as_dir=.
10266 for ac_exec_ext in '' $ac_executable_extensions; do
10267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10268 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10279 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10280 if test -n "$NM_FOR_TARGET"; then
10281 { echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10282 echo "${ECHO_T}$NM_FOR_TARGET" >&6; }
10284 { echo "$as_me:$LINENO: result: no" >&5
10285 echo "${ECHO_T}no" >&6; }
10290 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10293 if test -n "$NM_FOR_TARGET"; then
10294 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10295 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10296 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10299 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10300 for ncn_progname in nm; do
10301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10302 set dummy ${ncn_progname}; ac_word=$2
10303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10305 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10308 if test -n "$NM_FOR_TARGET"; then
10309 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312 for as_dir in $PATH
10315 test -z "$as_dir" && as_dir=.
10316 for ac_exec_ext in '' $ac_executable_extensions; do
10317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10318 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10328 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10329 if test -n "$NM_FOR_TARGET"; then
10330 { echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10331 echo "${ECHO_T}$NM_FOR_TARGET" >&6; }
10333 { echo "$as_me:$LINENO: result: no" >&5
10334 echo "${ECHO_T}no" >&6; }
10341 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
10342 for ncn_progname in nm; do
10343 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10344 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
10345 if test -x $with_build_time_tools/${ncn_progname}; then
10346 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10347 { echo "$as_me:$LINENO: result: yes" >&5
10348 echo "${ECHO_T}yes" >&6; }
10351 { echo "$as_me:$LINENO: result: no" >&5
10352 echo "${ECHO_T}no" >&6; }
10357 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10358 for ncn_progname in nm; do
10359 if test -n "$ncn_target_tool_prefix"; then
10360 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10361 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10364 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 if test -n "$NM_FOR_TARGET"; then
10368 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371 for as_dir in $PATH
10374 test -z "$as_dir" && as_dir=.
10375 for ac_exec_ext in '' $ac_executable_extensions; do
10376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10377 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10387 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10388 if test -n "$NM_FOR_TARGET"; then
10389 { echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10390 echo "${ECHO_T}$NM_FOR_TARGET" >&6; }
10392 { echo "$as_me:$LINENO: result: no" >&5
10393 echo "${ECHO_T}no" >&6; }
10398 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10399 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10400 set dummy ${ncn_progname}; ac_word=$2
10401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10403 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10406 if test -n "$NM_FOR_TARGET"; then
10407 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10410 for as_dir in $PATH
10413 test -z "$as_dir" && as_dir=.
10414 for ac_exec_ext in '' $ac_executable_extensions; do
10415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10416 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10426 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10427 if test -n "$NM_FOR_TARGET"; then
10428 { echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10429 echo "${ECHO_T}$NM_FOR_TARGET" >&6; }
10431 { echo "$as_me:$LINENO: result: no" >&5
10432 echo "${ECHO_T}no" >&6; }
10437 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10441 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10443 if test $build = $target ; then
10446 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
10451 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10457 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10458 if test -n "$with_build_time_tools"; then
10459 { echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10460 echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6; }
10461 if test -x $with_build_time_tools/objdump; then
10462 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10463 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10464 { echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10465 echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
10467 { echo "$as_me:$LINENO: result: no" >&5
10468 echo "${ECHO_T}no" >&6; }
10470 elif test $build != $host && test $have_gcc_for_target = yes; then
10471 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
10472 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
10473 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10476 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10477 # Extract the first word of "objdump", so it can be a program name with args.
10478 set dummy objdump; ac_word=$2
10479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10481 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10484 case $OBJDUMP_FOR_TARGET in
10486 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490 for as_dir in $gcc_cv_tool_dirs
10493 test -z "$as_dir" && as_dir=.
10494 for ac_exec_ext in '' $ac_executable_extensions; do
10495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10496 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10507 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10508 if test -n "$OBJDUMP_FOR_TARGET"; then
10509 { echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10510 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6; }
10512 { echo "$as_me:$LINENO: result: no" >&5
10513 echo "${ECHO_T}no" >&6; }
10518 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10521 if test -n "$OBJDUMP_FOR_TARGET"; then
10522 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10523 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10524 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10527 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10528 for ncn_progname in objdump; do
10529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10530 set dummy ${ncn_progname}; ac_word=$2
10531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10533 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10536 if test -n "$OBJDUMP_FOR_TARGET"; then
10537 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540 for as_dir in $PATH
10543 test -z "$as_dir" && as_dir=.
10544 for ac_exec_ext in '' $ac_executable_extensions; do
10545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10546 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10556 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10557 if test -n "$OBJDUMP_FOR_TARGET"; then
10558 { echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10559 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6; }
10561 { echo "$as_me:$LINENO: result: no" >&5
10562 echo "${ECHO_T}no" >&6; }
10569 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10570 for ncn_progname in objdump; do
10571 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10572 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
10573 if test -x $with_build_time_tools/${ncn_progname}; then
10574 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10575 { echo "$as_me:$LINENO: result: yes" >&5
10576 echo "${ECHO_T}yes" >&6; }
10579 { echo "$as_me:$LINENO: result: no" >&5
10580 echo "${ECHO_T}no" >&6; }
10585 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10586 for ncn_progname in objdump; do
10587 if test -n "$ncn_target_tool_prefix"; then
10588 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10589 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10592 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10595 if test -n "$OBJDUMP_FOR_TARGET"; then
10596 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10599 for as_dir in $PATH
10602 test -z "$as_dir" && as_dir=.
10603 for ac_exec_ext in '' $ac_executable_extensions; do
10604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10605 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10615 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10616 if test -n "$OBJDUMP_FOR_TARGET"; then
10617 { echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10618 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6; }
10620 { echo "$as_me:$LINENO: result: no" >&5
10621 echo "${ECHO_T}no" >&6; }
10626 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10628 set dummy ${ncn_progname}; ac_word=$2
10629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10631 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
10634 if test -n "$OBJDUMP_FOR_TARGET"; then
10635 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10638 for as_dir in $PATH
10641 test -z "$as_dir" && as_dir=.
10642 for ac_exec_ext in '' $ac_executable_extensions; do
10643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10644 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10654 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10655 if test -n "$OBJDUMP_FOR_TARGET"; then
10656 { echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10657 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6; }
10659 { echo "$as_me:$LINENO: result: no" >&5
10660 echo "${ECHO_T}no" >&6; }
10665 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10669 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10671 if test $build = $target ; then
10672 OBJDUMP_FOR_TARGET="$2"
10674 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10679 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10685 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10686 if test -n "$with_build_time_tools"; then
10687 { echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10688 echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6; }
10689 if test -x $with_build_time_tools/ranlib; then
10690 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10691 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10692 { echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10693 echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
10695 { echo "$as_me:$LINENO: result: no" >&5
10696 echo "${ECHO_T}no" >&6; }
10698 elif test $build != $host && test $have_gcc_for_target = yes; then
10699 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
10700 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
10701 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10704 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10705 # Extract the first word of "ranlib", so it can be a program name with args.
10706 set dummy ranlib; ac_word=$2
10707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10709 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 case $RANLIB_FOR_TARGET in
10714 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718 for as_dir in $gcc_cv_tool_dirs
10721 test -z "$as_dir" && as_dir=.
10722 for ac_exec_ext in '' $ac_executable_extensions; do
10723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10724 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10735 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10736 if test -n "$RANLIB_FOR_TARGET"; then
10737 { echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10738 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6; }
10740 { echo "$as_me:$LINENO: result: no" >&5
10741 echo "${ECHO_T}no" >&6; }
10746 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10749 if test -n "$RANLIB_FOR_TARGET"; then
10750 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10751 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10752 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10755 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10756 for ncn_progname in ranlib; do
10757 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10758 set dummy ${ncn_progname}; ac_word=$2
10759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10761 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10764 if test -n "$RANLIB_FOR_TARGET"; then
10765 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768 for as_dir in $PATH
10771 test -z "$as_dir" && as_dir=.
10772 for ac_exec_ext in '' $ac_executable_extensions; do
10773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10774 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10784 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10785 if test -n "$RANLIB_FOR_TARGET"; then
10786 { echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10787 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6; }
10789 { echo "$as_me:$LINENO: result: no" >&5
10790 echo "${ECHO_T}no" >&6; }
10797 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
10798 for ncn_progname in ranlib; do
10799 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10800 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
10801 if test -x $with_build_time_tools/${ncn_progname}; then
10802 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10803 { echo "$as_me:$LINENO: result: yes" >&5
10804 echo "${ECHO_T}yes" >&6; }
10807 { echo "$as_me:$LINENO: result: no" >&5
10808 echo "${ECHO_T}no" >&6; }
10813 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10814 for ncn_progname in ranlib; do
10815 if test -n "$ncn_target_tool_prefix"; then
10816 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10817 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10820 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10823 if test -n "$RANLIB_FOR_TARGET"; then
10824 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827 for as_dir in $PATH
10830 test -z "$as_dir" && as_dir=.
10831 for ac_exec_ext in '' $ac_executable_extensions; do
10832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10833 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10843 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10844 if test -n "$RANLIB_FOR_TARGET"; then
10845 { echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10846 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6; }
10848 { echo "$as_me:$LINENO: result: no" >&5
10849 echo "${ECHO_T}no" >&6; }
10854 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10856 set dummy ${ncn_progname}; ac_word=$2
10857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10859 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 if test -n "$RANLIB_FOR_TARGET"; then
10863 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866 for as_dir in $PATH
10869 test -z "$as_dir" && as_dir=.
10870 for ac_exec_ext in '' $ac_executable_extensions; do
10871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10872 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10882 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10883 if test -n "$RANLIB_FOR_TARGET"; then
10884 { echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10885 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6; }
10887 { echo "$as_me:$LINENO: result: no" >&5
10888 echo "${ECHO_T}no" >&6; }
10893 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10897 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10899 if test $build = $target ; then
10900 RANLIB_FOR_TARGET="$2"
10902 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
10907 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10913 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10914 if test -n "$with_build_time_tools"; then
10915 { echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10916 echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6; }
10917 if test -x $with_build_time_tools/strip; then
10918 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10919 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10920 { echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10921 echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6; }
10923 { echo "$as_me:$LINENO: result: no" >&5
10924 echo "${ECHO_T}no" >&6; }
10926 elif test $build != $host && test $have_gcc_for_target = yes; then
10927 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
10928 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
10929 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10932 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10933 # Extract the first word of "strip", so it can be a program name with args.
10934 set dummy strip; ac_word=$2
10935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10937 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10940 case $STRIP_FOR_TARGET in
10942 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946 for as_dir in $gcc_cv_tool_dirs
10949 test -z "$as_dir" && as_dir=.
10950 for ac_exec_ext in '' $ac_executable_extensions; do
10951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10952 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10963 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10964 if test -n "$STRIP_FOR_TARGET"; then
10965 { echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10966 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6; }
10968 { echo "$as_me:$LINENO: result: no" >&5
10969 echo "${ECHO_T}no" >&6; }
10974 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10977 if test -n "$STRIP_FOR_TARGET"; then
10978 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10979 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10980 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10983 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10984 for ncn_progname in strip; do
10985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10986 set dummy ${ncn_progname}; ac_word=$2
10987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10989 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10992 if test -n "$STRIP_FOR_TARGET"; then
10993 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996 for as_dir in $PATH
10999 test -z "$as_dir" && as_dir=.
11000 for ac_exec_ext in '' $ac_executable_extensions; do
11001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11002 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11012 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11013 if test -n "$STRIP_FOR_TARGET"; then
11014 { echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11015 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6; }
11017 { echo "$as_me:$LINENO: result: no" >&5
11018 echo "${ECHO_T}no" >&6; }
11025 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11026 for ncn_progname in strip; do
11027 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11028 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
11029 if test -x $with_build_time_tools/${ncn_progname}; then
11030 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11031 { echo "$as_me:$LINENO: result: yes" >&5
11032 echo "${ECHO_T}yes" >&6; }
11035 { echo "$as_me:$LINENO: result: no" >&5
11036 echo "${ECHO_T}no" >&6; }
11041 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11042 for ncn_progname in strip; do
11043 if test -n "$ncn_target_tool_prefix"; then
11044 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11045 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11048 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11051 if test -n "$STRIP_FOR_TARGET"; then
11052 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11055 for as_dir in $PATH
11058 test -z "$as_dir" && as_dir=.
11059 for ac_exec_ext in '' $ac_executable_extensions; do
11060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11061 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11071 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11072 if test -n "$STRIP_FOR_TARGET"; then
11073 { echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11074 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6; }
11076 { echo "$as_me:$LINENO: result: no" >&5
11077 echo "${ECHO_T}no" >&6; }
11082 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11083 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11084 set dummy ${ncn_progname}; ac_word=$2
11085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11087 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11090 if test -n "$STRIP_FOR_TARGET"; then
11091 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094 for as_dir in $PATH
11097 test -z "$as_dir" && as_dir=.
11098 for ac_exec_ext in '' $ac_executable_extensions; do
11099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11100 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11110 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11111 if test -n "$STRIP_FOR_TARGET"; then
11112 { echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11113 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6; }
11115 { echo "$as_me:$LINENO: result: no" >&5
11116 echo "${ECHO_T}no" >&6; }
11121 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11125 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11127 if test $build = $target ; then
11128 STRIP_FOR_TARGET="$2"
11130 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11135 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11141 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11142 if test -n "$with_build_time_tools"; then
11143 { echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
11144 echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6; }
11145 if test -x $with_build_time_tools/windres; then
11146 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11147 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11148 { echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11149 echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
11151 { echo "$as_me:$LINENO: result: no" >&5
11152 echo "${ECHO_T}no" >&6; }
11154 elif test $build != $host && test $have_gcc_for_target = yes; then
11155 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
11156 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
11157 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11160 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11161 # Extract the first word of "windres", so it can be a program name with args.
11162 set dummy windres; ac_word=$2
11163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11165 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
11166 echo $ECHO_N "(cached) $ECHO_C" >&6
11168 case $WINDRES_FOR_TARGET in
11170 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174 for as_dir in $gcc_cv_tool_dirs
11177 test -z "$as_dir" && as_dir=.
11178 for ac_exec_ext in '' $ac_executable_extensions; do
11179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11180 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11191 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11192 if test -n "$WINDRES_FOR_TARGET"; then
11193 { echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11194 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6; }
11196 { echo "$as_me:$LINENO: result: no" >&5
11197 echo "${ECHO_T}no" >&6; }
11202 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11205 if test -n "$WINDRES_FOR_TARGET"; then
11206 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11207 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11208 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11211 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11212 for ncn_progname in windres; do
11213 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11214 set dummy ${ncn_progname}; ac_word=$2
11215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11217 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11220 if test -n "$WINDRES_FOR_TARGET"; then
11221 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224 for as_dir in $PATH
11227 test -z "$as_dir" && as_dir=.
11228 for ac_exec_ext in '' $ac_executable_extensions; do
11229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11230 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11240 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11241 if test -n "$WINDRES_FOR_TARGET"; then
11242 { echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11243 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6; }
11245 { echo "$as_me:$LINENO: result: no" >&5
11246 echo "${ECHO_T}no" >&6; }
11253 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
11254 for ncn_progname in windres; do
11255 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11256 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
11257 if test -x $with_build_time_tools/${ncn_progname}; then
11258 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11259 { echo "$as_me:$LINENO: result: yes" >&5
11260 echo "${ECHO_T}yes" >&6; }
11263 { echo "$as_me:$LINENO: result: no" >&5
11264 echo "${ECHO_T}no" >&6; }
11269 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11270 for ncn_progname in windres; do
11271 if test -n "$ncn_target_tool_prefix"; then
11272 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11273 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11276 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 if test -n "$WINDRES_FOR_TARGET"; then
11280 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283 for as_dir in $PATH
11286 test -z "$as_dir" && as_dir=.
11287 for ac_exec_ext in '' $ac_executable_extensions; do
11288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11289 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11299 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11300 if test -n "$WINDRES_FOR_TARGET"; then
11301 { echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11302 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6; }
11304 { echo "$as_me:$LINENO: result: no" >&5
11305 echo "${ECHO_T}no" >&6; }
11310 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11312 set dummy ${ncn_progname}; ac_word=$2
11313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11315 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11318 if test -n "$WINDRES_FOR_TARGET"; then
11319 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11322 for as_dir in $PATH
11325 test -z "$as_dir" && as_dir=.
11326 for ac_exec_ext in '' $ac_executable_extensions; do
11327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11328 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11338 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11339 if test -n "$WINDRES_FOR_TARGET"; then
11340 { echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11341 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6; }
11343 { echo "$as_me:$LINENO: result: no" >&5
11344 echo "${ECHO_T}no" >&6; }
11349 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11353 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11355 if test $build = $target ; then
11356 WINDRES_FOR_TARGET="$2"
11358 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
11363 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11367 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11369 { echo "$as_me:$LINENO: checking where to find the target ar" >&5
11370 echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6; }
11371 if test "x${build}" != "x${host}" ; then
11372 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11373 # We already found the complete path
11374 ac_dir=`dirname $AR_FOR_TARGET`
11375 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11376 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11378 # Canadian cross, just use what we found
11379 { echo "$as_me:$LINENO: result: pre-installed" >&5
11380 echo "${ECHO_T}pre-installed" >&6; }
11384 case " ${configdirs} " in
11389 if test $ok = yes; then
11390 # An in-tree tool is available and we can use it
11391 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
11392 { echo "$as_me:$LINENO: result: just compiled" >&5
11393 echo "${ECHO_T}just compiled" >&6; }
11394 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11395 # We already found the complete path
11396 ac_dir=`dirname $AR_FOR_TARGET`
11397 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11398 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11399 elif test "x$target" = "x$host"; then
11400 # We can use an host tool
11401 AR_FOR_TARGET='$(AR)'
11402 { echo "$as_me:$LINENO: result: host tool" >&5
11403 echo "${ECHO_T}host tool" >&6; }
11405 # We need a cross tool
11406 { echo "$as_me:$LINENO: result: pre-installed" >&5
11407 echo "${ECHO_T}pre-installed" >&6; }
11411 { echo "$as_me:$LINENO: checking where to find the target as" >&5
11412 echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6; }
11413 if test "x${build}" != "x${host}" ; then
11414 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11415 # We already found the complete path
11416 ac_dir=`dirname $AS_FOR_TARGET`
11417 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11418 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11420 # Canadian cross, just use what we found
11421 { echo "$as_me:$LINENO: result: pre-installed" >&5
11422 echo "${ECHO_T}pre-installed" >&6; }
11426 case " ${configdirs} " in
11431 if test $ok = yes; then
11432 # An in-tree tool is available and we can use it
11433 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
11434 { echo "$as_me:$LINENO: result: just compiled" >&5
11435 echo "${ECHO_T}just compiled" >&6; }
11436 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11437 # We already found the complete path
11438 ac_dir=`dirname $AS_FOR_TARGET`
11439 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11440 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11441 elif test "x$target" = "x$host"; then
11442 # We can use an host tool
11443 AS_FOR_TARGET='$(AS)'
11444 { echo "$as_me:$LINENO: result: host tool" >&5
11445 echo "${ECHO_T}host tool" >&6; }
11447 # We need a cross tool
11448 { echo "$as_me:$LINENO: result: pre-installed" >&5
11449 echo "${ECHO_T}pre-installed" >&6; }
11453 { echo "$as_me:$LINENO: checking where to find the target cc" >&5
11454 echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6; }
11455 if test "x${build}" != "x${host}" ; then
11456 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11457 # We already found the complete path
11458 ac_dir=`dirname $CC_FOR_TARGET`
11459 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11460 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11462 # Canadian cross, just use what we found
11463 { echo "$as_me:$LINENO: result: pre-installed" >&5
11464 echo "${ECHO_T}pre-installed" >&6; }
11468 case " ${configdirs} " in
11473 if test $ok = yes; then
11474 # An in-tree tool is available and we can use it
11475 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11476 { echo "$as_me:$LINENO: result: just compiled" >&5
11477 echo "${ECHO_T}just compiled" >&6; }
11478 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11479 # We already found the complete path
11480 ac_dir=`dirname $CC_FOR_TARGET`
11481 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11482 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11483 elif test "x$target" = "x$host"; then
11484 # We can use an host tool
11485 CC_FOR_TARGET='$(CC)'
11486 { echo "$as_me:$LINENO: result: host tool" >&5
11487 echo "${ECHO_T}host tool" >&6; }
11489 # We need a cross tool
11490 { echo "$as_me:$LINENO: result: pre-installed" >&5
11491 echo "${ECHO_T}pre-installed" >&6; }
11495 { echo "$as_me:$LINENO: checking where to find the target c++" >&5
11496 echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6; }
11497 if test "x${build}" != "x${host}" ; then
11498 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11499 # We already found the complete path
11500 ac_dir=`dirname $CXX_FOR_TARGET`
11501 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11502 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11504 # Canadian cross, just use what we found
11505 { echo "$as_me:$LINENO: result: pre-installed" >&5
11506 echo "${ECHO_T}pre-installed" >&6; }
11510 case " ${configdirs} " in
11514 case ,${enable_languages}, in
11518 if test $ok = yes; then
11519 # An in-tree tool is available and we can use it
11520 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'
11521 { echo "$as_me:$LINENO: result: just compiled" >&5
11522 echo "${ECHO_T}just compiled" >&6; }
11523 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11524 # We already found the complete path
11525 ac_dir=`dirname $CXX_FOR_TARGET`
11526 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11527 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11528 elif test "x$target" = "x$host"; then
11529 # We can use an host tool
11530 CXX_FOR_TARGET='$(CXX)'
11531 { echo "$as_me:$LINENO: result: host tool" >&5
11532 echo "${ECHO_T}host tool" >&6; }
11534 # We need a cross tool
11535 { echo "$as_me:$LINENO: result: pre-installed" >&5
11536 echo "${ECHO_T}pre-installed" >&6; }
11540 { echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11541 echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6; }
11542 if test "x${build}" != "x${host}" ; then
11543 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11544 # We already found the complete path
11545 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11546 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11547 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11549 # Canadian cross, just use what we found
11550 { echo "$as_me:$LINENO: result: pre-installed" >&5
11551 echo "${ECHO_T}pre-installed" >&6; }
11555 case " ${configdirs} " in
11559 case ,${enable_languages}, in
11563 if test $ok = yes; then
11564 # An in-tree tool is available and we can use it
11565 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'
11566 { echo "$as_me:$LINENO: result: just compiled" >&5
11567 echo "${ECHO_T}just compiled" >&6; }
11568 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11569 # We already found the complete path
11570 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11571 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11572 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11573 elif test "x$target" = "x$host"; then
11574 # We can use an host tool
11575 RAW_CXX_FOR_TARGET='$(CXX)'
11576 { echo "$as_me:$LINENO: result: host tool" >&5
11577 echo "${ECHO_T}host tool" >&6; }
11579 # We need a cross tool
11580 { echo "$as_me:$LINENO: result: pre-installed" >&5
11581 echo "${ECHO_T}pre-installed" >&6; }
11585 { echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11586 echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6; }
11587 if test "x${build}" != "x${host}" ; then
11588 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11589 # We already found the complete path
11590 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11591 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11592 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11594 # Canadian cross, just use what we found
11595 { echo "$as_me:$LINENO: result: pre-installed" >&5
11596 echo "${ECHO_T}pre-installed" >&6; }
11600 case " ${configdirs} " in
11605 if test $ok = yes; then
11606 # An in-tree tool is available and we can use it
11607 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
11608 { echo "$as_me:$LINENO: result: just compiled" >&5
11609 echo "${ECHO_T}just compiled" >&6; }
11610 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11611 # We already found the complete path
11612 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11613 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11614 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11615 elif test "x$target" = "x$host"; then
11616 # We can use an host tool
11617 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
11618 { echo "$as_me:$LINENO: result: host tool" >&5
11619 echo "${ECHO_T}host tool" >&6; }
11621 # We need a cross tool
11622 { echo "$as_me:$LINENO: result: pre-installed" >&5
11623 echo "${ECHO_T}pre-installed" >&6; }
11627 { echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11628 echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6; }
11629 if test "x${build}" != "x${host}" ; then
11630 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11631 # We already found the complete path
11632 ac_dir=`dirname $GCC_FOR_TARGET`
11633 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11634 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11636 # Canadian cross, just use what we found
11637 { echo "$as_me:$LINENO: result: pre-installed" >&5
11638 echo "${ECHO_T}pre-installed" >&6; }
11642 case " ${configdirs} " in
11647 if test $ok = yes; then
11648 # An in-tree tool is available and we can use it
11649 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11650 { echo "$as_me:$LINENO: result: just compiled" >&5
11651 echo "${ECHO_T}just compiled" >&6; }
11652 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11653 # We already found the complete path
11654 ac_dir=`dirname $GCC_FOR_TARGET`
11655 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11656 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11657 elif test "x$target" = "x$host"; then
11658 # We can use an host tool
11659 GCC_FOR_TARGET='$()'
11660 { echo "$as_me:$LINENO: result: host tool" >&5
11661 echo "${ECHO_T}host tool" >&6; }
11663 # We need a cross tool
11664 { echo "$as_me:$LINENO: result: pre-installed" >&5
11665 echo "${ECHO_T}pre-installed" >&6; }
11669 { echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11670 echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6; }
11671 if test "x${build}" != "x${host}" ; then
11672 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11673 # We already found the complete path
11674 ac_dir=`dirname $GCJ_FOR_TARGET`
11675 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11676 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11678 # Canadian cross, just use what we found
11679 { echo "$as_me:$LINENO: result: pre-installed" >&5
11680 echo "${ECHO_T}pre-installed" >&6; }
11684 case " ${configdirs} " in
11688 case ,${enable_languages}, in
11692 if test $ok = yes; then
11693 # An in-tree tool is available and we can use it
11694 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
11695 { echo "$as_me:$LINENO: result: just compiled" >&5
11696 echo "${ECHO_T}just compiled" >&6; }
11697 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11698 # We already found the complete path
11699 ac_dir=`dirname $GCJ_FOR_TARGET`
11700 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11701 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11702 elif test "x$target" = "x$host"; then
11703 # We can use an host tool
11704 GCJ_FOR_TARGET='$(GCJ)'
11705 { echo "$as_me:$LINENO: result: host tool" >&5
11706 echo "${ECHO_T}host tool" >&6; }
11708 # We need a cross tool
11709 { echo "$as_me:$LINENO: result: pre-installed" >&5
11710 echo "${ECHO_T}pre-installed" >&6; }
11714 { echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11715 echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6; }
11716 if test "x${build}" != "x${host}" ; then
11717 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11718 # We already found the complete path
11719 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11720 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11721 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11723 # Canadian cross, just use what we found
11724 { echo "$as_me:$LINENO: result: pre-installed" >&5
11725 echo "${ECHO_T}pre-installed" >&6; }
11729 case " ${configdirs} " in
11733 case ,${enable_languages}, in
11737 if test $ok = yes; then
11738 # An in-tree tool is available and we can use it
11739 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
11740 { echo "$as_me:$LINENO: result: just compiled" >&5
11741 echo "${ECHO_T}just compiled" >&6; }
11742 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11743 # We already found the complete path
11744 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11745 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11746 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11747 elif test "x$target" = "x$host"; then
11748 # We can use an host tool
11749 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
11750 { echo "$as_me:$LINENO: result: host tool" >&5
11751 echo "${ECHO_T}host tool" >&6; }
11753 # We need a cross tool
11754 { echo "$as_me:$LINENO: result: pre-installed" >&5
11755 echo "${ECHO_T}pre-installed" >&6; }
11759 { echo "$as_me:$LINENO: checking where to find the target ld" >&5
11760 echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6; }
11761 if test "x${build}" != "x${host}" ; then
11762 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11763 # We already found the complete path
11764 ac_dir=`dirname $LD_FOR_TARGET`
11765 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11766 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11768 # Canadian cross, just use what we found
11769 { echo "$as_me:$LINENO: result: pre-installed" >&5
11770 echo "${ECHO_T}pre-installed" >&6; }
11774 case " ${configdirs} " in
11779 if test $ok = yes; then
11780 # An in-tree tool is available and we can use it
11781 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
11782 { echo "$as_me:$LINENO: result: just compiled" >&5
11783 echo "${ECHO_T}just compiled" >&6; }
11784 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11785 # We already found the complete path
11786 ac_dir=`dirname $LD_FOR_TARGET`
11787 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11788 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11789 elif test "x$target" = "x$host"; then
11790 # We can use an host tool
11791 LD_FOR_TARGET='$(LD)'
11792 { echo "$as_me:$LINENO: result: host tool" >&5
11793 echo "${ECHO_T}host tool" >&6; }
11795 # We need a cross tool
11796 { echo "$as_me:$LINENO: result: pre-installed" >&5
11797 echo "${ECHO_T}pre-installed" >&6; }
11801 { echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11802 echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6; }
11803 if test "x${build}" != "x${host}" ; then
11804 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11805 # We already found the complete path
11806 ac_dir=`dirname $LIPO_FOR_TARGET`
11807 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11808 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11810 # Canadian cross, just use what we found
11811 { echo "$as_me:$LINENO: result: pre-installed" >&5
11812 echo "${ECHO_T}pre-installed" >&6; }
11815 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11816 # We already found the complete path
11817 ac_dir=`dirname $LIPO_FOR_TARGET`
11818 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11819 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11820 elif test "x$target" = "x$host"; then
11821 # We can use an host tool
11822 LIPO_FOR_TARGET='$(LIPO)'
11823 { echo "$as_me:$LINENO: result: host tool" >&5
11824 echo "${ECHO_T}host tool" >&6; }
11826 # We need a cross tool
11827 { echo "$as_me:$LINENO: result: pre-installed" >&5
11828 echo "${ECHO_T}pre-installed" >&6; }
11832 { echo "$as_me:$LINENO: checking where to find the target nm" >&5
11833 echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6; }
11834 if test "x${build}" != "x${host}" ; then
11835 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11836 # We already found the complete path
11837 ac_dir=`dirname $NM_FOR_TARGET`
11838 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11839 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11841 # Canadian cross, just use what we found
11842 { echo "$as_me:$LINENO: result: pre-installed" >&5
11843 echo "${ECHO_T}pre-installed" >&6; }
11847 case " ${configdirs} " in
11852 if test $ok = yes; then
11853 # An in-tree tool is available and we can use it
11854 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
11855 { echo "$as_me:$LINENO: result: just compiled" >&5
11856 echo "${ECHO_T}just compiled" >&6; }
11857 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11858 # We already found the complete path
11859 ac_dir=`dirname $NM_FOR_TARGET`
11860 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11861 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11862 elif test "x$target" = "x$host"; then
11863 # We can use an host tool
11864 NM_FOR_TARGET='$(NM)'
11865 { echo "$as_me:$LINENO: result: host tool" >&5
11866 echo "${ECHO_T}host tool" >&6; }
11868 # We need a cross tool
11869 { echo "$as_me:$LINENO: result: pre-installed" >&5
11870 echo "${ECHO_T}pre-installed" >&6; }
11874 { echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11875 echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6; }
11876 if test "x${build}" != "x${host}" ; then
11877 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11878 # We already found the complete path
11879 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11880 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11881 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11883 # Canadian cross, just use what we found
11884 { echo "$as_me:$LINENO: result: pre-installed" >&5
11885 echo "${ECHO_T}pre-installed" >&6; }
11889 case " ${configdirs} " in
11894 if test $ok = yes; then
11895 # An in-tree tool is available and we can use it
11896 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
11897 { echo "$as_me:$LINENO: result: just compiled" >&5
11898 echo "${ECHO_T}just compiled" >&6; }
11899 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11900 # We already found the complete path
11901 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11902 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11903 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11904 elif test "x$target" = "x$host"; then
11905 # We can use an host tool
11906 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
11907 { echo "$as_me:$LINENO: result: host tool" >&5
11908 echo "${ECHO_T}host tool" >&6; }
11910 # We need a cross tool
11911 { echo "$as_me:$LINENO: result: pre-installed" >&5
11912 echo "${ECHO_T}pre-installed" >&6; }
11916 { echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11917 echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6; }
11918 if test "x${build}" != "x${host}" ; then
11919 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11920 # We already found the complete path
11921 ac_dir=`dirname $RANLIB_FOR_TARGET`
11922 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11923 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11925 # Canadian cross, just use what we found
11926 { echo "$as_me:$LINENO: result: pre-installed" >&5
11927 echo "${ECHO_T}pre-installed" >&6; }
11931 case " ${configdirs} " in
11936 if test $ok = yes; then
11937 # An in-tree tool is available and we can use it
11938 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
11939 { echo "$as_me:$LINENO: result: just compiled" >&5
11940 echo "${ECHO_T}just compiled" >&6; }
11941 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11942 # We already found the complete path
11943 ac_dir=`dirname $RANLIB_FOR_TARGET`
11944 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11945 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11946 elif test "x$target" = "x$host"; then
11947 # We can use an host tool
11948 RANLIB_FOR_TARGET='$(RANLIB)'
11949 { echo "$as_me:$LINENO: result: host tool" >&5
11950 echo "${ECHO_T}host tool" >&6; }
11952 # We need a cross tool
11953 { echo "$as_me:$LINENO: result: pre-installed" >&5
11954 echo "${ECHO_T}pre-installed" >&6; }
11958 { echo "$as_me:$LINENO: checking where to find the target strip" >&5
11959 echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6; }
11960 if test "x${build}" != "x${host}" ; then
11961 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11962 # We already found the complete path
11963 ac_dir=`dirname $STRIP_FOR_TARGET`
11964 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11965 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11967 # Canadian cross, just use what we found
11968 { echo "$as_me:$LINENO: result: pre-installed" >&5
11969 echo "${ECHO_T}pre-installed" >&6; }
11973 case " ${configdirs} " in
11978 if test $ok = yes; then
11979 # An in-tree tool is available and we can use it
11980 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
11981 { echo "$as_me:$LINENO: result: just compiled" >&5
11982 echo "${ECHO_T}just compiled" >&6; }
11983 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11984 # We already found the complete path
11985 ac_dir=`dirname $STRIP_FOR_TARGET`
11986 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11987 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11988 elif test "x$target" = "x$host"; then
11989 # We can use an host tool
11990 STRIP_FOR_TARGET='$(STRIP)'
11991 { echo "$as_me:$LINENO: result: host tool" >&5
11992 echo "${ECHO_T}host tool" >&6; }
11994 # We need a cross tool
11995 { echo "$as_me:$LINENO: result: pre-installed" >&5
11996 echo "${ECHO_T}pre-installed" >&6; }
12000 { echo "$as_me:$LINENO: checking where to find the target windres" >&5
12001 echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6; }
12002 if test "x${build}" != "x${host}" ; then
12003 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12004 # We already found the complete path
12005 ac_dir=`dirname $WINDRES_FOR_TARGET`
12006 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12007 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12009 # Canadian cross, just use what we found
12010 { echo "$as_me:$LINENO: result: pre-installed" >&5
12011 echo "${ECHO_T}pre-installed" >&6; }
12015 case " ${configdirs} " in
12020 if test $ok = yes; then
12021 # An in-tree tool is available and we can use it
12022 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
12023 { echo "$as_me:$LINENO: result: just compiled" >&5
12024 echo "${ECHO_T}just compiled" >&6; }
12025 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12026 # We already found the complete path
12027 ac_dir=`dirname $WINDRES_FOR_TARGET`
12028 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12029 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12030 elif test "x$target" = "x$host"; then
12031 # We can use an host tool
12032 WINDRES_FOR_TARGET='$(WINDRES)'
12033 { echo "$as_me:$LINENO: result: host tool" >&5
12034 echo "${ECHO_T}host tool" >&6; }
12036 # We need a cross tool
12037 { echo "$as_me:$LINENO: result: pre-installed" >&5
12038 echo "${ECHO_T}pre-installed" >&6; }
12046 # Certain tools may need extra flags.
12047 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12048 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12049 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12051 # When building target libraries, except in a Canadian cross, we use
12052 # the same toolchain as the compiler we just built.
12053 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12054 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12055 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12056 if test $host = $build; then
12057 case " $configdirs " in
12059 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12060 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12061 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12070 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12071 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
12072 # Check whether --enable-maintainer-mode was given.
12073 if test "${enable_maintainer_mode+set}" = set; then
12074 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12076 USE_MAINTAINER_MODE=no
12079 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12080 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
12083 if test "$USE_MAINTAINER_MODE" = yes; then
12084 MAINTAINER_MODE_TRUE=
12085 MAINTAINER_MODE_FALSE='#'
12087 MAINTAINER_MODE_TRUE='#'
12088 MAINTAINER_MODE_FALSE=
12090 MAINT=$MAINTAINER_MODE_TRUE
12092 # ---------------------
12093 # GCC bootstrap support
12094 # ---------------------
12096 # Stage specific cflags for build.
12101 yes) stage1_cflags="-g -Wa,-J" ;;
12102 *) stage1_cflags="-g -J" ;;
12106 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12107 if test "$GCC" = yes; then
12108 saved_CFLAGS="$CFLAGS"
12110 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12111 CFLAGS="$CFLAGS -fkeep-inline-functions"
12112 { echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12113 echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6; }
12114 cat >conftest.$ac_ext <<_ACEOF
12117 cat confdefs.h >>conftest.$ac_ext
12118 cat >>conftest.$ac_ext <<_ACEOF
12119 /* end confdefs.h. */
12129 rm -f conftest.$ac_objext
12130 if { (ac_try="$ac_compile"
12131 case "(($ac_try" in
12132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133 *) ac_try_echo=$ac_try;;
12135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136 (eval "$ac_compile") 2>conftest.er1
12138 grep -v '^ *+' conftest.er1 >conftest.err
12140 cat conftest.err >&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } && {
12143 test -z "$ac_c_werror_flag" ||
12144 test ! -s conftest.err
12145 } && test -s conftest.$ac_objext; then
12146 { echo "$as_me:$LINENO: result: yes" >&5
12147 echo "${ECHO_T}yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12149 echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12152 { echo "$as_me:$LINENO: result: no" >&5
12153 echo "${ECHO_T}no" >&6; }
12156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12158 CFLAGS="$saved_CFLAGS"
12163 # Enable --enable-checking in stage1 of the compiler.
12164 # Check whether --enable-stage1-checking was given.
12165 if test "${enable_stage1_checking+set}" = set; then
12166 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
12168 if test "x$enable_checking" = xno; then
12169 stage1_checking=--enable-checking
12171 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
12177 # Enable -Werror in bootstrap stage2 and later.
12178 # Check whether --enable-werror was given.
12179 if test "${enable_werror+set}" = set; then
12180 enableval=$enable_werror;
12182 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
12189 case ${enable_werror} in
12190 yes) stage2_werror_flag="--enable-werror-always" ;;
12191 *) stage2_werror_flag="" ;;
12195 # Flags needed to enable html installing and building
12197 # Check whether --with-datarootdir was given.
12198 if test "${with_datarootdir+set}" = set; then
12199 withval=$with_datarootdir; datarootdir="\${prefix}/${withval}"
12201 datarootdir="\${prefix}/share"
12206 # Check whether --with-docdir was given.
12207 if test "${with_docdir+set}" = set; then
12208 withval=$with_docdir; docdir="\${prefix}/${withval}"
12210 docdir="\${datarootdir}/doc"
12215 # Check whether --with-pdfdir was given.
12216 if test "${with_pdfdir+set}" = set; then
12217 withval=$with_pdfdir; pdfdir="\${prefix}/${withval}"
12219 pdfdir="\${docdir}"
12224 # Check whether --with-htmldir was given.
12225 if test "${with_htmldir+set}" = set; then
12226 withval=$with_htmldir; htmldir="\${prefix}/${withval}"
12228 htmldir="\${docdir}"
12237 ac_config_files="$ac_config_files Makefile"
12239 cat >confcache <<\_ACEOF
12240 # This file is a shell script that caches the results of configure
12241 # tests run on this system so they can be shared between configure
12242 # scripts and configure runs, see configure's option --config-cache.
12243 # It is not useful on other systems. If it contains results you don't
12244 # want to keep, you may remove or edit it.
12246 # config.status only pays attention to the cache file if you give it
12247 # the --recheck option to rerun configure.
12249 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12250 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12251 # following values.
12255 # The following way of writing the cache mishandles newlines in values,
12256 # but we know of no workaround that is simple, portable, and efficient.
12257 # So, we kill variables containing newlines.
12258 # Ultrix sh set writes to stderr and can't be redirected directly,
12259 # and sets the high bit in the cache file unless we assign to the vars.
12261 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12262 eval ac_val=\$$ac_var
12266 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12267 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12270 _ | IFS | as_nl) ;; #(
12271 *) $as_unset $ac_var ;;
12277 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12278 *${as_nl}ac_space=\ *)
12279 # `set' does not quote correctly, so add quotes (double-quote
12280 # substitution turns \\\\ into \\, and sed turns \\ into \).
12283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12286 # `set' quotes correctly as required by POSIX, so do not add quotes.
12287 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12296 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12298 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12300 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12301 if test -w "$cache_file"; then
12302 test "x$cache_file" != "x/dev/null" &&
12303 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12304 echo "$as_me: updating cache $cache_file" >&6;}
12305 cat confcache >$cache_file
12307 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12308 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12313 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12314 # Let make expand exec_prefix.
12315 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12317 # Transform confdefs.h into DEFS.
12318 # Protect against shell expansion while executing Makefile rules.
12319 # Protect against Makefile macro expansion.
12321 # If the first sed substitution is executed (which looks for macros that
12322 # take arguments), then branch to the quote section. Otherwise,
12323 # look for a macro that doesn't take arguments.
12327 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
12329 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
12333 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12346 DEFS=`sed -n "$ac_script" confdefs.h`
12351 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12352 # 1. Remove the extension, and $U if already installed.
12353 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12354 ac_i=`echo "$ac_i" | sed "$ac_script"`
12355 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12356 # will be set to the directory where LIBOBJS objects are built.
12357 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12358 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12360 LIBOBJS=$ac_libobjs
12362 LTLIBOBJS=$ac_ltlibobjs
12366 : ${CONFIG_STATUS=./config.status}
12367 ac_clean_files_save=$ac_clean_files
12368 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12369 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12370 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12371 cat >$CONFIG_STATUS <<_ACEOF
12373 # Generated by $as_me.
12374 # Run this file to recreate the current configuration.
12375 # Compiler output produced by configure, useful for debugging
12376 # configure, is in config.log if it exists.
12379 ac_cs_recheck=false
12381 SHELL=\${CONFIG_SHELL-$SHELL}
12384 cat >>$CONFIG_STATUS <<\_ACEOF
12385 ## --------------------- ##
12386 ## M4sh Initialization. ##
12387 ## --------------------- ##
12389 # Be more Bourne compatible
12390 DUALCASE=1; export DUALCASE # for MKS sh
12391 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12394 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12395 # is contrary to our usage. Disable this feature.
12396 alias -g '${1+"$@"}'='"$@"'
12397 setopt NO_GLOB_SUBST
12399 case `(set -o) 2>/dev/null` in
12400 *posix*) set -o posix ;;
12409 # Avoid depending upon Character Ranges.
12410 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12411 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12412 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12413 as_cr_digits='0123456789'
12414 as_cr_alnum=$as_cr_Letters$as_cr_digits
12416 # The user is always right.
12417 if test "${PATH_SEPARATOR+set}" != set; then
12418 echo "#! /bin/sh" >conf$$.sh
12419 echo "exit 0" >>conf$$.sh
12421 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12429 # Support unset when possible.
12430 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12438 # We need space, tab and new line, in precisely that order. Quoting is
12439 # there to prevent editors from complaining about space-tab.
12440 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12441 # splitting by setting IFS to empty value.)
12446 # Find who we are. Look in the path if we contain no directory separator.
12448 *[\\/]* ) as_myself=$0 ;;
12449 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450 for as_dir in $PATH
12453 test -z "$as_dir" && as_dir=.
12454 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12460 # We did not find ourselves, most probably we were run as `sh COMMAND'
12461 # in which case we are not to be found in the path.
12462 if test "x$as_myself" = x; then
12465 if test ! -f "$as_myself"; then
12466 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12467 { (exit 1); exit 1; }
12470 # Work around bugs in pre-3.0 UWIN ksh.
12471 for as_var in ENV MAIL MAILPATH
12472 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12480 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12481 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12482 LC_TELEPHONE LC_TIME
12484 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12485 eval $as_var=C; export $as_var
12487 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12491 # Required to use basename.
12492 if expr a : '\(a\)' >/dev/null 2>&1 &&
12493 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12499 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12500 as_basename=basename
12506 # Name of the executable.
12507 as_me=`$as_basename -- "$0" ||
12508 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12509 X"$0" : 'X\(//\)$' \| \
12510 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12512 sed '/^.*\/\([^/][^/]*\)\/*$/{
12531 as_lineno_1=$LINENO
12532 as_lineno_2=$LINENO
12533 test "x$as_lineno_1" != "x$as_lineno_2" &&
12534 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12536 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12537 # uniformly replaced by the line number. The first 'sed' inserts a
12538 # line-number line after each line using $LINENO; the second 'sed'
12539 # does the real work. The second script uses 'N' to pair each
12540 # line-number line with the line containing $LINENO, and appends
12541 # trailing '-' during substitution so that $LINENO is not a special
12542 # case at line end.
12543 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12544 # scripts with optimization help from Paolo Bonzini. Blame Lee
12545 # E. McMahon (1931-1989) for sed's syntax. :-)
12557 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12560 ' >$as_me.lineno &&
12561 chmod +x "$as_me.lineno" ||
12562 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12563 { (exit 1); exit 1; }; }
12565 # Don't try to exec as it changes $[0], causing all sort of problems
12566 # (the dirname of $[0] is not the place where we might find the
12567 # original and so on. Autoconf is especially sensitive to this).
12568 . "./$as_me.lineno"
12569 # Exit status is that of the last command.
12574 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12580 ECHO_C= ECHO_N= ECHO_T=
12581 case `echo -n x` in
12583 case `echo 'x\c'` in
12584 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12591 if expr a : '\(a\)' >/dev/null 2>&1 &&
12592 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12598 rm -f conf$$ conf$$.exe conf$$.file
12599 if test -d conf$$.dir; then
12600 rm -f conf$$.dir/conf$$.file
12606 if ln -s conf$$.file conf$$ 2>/dev/null; then
12608 # ... but there are two gotchas:
12609 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12610 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12611 # In both cases, we have to default to `cp -p'.
12612 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12614 elif ln conf$$.file conf$$ 2>/dev/null; then
12619 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12620 rmdir conf$$.dir 2>/dev/null
12622 if mkdir -p . 2>/dev/null; then
12625 test -d ./-p && rmdir ./-p
12629 if test -x / >/dev/null 2>&1; then
12630 as_test_x='test -x'
12632 if ls -dL / >/dev/null 2>&1; then
12639 if test -d "$1"; then
12645 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12646 ???[sx]*):;;*)false;;esac;fi
12650 as_executable_p=$as_test_x
12652 # Sed expression to map a string onto a valid CPP name.
12653 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12655 # Sed expression to map a string onto a valid variable name.
12656 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12661 # Save the log message, to keep $[0] and so on meaningful, and to
12662 # report actual input values of CONFIG_FILES etc. instead of their
12663 # values after options handling.
12665 This file was extended by $as_me, which was
12666 generated by GNU Autoconf 2.61. Invocation command line was
12668 CONFIG_FILES = $CONFIG_FILES
12669 CONFIG_HEADERS = $CONFIG_HEADERS
12670 CONFIG_LINKS = $CONFIG_LINKS
12671 CONFIG_COMMANDS = $CONFIG_COMMANDS
12674 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12679 cat >>$CONFIG_STATUS <<_ACEOF
12680 # Files that config.status was made for.
12681 config_files="$ac_config_files"
12685 cat >>$CONFIG_STATUS <<\_ACEOF
12687 \`$as_me' instantiates files from templates according to the
12688 current configuration.
12690 Usage: $0 [OPTIONS] [FILE]...
12692 -h, --help print this help, then exit
12693 -V, --version print version number and configuration settings, then exit
12694 -q, --quiet do not print progress messages
12695 -d, --debug don't remove temporary files
12696 --recheck update $as_me by reconfiguring in the same conditions
12697 --file=FILE[:TEMPLATE]
12698 instantiate the configuration file FILE
12700 Configuration files:
12703 Report bugs to <bug-autoconf@gnu.org>."
12706 cat >>$CONFIG_STATUS <<_ACEOF
12709 configured by $0, generated by GNU Autoconf 2.61,
12710 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12712 Copyright (C) 2006 Free Software Foundation, Inc.
12713 This config.status script is free software; the Free Software Foundation
12714 gives unlimited permission to copy, distribute and modify it."
12721 cat >>$CONFIG_STATUS <<\_ACEOF
12722 # If no file are specified by the user, then we need to provide default
12723 # value. By we need to know if files were specified by the user.
12729 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12730 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12741 # Handling of the options.
12742 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12744 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12745 echo "$ac_cs_version"; exit ;;
12746 --debug | --debu | --deb | --de | --d | -d )
12748 --file | --fil | --fi | --f )
12750 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12751 ac_need_defaults=false;;
12752 --he | --h | --help | --hel | -h )
12753 echo "$ac_cs_usage"; exit ;;
12754 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12755 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12758 # This is an error.
12759 -*) { echo "$as_me: error: unrecognized option: $1
12760 Try \`$0 --help' for more information." >&2
12761 { (exit 1); exit 1; }; } ;;
12763 *) ac_config_targets="$ac_config_targets $1"
12764 ac_need_defaults=false ;;
12770 ac_configure_extra_args=
12772 if $ac_cs_silent; then
12774 ac_configure_extra_args="$ac_configure_extra_args --silent"
12778 cat >>$CONFIG_STATUS <<_ACEOF
12779 if \$ac_cs_recheck; then
12780 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12781 CONFIG_SHELL=$SHELL
12782 export CONFIG_SHELL
12783 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12787 cat >>$CONFIG_STATUS <<\_ACEOF
12791 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12792 ## Running $as_me. ##
12798 cat >>$CONFIG_STATUS <<_ACEOF
12801 cat >>$CONFIG_STATUS <<\_ACEOF
12803 # Handling of arguments.
12804 for ac_config_target in $ac_config_targets
12806 case $ac_config_target in
12807 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12809 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12810 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12811 { (exit 1); exit 1; }; };;
12816 # If the user did not use the arguments to specify the items to instantiate,
12817 # then the envvar interface is used. Set only those that are not.
12818 # We use the long form for the default assignment because of an extremely
12819 # bizarre bug on SunOS 4.1.3.
12820 if $ac_need_defaults; then
12821 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12824 # Have a temporary directory for convenience. Make it in the build tree
12825 # simply because there is no reason against having it here, and in addition,
12826 # creating and moving files from /tmp can sometimes cause problems.
12827 # Hook for its removal unless debugging.
12828 # Note that there is a small window in which the directory will not be cleaned:
12829 # after its creation but before its name has been assigned to `$tmp'.
12833 trap 'exit_status=$?
12834 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12836 trap '{ (exit 1); exit 1; }' 1 2 13 15
12838 # Create a (secure) tmp directory for tmp files.
12841 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12842 test -n "$tmp" && test -d "$tmp"
12845 tmp=./conf$$-$RANDOM
12846 (umask 077 && mkdir "$tmp")
12849 echo "$me: cannot create a temporary directory in ." >&2
12850 { (exit 1); exit 1; }
12854 # Set up the sed scripts for CONFIG_FILES section.
12857 # No need to generate the scripts if there are no CONFIG_FILES.
12858 # This happens for instance when ./config.status config.h
12859 if test -n "$CONFIG_FILES"; then
12863 # Create sed commands to just substitute file output variables.
12865 # Remaining file output variables are in a fragment that also has non-file
12871 for ac_last_try in false false false false false :; do
12872 cat >conf$$subs.sed <<_ACEOF
12873 SHELL!$SHELL$ac_delim
12874 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12875 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12876 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12877 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12878 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12879 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12880 exec_prefix!$exec_prefix$ac_delim
12881 prefix!$prefix$ac_delim
12882 program_transform_name!$program_transform_name$ac_delim
12883 bindir!$bindir$ac_delim
12884 sbindir!$sbindir$ac_delim
12885 libexecdir!$libexecdir$ac_delim
12886 datarootdir!$datarootdir$ac_delim
12887 datadir!$datadir$ac_delim
12888 sysconfdir!$sysconfdir$ac_delim
12889 sharedstatedir!$sharedstatedir$ac_delim
12890 localstatedir!$localstatedir$ac_delim
12891 includedir!$includedir$ac_delim
12892 oldincludedir!$oldincludedir$ac_delim
12893 docdir!$docdir$ac_delim
12894 infodir!$infodir$ac_delim
12895 htmldir!$htmldir$ac_delim
12896 dvidir!$dvidir$ac_delim
12897 pdfdir!$pdfdir$ac_delim
12898 psdir!$psdir$ac_delim
12899 libdir!$libdir$ac_delim
12900 localedir!$localedir$ac_delim
12901 mandir!$mandir$ac_delim
12902 DEFS!$DEFS$ac_delim
12903 ECHO_C!$ECHO_C$ac_delim
12904 ECHO_N!$ECHO_N$ac_delim
12905 ECHO_T!$ECHO_T$ac_delim
12906 LIBS!$LIBS$ac_delim
12907 build_alias!$build_alias$ac_delim
12908 host_alias!$host_alias$ac_delim
12909 target_alias!$target_alias$ac_delim
12910 build!$build$ac_delim
12911 build_cpu!$build_cpu$ac_delim
12912 build_vendor!$build_vendor$ac_delim
12913 build_os!$build_os$ac_delim
12914 build_noncanonical!$build_noncanonical$ac_delim
12915 host_noncanonical!$host_noncanonical$ac_delim
12916 target_noncanonical!$target_noncanonical$ac_delim
12917 host!$host$ac_delim
12918 host_cpu!$host_cpu$ac_delim
12919 host_vendor!$host_vendor$ac_delim
12920 host_os!$host_os$ac_delim
12921 target!$target$ac_delim
12922 target_cpu!$target_cpu$ac_delim
12923 target_vendor!$target_vendor$ac_delim
12924 target_os!$target_os$ac_delim
12925 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12926 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12927 INSTALL_DATA!$INSTALL_DATA$ac_delim
12929 LN_S!$LN_S$ac_delim
12930 TOPLEVEL_CONFIGURE_ARGUMENTS!$TOPLEVEL_CONFIGURE_ARGUMENTS$ac_delim
12931 build_libsubdir!$build_libsubdir$ac_delim
12932 build_subdir!$build_subdir$ac_delim
12933 host_subdir!$host_subdir$ac_delim
12934 target_subdir!$target_subdir$ac_delim
12936 CFLAGS!$CFLAGS$ac_delim
12937 LDFLAGS!$LDFLAGS$ac_delim
12938 CPPFLAGS!$CPPFLAGS$ac_delim
12939 ac_ct_CC!$ac_ct_CC$ac_delim
12940 EXEEXT!$EXEEXT$ac_delim
12941 OBJEXT!$OBJEXT$ac_delim
12943 CXXFLAGS!$CXXFLAGS$ac_delim
12944 ac_ct_CXX!$ac_ct_CXX$ac_delim
12945 GNATBIND!$GNATBIND$ac_delim
12946 GNATMAKE!$GNATMAKE$ac_delim
12947 do_compare!$do_compare$ac_delim
12948 gmplibs!$gmplibs$ac_delim
12949 gmpinc!$gmpinc$ac_delim
12950 stage1_languages!$stage1_languages$ac_delim
12951 SYSROOT_CFLAGS_FOR_TARGET!$SYSROOT_CFLAGS_FOR_TARGET$ac_delim
12952 RPATH_ENVVAR!$RPATH_ENVVAR$ac_delim
12953 tooldir!$tooldir$ac_delim
12954 build_tooldir!$build_tooldir$ac_delim
12957 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
12959 elif $ac_last_try; then
12960 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12961 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12962 { (exit 1); exit 1; }; }
12964 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12968 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12969 if test -n "$ac_eof"; then
12970 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12971 ac_eof=`expr $ac_eof + 1`
12974 cat >>$CONFIG_STATUS <<_ACEOF
12975 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12976 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12977 /^[ ]*@serialization_dependencies@[ ]*$/{
12978 r $serialization_dependencies
12981 /^[ ]*@host_makefile_frag@[ ]*$/{
12982 r $host_makefile_frag
12985 /^[ ]*@target_makefile_frag@[ ]*$/{
12986 r $target_makefile_frag
12989 /^[ ]*@alphaieee_frag@[ ]*$/{
12993 /^[ ]*@ospace_frag@[ ]*$/{
12999 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13000 s/^/s,@/; s/!/@,|#_!!_#|/
13003 s/'"$ac_delim"'$/,g/; t
13005 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13006 ' >>$CONFIG_STATUS <conf$$subs.sed
13007 rm -f conf$$subs.sed
13008 cat >>$CONFIG_STATUS <<_ACEOF
13014 for ac_last_try in false false false false false :; do
13015 cat >conf$$subs.sed <<_ACEOF
13016 CONFIGURE_GDB_TK!$CONFIGURE_GDB_TK$ac_delim
13017 GDB_TK!$GDB_TK$ac_delim
13018 INSTALL_GDB_TK!$INSTALL_GDB_TK$ac_delim
13019 build_configargs!$build_configargs$ac_delim
13020 build_configdirs!$build_configdirs$ac_delim
13021 host_configargs!$host_configargs$ac_delim
13022 configdirs!$configdirs$ac_delim
13023 target_configargs!$target_configargs$ac_delim
13024 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
13025 config_shell!$config_shell$ac_delim
13026 YACC!$YACC$ac_delim
13027 BISON!$BISON$ac_delim
13030 FLEX!$FLEX$ac_delim
13031 MAKEINFO!$MAKEINFO$ac_delim
13032 EXPECT!$EXPECT$ac_delim
13033 RUNTEST!$RUNTEST$ac_delim
13036 DLLTOOL!$DLLTOOL$ac_delim
13038 LIPO!$LIPO$ac_delim
13040 RANLIB!$RANLIB$ac_delim
13041 STRIP!$STRIP$ac_delim
13042 WINDRES!$WINDRES$ac_delim
13043 OBJCOPY!$OBJCOPY$ac_delim
13044 OBJDUMP!$OBJDUMP$ac_delim
13045 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
13046 CC_FOR_TARGET!$CC_FOR_TARGET$ac_delim
13047 CXX_FOR_TARGET!$CXX_FOR_TARGET$ac_delim
13048 GCC_FOR_TARGET!$GCC_FOR_TARGET$ac_delim
13049 GCJ_FOR_TARGET!$GCJ_FOR_TARGET$ac_delim
13050 GFORTRAN_FOR_TARGET!$GFORTRAN_FOR_TARGET$ac_delim
13051 AR_FOR_TARGET!$AR_FOR_TARGET$ac_delim
13052 AS_FOR_TARGET!$AS_FOR_TARGET$ac_delim
13053 DLLTOOL_FOR_TARGET!$DLLTOOL_FOR_TARGET$ac_delim
13054 LD_FOR_TARGET!$LD_FOR_TARGET$ac_delim
13055 LIPO_FOR_TARGET!$LIPO_FOR_TARGET$ac_delim
13056 NM_FOR_TARGET!$NM_FOR_TARGET$ac_delim
13057 OBJDUMP_FOR_TARGET!$OBJDUMP_FOR_TARGET$ac_delim
13058 RANLIB_FOR_TARGET!$RANLIB_FOR_TARGET$ac_delim
13059 STRIP_FOR_TARGET!$STRIP_FOR_TARGET$ac_delim
13060 WINDRES_FOR_TARGET!$WINDRES_FOR_TARGET$ac_delim
13061 RAW_CXX_FOR_TARGET!$RAW_CXX_FOR_TARGET$ac_delim
13062 FLAGS_FOR_TARGET!$FLAGS_FOR_TARGET$ac_delim
13063 COMPILER_AS_FOR_TARGET!$COMPILER_AS_FOR_TARGET$ac_delim
13064 COMPILER_LD_FOR_TARGET!$COMPILER_LD_FOR_TARGET$ac_delim
13065 COMPILER_NM_FOR_TARGET!$COMPILER_NM_FOR_TARGET$ac_delim
13066 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
13067 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
13068 MAINT!$MAINT$ac_delim
13069 stage1_cflags!$stage1_cflags$ac_delim
13070 stage1_checking!$stage1_checking$ac_delim
13071 stage2_werror_flag!$stage2_werror_flag$ac_delim
13072 LIBOBJS!$LIBOBJS$ac_delim
13073 LTLIBOBJS!$LTLIBOBJS$ac_delim
13076 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
13078 elif $ac_last_try; then
13079 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13080 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13081 { (exit 1); exit 1; }; }
13083 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13087 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13088 if test -n "$ac_eof"; then
13089 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13090 ac_eof=`expr $ac_eof + 1`
13093 cat >>$CONFIG_STATUS <<_ACEOF
13094 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13095 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13098 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13099 s/^/s,@/; s/!/@,|#_!!_#|/
13102 s/'"$ac_delim"'$/,g/; t
13104 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13105 ' >>$CONFIG_STATUS <conf$$subs.sed
13106 rm -f conf$$subs.sed
13107 cat >>$CONFIG_STATUS <<_ACEOF
13114 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13115 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13116 # trailing colons and then remove the whole line if VPATH becomes empty
13117 # (actually we leave an empty line to preserve line numbers).
13118 if test "x$srcdir" = x.; then
13119 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13120 s/:*\$(srcdir):*/:/
13121 s/:*\${srcdir}:*/:/
13123 s/^\([^=]*=[ ]*\):*/\1/
13129 cat >>$CONFIG_STATUS <<\_ACEOF
13130 fi # test -n "$CONFIG_FILES"
13133 for ac_tag in :F $CONFIG_FILES
13136 :[FHLC]) ac_mode=$ac_tag; continue;;
13138 case $ac_mode$ac_tag in
13140 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13141 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13142 { (exit 1); exit 1; }; };;
13143 :[FH]-) ac_tag=-:-;;
13144 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13161 -) ac_f="$tmp/stdin";;
13162 *) # Look for the file first in the build tree, then in the source tree
13163 # (if the path is not absolute). The absolute path cannot be DOS-style,
13164 # because $ac_f cannot contain `:'.
13168 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13170 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13171 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13172 { (exit 1); exit 1; }; };;
13174 ac_file_inputs="$ac_file_inputs $ac_f"
13177 # Let's still pretend it is `configure' which instantiates (i.e., don't
13178 # use $as_me), people would be surprised to read:
13179 # /* config.h. Generated by config.status. */
13180 configure_input="Generated from "`IFS=:
13181 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13182 if test x"$ac_file" != x-; then
13183 configure_input="$ac_file. $configure_input"
13184 { echo "$as_me:$LINENO: creating $ac_file" >&5
13185 echo "$as_me: creating $ac_file" >&6;}
13189 *:-:* | *:-) cat >"$tmp/stdin";;
13194 ac_dir=`$as_dirname -- "$ac_file" ||
13195 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13196 X"$ac_file" : 'X\(//\)[^/]' \| \
13197 X"$ac_file" : 'X\(//\)$' \| \
13198 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13204 /^X\(\/\/\)[^/].*/{
13219 -*) as_dir=./$as_dir;;
13221 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13225 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13226 *) as_qdir=$as_dir;;
13228 as_dirs="'$as_qdir' $as_dirs"
13229 as_dir=`$as_dirname -- "$as_dir" ||
13230 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13231 X"$as_dir" : 'X\(//\)[^/]' \| \
13232 X"$as_dir" : 'X\(//\)$' \| \
13233 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13239 /^X\(\/\/\)[^/].*/{
13252 test -d "$as_dir" && break
13254 test -z "$as_dirs" || eval "mkdir $as_dirs"
13255 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13256 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13257 { (exit 1); exit 1; }; }; }
13261 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13263 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13264 # A ".." for each directory in $ac_dir_suffix.
13265 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13266 case $ac_top_builddir_sub in
13267 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13268 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13271 ac_abs_top_builddir=$ac_pwd
13272 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13273 # for backward compatibility:
13274 ac_top_builddir=$ac_top_build_prefix
13277 .) # We are building in place.
13279 ac_top_srcdir=$ac_top_builddir_sub
13280 ac_abs_top_srcdir=$ac_pwd ;;
13281 [\\/]* | ?:[\\/]* ) # Absolute name.
13282 ac_srcdir=$srcdir$ac_dir_suffix;
13283 ac_top_srcdir=$srcdir
13284 ac_abs_top_srcdir=$srcdir ;;
13285 *) # Relative name.
13286 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13287 ac_top_srcdir=$ac_top_build_prefix$srcdir
13288 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13290 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13300 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13301 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13305 cat >>$CONFIG_STATUS <<\_ACEOF
13306 # If the template does not know about datarootdir, expand it.
13307 # FIXME: This hack should be removed a few years after 2.60.
13308 ac_datarootdir_hack=; ac_datarootdir_seen=
13310 case `sed -n '/datarootdir/ {
13319 ' $ac_file_inputs` in
13320 *datarootdir*) ac_datarootdir_seen=yes;;
13321 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13322 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13323 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13325 cat >>$CONFIG_STATUS <<_ACEOF
13326 ac_datarootdir_hack='
13327 s&@datadir@&$datadir&g
13328 s&@docdir@&$docdir&g
13329 s&@infodir@&$infodir&g
13330 s&@localedir@&$localedir&g
13331 s&@mandir@&$mandir&g
13332 s&\\\${datarootdir}&$datarootdir&g' ;;
13336 # Neutralize VPATH when `$srcdir' = `.'.
13337 # Shell code in configure.ac might set extrasub.
13338 # FIXME: do we really want to maintain this feature?
13339 cat >>$CONFIG_STATUS <<_ACEOF
13343 cat >>$CONFIG_STATUS <<\_ACEOF
13345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13346 s&@configure_input@&$configure_input&;t t
13347 s&@top_builddir@&$ac_top_builddir_sub&;t t
13348 s&@srcdir@&$ac_srcdir&;t t
13349 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13350 s&@top_srcdir@&$ac_top_srcdir&;t t
13351 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13352 s&@builddir@&$ac_builddir&;t t
13353 s&@abs_builddir@&$ac_abs_builddir&;t t
13354 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13355 s&@INSTALL@&$ac_INSTALL&;t t
13356 $ac_datarootdir_hack
13357 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
13359 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13360 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13361 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13362 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13363 which seems to be undefined. Please make sure it is defined." >&5
13364 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13365 which seems to be undefined. Please make sure it is defined." >&2;}
13369 -) cat "$tmp/out"; rm -f "$tmp/out";;
13370 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13381 { (exit 0); exit 0; }
13383 chmod +x $CONFIG_STATUS
13384 ac_clean_files=$ac_clean_files_save
13387 # configure is writing to config.log, and then calls config.status.
13388 # config.status does its own redirection, appending to config.log.
13389 # Unfortunately, on DOS this fails, as config.log is still kept open
13390 # by configure, so config.status won't be able to write to it; its
13391 # output is simply discarded. So we exec the FD to /dev/null,
13392 # effectively closing config.log, so it can be properly (re)opened and
13393 # appended to by config.status. When coming back to configure, we
13394 # need to make the FD available again.
13395 if test "$no_create" != yes; then
13397 ac_config_status_args=
13398 test "$silent" = yes &&
13399 ac_config_status_args="$ac_config_status_args --quiet"
13401 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13403 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13404 # would make configure fail if this is the last instruction.
13405 $ac_cs_success || { (exit 1); exit 1; }