2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix=/usr/local
539 ac_config_libobj_dir=.
546 # Identity of this package.
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 # Factoring default headers for most tests.
557 ac_includes_default="\
559 #ifdef HAVE_SYS_TYPES_H
560 # include <sys/types.h>
562 #ifdef HAVE_SYS_STAT_H
563 # include <sys/stat.h>
569 # ifdef HAVE_STDLIB_H
574 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
579 #ifdef HAVE_STRINGS_H
580 # include <strings.h>
582 #ifdef HAVE_INTTYPES_H
583 # include <inttypes.h>
592 ac_subst_vars='LTLIBOBJS
599 MAINTAINER_MODE_FALSE
601 COMPILER_NM_FOR_TARGET
602 COMPILER_LD_FOR_TARGET
603 COMPILER_AS_FOR_TARGET
674 DEBUG_PREFIX_CFLAGS_FOR_TARGET
675 SYSROOT_CFLAGS_FOR_TARGET
677 extra_host_libiberty_configure_flags
691 extra_mpc_mpfr_configure_flags
692 extra_mpc_gmp_configure_flags
693 extra_mpfr_configure_flags
735 TOPLEVEL_CONFIGURE_ARGUMENTS
763 program_transform_name
774 ac_subst_files='serialization_dependencies
780 enable_option_checking
785 enable_build_with_cxx
805 enable_ppl_version_check
809 enable_cloog_version_check
814 enable_stage1_languages
817 with_debug_prefix_map
820 enable_serial_configure
821 with_build_time_tools
822 enable_maintainer_mode
823 enable_stage1_checking
826 ac_precious_vars='build_alias
871 # Initialize some variables set by options.
873 ac_init_version=false
874 ac_unrecognized_opts=
876 # The variables have the same names as the options, with
877 # dashes changed to underlines.
885 program_transform_name=s,x,x,
893 # Installation directory options.
894 # These are left unexpanded so users can "make install exec_prefix=/foo"
895 # and all the variables that are supposed to be based on exec_prefix
896 # by default will actually change.
897 # Use braces instead of parens because sh, perl, etc. also accept them.
898 # (The list follows the same order as the GNU Coding Standards.)
899 bindir='${exec_prefix}/bin'
900 sbindir='${exec_prefix}/sbin'
901 libexecdir='${exec_prefix}/libexec'
902 datarootdir='${prefix}/share'
903 datadir='${datarootdir}'
904 sysconfdir='${prefix}/etc'
905 sharedstatedir='${prefix}/com'
906 localstatedir='${prefix}/var'
907 includedir='${prefix}/include'
908 oldincludedir='/usr/include'
909 docdir='${datarootdir}/doc/${PACKAGE}'
910 infodir='${datarootdir}/info'
915 libdir='${exec_prefix}/lib'
916 localedir='${datarootdir}/locale'
917 mandir='${datarootdir}/man'
923 # If the previous option needs an argument, assign it.
924 if test -n "$ac_prev"; then
925 eval $ac_prev=\$ac_option
931 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
935 # Accept the important Cygnus configure options, so we can diagnose typos.
937 case $ac_dashdash$ac_option in
941 -bindir | --bindir | --bindi | --bind | --bin | --bi)
943 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
946 -build | --build | --buil | --bui | --bu)
947 ac_prev=build_alias ;;
948 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
949 build_alias=$ac_optarg ;;
951 -cache-file | --cache-file | --cache-fil | --cache-fi \
952 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
953 ac_prev=cache_file ;;
954 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
955 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
956 cache_file=$ac_optarg ;;
959 cache_file=config.cache ;;
961 -datadir | --datadir | --datadi | --datad)
963 -datadir=* | --datadir=* | --datadi=* | --datad=*)
964 datadir=$ac_optarg ;;
966 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
967 | --dataroo | --dataro | --datar)
968 ac_prev=datarootdir ;;
969 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
970 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
971 datarootdir=$ac_optarg ;;
973 -disable-* | --disable-*)
974 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 as_fn_error "invalid feature name: $ac_useropt"
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
987 eval enable_$ac_useropt=no ;;
989 -docdir | --docdir | --docdi | --doc | --do)
991 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
994 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
996 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
999 -enable-* | --enable-*)
1000 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003 as_fn_error "invalid feature name: $ac_useropt"
1004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1008 "enable_$ac_useropt"
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
1013 eval enable_$ac_useropt=\$ac_optarg ;;
1015 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017 | --exec | --exe | --ex)
1018 ac_prev=exec_prefix ;;
1019 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021 | --exec=* | --exe=* | --ex=*)
1022 exec_prefix=$ac_optarg ;;
1024 -gas | --gas | --ga | --g)
1025 # Obsolete; use --with-gas.
1028 -help | --help | --hel | --he | -h)
1029 ac_init_help=long ;;
1030 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031 ac_init_help=recursive ;;
1032 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033 ac_init_help=short ;;
1035 -host | --host | --hos | --ho)
1036 ac_prev=host_alias ;;
1037 -host=* | --host=* | --hos=* | --ho=*)
1038 host_alias=$ac_optarg ;;
1040 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1042 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1044 htmldir=$ac_optarg ;;
1046 -includedir | --includedir | --includedi | --included | --include \
1047 | --includ | --inclu | --incl | --inc)
1048 ac_prev=includedir ;;
1049 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050 | --includ=* | --inclu=* | --incl=* | --inc=*)
1051 includedir=$ac_optarg ;;
1053 -infodir | --infodir | --infodi | --infod | --info | --inf)
1055 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1056 infodir=$ac_optarg ;;
1058 -libdir | --libdir | --libdi | --libd)
1060 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1061 libdir=$ac_optarg ;;
1063 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064 | --libexe | --libex | --libe)
1065 ac_prev=libexecdir ;;
1066 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067 | --libexe=* | --libex=* | --libe=*)
1068 libexecdir=$ac_optarg ;;
1070 -localedir | --localedir | --localedi | --localed | --locale)
1071 ac_prev=localedir ;;
1072 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073 localedir=$ac_optarg ;;
1075 -localstatedir | --localstatedir | --localstatedi | --localstated \
1076 | --localstate | --localstat | --localsta | --localst | --locals)
1077 ac_prev=localstatedir ;;
1078 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1079 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1080 localstatedir=$ac_optarg ;;
1082 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1084 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1085 mandir=$ac_optarg ;;
1087 -nfp | --nfp | --nf)
1088 # Obsolete; use --without-fp.
1091 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1092 | --no-cr | --no-c | -n)
1095 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1099 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101 | --oldin | --oldi | --old | --ol | --o)
1102 ac_prev=oldincludedir ;;
1103 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1106 oldincludedir=$ac_optarg ;;
1108 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1110 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1111 prefix=$ac_optarg ;;
1113 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114 | --program-pre | --program-pr | --program-p)
1115 ac_prev=program_prefix ;;
1116 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1118 program_prefix=$ac_optarg ;;
1120 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121 | --program-suf | --program-su | --program-s)
1122 ac_prev=program_suffix ;;
1123 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1125 program_suffix=$ac_optarg ;;
1127 -program-transform-name | --program-transform-name \
1128 | --program-transform-nam | --program-transform-na \
1129 | --program-transform-n | --program-transform- \
1130 | --program-transform | --program-transfor \
1131 | --program-transfo | --program-transf \
1132 | --program-trans | --program-tran \
1133 | --progr-tra | --program-tr | --program-t)
1134 ac_prev=program_transform_name ;;
1135 -program-transform-name=* | --program-transform-name=* \
1136 | --program-transform-nam=* | --program-transform-na=* \
1137 | --program-transform-n=* | --program-transform-=* \
1138 | --program-transform=* | --program-transfor=* \
1139 | --program-transfo=* | --program-transf=* \
1140 | --program-trans=* | --program-tran=* \
1141 | --progr-tra=* | --program-tr=* | --program-t=*)
1142 program_transform_name=$ac_optarg ;;
1144 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1146 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147 pdfdir=$ac_optarg ;;
1149 -psdir | --psdir | --psdi | --psd | --ps)
1151 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155 | -silent | --silent | --silen | --sile | --sil)
1158 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1160 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1162 sbindir=$ac_optarg ;;
1164 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166 | --sharedst | --shareds | --shared | --share | --shar \
1168 ac_prev=sharedstatedir ;;
1169 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1173 sharedstatedir=$ac_optarg ;;
1175 -site | --site | --sit)
1177 -site=* | --site=* | --sit=*)
1180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183 srcdir=$ac_optarg ;;
1185 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186 | --syscon | --sysco | --sysc | --sys | --sy)
1187 ac_prev=sysconfdir ;;
1188 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190 sysconfdir=$ac_optarg ;;
1192 -target | --target | --targe | --targ | --tar | --ta | --t)
1193 ac_prev=target_alias ;;
1194 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195 target_alias=$ac_optarg ;;
1197 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1200 -version | --version | --versio | --versi | --vers | -V)
1201 ac_init_version=: ;;
1204 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error "invalid package name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1217 eval with_$ac_useropt=\$ac_optarg ;;
1219 -without-* | --without-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error "invalid package name: $ac_useropt"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1233 eval with_$ac_useropt=no ;;
1236 # Obsolete; use --with-x.
1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240 | --x-incl | --x-inc | --x-in | --x-i)
1241 ac_prev=x_includes ;;
1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244 x_includes=$ac_optarg ;;
1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248 ac_prev=x_libraries ;;
1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251 x_libraries=$ac_optarg ;;
1253 -*) as_fn_error "unrecognized option: \`$ac_option'
1254 Try \`$0 --help' for more information."
1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259 # Reject names that are not valid shell variable names.
1260 case $ac_envvar in #(
1261 '' | [0-9]* | *[!_$as_cr_alnum]* )
1262 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1264 eval $ac_envvar=\$ac_optarg
1265 export $ac_envvar ;;
1268 # FIXME: should be removed in autoconf 3.0.
1269 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1278 if test -n "$ac_prev"; then
1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280 as_fn_error "missing argument to $ac_option"
1283 if test -n "$ac_unrecognized_opts"; then
1284 case $enable_option_checking in
1286 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1287 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291 # Check all directory arguments for consistency.
1292 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir
1297 eval ac_val=\$$ac_var
1298 # Remove trailing slashes.
1301 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302 eval $ac_var=\$ac_val;;
1304 # Be sure to have absolute directory names.
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1317 target=$target_alias
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321 if test "x$build_alias" = x; then
1322 cross_compiling=maybe
1323 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1324 If a cross compiler is detected then cross compile mode will be used." >&2
1325 elif test "x$build_alias" != "x$host_alias"; then
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333 test "$silent" = yes && exec 6>/dev/null
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339 as_fn_error "working directory cannot be determined"
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 as_fn_error "pwd does not report name of working directory"
1344 # Find the source files, if location was not specified.
1345 if test -z "$srcdir"; then
1346 ac_srcdir_defaulted=yes
1347 # Try the directory containing this script, then the parent directory.
1348 ac_confdir=`$as_dirname -- "$as_myself" ||
1349 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350 X"$as_myself" : 'X\(//\)[^/]' \| \
1351 X"$as_myself" : 'X\(//\)$' \| \
1352 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353 $as_echo X"$as_myself" |
1354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1376 ac_srcdir_defaulted=no
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1380 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1382 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1384 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1386 # When building in place, set srcdir=.
1387 if test "$ac_abs_confdir" = "$ac_pwd"; then
1390 # Remove unnecessary trailing slashes from srcdir.
1391 # Double slashes in file names in object file debugging info
1392 # mess up M-x gdb in Emacs.
1394 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 as_fn_error "path to source, $srcdir, contains spaces"
1401 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1403 for ac_var in $ac_precious_vars; do
1404 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_env_${ac_var}_value=\$${ac_var}
1406 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1411 # Report the --help message.
1413 if test "$ac_init_help" = "long"; then
1414 # Omit some internal or obsolete options to make the list less imposing.
1415 # This message is too long to be a string in the A/UX 3.1 sh.
1417 \`configure' configures this package to adapt to many kinds of systems.
1419 Usage: $0 [OPTION]... [VAR=VALUE]...
1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422 VAR=VALUE. See below for descriptions of some of the useful variables.
1424 Defaults for the options are specified in brackets.
1427 -h, --help display this help and exit
1428 --help=short display options specific to this package
1429 --help=recursive display the short help of all the included packages
1430 -V, --version display version information and exit
1431 -q, --quiet, --silent do not print \`checking...' messages
1432 --cache-file=FILE cache test results in FILE [disabled]
1433 -C, --config-cache alias for \`--cache-file=config.cache'
1434 -n, --no-create do not create output files
1435 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1437 Installation directories:
1438 --prefix=PREFIX install architecture-independent files in PREFIX
1439 [$ac_default_prefix]
1440 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443 By default, \`make install' will install all the files in
1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446 for instance \`--prefix=\$HOME'.
1448 For better control, use the options below.
1450 Fine tuning of the installation directories:
1451 --bindir=DIR user executables [EPREFIX/bin]
1452 --sbindir=DIR system admin executables [EPREFIX/sbin]
1453 --libexecdir=DIR program executables [EPREFIX/libexec]
1454 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1455 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1456 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1466 --htmldir=DIR html documentation [DOCDIR]
1467 --dvidir=DIR dvi documentation [DOCDIR]
1468 --pdfdir=DIR pdf documentation [DOCDIR]
1469 --psdir=DIR ps documentation [DOCDIR]
1475 --program-prefix=PREFIX prepend PREFIX to installed program names
1476 --program-suffix=SUFFIX append SUFFIX to installed program names
1477 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1480 --build=BUILD configure for building on BUILD [guessed]
1481 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1482 --target=TARGET configure for building compilers for TARGET [HOST]
1486 if test -n "$ac_init_help"; then
1491 --disable-option-checking ignore unrecognized --enable/--with options
1492 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1493 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1494 --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]]
1495 --enable-libada build libada directory
1496 --enable-libssp build libssp directory
1497 --enable-build-with-cxx build with C++ compiler instead of C compiler
1498 --disable-ppl-version-check disable check for PPL version
1499 --disable-cloog-version-check disable check for CLooG version
1500 --enable-lto enable link time optimization support
1501 --enable-stage1-languages[=all] choose additional languages to build during
1502 stage1. Mostly useful for compiler development.
1503 --enable-objc-gc enable use of Boehm's garbage collector with the
1504 GNU Objective-C runtime
1505 --enable-bootstrap enable bootstrapping [yes if native build]
1506 --enable-serial-[{host,target,build}-]configure
1507 force sequential configuration of
1508 sub-packages for the host, target or build
1509 machine, or all sub-packages
1510 --enable-maintainer-mode enable make rules and dependencies not useful
1511 (and sometimes confusing) to the casual installer
1512 --enable-stage1-checking[=all] choose additional checking for stage1
1514 --enable-werror enable -Werror in bootstrap stage2 and later
1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1519 --with-build-libsubdir=DIR Directory where to find libraries for build system
1520 --with-mpc=PATH specify prefix directory for installed MPC package.
1521 Equivalent to --with-mpc-include=PATH/include
1522 plus --with-mpc-lib=PATH/lib
1523 --with-mpc-include=PATH
1524 specify directory for installed MPC include files
1525 --with-mpc-lib=PATH specify directory for the installed MPC library
1526 --with-mpfr-dir=PATH this option has been REMOVED
1527 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1528 Equivalent to --with-mpfr-include=PATH/include
1529 plus --with-mpfr-lib=PATH/lib
1530 --with-mpfr-include=PATH
1531 specify directory for installed MPFR include files
1532 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1533 --with-gmp-dir=PATH this option has been REMOVED
1534 --with-gmp=PATH specify prefix directory for the installed GMP package.
1535 Equivalent to --with-gmp-include=PATH/include
1536 plus --with-gmp-lib=PATH/lib
1537 --with-gmp-include=PATH specify directory for installed GMP include files
1538 --with-gmp-lib=PATH specify directory for the installed GMP library
1539 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1540 when linking with PPL
1541 --with-stage1-ldflags=FLAGS Linker flags for stage1
1542 -with-stage1-libs=LIBS Libraries for stage1
1543 --with-boot-libs=LIBS Libraries for stage2 and later
1544 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1545 --with-ppl=PATH Specify prefix directory for the installed PPL package
1546 Equivalent to --with-ppl-include=PATH/include
1547 plus --with-ppl-lib=PATH/lib
1548 --with-ppl-include=PATH Specify directory for installed PPL include files
1549 --with-ppl-lib=PATH Specify the directory for the installed PPL library
1550 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
1551 Equivalent to --with-cloog-include=PATH/include
1552 plus --with-cloog-lib=PATH/lib
1553 --with-cloog-include=PATH Specify directory for installed CLooG include files
1554 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
1555 --with-libelf=PATH Specify prefix directory for the installed libelf package
1556 Equivalent to --with-libelf-include=PATH/include
1557 plus --with-libelf-lib=PATH/lib
1558 --with-libelf-include=PATH Specify directory for installed libelf include files
1559 --with-libelf-lib=PATH Specify the directory for the installed libelf library
1560 --with-build-sysroot=SYSROOT
1561 use sysroot as the system root during the build
1562 --with-debug-prefix-map='A=B C=D ...'
1563 map A to B, C to D ... in debug information
1564 --with-build-config='NAME NAME2...'
1565 Use config/NAME.mk build configuration
1566 --with-build-time-tools=PATH
1567 use given path to find target tools during the build
1569 Some influential environment variables:
1570 CC C compiler command
1571 CFLAGS C compiler flags
1572 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1573 nonstandard directory <lib dir>
1574 LIBS libraries to pass to the linker, e.g. -l<library>
1575 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1576 you have headers in a nonstandard directory <include dir>
1577 CXX C++ compiler command
1578 CXXFLAGS C++ compiler flags
1581 additional configure arguments for build directories
1583 additional configure arguments for host directories
1585 additional configure arguments for target directories
1588 DLLTOOL DLLTOOL for the host
1590 LIPO LIPO for the host
1592 RANLIB RANLIB for the host
1593 STRIP STRIP for the host
1594 WINDRES WINDRES for the host
1595 WINDMC WINDMC for the host
1596 OBJCOPY OBJCOPY for the host
1597 OBJDUMP OBJDUMP for the host
1607 GFORTRAN for the target
1613 DLLTOOL for the target
1621 OBJDUMP for the target
1623 RANLIB for the target
1625 STRIP for the target
1627 WINDRES for the target
1629 WINDMC for the target
1631 Use these variables to override the choices made by `configure' or to help
1632 it to find libraries and programs with nonstandard names/locations.
1634 Report bugs to the package provider.
1639 if test "$ac_init_help" = "recursive"; then
1640 # If there are subdirs, report their specific --help.
1641 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1642 test -d "$ac_dir" ||
1643 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1648 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1651 # A ".." for each directory in $ac_dir_suffix.
1652 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1653 case $ac_top_builddir_sub in
1654 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1658 ac_abs_top_builddir=$ac_pwd
1659 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1660 # for backward compatibility:
1661 ac_top_builddir=$ac_top_build_prefix
1664 .) # We are building in place.
1666 ac_top_srcdir=$ac_top_builddir_sub
1667 ac_abs_top_srcdir=$ac_pwd ;;
1668 [\\/]* | ?:[\\/]* ) # Absolute name.
1669 ac_srcdir=$srcdir$ac_dir_suffix;
1670 ac_top_srcdir=$srcdir
1671 ac_abs_top_srcdir=$srcdir ;;
1673 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1674 ac_top_srcdir=$ac_top_build_prefix$srcdir
1675 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1677 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679 cd "$ac_dir" || { ac_status=$?; continue; }
1680 # Check for guested configure.
1681 if test -f "$ac_srcdir/configure.gnu"; then
1683 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1684 elif test -f "$ac_srcdir/configure"; then
1686 $SHELL "$ac_srcdir/configure" --help=recursive
1688 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690 cd "$ac_pwd" || { ac_status=$?; break; }
1694 test -n "$ac_init_help" && exit $ac_status
1695 if $ac_init_version; then
1698 generated by GNU Autoconf 2.64
1700 Copyright (C) 2009 Free Software Foundation, Inc.
1701 This configure script is free software; the Free Software Foundation
1702 gives unlimited permission to copy, distribute and modify it.
1707 ## ------------------------ ##
1708 ## Autoconf initialization. ##
1709 ## ------------------------ ##
1711 # ac_fn_c_try_compile LINENO
1712 # --------------------------
1713 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_compile ()
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext
1718 if { { ac_try="$ac_compile"
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_compile") 2>conftest.err
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest.$ac_objext; then :
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747 } # ac_fn_c_try_compile
1749 # ac_fn_cxx_try_compile LINENO
1750 # ----------------------------
1751 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1752 ac_fn_cxx_try_compile ()
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 rm -f conftest.$ac_objext
1756 if { { ac_try="$ac_compile"
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_compile") 2>conftest.err
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && {
1772 test -z "$ac_cxx_werror_flag" ||
1773 test ! -s conftest.err
1774 } && test -s conftest.$ac_objext; then :
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1782 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1785 } # ac_fn_cxx_try_compile
1787 # ac_fn_c_try_link LINENO
1788 # -----------------------
1789 # Try to link conftest.$ac_ext, and return whether this succeeded.
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext conftest$ac_exeext
1794 if { { ac_try="$ac_link"
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_link") 2>conftest.err
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest$ac_exeext && {
1813 test "$cross_compiling" = yes ||
1814 $as_test_x conftest$ac_exeext
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1823 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1824 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1825 # interfere with the next link command; also delete a directory that is
1826 # left behind by Apple's compiler. We do this before executing the actions.
1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1831 } # ac_fn_c_try_link
1833 # ac_fn_c_try_cpp LINENO
1834 # ----------------------
1835 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 if { { ac_try="$ac_cpp conftest.$ac_ext"
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } >/dev/null && {
1855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1871 # -------------------------------------------------------
1872 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1873 # the include files in INCLUDES and setting the cache variable VAR
1875 ac_fn_c_check_header_mongrel ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880 $as_echo_n "checking for $2... " >&6; }
1881 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1882 $as_echo_n "(cached) " >&6
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1888 # Is the header compilable?
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1890 $as_echo_n "checking $2 usability... " >&6; }
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897 ac_header_compiler=yes
1899 ac_header_compiler=no
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1903 $as_echo "$ac_header_compiler" >&6; }
1905 # Is the header present?
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1907 $as_echo_n "checking $2 presence... " >&6; }
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1912 if ac_fn_c_try_cpp "$LINENO"; then :
1913 ac_header_preproc=yes
1915 ac_header_preproc=no
1917 rm -f conftest.err conftest.$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1919 $as_echo "$ac_header_preproc" >&6; }
1921 # So? What about this header?
1922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1925 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1927 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1931 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1933 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1935 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1937 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1939 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1943 $as_echo_n "checking for $2... " >&6; }
1944 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1945 $as_echo_n "(cached) " >&6
1947 eval "$3=\$ac_header_compiler"
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1953 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1955 } # ac_fn_c_check_header_mongrel
1957 # ac_fn_c_try_run LINENO
1958 # ----------------------
1959 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1960 # that executables *can* be run.
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 if { { ac_try="$ac_link"
1966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967 *) ac_try_echo=$ac_try;;
1969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970 $as_echo "$ac_try_echo"; } >&5
1971 (eval "$ac_link") 2>&5
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1975 { { case "(($ac_try" in
1976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1977 *) ac_try_echo=$ac_try;;
1979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1980 $as_echo "$ac_try_echo"; } >&5
1981 (eval "$ac_try") 2>&5
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; }; }; then :
1987 $as_echo "$as_me: program exited with status $ac_status" >&5
1988 $as_echo "$as_me: failed program was:" >&5
1989 sed 's/^/| /' conftest.$ac_ext >&5
1991 ac_retval=$ac_status
1993 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1994 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1999 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2000 # -------------------------------------------------------
2001 # Tests whether HEADER exists and can be compiled using the include files in
2002 # INCLUDES, setting the cache variable VAR accordingly.
2003 ac_fn_c_check_header_compile ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007 $as_echo_n "checking for $2... " >&6; }
2008 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2009 $as_echo_n "(cached) " >&6
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2016 if ac_fn_c_try_compile "$LINENO"; then :
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2026 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2028 } # ac_fn_c_check_header_compile
2029 cat >config.log <<_ACEOF
2030 This file contains any messages produced by compilers while
2031 running configure, to aid debugging if configure makes a mistake.
2033 It was created by $as_me, which was
2034 generated by GNU Autoconf 2.64. Invocation command line was
2046 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2047 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2048 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2049 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2050 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2052 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2053 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2055 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2056 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2057 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2058 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2059 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2060 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2061 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 test -z "$as_dir" && as_dir=.
2070 $as_echo "PATH: $as_dir"
2086 # Keep a trace of the command line.
2087 # Strip out --no-create and --no-recursion so they do not pile up.
2088 # Strip out --silent because we don't want to record it for future runs.
2089 # Also quote any args containing shell meta-characters.
2090 # Make two passes to allow for proper duplicate-argument suppression.
2094 ac_must_keep_next=false
2100 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2102 | -silent | --silent | --silen | --sile | --sil)
2105 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2108 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2110 as_fn_append ac_configure_args1 " '$ac_arg'"
2111 if test $ac_must_keep_next = true; then
2112 ac_must_keep_next=false # Got value, back to normal.
2115 *=* | --config-cache | -C | -disable-* | --disable-* \
2116 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2117 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2118 | -with-* | --with-* | -without-* | --without-* | --x)
2119 case "$ac_configure_args0 " in
2120 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2123 -* ) ac_must_keep_next=true ;;
2126 as_fn_append ac_configure_args " '$ac_arg'"
2131 { ac_configure_args0=; unset ac_configure_args0;}
2132 { ac_configure_args1=; unset ac_configure_args1;}
2134 # When interrupted or exit'd, cleanup temporary files, and complete
2135 # config.log. We remove comments because anyway the quotes in there
2136 # would cause problems or look ugly.
2137 # WARNING: Use '\'' to represent an apostrophe within the trap.
2138 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2139 trap 'exit_status=$?
2140 # Save into config.log some information that might help in debugging.
2145 ## ---------------- ##
2146 ## Cache variables. ##
2147 ## ---------------- ##
2150 # The following way of writing the cache mishandles newlines in values,
2152 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2153 eval ac_val=\$$ac_var
2157 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2158 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2161 _ | IFS | as_nl) ;; #(
2162 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2163 *) { eval $ac_var=; unset $ac_var;} ;;
2168 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2169 *${as_nl}ac_space=\ *)
2171 "s/'\''/'\''\\\\'\'''\''/g;
2172 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2175 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2183 ## ----------------- ##
2184 ## Output variables. ##
2185 ## ----------------- ##
2188 for ac_var in $ac_subst_vars
2190 eval ac_val=\$$ac_var
2192 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2194 $as_echo "$ac_var='\''$ac_val'\''"
2198 if test -n "$ac_subst_files"; then
2200 ## ------------------- ##
2201 ## File substitutions. ##
2202 ## ------------------- ##
2205 for ac_var in $ac_subst_files
2207 eval ac_val=\$$ac_var
2209 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2211 $as_echo "$ac_var='\''$ac_val'\''"
2216 if test -s confdefs.h; then
2226 test "$ac_signal" != 0 &&
2227 $as_echo "$as_me: caught signal $ac_signal"
2228 $as_echo "$as_me: exit $exit_status"
2230 rm -f core *.core core.conftest.* &&
2231 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2234 for ac_signal in 1 2 13 15; do
2235 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2239 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2240 rm -f -r conftest* confdefs.h
2242 $as_echo "/* confdefs.h */" > confdefs.h
2244 # Predefined preprocessor variables.
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_NAME "$PACKAGE_NAME"
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_STRING "$PACKAGE_STRING"
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_URL "$PACKAGE_URL"
2271 # Let the site file select an alternate cache file if it wants to.
2272 # Prefer an explicitly selected file to automatically selected ones.
2275 if test -n "$CONFIG_SITE"; then
2276 ac_site_file1=$CONFIG_SITE
2277 elif test "x$prefix" != xNONE; then
2278 ac_site_file1=$prefix/share/config.site
2279 ac_site_file2=$prefix/etc/config.site
2281 ac_site_file1=$ac_default_prefix/share/config.site
2282 ac_site_file2=$ac_default_prefix/etc/config.site
2284 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2286 test "x$ac_site_file" = xNONE && continue
2287 if test -r "$ac_site_file"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2289 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2290 sed 's/^/| /' "$ac_site_file" >&5
2295 if test -r "$cache_file"; then
2296 # Some versions of bash will fail to source /dev/null (special
2297 # files actually), so we avoid doing that.
2298 if test -f "$cache_file"; then
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2300 $as_echo "$as_me: loading cache $cache_file" >&6;}
2302 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2303 *) . "./$cache_file";;
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2308 $as_echo "$as_me: creating cache $cache_file" >&6;}
2312 # Check that the precious variables saved in the cache have kept the same
2314 ac_cache_corrupted=false
2315 for ac_var in $ac_precious_vars; do
2316 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2317 eval ac_new_set=\$ac_env_${ac_var}_set
2318 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2319 eval ac_new_val=\$ac_env_${ac_var}_value
2320 case $ac_old_set,$ac_new_set in
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2323 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2324 ac_cache_corrupted=: ;;
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2327 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2328 ac_cache_corrupted=: ;;
2331 if test "x$ac_old_val" != "x$ac_new_val"; then
2332 # differences in whitespace do not lead to failure.
2333 ac_old_val_w=`echo x $ac_old_val`
2334 ac_new_val_w=`echo x $ac_new_val`
2335 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2337 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2338 ac_cache_corrupted=:
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2341 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2342 eval $ac_var=\$ac_old_val
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2345 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2347 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2350 # Pass precious variables to config.status.
2351 if test "$ac_new_set" = set; then
2353 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2354 *) ac_arg=$ac_var=$ac_new_val ;;
2356 case " $ac_configure_args " in
2357 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2358 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2362 if $ac_cache_corrupted; then
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2366 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2367 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2369 ## -------------------- ##
2370 ## Main body of script. ##
2371 ## -------------------- ##
2374 ac_cpp='$CPP $CPPFLAGS'
2375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2388 # if PWD already has a value, it is probably wrong.
2389 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2391 # Export original configure arguments for use by sub-configures.
2392 # Quote arguments with shell meta charatcers.
2393 TOPLEVEL_CONFIGURE_ARGUMENTS=
2394 set -- "$progname" "$@"
2398 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2399 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2400 # if the argument is of the form -foo=baz, quote the baz part only
2401 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2404 # Add the quoted argument to the list.
2405 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2407 if test "$silent" = yes; then
2408 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2410 # Remove the initial space we just introduced and, as these will be
2411 # expanded by make, quote '$'.
2412 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2415 # Find the build, host, and target systems.
2417 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2418 for ac_t in install-sh install.sh shtool; do
2419 if test -f "$ac_dir/$ac_t"; then
2421 ac_install_sh="$ac_aux_dir/$ac_t -c"
2426 if test -z "$ac_aux_dir"; then
2427 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2430 # These three variables are undocumented and unsupported,
2431 # and are intended to be withdrawn in a future Autoconf release.
2432 # They can cause serious problems if a builder's source tree is in a directory
2433 # whose full name contains unusual characters.
2434 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2435 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2436 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2439 # Make sure we can run config.sub.
2440 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2441 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2444 $as_echo_n "checking build system type... " >&6; }
2445 if test "${ac_cv_build+set}" = set; then :
2446 $as_echo_n "(cached) " >&6
2448 ac_build_alias=$build_alias
2449 test "x$ac_build_alias" = x &&
2450 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2451 test "x$ac_build_alias" = x &&
2452 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2453 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2454 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2458 $as_echo "$ac_cv_build" >&6; }
2459 case $ac_cv_build in
2461 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2464 ac_save_IFS=$IFS; IFS='-'
2470 # Remember, the first character of IFS is used to create $*,
2471 # except with old shells:
2474 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2477 case ${build_alias} in
2478 "") build_noncanonical=${build} ;;
2479 *) build_noncanonical=${build_alias} ;;
2484 case ${host_alias} in
2485 "") host_noncanonical=${build_noncanonical} ;;
2486 *) host_noncanonical=${host_alias} ;;
2491 case ${target_alias} in
2492 "") target_noncanonical=${host_noncanonical} ;;
2493 *) target_noncanonical=${target_alias} ;;
2499 test "$host_noncanonical" = "$target_noncanonical" &&
2500 test "$program_prefix$program_suffix$program_transform_name" = \
2502 program_transform_name=s,y,y,
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2505 $as_echo_n "checking host system type... " >&6; }
2506 if test "${ac_cv_host+set}" = set; then :
2507 $as_echo_n "(cached) " >&6
2509 if test "x$host_alias" = x; then
2510 ac_cv_host=$ac_cv_build
2512 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2513 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2518 $as_echo "$ac_cv_host" >&6; }
2521 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2524 ac_save_IFS=$IFS; IFS='-'
2530 # Remember, the first character of IFS is used to create $*,
2531 # except with old shells:
2534 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2538 $as_echo_n "checking target system type... " >&6; }
2539 if test "${ac_cv_target+set}" = set; then :
2540 $as_echo_n "(cached) " >&6
2542 if test "x$target_alias" = x; then
2543 ac_cv_target=$ac_cv_host
2545 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2546 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2551 $as_echo "$ac_cv_target" >&6; }
2552 case $ac_cv_target in
2554 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2556 target=$ac_cv_target
2557 ac_save_IFS=$IFS; IFS='-'
2563 # Remember, the first character of IFS is used to create $*,
2564 # except with old shells:
2567 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2570 # The aliases save the names the user supplied, while $host etc.
2571 # will get canonicalized.
2572 test -n "$target_alias" &&
2573 test "$program_prefix$program_suffix$program_transform_name" = \
2575 program_prefix=${target_alias}-
2577 test "$program_prefix" != NONE &&
2578 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2579 # Use a double $ so make ignores it.
2580 test "$program_suffix" != NONE &&
2581 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2582 # Double any \ or $.
2583 # By default was `s,x,x', remove it if useless.
2584 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2585 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2589 # Get 'install' or 'install-sh' and its variants.
2590 # Find a good install program. We prefer a C program (faster),
2591 # so one script is as good as another. But avoid the broken or
2592 # incompatible versions:
2593 # SysV /etc/install, /usr/sbin/install
2594 # SunOS /usr/etc/install
2595 # IRIX /sbin/install
2597 # AmigaOS /C/install, which installs bootblocks on floppy discs
2598 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2599 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2600 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2601 # OS/2's system install, which has a completely different semantic
2602 # ./install, which can be erroneously created by make from ./install.sh.
2603 # Reject install programs that cannot install multiple files.
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2605 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2606 if test -z "$INSTALL"; then
2607 if test "${ac_cv_path_install+set}" = set; then :
2608 $as_echo_n "(cached) " >&6
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 test -z "$as_dir" && as_dir=.
2615 # Account for people who put trailing slashes in PATH elements.
2616 case $as_dir/ in #((
2617 ./ | .// | /[cC]/* | \
2618 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2619 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2622 # OSF1 and SCO ODT 3.0 have their own names for install.
2623 # Don't use installbsd from OSF since it installs stuff as root
2625 for ac_prog in ginstall scoinst install; do
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2628 if test $ac_prog = install &&
2629 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2630 # AIX install. It has an incompatible calling convention.
2632 elif test $ac_prog = install &&
2633 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2634 # program-specific install script used by HP pwplus--don't use.
2637 rm -rf conftest.one conftest.two conftest.dir
2638 echo one > conftest.one
2639 echo two > conftest.two
2641 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2642 test -s conftest.one && test -s conftest.two &&
2643 test -s conftest.dir/conftest.one &&
2644 test -s conftest.dir/conftest.two
2646 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2659 rm -rf conftest.one conftest.two conftest.dir
2662 if test "${ac_cv_path_install+set}" = set; then
2663 INSTALL=$ac_cv_path_install
2665 # As a last resort, use the slow shell script. Don't cache a
2666 # value for INSTALL within a source directory, because that will
2667 # break other packages using the cache if that directory is
2668 # removed, or if the value is a relative name.
2669 INSTALL=$ac_install_sh
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2673 $as_echo "$INSTALL" >&6; }
2675 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2676 # It thinks the first close brace ends the variable substitution.
2677 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2679 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2681 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2684 $as_echo_n "checking whether ln works... " >&6; }
2685 if test "${acx_cv_prog_LN+set}" = set; then :
2686 $as_echo_n "(cached) " >&6
2688 rm -f conftestdata_t
2689 echo >conftestdata_f
2690 if ln conftestdata_f conftestdata_t 2>/dev/null
2696 rm -f conftestdata_f conftestdata_t
2699 if test $acx_cv_prog_LN = no; then
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2702 $as_echo "no, using $LN" >&6; }
2704 LN="$acx_cv_prog_LN"
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2706 $as_echo "yes" >&6; }
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2710 $as_echo_n "checking whether ln -s works... " >&6; }
2712 if test "$LN_S" = "ln -s"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2714 $as_echo "yes" >&6; }
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2717 $as_echo "no, using $LN_S" >&6; }
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2721 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2722 if test "${ac_cv_path_SED+set}" = set; then :
2723 $as_echo_n "(cached) " >&6
2725 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2726 for ac_i in 1 2 3 4 5 6 7; do
2727 ac_script="$ac_script$as_nl$ac_script"
2729 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2730 { ac_script=; unset ac_script;}
2731 if test -z "$SED"; then
2732 ac_path_SED_found=false
2733 # Loop through the user's path and test for each of PROGNAME-LIST
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 test -z "$as_dir" && as_dir=.
2739 for ac_prog in sed gsed; do
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2742 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2743 # Check for GNU ac_path_SED and select it if it is found.
2744 # Check for GNU $ac_path_SED
2745 case `"$ac_path_SED" --version 2>&1` in
2747 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2750 $as_echo_n 0123456789 >"conftest.in"
2753 cat "conftest.in" "conftest.in" >"conftest.tmp"
2754 mv "conftest.tmp" "conftest.in"
2755 cp "conftest.in" "conftest.nl"
2756 $as_echo '' >> "conftest.nl"
2757 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2759 as_fn_arith $ac_count + 1 && ac_count=$as_val
2760 if test $ac_count -gt ${ac_path_SED_max-0}; then
2761 # Best one so far, save it but keep looking for a better one
2762 ac_cv_path_SED="$ac_path_SED"
2763 ac_path_SED_max=$ac_count
2765 # 10*(2^10) chars as input seems more than enough
2766 test $ac_count -gt 10 && break
2768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2771 $ac_path_SED_found && break 3
2776 if test -z "$ac_cv_path_SED"; then
2777 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2785 $as_echo "$ac_cv_path_SED" >&6; }
2786 SED="$ac_cv_path_SED"
2789 for ac_prog in gawk mawk nawk awk
2791 # Extract the first word of "$ac_prog", so it can be a program name with args.
2792 set dummy $ac_prog; ac_word=$2
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if test "${ac_cv_prog_AWK+set}" = set; then :
2796 $as_echo_n "(cached) " >&6
2798 if test -n "$AWK"; then
2799 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808 ac_cv_prog_AWK="$ac_prog"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 if test -n "$AWK"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2821 $as_echo "$AWK" >&6; }
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824 $as_echo "no" >&6; }
2828 test -n "$AWK" && break
2832 ### we might need to use some other shell than /bin/sh for running subshells
2833 ### If we are on Windows, search for the shell. This will permit people
2834 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2835 ### without also having to set CONFIG_SHELL. This code will work when
2836 ### using bash, which sets OSTYPE.
2839 if test x${CONFIG_SHELL} = x ; then
2840 if test ! -f /bin/sh ; then
2841 if test x${SHELL} != x && test -f ${SHELL} ; then
2842 CONFIG_SHELL=${SHELL}
2845 for prog in sh sh.exe bash bash.exe; do
2846 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2847 for dir in $PATH; do
2848 test -z "$dir" && dir=.
2849 if test -f $dir/$prog; then
2850 CONFIG_SHELL=$dir/$prog
2856 test -n "${CONFIG_SHELL}" && break
2864 config_shell=${CONFIG_SHELL-/bin/sh}
2866 moveifchange=${srcdir}/move-if-change
2868 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2870 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2872 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2873 INSTALL="${srcpwd}/install-sh -c"
2876 # Set srcdir to "." if that's what it is.
2877 # This is important for multilib support.
2879 if test "${pwd}" = "${srcpwd}" ; then
2887 ### To add a new directory to the tree, first choose whether it is a target
2888 ### or a host dependent tool. Then put it into the appropriate list
2889 ### (library or tools, host or target), doing a dependency sort.
2891 # Subdirs will be configured in the order listed in build_configdirs,
2892 # configdirs, or target_configdirs; see the serialization section below.
2894 # Dependency sorting is only needed when *configuration* must be done in
2895 # a particular order. In all cases a dependency should be specified in
2896 # the Makefile, whether or not it's implicitly specified here.
2898 # Double entries in build_configdirs, configdirs, or target_configdirs may
2899 # cause circular dependencies and break everything horribly.
2901 # these library is used by various programs built for the build
2904 build_libs="build-libiberty"
2906 # these tools are built for the build environment
2907 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2909 # these libraries are used by various programs built for the host environment
2911 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2913 # these tools are built for the host environment
2914 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2915 # know that we are building the simulator.
2916 # binutils, gas and ld appear in that order because it makes sense to run
2917 # "make check" in that particular order.
2918 # If --enable-gold is used, "gold" may replace "ld".
2919 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen 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"
2921 # libgcj represents the runtime libraries only used by gcj.
2922 libgcj="target-libffi \
2927 # these libraries are built for the target environment, and are built after
2928 # the host libraries and the host tools (which may be a cross compiler)
2930 target_libraries="target-libgcc \
2935 target-libstdc++-v3 \
2938 target-libgfortran \
2944 # these tools are built using the target libraries, and are intended to
2945 # run only in the target environment
2947 # note: any program that *uses* libraries that are in the "target_libraries"
2948 # list belongs in this list. those programs are also very likely
2949 # candidates for the "native_only" list which follows
2951 target_tools="target-examples target-groff target-gperf target-rda"
2953 ################################################################################
2955 ## All tools belong in one of the four categories, and are assigned above
2956 ## We assign ${configdirs} this way to remove all embedded newlines. This
2957 ## is important because configure will choke if they ever get through.
2958 ## ${configdirs} is directories we build using the host tools.
2959 ## ${target_configdirs} is directories we build using the target tools.
2960 configdirs=`echo ${host_libs} ${host_tools}`
2961 target_configdirs=`echo ${target_libraries} ${target_tools}`
2962 build_configdirs=`echo ${build_libs} ${build_tools}`
2966 ################################################################################
2968 srcname="gnu development package"
2970 # This gets set non-empty for some net releases of packages.
2973 # Define is_cross_compiler to save on calls to 'test'.
2975 if test x"${host}" = x"${target}" ; then
2976 is_cross_compiler=no
2978 is_cross_compiler=yes
2981 # Find the build and target subdir names.
2983 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2984 # have matching libraries, they should use host libraries: Makefile.tpl
2985 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2986 # However, they still use the build modules, because the corresponding
2987 # host modules (e.g. bison) are only built for the host when bootstrap
2989 # - build_subdir is where we find build modules, and never changes.
2990 # - build_libsubdir is where we find build libraries, and can be overridden.
2992 # Prefix 'build-' so this never conflicts with target_subdir.
2993 build_subdir="build-${build_noncanonical}"
2995 # Check whether --with-build-libsubdir was given.
2996 if test "${with_build_libsubdir+set}" = set; then :
2997 withval=$with_build_libsubdir; build_libsubdir="$withval"
2999 build_libsubdir="$build_subdir"
3002 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3003 if ( test $srcdir = . && test -d gcc ) \
3004 || test -d $srcdir/../host-${host_noncanonical}; then
3005 host_subdir="host-${host_noncanonical}"
3010 target_subdir=${target_noncanonical}
3012 # Be sure to cover against remnants of an in-tree build.
3013 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
3014 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
3015 Use a pristine source tree when building in a separate tree" "$LINENO" 5
3018 # Skipdirs are removed silently.
3020 # Noconfigdirs are removed loudly.
3024 # Make sure we don't let GNU ld be added if we didn't want it.
3025 if test x$with_gnu_ld = xno ; then
3027 noconfigdirs="$noconfigdirs ld gold"
3031 # Make sure we don't let GNU as be added if we didn't want it.
3032 if test x$with_gnu_as = xno ; then
3034 noconfigdirs="$noconfigdirs gas"
3038 # Make sure we don't let ZLIB be added if we didn't want it.
3039 if test x$with_system_zlib = xyes ; then
3040 use_included_zlib=no
3041 noconfigdirs="$noconfigdirs zlib"
3044 # some tools are so dependent upon X11 that if we're not building with X,
3045 # it's not even worth trying to configure, much less build, that tool.
3048 yes | "") ;; # the default value for this tree is that X11 is available
3050 skipdirs="${skipdirs} tk itcl libgui"
3051 # We won't be able to build gdbtk without X.
3054 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
3057 # Some tools are only suitable for building in a "native" situation.
3058 # Remove these if host!=target.
3059 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"
3061 # Similarly, some are only suitable for cross toolchains.
3062 # Remove these if host=target.
3063 cross_only="target-libgloss target-newlib target-opcodes"
3065 case $is_cross_compiler in
3066 no) skipdirs="${skipdirs} ${cross_only}" ;;
3067 yes) skipdirs="${skipdirs} ${native_only}" ;;
3070 # If both --with-headers and --with-libs are specified, default to
3072 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3073 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
3074 if test x"${with_newlib}" = x ; then
3079 # Recognize --with-newlib/--without-newlib.
3080 case ${with_newlib} in
3081 no) skipdirs="${skipdirs} target-newlib" ;;
3082 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3085 # Handle --enable-gold.
3086 # --enable-gold Build only gold
3087 # --disable-gold [default] Build only ld
3088 # --enable-gold=both Build both gold and ld, ld is default
3089 # --enable-gold=both/ld Same
3090 # --enable-gold=both/gold Build both gold and ld, gold is default, ld is renamed ld.bfd
3092 # Check whether --enable-gold was given.
3093 if test "${enable_gold+set}" = set; then :
3094 enableval=$enable_gold; ENABLE_GOLD=$enableval
3099 case "${ENABLE_GOLD}" in
3100 yes|both|both/gold|both/ld)
3101 # Check for ELF target.
3104 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3105 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3106 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
3108 *-*-linux*aout* | *-*-linux*oldld*)
3116 if test "$is_elf" = "yes"; then
3117 # Check for target supported by gold.
3119 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
3120 case "${ENABLE_GOLD}" in
3122 configdirs="$configdirs gold"
3125 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
3136 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
3140 # Configure extra directories which are host specific
3144 configdirs="$configdirs libtermcap" ;;
3147 # A target can indicate whether a language isn't supported for some reason.
3148 # Only spaces may be used in this macro; not newlines or tabs.
3149 unsupported_languages=
3151 # Remove more programs from consideration, based on the host or
3152 # target this usually means that a port of the program doesn't
3157 noconfigdirs="$noconfigdirs byacc"
3159 i[3456789]86-*-vsta)
3160 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
3162 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
3163 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3166 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3168 i[3456789]86-*-mingw32*)
3169 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
3170 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3172 i[3456789]86-*-beos*)
3173 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3176 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
3179 noconfigdirs="$noconfigdirs rcs"
3182 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
3185 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
3190 # Check whether --enable-libada was given.
3191 if test "${enable_libada+set}" = set; then :
3192 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3197 if test "${ENABLE_LIBADA}" != "yes" ; then
3198 noconfigdirs="$noconfigdirs gnattools"
3201 # Check whether --enable-libssp was given.
3202 if test "${enable_libssp+set}" = set; then :
3203 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3209 # Save it here so that, even in case of --enable-libgcj, if the Java
3210 # front-end isn't enabled, we still get libgcj disabled.
3211 libgcj_saved=$libgcj
3212 case $enable_libgcj in
3214 # If we reset it here, it won't get added to noconfigdirs in the
3215 # target-specific build rules, so it will be forcibly enabled
3216 # (unless the Java language itself isn't enabled).
3220 # Make sure we get it printed in the list of not supported target libs.
3221 noconfigdirs="$noconfigdirs ${libgcj}"
3226 # Disable libmudflap on some systems.
3227 if test x$enable_libmudflap = x ; then
3229 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3230 # Enable libmudflap by default in GNU and friends.
3233 # Enable libmudflap by default in FreeBSD.
3236 # Disable it by default everywhere else.
3237 noconfigdirs="$noconfigdirs target-libmudflap"
3242 # Disable libgomp on non POSIX hosted systems.
3243 if test x$enable_libgomp = x ; then
3244 # Enable libgomp by default on hosted POSIX systems.
3246 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3248 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3250 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3252 *-*-darwin* | *-*-aix*)
3255 noconfigdirs="$noconfigdirs target-libgomp"
3260 # Default libgloss CPU subdirectory.
3261 libgloss_dir="$target_cpu"
3265 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3268 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3269 noconfigdirs="$noconfigdirs sim target-rda"
3271 i[3456789]86-*-darwin*)
3272 noconfigdirs="$noconfigdirs ld gprof"
3273 noconfigdirs="$noconfigdirs sim target-rda"
3275 x86_64-*-darwin[912]*)
3276 noconfigdirs="$noconfigdirs ld gas gprof"
3277 noconfigdirs="$noconfigdirs sim target-rda"
3280 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3281 noconfigdirs="$noconfigdirs sim target-rda"
3282 noconfigdirs="$noconfigdirs ${libgcj}"
3284 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
3285 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3288 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3289 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3290 && test -f /usr/local/include/gmp.h; then
3294 # Skip some stuff that's unsupported on some FreeBSD configurations.
3300 noconfigdirs="$noconfigdirs ${libgcj}"
3305 # Remove unsupported stuff on all kaOS configurations.
3306 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
3307 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3308 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3309 noconfigdirs="$noconfigdirs target-libgloss"
3312 # Skip some stuff on all NetBSD configurations.
3313 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3315 # Skip some stuff that's unsupported on some NetBSD configurations.
3317 i*86-*-netbsdelf*) ;;
3318 arm*-*-netbsdelf*) ;;
3320 noconfigdirs="$noconfigdirs ${libgcj}"
3325 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
3328 skipdirs="${skipdirs} target-libiberty"
3329 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3331 # The tpf target doesn't support gdb yet.
3333 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3336 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3339 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
3342 # ld works, but does not support shared libraries.
3343 # newlib is not 64 bit ready. I'm not sure about fileutils.
3344 # gas doesn't generate exception information.
3345 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3348 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3351 # newlib is not 64 bit ready
3352 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3355 # newlib is not 64 bit ready
3356 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3359 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3362 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3364 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3365 noconfigdirs="$noconfigdirs ${libgcj}"
3366 noconfigdirs="$noconfigdirs target-examples"
3367 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
3368 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3369 noconfigdirs="$noconfigdirs expect dejagnu"
3370 # the C++ libraries don't build on top of CE's C libraries
3371 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3372 noconfigdirs="$noconfigdirs target-newlib"
3374 *-*-cygwin*) ;; # keep gdb and readline
3375 *) noconfigdirs="$noconfigdirs gdb readline"
3381 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3385 arm-*-coff | strongarm-*-coff | xscale-*-coff)
3386 noconfigdirs="$noconfigdirs ${libgcj}"
3389 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
3390 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
3393 arm*-*-linux-gnueabi)
3394 noconfigdirs="$noconfigdirs target-qthreads"
3395 case ${with_newlib} in
3396 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3401 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
3405 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3408 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3411 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3414 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3417 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3420 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3423 unsupported_languages="$unsupported_languages java"
3424 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3425 if test x${is_cross_compiler} != xno ; then
3426 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3429 c4x-*-* | tic4x-*-*)
3430 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3432 c54x*-*-* | tic54x-*-*)
3433 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3436 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3438 cris-*-* | crisv32-*-*)
3439 unsupported_languages="$unsupported_languages java"
3442 unsupported_languages="$unsupported_languages fortran"
3443 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3445 noconfigdirs="$noconfigdirs target-boehm-gc";;
3447 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3449 unsupported_languages="$unsupported_languages fortran"
3450 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3455 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3458 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3461 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3463 ep9312-*-elf | ep9312-*-coff)
3467 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3470 noconfigdirs="$noconfigdirs ${libgcj}"
3473 noconfigdirs="$noconfigdirs ${libgcj}"
3474 noconfigdirs="$noconfigdirs gprof"
3477 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3480 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3482 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3484 hppa*64*-*-linux* | parisc*64*-*-linux*)
3485 # In this case, it's because the hppa64-linux target is for
3486 # the kernel only at this point and has no libc, and thus no
3487 # headers, crt*.o, etc., all of which are needed by these.
3488 noconfigdirs="$noconfigdirs target-zlib"
3490 parisc*-*-linux* | hppa*-*-linux*)
3494 hppa*-*-openbsd* | \
3496 noconfigdirs="$noconfigdirs ${libgcj}"
3499 noconfigdirs="$noconfigdirs ld shellutils"
3505 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3506 # build on HP-UX 10.20.
3507 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3510 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3513 # No gdb support yet.
3514 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3517 # No gdb or ld support yet.
3518 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3521 # No gdb or ld support yet.
3522 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3526 i[3456789]86-*-coff | i[3456789]86-*-elf)
3527 noconfigdirs="$noconfigdirs ${libgcj}"
3530 i[3456789]86-*-linux*)
3531 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3532 # not build java stuff by default.
3535 noconfigdirs="$noconfigdirs ${libgcj}";;
3538 # This section makes it possible to build newlib natively on linux.
3539 # If we are using a cross compiler then don't configure newlib.
3540 if test x${is_cross_compiler} != xno ; then
3541 noconfigdirs="$noconfigdirs target-newlib"
3543 noconfigdirs="$noconfigdirs target-libgloss"
3544 # If we are not using a cross compiler, do configure newlib.
3545 # Note however, that newlib will only be configured in this situation
3546 # if the --with-newlib option has been given, because otherwise
3547 # 'target-newlib' will appear in skipdirs.
3549 i[3456789]86-w64-mingw*)
3550 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3552 i[3456789]86-*-mingw*)
3553 target_configdirs="$target_configdirs target-winsup"
3554 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3557 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3560 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3561 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3562 # always build newlib if winsup directory is present.
3563 if test -d "$srcdir/winsup/cygwin"; then
3564 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3565 elif test -d "$srcdir/newlib"; then
3566 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3569 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3570 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3573 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3575 i[3456789]86-*-sco3.2v5*)
3576 # The linker does not yet know about weak symbols in COFF,
3577 # and is not configured to handle mixed ELF and COFF.
3578 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3580 i[3456789]86-*-sco*)
3581 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3583 i[3456789]86-*-solaris2*)
3584 noconfigdirs="$noconfigdirs target-libgloss"
3586 i[3456789]86-*-sysv4*)
3587 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3589 i[3456789]86-*-beos*)
3590 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3592 i[3456789]86-*-rdos*)
3593 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3596 noconfigdirs="$noconfigdirs ${libgcj}"
3598 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3599 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3600 libgloss_dir=m68hc11
3603 noconfigdirs="$noconfigdirs ${libgcj}"
3606 noconfigdirs="$noconfigdirs ${libgcj}"
3608 m68*-*-* | fido-*-*)
3612 # The EPOC C++ environment does not support exceptions or rtti,
3613 # and so building libstdc++-v3 tends not to always work.
3614 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3617 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3618 unsupported_languages="$unsupported_languages fortran java"
3621 noconfigdirs="$noconfigdirs ${libgcj}"
3624 noconfigdirs="$noconfigdirs ${libgcj}"
3627 noconfigdirs="$noconfigdirs sim"
3630 # copied from rs6000-*-* entry
3631 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3633 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3634 target_configdirs="$target_configdirs target-winsup"
3635 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3636 # always build newlib.
3637 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3639 # This is temporary until we can link against shared libraries
3640 powerpcle-*-solaris*)
3641 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3645 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3648 noconfigdirs="$noconfigdirs ${libgcj}"
3651 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3655 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3658 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3661 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3664 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3667 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
3670 skipdirs="$skipdirs target-libiberty"
3671 noconfigdirs="$noconfigdirs ${libgcj}"
3672 if test x$with_newlib = xyes; then
3673 noconfigdirs="$noconfigdirs gprof"
3678 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3681 # Linking libjava exceeds command-line length limits on at least
3682 # IRIX 6.2, but not on IRIX 6.5.
3683 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3684 # <oldham@codesourcery.com>
3685 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3688 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3691 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3694 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3698 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3702 i[3456789]86-*-vsta) ;; # don't add gprof back in
3703 i[3456789]86-*-go32*) ;; # don't add gprof back in
3704 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3705 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3709 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3711 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3714 sparclet-*-aout* | sparc86x-*-*)
3718 noconfigdirs="$noconfigdirs ${libgcj}"
3721 noconfigdirs="$noconfigdirs ${libgcj}"
3725 noconfigdirs="$noconfigdirs ${libgcj}"
3729 noconfigdirs="$noconfigdirs ${libgcj}"
3730 if test x${is_cross_compiler} != xno ; then
3731 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3736 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3737 noconfigdirs="$noconfigdirs ${libgcj}"
3739 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3742 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3745 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3748 noconfigdirs="$noconfigdirs ${libgcj}"
3751 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3754 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3757 noconfigdirs="$noconfigdirs ${libgcj}"
3760 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3762 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3763 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3766 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3769 noconfigdirs="$noconfigdirs ${libgcj}"
3773 # If we aren't building newlib, then don't build libgloss, since libgloss
3774 # depends upon some newlib header files.
3775 case "${noconfigdirs}" in
3776 *target-libgloss*) ;;
3777 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3780 # Work in distributions that contain no compiler tools, like Autoconf.
3782 host_makefile_frag=/dev/null
3783 if test -d ${srcdir}/config ; then
3786 # Avoid "too much defining" errors from HPUX compiler.
3787 tentative_cc="cc -Wp,-H256000"
3788 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3789 # If it's HP/UX ar, this should be harmless.
3793 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3796 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3797 # chokes on bfd, the compiler won't let you assign integers to enums, and
3798 # other problems. Defining CC to gcc is a questionable way to say "don't use
3799 # the apollo compiler" (the preferred version of GCC could be called cc,
3800 # or whatever), but I'm not sure leaving CC as cc is any better...
3801 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3802 # Used to have BISON=yacc.
3806 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3809 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3810 tentative_cc="cc -Xa"
3811 host_makefile_frag="config/mh-cxux"
3813 m88k-motorola-sysv*)
3816 tentative_cc="cc -Wf,-XNg1000"
3817 host_makefile_frag="config/mh-decstation"
3820 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3821 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3822 host_makefile_frag="config/mh-necv4"
3825 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3826 # environment. Also bump switch table size so that cp-parse will
3827 # compile. Bump string length limit so linker builds.
3828 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3831 host_makefile_frag="config/mh-sysv4"
3834 # This is for a MIPS running RISC/os 4.52C.
3836 # This is needed for GDB, but needs to be in the top-level make because
3837 # if a library is compiled with the bsd headers and gets linked with the
3838 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3839 # a different size).
3840 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3841 # known except to select the sysv environment. Could we use /proc instead?
3842 # These "sysv environments" and "bsd environments" often end up being a pain.
3844 # This is not part of CFLAGS because perhaps not all C compilers have this
3846 tentative_cc="cc -systype sysv"
3851 i[3456789]86-*-sysv5*)
3852 host_makefile_frag="config/mh-sysv5"
3854 i[3456789]86-*-dgux*)
3855 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3856 host_makefile_frag="config/mh-dgux386"
3858 i[3456789]86-ncr-sysv4.3*)
3859 # The MetaWare compiler will generate a copyright message unless you
3860 # turn it off by adding the -Hnocopyr flag.
3861 tentative_cc="cc -Hnocopyr"
3863 i[3456789]86-ncr-sysv4*)
3864 # for an NCR 3000 (i486/SVR4) system.
3865 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3866 # This compiler not only emits obnoxious copyright messages every time
3867 # you run it, but it chokes and dies on a whole bunch of GNU source
3868 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3869 tentative_cc="/usr/ccs/ATT/cc"
3870 host_makefile_frag="config/mh-ncr3000"
3872 i[3456789]86-*-sco3.2v5*)
3874 i[3456789]86-*-sco*)
3875 # The native C compiler botches some simple uses of const. Unfortunately,
3876 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3877 tentative_cc="cc -Dconst="
3878 host_makefile_frag="config/mh-sco"
3880 i[3456789]86-*-udk*)
3881 host_makefile_frag="config/mh-sysv5"
3883 i[3456789]86-*-solaris2*)
3884 host_makefile_frag="config/mh-sysv4"
3886 i[3456789]86-*-msdosdjgpp*)
3887 host_makefile_frag="config/mh-djgpp"
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3892 $as_echo_n "checking to see if cat works as expected... " >&6; }
3893 echo a >cygwin-cat-check
3894 if test `cat cygwin-cat-check` = a ; then
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3897 $as_echo "yes" >&6; }
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 $as_echo "no" >&6; }
3902 as_fn_error "The cat command does not ignore carriage return characters.
3903 Please either mount the build directory in binary mode or run the following
3904 commands before running any configure script:
3910 host_makefile_frag="config/mh-cygwin"
3913 host_makefile_frag="config/mh-mingw"
3916 host_makefile_frag="config/mh-interix"
3919 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3923 host_makefile_frag="config/mh-solaris"
3926 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3927 # without overflowing the jump tables (-J says to use a 32 bit table)
3928 tentative_cc="cc -J"
3931 tentative_cc="cc -Wp,-H256000"
3932 host_makefile_frag="config/mh-pa-hpux10"
3934 hppa*-hp-hpux* | hppa*-*-hiux*)
3935 tentative_cc="cc -Wp,-H256000"
3936 host_makefile_frag="config/mh-pa"
3939 host_makefile_frag="config/mh-pa"
3941 *-hp-hpux* | *-*-hiux*)
3942 tentative_cc="cc -Wp,-H256000"
3945 # /bin/cc is less than useful for our purposes. Always use GCC
3946 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3947 host_makefile_frag="config/mh-lynxrs6k"
3950 host_makefile_frag="config/mh-ppc-darwin"
3953 host_makefile_frag="config/mh-ppc-aix"
3956 host_makefile_frag="config/mh-ppc-aix"
3959 # /bin/cc is less than useful for our purposes. Always use GCC
3960 tentative_cc="/bin/gcc"
3963 host_makefile_frag="config/mh-sysv4"
3965 # This is placed last to prevent interfering with the cases above.
3967 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3968 host_makefile_frag="config/mh-x86omitfp"
3973 # If we aren't going to be using gcc, see if we can extract a definition
3974 # of CC from the fragment.
3975 # Actually, use the 'pre-extracted' version above.
3976 if test -z "${CC}" && test "${build}" = "${host}" ; then
3977 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3979 for dir in $PATH; do
3980 test -z "$dir" && dir=.
3981 if test -f $dir/gcc; then
3987 if test -z "${found}" && test -n "${tentative_cc}" ; then
3992 if test "${build}" != "${host}" ; then
3993 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3994 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3995 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3996 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3997 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3998 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3999 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4000 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4001 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4002 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4003 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4004 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4006 AR_FOR_BUILD="\$(AR)"
4007 AS_FOR_BUILD="\$(AS)"
4008 CC_FOR_BUILD="\$(CC)"
4009 CXX_FOR_BUILD="\$(CXX)"
4010 GCJ_FOR_BUILD="\$(GCJ)"
4011 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4012 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4013 LD_FOR_BUILD="\$(LD)"
4014 NM_FOR_BUILD="\$(NM)"
4015 RANLIB_FOR_BUILD="\$(RANLIB)"
4016 WINDRES_FOR_BUILD="\$(WINDRES)"
4017 WINDMC_FOR_BUILD="\$(WINDMC)"
4021 ac_cpp='$CPP $CPPFLAGS'
4022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025 if test -n "$ac_tool_prefix"; then
4026 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4027 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029 $as_echo_n "checking for $ac_word... " >&6; }
4030 if test "${ac_cv_prog_CC+set}" = set; then :
4031 $as_echo_n "(cached) " >&6
4033 if test -n "$CC"; then
4034 ac_cv_prog_CC="$CC" # Let the user override the test.
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 test -z "$as_dir" && as_dir=.
4041 for ac_exec_ext in '' $ac_executable_extensions; do
4042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4043 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 if test -n "$CC"; then
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4056 $as_echo "$CC" >&6; }
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 $as_echo "no" >&6; }
4064 if test -z "$ac_cv_prog_CC"; then
4066 # Extract the first word of "gcc", so it can be a program name with args.
4067 set dummy gcc; ac_word=$2
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 $as_echo_n "checking for $ac_word... " >&6; }
4070 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4071 $as_echo_n "(cached) " >&6
4073 if test -n "$ac_ct_CC"; then
4074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 test -z "$as_dir" && as_dir=.
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4083 ac_cv_prog_ac_ct_CC="gcc"
4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4094 if test -n "$ac_ct_CC"; then
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4096 $as_echo "$ac_ct_CC" >&6; }
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 $as_echo "no" >&6; }
4102 if test "x$ac_ct_CC" = x; then
4105 case $cross_compiling:$ac_tool_warned in
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4109 ac_tool_warned=yes ;;
4117 if test -z "$CC"; then
4118 if test -n "$ac_tool_prefix"; then
4119 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4120 set dummy ${ac_tool_prefix}cc; ac_word=$2
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 $as_echo_n "checking for $ac_word... " >&6; }
4123 if test "${ac_cv_prog_CC+set}" = set; then :
4124 $as_echo_n "(cached) " >&6
4126 if test -n "$CC"; then
4127 ac_cv_prog_CC="$CC" # Let the user override the test.
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4136 ac_cv_prog_CC="${ac_tool_prefix}cc"
4137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147 if test -n "$CC"; then
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4149 $as_echo "$CC" >&6; }
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 $as_echo "no" >&6; }
4158 if test -z "$CC"; then
4159 # Extract the first word of "cc", so it can be a program name with args.
4160 set dummy cc; ac_word=$2
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162 $as_echo_n "checking for $ac_word... " >&6; }
4163 if test "${ac_cv_prog_CC+set}" = set; then :
4164 $as_echo_n "(cached) " >&6
4166 if test -n "$CC"; then
4167 ac_cv_prog_CC="$CC" # Let the user override the test.
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4178 ac_prog_rejected=yes
4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 if test $ac_prog_rejected = yes; then
4190 # We found a bogon in the path, so make sure we never use it.
4191 set dummy $ac_cv_prog_CC
4193 if test $# != 0; then
4194 # We chose a different compiler from the bogus one.
4195 # However, it has the same basename, so the bogon will be chosen
4196 # first if we set CC to just the basename; use the full file name.
4198 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4204 if test -n "$CC"; then
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4206 $as_echo "$CC" >&6; }
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 $as_echo "no" >&6; }
4214 if test -z "$CC"; then
4215 if test -n "$ac_tool_prefix"; then
4216 for ac_prog in cl.exe
4218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if test "${ac_cv_prog_CC+set}" = set; then :
4223 $as_echo_n "(cached) " >&6
4225 if test -n "$CC"; then
4226 ac_cv_prog_CC="$CC" # Let the user override the test.
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4235 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 if test -n "$CC"; then
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4248 $as_echo "$CC" >&6; }
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4255 test -n "$CC" && break
4258 if test -z "$CC"; then
4260 for ac_prog in cl.exe
4262 # Extract the first word of "$ac_prog", so it can be a program name with args.
4263 set dummy $ac_prog; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4267 $as_echo_n "(cached) " >&6
4269 if test -n "$ac_ct_CC"; then
4270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279 ac_cv_prog_ac_ct_CC="$ac_prog"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4290 if test -n "$ac_ct_CC"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4292 $as_echo "$ac_ct_CC" >&6; }
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4299 test -n "$ac_ct_CC" && break
4302 if test "x$ac_ct_CC" = x; then
4305 case $cross_compiling:$ac_tool_warned in
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4309 ac_tool_warned=yes ;;
4318 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320 as_fn_error "no acceptable C compiler found in \$PATH
4321 See \`config.log' for more details." "$LINENO" 5; }
4323 # Provide some information about the compiler.
4324 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4327 for ac_option in --version -v -V -qversion; do
4328 { { ac_try="$ac_compiler $ac_option >&5"
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334 $as_echo "$ac_try_echo"; } >&5
4335 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4337 if test -s conftest.err; then
4339 ... rest of stderr output deleted ...
4340 10q' conftest.err >conftest.er1
4341 cat conftest.er1 >&5
4342 rm -f conftest.er1 conftest.err
4344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4345 test $ac_status = 0; }
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4359 ac_clean_files_save=$ac_clean_files
4360 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4361 # Try to create an executable without -o first, disregard a.out.
4362 # It will help us diagnose broken compilers, and finding out an intuition
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4365 $as_echo_n "checking for C compiler default output file name... " >&6; }
4366 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4368 # The possible output files:
4369 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4372 for ac_file in $ac_files
4375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4376 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4381 if { { ac_try="$ac_link_default"
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4387 $as_echo "$ac_try_echo"; } >&5
4388 (eval "$ac_link_default") 2>&5
4390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4391 test $ac_status = 0; }; then :
4392 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4393 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4394 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4395 # so that the user can short-circuit this test for compilers unknown to
4397 for ac_file in $ac_files ''
4399 test -f "$ac_file" || continue
4401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4404 # We found the default executable, but exeext='' is most
4408 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4410 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4412 # We set ac_cv_exeext here because the later test for it is not
4413 # safe: cross compilers may not add the suffix if given an `-o'
4414 # argument, so we may need to know it at that point already.
4415 # Even if this section looks crufty: it has the advantage of
4422 test "$ac_cv_exeext" = no && ac_cv_exeext=
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4428 $as_echo "$ac_file" >&6; }
4429 if test -z "$ac_file"; then :
4430 $as_echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 { as_fn_set_status 77
4436 as_fn_error "C compiler cannot create executables
4437 See \`config.log' for more details." "$LINENO" 5; }; }
4439 ac_exeext=$ac_cv_exeext
4441 # Check that the compiler produces executables we can run. If not, either
4442 # the compiler is broken, or we cross compile.
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4444 $as_echo_n "checking whether the C compiler works... " >&6; }
4445 # If not cross compiling, check that we can run a simple program.
4446 if test "$cross_compiling" != yes; then
4447 if { ac_try='./$ac_file'
4448 { { case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4453 $as_echo "$ac_try_echo"; } >&5
4454 (eval "$ac_try") 2>&5
4456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457 test $ac_status = 0; }; }; then
4460 if test "$cross_compiling" = maybe; then
4463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4465 as_fn_error "cannot run C compiled programs.
4466 If you meant to cross compile, use \`--host'.
4467 See \`config.log' for more details." "$LINENO" 5; }
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4472 $as_echo "yes" >&6; }
4474 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4475 ac_clean_files=$ac_clean_files_save
4476 # Check that the compiler produces executables we can run. If not, either
4477 # the compiler is broken, or we cross compile.
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4479 $as_echo_n "checking whether we are cross compiling... " >&6; }
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4481 $as_echo "$cross_compiling" >&6; }
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4484 $as_echo_n "checking for suffix of executables... " >&6; }
4485 if { { ac_try="$ac_link"
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4491 $as_echo "$ac_try_echo"; } >&5
4492 (eval "$ac_link") 2>&5
4494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4495 test $ac_status = 0; }; then :
4496 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4497 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4498 # work properly (i.e., refer to `conftest.exe'), while it won't with
4500 for ac_file in conftest.exe conftest conftest.*; do
4501 test -f "$ac_file" || continue
4503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4504 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4512 as_fn_error "cannot compute suffix of executables: cannot compile and link
4513 See \`config.log' for more details." "$LINENO" 5; }
4515 rm -f conftest$ac_cv_exeext
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4517 $as_echo "$ac_cv_exeext" >&6; }
4519 rm -f conftest.$ac_ext
4520 EXEEXT=$ac_cv_exeext
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4523 $as_echo_n "checking for suffix of object files... " >&6; }
4524 if test "${ac_cv_objext+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4538 rm -f conftest.o conftest.obj
4539 if { { ac_try="$ac_compile"
4541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542 *) ac_try_echo=$ac_try;;
4544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4545 $as_echo "$ac_try_echo"; } >&5
4546 (eval "$ac_compile") 2>&5
4548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4549 test $ac_status = 0; }; then :
4550 for ac_file in conftest.o conftest.obj conftest.*; do
4551 test -f "$ac_file" || continue;
4553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4554 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4559 $as_echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4564 as_fn_error "cannot compute suffix of object files: cannot compile
4565 See \`config.log' for more details." "$LINENO" 5; }
4567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4570 $as_echo "$ac_cv_objext" >&6; }
4571 OBJEXT=$ac_cv_objext
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4574 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4575 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4576 $as_echo_n "(cached) " >&6
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4592 if ac_fn_c_try_compile "$LINENO"; then :
4597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4598 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4602 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4603 if test $ac_compiler_gnu = yes; then
4608 ac_test_CFLAGS=${CFLAGS+set}
4609 ac_save_CFLAGS=$CFLAGS
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4611 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4612 if test "${ac_cv_prog_cc_g+set}" = set; then :
4613 $as_echo_n "(cached) " >&6
4615 ac_save_c_werror_flag=$ac_c_werror_flag
4616 ac_c_werror_flag=yes
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4630 if ac_fn_c_try_compile "$LINENO"; then :
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635 /* end confdefs.h. */
4645 if ac_fn_c_try_compile "$LINENO"; then :
4648 ac_c_werror_flag=$ac_save_c_werror_flag
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4661 if ac_fn_c_try_compile "$LINENO"; then :
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 ac_c_werror_flag=$ac_save_c_werror_flag
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4672 $as_echo "$ac_cv_prog_cc_g" >&6; }
4673 if test "$ac_test_CFLAGS" = set; then
4674 CFLAGS=$ac_save_CFLAGS
4675 elif test $ac_cv_prog_cc_g = yes; then
4676 if test "$GCC" = yes; then
4682 if test "$GCC" = yes; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4689 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4690 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4691 $as_echo_n "(cached) " >&6
4693 ac_cv_prog_cc_c89=no
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4699 #include <sys/types.h>
4700 #include <sys/stat.h>
4701 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4702 struct buf { int x; };
4703 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4704 static char *e (p, i)
4710 static char *f (char * (*g) (char **, int), char **p, ...)
4715 s = g (p, va_arg (v,int));
4720 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4721 function prototypes and stuff, but not '\xHH' hex character constants.
4722 These don't provoke an error unfortunately, instead are silently treated
4723 as 'x'. The following induces an error, until -std is added to get
4724 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4725 array size at least. It's necessary to write '\x00'==0 to get something
4726 that's true only with -std. */
4727 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4729 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4730 inside strings and character constants. */
4732 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4734 int test (int i, double x);
4735 struct s1 {int (*f) (int a);};
4736 struct s2 {int (*f) (double a);};
4737 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4743 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4748 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4749 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4751 CC="$ac_save_CC $ac_arg"
4752 if ac_fn_c_try_compile "$LINENO"; then :
4753 ac_cv_prog_cc_c89=$ac_arg
4755 rm -f core conftest.err conftest.$ac_objext
4756 test "x$ac_cv_prog_cc_c89" != "xno" && break
4758 rm -f conftest.$ac_ext
4763 case "x$ac_cv_prog_cc_c89" in
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4766 $as_echo "none needed" >&6; } ;;
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4769 $as_echo "unsupported" >&6; } ;;
4771 CC="$CC $ac_cv_prog_cc_c89"
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4773 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4775 if test "x$ac_cv_prog_cc_c89" != xno; then :
4780 ac_cpp='$CPP $CPPFLAGS'
4781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4786 ac_cpp='$CXXCPP $CPPFLAGS'
4787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4790 if test -z "$CXX"; then
4791 if test -n "$CCC"; then
4794 if test -n "$ac_tool_prefix"; then
4795 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if test "${ac_cv_prog_CXX+set}" = set; then :
4802 $as_echo_n "(cached) " >&6
4804 if test -n "$CXX"; then
4805 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4814 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 if test -n "$CXX"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4827 $as_echo "$CXX" >&6; }
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4834 test -n "$CXX" && break
4837 if test -z "$CXX"; then
4839 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4841 # Extract the first word of "$ac_prog", so it can be a program name with args.
4842 set dummy $ac_prog; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4846 $as_echo_n "(cached) " >&6
4848 if test -n "$ac_ct_CXX"; then
4849 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858 ac_cv_prog_ac_ct_CXX="$ac_prog"
4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4869 if test -n "$ac_ct_CXX"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4871 $as_echo "$ac_ct_CXX" >&6; }
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4878 test -n "$ac_ct_CXX" && break
4881 if test "x$ac_ct_CXX" = x; then
4884 case $cross_compiling:$ac_tool_warned in
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888 ac_tool_warned=yes ;;
4896 # Provide some information about the compiler.
4897 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4900 for ac_option in --version -v -V -qversion; do
4901 { { ac_try="$ac_compiler $ac_option >&5"
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4907 $as_echo "$ac_try_echo"; } >&5
4908 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4910 if test -s conftest.err; then
4912 ... rest of stderr output deleted ...
4913 10q' conftest.err >conftest.er1
4914 cat conftest.er1 >&5
4915 rm -f conftest.er1 conftest.err
4917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4918 test $ac_status = 0; }
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4922 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4923 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4924 $as_echo_n "(cached) " >&6
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4940 if ac_fn_cxx_try_compile "$LINENO"; then :
4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4950 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4951 if test $ac_compiler_gnu = yes; then
4956 ac_test_CXXFLAGS=${CXXFLAGS+set}
4957 ac_save_CXXFLAGS=$CXXFLAGS
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4959 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4960 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4961 $as_echo_n "(cached) " >&6
4963 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4964 ac_cxx_werror_flag=yes
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4978 if ac_fn_cxx_try_compile "$LINENO"; then :
4979 ac_cv_prog_cxx_g=yes
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4993 if ac_fn_cxx_try_compile "$LINENO"; then :
4996 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5009 if ac_fn_cxx_try_compile "$LINENO"; then :
5010 ac_cv_prog_cxx_g=yes
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5020 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5021 if test "$ac_test_CXXFLAGS" = set; then
5022 CXXFLAGS=$ac_save_CXXFLAGS
5023 elif test $ac_cv_prog_cxx_g = yes; then
5024 if test "$GXX" = yes; then
5030 if test "$GXX" = yes; then
5037 ac_cpp='$CPP $CPPFLAGS'
5038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5043 # We must set the default linker to the linker used by gcc for the correct
5044 # operation of libtool. If LD is not defined and we are using gcc, try to
5045 # set the LD default to the ld used by gcc.
5046 if test -z "$LD"; then
5047 if test "$GCC" = yes; then
5050 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5052 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5054 case $gcc_prog_ld in
5055 # Accept absolute paths.
5056 [\\/]* | [A-Za-z]:[\\/]*)
5057 LD="$gcc_prog_ld" ;;
5065 if test -n "$ac_tool_prefix"; then
5066 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5067 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5071 $as_echo_n "(cached) " >&6
5073 if test -n "$GNATBIND"; then
5074 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5083 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 GNATBIND=$ac_cv_prog_GNATBIND
5094 if test -n "$GNATBIND"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5096 $as_echo "$GNATBIND" >&6; }
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5104 if test -z "$ac_cv_prog_GNATBIND"; then
5105 ac_ct_GNATBIND=$GNATBIND
5106 # Extract the first word of "gnatbind", so it can be a program name with args.
5107 set dummy gnatbind; ac_word=$2
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5111 $as_echo_n "(cached) " >&6
5113 if test -n "$ac_ct_GNATBIND"; then
5114 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5123 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5134 if test -n "$ac_ct_GNATBIND"; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5136 $as_echo "$ac_ct_GNATBIND" >&6; }
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139 $as_echo "no" >&6; }
5142 if test "x$ac_ct_GNATBIND" = x; then
5145 case $cross_compiling:$ac_tool_warned in
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5149 ac_tool_warned=yes ;;
5151 GNATBIND=$ac_ct_GNATBIND
5154 GNATBIND="$ac_cv_prog_GNATBIND"
5157 if test -n "$ac_tool_prefix"; then
5158 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5159 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5163 $as_echo_n "(cached) " >&6
5165 if test -n "$GNATMAKE"; then
5166 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 GNATMAKE=$ac_cv_prog_GNATMAKE
5186 if test -n "$GNATMAKE"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5188 $as_echo "$GNATMAKE" >&6; }
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5196 if test -z "$ac_cv_prog_GNATMAKE"; then
5197 ac_ct_GNATMAKE=$GNATMAKE
5198 # Extract the first word of "gnatmake", so it can be a program name with args.
5199 set dummy gnatmake; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5203 $as_echo_n "(cached) " >&6
5205 if test -n "$ac_ct_GNATMAKE"; then
5206 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5226 if test -n "$ac_ct_GNATMAKE"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5228 $as_echo "$ac_ct_GNATMAKE" >&6; }
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5234 if test "x$ac_ct_GNATMAKE" = x; then
5237 case $cross_compiling:$ac_tool_warned in
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5241 ac_tool_warned=yes ;;
5243 GNATMAKE=$ac_ct_GNATMAKE
5246 GNATMAKE="$ac_cv_prog_GNATMAKE"
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5250 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5251 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5252 $as_echo_n "(cached) " >&6
5254 cat >conftest.adb <<EOF
5255 procedure conftest is begin null; end conftest;
5257 acx_cv_cc_gcc_supports_ada=no
5258 # There is a bug in old released versions of GCC which causes the
5259 # driver to exit successfully when the appropriate language module
5260 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5261 # Therefore we must check for the error message as well as an
5262 # unsuccessful exit.
5263 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5264 # given a .adb file, but produce no object file. So we must check
5265 # if an object file was really produced to guard against this.
5266 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5267 if test x"$errors" = x && test -f conftest.$ac_objext; then
5268 acx_cv_cc_gcc_supports_ada=yes
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5273 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5275 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5282 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5283 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5284 $as_echo_n "(cached) " >&6
5288 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5289 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5290 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5293 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5296 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5297 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5300 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5307 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5308 do_compare="$gcc_cv_prog_cmp_skip"
5312 # See if we are building gcc with C++.
5313 # Check whether --enable-build-with-cxx was given.
5314 if test "${enable_build_with_cxx+set}" = set; then :
5315 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5317 ENABLE_BUILD_WITH_CXX=no
5321 # Used for setting $lt_cv_objdir
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5323 $as_echo_n "checking for objdir... " >&6; }
5324 if test "${lt_cv_objdir+set}" = set; then :
5325 $as_echo_n "(cached) " >&6
5327 rm -f .libs 2>/dev/null
5328 mkdir .libs 2>/dev/null
5329 if test -d .libs; then
5332 # MS-DOS does not allow filenames that begin with a dot.
5335 rmdir .libs 2>/dev/null
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5338 $as_echo "$lt_cv_objdir" >&6; }
5339 objdir=$lt_cv_objdir
5345 cat >>confdefs.h <<_ACEOF
5346 #define LT_OBJDIR "$lt_cv_objdir/"
5351 # Check for GMP, MPFR and MPC
5352 gmplibs="-lmpc -lmpfr -lgmp"
5356 # Specify a location for mpc
5357 # check for this first so it ends up on the link line before mpfr.
5359 # Check whether --with-mpc was given.
5360 if test "${with_mpc+set}" = set; then :
5365 # Check whether --with-mpc_include was given.
5366 if test "${with_mpc_include+set}" = set; then :
5367 withval=$with_mpc_include;
5371 # Check whether --with-mpc_lib was given.
5372 if test "${with_mpc_lib+set}" = set; then :
5373 withval=$with_mpc_lib;
5377 if test "x$with_mpc" != x; then
5378 gmplibs="-L$with_mpc/lib $gmplibs"
5379 gmpinc="-I$with_mpc/include $gmpinc"
5381 if test "x$with_mpc_include" != x; then
5382 gmpinc="-I$with_mpc_include $gmpinc"
5384 if test "x$with_mpc_lib" != x; then
5385 gmplibs="-L$with_mpc_lib $gmplibs"
5387 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5388 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5389 gmpinc='-I$$s/mpc/src '"$gmpinc"
5390 # Do not test the mpc version. Assume that it is sufficient, since
5391 # it is in the source tree, and the library has not been built yet
5392 # but it would be included on the link line in the version check below
5393 # hence making the test fail.
5397 # Specify a location for mpfr
5398 # check for this first so it ends up on the link line before gmp.
5400 # Check whether --with-mpfr-dir was given.
5401 if test "${with_mpfr_dir+set}" = set; then :
5402 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5403 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5408 # Check whether --with-mpfr was given.
5409 if test "${with_mpfr+set}" = set; then :
5414 # Check whether --with-mpfr_include was given.
5415 if test "${with_mpfr_include+set}" = set; then :
5416 withval=$with_mpfr_include;
5420 # Check whether --with-mpfr_lib was given.
5421 if test "${with_mpfr_lib+set}" = set; then :
5422 withval=$with_mpfr_lib;
5426 if test "x$with_mpfr" != x; then
5427 gmplibs="-L$with_mpfr/lib $gmplibs"
5428 gmpinc="-I$with_mpfr/include $gmpinc"
5430 if test "x$with_mpfr_include" != x; then
5431 gmpinc="-I$with_mpfr_include $gmpinc"
5433 if test "x$with_mpfr_lib" != x; then
5434 gmplibs="-L$with_mpfr_lib $gmplibs"
5436 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5437 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5438 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5439 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5440 # Do not test the mpfr version. Assume that it is sufficient, since
5441 # it is in the source tree, and the library has not been built yet
5442 # but it would be included on the link line in the version check below
5443 # hence making the test fail.
5447 # Specify a location for gmp
5449 # Check whether --with-gmp-dir was given.
5450 if test "${with_gmp_dir+set}" = set; then :
5451 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5452 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5457 # Check whether --with-gmp was given.
5458 if test "${with_gmp+set}" = set; then :
5463 # Check whether --with-gmp_include was given.
5464 if test "${with_gmp_include+set}" = set; then :
5465 withval=$with_gmp_include;
5469 # Check whether --with-gmp_lib was given.
5470 if test "${with_gmp_lib+set}" = set; then :
5471 withval=$with_gmp_lib;
5476 if test "x$with_gmp" != x; then
5477 gmplibs="-L$with_gmp/lib $gmplibs"
5478 gmpinc="-I$with_gmp/include $gmpinc"
5480 if test "x$with_gmp_include" != x; then
5481 gmpinc="-I$with_gmp_include $gmpinc"
5483 if test "x$with_gmp_lib" != x; then
5484 gmplibs="-L$with_gmp_lib $gmplibs"
5486 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5487 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5488 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5489 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5490 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5491 # Do not test the gmp version. Assume that it is sufficient, since
5492 # it is in the source tree, and the library has not been built yet
5493 # but it would be included on the link line in the version check below
5494 # hence making the test fail.
5498 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5500 saved_CFLAGS="$CFLAGS"
5501 CFLAGS="$CFLAGS $gmpinc"
5502 # Check for the recommended and required versions of GMP.
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5504 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5513 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5514 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5515 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5523 if ac_fn_c_try_compile "$LINENO"; then :
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5531 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5532 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5533 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5541 if ac_fn_c_try_compile "$LINENO"; then :
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5543 $as_echo "yes" >&6; }
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5546 $as_echo "buggy but acceptable" >&6; }
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }; have_gmp=no
5553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555 # If we have GMP, check the MPFR version.
5556 if test x"$have_gmp" = xyes; then
5557 # Check for the recommended and required versions of MPFR.
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5559 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5568 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5576 if ac_fn_c_try_compile "$LINENO"; then :
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5585 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5593 if ac_fn_c_try_compile "$LINENO"; then :
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5595 $as_echo "yes" >&6; }
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5598 $as_echo "buggy but acceptable" >&6; }
5600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }; have_gmp=no
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608 # Check for the MPC header version.
5609 if test x"$have_gmp" = xyes ; then
5610 # Check for the recommended and required versions of MPC.
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5612 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5620 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5628 if ac_fn_c_try_compile "$LINENO"; then :
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5636 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5644 if ac_fn_c_try_compile "$LINENO"; then :
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5646 $as_echo "yes" >&6; }
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5649 $as_echo "buggy but acceptable" >&6; }
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }; have_gmp=no
5656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659 # Now check the MPFR library.
5660 if test x"$have_gmp" = xyes; then
5662 LIBS="$LIBS $gmplibs"
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5664 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5678 mpfr_atan2 (n, n, x, GMP_RNDN);
5679 mpfr_erfc (n, x, GMP_RNDN);
5680 mpfr_subnormalize (x, t, GMP_RNDN);
5684 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5685 mpc_cosh (c, c, MPC_RNDNN);
5686 mpc_pow (c, c, c, MPC_RNDNN);
5687 mpc_acosh (c, c, MPC_RNDNN);
5694 if ac_fn_c_try_link "$LINENO"; then :
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5696 $as_echo "yes" >&6; }
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }; have_gmp=no
5701 rm -f core conftest.err conftest.$ac_objext \
5702 conftest$ac_exeext conftest.$ac_ext
5706 CFLAGS="$saved_CFLAGS"
5708 # The library versions listed in the error message below should match
5709 # the HARD-minimums enforced above.
5710 if test x$have_gmp != xyes; then
5711 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5712 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5713 their locations. Source code for these libraries can be found at
5714 their respective hosting sites as well as at
5715 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5716 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5717 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5718 make sure that you have installed both the libraries and the header
5719 files. They may be located in separate packages." "$LINENO" 5
5723 # Flags needed for both GMP, MPFR and/or MPC.
5730 # Allow host libstdc++ to be specified for static linking with PPL.
5732 # Check whether --with-host-libstdcxx was given.
5733 if test "${with_host_libstdcxx+set}" = set; then :
5734 withval=$with_host_libstdcxx;
5738 case $with_host_libstdcxx in
5740 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5744 # Linker flags to use for stage1 or when not boostrapping.
5746 # Check whether --with-stage1-ldflags was given.
5747 if test "${with_stage1_ldflags+set}" = set; then :
5748 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5751 stage1_ldflags=$withval
5759 # Libraries to use for stage1 or when not bootstrapping.
5761 # Check whether --with-stage1-libs was given.
5762 if test "${with_stage1_libs+set}" = set; then :
5763 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5766 stage1_libs=$withval
5769 stage1_libs=$with_host_libstdcxx
5774 # Libraries to use for stage2 and later builds. This defaults to the
5775 # argument passed to --with-host-libstdcxx.
5777 # Check whether --with-boot-libs was given.
5778 if test "${with_boot_libs+set}" = set; then :
5779 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5782 poststage1_libs=$withval
5785 poststage1_libs=$with_host_libstdcxx
5790 # Linker flags to use for stage2 and later builds.
5792 # Check whether --with-boot-ldflags was given.
5793 if test "${with_boot_ldflags+set}" = set; then :
5794 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5797 poststage1_ldflags=$withval
5801 # With --enable-build-with-cxx, default to linking libstdc++ and
5802 # libgcc statically. But if the user explicitly specified the
5803 # libraries to use, trust that they are doing what they want.
5804 if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5805 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5812 ppllibs=" -lppl_c -lppl -lgmpxx"
5816 # Check whether --with-ppl was given.
5817 if test "${with_ppl+set}" = set; then :
5822 # Check whether --with-ppl_include was given.
5823 if test "${with_ppl_include+set}" = set; then :
5824 withval=$with_ppl_include;
5828 # Check whether --with-ppl_lib was given.
5829 if test "${with_ppl_lib+set}" = set; then :
5830 withval=$with_ppl_lib;
5841 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5842 pplinc="-I$with_ppl/include $pplinc"
5845 if test "x$with_ppl_include" != x; then
5846 pplinc="-I$with_ppl_include $pplinc"
5848 if test "x$with_ppl_lib" != x; then
5849 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5851 if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5852 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
5853 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5854 enable_ppl_version_check=no
5857 # Check whether --enable-ppl-version-check was given.
5858 if test "${enable_ppl_version_check+set}" = set; then :
5859 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
5861 ENABLE_PPL_CHECK=yes
5865 if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
5866 saved_CFLAGS="$CFLAGS"
5867 CFLAGS="$CFLAGS $pplinc $gmpinc"
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5869 $as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871 /* end confdefs.h. */
5877 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
5885 if ac_fn_c_try_compile "$LINENO"; then :
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5887 $as_echo "yes" >&6; }
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893 CFLAGS="$saved_CFLAGS"
5896 # Flags needed for PPL
5902 clooglibs=" -lcloog "
5903 clooginc=" -DCLOOG_PPL_BACKEND "
5906 # Check whether --with-cloog was given.
5907 if test "${with_cloog+set}" = set; then :
5908 withval=$with_cloog;
5912 # Check whether --with-cloog_include was given.
5913 if test "${with_cloog_include+set}" = set; then :
5914 withval=$with_cloog_include;
5918 # Check whether --with-cloog_lib was given.
5919 if test "${with_cloog_lib+set}" = set; then :
5920 withval=$with_cloog_lib;
5924 if test "x$with_ppl" = "xno"; then
5936 clooglibs="-L$with_cloog/lib -lcloog"
5937 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
5940 if test "x$with_cloog_include" != x; then
5941 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5943 if test "x$with_cloog_lib" != x; then
5944 clooglibs="-L$with_cloog_lib -lcloog"
5946 if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5947 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' -lcloog '
5948 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5949 enable_cloog_version_check=no
5952 # Check whether --enable-cloog-version-check was given.
5953 if test "${enable_cloog_version_check+set}" = set; then :
5954 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5956 ENABLE_CLOOG_CHECK=yes
5960 if test "x$with_cloog" != "xno" -a "${ENABLE_CLOOG_CHECK}" = "yes"; then
5961 saved_CFLAGS="$CFLAGS"
5962 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5964 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5967 #include "cloog/cloog.h"
5972 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 5
5980 if ac_fn_c_try_compile "$LINENO"; then :
5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5983 #include "cloog/cloog.h"
5988 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 9
5996 if ac_fn_c_try_compile "$LINENO"; then :
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5998 $as_echo "yes" >&6; }
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6001 $as_echo "buggy but acceptable" >&6; }
6003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }; clooglibs= ; clooginc=
6008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6009 CFLAGS="$saved_CFLAGS"
6012 # Flags needed for CLOOG
6016 # Check for LTO support.
6017 # Check whether --enable-lto was given.
6018 if test "${enable_lto+set}" = set; then :
6019 enableval=$enable_lto; enable_lto=$enableval
6021 enable_lto=yes; default_enable_lto=yes
6027 ac_cpp='$CPP $CPPFLAGS'
6028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6032 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6033 # On Suns, sometimes $CPP names a directory.
6034 if test -n "$CPP" && test -d "$CPP"; then
6037 if test -z "$CPP"; then
6038 if test "${ac_cv_prog_CPP+set}" = set; then :
6039 $as_echo_n "(cached) " >&6
6041 # Double quotes because CPP needs to be expanded
6042 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6045 for ac_c_preproc_warn_flag in '' yes
6047 # Use a header file that comes with gcc, so configuring glibc
6048 # with a fresh cross-compiler works.
6049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6050 # <limits.h> exists even on freestanding compilers.
6051 # On the NeXT, cc -E runs the code through the compiler's parser,
6052 # not just through cpp. "Syntax error" is here to catch this case.
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6056 # include <limits.h>
6058 # include <assert.h>
6062 if ac_fn_c_try_cpp "$LINENO"; then :
6065 # Broken: fails on valid input.
6068 rm -f conftest.err conftest.$ac_ext
6070 # OK, works on sane cases. Now check whether nonexistent headers
6071 # can be detected and how.
6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6074 #include <ac_nonexistent.h>
6076 if ac_fn_c_try_cpp "$LINENO"; then :
6077 # Broken: success on invalid input.
6080 # Passes both tests.
6084 rm -f conftest.err conftest.$ac_ext
6087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6088 rm -f conftest.err conftest.$ac_ext
6089 if $ac_preproc_ok; then :
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6102 $as_echo "$CPP" >&6; }
6104 for ac_c_preproc_warn_flag in '' yes
6106 # Use a header file that comes with gcc, so configuring glibc
6107 # with a fresh cross-compiler works.
6108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6109 # <limits.h> exists even on freestanding compilers.
6110 # On the NeXT, cc -E runs the code through the compiler's parser,
6111 # not just through cpp. "Syntax error" is here to catch this case.
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6115 # include <limits.h>
6117 # include <assert.h>
6121 if ac_fn_c_try_cpp "$LINENO"; then :
6124 # Broken: fails on valid input.
6127 rm -f conftest.err conftest.$ac_ext
6129 # OK, works on sane cases. Now check whether nonexistent headers
6130 # can be detected and how.
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6133 #include <ac_nonexistent.h>
6135 if ac_fn_c_try_cpp "$LINENO"; then :
6136 # Broken: success on invalid input.
6139 # Passes both tests.
6143 rm -f conftest.err conftest.$ac_ext
6146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6147 rm -f conftest.err conftest.$ac_ext
6148 if $ac_preproc_ok; then :
6151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6153 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6154 See \`config.log' for more details." "$LINENO" 5; }
6158 ac_cpp='$CPP $CPPFLAGS'
6159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6165 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6166 if test "${ac_cv_path_GREP+set}" = set; then :
6167 $as_echo_n "(cached) " >&6
6169 if test -z "$GREP"; then
6170 ac_path_GREP_found=false
6171 # Loop through the user's path and test for each of PROGNAME-LIST
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6176 test -z "$as_dir" && as_dir=.
6177 for ac_prog in grep ggrep; do
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6180 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6181 # Check for GNU ac_path_GREP and select it if it is found.
6182 # Check for GNU $ac_path_GREP
6183 case `"$ac_path_GREP" --version 2>&1` in
6185 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6188 $as_echo_n 0123456789 >"conftest.in"
6191 cat "conftest.in" "conftest.in" >"conftest.tmp"
6192 mv "conftest.tmp" "conftest.in"
6193 cp "conftest.in" "conftest.nl"
6194 $as_echo 'GREP' >> "conftest.nl"
6195 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6197 as_fn_arith $ac_count + 1 && ac_count=$as_val
6198 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6199 # Best one so far, save it but keep looking for a better one
6200 ac_cv_path_GREP="$ac_path_GREP"
6201 ac_path_GREP_max=$ac_count
6203 # 10*(2^10) chars as input seems more than enough
6204 test $ac_count -gt 10 && break
6206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6209 $ac_path_GREP_found && break 3
6214 if test -z "$ac_cv_path_GREP"; then
6215 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6218 ac_cv_path_GREP=$GREP
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6223 $as_echo "$ac_cv_path_GREP" >&6; }
6224 GREP="$ac_cv_path_GREP"
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6228 $as_echo_n "checking for egrep... " >&6; }
6229 if test "${ac_cv_path_EGREP+set}" = set; then :
6230 $as_echo_n "(cached) " >&6
6232 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6233 then ac_cv_path_EGREP="$GREP -E"
6235 if test -z "$EGREP"; then
6236 ac_path_EGREP_found=false
6237 # Loop through the user's path and test for each of PROGNAME-LIST
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6242 test -z "$as_dir" && as_dir=.
6243 for ac_prog in egrep; do
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6246 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6247 # Check for GNU ac_path_EGREP and select it if it is found.
6248 # Check for GNU $ac_path_EGREP
6249 case `"$ac_path_EGREP" --version 2>&1` in
6251 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6254 $as_echo_n 0123456789 >"conftest.in"
6257 cat "conftest.in" "conftest.in" >"conftest.tmp"
6258 mv "conftest.tmp" "conftest.in"
6259 cp "conftest.in" "conftest.nl"
6260 $as_echo 'EGREP' >> "conftest.nl"
6261 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6262 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6263 as_fn_arith $ac_count + 1 && ac_count=$as_val
6264 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6265 # Best one so far, save it but keep looking for a better one
6266 ac_cv_path_EGREP="$ac_path_EGREP"
6267 ac_path_EGREP_max=$ac_count
6269 # 10*(2^10) chars as input seems more than enough
6270 test $ac_count -gt 10 && break
6272 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6275 $ac_path_EGREP_found && break 3
6280 if test -z "$ac_cv_path_EGREP"; then
6281 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6284 ac_cv_path_EGREP=$EGREP
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6290 $as_echo "$ac_cv_path_EGREP" >&6; }
6291 EGREP="$ac_cv_path_EGREP"
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6295 $as_echo_n "checking for ANSI C header files... " >&6; }
6296 if test "${ac_cv_header_stdc+set}" = set; then :
6297 $as_echo_n "(cached) " >&6
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6314 if ac_fn_c_try_compile "$LINENO"; then :
6315 ac_cv_header_stdc=yes
6317 ac_cv_header_stdc=no
6319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321 if test $ac_cv_header_stdc = yes; then
6322 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6329 $EGREP "memchr" >/dev/null 2>&1; then :
6332 ac_cv_header_stdc=no
6338 if test $ac_cv_header_stdc = yes; then
6339 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6341 /* end confdefs.h. */
6345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6346 $EGREP "free" >/dev/null 2>&1; then :
6349 ac_cv_header_stdc=no
6355 if test $ac_cv_header_stdc = yes; then
6356 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6357 if test "$cross_compiling" = yes; then :
6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6364 #if ((' ' & 0x0FF) == 0x020)
6365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6368 # define ISLOWER(c) \
6369 (('a' <= (c) && (c) <= 'i') \
6370 || ('j' <= (c) && (c) <= 'r') \
6371 || ('s' <= (c) && (c) <= 'z'))
6372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6380 for (i = 0; i < 256; i++)
6381 if (XOR (islower (i), ISLOWER (i))
6382 || toupper (i) != TOUPPER (i))
6387 if ac_fn_c_try_run "$LINENO"; then :
6390 ac_cv_header_stdc=no
6392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6393 conftest.$ac_objext conftest.beam conftest.$ac_ext
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6399 $as_echo "$ac_cv_header_stdc" >&6; }
6400 if test $ac_cv_header_stdc = yes; then
6402 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6406 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6407 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6408 inttypes.h stdint.h unistd.h
6410 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6411 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6413 eval as_val=\$$as_ac_Header
6414 if test "x$as_val" = x""yes; then :
6415 cat >>confdefs.h <<_ACEOF
6416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6429 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6430 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
6431 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6439 if test $target_elf = yes; then :
6440 if test x"$enable_lto" = x"yes" ; then
6441 # Make sure that libelf.h and gelf.h are available.
6443 # Check whether --with-libelf was given.
6444 if test "${with_libelf+set}" = set; then :
6445 withval=$with_libelf;
6450 # Check whether --with-libelf_include was given.
6451 if test "${with_libelf_include+set}" = set; then :
6452 withval=$with_libelf_include;
6457 # Check whether --with-libelf_lib was given.
6458 if test "${with_libelf_lib+set}" = set; then :
6459 withval=$with_libelf_lib;
6463 saved_CFLAGS="$CFLAGS"
6464 saved_CPPFLAGS="$CPPFLAGS"
6467 case $with_libelf in
6470 libelfinc="-I/usr/include/libelf"
6473 libelflibs="-L$with_libelf/lib -lelf"
6474 libelfinc="-I$with_libelf/include -I$with_libelf/include/libelf"
6475 LIBS="$libelflibs $LIBS"
6479 if test "x$with_libelf_include" != x; then
6480 libelfinc="-I$with_libelf_include"
6483 if test "x$with_libelf_lib" != x; then
6484 libelflibs="-L$with_libelf_lib -lelf"
6485 LIBS="$libelflibs $LIBS"
6488 if test "x$with_libelf$with_libelf_include$with_libelf_lib" = x \
6489 && test -d ${srcdir}/libelf; then
6490 libelflibs='-L$$r/$(HOST_SUBDIR)/libelf/lib -lelf '
6491 libelfinc='-D__LIBELF_INTERNAL__ -I$$r/$(HOST_SUBDIR)/libelf/lib -I$$s/libelf/lib'
6492 LIBS="$libelflibs $LIBS"
6496 CFLAGS="$CFLAGS $libelfinc"
6497 CPPFLAGS="$CPPFLAGS $libelfinc"
6498 LIBS="$LIBS $libelflibs"
6500 for ac_header in libelf.h
6502 ac_fn_c_check_header_mongrel "$LINENO" "libelf.h" "ac_cv_header_libelf_h" "$ac_includes_default"
6503 if test "x$ac_cv_header_libelf_h" = x""yes; then :
6504 cat >>confdefs.h <<_ACEOF
6505 #define HAVE_LIBELF_H 1
6512 for ac_header in gelf.h
6514 ac_fn_c_check_header_mongrel "$LINENO" "gelf.h" "ac_cv_header_gelf_h" "$ac_includes_default"
6515 if test "x$ac_cv_header_gelf_h" = x""yes; then :
6516 cat >>confdefs.h <<_ACEOF
6517 #define HAVE_GELF_H 1
6525 for ac_header in libelf/libelf.h
6527 ac_fn_c_check_header_mongrel "$LINENO" "libelf/libelf.h" "ac_cv_header_libelf_libelf_h" "$ac_includes_default"
6528 if test "x$ac_cv_header_libelf_libelf_h" = x""yes; then :
6529 cat >>confdefs.h <<_ACEOF
6530 #define HAVE_LIBELF_LIBELF_H 1
6532 have_libelf_libelf_h=yes
6537 for ac_header in libelf/gelf.h
6539 ac_fn_c_check_header_mongrel "$LINENO" "libelf/gelf.h" "ac_cv_header_libelf_gelf_h" "$ac_includes_default"
6540 if test "x$ac_cv_header_libelf_gelf_h" = x""yes; then :
6541 cat >>confdefs.h <<_ACEOF
6542 #define HAVE_LIBELF_GELF_H 1
6544 have_libelf_gelf_h=yes
6550 # If we couldn't find libelf.h and the user forced it, emit an error.
6551 if test x"$have_libelf_h" != x"yes" \
6552 && test x"$have_libelf_libelf_h" != x"yes" ; then
6553 if test x"$default_enable_lto" != x"yes" ; then
6554 as_fn_error "LTO support requires libelf.h or libelf/libelf.h." "$LINENO" 5
6562 # If we couldn't find gelf.h and the user forced it, emit an error.
6563 if test x"$have_gelf_h" != x"yes" \
6564 && test x"$have_libelf_gelf_h" != x"yes" ; then
6565 if test x"$default_enable_lto" != x"yes" ; then
6566 as_fn_error "LTO support requires gelf.h or libelf/gelf.h." "$LINENO" 5
6574 # Check that the detected libelf has the functions we need. We cannot
6575 # rely on just detecting the headers since they do not include
6576 # versioning information. Add functions, if needed.
6577 if test x"$enable_lto" = x"yes" ; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of libelf" >&5
6579 $as_echo_n "checking for the correct version of libelf... " >&6; }
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6590 elf_strptr (0, 0, 0);
6591 elf_getident (0, 0);
6592 elf_begin (0, 0, 0);
6600 if ac_fn_c_try_link "$LINENO"; then :
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6602 $as_echo "yes" >&6; };
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605 $as_echo "no" >&6; }; enable_lto=no; libelflibs= ; libelfinc=
6608 rm -f core conftest.err conftest.$ac_objext \
6609 conftest$ac_exeext conftest.$ac_ext
6611 # Check for elf_getshdrstrndx or elf_getshstrndx. The latter's flavor
6612 # is determined in gcc/configure.ac.
6613 if test x"$enable_lto" = x"yes" ; then
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx" >&5
6615 $as_echo_n "checking for elf_getshdrstrndx... " >&6; }
6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617 /* end confdefs.h. */
6623 elf_getshdrstrndx (0, 0);
6629 if ac_fn_c_try_link "$LINENO"; then :
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6631 $as_echo "yes" >&6; };
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; };
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshstrndx" >&5
6636 $as_echo_n "checking for elf_getshstrndx... " >&6; }
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6644 elf_getshstrndx (0, 0);
6650 if ac_fn_c_try_link "$LINENO"; then :
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6652 $as_echo "yes" >&6; };
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 $as_echo "no" >&6; }; enable_lto=no; libelflibs= ; libelfinc=
6658 rm -f core conftest.err conftest.$ac_objext \
6659 conftest$ac_exeext conftest.$ac_ext
6662 rm -f core conftest.err conftest.$ac_objext \
6663 conftest$ac_exeext conftest.$ac_ext
6666 # If we couldn't enable LTO and the user forced it, emit an error.
6667 if test x"$enable_lto" = x"no" \
6668 && test x"$default_enable_lto" != x"yes" ; then
6669 as_fn_error "To enable LTO, GCC requires libelf v0.8.12+.
6670 Try the --with-libelf, --with-libelf-include and --with-libelf-lib options
6671 to specify its location." "$LINENO" 5
6675 CFLAGS="$saved_CFLAGS"
6676 CPPFLAGS="$saved_CPPFLAGS"
6681 # Flags needed for libelf.
6684 # ELF platforms build the lto-plugin when GOLD is in use.
6685 build_lto_plugin=${ENABLE_GOLD}
6688 if test x"$default_enable_lto" = x"yes" ; then
6690 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
6691 # On other non-ELF platforms, LTO must be explicitly enabled.
6695 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6696 # It would also be nice to check the binutils support, but we don't
6697 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6698 # warn during gcc/ subconfigure; unless you're bootstrapping with
6699 # -flto it won't be needed until after installation anyway.
6701 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6702 *) if test x"$enable_lto" = x"yes"; then
6703 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6708 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6710 *-cygwin* | *-mingw*) build_lto_plugin=yes ;;
6713 default_enable_lto=no
6718 # By default, C is the only stage 1 language.
6719 stage1_languages=,c,
6721 # Target libraries that we bootstrap.
6722 bootstrap_target_libs=,target-libgcc,
6724 # Figure out what language subdirectories are present.
6725 # Look if the user specified --enable-languages="..."; if not, use
6726 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6728 # NB: embedded tabs in this IF block -- do not untabify
6729 if test -d ${srcdir}/gcc; then
6730 if test x"${enable_languages+set}" != xset; then
6731 if test x"${LANGUAGES+set}" = xset; then
6732 enable_languages="${LANGUAGES}"
6733 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6735 enable_languages=all
6738 if test x"${enable_languages}" = x ||
6739 test x"${enable_languages}" = xyes;
6741 echo configure.in: --enable-languages needs at least one language argument 1>&2
6745 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6747 # 'f95' is the old name for the 'fortran' language. We issue a warning
6748 # and make the substitution.
6749 case ,${enable_languages}, in
6751 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6752 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6756 # First scan to see if an enabled language requires some other language.
6757 # We assume that a given config-lang.in will list all the language
6758 # front ends it requires, even if some are required indirectly.
6759 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6760 case ${lang_frag} in
6762 # The odd quoting in the next line works around
6763 # an apparent bug in bash 1.12 on linux.
6764 ${srcdir}/gcc/[*]/config-lang.in) ;;
6766 # From the config-lang.in, get $language, $lang_requires
6770 for other in ${lang_requires} ; do
6771 case ,${enable_languages}, in
6775 echo " \`$other' language required by \`$language'; enabling" 1>&2
6776 enable_languages="${enable_languages},${other}"
6784 new_enable_languages=,c,
6786 # If LTO is enabled, add the LTO front end.
6787 extra_host_libiberty_configure_flags=
6788 if test "$enable_lto" = "yes" ; then
6789 case ,${enable_languages}, in
6791 *) enable_languages="${enable_languages},lto" ;;
6793 if test "${build_lto_plugin}" = "yes" ; then
6794 configdirs="$configdirs lto-plugin"
6795 extra_host_libiberty_configure_flags=--enable-shared
6800 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6801 potential_languages=,c,
6803 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6804 case ${lang_frag} in
6806 # The odd quoting in the next line works around
6807 # an apparent bug in bash 1.12 on linux.
6808 ${srcdir}/gcc/[*]/config-lang.in) ;;
6810 # From the config-lang.in, get $language, $target_libs,
6811 # $lang_dirs, $boot_language, and $build_by_default
6817 build_by_default=yes
6819 if test x${language} = x; then
6820 echo "${lang_frag} doesn't set \$language." 1>&2
6824 if test "$language" = "c++" \
6825 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6829 case ,${enable_languages}, in
6831 # Language was explicitly selected; include it.
6835 # 'all' was selected, select it if it is a default language
6836 add_this_lang=${build_by_default}
6843 # Disable languages that need other directories if these aren't available.
6844 for i in $subdir_requires; do
6845 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6846 case ,${enable_languages}, in
6848 # Specifically requested language; tell them.
6849 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6853 add_this_lang=unsupported
6858 # Disable Ada if no preexisting GNAT is available.
6859 case ,${enable_languages},:${language}:${have_gnat} in
6860 *,${language},*:ada:no)
6861 # Specifically requested language; tell them.
6862 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6866 add_this_lang=unsupported
6870 # Disable a language that is unsupported by the target.
6871 case " $unsupported_languages " in
6873 add_this_lang=unsupported
6877 case $add_this_lang in
6879 # Remove language-dependent dirs.
6880 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6883 # Remove language-dependent dirs; still show language as supported.
6884 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6885 potential_languages="${potential_languages}${language},"
6888 new_enable_languages="${new_enable_languages}${language},"
6889 potential_languages="${potential_languages}${language},"
6890 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6891 case "${boot_language}:,$enable_stage1_languages," in
6892 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6893 # Add to (comma-separated) list of stage 1 languages.
6894 case ",$stage1_languages," in
6895 *,$language,* | ,yes, | ,all,) ;;
6896 *) stage1_languages="${stage1_languages}${language}," ;;
6898 # We need to bootstrap any supporting libraries.
6899 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6908 # Check whether --enable-stage1-languages was given.
6909 if test "${enable_stage1_languages+set}" = set; then :
6910 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6912 # Set it to something that will have no effect in the loop below
6913 enable_stage1_languages=c ;;
6915 enable_stage1_languages=`echo $new_enable_languages | \
6916 sed -e "s/^,//" -e "s/,$//" ` ;;
6918 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6919 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6922 # Add "good" languages from enable_stage1_languages to stage1_languages,
6923 # while "bad" languages go in missing_languages. Leave no duplicates.
6924 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6925 case $potential_languages in
6927 case $stage1_languages in
6929 *) stage1_languages="$stage1_languages$i," ;;
6932 case $missing_languages in
6934 *) missing_languages="$missing_languages$i," ;;
6941 # Remove leading/trailing commas that were added for simplicity
6942 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6943 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6944 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6945 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6947 if test "x$missing_languages" != x; then
6949 The following requested languages could not be built: ${missing_languages}
6950 Supported languages are: ${potential_languages}" "$LINENO" 5
6952 if test "x$new_enable_languages" != "x$enable_languages"; then
6953 echo The following languages will be built: ${new_enable_languages}
6954 enable_languages="$new_enable_languages"
6958 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6961 # Handle --disable-<component> generically.
6962 for dir in $configdirs $build_configdirs $target_configdirs ; do
6963 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6964 varname=`echo $dirname | sed -e s/+/_/g`
6965 if eval test x\${enable_${varname}} "=" xno ; then
6966 noconfigdirs="$noconfigdirs $dir"
6970 # Check for Boehm's garbage collector
6971 # Check whether --enable-objc-gc was given.
6972 if test "${enable_objc_gc+set}" = set; then :
6973 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6974 *,objc,*:*:yes:*target-boehm-gc*)
6975 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6981 # Make sure we only build Boehm's garbage collector if required.
6982 case ,${enable_languages},:${enable_objc_gc} in
6984 # Keep target-boehm-gc if requested for Objective-C.
6987 # Otherwise remove target-boehm-gc depending on target-libjava.
6988 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6989 noconfigdirs="$noconfigdirs target-boehm-gc"
6994 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6995 # $build_configdirs and $target_configdirs.
6996 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6999 for dir in . $skipdirs $noconfigdirs ; do
7000 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
7001 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7002 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
7003 if test -r $srcdir/$dirname/configure ; then
7004 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7007 notsupp="$notsupp $dir"
7011 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7012 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
7013 if test -r $srcdir/$dirname/configure ; then
7014 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7017 notsupp="$notsupp $dir"
7021 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7022 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
7023 if test -r $srcdir/$dirname/configure ; then
7024 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7027 notsupp="$notsupp $dir"
7033 # Sometimes the tools are distributed with libiberty but with no other
7034 # libraries. In that case, we don't want to build target-libiberty.
7035 # Don't let libgcc imply libiberty either.
7036 if test -n "${target_configdirs}" ; then
7039 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
7040 if test "$i" = "libgcc"; then
7041 libgcc=target-libgcc
7042 elif test "$i" != "libiberty" ; then
7043 if test -r $srcdir/$i/configure ; then
7049 if test -z "${others}" ; then
7050 target_configdirs=$libgcc
7054 # Quietly strip out all directories which aren't configurable in this tree.
7055 # This relies on all configurable subdirectories being autoconfiscated, which
7057 build_configdirs_all="$build_configdirs"
7059 for i in ${build_configdirs_all} ; do
7060 j=`echo $i | sed -e s/build-//g`
7061 if test -f ${srcdir}/$j/configure ; then
7062 build_configdirs="${build_configdirs} $i"
7066 configdirs_all="$configdirs"
7068 for i in ${configdirs_all} ; do
7069 if test -f ${srcdir}/$i/configure ; then
7070 configdirs="${configdirs} $i"
7074 target_configdirs_all="$target_configdirs"
7076 for i in ${target_configdirs_all} ; do
7077 j=`echo $i | sed -e s/target-//g`
7078 if test -f ${srcdir}/$j/configure ; then
7079 target_configdirs="${target_configdirs} $i"
7083 # Produce a warning message for the subdirs we can't configure.
7084 # This isn't especially interesting in the Cygnus tree, but in the individual
7085 # FSF releases, it's important to let people know when their machine isn't
7086 # supported by the one or two programs in a package.
7088 if test -n "${notsupp}" && test -z "${norecursion}" ; then
7089 # If $appdirs is non-empty, at least one of those directories must still
7090 # be configured, or we error out. (E.g., if the gas release supports a
7091 # specified target in some subdirs but not the gas subdir, we shouldn't
7092 # pretend that all is well.)
7093 if test -n "$appdirs" ; then
7094 for dir in $appdirs ; do
7095 if test -r $dir/Makefile.in ; then
7096 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7100 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
7106 if test -n "$appdirs" ; then
7107 echo "*** This configuration is not supported by this package." 1>&2
7111 # Okay, some application will build, or we don't care to check. Still
7112 # notify of subdirs not getting built.
7113 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
7114 echo " ${notsupp}" 1>&2
7115 echo " (Any other directories should still work fine.)" 1>&2
7123 # To find our prefix, in gcc_cv_tool_prefix.
7125 # The user is always right.
7126 if test "${PATH_SEPARATOR+set}" != set; then
7127 echo "#! /bin/sh" >conf$$.sh
7128 echo "exit 0" >>conf$$.sh
7130 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7140 if test "x$exec_prefix" = xNONE; then
7141 if test "x$prefix" = xNONE; then
7142 gcc_cv_tool_prefix=$ac_default_prefix
7144 gcc_cv_tool_prefix=$prefix
7147 gcc_cv_tool_prefix=$exec_prefix
7150 # If there is no compiler in the tree, use the PATH only. In any
7151 # case, if there is no compiler in the tree nobody should use
7152 # AS_FOR_TARGET and LD_FOR_TARGET.
7153 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
7154 gcc_version=`cat $srcdir/gcc/BASE-VER`
7155 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7156 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7157 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7158 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7159 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7160 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7165 if test x$build = x$target && test -n "$md_exec_prefix"; then
7166 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7174 # Check whether --with-build-sysroot was given.
7175 if test "${with_build_sysroot+set}" = set; then :
7176 withval=$with_build_sysroot; if test x"$withval" != x ; then
7177 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7180 SYSROOT_CFLAGS_FOR_TARGET=
7186 # Check whether --with-debug-prefix-map was given.
7187 if test "${with_debug_prefix_map+set}" = set; then :
7188 withval=$with_debug_prefix_map; if test x"$withval" != x; then
7189 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7190 for debug_map in $withval; do
7191 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
7195 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7200 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
7201 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
7202 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
7203 # We want to ensure that TARGET libraries (which we know are built with
7204 # gcc) are built with "-O2 -g", so include those options when setting
7205 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
7206 if test "x$CFLAGS_FOR_TARGET" = x; then
7207 CFLAGS_FOR_TARGET=$CFLAGS
7210 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
7213 *" -g "* | *" -g3 "*) ;;
7214 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
7219 if test "x$CXXFLAGS_FOR_TARGET" = x; then
7220 CXXFLAGS_FOR_TARGET=$CXXFLAGS
7221 case " $CXXFLAGS " in
7223 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
7225 case " $CXXFLAGS " in
7226 *" -g "* | *" -g3 "*) ;;
7227 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
7232 # Handle --with-headers=XXX. If the value is not "yes", the contents of
7233 # the named directory are copied to $(tooldir)/sys-include.
7234 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
7235 if test x${is_cross_compiler} = xno ; then
7236 echo 1>&2 '***' --with-headers is only supported when cross compiling
7239 if test x"${with_headers}" != xyes ; then
7240 x=${gcc_cv_tool_prefix}
7241 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
7245 # Handle --with-libs=XXX. If the value is not "yes", the contents of
7246 # the name directories are copied to $(tooldir)/lib. Multiple directories
7248 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7249 if test x${is_cross_compiler} = xno ; then
7250 echo 1>&2 '***' --with-libs is only supported when cross compiling
7253 if test x"${with_libs}" != xyes ; then
7254 # Copy the libraries in reverse order, so that files in the first named
7255 # library override files in subsequent libraries.
7256 x=${gcc_cv_tool_prefix}
7257 for l in ${with_libs}; do
7258 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
7263 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
7265 # This is done by determining whether or not the appropriate directory
7266 # is available, and by checking whether or not specific configurations
7267 # have requested that this magic not happen.
7269 # The command line options always override the explicit settings in
7270 # configure.in, and the settings in configure.in override this magic.
7272 # If the default for a toolchain is to use GNU as and ld, and you don't
7273 # want to do that, then you should use the --without-gnu-as and
7274 # --without-gnu-ld options for the configure script. Similarly, if
7275 # the default is to use the included zlib and you don't want to do that,
7276 # you should use the --with-system-zlib option for the configure script.
7278 if test x${use_gnu_as} = x &&
7279 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7281 extra_host_args="$extra_host_args --with-gnu-as"
7284 if test x${use_gnu_ld} = x &&
7285 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
7287 extra_host_args="$extra_host_args --with-gnu-ld"
7290 if test x${use_included_zlib} = x &&
7291 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7294 with_system_zlib=yes
7295 extra_host_args="$extra_host_args --with-system-zlib"
7298 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7299 # can detect this case.
7301 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7303 extra_host_args="$extra_host_args --with-newlib"
7306 # Handle ${copy_dirs}
7307 set fnord ${copy_dirs}
7309 while test $# != 0 ; do
7310 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7313 echo Copying $1 to $2
7315 # Use the install script to create the directory and all required
7316 # parent directories.
7317 if test -d $2 ; then
7321 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7324 # Copy the directory, assuming we have tar.
7325 # FIXME: Should we use B in the second tar? Not all systems support it.
7326 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7328 # It is the responsibility of the user to correctly adjust all
7329 # symlinks. If somebody can figure out how to handle them correctly
7330 # here, feel free to add the code.
7337 # Determine a target-dependent exec_prefix that the installed
7338 # gcc will search in. Keep this list sorted by triplet, with
7339 # the *-*-osname triplets last.
7343 md_exec_prefix=/gnu/lib/gcc-lib
7345 i[34567]86-pc-msdosdjgpp*)
7346 md_exec_prefix=/dev/env/DJDIR/bin
7348 i[34567]86-*-sco3.2v5*)
7349 if test $with_gnu_as = yes; then
7350 md_exec_prefix=/usr/gnu/bin
7352 md_exec_prefix=/usr/ccs/bin/elf
7357 powerpc-*-chorusos* | \
7358 powerpc*-*-eabi* | \
7359 powerpc*-*-sysv* | \
7360 powerpc*-*-kaos* | \
7362 md_exec_prefix=/usr/ccs/bin
7367 md_exec_prefix=/usr/ccs/bin
7382 md_exec_prefix=/usr/ccs/bin
7386 extra_arflags_for_target=
7387 extra_nmflags_for_target=
7388 extra_ranlibflags_for_target=
7389 target_makefile_frag=/dev/null
7392 target_makefile_frag="config/mt-mep"
7395 target_makefile_frag="config/mt-spu"
7398 target_makefile_frag="config/mt-sde"
7400 mipsisa*-*-elfoabi*)
7401 target_makefile_frag="config/mt-mips-elfoabi"
7403 mips*-*-*linux* | mips*-*-gnu*)
7404 target_makefile_frag="config/mt-mips-gnu"
7407 target_makefile_frag="config/mt-netware"
7409 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7410 target_makefile_frag="config/mt-gnu"
7412 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7413 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7414 # commands to handle both 32-bit and 64-bit objects. These flags are
7415 # harmless if we're using GNU nm or ar.
7416 extra_arflags_for_target=" -X32_64"
7417 extra_nmflags_for_target=" -B -X32_64"
7420 # ranlib before Darwin10 requires the -c flag to look at common symbols.
7421 extra_ranlibflags_for_target=" -c"
7423 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
7424 target_makefile_frag="config/mt-wince"
7428 alphaieee_frag=/dev/null
7431 # This just makes sure to use the -mieee option to build target libs.
7432 # This should probably be set individually by each library.
7433 alphaieee_frag="config/mt-alphaieee"
7437 # If --enable-target-optspace always use -Os instead of -O2 to build
7438 # the target libraries, similarly if it is not specified, use -Os
7439 # on selected platforms.
7440 ospace_frag=/dev/null
7441 case "${enable_target_optspace}:${target}" in
7443 ospace_frag="config/mt-ospace"
7446 ospace_frag="config/mt-d30v"
7448 :m32r-* | :d10v-* | :fr30-*)
7449 ospace_frag="config/mt-ospace"
7454 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7458 # Default to using --with-stabs for certain targets.
7459 if test x${with_stabs} = x ; then
7463 mips*-*-* | alpha*-*-osf*)
7465 extra_host_args="${extra_host_args} --with-stabs"
7470 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
7471 # them automatically.
7474 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
7478 # Some systems (e.g., one of the i386-aix systems the gas testers are
7479 # using) don't handle "\$" correctly, so don't use it here.
7480 tooldir='${exec_prefix}'/${target_noncanonical}
7481 build_tooldir=${tooldir}
7483 # Create a .gdbinit file which runs the one in srcdir
7484 # and tells GDB to look there for source files.
7486 if test -r ${srcdir}/.gdbinit ; then
7489 *) cat > ./.gdbinit <<EOF
7493 source ${srcdir}/.gdbinit
7499 # Make sure that the compiler is able to generate an executable. If it
7500 # can't, we are probably in trouble. We don't care whether we can run the
7501 # executable--we might be using a cross compiler--we only care whether it
7502 # can be created. At this point the main configure script has set CC.
7504 echo "int main () { return 0; }" > conftest.c
7505 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7506 if test $? = 0 ; then
7507 if test -s conftest || test -s conftest.exe ; then
7513 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7514 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7521 # The Solaris /usr/ucb/cc compiler does not appear to work.
7523 sparc-sun-solaris2*)
7524 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
7525 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
7527 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
7528 if test -d /opt/cygnus/bin ; then
7529 if test "$could_use" = "" ; then
7530 could_use="/opt/cygnus/bin"
7532 could_use="$could_use or /opt/cygnus/bin"
7535 if test "$could_use" = "" ; then
7536 echo "Warning: compilation may fail because you're using"
7537 echo "/usr/ucb/cc. You should change your PATH or CC "
7538 echo "variable and rerun configure."
7540 echo "Warning: compilation may fail because you're using"
7541 echo "/usr/ucb/cc, when you should use the C compiler from"
7542 echo "$could_use. You should change your"
7543 echo "PATH or CC variable and rerun configure."
7549 # Decide which environment variable is used to find dynamic libraries.
7551 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7552 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7553 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7554 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7557 # On systems where the dynamic library environment variable is PATH,
7558 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7559 # built executables to PATH.
7560 if test "$RPATH_ENVVAR" = PATH; then
7561 GCC_SHLIB_SUBDIR=/shlib
7566 # Record target_configdirs and the configure arguments for target and
7567 # build configuration in Makefile.
7568 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7569 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7571 # If we are building libgomp, bootstrap it.
7572 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7573 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7576 # Determine whether gdb needs tk/tcl or not.
7577 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7578 # and in that case we want gdb to be built without tk. Ugh!
7579 # In fact I believe gdb is the *only* package directly dependent on tk,
7580 # so we should be able to put the 'maybe's in unconditionally and
7581 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7582 # 100% sure that that's safe though.
7584 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7585 case "$enable_gdbtk" in
7589 GDB_TK="${gdb_tk}" ;;
7591 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7592 # distro. Eventually someone will fix this and move Insight, nee
7593 # gdbtk to a separate directory.
7594 if test -d ${srcdir}/gdb/gdbtk ; then
7601 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7602 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7604 # Strip out unwanted targets.
7606 # While at that, we remove Makefiles if we were started for recursive
7607 # configuration, so that the top-level Makefile reconfigures them,
7608 # like we used to do when configure itself was recursive.
7610 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7611 # but now we're fixing up the Makefile ourselves with the additional
7612 # commands passed to AC_CONFIG_FILES. Use separate variables
7613 # extrasub-{build,host,target} not because there is any reason to split
7614 # the substitutions up that way, but only to remain below the limit of
7615 # 99 commands in a script, for HP-UX sed.
7616 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7618 # Check whether --enable-bootstrap was given.
7619 if test "${enable_bootstrap+set}" = set; then :
7620 enableval=$enable_bootstrap;
7622 enable_bootstrap=default
7626 # Issue errors and warnings for invalid/strange bootstrap combinations.
7627 case "$configdirs" in
7628 *gcc*) have_compiler=yes ;;
7629 *) have_compiler=no ;;
7632 case "$have_compiler:$host:$target:$enable_bootstrap" in
7635 # Default behavior. Enable bootstrap if we have a compiler
7636 # and we are in a native configuration.
7637 yes:$build:$build:default)
7638 enable_bootstrap=yes ;;
7641 enable_bootstrap=no ;;
7643 # We have a compiler and we are in a native configuration, bootstrap is ok
7644 yes:$build:$build:yes)
7647 # Other configurations, but we have a compiler. Assume the user knows
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7651 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
7654 # No compiler: if they passed --enable-bootstrap explicitly, fail
7656 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
7658 # Fail if wrong command line
7660 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
7664 case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7667 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7671 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7672 yes:yes:*\ gold\ *:*,c++,*) ;;
7673 yes:yes:*\ gold\ *:*)
7674 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7678 # Adjust the toplevel makefile according to whether bootstrap was selected.
7679 case $enable_bootstrap in
7681 bootstrap_suffix=bootstrap
7682 BUILD_CONFIG=bootstrap-debug
7685 bootstrap_suffix=no-bootstrap
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7691 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7694 # Check whether --with-build-config was given.
7695 if test "${with_build_config+set}" = set; then :
7696 withval=$with_build_config; case $with_build_config in
7697 yes) with_build_config= ;;
7698 no) with_build_config= BUILD_CONFIG= ;;
7703 if test "x${with_build_config}" != x; then
7704 BUILD_CONFIG=$with_build_config
7706 case $BUILD_CONFIG in
7708 if echo "int f (void) { return 0; }" > conftest.c &&
7709 ${CC} -c conftest.c &&
7710 mv conftest.o conftest.o.g0 &&
7711 ${CC} -c -g conftest.c &&
7712 mv conftest.o conftest.o.g &&
7713 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7718 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7723 $as_echo "$BUILD_CONFIG" >&6; }
7727 for module in ${build_configdirs} ; do
7728 if test -z "${no_recursion}" \
7729 && test -f ${build_subdir}/${module}/Makefile; then
7730 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7731 rm -f ${build_subdir}/${module}/Makefile
7733 extrasub_build="$extrasub_build
7734 /^@if build-$module\$/d
7735 /^@endif build-$module\$/d
7736 /^@if build-$module-$bootstrap_suffix\$/d
7737 /^@endif build-$module-$bootstrap_suffix\$/d"
7740 for module in ${configdirs} ; do
7741 if test -z "${no_recursion}"; then
7742 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7743 if test -f ${file}; then
7744 echo 1>&2 "*** removing ${file} to force reconfigure"
7749 extrasub_host="$extrasub_host
7751 /^@endif $module\$/d
7752 /^@if $module-$bootstrap_suffix\$/d
7753 /^@endif $module-$bootstrap_suffix\$/d"
7756 for module in ${target_configdirs} ; do
7757 if test -z "${no_recursion}" \
7758 && test -f ${target_subdir}/${module}/Makefile; then
7759 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7760 rm -f ${target_subdir}/${module}/Makefile
7763 # We only bootstrap target libraries listed in bootstrap_target_libs.
7764 case $bootstrap_target_libs in
7765 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7766 *) target_bootstrap_suffix=no-bootstrap ;;
7769 extrasub_target="$extrasub_target
7770 /^@if target-$module\$/d
7771 /^@endif target-$module\$/d
7772 /^@if target-$module-$target_bootstrap_suffix\$/d
7773 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7776 # Do the final fixup along with target modules.
7777 extrasub_target="$extrasub_target
7778 /^@if /,/^@endif /d"
7780 # Create the serialization dependencies. This uses a temporary file.
7782 # Check whether --enable-serial-configure was given.
7783 if test "${enable_serial_configure+set}" = set; then :
7784 enableval=$enable_serial_configure;
7788 case ${enable_serial_configure} in
7790 enable_serial_build_configure=yes
7791 enable_serial_host_configure=yes
7792 enable_serial_target_configure=yes
7796 # These force 'configure's to be done one at a time, to avoid problems
7797 # with contention over a shared config.cache.
7799 echo '# serdep.tmp' > serdep.tmp
7801 test "x${enable_serial_build_configure}" = xyes &&
7802 for item in ${build_configdirs} ; do
7805 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7810 test "x${enable_serial_host_configure}" = xyes &&
7811 for item in ${configdirs} ; do
7814 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7819 test "x${enable_serial_target_configure}" = xyes &&
7820 for item in ${target_configdirs} ; do
7823 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7827 serialization_dependencies=serdep.tmp
7830 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7831 # target, nonopt, and variable assignments. These are the ones we
7832 # might not want to pass down to subconfigures. The exception being
7833 # --cache-file=/dev/null, which is used to turn off the use of cache
7834 # files altogether, and which should be passed on to subconfigures.
7835 # Also strip program-prefix, program-suffix, and program-transform-name,
7836 # so that we can pass down a consistent program-transform-name.
7840 eval "set -- $ac_configure_args"
7843 if test X"$skip_next" = X"yes"; then
7847 if test X"$keep_next" = X"yes"; then
7850 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7852 baseargs="$baseargs '$ac_arg'"
7857 # Handle separated arguments. Based on the logic generated by
7860 *=* | --config-cache | -C | -disable-* | --disable-* \
7861 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7862 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7863 | -with-* | --with-* | -without-* | --without-* | --x)
7875 --cache-file=/dev/null | \
7876 -cache-file=/dev/null )
7877 # Handled here to avoid the test to skip args below.
7878 baseargs="$baseargs '$ac_arg'"
7879 # Assert: $separate_arg should always be no.
7880 keep_next=$separate_arg
7896 -program-prefix* | \
7897 -program-suffix* | \
7898 -program-transform-name* )
7899 skip_next=$separate_arg
7903 # An option. Add it.
7906 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7908 baseargs="$baseargs '$ac_arg'"
7909 keep_next=$separate_arg
7912 # Either a variable assignment, or a nonopt (triplet). Don't
7913 # pass it down; let the Makefile handle this.
7918 # Remove the initial space we just introduced and, as these will be
7919 # expanded by make, quote '$'.
7920 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7922 # Add in --program-transform-name, after --program-prefix and
7923 # --program-suffix have been applied to it. Autoconf has already
7924 # doubled dollar signs and backslashes in program_transform_name; we want
7925 # the backslashes un-doubled, and then the entire thing wrapped in single
7926 # quotes, because this will be expanded first by make and then by the shell.
7927 # Also, because we want to override the logic in subdir configure scripts to
7928 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7929 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7930 ${program_transform_name}
7932 gcc_transform_name=`cat conftestsed.out`
7933 rm -f conftestsed.out
7934 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7935 if test "$silent" = yes; then
7936 baseargs="$baseargs --silent"
7938 baseargs="$baseargs --disable-option-checking"
7940 # Record and document user additions to sub configure arguments.
7945 # For the build-side libraries, we just need to pretend we're native,
7946 # and not use the same cache file. Multilibs are neither needed nor
7948 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7950 # For host modules, accept cache file option, or specification as blank.
7951 case "${cache_file}" in
7953 cache_file_option="" ;;
7954 /* | [A-Za-z]:[\\/]* ) # absolute path
7955 cache_file_option="--cache-file=${cache_file}" ;;
7957 cache_file_option="--cache-file=../${cache_file}" ;;
7960 # Host dirs don't like to share a cache file either, horribly enough.
7961 # This seems to be due to autoconf 2.5x stupidity.
7962 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7964 target_configargs="$target_configargs ${baseargs}"
7966 # Passing a --with-cross-host argument lets the target libraries know
7967 # whether they are being built with a cross-compiler or being built
7968 # native. However, it would be better to use other mechanisms to make the
7969 # sorts of decisions they want to make on this basis. Please consider
7970 # this option to be deprecated. FIXME.
7971 if test x${is_cross_compiler} = xyes ; then
7972 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7975 # Default to --enable-multilib.
7976 if test x${enable_multilib} = x ; then
7977 target_configargs="--enable-multilib ${target_configargs}"
7980 # Pass --with-newlib if appropriate. Note that target_configdirs has
7981 # changed from the earlier setting of with_newlib.
7982 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7983 target_configargs="--with-newlib ${target_configargs}"
7986 # Different target subdirs use different values of certain variables
7987 # (notably CXX). Worse, multilibs use *lots* of different values.
7988 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7989 # it doesn't automatically accept command-line overrides of them.
7990 # This means it's not safe for target subdirs to share a cache file,
7991 # which is disgusting, but there you have it. Hopefully this can be
7992 # fixed in future. It's still worthwhile to use a cache file for each
7993 # directory. I think.
7995 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7996 # We need to pass --target, as newer autoconf's requires consistency
7997 # for target_alias and gcc doesn't manage it consistently.
7998 target_configargs="--cache-file=./config.cache ${target_configargs}"
8001 case " $target_configdirs " in
8003 case " $target_configargs " in
8004 *" --with-newlib "*)
8007 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'
8011 # If we're not building GCC, don't discard standard headers.
8012 if test -d ${srcdir}/gcc; then
8013 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
8015 if test "${build}" != "${host}"; then
8016 # On Canadian crosses, CC_FOR_TARGET will have already been set
8017 # by `configure', so we won't have an opportunity to add -Bgcc/
8018 # to it. This is right: we don't want to search that directory
8019 # for binaries, but we want the header files in there, so add
8021 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
8023 # Someone might think of using the pre-installed headers on
8024 # Canadian crosses, in case the installed compiler is not fully
8025 # compatible with the compiler being built. In this case, it
8026 # would be better to flag an error than risking having
8027 # incompatible object files being constructed. We can't
8028 # guarantee that an error will be flagged, but let's hope the
8029 # compiler will do it, when presented with incompatible header
8034 case "${target}-${is_cross_compiler}" in
8035 i[3456789]86-*-linux*-no)
8036 # Here host == target, so we don't need to build gcc,
8037 # so we don't want to discard standard headers.
8038 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
8041 # If we're building newlib, use its generic headers last, but search
8042 # for any libc-related directories first (so make it the last -B
8044 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
8046 # If we're building libgloss, find the startup file, simulator library
8047 # and linker script.
8048 case " $target_configdirs " in
8050 # Look for startup file, simulator library and maybe linker script.
8051 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
8052 # Look for libnosys.a in case the target needs it.
8053 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
8054 # Most targets have the linker script in the source directory.
8055 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
8066 x86_64-*mingw* | *-w64-mingw*)
8067 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
8068 # however, use a symlink named 'mingw' in ${prefix} .
8069 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
8072 # MinGW can't be handled as Cygwin above since it does not use newlib.
8073 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'
8077 # Allow the user to override the flags for
8078 # our build compiler if desired.
8079 if test x"${build}" = x"${host}" ; then
8080 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
8081 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
8082 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
8085 # On Canadian crosses, we'll be searching the right directories for
8086 # the previously-installed cross compiler, so don't bother to add
8087 # flags for directories within the install tree of the compiler
8088 # being built; programs in there won't even run.
8089 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
8090 # Search for pre-installed headers if nothing else fits.
8091 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
8094 if test "x${use_gnu_ld}" = x &&
8095 echo " ${configdirs} " | grep " ld " > /dev/null ; then
8096 # Arrange for us to find uninstalled linker scripts.
8097 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
8100 # Search for other target-specific linker scripts and such.
8103 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
8107 # Makefile fragments.
8108 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
8110 eval fragval=\$$frag
8111 if test $fragval != /dev/null; then
8112 eval $frag=${srcdir}/$fragval
8120 # Miscellanea: directories, flags, etc.
8129 # Build module lists & subconfigure args.
8133 # Host module lists & subconfigure args.
8138 # Target module lists & subconfigure args.
8160 # Generate default definitions for YACC, M4, LEX and other programs that run
8161 # on the build machine. These are used if the Makefile can't locate these
8162 # programs in objdir.
8163 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
8165 for ac_prog in 'bison -y' byacc yacc
8167 # Extract the first word of "$ac_prog", so it can be a program name with args.
8168 set dummy $ac_prog; ac_word=$2
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8170 $as_echo_n "checking for $ac_word... " >&6; }
8171 if test "${ac_cv_prog_YACC+set}" = set; then :
8172 $as_echo_n "(cached) " >&6
8174 if test -n "$YACC"; then
8175 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181 test -z "$as_dir" && as_dir=.
8182 for ac_exec_ext in '' $ac_executable_extensions; do
8183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8184 ac_cv_prog_YACC="$ac_prog"
8185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8194 YACC=$ac_cv_prog_YACC
8195 if test -n "$YACC"; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8197 $as_echo "$YACC" >&6; }
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200 $as_echo "no" >&6; }
8204 test -n "$YACC" && break
8206 test -n "$YACC" || YACC="$MISSING bison -y"
8208 case " $build_configdirs " in
8209 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
8210 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
8213 for ac_prog in bison
8215 # Extract the first word of "$ac_prog", so it can be a program name with args.
8216 set dummy $ac_prog; ac_word=$2
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 $as_echo_n "checking for $ac_word... " >&6; }
8219 if test "${ac_cv_prog_BISON+set}" = set; then :
8220 $as_echo_n "(cached) " >&6
8222 if test -n "$BISON"; then
8223 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8232 ac_cv_prog_BISON="$ac_prog"
8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8242 BISON=$ac_cv_prog_BISON
8243 if test -n "$BISON"; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8245 $as_echo "$BISON" >&6; }
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8252 test -n "$BISON" && break
8254 test -n "$BISON" || BISON="$MISSING bison"
8256 case " $build_configdirs " in
8257 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
8260 for ac_prog in gm4 gnum4 m4
8262 # Extract the first word of "$ac_prog", so it can be a program name with args.
8263 set dummy $ac_prog; ac_word=$2
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8265 $as_echo_n "checking for $ac_word... " >&6; }
8266 if test "${ac_cv_prog_M4+set}" = set; then :
8267 $as_echo_n "(cached) " >&6
8269 if test -n "$M4"; then
8270 ac_cv_prog_M4="$M4" # Let the user override the test.
8272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276 test -z "$as_dir" && as_dir=.
8277 for ac_exec_ext in '' $ac_executable_extensions; do
8278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8279 ac_cv_prog_M4="$ac_prog"
8280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 if test -n "$M4"; then
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8292 $as_echo "$M4" >&6; }
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295 $as_echo "no" >&6; }
8299 test -n "$M4" && break
8301 test -n "$M4" || M4="$MISSING m4"
8303 case " $build_configdirs " in
8304 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8307 for ac_prog in flex lex
8309 # Extract the first word of "$ac_prog", so it can be a program name with args.
8310 set dummy $ac_prog; ac_word=$2
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312 $as_echo_n "checking for $ac_word... " >&6; }
8313 if test "${ac_cv_prog_LEX+set}" = set; then :
8314 $as_echo_n "(cached) " >&6
8316 if test -n "$LEX"; then
8317 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323 test -z "$as_dir" && as_dir=.
8324 for ac_exec_ext in '' $ac_executable_extensions; do
8325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8326 ac_cv_prog_LEX="$ac_prog"
8327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8337 if test -n "$LEX"; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8339 $as_echo "$LEX" >&6; }
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 $as_echo "no" >&6; }
8346 test -n "$LEX" && break
8348 test -n "$LEX" || LEX="$MISSING flex"
8350 case " $build_configdirs " in
8351 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8352 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8357 # Extract the first word of "$ac_prog", so it can be a program name with args.
8358 set dummy $ac_prog; ac_word=$2
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8360 $as_echo_n "checking for $ac_word... " >&6; }
8361 if test "${ac_cv_prog_FLEX+set}" = set; then :
8362 $as_echo_n "(cached) " >&6
8364 if test -n "$FLEX"; then
8365 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 test -z "$as_dir" && as_dir=.
8372 for ac_exec_ext in '' $ac_executable_extensions; do
8373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8374 ac_cv_prog_FLEX="$ac_prog"
8375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8384 FLEX=$ac_cv_prog_FLEX
8385 if test -n "$FLEX"; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8387 $as_echo "$FLEX" >&6; }
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8394 test -n "$FLEX" && break
8396 test -n "$FLEX" || FLEX="$MISSING flex"
8398 case " $build_configdirs " in
8399 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8402 for ac_prog in makeinfo
8404 # Extract the first word of "$ac_prog", so it can be a program name with args.
8405 set dummy $ac_prog; ac_word=$2
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407 $as_echo_n "checking for $ac_word... " >&6; }
8408 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8409 $as_echo_n "(cached) " >&6
8411 if test -n "$MAKEINFO"; then
8412 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 test -z "$as_dir" && as_dir=.
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8421 ac_cv_prog_MAKEINFO="$ac_prog"
8422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8431 MAKEINFO=$ac_cv_prog_MAKEINFO
8432 if test -n "$MAKEINFO"; then
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8434 $as_echo "$MAKEINFO" >&6; }
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 $as_echo "no" >&6; }
8441 test -n "$MAKEINFO" && break
8443 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8445 case " $build_configdirs " in
8446 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8449 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8450 # higher, else we use the "missing" dummy.
8451 if ${MAKEINFO} --version \
8452 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8455 MAKEINFO="$MISSING makeinfo"
8461 # FIXME: expect and dejagnu may become build tools?
8463 for ac_prog in expect
8465 # Extract the first word of "$ac_prog", so it can be a program name with args.
8466 set dummy $ac_prog; ac_word=$2
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468 $as_echo_n "checking for $ac_word... " >&6; }
8469 if test "${ac_cv_prog_EXPECT+set}" = set; then :
8470 $as_echo_n "(cached) " >&6
8472 if test -n "$EXPECT"; then
8473 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 test -z "$as_dir" && as_dir=.
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8482 ac_cv_prog_EXPECT="$ac_prog"
8483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8492 EXPECT=$ac_cv_prog_EXPECT
8493 if test -n "$EXPECT"; then
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8495 $as_echo "$EXPECT" >&6; }
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 $as_echo "no" >&6; }
8502 test -n "$EXPECT" && break
8504 test -n "$EXPECT" || EXPECT="expect"
8506 case " $configdirs " in
8508 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8512 for ac_prog in runtest
8514 # Extract the first word of "$ac_prog", so it can be a program name with args.
8515 set dummy $ac_prog; ac_word=$2
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517 $as_echo_n "checking for $ac_word... " >&6; }
8518 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8519 $as_echo_n "(cached) " >&6
8521 if test -n "$RUNTEST"; then
8522 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528 test -z "$as_dir" && as_dir=.
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8531 ac_cv_prog_RUNTEST="$ac_prog"
8532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8541 RUNTEST=$ac_cv_prog_RUNTEST
8542 if test -n "$RUNTEST"; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8544 $as_echo "$RUNTEST" >&6; }
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547 $as_echo "no" >&6; }
8551 test -n "$RUNTEST" && break
8553 test -n "$RUNTEST" || RUNTEST="runtest"
8555 case " $configdirs " in
8557 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8564 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8565 ncn_target_tool_prefix=
8566 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8570 if test -n "$AR"; then
8572 elif test -n "$ac_cv_prog_AR"; then
8576 if test -n "$ac_cv_prog_AR"; then
8577 for ncn_progname in ar; do
8578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8579 set dummy ${ncn_progname}; ac_word=$2
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8581 $as_echo_n "checking for $ac_word... " >&6; }
8582 if test "${ac_cv_prog_AR+set}" = set; then :
8583 $as_echo_n "(cached) " >&6
8585 if test -n "$AR"; then
8586 ac_cv_prog_AR="$AR" # Let the user override the test.
8588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592 test -z "$as_dir" && as_dir=.
8593 for ac_exec_ext in '' $ac_executable_extensions; do
8594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8595 ac_cv_prog_AR="${ncn_progname}"
8596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8606 if test -n "$AR"; then
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8608 $as_echo "$AR" >&6; }
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611 $as_echo "no" >&6; }
8618 for ncn_progname in ar; do
8619 if test -n "$ncn_tool_prefix"; then
8620 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8621 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8623 $as_echo_n "checking for $ac_word... " >&6; }
8624 if test "${ac_cv_prog_AR+set}" = set; then :
8625 $as_echo_n "(cached) " >&6
8627 if test -n "$AR"; then
8628 ac_cv_prog_AR="$AR" # Let the user override the test.
8630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 test -z "$as_dir" && as_dir=.
8635 for ac_exec_ext in '' $ac_executable_extensions; do
8636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8637 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8648 if test -n "$AR"; then
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8650 $as_echo "$AR" >&6; }
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653 $as_echo "no" >&6; }
8658 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8660 set dummy ${ncn_progname}; ac_word=$2
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8662 $as_echo_n "checking for $ac_word... " >&6; }
8663 if test "${ac_cv_prog_AR+set}" = set; then :
8664 $as_echo_n "(cached) " >&6
8666 if test -n "$AR"; then
8667 ac_cv_prog_AR="$AR" # Let the user override the test.
8669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8673 test -z "$as_dir" && as_dir=.
8674 for ac_exec_ext in '' $ac_executable_extensions; do
8675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8676 ac_cv_prog_AR="${ncn_progname}"
8677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8687 if test -n "$AR"; then
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8689 $as_echo "$AR" >&6; }
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8692 $as_echo "no" >&6; }
8697 test -n "$ac_cv_prog_AR" && break
8700 if test -z "$ac_cv_prog_AR" ; then
8702 if test $build = $host ; then
8705 AR="${ncn_tool_prefix}$2"
8711 if test -n "$AS"; then
8713 elif test -n "$ac_cv_prog_AS"; then
8717 if test -n "$ac_cv_prog_AS"; then
8718 for ncn_progname in as; do
8719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8720 set dummy ${ncn_progname}; ac_word=$2
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8722 $as_echo_n "checking for $ac_word... " >&6; }
8723 if test "${ac_cv_prog_AS+set}" = set; then :
8724 $as_echo_n "(cached) " >&6
8726 if test -n "$AS"; then
8727 ac_cv_prog_AS="$AS" # Let the user override the test.
8729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733 test -z "$as_dir" && as_dir=.
8734 for ac_exec_ext in '' $ac_executable_extensions; do
8735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8736 ac_cv_prog_AS="${ncn_progname}"
8737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8747 if test -n "$AS"; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8749 $as_echo "$AS" >&6; }
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752 $as_echo "no" >&6; }
8759 for ncn_progname in as; do
8760 if test -n "$ncn_tool_prefix"; then
8761 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8762 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8764 $as_echo_n "checking for $ac_word... " >&6; }
8765 if test "${ac_cv_prog_AS+set}" = set; then :
8766 $as_echo_n "(cached) " >&6
8768 if test -n "$AS"; then
8769 ac_cv_prog_AS="$AS" # Let the user override the test.
8771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775 test -z "$as_dir" && as_dir=.
8776 for ac_exec_ext in '' $ac_executable_extensions; do
8777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8778 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8789 if test -n "$AS"; then
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8791 $as_echo "$AS" >&6; }
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8794 $as_echo "no" >&6; }
8799 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8800 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8801 set dummy ${ncn_progname}; ac_word=$2
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8803 $as_echo_n "checking for $ac_word... " >&6; }
8804 if test "${ac_cv_prog_AS+set}" = set; then :
8805 $as_echo_n "(cached) " >&6
8807 if test -n "$AS"; then
8808 ac_cv_prog_AS="$AS" # Let the user override the test.
8810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814 test -z "$as_dir" && as_dir=.
8815 for ac_exec_ext in '' $ac_executable_extensions; do
8816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8817 ac_cv_prog_AS="${ncn_progname}"
8818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8828 if test -n "$AS"; then
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8830 $as_echo "$AS" >&6; }
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8833 $as_echo "no" >&6; }
8838 test -n "$ac_cv_prog_AS" && break
8841 if test -z "$ac_cv_prog_AS" ; then
8843 if test $build = $host ; then
8846 AS="${ncn_tool_prefix}$2"
8852 if test -n "$DLLTOOL"; then
8853 ac_cv_prog_DLLTOOL=$DLLTOOL
8854 elif test -n "$ac_cv_prog_DLLTOOL"; then
8855 DLLTOOL=$ac_cv_prog_DLLTOOL
8858 if test -n "$ac_cv_prog_DLLTOOL"; then
8859 for ncn_progname in dlltool; do
8860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8861 set dummy ${ncn_progname}; ac_word=$2
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863 $as_echo_n "checking for $ac_word... " >&6; }
8864 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8865 $as_echo_n "(cached) " >&6
8867 if test -n "$DLLTOOL"; then
8868 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8874 test -z "$as_dir" && as_dir=.
8875 for ac_exec_ext in '' $ac_executable_extensions; do
8876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8877 ac_cv_prog_DLLTOOL="${ncn_progname}"
8878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8887 DLLTOOL=$ac_cv_prog_DLLTOOL
8888 if test -n "$DLLTOOL"; then
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8890 $as_echo "$DLLTOOL" >&6; }
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893 $as_echo "no" >&6; }
8900 for ncn_progname in dlltool; do
8901 if test -n "$ncn_tool_prefix"; then
8902 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8903 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8905 $as_echo_n "checking for $ac_word... " >&6; }
8906 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8907 $as_echo_n "(cached) " >&6
8909 if test -n "$DLLTOOL"; then
8910 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8916 test -z "$as_dir" && as_dir=.
8917 for ac_exec_ext in '' $ac_executable_extensions; do
8918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8919 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8929 DLLTOOL=$ac_cv_prog_DLLTOOL
8930 if test -n "$DLLTOOL"; then
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8932 $as_echo "$DLLTOOL" >&6; }
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8935 $as_echo "no" >&6; }
8940 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8941 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8942 set dummy ${ncn_progname}; ac_word=$2
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8944 $as_echo_n "checking for $ac_word... " >&6; }
8945 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8946 $as_echo_n "(cached) " >&6
8948 if test -n "$DLLTOOL"; then
8949 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8955 test -z "$as_dir" && as_dir=.
8956 for ac_exec_ext in '' $ac_executable_extensions; do
8957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8958 ac_cv_prog_DLLTOOL="${ncn_progname}"
8959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8968 DLLTOOL=$ac_cv_prog_DLLTOOL
8969 if test -n "$DLLTOOL"; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8971 $as_echo "$DLLTOOL" >&6; }
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8974 $as_echo "no" >&6; }
8979 test -n "$ac_cv_prog_DLLTOOL" && break
8982 if test -z "$ac_cv_prog_DLLTOOL" ; then
8984 if test $build = $host ; then
8987 DLLTOOL="${ncn_tool_prefix}$2"
8993 if test -n "$LD"; then
8995 elif test -n "$ac_cv_prog_LD"; then
8999 if test -n "$ac_cv_prog_LD"; then
9000 for ncn_progname in ld; do
9001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9002 set dummy ${ncn_progname}; ac_word=$2
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9004 $as_echo_n "checking for $ac_word... " >&6; }
9005 if test "${ac_cv_prog_LD+set}" = set; then :
9006 $as_echo_n "(cached) " >&6
9008 if test -n "$LD"; then
9009 ac_cv_prog_LD="$LD" # Let the user override the test.
9011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9015 test -z "$as_dir" && as_dir=.
9016 for ac_exec_ext in '' $ac_executable_extensions; do
9017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9018 ac_cv_prog_LD="${ncn_progname}"
9019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9029 if test -n "$LD"; then
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9031 $as_echo "$LD" >&6; }
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9034 $as_echo "no" >&6; }
9041 for ncn_progname in ld; do
9042 if test -n "$ncn_tool_prefix"; then
9043 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9044 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9046 $as_echo_n "checking for $ac_word... " >&6; }
9047 if test "${ac_cv_prog_LD+set}" = set; then :
9048 $as_echo_n "(cached) " >&6
9050 if test -n "$LD"; then
9051 ac_cv_prog_LD="$LD" # Let the user override the test.
9053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9057 test -z "$as_dir" && as_dir=.
9058 for ac_exec_ext in '' $ac_executable_extensions; do
9059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9060 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
9061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9071 if test -n "$LD"; then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9073 $as_echo "$LD" >&6; }
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076 $as_echo "no" >&6; }
9081 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
9082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9083 set dummy ${ncn_progname}; ac_word=$2
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9085 $as_echo_n "checking for $ac_word... " >&6; }
9086 if test "${ac_cv_prog_LD+set}" = set; then :
9087 $as_echo_n "(cached) " >&6
9089 if test -n "$LD"; then
9090 ac_cv_prog_LD="$LD" # Let the user override the test.
9092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9096 test -z "$as_dir" && as_dir=.
9097 for ac_exec_ext in '' $ac_executable_extensions; do
9098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9099 ac_cv_prog_LD="${ncn_progname}"
9100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9110 if test -n "$LD"; then
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9112 $as_echo "$LD" >&6; }
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9115 $as_echo "no" >&6; }
9120 test -n "$ac_cv_prog_LD" && break
9123 if test -z "$ac_cv_prog_LD" ; then
9125 if test $build = $host ; then
9128 LD="${ncn_tool_prefix}$2"
9134 if test -n "$LIPO"; then
9135 ac_cv_prog_LIPO=$LIPO
9136 elif test -n "$ac_cv_prog_LIPO"; then
9137 LIPO=$ac_cv_prog_LIPO
9140 if test -n "$ac_cv_prog_LIPO"; then
9141 for ncn_progname in lipo; do
9142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9143 set dummy ${ncn_progname}; ac_word=$2
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9145 $as_echo_n "checking for $ac_word... " >&6; }
9146 if test "${ac_cv_prog_LIPO+set}" = set; then :
9147 $as_echo_n "(cached) " >&6
9149 if test -n "$LIPO"; then
9150 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9156 test -z "$as_dir" && as_dir=.
9157 for ac_exec_ext in '' $ac_executable_extensions; do
9158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9159 ac_cv_prog_LIPO="${ncn_progname}"
9160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9169 LIPO=$ac_cv_prog_LIPO
9170 if test -n "$LIPO"; then
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9172 $as_echo "$LIPO" >&6; }
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9175 $as_echo "no" >&6; }
9182 for ncn_progname in lipo; do
9183 if test -n "$ncn_tool_prefix"; then
9184 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9185 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9187 $as_echo_n "checking for $ac_word... " >&6; }
9188 if test "${ac_cv_prog_LIPO+set}" = set; then :
9189 $as_echo_n "(cached) " >&6
9191 if test -n "$LIPO"; then
9192 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9198 test -z "$as_dir" && as_dir=.
9199 for ac_exec_ext in '' $ac_executable_extensions; do
9200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9201 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
9202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9211 LIPO=$ac_cv_prog_LIPO
9212 if test -n "$LIPO"; then
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9214 $as_echo "$LIPO" >&6; }
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9217 $as_echo "no" >&6; }
9222 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9223 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9224 set dummy ${ncn_progname}; ac_word=$2
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9226 $as_echo_n "checking for $ac_word... " >&6; }
9227 if test "${ac_cv_prog_LIPO+set}" = set; then :
9228 $as_echo_n "(cached) " >&6
9230 if test -n "$LIPO"; then
9231 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9237 test -z "$as_dir" && as_dir=.
9238 for ac_exec_ext in '' $ac_executable_extensions; do
9239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9240 ac_cv_prog_LIPO="${ncn_progname}"
9241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9250 LIPO=$ac_cv_prog_LIPO
9251 if test -n "$LIPO"; then
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9253 $as_echo "$LIPO" >&6; }
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9256 $as_echo "no" >&6; }
9261 test -n "$ac_cv_prog_LIPO" && break
9264 if test -z "$ac_cv_prog_LIPO" ; then
9266 if test $build = $host ; then
9269 LIPO="${ncn_tool_prefix}$2"
9275 if test -n "$NM"; then
9277 elif test -n "$ac_cv_prog_NM"; then
9281 if test -n "$ac_cv_prog_NM"; then
9282 for ncn_progname in nm; do
9283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9284 set dummy ${ncn_progname}; ac_word=$2
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9286 $as_echo_n "checking for $ac_word... " >&6; }
9287 if test "${ac_cv_prog_NM+set}" = set; then :
9288 $as_echo_n "(cached) " >&6
9290 if test -n "$NM"; then
9291 ac_cv_prog_NM="$NM" # Let the user override the test.
9293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9297 test -z "$as_dir" && as_dir=.
9298 for ac_exec_ext in '' $ac_executable_extensions; do
9299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9300 ac_cv_prog_NM="${ncn_progname}"
9301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9311 if test -n "$NM"; then
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9313 $as_echo "$NM" >&6; }
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9316 $as_echo "no" >&6; }
9323 for ncn_progname in nm; do
9324 if test -n "$ncn_tool_prefix"; then
9325 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9326 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9328 $as_echo_n "checking for $ac_word... " >&6; }
9329 if test "${ac_cv_prog_NM+set}" = set; then :
9330 $as_echo_n "(cached) " >&6
9332 if test -n "$NM"; then
9333 ac_cv_prog_NM="$NM" # Let the user override the test.
9335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9339 test -z "$as_dir" && as_dir=.
9340 for ac_exec_ext in '' $ac_executable_extensions; do
9341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9342 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
9343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9353 if test -n "$NM"; then
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9355 $as_echo "$NM" >&6; }
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9358 $as_echo "no" >&6; }
9363 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9364 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9365 set dummy ${ncn_progname}; ac_word=$2
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9367 $as_echo_n "checking for $ac_word... " >&6; }
9368 if test "${ac_cv_prog_NM+set}" = set; then :
9369 $as_echo_n "(cached) " >&6
9371 if test -n "$NM"; then
9372 ac_cv_prog_NM="$NM" # Let the user override the test.
9374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9378 test -z "$as_dir" && as_dir=.
9379 for ac_exec_ext in '' $ac_executable_extensions; do
9380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9381 ac_cv_prog_NM="${ncn_progname}"
9382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9392 if test -n "$NM"; then
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9394 $as_echo "$NM" >&6; }
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397 $as_echo "no" >&6; }
9402 test -n "$ac_cv_prog_NM" && break
9405 if test -z "$ac_cv_prog_NM" ; then
9407 if test $build = $host ; then
9410 NM="${ncn_tool_prefix}$2"
9416 if test -n "$RANLIB"; then
9417 ac_cv_prog_RANLIB=$RANLIB
9418 elif test -n "$ac_cv_prog_RANLIB"; then
9419 RANLIB=$ac_cv_prog_RANLIB
9422 if test -n "$ac_cv_prog_RANLIB"; then
9423 for ncn_progname in ranlib; do
9424 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9425 set dummy ${ncn_progname}; ac_word=$2
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9427 $as_echo_n "checking for $ac_word... " >&6; }
9428 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9429 $as_echo_n "(cached) " >&6
9431 if test -n "$RANLIB"; then
9432 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9438 test -z "$as_dir" && as_dir=.
9439 for ac_exec_ext in '' $ac_executable_extensions; do
9440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9441 ac_cv_prog_RANLIB="${ncn_progname}"
9442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9451 RANLIB=$ac_cv_prog_RANLIB
9452 if test -n "$RANLIB"; then
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9454 $as_echo "$RANLIB" >&6; }
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9457 $as_echo "no" >&6; }
9464 for ncn_progname in ranlib; do
9465 if test -n "$ncn_tool_prefix"; then
9466 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9467 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9469 $as_echo_n "checking for $ac_word... " >&6; }
9470 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9471 $as_echo_n "(cached) " >&6
9473 if test -n "$RANLIB"; then
9474 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9480 test -z "$as_dir" && as_dir=.
9481 for ac_exec_ext in '' $ac_executable_extensions; do
9482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9483 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9493 RANLIB=$ac_cv_prog_RANLIB
9494 if test -n "$RANLIB"; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9496 $as_echo "$RANLIB" >&6; }
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499 $as_echo "no" >&6; }
9504 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9506 set dummy ${ncn_progname}; ac_word=$2
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9508 $as_echo_n "checking for $ac_word... " >&6; }
9509 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9510 $as_echo_n "(cached) " >&6
9512 if test -n "$RANLIB"; then
9513 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9519 test -z "$as_dir" && as_dir=.
9520 for ac_exec_ext in '' $ac_executable_extensions; do
9521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9522 ac_cv_prog_RANLIB="${ncn_progname}"
9523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9532 RANLIB=$ac_cv_prog_RANLIB
9533 if test -n "$RANLIB"; then
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9535 $as_echo "$RANLIB" >&6; }
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9538 $as_echo "no" >&6; }
9543 test -n "$ac_cv_prog_RANLIB" && break
9546 if test -z "$ac_cv_prog_RANLIB" ; then
9552 if test -n "$STRIP"; then
9553 ac_cv_prog_STRIP=$STRIP
9554 elif test -n "$ac_cv_prog_STRIP"; then
9555 STRIP=$ac_cv_prog_STRIP
9558 if test -n "$ac_cv_prog_STRIP"; then
9559 for ncn_progname in strip; do
9560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9561 set dummy ${ncn_progname}; ac_word=$2
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9563 $as_echo_n "checking for $ac_word... " >&6; }
9564 if test "${ac_cv_prog_STRIP+set}" = set; then :
9565 $as_echo_n "(cached) " >&6
9567 if test -n "$STRIP"; then
9568 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9574 test -z "$as_dir" && as_dir=.
9575 for ac_exec_ext in '' $ac_executable_extensions; do
9576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9577 ac_cv_prog_STRIP="${ncn_progname}"
9578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9587 STRIP=$ac_cv_prog_STRIP
9588 if test -n "$STRIP"; then
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9590 $as_echo "$STRIP" >&6; }
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9593 $as_echo "no" >&6; }
9600 for ncn_progname in strip; do
9601 if test -n "$ncn_tool_prefix"; then
9602 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9603 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9605 $as_echo_n "checking for $ac_word... " >&6; }
9606 if test "${ac_cv_prog_STRIP+set}" = set; then :
9607 $as_echo_n "(cached) " >&6
9609 if test -n "$STRIP"; then
9610 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9616 test -z "$as_dir" && as_dir=.
9617 for ac_exec_ext in '' $ac_executable_extensions; do
9618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9619 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9629 STRIP=$ac_cv_prog_STRIP
9630 if test -n "$STRIP"; then
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9632 $as_echo "$STRIP" >&6; }
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9635 $as_echo "no" >&6; }
9640 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9642 set dummy ${ncn_progname}; ac_word=$2
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9644 $as_echo_n "checking for $ac_word... " >&6; }
9645 if test "${ac_cv_prog_STRIP+set}" = set; then :
9646 $as_echo_n "(cached) " >&6
9648 if test -n "$STRIP"; then
9649 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9655 test -z "$as_dir" && as_dir=.
9656 for ac_exec_ext in '' $ac_executable_extensions; do
9657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9658 ac_cv_prog_STRIP="${ncn_progname}"
9659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9668 STRIP=$ac_cv_prog_STRIP
9669 if test -n "$STRIP"; then
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9671 $as_echo "$STRIP" >&6; }
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9674 $as_echo "no" >&6; }
9679 test -n "$ac_cv_prog_STRIP" && break
9682 if test -z "$ac_cv_prog_STRIP" ; then
9688 if test -n "$WINDRES"; then
9689 ac_cv_prog_WINDRES=$WINDRES
9690 elif test -n "$ac_cv_prog_WINDRES"; then
9691 WINDRES=$ac_cv_prog_WINDRES
9694 if test -n "$ac_cv_prog_WINDRES"; then
9695 for ncn_progname in windres; do
9696 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9697 set dummy ${ncn_progname}; ac_word=$2
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9699 $as_echo_n "checking for $ac_word... " >&6; }
9700 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9701 $as_echo_n "(cached) " >&6
9703 if test -n "$WINDRES"; then
9704 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9710 test -z "$as_dir" && as_dir=.
9711 for ac_exec_ext in '' $ac_executable_extensions; do
9712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9713 ac_cv_prog_WINDRES="${ncn_progname}"
9714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9723 WINDRES=$ac_cv_prog_WINDRES
9724 if test -n "$WINDRES"; then
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9726 $as_echo "$WINDRES" >&6; }
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9729 $as_echo "no" >&6; }
9736 for ncn_progname in windres; do
9737 if test -n "$ncn_tool_prefix"; then
9738 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9739 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9741 $as_echo_n "checking for $ac_word... " >&6; }
9742 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9743 $as_echo_n "(cached) " >&6
9745 if test -n "$WINDRES"; then
9746 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9752 test -z "$as_dir" && as_dir=.
9753 for ac_exec_ext in '' $ac_executable_extensions; do
9754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9755 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9765 WINDRES=$ac_cv_prog_WINDRES
9766 if test -n "$WINDRES"; then
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9768 $as_echo "$WINDRES" >&6; }
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9771 $as_echo "no" >&6; }
9776 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9778 set dummy ${ncn_progname}; ac_word=$2
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9780 $as_echo_n "checking for $ac_word... " >&6; }
9781 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9782 $as_echo_n "(cached) " >&6
9784 if test -n "$WINDRES"; then
9785 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9791 test -z "$as_dir" && as_dir=.
9792 for ac_exec_ext in '' $ac_executable_extensions; do
9793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9794 ac_cv_prog_WINDRES="${ncn_progname}"
9795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9804 WINDRES=$ac_cv_prog_WINDRES
9805 if test -n "$WINDRES"; then
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9807 $as_echo "$WINDRES" >&6; }
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9810 $as_echo "no" >&6; }
9815 test -n "$ac_cv_prog_WINDRES" && break
9818 if test -z "$ac_cv_prog_WINDRES" ; then
9820 if test $build = $host ; then
9823 WINDRES="${ncn_tool_prefix}$2"
9829 if test -n "$WINDMC"; then
9830 ac_cv_prog_WINDMC=$WINDMC
9831 elif test -n "$ac_cv_prog_WINDMC"; then
9832 WINDMC=$ac_cv_prog_WINDMC
9835 if test -n "$ac_cv_prog_WINDMC"; then
9836 for ncn_progname in windmc; do
9837 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9838 set dummy ${ncn_progname}; ac_word=$2
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9840 $as_echo_n "checking for $ac_word... " >&6; }
9841 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9842 $as_echo_n "(cached) " >&6
9844 if test -n "$WINDMC"; then
9845 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9851 test -z "$as_dir" && as_dir=.
9852 for ac_exec_ext in '' $ac_executable_extensions; do
9853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9854 ac_cv_prog_WINDMC="${ncn_progname}"
9855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9864 WINDMC=$ac_cv_prog_WINDMC
9865 if test -n "$WINDMC"; then
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9867 $as_echo "$WINDMC" >&6; }
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9870 $as_echo "no" >&6; }
9877 for ncn_progname in windmc; do
9878 if test -n "$ncn_tool_prefix"; then
9879 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9880 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9882 $as_echo_n "checking for $ac_word... " >&6; }
9883 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9884 $as_echo_n "(cached) " >&6
9886 if test -n "$WINDMC"; then
9887 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9893 test -z "$as_dir" && as_dir=.
9894 for ac_exec_ext in '' $ac_executable_extensions; do
9895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9896 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9906 WINDMC=$ac_cv_prog_WINDMC
9907 if test -n "$WINDMC"; then
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9909 $as_echo "$WINDMC" >&6; }
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9912 $as_echo "no" >&6; }
9917 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9918 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9919 set dummy ${ncn_progname}; ac_word=$2
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9921 $as_echo_n "checking for $ac_word... " >&6; }
9922 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9923 $as_echo_n "(cached) " >&6
9925 if test -n "$WINDMC"; then
9926 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9932 test -z "$as_dir" && as_dir=.
9933 for ac_exec_ext in '' $ac_executable_extensions; do
9934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9935 ac_cv_prog_WINDMC="${ncn_progname}"
9936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9945 WINDMC=$ac_cv_prog_WINDMC
9946 if test -n "$WINDMC"; then
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9948 $as_echo "$WINDMC" >&6; }
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951 $as_echo "no" >&6; }
9956 test -n "$ac_cv_prog_WINDMC" && break
9959 if test -z "$ac_cv_prog_WINDMC" ; then
9961 if test $build = $host ; then
9964 WINDMC="${ncn_tool_prefix}$2"
9970 if test -n "$OBJCOPY"; then
9971 ac_cv_prog_OBJCOPY=$OBJCOPY
9972 elif test -n "$ac_cv_prog_OBJCOPY"; then
9973 OBJCOPY=$ac_cv_prog_OBJCOPY
9976 if test -n "$ac_cv_prog_OBJCOPY"; then
9977 for ncn_progname in objcopy; do
9978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9979 set dummy ${ncn_progname}; ac_word=$2
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9981 $as_echo_n "checking for $ac_word... " >&6; }
9982 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9983 $as_echo_n "(cached) " >&6
9985 if test -n "$OBJCOPY"; then
9986 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9992 test -z "$as_dir" && as_dir=.
9993 for ac_exec_ext in '' $ac_executable_extensions; do
9994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9995 ac_cv_prog_OBJCOPY="${ncn_progname}"
9996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10005 OBJCOPY=$ac_cv_prog_OBJCOPY
10006 if test -n "$OBJCOPY"; then
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10008 $as_echo "$OBJCOPY" >&6; }
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10011 $as_echo "no" >&6; }
10018 for ncn_progname in objcopy; do
10019 if test -n "$ncn_tool_prefix"; then
10020 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10021 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10023 $as_echo_n "checking for $ac_word... " >&6; }
10024 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
10025 $as_echo_n "(cached) " >&6
10027 if test -n "$OBJCOPY"; then
10028 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
10030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031 for as_dir in $PATH
10034 test -z "$as_dir" && as_dir=.
10035 for ac_exec_ext in '' $ac_executable_extensions; do
10036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10037 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
10038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10047 OBJCOPY=$ac_cv_prog_OBJCOPY
10048 if test -n "$OBJCOPY"; then
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10050 $as_echo "$OBJCOPY" >&6; }
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053 $as_echo "no" >&6; }
10058 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
10059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10060 set dummy ${ncn_progname}; ac_word=$2
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10062 $as_echo_n "checking for $ac_word... " >&6; }
10063 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
10064 $as_echo_n "(cached) " >&6
10066 if test -n "$OBJCOPY"; then
10067 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
10069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10070 for as_dir in $PATH
10073 test -z "$as_dir" && as_dir=.
10074 for ac_exec_ext in '' $ac_executable_extensions; do
10075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10076 ac_cv_prog_OBJCOPY="${ncn_progname}"
10077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10086 OBJCOPY=$ac_cv_prog_OBJCOPY
10087 if test -n "$OBJCOPY"; then
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10089 $as_echo "$OBJCOPY" >&6; }
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10092 $as_echo "no" >&6; }
10097 test -n "$ac_cv_prog_OBJCOPY" && break
10100 if test -z "$ac_cv_prog_OBJCOPY" ; then
10102 if test $build = $host ; then
10105 OBJCOPY="${ncn_tool_prefix}$2"
10111 if test -n "$OBJDUMP"; then
10112 ac_cv_prog_OBJDUMP=$OBJDUMP
10113 elif test -n "$ac_cv_prog_OBJDUMP"; then
10114 OBJDUMP=$ac_cv_prog_OBJDUMP
10117 if test -n "$ac_cv_prog_OBJDUMP"; then
10118 for ncn_progname in objdump; do
10119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10120 set dummy ${ncn_progname}; ac_word=$2
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10122 $as_echo_n "checking for $ac_word... " >&6; }
10123 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10124 $as_echo_n "(cached) " >&6
10126 if test -n "$OBJDUMP"; then
10127 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130 for as_dir in $PATH
10133 test -z "$as_dir" && as_dir=.
10134 for ac_exec_ext in '' $ac_executable_extensions; do
10135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10136 ac_cv_prog_OBJDUMP="${ncn_progname}"
10137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10146 OBJDUMP=$ac_cv_prog_OBJDUMP
10147 if test -n "$OBJDUMP"; then
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10149 $as_echo "$OBJDUMP" >&6; }
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152 $as_echo "no" >&6; }
10159 for ncn_progname in objdump; do
10160 if test -n "$ncn_tool_prefix"; then
10161 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10162 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10164 $as_echo_n "checking for $ac_word... " >&6; }
10165 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10166 $as_echo_n "(cached) " >&6
10168 if test -n "$OBJDUMP"; then
10169 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10172 for as_dir in $PATH
10175 test -z "$as_dir" && as_dir=.
10176 for ac_exec_ext in '' $ac_executable_extensions; do
10177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10178 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
10179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10188 OBJDUMP=$ac_cv_prog_OBJDUMP
10189 if test -n "$OBJDUMP"; then
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10191 $as_echo "$OBJDUMP" >&6; }
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10194 $as_echo "no" >&6; }
10199 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10200 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10201 set dummy ${ncn_progname}; ac_word=$2
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10203 $as_echo_n "checking for $ac_word... " >&6; }
10204 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10205 $as_echo_n "(cached) " >&6
10207 if test -n "$OBJDUMP"; then
10208 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10211 for as_dir in $PATH
10214 test -z "$as_dir" && as_dir=.
10215 for ac_exec_ext in '' $ac_executable_extensions; do
10216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10217 ac_cv_prog_OBJDUMP="${ncn_progname}"
10218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10227 OBJDUMP=$ac_cv_prog_OBJDUMP
10228 if test -n "$OBJDUMP"; then
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10230 $as_echo "$OBJDUMP" >&6; }
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10233 $as_echo "no" >&6; }
10238 test -n "$ac_cv_prog_OBJDUMP" && break
10241 if test -z "$ac_cv_prog_OBJDUMP" ; then
10243 if test $build = $host ; then
10246 OBJDUMP="${ncn_tool_prefix}$2"
10257 # Check whether --with-build-time-tools was given.
10258 if test "${with_build_time_tools+set}" = set; then :
10259 withval=$with_build_time_tools; case x"$withval" in
10262 with_build_time_tools=
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10264 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10268 with_build_time_tools=
10274 if test -n "$CC_FOR_TARGET"; then
10275 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10276 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10277 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10280 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10281 for ncn_progname in cc gcc; do
10282 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10283 set dummy ${ncn_progname}; ac_word=$2
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10285 $as_echo_n "checking for $ac_word... " >&6; }
10286 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10287 $as_echo_n "(cached) " >&6
10289 if test -n "$CC_FOR_TARGET"; then
10290 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10293 for as_dir in $PATH
10296 test -z "$as_dir" && as_dir=.
10297 for ac_exec_ext in '' $ac_executable_extensions; do
10298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10299 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10309 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10310 if test -n "$CC_FOR_TARGET"; then
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10312 $as_echo "$CC_FOR_TARGET" >&6; }
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10315 $as_echo "no" >&6; }
10322 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10323 for ncn_progname in cc gcc; do
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10325 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10326 if test -x $with_build_time_tools/${ncn_progname}; then
10327 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10329 $as_echo "yes" >&6; }
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10333 $as_echo "no" >&6; }
10338 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10339 for ncn_progname in cc gcc; do
10340 if test -n "$ncn_target_tool_prefix"; then
10341 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10342 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10344 $as_echo_n "checking for $ac_word... " >&6; }
10345 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10346 $as_echo_n "(cached) " >&6
10348 if test -n "$CC_FOR_TARGET"; then
10349 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352 for as_dir in $PATH
10355 test -z "$as_dir" && as_dir=.
10356 for ac_exec_ext in '' $ac_executable_extensions; do
10357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10358 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10368 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10369 if test -n "$CC_FOR_TARGET"; then
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10371 $as_echo "$CC_FOR_TARGET" >&6; }
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10374 $as_echo "no" >&6; }
10379 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10381 set dummy ${ncn_progname}; ac_word=$2
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10383 $as_echo_n "checking for $ac_word... " >&6; }
10384 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10385 $as_echo_n "(cached) " >&6
10387 if test -n "$CC_FOR_TARGET"; then
10388 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10391 for as_dir in $PATH
10394 test -z "$as_dir" && as_dir=.
10395 for ac_exec_ext in '' $ac_executable_extensions; do
10396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10397 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10407 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10408 if test -n "$CC_FOR_TARGET"; then
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10410 $as_echo "$CC_FOR_TARGET" >&6; }
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10413 $as_echo "no" >&6; }
10418 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10422 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10424 if test $build = $target ; then
10427 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10430 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10435 if test -n "$CXX_FOR_TARGET"; then
10436 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10437 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10438 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10441 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10442 for ncn_progname in c++ g++ cxx gxx; do
10443 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10444 set dummy ${ncn_progname}; ac_word=$2
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10446 $as_echo_n "checking for $ac_word... " >&6; }
10447 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10448 $as_echo_n "(cached) " >&6
10450 if test -n "$CXX_FOR_TARGET"; then
10451 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10454 for as_dir in $PATH
10457 test -z "$as_dir" && as_dir=.
10458 for ac_exec_ext in '' $ac_executable_extensions; do
10459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10460 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10470 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10471 if test -n "$CXX_FOR_TARGET"; then
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10473 $as_echo "$CXX_FOR_TARGET" >&6; }
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10476 $as_echo "no" >&6; }
10483 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10484 for ncn_progname in c++ g++ cxx gxx; do
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10486 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10487 if test -x $with_build_time_tools/${ncn_progname}; then
10488 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10490 $as_echo "yes" >&6; }
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10494 $as_echo "no" >&6; }
10499 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10500 for ncn_progname in c++ g++ cxx gxx; do
10501 if test -n "$ncn_target_tool_prefix"; then
10502 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10503 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10505 $as_echo_n "checking for $ac_word... " >&6; }
10506 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10507 $as_echo_n "(cached) " >&6
10509 if test -n "$CXX_FOR_TARGET"; then
10510 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513 for as_dir in $PATH
10516 test -z "$as_dir" && as_dir=.
10517 for ac_exec_ext in '' $ac_executable_extensions; do
10518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10519 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10529 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10530 if test -n "$CXX_FOR_TARGET"; then
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10532 $as_echo "$CXX_FOR_TARGET" >&6; }
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535 $as_echo "no" >&6; }
10540 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10542 set dummy ${ncn_progname}; ac_word=$2
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10544 $as_echo_n "checking for $ac_word... " >&6; }
10545 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10546 $as_echo_n "(cached) " >&6
10548 if test -n "$CXX_FOR_TARGET"; then
10549 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552 for as_dir in $PATH
10555 test -z "$as_dir" && as_dir=.
10556 for ac_exec_ext in '' $ac_executable_extensions; do
10557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10558 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10568 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10569 if test -n "$CXX_FOR_TARGET"; then
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10571 $as_echo "$CXX_FOR_TARGET" >&6; }
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10574 $as_echo "no" >&6; }
10579 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10583 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10584 set dummy c++ g++ cxx gxx
10585 if test $build = $target ; then
10586 CXX_FOR_TARGET="$2"
10588 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10591 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10596 if test -n "$GCC_FOR_TARGET"; then
10597 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10598 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10599 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10602 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10603 for ncn_progname in gcc; do
10604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10605 set dummy ${ncn_progname}; ac_word=$2
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10607 $as_echo_n "checking for $ac_word... " >&6; }
10608 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10609 $as_echo_n "(cached) " >&6
10611 if test -n "$GCC_FOR_TARGET"; then
10612 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615 for as_dir in $PATH
10618 test -z "$as_dir" && as_dir=.
10619 for ac_exec_ext in '' $ac_executable_extensions; do
10620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10621 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10631 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10632 if test -n "$GCC_FOR_TARGET"; then
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10634 $as_echo "$GCC_FOR_TARGET" >&6; }
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637 $as_echo "no" >&6; }
10644 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10645 for ncn_progname in gcc; do
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10647 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10648 if test -x $with_build_time_tools/${ncn_progname}; then
10649 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10651 $as_echo "yes" >&6; }
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10655 $as_echo "no" >&6; }
10660 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10661 for ncn_progname in gcc; do
10662 if test -n "$ncn_target_tool_prefix"; then
10663 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10664 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10666 $as_echo_n "checking for $ac_word... " >&6; }
10667 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10668 $as_echo_n "(cached) " >&6
10670 if test -n "$GCC_FOR_TARGET"; then
10671 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10674 for as_dir in $PATH
10677 test -z "$as_dir" && as_dir=.
10678 for ac_exec_ext in '' $ac_executable_extensions; do
10679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10680 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10690 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10691 if test -n "$GCC_FOR_TARGET"; then
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10693 $as_echo "$GCC_FOR_TARGET" >&6; }
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10696 $as_echo "no" >&6; }
10701 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10702 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10703 set dummy ${ncn_progname}; ac_word=$2
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10705 $as_echo_n "checking for $ac_word... " >&6; }
10706 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10707 $as_echo_n "(cached) " >&6
10709 if test -n "$GCC_FOR_TARGET"; then
10710 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10713 for as_dir in $PATH
10716 test -z "$as_dir" && as_dir=.
10717 for ac_exec_ext in '' $ac_executable_extensions; do
10718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10719 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10729 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10730 if test -n "$GCC_FOR_TARGET"; then
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10732 $as_echo "$GCC_FOR_TARGET" >&6; }
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10735 $as_echo "no" >&6; }
10740 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10744 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10745 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10747 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10752 if test -n "$GCJ_FOR_TARGET"; then
10753 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10754 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10755 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10758 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10759 for ncn_progname in gcj; do
10760 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10761 set dummy ${ncn_progname}; ac_word=$2
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10763 $as_echo_n "checking for $ac_word... " >&6; }
10764 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10765 $as_echo_n "(cached) " >&6
10767 if test -n "$GCJ_FOR_TARGET"; then
10768 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10771 for as_dir in $PATH
10774 test -z "$as_dir" && as_dir=.
10775 for ac_exec_ext in '' $ac_executable_extensions; do
10776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10777 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10787 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10788 if test -n "$GCJ_FOR_TARGET"; then
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10790 $as_echo "$GCJ_FOR_TARGET" >&6; }
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10793 $as_echo "no" >&6; }
10800 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10801 for ncn_progname in gcj; do
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10803 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10804 if test -x $with_build_time_tools/${ncn_progname}; then
10805 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10807 $as_echo "yes" >&6; }
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811 $as_echo "no" >&6; }
10816 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10817 for ncn_progname in gcj; do
10818 if test -n "$ncn_target_tool_prefix"; then
10819 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10820 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10822 $as_echo_n "checking for $ac_word... " >&6; }
10823 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10824 $as_echo_n "(cached) " >&6
10826 if test -n "$GCJ_FOR_TARGET"; then
10827 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10830 for as_dir in $PATH
10833 test -z "$as_dir" && as_dir=.
10834 for ac_exec_ext in '' $ac_executable_extensions; do
10835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10836 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10846 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10847 if test -n "$GCJ_FOR_TARGET"; then
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10849 $as_echo "$GCJ_FOR_TARGET" >&6; }
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10852 $as_echo "no" >&6; }
10857 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10858 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10859 set dummy ${ncn_progname}; ac_word=$2
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10861 $as_echo_n "checking for $ac_word... " >&6; }
10862 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10863 $as_echo_n "(cached) " >&6
10865 if test -n "$GCJ_FOR_TARGET"; then
10866 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869 for as_dir in $PATH
10872 test -z "$as_dir" && as_dir=.
10873 for ac_exec_ext in '' $ac_executable_extensions; do
10874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10875 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10885 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10886 if test -n "$GCJ_FOR_TARGET"; then
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10888 $as_echo "$GCJ_FOR_TARGET" >&6; }
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10891 $as_echo "no" >&6; }
10896 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10900 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10902 if test $build = $target ; then
10903 GCJ_FOR_TARGET="$2"
10905 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10908 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10913 if test -n "$GFORTRAN_FOR_TARGET"; then
10914 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10915 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10916 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10919 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10920 for ncn_progname in gfortran; do
10921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10922 set dummy ${ncn_progname}; ac_word=$2
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10924 $as_echo_n "checking for $ac_word... " >&6; }
10925 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10926 $as_echo_n "(cached) " >&6
10928 if test -n "$GFORTRAN_FOR_TARGET"; then
10929 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932 for as_dir in $PATH
10935 test -z "$as_dir" && as_dir=.
10936 for ac_exec_ext in '' $ac_executable_extensions; do
10937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10938 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10948 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10949 if test -n "$GFORTRAN_FOR_TARGET"; then
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10951 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10954 $as_echo "no" >&6; }
10961 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10962 for ncn_progname in gfortran; do
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10964 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10965 if test -x $with_build_time_tools/${ncn_progname}; then
10966 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10968 $as_echo "yes" >&6; }
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972 $as_echo "no" >&6; }
10977 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10978 for ncn_progname in gfortran; do
10979 if test -n "$ncn_target_tool_prefix"; then
10980 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10981 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10983 $as_echo_n "checking for $ac_word... " >&6; }
10984 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10985 $as_echo_n "(cached) " >&6
10987 if test -n "$GFORTRAN_FOR_TARGET"; then
10988 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10991 for as_dir in $PATH
10994 test -z "$as_dir" && as_dir=.
10995 for ac_exec_ext in '' $ac_executable_extensions; do
10996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10997 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11007 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11008 if test -n "$GFORTRAN_FOR_TARGET"; then
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11010 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11013 $as_echo "no" >&6; }
11018 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
11019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11020 set dummy ${ncn_progname}; ac_word=$2
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11022 $as_echo_n "checking for $ac_word... " >&6; }
11023 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
11024 $as_echo_n "(cached) " >&6
11026 if test -n "$GFORTRAN_FOR_TARGET"; then
11027 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030 for as_dir in $PATH
11033 test -z "$as_dir" && as_dir=.
11034 for ac_exec_ext in '' $ac_executable_extensions; do
11035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11036 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
11037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11046 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11047 if test -n "$GFORTRAN_FOR_TARGET"; then
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11049 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 $as_echo "no" >&6; }
11057 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
11061 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
11063 if test $build = $target ; then
11064 GFORTRAN_FOR_TARGET="$2"
11066 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
11069 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
11074 cat > conftest.c << \EOF
11079 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11080 have_gcc_for_target=yes
11082 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11083 have_gcc_for_target=no
11090 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11091 if test -n "$with_build_time_tools"; then
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11093 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11094 if test -x $with_build_time_tools/ar; then
11095 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11096 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11098 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11101 $as_echo "no" >&6; }
11103 elif test $build != $host && test $have_gcc_for_target = yes; then
11104 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11105 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11106 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11109 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11110 # Extract the first word of "ar", so it can be a program name with args.
11111 set dummy ar; ac_word=$2
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11113 $as_echo_n "checking for $ac_word... " >&6; }
11114 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
11115 $as_echo_n "(cached) " >&6
11117 case $AR_FOR_TARGET in
11119 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123 for as_dir in $gcc_cv_tool_dirs
11126 test -z "$as_dir" && as_dir=.
11127 for ac_exec_ext in '' $ac_executable_extensions; do
11128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11129 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11140 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11141 if test -n "$AR_FOR_TARGET"; then
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11143 $as_echo "$AR_FOR_TARGET" >&6; }
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146 $as_echo "no" >&6; }
11151 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11154 if test -n "$AR_FOR_TARGET"; then
11155 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11156 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11157 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11160 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11161 for ncn_progname in ar; do
11162 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11163 set dummy ${ncn_progname}; ac_word=$2
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11165 $as_echo_n "checking for $ac_word... " >&6; }
11166 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11167 $as_echo_n "(cached) " >&6
11169 if test -n "$AR_FOR_TARGET"; then
11170 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11173 for as_dir in $PATH
11176 test -z "$as_dir" && as_dir=.
11177 for ac_exec_ext in '' $ac_executable_extensions; do
11178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11179 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11189 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11190 if test -n "$AR_FOR_TARGET"; then
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11192 $as_echo "$AR_FOR_TARGET" >&6; }
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11195 $as_echo "no" >&6; }
11202 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11203 for ncn_progname in ar; do
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11205 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11206 if test -x $with_build_time_tools/${ncn_progname}; then
11207 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11209 $as_echo "yes" >&6; }
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213 $as_echo "no" >&6; }
11218 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11219 for ncn_progname in ar; do
11220 if test -n "$ncn_target_tool_prefix"; then
11221 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11222 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224 $as_echo_n "checking for $ac_word... " >&6; }
11225 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
11228 if test -n "$AR_FOR_TARGET"; then
11229 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
11235 test -z "$as_dir" && as_dir=.
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11238 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11248 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11249 if test -n "$AR_FOR_TARGET"; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11251 $as_echo "$AR_FOR_TARGET" >&6; }
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 $as_echo "no" >&6; }
11259 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11260 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11261 set dummy ${ncn_progname}; ac_word=$2
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11263 $as_echo_n "checking for $ac_word... " >&6; }
11264 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11265 $as_echo_n "(cached) " >&6
11267 if test -n "$AR_FOR_TARGET"; then
11268 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271 for as_dir in $PATH
11274 test -z "$as_dir" && as_dir=.
11275 for ac_exec_ext in '' $ac_executable_extensions; do
11276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11277 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11287 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11288 if test -n "$AR_FOR_TARGET"; then
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11290 $as_echo "$AR_FOR_TARGET" >&6; }
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293 $as_echo "no" >&6; }
11298 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11302 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11304 if test $build = $target ; then
11307 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11310 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11314 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11320 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11321 if test -n "$with_build_time_tools"; then
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11323 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11324 if test -x $with_build_time_tools/as; then
11325 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11326 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11328 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11331 $as_echo "no" >&6; }
11333 elif test $build != $host && test $have_gcc_for_target = yes; then
11334 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11335 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11336 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11339 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11340 # Extract the first word of "as", so it can be a program name with args.
11341 set dummy as; ac_word=$2
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11343 $as_echo_n "checking for $ac_word... " >&6; }
11344 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11345 $as_echo_n "(cached) " >&6
11347 case $AS_FOR_TARGET in
11349 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353 for as_dir in $gcc_cv_tool_dirs
11356 test -z "$as_dir" && as_dir=.
11357 for ac_exec_ext in '' $ac_executable_extensions; do
11358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11359 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11370 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11371 if test -n "$AS_FOR_TARGET"; then
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11373 $as_echo "$AS_FOR_TARGET" >&6; }
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376 $as_echo "no" >&6; }
11381 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11384 if test -n "$AS_FOR_TARGET"; then
11385 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11386 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11387 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11390 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11391 for ncn_progname in as; do
11392 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11393 set dummy ${ncn_progname}; ac_word=$2
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11395 $as_echo_n "checking for $ac_word... " >&6; }
11396 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11397 $as_echo_n "(cached) " >&6
11399 if test -n "$AS_FOR_TARGET"; then
11400 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11403 for as_dir in $PATH
11406 test -z "$as_dir" && as_dir=.
11407 for ac_exec_ext in '' $ac_executable_extensions; do
11408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11409 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11419 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11420 if test -n "$AS_FOR_TARGET"; then
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11422 $as_echo "$AS_FOR_TARGET" >&6; }
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11425 $as_echo "no" >&6; }
11432 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11433 for ncn_progname in as; do
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11435 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11436 if test -x $with_build_time_tools/${ncn_progname}; then
11437 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11439 $as_echo "yes" >&6; }
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443 $as_echo "no" >&6; }
11448 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11449 for ncn_progname in as; do
11450 if test -n "$ncn_target_tool_prefix"; then
11451 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11452 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11454 $as_echo_n "checking for $ac_word... " >&6; }
11455 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11456 $as_echo_n "(cached) " >&6
11458 if test -n "$AS_FOR_TARGET"; then
11459 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462 for as_dir in $PATH
11465 test -z "$as_dir" && as_dir=.
11466 for ac_exec_ext in '' $ac_executable_extensions; do
11467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11468 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11478 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11479 if test -n "$AS_FOR_TARGET"; then
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11481 $as_echo "$AS_FOR_TARGET" >&6; }
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11484 $as_echo "no" >&6; }
11489 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11491 set dummy ${ncn_progname}; ac_word=$2
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11493 $as_echo_n "checking for $ac_word... " >&6; }
11494 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11495 $as_echo_n "(cached) " >&6
11497 if test -n "$AS_FOR_TARGET"; then
11498 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11501 for as_dir in $PATH
11504 test -z "$as_dir" && as_dir=.
11505 for ac_exec_ext in '' $ac_executable_extensions; do
11506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11507 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11517 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11518 if test -n "$AS_FOR_TARGET"; then
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11520 $as_echo "$AS_FOR_TARGET" >&6; }
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523 $as_echo "no" >&6; }
11528 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11532 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11534 if test $build = $target ; then
11537 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11540 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11544 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11550 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11551 if test -n "$with_build_time_tools"; then
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11553 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11554 if test -x $with_build_time_tools/dlltool; then
11555 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11556 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11558 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11561 $as_echo "no" >&6; }
11563 elif test $build != $host && test $have_gcc_for_target = yes; then
11564 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11565 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11566 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11569 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11570 # Extract the first word of "dlltool", so it can be a program name with args.
11571 set dummy dlltool; ac_word=$2
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11573 $as_echo_n "checking for $ac_word... " >&6; }
11574 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11575 $as_echo_n "(cached) " >&6
11577 case $DLLTOOL_FOR_TARGET in
11579 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583 for as_dir in $gcc_cv_tool_dirs
11586 test -z "$as_dir" && as_dir=.
11587 for ac_exec_ext in '' $ac_executable_extensions; do
11588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11589 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11600 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11601 if test -n "$DLLTOOL_FOR_TARGET"; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11603 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606 $as_echo "no" >&6; }
11611 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11614 if test -n "$DLLTOOL_FOR_TARGET"; then
11615 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11616 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11617 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11620 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11621 for ncn_progname in dlltool; do
11622 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11623 set dummy ${ncn_progname}; ac_word=$2
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11625 $as_echo_n "checking for $ac_word... " >&6; }
11626 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11627 $as_echo_n "(cached) " >&6
11629 if test -n "$DLLTOOL_FOR_TARGET"; then
11630 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633 for as_dir in $PATH
11636 test -z "$as_dir" && as_dir=.
11637 for ac_exec_ext in '' $ac_executable_extensions; do
11638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11639 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11649 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11650 if test -n "$DLLTOOL_FOR_TARGET"; then
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11652 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655 $as_echo "no" >&6; }
11662 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11663 for ncn_progname in dlltool; do
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11665 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11666 if test -x $with_build_time_tools/${ncn_progname}; then
11667 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11669 $as_echo "yes" >&6; }
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673 $as_echo "no" >&6; }
11678 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11679 for ncn_progname in dlltool; do
11680 if test -n "$ncn_target_tool_prefix"; then
11681 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11682 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11684 $as_echo_n "checking for $ac_word... " >&6; }
11685 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11686 $as_echo_n "(cached) " >&6
11688 if test -n "$DLLTOOL_FOR_TARGET"; then
11689 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692 for as_dir in $PATH
11695 test -z "$as_dir" && as_dir=.
11696 for ac_exec_ext in '' $ac_executable_extensions; do
11697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11698 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11708 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11709 if test -n "$DLLTOOL_FOR_TARGET"; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11711 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714 $as_echo "no" >&6; }
11719 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11720 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11721 set dummy ${ncn_progname}; ac_word=$2
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11723 $as_echo_n "checking for $ac_word... " >&6; }
11724 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11725 $as_echo_n "(cached) " >&6
11727 if test -n "$DLLTOOL_FOR_TARGET"; then
11728 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731 for as_dir in $PATH
11734 test -z "$as_dir" && as_dir=.
11735 for ac_exec_ext in '' $ac_executable_extensions; do
11736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11737 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11747 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11748 if test -n "$DLLTOOL_FOR_TARGET"; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11750 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11758 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11762 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11764 if test $build = $target ; then
11765 DLLTOOL_FOR_TARGET="$2"
11767 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11770 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11774 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11780 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11781 if test -n "$with_build_time_tools"; then
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11783 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11784 if test -x $with_build_time_tools/ld; then
11785 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11786 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11788 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11791 $as_echo "no" >&6; }
11793 elif test $build != $host && test $have_gcc_for_target = yes; then
11794 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11795 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11796 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11799 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11800 # Extract the first word of "ld", so it can be a program name with args.
11801 set dummy ld; ac_word=$2
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11803 $as_echo_n "checking for $ac_word... " >&6; }
11804 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11805 $as_echo_n "(cached) " >&6
11807 case $LD_FOR_TARGET in
11809 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813 for as_dir in $gcc_cv_tool_dirs
11816 test -z "$as_dir" && as_dir=.
11817 for ac_exec_ext in '' $ac_executable_extensions; do
11818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11819 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11830 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11831 if test -n "$LD_FOR_TARGET"; then
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11833 $as_echo "$LD_FOR_TARGET" >&6; }
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836 $as_echo "no" >&6; }
11841 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11844 if test -n "$LD_FOR_TARGET"; then
11845 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11846 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11847 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11850 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11851 for ncn_progname in ld; do
11852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11853 set dummy ${ncn_progname}; ac_word=$2
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11855 $as_echo_n "checking for $ac_word... " >&6; }
11856 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11857 $as_echo_n "(cached) " >&6
11859 if test -n "$LD_FOR_TARGET"; then
11860 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863 for as_dir in $PATH
11866 test -z "$as_dir" && as_dir=.
11867 for ac_exec_ext in '' $ac_executable_extensions; do
11868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11869 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11879 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11880 if test -n "$LD_FOR_TARGET"; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11882 $as_echo "$LD_FOR_TARGET" >&6; }
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; }
11892 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11893 for ncn_progname in ld; do
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11895 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11896 if test -x $with_build_time_tools/${ncn_progname}; then
11897 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11899 $as_echo "yes" >&6; }
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903 $as_echo "no" >&6; }
11908 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11909 for ncn_progname in ld; do
11910 if test -n "$ncn_target_tool_prefix"; then
11911 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11912 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914 $as_echo_n "checking for $ac_word... " >&6; }
11915 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11916 $as_echo_n "(cached) " >&6
11918 if test -n "$LD_FOR_TARGET"; then
11919 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in $PATH
11925 test -z "$as_dir" && as_dir=.
11926 for ac_exec_ext in '' $ac_executable_extensions; do
11927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11928 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11938 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11939 if test -n "$LD_FOR_TARGET"; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11941 $as_echo "$LD_FOR_TARGET" >&6; }
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11949 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11951 set dummy ${ncn_progname}; ac_word=$2
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953 $as_echo_n "checking for $ac_word... " >&6; }
11954 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11955 $as_echo_n "(cached) " >&6
11957 if test -n "$LD_FOR_TARGET"; then
11958 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961 for as_dir in $PATH
11964 test -z "$as_dir" && as_dir=.
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11967 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11977 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11978 if test -n "$LD_FOR_TARGET"; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11980 $as_echo "$LD_FOR_TARGET" >&6; }
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11988 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11992 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11994 if test $build = $target ; then
11997 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12000 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
12004 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12010 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12011 if test -n "$with_build_time_tools"; then
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12013 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
12014 if test -x $with_build_time_tools/lipo; then
12015 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12016 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12018 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12023 elif test $build != $host && test $have_gcc_for_target = yes; then
12024 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
12025 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12026 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12029 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12030 # Extract the first word of "lipo", so it can be a program name with args.
12031 set dummy lipo; ac_word=$2
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12033 $as_echo_n "checking for $ac_word... " >&6; }
12034 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
12035 $as_echo_n "(cached) " >&6
12037 case $LIPO_FOR_TARGET in
12039 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043 for as_dir in $gcc_cv_tool_dirs
12046 test -z "$as_dir" && as_dir=.
12047 for ac_exec_ext in '' $ac_executable_extensions; do
12048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12049 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12060 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12061 if test -n "$LIPO_FOR_TARGET"; then
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12063 $as_echo "$LIPO_FOR_TARGET" >&6; }
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066 $as_echo "no" >&6; }
12071 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12074 if test -n "$LIPO_FOR_TARGET"; then
12075 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12076 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12077 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12080 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12081 for ncn_progname in lipo; do
12082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12083 set dummy ${ncn_progname}; ac_word=$2
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12085 $as_echo_n "checking for $ac_word... " >&6; }
12086 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12087 $as_echo_n "(cached) " >&6
12089 if test -n "$LIPO_FOR_TARGET"; then
12090 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093 for as_dir in $PATH
12096 test -z "$as_dir" && as_dir=.
12097 for ac_exec_ext in '' $ac_executable_extensions; do
12098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12099 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12109 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12110 if test -n "$LIPO_FOR_TARGET"; then
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12112 $as_echo "$LIPO_FOR_TARGET" >&6; }
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115 $as_echo "no" >&6; }
12122 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12123 for ncn_progname in lipo; do
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12125 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12126 if test -x $with_build_time_tools/${ncn_progname}; then
12127 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12129 $as_echo "yes" >&6; }
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133 $as_echo "no" >&6; }
12138 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12139 for ncn_progname in lipo; do
12140 if test -n "$ncn_target_tool_prefix"; then
12141 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12142 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12144 $as_echo_n "checking for $ac_word... " >&6; }
12145 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12146 $as_echo_n "(cached) " >&6
12148 if test -n "$LIPO_FOR_TARGET"; then
12149 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12152 for as_dir in $PATH
12155 test -z "$as_dir" && as_dir=.
12156 for ac_exec_ext in '' $ac_executable_extensions; do
12157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12158 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12168 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12169 if test -n "$LIPO_FOR_TARGET"; then
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12171 $as_echo "$LIPO_FOR_TARGET" >&6; }
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12174 $as_echo "no" >&6; }
12179 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12181 set dummy ${ncn_progname}; ac_word=$2
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12183 $as_echo_n "checking for $ac_word... " >&6; }
12184 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12185 $as_echo_n "(cached) " >&6
12187 if test -n "$LIPO_FOR_TARGET"; then
12188 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191 for as_dir in $PATH
12194 test -z "$as_dir" && as_dir=.
12195 for ac_exec_ext in '' $ac_executable_extensions; do
12196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12197 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12207 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12208 if test -n "$LIPO_FOR_TARGET"; then
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12210 $as_echo "$LIPO_FOR_TARGET" >&6; }
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213 $as_echo "no" >&6; }
12218 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12222 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12224 if test $build = $target ; then
12225 LIPO_FOR_TARGET="$2"
12227 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12230 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12234 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12240 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12241 if test -n "$with_build_time_tools"; then
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12243 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12244 if test -x $with_build_time_tools/nm; then
12245 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12246 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12248 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251 $as_echo "no" >&6; }
12253 elif test $build != $host && test $have_gcc_for_target = yes; then
12254 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12255 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12256 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12259 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12260 # Extract the first word of "nm", so it can be a program name with args.
12261 set dummy nm; ac_word=$2
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12263 $as_echo_n "checking for $ac_word... " >&6; }
12264 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12265 $as_echo_n "(cached) " >&6
12267 case $NM_FOR_TARGET in
12269 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273 for as_dir in $gcc_cv_tool_dirs
12276 test -z "$as_dir" && as_dir=.
12277 for ac_exec_ext in '' $ac_executable_extensions; do
12278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12279 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12290 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12291 if test -n "$NM_FOR_TARGET"; then
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12293 $as_echo "$NM_FOR_TARGET" >&6; }
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296 $as_echo "no" >&6; }
12301 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12304 if test -n "$NM_FOR_TARGET"; then
12305 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12306 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12307 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12310 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12311 for ncn_progname in nm; do
12312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12313 set dummy ${ncn_progname}; ac_word=$2
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12315 $as_echo_n "checking for $ac_word... " >&6; }
12316 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12317 $as_echo_n "(cached) " >&6
12319 if test -n "$NM_FOR_TARGET"; then
12320 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12323 for as_dir in $PATH
12326 test -z "$as_dir" && as_dir=.
12327 for ac_exec_ext in '' $ac_executable_extensions; do
12328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12329 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12339 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12340 if test -n "$NM_FOR_TARGET"; then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12342 $as_echo "$NM_FOR_TARGET" >&6; }
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12345 $as_echo "no" >&6; }
12352 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12353 for ncn_progname in nm; do
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12355 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12356 if test -x $with_build_time_tools/${ncn_progname}; then
12357 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12359 $as_echo "yes" >&6; }
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363 $as_echo "no" >&6; }
12368 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12369 for ncn_progname in nm; do
12370 if test -n "$ncn_target_tool_prefix"; then
12371 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12372 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12374 $as_echo_n "checking for $ac_word... " >&6; }
12375 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12376 $as_echo_n "(cached) " >&6
12378 if test -n "$NM_FOR_TARGET"; then
12379 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382 for as_dir in $PATH
12385 test -z "$as_dir" && as_dir=.
12386 for ac_exec_ext in '' $ac_executable_extensions; do
12387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12388 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12398 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12399 if test -n "$NM_FOR_TARGET"; then
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12401 $as_echo "$NM_FOR_TARGET" >&6; }
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404 $as_echo "no" >&6; }
12409 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12411 set dummy ${ncn_progname}; ac_word=$2
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12413 $as_echo_n "checking for $ac_word... " >&6; }
12414 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12415 $as_echo_n "(cached) " >&6
12417 if test -n "$NM_FOR_TARGET"; then
12418 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12421 for as_dir in $PATH
12424 test -z "$as_dir" && as_dir=.
12425 for ac_exec_ext in '' $ac_executable_extensions; do
12426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12427 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12437 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12438 if test -n "$NM_FOR_TARGET"; then
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12440 $as_echo "$NM_FOR_TARGET" >&6; }
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443 $as_echo "no" >&6; }
12448 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12452 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12454 if test $build = $target ; then
12457 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12460 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12464 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12470 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12471 if test -n "$with_build_time_tools"; then
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12473 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12474 if test -x $with_build_time_tools/objdump; then
12475 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12476 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12478 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481 $as_echo "no" >&6; }
12483 elif test $build != $host && test $have_gcc_for_target = yes; then
12484 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12485 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12486 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12489 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12490 # Extract the first word of "objdump", so it can be a program name with args.
12491 set dummy objdump; ac_word=$2
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12493 $as_echo_n "checking for $ac_word... " >&6; }
12494 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12495 $as_echo_n "(cached) " >&6
12497 case $OBJDUMP_FOR_TARGET in
12499 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503 for as_dir in $gcc_cv_tool_dirs
12506 test -z "$as_dir" && as_dir=.
12507 for ac_exec_ext in '' $ac_executable_extensions; do
12508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12509 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12520 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12521 if test -n "$OBJDUMP_FOR_TARGET"; then
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12523 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526 $as_echo "no" >&6; }
12531 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12534 if test -n "$OBJDUMP_FOR_TARGET"; then
12535 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12536 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12537 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12540 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12541 for ncn_progname in objdump; do
12542 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12543 set dummy ${ncn_progname}; ac_word=$2
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12545 $as_echo_n "checking for $ac_word... " >&6; }
12546 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12547 $as_echo_n "(cached) " >&6
12549 if test -n "$OBJDUMP_FOR_TARGET"; then
12550 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12553 for as_dir in $PATH
12556 test -z "$as_dir" && as_dir=.
12557 for ac_exec_ext in '' $ac_executable_extensions; do
12558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12559 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12569 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12570 if test -n "$OBJDUMP_FOR_TARGET"; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12572 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 $as_echo "no" >&6; }
12582 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12583 for ncn_progname in objdump; do
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12585 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12586 if test -x $with_build_time_tools/${ncn_progname}; then
12587 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12589 $as_echo "yes" >&6; }
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12593 $as_echo "no" >&6; }
12598 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12599 for ncn_progname in objdump; do
12600 if test -n "$ncn_target_tool_prefix"; then
12601 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12602 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12604 $as_echo_n "checking for $ac_word... " >&6; }
12605 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12606 $as_echo_n "(cached) " >&6
12608 if test -n "$OBJDUMP_FOR_TARGET"; then
12609 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12612 for as_dir in $PATH
12615 test -z "$as_dir" && as_dir=.
12616 for ac_exec_ext in '' $ac_executable_extensions; do
12617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12618 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12628 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12629 if test -n "$OBJDUMP_FOR_TARGET"; then
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12631 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12639 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12641 set dummy ${ncn_progname}; ac_word=$2
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643 $as_echo_n "checking for $ac_word... " >&6; }
12644 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12645 $as_echo_n "(cached) " >&6
12647 if test -n "$OBJDUMP_FOR_TARGET"; then
12648 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12651 for as_dir in $PATH
12654 test -z "$as_dir" && as_dir=.
12655 for ac_exec_ext in '' $ac_executable_extensions; do
12656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12657 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12667 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12668 if test -n "$OBJDUMP_FOR_TARGET"; then
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12670 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673 $as_echo "no" >&6; }
12678 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12682 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12684 if test $build = $target ; then
12685 OBJDUMP_FOR_TARGET="$2"
12687 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12690 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12694 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12700 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12701 if test -n "$with_build_time_tools"; then
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12703 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12704 if test -x $with_build_time_tools/ranlib; then
12705 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12706 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12708 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12711 $as_echo "no" >&6; }
12713 elif test $build != $host && test $have_gcc_for_target = yes; then
12714 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12715 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12716 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12719 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12720 # Extract the first word of "ranlib", so it can be a program name with args.
12721 set dummy ranlib; ac_word=$2
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12723 $as_echo_n "checking for $ac_word... " >&6; }
12724 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12725 $as_echo_n "(cached) " >&6
12727 case $RANLIB_FOR_TARGET in
12729 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733 for as_dir in $gcc_cv_tool_dirs
12736 test -z "$as_dir" && as_dir=.
12737 for ac_exec_ext in '' $ac_executable_extensions; do
12738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12739 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12750 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12751 if test -n "$RANLIB_FOR_TARGET"; then
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12753 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756 $as_echo "no" >&6; }
12761 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12764 if test -n "$RANLIB_FOR_TARGET"; then
12765 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12766 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12767 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12770 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12771 for ncn_progname in ranlib; do
12772 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12773 set dummy ${ncn_progname}; ac_word=$2
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12775 $as_echo_n "checking for $ac_word... " >&6; }
12776 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12777 $as_echo_n "(cached) " >&6
12779 if test -n "$RANLIB_FOR_TARGET"; then
12780 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12783 for as_dir in $PATH
12786 test -z "$as_dir" && as_dir=.
12787 for ac_exec_ext in '' $ac_executable_extensions; do
12788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12789 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12799 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12800 if test -n "$RANLIB_FOR_TARGET"; then
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12802 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805 $as_echo "no" >&6; }
12812 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12813 for ncn_progname in ranlib; do
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12815 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12816 if test -x $with_build_time_tools/${ncn_progname}; then
12817 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12819 $as_echo "yes" >&6; }
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12823 $as_echo "no" >&6; }
12828 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12829 for ncn_progname in ranlib; do
12830 if test -n "$ncn_target_tool_prefix"; then
12831 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12832 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12834 $as_echo_n "checking for $ac_word... " >&6; }
12835 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12836 $as_echo_n "(cached) " >&6
12838 if test -n "$RANLIB_FOR_TARGET"; then
12839 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842 for as_dir in $PATH
12845 test -z "$as_dir" && as_dir=.
12846 for ac_exec_ext in '' $ac_executable_extensions; do
12847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12848 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12858 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12859 if test -n "$RANLIB_FOR_TARGET"; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12861 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864 $as_echo "no" >&6; }
12869 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12871 set dummy ${ncn_progname}; ac_word=$2
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12873 $as_echo_n "checking for $ac_word... " >&6; }
12874 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12875 $as_echo_n "(cached) " >&6
12877 if test -n "$RANLIB_FOR_TARGET"; then
12878 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881 for as_dir in $PATH
12884 test -z "$as_dir" && as_dir=.
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12887 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12897 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12898 if test -n "$RANLIB_FOR_TARGET"; then
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12900 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903 $as_echo "no" >&6; }
12908 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12912 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12914 if test $build = $target ; then
12915 RANLIB_FOR_TARGET="$2"
12917 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12920 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12924 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12930 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12931 if test -n "$with_build_time_tools"; then
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12933 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12934 if test -x $with_build_time_tools/strip; then
12935 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12936 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12938 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941 $as_echo "no" >&6; }
12943 elif test $build != $host && test $have_gcc_for_target = yes; then
12944 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12945 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12946 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12949 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12950 # Extract the first word of "strip", so it can be a program name with args.
12951 set dummy strip; ac_word=$2
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12953 $as_echo_n "checking for $ac_word... " >&6; }
12954 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12955 $as_echo_n "(cached) " >&6
12957 case $STRIP_FOR_TARGET in
12959 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963 for as_dir in $gcc_cv_tool_dirs
12966 test -z "$as_dir" && as_dir=.
12967 for ac_exec_ext in '' $ac_executable_extensions; do
12968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12969 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12980 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12981 if test -n "$STRIP_FOR_TARGET"; then
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12983 $as_echo "$STRIP_FOR_TARGET" >&6; }
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986 $as_echo "no" >&6; }
12991 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12994 if test -n "$STRIP_FOR_TARGET"; then
12995 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12996 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12997 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13000 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13001 for ncn_progname in strip; do
13002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13003 set dummy ${ncn_progname}; ac_word=$2
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13005 $as_echo_n "checking for $ac_word... " >&6; }
13006 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13007 $as_echo_n "(cached) " >&6
13009 if test -n "$STRIP_FOR_TARGET"; then
13010 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13013 for as_dir in $PATH
13016 test -z "$as_dir" && as_dir=.
13017 for ac_exec_ext in '' $ac_executable_extensions; do
13018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13019 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13029 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13030 if test -n "$STRIP_FOR_TARGET"; then
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13032 $as_echo "$STRIP_FOR_TARGET" >&6; }
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13035 $as_echo "no" >&6; }
13042 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13043 for ncn_progname in strip; do
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13045 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13046 if test -x $with_build_time_tools/${ncn_progname}; then
13047 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13049 $as_echo "yes" >&6; }
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053 $as_echo "no" >&6; }
13058 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13059 for ncn_progname in strip; do
13060 if test -n "$ncn_target_tool_prefix"; then
13061 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13062 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064 $as_echo_n "checking for $ac_word... " >&6; }
13065 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13066 $as_echo_n "(cached) " >&6
13068 if test -n "$STRIP_FOR_TARGET"; then
13069 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072 for as_dir in $PATH
13075 test -z "$as_dir" && as_dir=.
13076 for ac_exec_ext in '' $ac_executable_extensions; do
13077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13078 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13088 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13089 if test -n "$STRIP_FOR_TARGET"; then
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13091 $as_echo "$STRIP_FOR_TARGET" >&6; }
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13094 $as_echo "no" >&6; }
13099 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13101 set dummy ${ncn_progname}; ac_word=$2
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13103 $as_echo_n "checking for $ac_word... " >&6; }
13104 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13105 $as_echo_n "(cached) " >&6
13107 if test -n "$STRIP_FOR_TARGET"; then
13108 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13111 for as_dir in $PATH
13114 test -z "$as_dir" && as_dir=.
13115 for ac_exec_ext in '' $ac_executable_extensions; do
13116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13117 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13127 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13128 if test -n "$STRIP_FOR_TARGET"; then
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13130 $as_echo "$STRIP_FOR_TARGET" >&6; }
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133 $as_echo "no" >&6; }
13138 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13142 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13144 if test $build = $target ; then
13145 STRIP_FOR_TARGET="$2"
13147 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13150 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13154 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13160 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13161 if test -n "$with_build_time_tools"; then
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13163 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13164 if test -x $with_build_time_tools/windres; then
13165 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13166 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13168 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13171 $as_echo "no" >&6; }
13173 elif test $build != $host && test $have_gcc_for_target = yes; then
13174 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13175 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13176 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13179 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13180 # Extract the first word of "windres", so it can be a program name with args.
13181 set dummy windres; ac_word=$2
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13183 $as_echo_n "checking for $ac_word... " >&6; }
13184 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13185 $as_echo_n "(cached) " >&6
13187 case $WINDRES_FOR_TARGET in
13189 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193 for as_dir in $gcc_cv_tool_dirs
13196 test -z "$as_dir" && as_dir=.
13197 for ac_exec_ext in '' $ac_executable_extensions; do
13198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13199 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13210 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13211 if test -n "$WINDRES_FOR_TARGET"; then
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13213 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216 $as_echo "no" >&6; }
13221 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13224 if test -n "$WINDRES_FOR_TARGET"; then
13225 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13226 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13227 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13230 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13231 for ncn_progname in windres; do
13232 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13233 set dummy ${ncn_progname}; ac_word=$2
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13235 $as_echo_n "checking for $ac_word... " >&6; }
13236 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13237 $as_echo_n "(cached) " >&6
13239 if test -n "$WINDRES_FOR_TARGET"; then
13240 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13243 for as_dir in $PATH
13246 test -z "$as_dir" && as_dir=.
13247 for ac_exec_ext in '' $ac_executable_extensions; do
13248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13249 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13259 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13260 if test -n "$WINDRES_FOR_TARGET"; then
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13262 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265 $as_echo "no" >&6; }
13272 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13273 for ncn_progname in windres; do
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13275 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13276 if test -x $with_build_time_tools/${ncn_progname}; then
13277 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13279 $as_echo "yes" >&6; }
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283 $as_echo "no" >&6; }
13288 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13289 for ncn_progname in windres; do
13290 if test -n "$ncn_target_tool_prefix"; then
13291 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13292 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13294 $as_echo_n "checking for $ac_word... " >&6; }
13295 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13296 $as_echo_n "(cached) " >&6
13298 if test -n "$WINDRES_FOR_TARGET"; then
13299 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13302 for as_dir in $PATH
13305 test -z "$as_dir" && as_dir=.
13306 for ac_exec_ext in '' $ac_executable_extensions; do
13307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13308 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13318 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13319 if test -n "$WINDRES_FOR_TARGET"; then
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13321 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13324 $as_echo "no" >&6; }
13329 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13331 set dummy ${ncn_progname}; ac_word=$2
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13333 $as_echo_n "checking for $ac_word... " >&6; }
13334 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13335 $as_echo_n "(cached) " >&6
13337 if test -n "$WINDRES_FOR_TARGET"; then
13338 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13341 for as_dir in $PATH
13344 test -z "$as_dir" && as_dir=.
13345 for ac_exec_ext in '' $ac_executable_extensions; do
13346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13347 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13357 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13358 if test -n "$WINDRES_FOR_TARGET"; then
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13360 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363 $as_echo "no" >&6; }
13368 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13372 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13374 if test $build = $target ; then
13375 WINDRES_FOR_TARGET="$2"
13377 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13380 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13384 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13390 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13391 if test -n "$with_build_time_tools"; then
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13393 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13394 if test -x $with_build_time_tools/windmc; then
13395 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13396 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13398 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13401 $as_echo "no" >&6; }
13403 elif test $build != $host && test $have_gcc_for_target = yes; then
13404 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13405 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13406 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13409 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13410 # Extract the first word of "windmc", so it can be a program name with args.
13411 set dummy windmc; ac_word=$2
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13413 $as_echo_n "checking for $ac_word... " >&6; }
13414 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13415 $as_echo_n "(cached) " >&6
13417 case $WINDMC_FOR_TARGET in
13419 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13423 for as_dir in $gcc_cv_tool_dirs
13426 test -z "$as_dir" && as_dir=.
13427 for ac_exec_ext in '' $ac_executable_extensions; do
13428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13429 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13440 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13441 if test -n "$WINDMC_FOR_TARGET"; then
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13443 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13446 $as_echo "no" >&6; }
13451 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13454 if test -n "$WINDMC_FOR_TARGET"; then
13455 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13456 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13457 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13460 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13461 for ncn_progname in windmc; do
13462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13463 set dummy ${ncn_progname}; ac_word=$2
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13465 $as_echo_n "checking for $ac_word... " >&6; }
13466 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13467 $as_echo_n "(cached) " >&6
13469 if test -n "$WINDMC_FOR_TARGET"; then
13470 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13473 for as_dir in $PATH
13476 test -z "$as_dir" && as_dir=.
13477 for ac_exec_ext in '' $ac_executable_extensions; do
13478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13479 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13489 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13490 if test -n "$WINDMC_FOR_TARGET"; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13492 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13495 $as_echo "no" >&6; }
13502 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13503 for ncn_progname in windmc; do
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13505 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13506 if test -x $with_build_time_tools/${ncn_progname}; then
13507 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13509 $as_echo "yes" >&6; }
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13513 $as_echo "no" >&6; }
13518 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13519 for ncn_progname in windmc; do
13520 if test -n "$ncn_target_tool_prefix"; then
13521 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13522 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13524 $as_echo_n "checking for $ac_word... " >&6; }
13525 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13526 $as_echo_n "(cached) " >&6
13528 if test -n "$WINDMC_FOR_TARGET"; then
13529 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13532 for as_dir in $PATH
13535 test -z "$as_dir" && as_dir=.
13536 for ac_exec_ext in '' $ac_executable_extensions; do
13537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13538 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13548 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13549 if test -n "$WINDMC_FOR_TARGET"; then
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13551 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13554 $as_echo "no" >&6; }
13559 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13561 set dummy ${ncn_progname}; ac_word=$2
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13563 $as_echo_n "checking for $ac_word... " >&6; }
13564 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13565 $as_echo_n "(cached) " >&6
13567 if test -n "$WINDMC_FOR_TARGET"; then
13568 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571 for as_dir in $PATH
13574 test -z "$as_dir" && as_dir=.
13575 for ac_exec_ext in '' $ac_executable_extensions; do
13576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13577 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13587 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13588 if test -n "$WINDMC_FOR_TARGET"; then
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13590 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593 $as_echo "no" >&6; }
13598 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13602 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13604 if test $build = $target ; then
13605 WINDMC_FOR_TARGET="$2"
13607 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13610 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13614 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13618 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13621 $as_echo_n "checking where to find the target ar... " >&6; }
13622 if test "x${build}" != "x${host}" ; then
13623 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13624 # We already found the complete path
13625 ac_dir=`dirname $AR_FOR_TARGET`
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13627 $as_echo "pre-installed in $ac_dir" >&6; }
13629 # Canadian cross, just use what we found
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13631 $as_echo "pre-installed" >&6; }
13635 case " ${configdirs} " in
13640 if test $ok = yes; then
13641 # An in-tree tool is available and we can use it
13642 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13644 $as_echo "just compiled" >&6; }
13645 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13646 # We already found the complete path
13647 ac_dir=`dirname $AR_FOR_TARGET`
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13649 $as_echo "pre-installed in $ac_dir" >&6; }
13650 elif test "x$target" = "x$host"; then
13651 # We can use an host tool
13652 AR_FOR_TARGET='$(AR)'
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13654 $as_echo "host tool" >&6; }
13656 # We need a cross tool
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13658 $as_echo "pre-installed" >&6; }
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13663 $as_echo_n "checking where to find the target as... " >&6; }
13664 if test "x${build}" != "x${host}" ; then
13665 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13666 # We already found the complete path
13667 ac_dir=`dirname $AS_FOR_TARGET`
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13669 $as_echo "pre-installed in $ac_dir" >&6; }
13671 # Canadian cross, just use what we found
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13673 $as_echo "pre-installed" >&6; }
13677 case " ${configdirs} " in
13682 if test $ok = yes; then
13683 # An in-tree tool is available and we can use it
13684 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13686 $as_echo "just compiled" >&6; }
13687 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13688 # We already found the complete path
13689 ac_dir=`dirname $AS_FOR_TARGET`
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13691 $as_echo "pre-installed in $ac_dir" >&6; }
13692 elif test "x$target" = "x$host"; then
13693 # We can use an host tool
13694 AS_FOR_TARGET='$(AS)'
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13696 $as_echo "host tool" >&6; }
13698 # We need a cross tool
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13700 $as_echo "pre-installed" >&6; }
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13705 $as_echo_n "checking where to find the target cc... " >&6; }
13706 if test "x${build}" != "x${host}" ; then
13707 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13708 # We already found the complete path
13709 ac_dir=`dirname $CC_FOR_TARGET`
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13711 $as_echo "pre-installed in $ac_dir" >&6; }
13713 # Canadian cross, just use what we found
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13715 $as_echo "pre-installed" >&6; }
13719 case " ${configdirs} " in
13724 if test $ok = yes; then
13725 # An in-tree tool is available and we can use it
13726 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13728 $as_echo "just compiled" >&6; }
13729 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13730 # We already found the complete path
13731 ac_dir=`dirname $CC_FOR_TARGET`
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13733 $as_echo "pre-installed in $ac_dir" >&6; }
13734 elif test "x$target" = "x$host"; then
13735 # We can use an host tool
13736 CC_FOR_TARGET='$(CC)'
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13738 $as_echo "host tool" >&6; }
13740 # We need a cross tool
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13742 $as_echo "pre-installed" >&6; }
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13747 $as_echo_n "checking where to find the target c++... " >&6; }
13748 if test "x${build}" != "x${host}" ; then
13749 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13750 # We already found the complete path
13751 ac_dir=`dirname $CXX_FOR_TARGET`
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13753 $as_echo "pre-installed in $ac_dir" >&6; }
13755 # Canadian cross, just use what we found
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13757 $as_echo "pre-installed" >&6; }
13761 case " ${configdirs} " in
13765 case ,${enable_languages}, in
13769 if test $ok = yes; then
13770 # An in-tree tool is available and we can use it
13771 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'
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13773 $as_echo "just compiled" >&6; }
13774 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13775 # We already found the complete path
13776 ac_dir=`dirname $CXX_FOR_TARGET`
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13778 $as_echo "pre-installed in $ac_dir" >&6; }
13779 elif test "x$target" = "x$host"; then
13780 # We can use an host tool
13781 CXX_FOR_TARGET='$(CXX)'
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13783 $as_echo "host tool" >&6; }
13785 # We need a cross tool
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13787 $as_echo "pre-installed" >&6; }
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13792 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13793 if test "x${build}" != "x${host}" ; then
13794 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13795 # We already found the complete path
13796 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13798 $as_echo "pre-installed in $ac_dir" >&6; }
13800 # Canadian cross, just use what we found
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13802 $as_echo "pre-installed" >&6; }
13806 case " ${configdirs} " in
13810 case ,${enable_languages}, in
13814 if test $ok = yes; then
13815 # An in-tree tool is available and we can use it
13816 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'
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13818 $as_echo "just compiled" >&6; }
13819 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13820 # We already found the complete path
13821 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13823 $as_echo "pre-installed in $ac_dir" >&6; }
13824 elif test "x$target" = "x$host"; then
13825 # We can use an host tool
13826 RAW_CXX_FOR_TARGET='$(CXX)'
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13828 $as_echo "host tool" >&6; }
13830 # We need a cross tool
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13832 $as_echo "pre-installed" >&6; }
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13837 $as_echo_n "checking where to find the target dlltool... " >&6; }
13838 if test "x${build}" != "x${host}" ; then
13839 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13840 # We already found the complete path
13841 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13843 $as_echo "pre-installed in $ac_dir" >&6; }
13845 # Canadian cross, just use what we found
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13847 $as_echo "pre-installed" >&6; }
13851 case " ${configdirs} " in
13856 if test $ok = yes; then
13857 # An in-tree tool is available and we can use it
13858 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13860 $as_echo "just compiled" >&6; }
13861 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13862 # We already found the complete path
13863 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13865 $as_echo "pre-installed in $ac_dir" >&6; }
13866 elif test "x$target" = "x$host"; then
13867 # We can use an host tool
13868 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13870 $as_echo "host tool" >&6; }
13872 # We need a cross tool
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13874 $as_echo "pre-installed" >&6; }
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13879 $as_echo_n "checking where to find the target gcc... " >&6; }
13880 if test "x${build}" != "x${host}" ; then
13881 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13882 # We already found the complete path
13883 ac_dir=`dirname $GCC_FOR_TARGET`
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13885 $as_echo "pre-installed in $ac_dir" >&6; }
13887 # Canadian cross, just use what we found
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13889 $as_echo "pre-installed" >&6; }
13893 case " ${configdirs} " in
13898 if test $ok = yes; then
13899 # An in-tree tool is available and we can use it
13900 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13902 $as_echo "just compiled" >&6; }
13903 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13904 # We already found the complete path
13905 ac_dir=`dirname $GCC_FOR_TARGET`
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13907 $as_echo "pre-installed in $ac_dir" >&6; }
13908 elif test "x$target" = "x$host"; then
13909 # We can use an host tool
13910 GCC_FOR_TARGET='$()'
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13912 $as_echo "host tool" >&6; }
13914 # We need a cross tool
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13916 $as_echo "pre-installed" >&6; }
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13921 $as_echo_n "checking where to find the target gcj... " >&6; }
13922 if test "x${build}" != "x${host}" ; then
13923 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13924 # We already found the complete path
13925 ac_dir=`dirname $GCJ_FOR_TARGET`
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13927 $as_echo "pre-installed in $ac_dir" >&6; }
13929 # Canadian cross, just use what we found
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13931 $as_echo "pre-installed" >&6; }
13935 case " ${configdirs} " in
13939 case ,${enable_languages}, in
13943 if test $ok = yes; then
13944 # An in-tree tool is available and we can use it
13945 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13947 $as_echo "just compiled" >&6; }
13948 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13949 # We already found the complete path
13950 ac_dir=`dirname $GCJ_FOR_TARGET`
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13952 $as_echo "pre-installed in $ac_dir" >&6; }
13953 elif test "x$target" = "x$host"; then
13954 # We can use an host tool
13955 GCJ_FOR_TARGET='$(GCJ)'
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13957 $as_echo "host tool" >&6; }
13959 # We need a cross tool
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13961 $as_echo "pre-installed" >&6; }
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13966 $as_echo_n "checking where to find the target gfortran... " >&6; }
13967 if test "x${build}" != "x${host}" ; then
13968 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13969 # We already found the complete path
13970 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13972 $as_echo "pre-installed in $ac_dir" >&6; }
13974 # Canadian cross, just use what we found
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13976 $as_echo "pre-installed" >&6; }
13980 case " ${configdirs} " in
13984 case ,${enable_languages}, in
13988 if test $ok = yes; then
13989 # An in-tree tool is available and we can use it
13990 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13992 $as_echo "just compiled" >&6; }
13993 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13994 # We already found the complete path
13995 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13997 $as_echo "pre-installed in $ac_dir" >&6; }
13998 elif test "x$target" = "x$host"; then
13999 # We can use an host tool
14000 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14002 $as_echo "host tool" >&6; }
14004 # We need a cross tool
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14006 $as_echo "pre-installed" >&6; }
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14011 $as_echo_n "checking where to find the target ld... " >&6; }
14012 if test "x${build}" != "x${host}" ; then
14013 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14014 # We already found the complete path
14015 ac_dir=`dirname $LD_FOR_TARGET`
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14017 $as_echo "pre-installed in $ac_dir" >&6; }
14019 # Canadian cross, just use what we found
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14021 $as_echo "pre-installed" >&6; }
14025 case " ${configdirs} " in
14030 if test $ok = yes; then
14031 # An in-tree tool is available and we can use it
14032 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14034 $as_echo "just compiled" >&6; }
14035 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14036 # We already found the complete path
14037 ac_dir=`dirname $LD_FOR_TARGET`
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14039 $as_echo "pre-installed in $ac_dir" >&6; }
14040 elif test "x$target" = "x$host"; then
14041 # We can use an host tool
14042 LD_FOR_TARGET='$(LD)'
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14044 $as_echo "host tool" >&6; }
14046 # We need a cross tool
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14048 $as_echo "pre-installed" >&6; }
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14053 $as_echo_n "checking where to find the target lipo... " >&6; }
14054 if test "x${build}" != "x${host}" ; then
14055 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14056 # We already found the complete path
14057 ac_dir=`dirname $LIPO_FOR_TARGET`
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14059 $as_echo "pre-installed in $ac_dir" >&6; }
14061 # Canadian cross, just use what we found
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14063 $as_echo "pre-installed" >&6; }
14066 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14067 # We already found the complete path
14068 ac_dir=`dirname $LIPO_FOR_TARGET`
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14070 $as_echo "pre-installed in $ac_dir" >&6; }
14071 elif test "x$target" = "x$host"; then
14072 # We can use an host tool
14073 LIPO_FOR_TARGET='$(LIPO)'
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14075 $as_echo "host tool" >&6; }
14077 # We need a cross tool
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14079 $as_echo "pre-installed" >&6; }
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14084 $as_echo_n "checking where to find the target nm... " >&6; }
14085 if test "x${build}" != "x${host}" ; then
14086 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14087 # We already found the complete path
14088 ac_dir=`dirname $NM_FOR_TARGET`
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14090 $as_echo "pre-installed in $ac_dir" >&6; }
14092 # Canadian cross, just use what we found
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14094 $as_echo "pre-installed" >&6; }
14098 case " ${configdirs} " in
14103 if test $ok = yes; then
14104 # An in-tree tool is available and we can use it
14105 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14107 $as_echo "just compiled" >&6; }
14108 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14109 # We already found the complete path
14110 ac_dir=`dirname $NM_FOR_TARGET`
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14112 $as_echo "pre-installed in $ac_dir" >&6; }
14113 elif test "x$target" = "x$host"; then
14114 # We can use an host tool
14115 NM_FOR_TARGET='$(NM)'
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14117 $as_echo "host tool" >&6; }
14119 # We need a cross tool
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14121 $as_echo "pre-installed" >&6; }
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14126 $as_echo_n "checking where to find the target objdump... " >&6; }
14127 if test "x${build}" != "x${host}" ; then
14128 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14129 # We already found the complete path
14130 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14132 $as_echo "pre-installed in $ac_dir" >&6; }
14134 # Canadian cross, just use what we found
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14136 $as_echo "pre-installed" >&6; }
14140 case " ${configdirs} " in
14145 if test $ok = yes; then
14146 # An in-tree tool is available and we can use it
14147 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14149 $as_echo "just compiled" >&6; }
14150 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14151 # We already found the complete path
14152 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14154 $as_echo "pre-installed in $ac_dir" >&6; }
14155 elif test "x$target" = "x$host"; then
14156 # We can use an host tool
14157 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14159 $as_echo "host tool" >&6; }
14161 # We need a cross tool
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14163 $as_echo "pre-installed" >&6; }
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14168 $as_echo_n "checking where to find the target ranlib... " >&6; }
14169 if test "x${build}" != "x${host}" ; then
14170 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14171 # We already found the complete path
14172 ac_dir=`dirname $RANLIB_FOR_TARGET`
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14174 $as_echo "pre-installed in $ac_dir" >&6; }
14176 # Canadian cross, just use what we found
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14178 $as_echo "pre-installed" >&6; }
14182 case " ${configdirs} " in
14187 if test $ok = yes; then
14188 # An in-tree tool is available and we can use it
14189 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14191 $as_echo "just compiled" >&6; }
14192 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14193 # We already found the complete path
14194 ac_dir=`dirname $RANLIB_FOR_TARGET`
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14196 $as_echo "pre-installed in $ac_dir" >&6; }
14197 elif test "x$target" = "x$host"; then
14198 # We can use an host tool
14199 RANLIB_FOR_TARGET='$(RANLIB)'
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14201 $as_echo "host tool" >&6; }
14203 # We need a cross tool
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14205 $as_echo "pre-installed" >&6; }
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14210 $as_echo_n "checking where to find the target strip... " >&6; }
14211 if test "x${build}" != "x${host}" ; then
14212 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14213 # We already found the complete path
14214 ac_dir=`dirname $STRIP_FOR_TARGET`
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14216 $as_echo "pre-installed in $ac_dir" >&6; }
14218 # Canadian cross, just use what we found
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14220 $as_echo "pre-installed" >&6; }
14224 case " ${configdirs} " in
14229 if test $ok = yes; then
14230 # An in-tree tool is available and we can use it
14231 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14233 $as_echo "just compiled" >&6; }
14234 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14235 # We already found the complete path
14236 ac_dir=`dirname $STRIP_FOR_TARGET`
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14238 $as_echo "pre-installed in $ac_dir" >&6; }
14239 elif test "x$target" = "x$host"; then
14240 # We can use an host tool
14241 STRIP_FOR_TARGET='$(STRIP)'
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14243 $as_echo "host tool" >&6; }
14245 # We need a cross tool
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14247 $as_echo "pre-installed" >&6; }
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14252 $as_echo_n "checking where to find the target windres... " >&6; }
14253 if test "x${build}" != "x${host}" ; then
14254 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14255 # We already found the complete path
14256 ac_dir=`dirname $WINDRES_FOR_TARGET`
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14258 $as_echo "pre-installed in $ac_dir" >&6; }
14260 # Canadian cross, just use what we found
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14262 $as_echo "pre-installed" >&6; }
14266 case " ${configdirs} " in
14271 if test $ok = yes; then
14272 # An in-tree tool is available and we can use it
14273 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14275 $as_echo "just compiled" >&6; }
14276 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14277 # We already found the complete path
14278 ac_dir=`dirname $WINDRES_FOR_TARGET`
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14280 $as_echo "pre-installed in $ac_dir" >&6; }
14281 elif test "x$target" = "x$host"; then
14282 # We can use an host tool
14283 WINDRES_FOR_TARGET='$(WINDRES)'
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14285 $as_echo "host tool" >&6; }
14287 # We need a cross tool
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14289 $as_echo "pre-installed" >&6; }
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14294 $as_echo_n "checking where to find the target windmc... " >&6; }
14295 if test "x${build}" != "x${host}" ; then
14296 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14297 # We already found the complete path
14298 ac_dir=`dirname $WINDMC_FOR_TARGET`
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14300 $as_echo "pre-installed in $ac_dir" >&6; }
14302 # Canadian cross, just use what we found
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14304 $as_echo "pre-installed" >&6; }
14308 case " ${configdirs} " in
14313 if test $ok = yes; then
14314 # An in-tree tool is available and we can use it
14315 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14317 $as_echo "just compiled" >&6; }
14318 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14319 # We already found the complete path
14320 ac_dir=`dirname $WINDMC_FOR_TARGET`
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14322 $as_echo "pre-installed in $ac_dir" >&6; }
14323 elif test "x$target" = "x$host"; then
14324 # We can use an host tool
14325 WINDMC_FOR_TARGET='$(WINDMC)'
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14327 $as_echo "host tool" >&6; }
14329 # We need a cross tool
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14331 $as_echo "pre-installed" >&6; }
14339 # Certain tools may need extra flags.
14340 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14341 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14342 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14344 # When building target libraries, except in a Canadian cross, we use
14345 # the same toolchain as the compiler we just built.
14346 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14347 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14348 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14349 if test $host = $build; then
14350 case " $configdirs " in
14352 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14353 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14354 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14364 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14365 # Check whether --enable-maintainer-mode was given.
14366 if test "${enable_maintainer_mode+set}" = set; then :
14367 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14369 USE_MAINTAINER_MODE=no
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14373 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14376 if test "$USE_MAINTAINER_MODE" = yes; then
14377 MAINTAINER_MODE_TRUE=
14378 MAINTAINER_MODE_FALSE='#'
14380 MAINTAINER_MODE_TRUE='#'
14381 MAINTAINER_MODE_FALSE=
14383 MAINT=$MAINTAINER_MODE_TRUE
14385 # ---------------------
14386 # GCC bootstrap support
14387 # ---------------------
14389 # Stage specific cflags for build.
14394 yes) stage1_cflags="-g -Wa,-J" ;;
14395 *) stage1_cflags="-g -J" ;;
14399 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
14400 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
14401 saved_CFLAGS="$CFLAGS"
14403 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14404 CFLAGS="$CFLAGS -fkeep-inline-functions"
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14406 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h. */
14410 #if (__GNUC__ < 3) \
14411 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14412 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14413 #error http://gcc.gnu.org/PR29382
14424 if ac_fn_c_try_compile "$LINENO"; then :
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14426 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14429 $as_echo "no" >&6; }
14431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14433 CFLAGS="$saved_CFLAGS"
14438 # Enable --enable-checking in stage1 of the compiler.
14439 # Check whether --enable-stage1-checking was given.
14440 if test "${enable_stage1_checking+set}" = set; then :
14441 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14443 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14444 stage1_checking=--enable-checking=yes,types
14446 stage1_checking=--enable-checking=$enable_checking,types
14452 # Enable -Werror in bootstrap stage2 and later.
14453 # Check whether --enable-werror was given.
14454 if test "${enable_werror+set}" = set; then :
14455 enableval=$enable_werror;
14457 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14464 case ${enable_werror} in
14465 yes) stage2_werror_flag="--enable-werror-always" ;;
14466 *) stage2_werror_flag="" ;;
14470 # Specify what files to not compare during bootstrap.
14472 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14474 hppa*64*-*-hpux*) ;;
14475 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14477 case " $configdirs " in
14478 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14482 ac_config_files="$ac_config_files Makefile"
14484 cat >confcache <<\_ACEOF
14485 # This file is a shell script that caches the results of configure
14486 # tests run on this system so they can be shared between configure
14487 # scripts and configure runs, see configure's option --config-cache.
14488 # It is not useful on other systems. If it contains results you don't
14489 # want to keep, you may remove or edit it.
14491 # config.status only pays attention to the cache file if you give it
14492 # the --recheck option to rerun configure.
14494 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14495 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14496 # following values.
14500 # The following way of writing the cache mishandles newlines in values,
14501 # but we know of no workaround that is simple, portable, and efficient.
14502 # So, we kill variables containing newlines.
14503 # Ultrix sh set writes to stderr and can't be redirected directly,
14504 # and sets the high bit in the cache file unless we assign to the vars.
14506 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14507 eval ac_val=\$$ac_var
14511 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14512 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14515 _ | IFS | as_nl) ;; #(
14516 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14517 *) { eval $ac_var=; unset $ac_var;} ;;
14523 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14524 *${as_nl}ac_space=\ *)
14525 # `set' does not quote correctly, so add quotes: double-quote
14526 # substitution turns \\\\ into \\, and sed turns \\ into \.
14529 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14532 # `set' quotes correctly as required by POSIX, so do not add quotes.
14533 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14542 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14544 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14546 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14547 if test -w "$cache_file"; then
14548 test "x$cache_file" != "x/dev/null" &&
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14550 $as_echo "$as_me: updating cache $cache_file" >&6;}
14551 cat confcache >$cache_file
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14554 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14559 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14560 # Let make expand exec_prefix.
14561 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14563 # Transform confdefs.h into DEFS.
14564 # Protect against shell expansion while executing Makefile rules.
14565 # Protect against Makefile macro expansion.
14567 # If the first sed substitution is executed (which looks for macros that
14568 # take arguments), then branch to the quote section. Otherwise,
14569 # look for a macro that doesn't take arguments.
14579 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14581 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14585 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14598 DEFS=`sed -n "$ac_script" confdefs.h`
14603 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14604 # 1. Remove the extension, and $U if already installed.
14605 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14606 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14607 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14608 # will be set to the directory where LIBOBJS objects are built.
14609 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14610 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14612 LIBOBJS=$ac_libobjs
14614 LTLIBOBJS=$ac_ltlibobjs
14618 : ${CONFIG_STATUS=./config.status}
14620 ac_clean_files_save=$ac_clean_files
14621 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14623 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14625 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14627 # Generated by $as_me.
14628 # Run this file to recreate the current configuration.
14629 # Compiler output produced by configure, useful for debugging
14630 # configure, is in config.log if it exists.
14633 ac_cs_recheck=false
14636 SHELL=\${CONFIG_SHELL-$SHELL}
14639 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14640 ## -------------------- ##
14641 ## M4sh Initialization. ##
14642 ## -------------------- ##
14644 # Be more Bourne compatible
14645 DUALCASE=1; export DUALCASE # for MKS sh
14646 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14649 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14650 # is contrary to our usage. Disable this feature.
14651 alias -g '${1+"$@"}'='"$@"'
14652 setopt NO_GLOB_SUBST
14654 case `(set -o) 2>/dev/null` in #(
14666 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14667 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14668 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14669 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14670 # Prefer a ksh shell builtin over an external printf program on Solaris,
14671 # but without wasting forks for bash or zsh.
14672 if test -z "$BASH_VERSION$ZSH_VERSION" \
14673 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14674 as_echo='print -r --'
14675 as_echo_n='print -rn --'
14676 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14677 as_echo='printf %s\n'
14678 as_echo_n='printf %s'
14680 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14681 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14682 as_echo_n='/usr/ucb/echo -n'
14684 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14685 as_echo_n_body='eval
14689 expr "X$arg" : "X\\(.*\\)$as_nl";
14690 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14692 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14694 export as_echo_n_body
14695 as_echo_n='sh -c $as_echo_n_body as_echo'
14697 export as_echo_body
14698 as_echo='sh -c $as_echo_body as_echo'
14701 # The user is always right.
14702 if test "${PATH_SEPARATOR+set}" != set; then
14704 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14705 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14712 # We need space, tab and new line, in precisely that order. Quoting is
14713 # there to prevent editors from complaining about space-tab.
14714 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14715 # splitting by setting IFS to empty value.)
14718 # Find who we are. Look in the path if we contain no directory separator.
14720 *[\\/]* ) as_myself=$0 ;;
14721 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14722 for as_dir in $PATH
14725 test -z "$as_dir" && as_dir=.
14726 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14732 # We did not find ourselves, most probably we were run as `sh COMMAND'
14733 # in which case we are not to be found in the path.
14734 if test "x$as_myself" = x; then
14737 if test ! -f "$as_myself"; then
14738 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14742 # Unset variables that we do not need and which cause bugs (e.g. in
14743 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14744 # suppresses any "Segmentation fault" message there. '((' could
14745 # trigger a bug in pdksh 5.2.14.
14746 for as_var in BASH_ENV ENV MAIL MAILPATH
14747 do eval test x\${$as_var+set} = xset \
14748 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14761 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14764 # as_fn_error ERROR [LINENO LOG_FD]
14765 # ---------------------------------
14766 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14767 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14768 # script with status $?, using 1 if that was 0.
14771 as_status=$?; test $as_status -eq 0 && as_status=1
14773 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14774 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14776 $as_echo "$as_me: error: $1" >&2
14777 as_fn_exit $as_status
14781 # as_fn_set_status STATUS
14782 # -----------------------
14783 # Set $? to STATUS, without forking.
14784 as_fn_set_status ()
14787 } # as_fn_set_status
14789 # as_fn_exit STATUS
14790 # -----------------
14791 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14795 as_fn_set_status $1
14801 # Portably unset VAR.
14804 { eval $1=; unset $1;}
14806 as_unset=as_fn_unset
14807 # as_fn_append VAR VALUE
14808 # ----------------------
14809 # Append the text in VALUE to the end of the definition contained in VAR. Take
14810 # advantage of any shell optimizations that allow amortized linear growth over
14811 # repeated appends, instead of the typical quadratic growth present in naive
14813 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14814 eval 'as_fn_append ()
14825 # as_fn_arith ARG...
14826 # ------------------
14827 # Perform arithmetic evaluation on the ARGs, and store the result in the
14828 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14829 # must be portable across $(()) and expr.
14830 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14831 eval 'as_fn_arith ()
14838 as_val=`expr "$@" || test $? -eq 1`
14843 if expr a : '\(a\)' >/dev/null 2>&1 &&
14844 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14850 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14851 as_basename=basename
14856 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14862 as_me=`$as_basename -- "$0" ||
14863 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14864 X"$0" : 'X\(//\)$' \| \
14865 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14867 sed '/^.*\/\([^/][^/]*\)\/*$/{
14881 # Avoid depending upon Character Ranges.
14882 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14883 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14884 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14885 as_cr_digits='0123456789'
14886 as_cr_alnum=$as_cr_Letters$as_cr_digits
14888 ECHO_C= ECHO_N= ECHO_T=
14889 case `echo -n x` in #(((((
14891 case `echo 'xy\c'` in
14892 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14894 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14901 rm -f conf$$ conf$$.exe conf$$.file
14902 if test -d conf$$.dir; then
14903 rm -f conf$$.dir/conf$$.file
14906 mkdir conf$$.dir 2>/dev/null
14908 if (echo >conf$$.file) 2>/dev/null; then
14909 if ln -s conf$$.file conf$$ 2>/dev/null; then
14911 # ... but there are two gotchas:
14912 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14913 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14914 # In both cases, we have to default to `cp -p'.
14915 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14917 elif ln conf$$.file conf$$ 2>/dev/null; then
14925 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14926 rmdir conf$$.dir 2>/dev/null
14931 # Create "$as_dir" as a directory, including parents if necessary.
14936 -*) as_dir=./$as_dir;;
14938 test -d "$as_dir" || eval $as_mkdir_p || {
14942 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14943 *) as_qdir=$as_dir;;
14945 as_dirs="'$as_qdir' $as_dirs"
14946 as_dir=`$as_dirname -- "$as_dir" ||
14947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14948 X"$as_dir" : 'X\(//\)[^/]' \| \
14949 X"$as_dir" : 'X\(//\)$' \| \
14950 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14951 $as_echo X"$as_dir" |
14952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14956 /^X\(\/\/\)[^/].*/{
14969 test -d "$as_dir" && break
14971 test -z "$as_dirs" || eval "mkdir $as_dirs"
14972 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14976 if mkdir -p . 2>/dev/null; then
14977 as_mkdir_p='mkdir -p "$as_dir"'
14979 test -d ./-p && rmdir ./-p
14983 if test -x / >/dev/null 2>&1; then
14984 as_test_x='test -x'
14986 if ls -dL / >/dev/null 2>&1; then
14993 if test -d "$1"; then
14999 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15000 ???[sx]*):;;*)false;;esac;fi
15004 as_executable_p=$as_test_x
15006 # Sed expression to map a string onto a valid CPP name.
15007 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15009 # Sed expression to map a string onto a valid variable name.
15010 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15014 ## ----------------------------------- ##
15015 ## Main body of $CONFIG_STATUS script. ##
15016 ## ----------------------------------- ##
15018 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15021 # Save the log message, to keep $0 and so on meaningful, and to
15022 # report actual input values of CONFIG_FILES etc. instead of their
15023 # values after options handling.
15025 This file was extended by $as_me, which was
15026 generated by GNU Autoconf 2.64. Invocation command line was
15028 CONFIG_FILES = $CONFIG_FILES
15029 CONFIG_HEADERS = $CONFIG_HEADERS
15030 CONFIG_LINKS = $CONFIG_LINKS
15031 CONFIG_COMMANDS = $CONFIG_COMMANDS
15034 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15039 case $ac_config_files in *"
15040 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15046 # Files that config.status was made for.
15047 config_files="$ac_config_files"
15051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15053 \`$as_me' instantiates files and other configuration actions
15054 from templates according to the current configuration. Unless the files
15055 and actions are specified as TAGs, all are instantiated by default.
15057 Usage: $0 [OPTION]... [TAG]...
15059 -h, --help print this help, then exit
15060 -V, --version print version number and configuration settings, then exit
15061 -q, --quiet, --silent
15062 do not print progress messages
15063 -d, --debug don't remove temporary files
15064 --recheck update $as_me by reconfiguring in the same conditions
15065 --file=FILE[:TEMPLATE]
15066 instantiate the configuration file FILE
15068 Configuration files:
15071 Report bugs to the package provider."
15074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15077 configured by $0, generated by GNU Autoconf 2.64,
15078 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15080 Copyright (C) 2009 Free Software Foundation, Inc.
15081 This config.status script is free software; the Free Software Foundation
15082 gives unlimited permission to copy, distribute and modify it."
15088 test -n "\$AWK" || AWK=awk
15091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15092 # The default lists apply if the user does not specify any file.
15098 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15099 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15110 # Handling of the options.
15111 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15113 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15114 $as_echo "$ac_cs_version"; exit ;;
15115 --debug | --debu | --deb | --de | --d | -d )
15117 --file | --fil | --fi | --f )
15120 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15122 as_fn_append CONFIG_FILES " '$ac_optarg'"
15123 ac_need_defaults=false;;
15124 --he | --h | --help | --hel | -h )
15125 $as_echo "$ac_cs_usage"; exit ;;
15126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15127 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15130 # This is an error.
15131 -*) as_fn_error "unrecognized option: \`$1'
15132 Try \`$0 --help' for more information." ;;
15134 *) as_fn_append ac_config_targets " $1"
15135 ac_need_defaults=false ;;
15141 ac_configure_extra_args=
15143 if $ac_cs_silent; then
15145 ac_configure_extra_args="$ac_configure_extra_args --silent"
15149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15150 if \$ac_cs_recheck; then
15151 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15153 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15154 CONFIG_SHELL='$SHELL'
15155 export CONFIG_SHELL
15160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15164 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15165 ## Running $as_me. ##
15171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15175 extrasub_build="$extrasub_build"
15176 extrasub_host="$extrasub_host"
15177 extrasub_target="$extrasub_target"
15181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15183 # Handling of arguments.
15184 for ac_config_target in $ac_config_targets
15186 case $ac_config_target in
15187 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15189 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15194 # If the user did not use the arguments to specify the items to instantiate,
15195 # then the envvar interface is used. Set only those that are not.
15196 # We use the long form for the default assignment because of an extremely
15197 # bizarre bug on SunOS 4.1.3.
15198 if $ac_need_defaults; then
15199 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15202 # Have a temporary directory for convenience. Make it in the build tree
15203 # simply because there is no reason against having it here, and in addition,
15204 # creating and moving files from /tmp can sometimes cause problems.
15205 # Hook for its removal unless debugging.
15206 # Note that there is a small window in which the directory will not be cleaned:
15207 # after its creation but before its name has been assigned to `$tmp'.
15211 trap 'exit_status=$?
15212 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15214 trap 'as_fn_exit 1' 1 2 13 15
15216 # Create a (secure) tmp directory for tmp files.
15219 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15220 test -n "$tmp" && test -d "$tmp"
15223 tmp=./conf$$-$RANDOM
15224 (umask 077 && mkdir "$tmp")
15225 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15227 # Set up the scripts for CONFIG_FILES section.
15228 # No need to generate them if there are no CONFIG_FILES.
15229 # This happens for instance with `./config.status config.h'.
15230 if test -n "$CONFIG_FILES"; then
15232 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15233 ac_cs_awk_getline=:
15234 ac_cs_awk_pipe_init=
15235 ac_cs_awk_read_file='
15236 while ((getline aline < (F[key])) > 0)
15239 ac_cs_awk_pipe_fini=
15241 ac_cs_awk_getline=false
15242 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15243 ac_cs_awk_read_file='
15245 print "cat " F[key] " &&"
15246 '$ac_cs_awk_pipe_init
15247 # The final `:' finishes the AND list.
15248 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15250 ac_cr=`echo X | tr X '\015'`
15251 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15252 # But we know of no other shell where ac_cr would be empty at this
15253 # point, so we can use a bashism as a fallback.
15254 if test "x$ac_cr" = x; then
15255 eval ac_cr=\$\'\\r\'
15257 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15258 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15261 ac_cs_awk_cr=$ac_cr
15264 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15267 # Create commands to substitute file output variables.
15269 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15270 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15271 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15274 } >conf$$files.sh &&
15275 . ./conf$$files.sh ||
15276 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15277 rm -f conf$$files.sh
15280 echo "cat >conf$$subs.awk <<_ACEOF" &&
15281 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15283 } >conf$$subs.sh ||
15284 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15285 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15287 for ac_last_try in false false false false false :; do
15288 . ./conf$$subs.sh ||
15289 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15291 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15292 if test $ac_delim_n = $ac_delim_num; then
15294 elif $ac_last_try; then
15295 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15297 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15300 rm -f conf$$subs.sh
15302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15303 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15307 s/^/S["/; s/!.*/"]=/
15317 s/\(.\{148\}\).*/\1/
15319 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15324 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15331 s/\(.\{148\}\).*/\1/
15333 s/["\\]/\\&/g; s/^/"/; s/$/"/
15337 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15342 ' <conf$$subs.awk | sed '
15347 ' >>$CONFIG_STATUS || ac_write_fail=1
15348 rm -f conf$$subs.awk
15349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15351 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15352 for (key in S) S_is_set[key] = 1
15354 \$ac_cs_awk_pipe_init
15358 nfields = split(line, field, "@")
15360 len = length(field[1])
15361 for (i = 2; i < nfields; i++) {
15363 keylen = length(key)
15364 if (S_is_set[key]) {
15366 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15367 len += length(value) + length(field[++i])
15372 if (nfields == 3 && !substed) {
15374 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15375 \$ac_cs_awk_read_file
15381 \$ac_cs_awk_pipe_fini
15384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15385 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15386 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15389 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15390 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15393 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15394 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15395 # trailing colons and then remove the whole line if VPATH becomes empty
15396 # (actually we leave an empty line to preserve line numbers).
15397 if test "x$srcdir" = x.; then
15398 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15399 s/:*\$(srcdir):*/:/
15400 s/:*\${srcdir}:*/:/
15402 s/^\([^=]*=[ ]*\):*/\1/
15408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15409 fi # test -n "$CONFIG_FILES"
15412 eval set X " :F $CONFIG_FILES "
15417 :[FHLC]) ac_mode=$ac_tag; continue;;
15419 case $ac_mode$ac_tag in
15421 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15422 :[FH]-) ac_tag=-:-;;
15423 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15440 -) ac_f="$tmp/stdin";;
15441 *) # Look for the file first in the build tree, then in the source tree
15442 # (if the path is not absolute). The absolute path cannot be DOS-style,
15443 # because $ac_f cannot contain `:'.
15447 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15449 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15451 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15452 as_fn_append ac_file_inputs " '$ac_f'"
15455 # Let's still pretend it is `configure' which instantiates (i.e., don't
15456 # use $as_me), people would be surprised to read:
15457 # /* config.h. Generated by config.status. */
15458 configure_input='Generated from '`
15459 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15461 if test x"$ac_file" != x-; then
15462 configure_input="$ac_file. $configure_input"
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15464 $as_echo "$as_me: creating $ac_file" >&6;}
15466 # Neutralize special characters interpreted by sed in replacement strings.
15467 case $configure_input in #(
15468 *\&* | *\|* | *\\* )
15469 ac_sed_conf_input=`$as_echo "$configure_input" |
15470 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15471 *) ac_sed_conf_input=$configure_input;;
15475 *:-:* | *:-) cat >"$tmp/stdin" \
15476 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15481 ac_dir=`$as_dirname -- "$ac_file" ||
15482 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15483 X"$ac_file" : 'X\(//\)[^/]' \| \
15484 X"$ac_file" : 'X\(//\)$' \| \
15485 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15486 $as_echo X"$ac_file" |
15487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15491 /^X\(\/\/\)[^/].*/{
15504 as_dir="$ac_dir"; as_fn_mkdir_p
15508 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15510 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15511 # A ".." for each directory in $ac_dir_suffix.
15512 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15513 case $ac_top_builddir_sub in
15514 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15515 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15518 ac_abs_top_builddir=$ac_pwd
15519 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15520 # for backward compatibility:
15521 ac_top_builddir=$ac_top_build_prefix
15524 .) # We are building in place.
15526 ac_top_srcdir=$ac_top_builddir_sub
15527 ac_abs_top_srcdir=$ac_pwd ;;
15528 [\\/]* | ?:[\\/]* ) # Absolute name.
15529 ac_srcdir=$srcdir$ac_dir_suffix;
15530 ac_top_srcdir=$srcdir
15531 ac_abs_top_srcdir=$srcdir ;;
15532 *) # Relative name.
15533 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15534 ac_top_srcdir=$ac_top_build_prefix$srcdir
15535 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15537 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15547 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15548 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15553 # If the template does not know about datarootdir, expand it.
15554 # FIXME: This hack should be removed a few years after 2.60.
15555 ac_datarootdir_hack=; ac_datarootdir_seen=
15566 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15567 *datarootdir*) ac_datarootdir_seen=yes;;
15568 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15570 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15573 ac_datarootdir_hack='
15574 s&@datadir@&$datadir&g
15575 s&@docdir@&$docdir&g
15576 s&@infodir@&$infodir&g
15577 s&@localedir@&$localedir&g
15578 s&@mandir@&$mandir&g
15579 s&\\\${datarootdir}&$datarootdir&g' ;;
15583 # Neutralize VPATH when `$srcdir' = `.'.
15584 # Shell code in configure.ac might set extrasub.
15585 # FIXME: do we really want to maintain this feature?
15586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15587 ac_sed_extra="$ac_vpsub
15590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15592 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15593 s|@configure_input@|$ac_sed_conf_input|;t t
15594 s&@top_builddir@&$ac_top_builddir_sub&;t t
15595 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15596 s&@srcdir@&$ac_srcdir&;t t
15597 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15598 s&@top_srcdir@&$ac_top_srcdir&;t t
15599 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15600 s&@builddir@&$ac_builddir&;t t
15601 s&@abs_builddir@&$ac_abs_builddir&;t t
15602 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15603 s&@INSTALL@&$ac_INSTALL&;t t
15604 $ac_datarootdir_hack
15606 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15607 if $ac_cs_awk_getline; then
15608 $AWK -f "$tmp/subs.awk"
15610 $AWK -f "$tmp/subs.awk" | $SHELL
15612 || as_fn_error "could not create $ac_file" "$LINENO" 5
15614 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15615 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15616 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15618 which seems to be undefined. Please make sure it is defined." >&5
15619 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15620 which seems to be undefined. Please make sure it is defined." >&2;}
15624 -) cat "$tmp/out" && rm -f "$tmp/out";;
15625 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15627 || as_fn_error "could not create $ac_file" "$LINENO" 5
15635 case $ac_file$ac_mode in
15636 "Makefile":F) sed "$extrasub_build" Makefile |
15637 sed "$extrasub_host" |
15638 sed "$extrasub_target" > mf$$
15639 mv -f mf$$ Makefile ;;
15647 ac_clean_files=$ac_clean_files_save
15649 test $ac_write_fail = 0 ||
15650 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15653 # configure is writing to config.log, and then calls config.status.
15654 # config.status does its own redirection, appending to config.log.
15655 # Unfortunately, on DOS this fails, as config.log is still kept open
15656 # by configure, so config.status won't be able to write to it; its
15657 # output is simply discarded. So we exec the FD to /dev/null,
15658 # effectively closing config.log, so it can be properly (re)opened and
15659 # appended to by config.status. When coming back to configure, we
15660 # need to make the FD available again.
15661 if test "$no_create" != yes; then
15663 ac_config_status_args=
15664 test "$silent" = yes &&
15665 ac_config_status_args="$ac_config_status_args --quiet"
15667 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15669 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15670 # would make configure fail if this is the last instruction.
15671 $ac_cs_success || as_fn_exit $?
15673 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15675 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}